:root {
    --bg-base: #f7f6f2;
    --bg-panel: rgba(255, 255, 255, 0.84);
    --bg-panel-soft: rgba(247, 245, 238, 0.9);
    --text-main: #171717;
    --text-muted: #4c4a44;
    --border: rgba(65, 55, 33, 0.26);
    --accent: #6870f3;
    --accent-dark: #535ce2;
    --danger: #c03b37;
    --ok: #2e7f4f;
    --warning: #9b6f1d;
    --shadow: 0 16px 34px rgba(15, 10, 1, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1240px;
}

/* Prom Analytics Lean Canvas layout.
   Add ?layout=classic to the search URL to use the previous composition. */
.prom-search-workspace.prom-search-workspace-lean {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
    gap: 14px;
}

.prom-search-workspace-lean .prom-lean-canvas-rail {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(35, 42, 88, 0.06);
}

.prom-lean-canvas-title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.prom-lean-canvas-title span {
    color: #535ce2;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.prom-lean-canvas-title strong {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.25;
}

.prom-lean-canvas-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.prom-lean-canvas-steps span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.prom-lean-canvas-steps b {
    display: inline-grid;
    width: 27px;
    min-width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 7px;
    background: rgba(241, 243, 255, 0.9);
    color: #535ce2;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}

.prom-launch-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    min-width: 250px;
    padding: 3px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 8px;
    background: rgba(241, 243, 255, 0.86);
}

.prom-launch-mode-switch button {
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.prom-launch-mode-switch button[aria-pressed="true"] {
    background: #fff;
    color: #4248d8;
    box-shadow: 0 5px 14px rgba(35, 42, 88, 0.1);
}

.prom-launch-mode-switch button:focus-visible {
    outline: 3px solid rgba(83, 92, 226, 0.18);
    outline-offset: 1px;
}

.prom-search-workspace-lean .prom-search-command,
.prom-search-workspace-lean .prom-category-analysis-command {
    grid-column: 1;
    grid-row: 2;
    align-content: start;
    align-self: start;
    min-width: 0;
    min-height: 0;
    height: auto;
}

.prom-search-workspace-lean[data-prom-launch-mode="search"] [data-prom-launch-pane="category"],
.prom-search-workspace-lean[data-prom-launch-mode="category"] [data-prom-launch-pane="search"],
.prom-search-workspace-lean [data-prom-launch-pane][hidden] {
    display: none !important;
}

.prom-search-workspace-lean .prom-search-command,
.prom-search-workspace-lean .prom-category-analysis-command,
.prom-search-workspace-lean .prom-search-status,
.prom-search-workspace-lean .prom-history-duo > .prom-search-history {
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(35, 42, 88, 0.06);
}

.prom-search-workspace-lean .prom-search-command,
.prom-search-workspace-lean .prom-category-analysis-command {
    padding: 20px;
}

.prom-search-workspace-lean .prom-panel-head {
    margin-bottom: 10px;
}

.prom-search-workspace-lean .prom-search-command .prom-panel-head > div::before,
.prom-search-workspace-lean .prom-category-analysis-command .prom-panel-head > div::before,
.prom-search-workspace-lean .prom-search-status .prom-panel-head > div::before,
.prom-search-workspace-lean .prom-history-duo .prom-panel-head > div::before {
    color: #535ce2;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-search-workspace-lean .prom-search-command .prom-panel-head > div::before {
    content: "01 · Джерело";
}

.prom-search-workspace-lean .prom-category-analysis-command .prom-panel-head > div::before {
    content: "01 · Джерело";
}

.prom-search-workspace-lean .prom-search-status .prom-panel-head > div::before {
    content: "03 · Виконання";
}

.prom-search-workspace-lean .prom-history-duo .prom-panel-head > div::before {
    content: "04 · Докази";
}

.prom-search-workspace-lean .prom-search-command .prom-panel-head > div > span,
.prom-search-workspace-lean .prom-category-analysis-command .prom-panel-head > div > span,
.prom-search-workspace-lean .prom-search-status .prom-panel-head > div > span,
.prom-search-workspace-lean .prom-history-duo .prom-panel-head > div > span {
    display: none;
}

.prom-search-workspace-lean .prom-search-main-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.prom-search-workspace-lean .prom-search-main-input input {
    min-height: 52px;
    box-shadow: none;
}

.prom-search-workspace-lean .prom-search-command .prom-parser-submit-row .btn {
    min-height: 52px;
}

.prom-search-workspace-lean .prom-search-controls {
    grid-template-columns: minmax(280px, 1.4fr) minmax(210px, 0.6fr);
}

.prom-search-workspace-lean .prom-search-selection-plan,
.prom-search-workspace-lean .prom-category-selected-path,
.prom-search-workspace-lean .prom-search-progress-card {
    background: rgba(246, 248, 255, 0.9);
}

.prom-search-workspace-lean .prom-search-status {
    position: static;
    display: grid;
    grid-column: 2;
    grid-row: 2 / span 2;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-self: start;
    gap: 12px;
    width: 100%;
    height: auto;
    padding: 20px;
    overflow: visible;
}

.prom-search-workspace-lean .prom-search-status[data-prom-job-status] {
    grid-template-columns: minmax(0, 1fr);
}

.prom-search-workspace-lean .prom-search-status > .prom-panel-head,
.prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) > .prom-search-progress-card,
.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-search-progress-card,
.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-search-job-state,
.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-controls,
.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-control-message {
    grid-column: 1;
}

.prom-search-workspace-lean .prom-search-progress-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 112px;
    padding: 12px;
}

.prom-search-workspace-lean .prom-progress-orb,
.prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) .prom-progress-orb {
    width: 78px;
    min-width: 78px;
}

.prom-search-workspace-lean .prom-progress-orb::before,
.prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) .prom-progress-orb::before {
    inset: 8px;
}

.prom-search-workspace-lean .prom-progress-orb span {
    font-size: 1rem;
}

.prom-search-workspace-lean .prom-search-job-state {
    gap: 7px;
}

.prom-search-workspace-lean .prom-search-job-state p {
    font-size: 0.82rem;
}

.prom-search-workspace-lean .prom-job-counters {
    gap: 5px;
}

.prom-search-workspace-lean .prom-job-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 10px;
}

.prom-search-workspace.prom-search-workspace-lean.is-status-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.prom-search-workspace-lean.is-status-hidden .prom-search-command,
.prom-search-workspace-lean.is-status-hidden .prom-category-analysis-command {
    grid-column: 1 / -1;
}

.prom-search-workspace-lean .prom-history-duo {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-self: start;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history {
    padding: 16px;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-list {
    max-height: 540px;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-main {
    grid-column: 1 / -1;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-main h3 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-metrics {
    grid-column: 1;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
    grid-column: 2;
    justify-content: flex-end;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-actions .btn {
    min-width: 0;
}

.prom-search-workspace-lean .prom-search-results,
.prom-search-workspace-lean .prom-search-categories {
    grid-row: auto;
}

html[data-theme="dark"] .prom-search-workspace-lean .prom-lean-canvas-rail,
html[data-theme="dark"] .prom-search-workspace-lean .prom-search-command,
html[data-theme="dark"] .prom-search-workspace-lean .prom-category-analysis-command,
html[data-theme="dark"] .prom-search-workspace-lean .prom-search-status,
html[data-theme="dark"] .prom-search-workspace-lean .prom-history-duo > .prom-search-history {
    border-color: rgba(142, 150, 255, 0.2);
    background: rgba(15, 23, 42, 0.88);
}

html[data-theme="dark"] .prom-launch-mode-switch {
    border-color: rgba(142, 150, 255, 0.2);
    background: rgba(30, 41, 59, 0.9);
}

html[data-theme="dark"] .prom-launch-mode-switch button[aria-pressed="true"] {
    background: rgba(104, 112, 243, 0.24);
    color: #dfe3ff;
}

@media (max-width: 1320px) {
    .prom-search-workspace.prom-search-workspace-lean {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.4fr);
    }

    .prom-search-workspace-lean .prom-lean-canvas-rail {
        grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1fr) auto;
    }

    .prom-lean-canvas-steps span {
        font-size: 0;
    }

    .prom-lean-canvas-steps b {
        font-size: 0.68rem;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 1050px) {
    .prom-search-workspace.prom-search-workspace-lean {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-lean-canvas-rail {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .prom-search-workspace-lean .prom-lean-canvas-steps {
        display: none;
    }

    .prom-search-workspace-lean .prom-search-command,
    .prom-search-workspace-lean .prom-category-analysis-command {
        grid-column: 1;
        grid-row: 2;
    }

    .prom-search-workspace-lean .prom-search-status {
        grid-column: 1;
        grid-row: 3;
        height: auto;
    }

    .prom-search-workspace-lean .prom-history-duo {
        grid-row: 4;
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-list {
        max-height: 520px;
        overflow: auto;
    }
}

@media (max-width: 720px) {
    .prom-search-workspace-lean .prom-lean-canvas-rail {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px;
    }

    .prom-lean-canvas-title {
        display: none;
    }

    .prom-launch-mode-switch {
        width: 100%;
        min-width: 0;
    }

    .prom-search-workspace-lean .prom-search-command,
    .prom-search-workspace-lean .prom-category-analysis-command,
    .prom-search-workspace-lean .prom-search-status {
        padding: 14px;
    }

    .prom-search-workspace-lean .prom-search-main-form,
    .prom-search-workspace-lean .prom-search-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-search-selection-plan {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-search-command .prom-parser-submit-row {
        justify-content: stretch;
        min-width: 0;
    }

    .prom-search-workspace-lean .prom-search-command .prom-parser-submit-row .btn {
        width: 100%;
    }

    .prom-search-workspace-lean .prom-search-progress-card {
        grid-template-columns: 72px minmax(0, 1fr);
        justify-items: stretch;
    }

    .prom-search-workspace-lean .prom-progress-orb,
    .prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) .prom-progress-orb {
        width: 66px;
        min-width: 66px;
    }

    .prom-search-workspace-lean .prom-job-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history {
        padding: 14px;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-item,
    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-metrics,
    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        grid-column: 1;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        justify-content: stretch;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions .btn {
        flex: 1 1 auto;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-list {
        max-height: none;
        overflow: visible;
    }
}

/* Prom Analytics operational layout correction.
   Use one vertical workstream: launcher, status, then full-width histories. */
.prom-search-workspace.prom-search-workspace-lean {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.prom-search-workspace-lean .prom-lean-canvas-rail {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.prom-search-workspace-lean .prom-lean-canvas-title,
.prom-search-workspace-lean .prom-lean-canvas-steps {
    display: none;
}

.prom-search-workspace-lean .prom-launch-mode-switch {
    width: min(100%, 330px);
    min-width: 0;
}

.prom-search-workspace-lean .prom-panel-head {
    margin-bottom: 14px;
}

.prom-search-workspace-lean .prom-search-command .prom-panel-head > div::before,
.prom-search-workspace-lean .prom-category-analysis-command .prom-panel-head > div::before,
.prom-search-workspace-lean .prom-search-status .prom-panel-head > div::before,
.prom-search-workspace-lean .prom-history-duo .prom-panel-head > div::before {
    display: none;
    content: none;
}

.prom-search-workspace-lean .prom-search-command .prom-panel-head > div > span,
.prom-search-workspace-lean .prom-category-analysis-command .prom-panel-head > div > span,
.prom-search-workspace-lean .prom-search-status .prom-panel-head > div > span,
.prom-search-workspace-lean .prom-history-duo .prom-panel-head > div > span {
    display: block;
}

.prom-search-workspace-lean .prom-search-status {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(220px, 0.42fr) minmax(360px, 1.08fr);
    align-items: center;
    align-self: start;
    height: auto;
}

.prom-search-workspace-lean .prom-search-status[data-prom-job-status] {
    grid-template-columns: minmax(220px, 0.4fr) minmax(320px, 0.9fr) minmax(300px, 1fr);
}

.prom-search-workspace-lean .prom-search-status > .prom-panel-head {
    grid-column: 1;
}

.prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) > .prom-search-progress-card,
.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-search-progress-card {
    grid-column: 2;
}

.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-search-job-state {
    grid-column: 3;
}

.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-controls,
.prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-control-message {
    grid-column: 2 / -1;
}

.prom-search-workspace-lean .prom-history-duo {
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history {
    padding: 20px;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-list {
    max-height: 560px;
    padding-right: 6px;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-item {
    grid-template-columns: minmax(300px, 1fr) minmax(330px, 0.72fr) minmax(190px, auto);
    gap: 14px;
    padding: 14px;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-main,
.prom-search-workspace-lean .prom-history-duo .prom-search-history-metrics,
.prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
    grid-column: auto;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-main h3 {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.prom-search-workspace-lean .prom-history-duo .prom-search-history-actions .btn {
    min-width: 154px;
}

@media (max-width: 1320px) {
    .prom-search-workspace.prom-search-workspace-lean {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-item {
        grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.7fr);
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 1050px) {
    .prom-search-workspace.prom-search-workspace-lean {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-search-status {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-search-status[data-prom-job-status] {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-search-status > .prom-panel-head,
    .prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) > .prom-search-progress-card,
    .prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-search-progress-card,
    .prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-search-job-state,
    .prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-controls,
    .prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-control-message {
        grid-column: 1;
    }

    .prom-search-workspace-lean .prom-history-duo {
        grid-row: 4;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-item {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr);
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .prom-search-workspace-lean .prom-lean-canvas-rail {
        min-height: 0;
    }

    .prom-search-workspace-lean .prom-launch-mode-switch {
        width: 100%;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history {
        padding: 14px;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-metrics,
    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        grid-column: 1;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-actions .btn {
        flex: 1 1 180px;
        min-width: 0;
    }

    .prom-search-workspace-lean .prom-history-duo .prom-search-history-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 15% 15%, #fcf4dc 0%, var(--bg-base) 28%, #f1f2ef 70%, #ecece9 100%);
    min-height: 100vh;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.42;
}

.orb-a {
    width: 420px;
    height: 420px;
    background: #f0ce72;
    top: -80px;
    left: -120px;
}

.orb-b {
    width: 460px;
    height: 460px;
    background: #dddfff;
    right: -180px;
    top: 28%;
}

.orb-c {
    width: 360px;
    height: 360px;
    background: #f0a39d;
    left: 38%;
    bottom: -180px;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(245, 243, 237, 0.75);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.topbar-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    text-decoration: none;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, 100%);
}

.brand-logo-main {
    display: block;
    height: clamp(34px, 4.2vw, 52px);
    width: auto;
    max-width: min(320px, 65vw);
    object-fit: contain;
}

.brand-logo-main-dark {
    display: none !important;
}

html[data-theme="dark"] body:not(.shell-prom-analytics) .brand-logo-main-light {
    display: none !important;
}

html[data-theme="dark"] body:not(.shell-prom-analytics) .brand-logo-main-dark {
    display: block !important;
}

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

.top-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-nav a,
.top-nav .nav-link-button {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inline-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    flex: 0 0 auto;
}

.top-nav a:hover,
.top-nav .nav-link-button:hover {
    color: var(--accent-dark);
}

.nav-logout-form {
    margin: 0;
}

.nav-link-button {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.danger-link:hover {
    color: var(--danger);
}

.page {
    padding: 24px 0 36px;
    display: grid;
    gap: 16px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-panel);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    padding: 20px;
    min-width: 0;
    max-width: 100%;
}

.panel-soft {
    background: var(--bg-panel-soft);
}

.panel h1,
.panel h2 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.01em;
}

.panel h1 {
    font-size: 1.56rem;
}

.panel h2 {
    font-size: 1.12rem;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.panel-head-wrap {
    align-items: flex-start;
}

.muted {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.54;
}

.small {
    font-size: 0.9rem;
}

.tiny-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.captcha-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.grid.two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.13);
    color: var(--accent-dark);
    border: 1px solid rgba(104, 112, 243, 0.24);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.stacked-form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 600;
}

input,
button,
select {
    font: inherit;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    border: 1px solid rgba(39, 28, 9, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.15);
}

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

.btn {
    border: 1px solid rgba(25, 47, 44, 0.22);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #ecece8 100%);
    color: #242424;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.25), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    border-color: rgba(66, 72, 143, 0.42);
    background: linear-gradient(150deg, #737aff 0%, #535ce2 100%);
    color: #f8fffc;
}

.btn-action {
    border-color: rgba(104, 112, 243, 0.4);
    background: rgba(104, 112, 243, 0.12);
    color: #535ce2;
}

.btn-action:hover {
    border-color: rgba(104, 112, 243, 0.52);
    background: rgba(104, 112, 243, 0.18);
}

.clean-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    line-height: 1.5;
}

.insights-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* -------------------------------------------------------------------------- */
/* v1.391 - Overview visual refresh                                             */
/* -------------------------------------------------------------------------- */

.overview-v386-shell {
    display: grid;
    gap: clamp(18px, 2vw, 30px);
    align-content: start;
}

.overview-v386-shell .panel {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(11, 30, 31, 0.06);
    padding: clamp(16px, 1.6vw, 24px);
}

.overview-zone {
    min-width: 0;
}

.overview-zone-kpi {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 26px rgba(11, 30, 31, 0.05);
    padding: clamp(16px, 1.6vw, 24px);
}

.overview-zone-header {
    margin-bottom: 14px;
    display: grid;
    gap: 6px;
}

.overview-zone-header h2 {
    margin: 0;
}

.overview-summary-head {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.overview-summary-copy {
    display: grid;
    gap: 8px;
}

.overview-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-summary-side {
    display: grid;
    gap: 10px;
}

.overview-summary-stat {
    border: 1px solid rgba(24, 67, 63, 0.13);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(11, 27, 29, 0.04);
}

.overview-summary-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #637173;
    font-weight: 800;
}

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

.overview-summary-inline > div {
    border: 1px solid rgba(53, 48, 35, 0.14);
    background: rgba(248, 248, 246, 0.88);
    border-radius: 10px;
    padding: 9px 10px;
    display: grid;
    gap: 3px;
}

.overview-summary-v1387 {
    display: grid;
    gap: 16px;
}

.overview-summary-v1387-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.overview-summary-v1387-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 340px;
}

.overview-summary-v1387-actions .btn {
    width: 100%;
}

.overview-summary-v1387-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.overview-summary-v1387-grid .overview-summary-stat {
    min-height: 104px;
    align-content: start;
}

.overview-summary-v1387-grid .overview-summary-stat:nth-child(2) {
    border-color: rgba(104, 112, 243, 0.24);
    background: rgba(236, 247, 244, 0.86);
}

.overview-summary-v1387-grid .overview-summary-stat:nth-child(3) {
    border-color: rgba(88, 109, 150, 0.22);
    background: rgba(241, 245, 253, 0.88);
}

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

.overview-kpi-scan-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.overview-kpi-scan-form label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #4a5a5d;
}

.overview-kpi-scan-form select {
    min-width: 300px;
    max-width: 520px;
}

.overview-v386-shell .insight-card {
    border-radius: 14px;
    border: 1px solid rgba(24, 67, 63, 0.14);
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(11, 27, 29, 0.04);
}

.overview-kpi-grid .insight-card {
    min-height: 138px;
    align-content: start;
    gap: 8px;
}

.overview-kpi-grid .insight-card .insight-value {
    font-size: clamp(1.38rem, 1.75vw, 1.95rem);
    line-height: 1.1;
}

.overview-kpi-grid .insight-card-primary {
    border-color: rgba(104, 112, 243, 0.28);
    background: rgba(235, 248, 244, 0.9);
    box-shadow: 0 6px 18px rgba(11, 90, 82, 0.1);
}

.overview-kpi-grid .insight-card-primary .insight-label {
    color: #0f4d46;
}

.overview-kpi-grid .insight-card-warning {
    border-color: rgba(155, 111, 29, 0.25);
    background: rgba(252, 246, 229, 0.92);
}

.overview-kpi-grid .insight-card-ok {
    border-color: rgba(83, 92, 226, 0.26);
    background: rgba(233, 246, 237, 0.9);
}

.kpi-delta {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.kpi-delta-up {
    color: #a25900;
}

.kpi-delta-down {
    color: #0f7a5b;
}

.kpi-delta-neutral {
    color: #6a655b;
}

.overview-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.overview-actions-grid .inline-form {
    width: 100%;
}

.overview-actions-grid .btn {
    width: 100%;
    min-height: 44px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 12px;
}

.overview-sources-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.overview-sources-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.overview-sources-count {
    font-size: 0.8rem;
    color: #59686b;
}

.overview-source-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.overview-source-item {
    border: 1px solid rgba(24, 67, 63, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(250, 252, 251, 0.95);
    display: grid;
    gap: 6px;
}

.overview-source-item.is-empty {
    border-style: solid;
    border-color: rgba(105, 120, 118, 0.24);
    background: rgba(245, 248, 247, 0.88);
}

.overview-source-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.overview-source-slot {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #657376;
    font-weight: 800;
}

.overview-source-status {
    font-size: 0.71rem;
    font-weight: 800;
    color: #0d786f;
}

.overview-source-item.is-empty .overview-source-status {
    color: #726c62;
}

.overview-source-name {
    font-size: 0.9rem;
    color: #223c3c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-source-item.is-empty .overview-source-name {
    color: #647170;
}

.overview-source-meta {
    font-size: 0.76rem;
    color: #637174;
    line-height: 1.3;
}

.overview-competitor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.overview-competitor-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.overview-competitor-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(13, 90, 85, 0.24);
    background: rgba(104, 112, 243, 0.12);
    color: #0d7f76;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.overview-competitor-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.overview-competitor-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.overview-competitor-form {
    display: grid;
    grid-template-columns: minmax(340px, 1.45fr) minmax(180px, 0.45fr) auto;
    gap: 10px;
    align-items: end;
}

.overview-competitor-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.overview-competitor-field > span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a665b;
    font-weight: 700;
}

.overview-competitor-features {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.overview-competitor-feature {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(104, 112, 243, 0.24);
    background: rgba(104, 112, 243, 0.1);
    color: #535ce2;
    font-size: 0.74rem;
    font-weight: 700;
}

html[data-theme="dark"] .overview-v386-shell .panel,
html[data-theme="dark"] .overview-zone-kpi {
    background: rgba(22, 30, 37, 0.9);
    border-color: rgba(126, 156, 178, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .overview-summary-stat,
html[data-theme="dark"] .overview-v386-shell .insight-card,
html[data-theme="dark"] .overview-status-list li,
html[data-theme="dark"] .overview-source-item {
    background: rgba(17, 25, 32, 0.9);
    border-color: rgba(126, 156, 178, 0.28);
    box-shadow: none;
}

html[data-theme="dark"] .overview-summary-v1387-grid .overview-summary-stat:nth-child(2) {
    background: rgba(23, 54, 49, 0.76);
    border-color: rgba(88, 193, 175, 0.3);
}

html[data-theme="dark"] .overview-summary-v1387-grid .overview-summary-stat:nth-child(3) {
    background: rgba(30, 41, 63, 0.78);
    border-color: rgba(115, 138, 191, 0.34);
}

html[data-theme="dark"] .overview-sources-count,
html[data-theme="dark"] .overview-source-slot,
html[data-theme="dark"] .overview-source-meta,
html[data-theme="dark"] .overview-summary-label,
html[data-theme="dark"] .overview-kpi-scan-form label {
    color: #9db5c9;
}

html[data-theme="dark"] .overview-source-item.is-empty {
    border-color: rgba(140, 160, 180, 0.32);
    background: rgba(26, 33, 40, 0.88);
}

html[data-theme="dark"] .overview-source-name {
    color: #edf7ff;
}

html[data-theme="dark"] .overview-source-status {
    color: #8ff0e2;
}

html[data-theme="dark"] .overview-source-item.is-empty .overview-source-status {
    color: #aebfd0;
}

html[data-theme="dark"] .overview-competitor-icon {
    border-color: rgba(136, 140, 213, 0.36);
    background: rgba(20, 85, 79, 0.4);
    color: #abf5ea;
}

html[data-theme="dark"] .overview-competitor-field > span {
    color: #9db5c9;
}

html[data-theme="dark"] .overview-competitor-feature {
    border-color: rgba(136, 140, 213, 0.32);
    background: rgba(20, 85, 79, 0.3);
    color: #b8fff6;
}

html[data-theme="dark"] .overview-kpi-grid .insight-card-primary {
    border-color: rgba(88, 193, 175, 0.34);
    background: rgba(23, 54, 49, 0.72);
}

html[data-theme="dark"] .overview-kpi-grid .insight-card-warning {
    border-color: rgba(208, 170, 88, 0.36);
    background: rgba(73, 55, 27, 0.54);
}

html[data-theme="dark"] .overview-kpi-grid .insight-card-ok {
    border-color: rgba(136, 140, 213, 0.34);
    background: rgba(31, 58, 43, 0.62);
}

.overview-opportunity-grid {
    align-items: start;
    gap: clamp(16px, 1.6vw, 22px);
}

.overview-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.overview-status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(24, 67, 63, 0.14);
    background: rgba(255, 255, 255, 0.84);
    border-radius: 12px;
    padding: 11px 13px;
}

.overview-status-list li strong {
    color: #203052;
    font-size: 1.05rem;
}

.overview-opportunity-cards {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1280px) {
    .overview-summary-head {
        grid-template-columns: 1fr;
    }

    .overview-summary-v1387-top {
        grid-template-columns: 1fr;
    }

    .overview-summary-v1387-actions {
        min-width: 0;
        width: 100%;
    }

    .overview-summary-v1387-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 1024px) {
    .overview-summary-v1387-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .overview-source-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .overview-kpi-scan-form select {
        min-width: 220px;
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    .overview-summary-v1387-actions {
        grid-template-columns: 1fr;
    }

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

    .overview-kpi-grid,
    .overview-opportunity-cards {
        grid-template-columns: 1fr;
    }

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

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

    .overview-competitor-head-actions {
        width: 100%;
    }

    .overview-competitor-head-actions .btn {
        width: 100%;
    }

    .overview-competitor-form .btn {
        width: 100%;
    }

    .overview-kpi-scan-form {
        align-items: stretch;
    }

    .overview-kpi-scan-form select,
    .overview-kpi-scan-form .btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 460px) {
    .overview-actions-grid {
        grid-template-columns: 1fr;
    }

    .overview-sources-head-actions {
        width: 100%;
    }

    .overview-sources-head-actions .btn {
        width: 100%;
    }
}

.model-kpi-section,
.quick-opportunities-section {
    margin-top: 12px;
}

.section-subhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.section-subhead h3 {
    margin: 0;
    font-size: 1rem;
    font-family: "Space Grotesk", sans-serif;
}

.section-subhead-meta {
    font-size: 0.78rem;
    color: #69655b;
    font-weight: 700;
}

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

.insight-card {
    border-radius: 12px;
    border: 1px solid rgba(53, 48, 35, 0.14);
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.insight-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.insight-card-link:hover {
    transform: translateY(-1px);
    border-color: rgba(104, 112, 243, 0.5);
    box-shadow: 0 10px 24px rgba(66, 72, 143, 0.12);
}

.insight-card-link:focus-visible {
    outline: none;
    border-color: rgba(104, 112, 243, 0.55);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.18);
}

.insight-card-ok {
    border-color: rgba(83, 92, 226, 0.38);
    background: rgba(104, 112, 243, 0.14);
}

.insight-card-warning {
    border-color: rgba(155, 111, 29, 0.38);
    background: rgba(249, 211, 121, 0.2);
}

.insight-card-critical,
.insight-card-expired {
    border-color: rgba(192, 59, 55, 0.35);
    background: rgba(222, 88, 83, 0.16);
}

.insight-card-unknown {
    border-color: rgba(110, 103, 91, 0.3);
    background: rgba(173, 165, 149, 0.14);
}

.insight-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #69655b;
    font-weight: 800;
}

.insight-value {
    font-size: 1.08rem;
    font-weight: 800;
    color: #173e39;
}

.insight-meta {
    font-size: 0.81rem;
    color: #5e5a50;
    line-height: 1.4;
}

.dashboard-notes {
    margin-top: 12px;
}

.stats-notes-disclosure {
    margin-top: 12px;
}

.stats-notes-disclosure > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent);
    padding: 6px 0;
}

.stats-notes-disclosure[open] > summary {
    margin-bottom: 6px;
}

.item-info-grid,
.item-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.item-info-grid .insight-value,
.item-stats-grid .insight-value {
    font-size: 1rem;
}

.item-history-panel {
    padding-top: 18px;
}

.history-panel-badges {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-badge {
    text-transform: none;
    letter-spacing: 0.01em;
}

.history-badge-soft {
    background: rgba(104, 112, 243, 0.08);
}

.stats-summary-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.summary-card {
    border-radius: 12px;
    border: 1px solid rgba(53, 48, 35, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 244, 238, 0.92) 100%);
    padding: 12px;
    display: grid;
    gap: 5px;
    min-height: 110px;
}

.summary-card-wide {
    grid-column: span 2;
}

.summary-card-highlight {
    border-color: rgba(104, 112, 243, 0.34);
    background: linear-gradient(180deg, rgba(232, 250, 247, 0.95) 0%, rgba(220, 245, 240, 0.95) 100%);
}

.summary-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #69655b;
    font-weight: 800;
}

.summary-value {
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 900;
    color: #203052;
}

.summary-meta {
    font-size: 0.82rem;
    color: #5e5a50;
    line-height: 1.35;
}

.summary-meter {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.14);
    overflow: hidden;
}

.summary-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6870f3 0%, #535ce2 100%);
}

.history-table-block {
    margin-top: 14px;
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.64);
    overflow: hidden;
}

.history-table-head {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(65, 55, 33, 0.12);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.history-table-head h3 {
    margin: 0;
    font-size: 1rem;
    font-family: "Space Grotesk", sans-serif;
}

.history-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.history-table-wrap table {
    min-width: 860px;
}

.history-row-crossed td {
    background: rgba(104, 112, 243, 0.08);
}

.source-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    border: 1px solid rgba(104, 112, 243, 0.3);
    background: rgba(104, 112, 243, 0.1);
    color: #535ce2;
    font-size: 0.78rem;
    font-weight: 800;
}

.row-flag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.row-flag-yes {
    color: #8a620c;
    background: rgba(249, 211, 121, 0.22);
    border-color: rgba(155, 111, 29, 0.32);
}

.row-flag-no {
    color: #5f5b52;
    background: rgba(130, 123, 108, 0.15);
    border-color: rgba(110, 103, 91, 0.28);
}

.history-empty {
    padding: 14px;
}


.seller-own-row td {
    background: rgba(104, 112, 243, 0.08);
}

.table-wrap {
    overflow: auto;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1060px;
}

th,
td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(45, 45, 45, 0.09);
    vertical-align: top;
}

th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #534f45;
    position: sticky;
    top: 0;
    background: #f4f2ec;
    z-index: 1;
}

tr:hover td {
    background: rgba(104, 112, 243, 0.06);
}

.table-link {
    text-decoration: none;
    color: var(--accent-dark);
    font-weight: 700;
}

.scan-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 220px;
}

.scan-action-btn {
    width: 86px;
    min-width: 86px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.12);
    border: 1px solid rgba(104, 112, 243, 0.36);
    color: #535ce2;
    box-shadow: none;
}

.scan-action-btn:hover {
    background: rgba(104, 112, 243, 0.18);
    border-color: rgba(104, 112, 243, 0.5);
    box-shadow: 0 4px 10px rgba(104, 112, 243, 0.16);
}

.inline-form {
    margin: 0;
}

.btn-xs {
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.btn-xs.scan-action-btn {
    padding: 0 8px;
    font-size: 0.72rem;
}

.btn-danger-soft {
    border-color: rgba(192, 59, 55, 0.45);
    background: rgba(222, 88, 83, 0.14);
    color: #8f2724;
}

.btn-danger-soft:hover {
    box-shadow: 0 7px 16px rgba(192, 59, 55, 0.2);
}

.btn-warning-soft {
    border-color: rgba(155, 111, 29, 0.42);
    background: rgba(249, 211, 121, 0.18);
    color: #8a620c;
}

.btn-warning-soft:hover {
    box-shadow: 0 7px 16px rgba(155, 111, 29, 0.2);
}

.btn-accent-soft {
    border-color: rgba(104, 112, 243, 0.38);
    background: rgba(104, 112, 243, 0.14);
    color: #535ce2;
}

.btn-accent-soft:hover {
    box-shadow: 0 7px 16px rgba(104, 112, 243, 0.2);
}

/* Scan action semantic colors */
.scan-action-btn.btn-accent-soft {
    background: rgba(104, 112, 243, 0.14) !important;
    border-color: rgba(104, 112, 243, 0.38) !important;
    color: #535ce2 !important;
}

.scan-action-btn.btn-accent-soft:hover {
    background: rgba(104, 112, 243, 0.2) !important;
    border-color: rgba(104, 112, 243, 0.5) !important;
}

.scan-action-btn.btn-warning-soft {
    background: rgba(249, 211, 121, 0.2) !important;
    border-color: rgba(155, 111, 29, 0.42) !important;
    color: #8a620c !important;
}

.scan-action-btn.btn-warning-soft:hover {
    background: rgba(249, 211, 121, 0.3) !important;
    border-color: rgba(155, 111, 29, 0.52) !important;
}

.scan-action-btn.btn-danger-soft {
    background: rgba(222, 88, 83, 0.18) !important;
    border-color: rgba(192, 59, 55, 0.45) !important;
    color: #8f2724 !important;
}

.scan-action-btn.btn-danger-soft:hover {
    background: rgba(222, 88, 83, 0.28) !important;
    border-color: rgba(192, 59, 55, 0.55) !important;
}

.tiny-action {
    font-size: 0.76rem;
    border: 1px solid rgba(104, 112, 243, 0.38);
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(104, 112, 243, 0.12);
    color: #535ce2;
    font-weight: 800;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.status-pending {
    color: #8a620c;
    background: rgba(249, 211, 121, 0.22);
    border-color: rgba(155, 111, 29, 0.38);
}

.status-running {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.18);
    border-color: rgba(104, 112, 243, 0.34);
}

.status-info {
    color: #1f4e89;
    background: rgba(86, 149, 223, 0.16);
    border-color: rgba(61, 116, 183, 0.38);
}

.status-paused {
    color: #8a620c;
    background: rgba(249, 211, 121, 0.22);
    border-color: rgba(155, 111, 29, 0.38);
}

.status-completed,
.status-ok,
.status-success {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.16);
    border-color: rgba(83, 92, 226, 0.38);
}

.status-failed,
.status-error {
    color: #9f2926;
    background: rgba(210, 78, 72, 0.14);
    border-color: rgba(192, 59, 55, 0.4);
}

.status-warning {
    color: #8a620c;
    background: rgba(249, 211, 121, 0.22);
    border-color: rgba(155, 111, 29, 0.38);
}

.status-crossed {
    color: #8a620c;
    background: rgba(249, 211, 121, 0.25);
    border-color: rgba(155, 111, 29, 0.45);
}

.status-cancelled {
    color: #6a665b;
    background: rgba(128, 120, 104, 0.14);
    border-color: rgba(110, 103, 91, 0.32);
}

.stats-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    border-radius: 12px;
    border: 1px solid rgba(53, 48, 35, 0.14);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
    min-height: 88px;
    display: grid;
    align-content: space-between;
}

.stat-label {
    color: #69655b;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.28rem;
    font-weight: 800;
}

.progress-bar {
    margin-top: 10px;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.12);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6870f3 0%, #535ce2 100%);
    width: 0;
    transition: width 0.35s ease;
}

.heavy-progress {
    margin-top: 14px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 14px;
    box-shadow: 0 14px 34px rgba(28, 38, 34, 0.08);
}

.heavy-progress[hidden] {
    display: none;
}

.heavy-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.heavy-progress-head > div {
    display: grid;
    gap: 3px;
}

.heavy-progress-eyebrow {
    color: #69655b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.heavy-progress-head strong {
    color: var(--text);
    font-size: 1rem;
}

.heavy-progress-percent {
    color: var(--accent-dark);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.heavy-progress-bar {
    margin-top: 12px;
}

.heavy-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #69655b;
    font-size: 0.9rem;
}

.heavy-progress[data-status="failed"] {
    border-color: rgba(192, 59, 55, 0.38);
    background: rgba(222, 88, 83, 0.1);
}

.heavy-progress[data-status="failed"] .heavy-progress-percent {
    color: #8f2724;
}

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 0.92rem;
}

.alert.error {
    color: #8f2724;
    background: rgba(222, 88, 83, 0.16);
    border: 1px solid rgba(192, 59, 55, 0.38);
}

.app-error-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(183, 59, 55, 0.5);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 242, 241, 0.92)),
        radial-gradient(circle at 0 0, rgba(222, 88, 83, 0.18), transparent 36%);
    color: #5e201d;
    box-shadow: 0 14px 34px rgba(132, 44, 41, 0.12);
}

.app-error-card__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(183, 59, 55, 0.55);
    border-radius: 999px;
    background: rgba(183, 59, 55, 0.12);
    color: #9f302c;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-weight: 900;
}

.app-error-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.app-error-card__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #8f2724;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.app-error-card__title {
    display: block;
    color: #4b1b19;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.25;
}

.app-error-card__message,
.app-error-card__hint {
    margin: 6px 0 0;
    color: #5e201d;
    line-height: 1.45;
}

.app-error-card__hint {
    color: #6e3834;
    font-size: 0.88rem;
}

.app-error-card__actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.app-error-card-warning {
    border-color: rgba(154, 101, 27, 0.48);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 228, 0.95)),
        radial-gradient(circle at 0 0, rgba(249, 211, 121, 0.28), transparent 36%);
    color: #5d3b10;
    box-shadow: 0 14px 34px rgba(121, 81, 19, 0.1);
}

.app-error-card-warning .app-error-card__icon {
    border-color: rgba(154, 101, 27, 0.5);
    background: rgba(154, 101, 27, 0.12);
    color: #855f18;
}

.app-error-card-warning .app-error-card__eyebrow,
.app-error-card-warning .app-error-card__title,
.app-error-card-warning .app-error-card__message,
.app-error-card-warning .app-error-card__hint {
    color: #5d3b10;
}

.error-page-body {
    min-height: 100vh;
}

.error-page-shell {
    width: min(760px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 48px 0;
}

.error-page-panel {
    padding: clamp(20px, 4vw, 34px);
}

.error-page-panel h1 {
    margin: 14px 0 4px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.95;
}

.error-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

@media (max-width: 640px) {
    .app-error-card {
        flex-direction: column;
        gap: 10px;
        padding: 13px;
    }

    .app-error-card__actions,
    .app-error-card__actions .btn {
        width: 100%;
    }

    .error-page-shell {
        width: min(100% - 24px, 760px);
        padding: 28px 0;
    }
}

.auth-wrap {
    min-height: calc(100vh - 180px);
    display: grid;
    align-items: center;
}

.auth-panel {
    width: min(500px, 100%);
    margin: 0 auto;
}

.back-link {
    text-decoration: none;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.action-row {
    display: flex;
    gap: 8px;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
}

.item-title {
    max-width: 620px;
}

.item-links {
    margin-top: 8px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.action-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.action-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.25), 0 6px 12px rgba(0, 0, 0, 0.1);
}

.action-pill:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.action-pill {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.12);
    border-color: rgba(104, 112, 243, 0.4);
}

.action-pill:hover {
    border-color: rgba(104, 112, 243, 0.52);
    background: rgba(104, 112, 243, 0.18);
}

.action-pill-disabled {
    opacity: 0.56;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.action-pill-locked {
    cursor: not-allowed;
    pointer-events: none;
    color: #4f58de !important;
    border: 1px solid rgba(104, 112, 243, 0.24) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(240, 244, 255, 0.36)) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    backdrop-filter: blur(16px) saturate(1.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(83, 92, 226, 0.1) !important;
}

.action-pill-locked .inline-icon {
    stroke: currentColor;
}

.action-pill .inline-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.1;
}

.btn .inline-icon {
    width: 14px;
    height: 14px;
}

.btn-xs .inline-icon {
    width: 12px;
    height: 12px;
}

.action-pill-strong {
    color: #ffffff;
    background: linear-gradient(135deg, #6870f3, #535ce2);
    border-color: rgba(66, 72, 143, 0.96);
}

.action-pill-strong:hover {
    color: #ffffff;
    border-color: rgba(66, 72, 143, 1);
    background: linear-gradient(135deg, #6870f3, #535ce2);
}

.action-pill-info-primary {
    color: #ffffff;
    border-color: rgba(8, 86, 145, 0.98);
    background: linear-gradient(135deg, #1693e6, #0d6fcf);
    box-shadow: 0 4px 10px rgba(13, 111, 207, 0.28), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    font-weight: 800;
    min-height: 30px;
    padding: 5px 12px;
}

.action-pill-info-primary:hover {
    color: #ffffff;
    border-color: rgba(7, 72, 123, 1);
    background: linear-gradient(135deg, #0f85de, #0a63bd);
    box-shadow: 0 6px 14px rgba(10, 99, 189, 0.34), 0 1px 0 rgba(255, 255, 255, 0.24) inset;
    transform: translateY(-1px);
}

.action-pill-info-primary .inline-icon {
    stroke-width: 2.3;
}

.action-pill-info-primary.action-pill-disabled {
    color: rgba(255, 255, 255, 0.86);
    opacity: 0.68;
    box-shadow: none;
    transform: none;
}

.row-crossed td {
    background: rgba(104, 112, 243, 0.08);
}

code {
    font-family: "Space Grotesk", monospace;
    font-size: 0.9em;
    background: rgba(20, 20, 20, 0.07);
    border: 1px solid rgba(18, 18, 18, 0.1);
    padding: 1px 6px;
    border-radius: 7px;
}


.alert.success {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.2);
    border: 1px solid rgba(83, 92, 226, 0.35);
}

.feed-slot {
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    padding: 12px;
}

.feed-slot + .feed-slot {
    margin-top: 4px;
}

.feed-slot-header {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #69655b;
    margin-bottom: 8px;
    font-weight: 800;
}


.source-preview-list {
    display: grid;
    gap: 8px;
}

.source-preview-item {
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.source-preview-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #203052;
}

.source-preview-url,
.source-url {
    font-size: 0.78rem;
    color: #645f53;
    word-break: break-all;
}

.source-url-disclosure {
    margin-top: 4px;
}

.source-url-disclosure > summary {
    cursor: pointer;
    color: #535ce2;
    font-size: 0.72rem;
    font-weight: 800;
    list-style: none;
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.source-url-disclosure > summary::-webkit-details-marker {
    display: none;
}

.source-url-disclosure[open] > summary {
    margin-bottom: 4px;
}


.source-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #173e39;
    margin-bottom: 2px;
}

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

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

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

    .action-row {
        width: 100%;
        justify-content: flex-start;
    }

    .item-info-grid,
    .item-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .summary-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .topbar-inner {
        min-height: 60px;
    }

    .brand-logo-main {
        height: 38px;
        max-width: min(220px, 64vw);
    }

    .top-nav a {
        font-size: 0.88rem;
    }

    .panel {
        padding: 14px;
        border-radius: 14px;
    }

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

    .inline-fields {
        grid-template-columns: 1fr;
    }

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

    .item-info-grid,
    .item-stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-card-wide {
        grid-column: span 1;
    }

    .history-table-head {
        align-items: flex-start;
    }
}


.row-out-stock td {
    opacity: 0.88;
}

.availability-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 800;
    border: 1px solid transparent;
}

.availability-in {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.16);
    border-color: rgba(83, 92, 226, 0.38);
}

.availability-out {
    color: #8f2724;
    background: rgba(222, 88, 83, 0.16);
    border-color: rgba(192, 59, 55, 0.38);
}

.availability-unknown {
    color: #5d5b55;
    background: rgba(123, 117, 102, 0.14);
    border-color: rgba(100, 94, 82, 0.32);
}

/* Unified button style */
.btn,
.btn-primary,
.btn-action,
.btn-accent-soft,
button[type="submit"].btn {
    border: 1px solid rgba(66, 72, 143, 0.42) !important;
    background: linear-gradient(150deg, #737aff 0%, #535ce2 100%) !important;
    color: #f8fffc !important;
    box-shadow: 0 6px 14px rgba(66, 72, 143, 0.2);
}

.btn:hover,
.btn-primary:hover,
.btn-action:hover,
.btn-accent-soft:hover,
button[type="submit"].btn:hover {
    border-color: rgba(66, 72, 143, 0.55) !important;
    background: linear-gradient(150deg, #2db59f 0%, #11786e 100%) !important;
    color: #f8fffc !important;
    box-shadow: 0 10px 22px rgba(66, 72, 143, 0.25);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-action:focus-visible,
.btn-accent-soft:focus-visible,
button[type="submit"].btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(158, 162, 255, 0.35), 0 10px 22px rgba(66, 72, 143, 0.25);
}

.btn:active,
.btn-primary:active,
.btn-action:active,
.btn-accent-soft:active,
button[type="submit"].btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 4px 10px rgba(66, 72, 143, 0.3);
}

.btn:disabled,
.btn-primary:disabled,
.btn-action:disabled,
.btn-accent-soft:disabled,
button[type="submit"].btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



.settings-panel {
    max-width: 920px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
}

.settings-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

html[data-theme="dark"] {
    --bg-base: #0f1418;
    --bg-panel: rgba(28, 35, 43, 0.9);
    --bg-panel-soft: rgba(25, 31, 37, 0.94);
    --text-main: #e7edf2;
    --text-muted: #9fb0bc;
    --border: rgba(138, 162, 180, 0.22);
    --accent: #6870f3;
    --accent-dark: #7ce2d5;
    --danger: #de6b67;
    --ok: #66c08f;
    --warning: #d0aa58;
    --shadow: 0 20px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] body {
    background: radial-gradient(circle at 15% 15%, #1c2930 0%, var(--bg-base) 34%, #0b1014 100%);
}

html[data-theme="dark"] .topbar {
    background: rgba(16, 23, 30, 0.78);
}

html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .history-table-block,
html[data-theme="dark"] .source-preview-item,
html[data-theme="dark"] .feed-slot,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .heavy-progress,
html[data-theme="dark"] .stat-card {
    background: rgba(23, 30, 37, 0.86);
}

html[data-theme="dark"] th {
    background: #1a242d;
    color: #c8d5de;
}

html[data-theme="dark"] tr:hover td {
    background: rgba(83, 92, 226, 0.22);
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] select {
    background: rgba(18, 24, 30, 0.92);
    color: var(--text-main);
    border-color: rgba(138, 162, 180, 0.3);
}

html[data-theme="dark"] code {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

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

/* Auth + role + referral additions */
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(104, 112, 243, 0.38);
    background: rgba(104, 112, 243, 0.14);
    color: #535ce2;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 10px;
}

.role-admin {
    border-color: rgba(155, 111, 29, 0.52);
    background: rgba(249, 211, 121, 0.22);
    color: #7a5506;
}

.role-manager {
    border-color: rgba(104, 112, 243, 0.44);
    background: rgba(104, 112, 243, 0.16);
    color: #535ce2;
}

.role-partner {
    border-color: rgba(73, 118, 181, 0.48);
    background: rgba(117, 165, 231, 0.18);
    color: #1e4f8f;
}

.role-user {
    border-color: rgba(110, 103, 91, 0.34);
    background: rgba(128, 120, 104, 0.14);
    color: #5f5b52;
}

.alert.info {
    color: #1d5f8f;
    background: rgba(76, 145, 223, 0.14);
    border: 1px solid rgba(58, 121, 194, 0.32);
}

.auth-links {
    margin-top: 10px;
    font-weight: 700;
}

.auth-links a {
    color: var(--accent-dark);
    text-decoration: none;
}

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

.auth-separator {
    margin: 12px 0 8px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.btn-google {
    width: 100%;
}

.auth-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.mfa-form-inline {
    margin-top: 10px;
    max-width: 520px;
}

.mfa-setup-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(104, 112, 243, 0.26);
    background: rgba(104, 112, 243, 0.08);
    display: grid;
    gap: 8px;
}

.compact-disclosure {
    margin-top: 2px;
}

.compact-disclosure > summary {
    font-size: 0.74rem;
}

.scan-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 92px;
}

.scan-action-btn {
    width: 92px;
    min-width: 92px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.74rem;
}

.referral-box {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(104, 112, 243, 0.25);
    background: rgba(104, 112, 243, 0.08);
}

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

.referral-label {
    font-weight: 700;
    color: #4d5488;
}

.referral-link-row {
    align-items: flex-start;
}

.referral-link {
    word-break: break-all;
}

.referral-stats-grid {
    margin-top: 12px;
}

.subheading {
    margin: 14px 0 8px;
    font-size: 1rem;
    font-family: "Space Grotesk", sans-serif;
}

@media (max-width: 720px) {
    .top-actions {
        gap: 8px;
    }

    .role-pill {
        display: none;
    }
}

.role-form-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.role-action-form {
    margin: 0;
}

.role-action-btn {
    min-width: 86px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
}

.role-action-btn.is-current {
    background: rgba(104, 112, 243, 0.24);
    border-color: rgba(104, 112, 243, 0.52);
    color: #535ce2;
    cursor: default;
}

.role-action-btn.is-current:disabled {
    opacity: 1;
}

.admin-users-table-wrap {
    overflow-x: auto;
}

.admin-users-table {
    min-width: 920px;
    table-layout: fixed;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
    width: 72px;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
    width: 180px;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
    width: 240px;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
    width: 140px;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
    width: 320px;
}

.admin-users-table td {
    vertical-align: middle;
}

.role-select {
    min-width: 170px;
    height: 36px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(39, 28, 9, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    font-weight: 700;
}

.role-select:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.15);
}

html[data-theme="dark"] .role-select {
    background: rgba(18, 24, 30, 0.92);
    border-color: rgba(138, 162, 180, 0.3);
    color: #e8f3fb;
}

.btn-disabled {
    opacity: 0.62;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dark theme contrast hierarchy (not flat) */
html[data-theme="dark"] {
    --text-main: #d9e7f2;
    --text-muted: #94acbf;
    --text-strong: #f6fbff;
    --text-accent: #8ff0e2;
}

html[data-theme="dark"] .panel h1,
html[data-theme="dark"] .panel h2,
html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .brand-text {
    color: var(--text-strong);
}

html[data-theme="dark"] .top-nav a,
html[data-theme="dark"] .top-nav .nav-link-button,
html[data-theme="dark"] .item-title,
html[data-theme="dark"] td,
html[data-theme="dark"] .clean-list li {
    color: var(--text-main);
}

html[data-theme="dark"] .muted,
html[data-theme="dark"] .tiny-note,
html[data-theme="dark"] .heavy-progress-meta,
html[data-theme="dark"] .insight-meta,
html[data-theme="dark"] .summary-meta,
html[data-theme="dark"] .source-preview-url,
html[data-theme="dark"] .source-url,
html[data-theme="dark"] .source-url-disclosure > summary {
    color: var(--text-muted);
}

html[data-theme="dark"] .insight-label,
html[data-theme="dark"] .summary-label,
html[data-theme="dark"] .heavy-progress-eyebrow,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] th {
    color: #c6d9e8;
}

html[data-theme="dark"] .insight-value,
html[data-theme="dark"] .summary-value,
html[data-theme="dark"] .heavy-progress-head strong,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .source-name,
html[data-theme="dark"] .source-preview-title {
    color: #e9f6ff;
}

html[data-theme="dark"] .clean-list li strong,
html[data-theme="dark"] .table-link,
html[data-theme="dark"] .back-link,
html[data-theme="dark"] .auth-links a {
    color: var(--text-accent);
}

html[data-theme="dark"] .clean-list li::marker {
    color: #70d7c8;
}

html[data-theme="dark"] .insights-grid .insight-card:nth-child(4n+1) {
    background: linear-gradient(180deg, rgba(24, 55, 66, 0.84) 0%, rgba(20, 39, 48, 0.88) 100%);
    border-color: rgba(136, 140, 213, 0.36);
}

html[data-theme="dark"] .insights-grid .insight-card:nth-child(4n+2) {
    background: linear-gradient(180deg, rgba(25, 44, 64, 0.84) 0%, rgba(21, 35, 50, 0.88) 100%);
    border-color: rgba(90, 146, 206, 0.34);
}

html[data-theme="dark"] .insights-grid .insight-card:nth-child(4n+3) {
    background: linear-gradient(180deg, rgba(42, 54, 73, 0.84) 0%, rgba(31, 41, 56, 0.88) 100%);
    border-color: rgba(143, 166, 200, 0.3);
}

html[data-theme="dark"] .insights-grid .insight-card:nth-child(4n+4) {
    background: linear-gradient(180deg, rgba(41, 59, 63, 0.84) 0%, rgba(29, 43, 45, 0.88) 100%);
    border-color: rgba(136, 140, 213, 0.34);
}

html[data-theme="dark"] .source-preview-item,
html[data-theme="dark"] .feed-slot,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .stat-card {
    border-color: rgba(130, 154, 176, 0.34);
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] select {
    color: #e8f3fb;
}

html[data-theme="dark"] input::placeholder {
    color: #7f96aa;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn {
    color: #f8fffd !important;
}




/* Custom select */
.custom-select {
    position: relative;
    width: 100%;
}

.select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-select-trigger {
    width: 100%;
    border: 1px solid rgba(39, 28, 9, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    min-height: 44px;
    padding: 10px 40px 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.custom-select-trigger:hover {
    border-color: rgba(104, 112, 243, 0.48);
}

.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.15);
}

.custom-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-chevron {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #535ce2;
    transition: transform 0.18s ease;
}

.custom-select.is-open .custom-select-chevron {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    border: 1px solid rgba(39, 28, 9, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    padding: 6px;
    max-height: 280px;
    overflow: auto;
    display: none;
}

.custom-select.is-open .custom-select-menu {
    display: block;
    animation: select-fade-in 0.12s ease;
}

.custom-select-option {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-main);
    padding: 9px 10px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    outline: none;
    background: rgba(104, 112, 243, 0.14);
    color: #535ce2;
}

.custom-select-option.is-selected {
    background: rgba(104, 112, 243, 0.2);
    color: #535ce2;
    font-weight: 800;
}

.custom-select-option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@keyframes select-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[data-theme="dark"] .custom-select-trigger {
    background: rgba(18, 24, 30, 0.92);
    color: #e8f3fb;
    border-color: rgba(138, 162, 180, 0.3);
}

html[data-theme="dark"] .custom-select-trigger:hover {
    border-color: rgba(158, 162, 255, 0.5);
}

html[data-theme="dark"] .custom-select-chevron {
    color: #8ff0e2;
}

html[data-theme="dark"] .custom-select-menu {
    border-color: rgba(130, 154, 176, 0.4);
    background: rgba(19, 27, 35, 0.98);
}

html[data-theme="dark"] .custom-select-option {
    color: #d9e7f2;
}

html[data-theme="dark"] .custom-select-option:hover,
html[data-theme="dark"] .custom-select-option:focus-visible {
    background: rgba(74, 191, 176, 0.16);
    color: #e8fffb;
}

html[data-theme="dark"] .custom-select-option.is-selected {
    background: rgba(64, 173, 161, 0.24);
    color: #ecfffc;
}

html[data-theme="dark"] .source-url-hidden {
    color: #8ea6ba;
}

/* Admin v6 additions */
.admin-users-table {
    min-width: 1280px;
    table-layout: fixed;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
    width: 64px;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
    width: 140px;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
    width: 190px;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
    width: 120px;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
    width: 210px;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
    width: 180px;
}

.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7) {
    width: 170px;
}

.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8) {
    width: 190px;
}

.admin-users-table td:nth-child(8),
.admin-users-table td:nth-child(7) {
    white-space: normal;
}

.role-form-inline input[type="text"],
.role-form-inline input[type="number"] {
    min-width: 120px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(39, 28, 9, 0.24);
    background: rgba(255, 255, 255, 0.92);
}

.compact-disclosure summary {
    cursor: pointer;
    font-weight: 700;
}

html[data-theme="dark"] .role-form-inline input[type="text"],
html[data-theme="dark"] .role-form-inline input[type="number"] {
    background: rgba(18, 24, 30, 0.92);
    border-color: rgba(138, 162, 180, 0.3);
    color: #e8f3fb;
}

/* Settings polish (commercial UI pass) */
.section-title-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.info-dot {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(104, 112, 243, 0.45);
    background: rgba(104, 112, 243, 0.12);
    color: #535ce2;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    user-select: none;
}

.info-dot::after {
    content: none;
    display: none;
}

.floating-info-tip {
    position: fixed;
    left: 0;
    top: 0;
    max-width: min(320px, calc(100vw - 24px));
    background: rgba(17, 26, 32, 0.96);
    color: #f4fbff;
    border: 1px solid rgba(126, 203, 192, 0.45);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.38;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.floating-info-tip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.info-dot:focus-visible {
    outline: 2px solid rgba(104, 112, 243, 0.35);
    outline-offset: 2px;
}

.metric-label-with-tip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.metric-label-with-tip .metric-help-dot {
    width: 16px;
    height: 16px;
    margin-left: 0;
    font-size: 0.62rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    flex: 0 0 auto;
}

.btn {
    border: 1px solid rgba(25, 47, 44, 0.22) !important;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #ecece8 100%) !important;
    color: #232323 !important;
    box-shadow: none;
}

.btn-primary {
    border-color: rgba(66, 72, 143, 0.42) !important;
    background: linear-gradient(150deg, #737aff 0%, #535ce2 100%) !important;
    color: #f8fffc !important;
    box-shadow: 0 8px 18px rgba(66, 72, 143, 0.22) !important;
}

.btn-secondary {
    border-color: rgba(104, 112, 243, 0.34) !important;
    background: rgba(104, 112, 243, 0.1) !important;
    color: #535ce2;
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: rgba(104, 112, 243, 0.48) !important;
    background: rgba(104, 112, 243, 0.18);
    box-shadow: 0 6px 14px rgba(104, 112, 243, 0.18) !important;
}

.btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
}

.btn-payment-mono {
    gap: 10px;
    white-space: nowrap;
}

.btn-payment-mono::after {
    content: "";
    display: inline-block;
    width: 74px;
    height: 16px;
    flex: 0 0 74px;
    background: url("/static/img/payments/plata_light_bg.svg") center / contain no-repeat;
}

.btn-primary.btn-payment-mono::after,
button.btn-primary.btn-payment-mono::after,
html[data-theme="dark"] .btn-payment-mono::after {
    background-image: url("/static/img/payments/plata_dark_bg.svg");
}

html:not([data-theme="dark"]) .btn-primary.btn-payment-mono:hover::after,
html:not([data-theme="dark"]) button.btn-primary.btn-payment-mono:hover::after,
html:not([data-theme="dark"]) .btn-secondary.btn-payment-mono::after,
html:not([data-theme="dark"]) button.btn-secondary.btn-payment-mono::after,
html:not([data-theme="dark"]) .btn-payment-mono:hover::after {
    background-image: url("/static/img/payments/plata_light_bg.svg");
}

.btn-sm.btn-payment-mono {
    min-height: 36px;
    padding-inline: 14px;
}

.btn-block {
    width: 100%;
}

.role-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.role-form-inline input[type="text"],
.role-form-inline input[type="number"],
.role-form-inline .role-select {
    flex: 1 1 130px;
    min-width: 130px;
}

.role-form-inline .btn {
    flex: 0 0 auto;
}

.checkline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

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

.checkline {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin: 0;
}

.checkline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.checkline span {
    line-height: 1.25;
}

html[data-theme="dark"] .info-dot {
    border-color: rgba(124, 210, 197, 0.52);
    background: rgba(72, 179, 165, 0.2);
    color: #bff7ee;
}

html[data-theme="dark"] .btn {
    background: linear-gradient(180deg, rgba(39, 50, 61, 0.95) 0%, rgba(26, 34, 43, 0.96) 100%) !important;
    border-color: rgba(133, 161, 184, 0.32) !important;
    color: #e5eff8 !important;
}

html[data-theme="dark"] .btn-primary {
    border-color: rgba(76, 201, 183, 0.46) !important;
    background: linear-gradient(150deg, #1fa190 0%, #0c655c 100%) !important;
    color: #f5fffd !important;
}

html[data-theme="dark"] .btn-secondary {
    border-color: rgba(124, 210, 197, 0.4) !important;
    background: rgba(57, 154, 141, 0.16) !important;
    color: #bff7ee !important;
}

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

/* Settings UX unification (v1.31 polish) */
.settings-page {
    display: grid;
    gap: 16px;
}

.settings-page .panel {
    padding: 18px;
    border-radius: 14px;
}

.settings-page .panel-head {
    margin-bottom: 12px;
}

.settings-page .panel h2 {
    font-size: 1.12rem;
    line-height: 1.3;
}

.settings-page .settings-panel {
    max-width: none;
}

.settings-page .settings-grid {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.settings-page .table-wrap {
    border-radius: 12px;
}

.settings-page .btn {
    min-height: 38px;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 1rem;
    font-weight: 800;
}

.settings-page .btn-sm {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 0.8rem;
}

.settings-page .btn-sm.btn-payment-mono {
    min-height: 36px;
    padding-inline: 14px;
}

.settings-page .settings-actions {
    margin-top: 12px;
}

.settings-page .role-form-inline {
    gap: 6px;
}

.settings-page .role-form-inline input[type="text"],
.settings-page .role-form-inline input[type="number"],
.settings-page .role-form-inline .role-select {
    min-width: 124px;
    height: 34px;
}

.settings-page .compact-disclosure > summary {
    font-size: 0.82rem;
    padding: 4px 0;
}

.settings-page .checkline-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px 12px;
}

.settings-page .checkline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.settings-page .checkline {
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.66);
}

.settings-page .info-dot {
    width: 19px;
    height: 19px;
    font-size: 0.72rem;
}

.settings-page .info-dot::after {
    width: min(300px, 72vw);
    font-size: 0.78rem;
    font-weight: 700;
}

html[data-theme="dark"] .settings-page .checkline {
    border-color: rgba(130, 154, 176, 0.34);
    background: rgba(24, 31, 39, 0.76);
}

html[data-theme="dark"] .settings-page .table-wrap {
    background: rgba(20, 27, 35, 0.9);
}
html,
body {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

.page,
.settings-page,
.settings-page > .panel,
.settings-grid,
.insights-grid,
.insight-card,
.panel-head,
.panel-head > div,
.topbar-inner,
.top-nav {
    min-width: 0;
}

.insight-meta,
.referral-link,
.top-nav a,
.top-nav .nav-link-button {
    overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
    .settings-page .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .settings-page .settings-grid,
    .settings-page .checkline-grid {
        grid-template-columns: 1fr;
    }

    .settings-page .role-form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-page .role-form-inline .btn {
        width: 100%;
    }
    .topbar-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .panel {
        padding: 16px;
    }
}

/* Global i-help hints */
.auto-help-dot {
    margin-left: 6px;
}

label.has-help-dot {
    position: relative;
    padding-right: 30px;
}

label.has-help-dot .auto-help-label-dot {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
}

th .auto-help-th-dot {
    margin-left: 5px;
    vertical-align: middle;
}

@media (max-width: 720px) {
    label.has-help-dot {
        padding-right: 24px;
    }

    label.has-help-dot .auto-help-label-dot {
        top: 1px;
    }
}






* {
    scrollbar-width: thin;
    scrollbar-color: rgba(104, 112, 243, 0.45) rgba(104, 112, 243, 0.08);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(104, 112, 243, 0.08);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(104, 112, 243, 0.45);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 112, 243, 0.62);
}

/* Unified typography scale: inherit base sizes from the top of this file. */
body {
    overflow-x: hidden;
}

.table-wrap,
.admin-users-table-wrap,
.history-table-wrap {
    overflow-x: hidden !important;
    max-width: 100%;
}

table,
.history-table-wrap table,
.admin-users-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

th,
td {
    padding: 8px 9px;
    font-size: 0.86rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

th {
    font-size: 0.74rem;
}

.table-wrap code,
.table-wrap .tiny-note,
.table-wrap .muted {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-wrap .role-form-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.table-wrap .role-form-inline > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100%;
}

.table-wrap .btn,
.table-wrap .btn-sm,
.table-wrap .scan-action-btn,
.table-wrap .role-action-btn {
    min-width: 0 !important;
}

@media (max-width: 720px) {
    th,
    td {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
}

/* User cabinet dashboard UX */
.user-cabinet-panel {
    border-color: rgba(104, 112, 243, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 252, 250, 0.88) 100%);
}

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

.cabinet-card {
    border: 1px solid rgba(65, 55, 33, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    padding: 12px;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.cabinet-card h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
    font-family: "Space Grotesk", sans-serif;
}

.cabinet-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.cabinet-metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #69655b;
    font-weight: 800;
}

.cabinet-metric-value {
    font-size: 1rem;
    color: #203052;
}

.cabinet-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 5px;
    font-size: 0.84rem;
    color: #3c3a34;
}

.notification-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.notification-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.notification-tag {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(65, 55, 33, 0.2);
    color: #534f45;
}

.notification-body {
    display: grid;
    gap: 3px;
}

.notification-body strong {
    font-size: 0.86rem;
    line-height: 1.2;
}

.notification-body span {
    font-size: 0.8rem;
    color: #59564e;
    line-height: 1.35;
}

.notification-ok {
    border-color: rgba(83, 92, 226, 0.32);
    background: rgba(83, 92, 226, 0.08);
}

.notification-info {
    border-color: rgba(104, 112, 243, 0.3);
    background: rgba(104, 112, 243, 0.08);
}

.notification-warning {
    border-color: rgba(155, 111, 29, 0.32);
    background: rgba(155, 111, 29, 0.09);
}

.notification-critical {
    border-color: rgba(192, 59, 55, 0.34);
    background: rgba(192, 59, 55, 0.08);
}

.source-center-list {
    display: grid;
    gap: 8px;
}

.source-center-item {
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.65);
    display: grid;
    gap: 5px;
}

.source-center-item.is-ready {
    border-color: rgba(104, 112, 243, 0.28);
}

.source-center-item.is-empty {
    border-style: dashed;
    border-color: rgba(114, 108, 98, 0.3);
}

.source-center-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.source-center-slot {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #686459;
    font-weight: 800;
}

.source-center-state {
    font-size: 0.74rem;
    font-weight: 800;
    color: #535ce2;
}

.source-center-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1f302c;
}

.source-center-meta {
    font-size: 0.78rem;
    color: #5f5a50;
    line-height: 1.3;
}

.usage-timeline-wrap {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.usage-timeline-wrap h3 {
    margin: 0;
    font-size: 0.94rem;
    font-family: "Space Grotesk", sans-serif;
}

.usage-table-wrap {
    border-radius: 10px;
}

.usage-table th,
.usage-table td,
.dashboard-scan-table th,
.dashboard-scan-table td {
    font-size: 0.82rem;
}

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

@media (max-width: 920px) {
    .dashboard-scan-table,
    .usage-table {
        table-layout: auto;
    }

    .table-wrap {
        overflow-x: visible !important;
    }
}

@media (max-width: 760px) {
    .day-center-grid {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-actions {
        justify-content: flex-start;
    }

    .scan-per-page-select {
        max-width: none;
    }

    .scan-filter-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .heavy-progress-head,
    .heavy-progress-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .scan-filter-actions {
        width: 100%;
    }

    .scan-filter-actions .btn {
        flex: 1;
    }
}

html[data-theme="dark"] .user-cabinet-panel {
    background: linear-gradient(180deg, rgba(24, 33, 43, 0.92) 0%, rgba(20, 29, 37, 0.9) 100%);
    border-color: rgba(124, 210, 197, 0.34);
}

html[data-theme="dark"] .cabinet-card,
html[data-theme="dark"] .source-center-item,
html[data-theme="dark"] .notification-item {
    background: rgba(19, 27, 35, 0.78);
    border-color: rgba(130, 154, 176, 0.34);
}

html[data-theme="dark"] .cabinet-metric-label,
html[data-theme="dark"] .source-center-slot,
html[data-theme="dark"] .dashboard-scan-table td::before,
html[data-theme="dark"] .usage-table td::before {
    color: #90a8bd;
}

html[data-theme="dark"] .cabinet-list,
html[data-theme="dark"] .source-center-meta,
html[data-theme="dark"] .notification-body span {
    color: #c6d8e7;
}

html[data-theme="dark"] .cabinet-metric-value,
html[data-theme="dark"] .source-center-name,
html[data-theme="dark"] .notification-body strong {
    color: #edf7ff;
}

html[data-theme="dark"] .source-center-state {
    color: #8ff0e2;
}

/* Final responsive hardening v1.32 */
body {
    overflow-x: clip;
}

.container {
    width: min(var(--container), calc(100% - 20px));
}

.page {
    gap: 14px;
}

.panel {
    padding: 16px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.table-wrap,
.admin-users-table-wrap,
.history-table-wrap {
    overflow-x: hidden !important;
    max-width: 100%;
}

table,
.admin-users-table,
.history-table-wrap table,
.usage-table,
.dashboard-scan-table,
.mobile-friendly-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

th,
td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.admin-users-table th,
.admin-users-table td {
    width: auto !important;
}

.scan-actions {
    max-width: none;
}

.scan-action-btn {
    min-width: 74px !important;
    width: auto;
    height: 28px;
    font-size: 0.7rem;
    padding: 0 8px;
}

.settings-page .role-form-inline,
.table-wrap .role-form-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.settings-page .role-form-inline .btn,
.table-wrap .role-form-inline .btn,
.settings-page .role-form-inline .role-action-btn,
.table-wrap .role-form-inline .role-action-btn {
    grid-column: 1 / -1;
    width: 100%;
}

.insight-meta,
.muted,
.source-preview-url,
.source-url,
code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.floating-info-tip {
    max-width: min(280px, calc(100vw - 20px));
    font-size: 0.74rem;
    line-height: 1.35;
    z-index: 10000;
}

@media (max-width: 1100px) {
    .grid.two-col {
        grid-template-columns: 1fr;
    }

    .settings-page .settings-grid,
    .settings-page .checkline-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .topbar-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .panel {
        padding: 14px;
    }

    th,
    td {
        padding: 7px 8px;
    }

    .settings-page .role-form-inline,
    .table-wrap .role-form-inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .mobile-friendly-table thead {
        display: none;
    }

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

    .mobile-friendly-table tr {
        border-bottom: 1px solid rgba(65, 55, 33, 0.12);
        padding: 8px 0;
    }

    .mobile-friendly-table td {
        border: 0;
        padding: 4px 0;
    }

    .mobile-friendly-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #6f695d;
        font-weight: 800;
        margin-bottom: 2px;
    }

    html[data-theme="dark"] .mobile-friendly-table td::before {
        color: #96afc4;
    }
}

/* User cabinet compact mode */
.user-cabinet-panel {
    padding: 12px;
}

.user-cabinet-panel .panel-head {
    margin-bottom: 6px;
}

.user-cabinet-panel h1 {
    font-size: 1.56rem;
    margin-bottom: 4px;
}

.user-cabinet-panel > .panel-head .muted {
    font-size: 1rem;
    line-height: 1.35;
}

.cabinet-grid {
    gap: 8px;
}

.cabinet-card {
    border-radius: 10px;
    padding: 8px 10px;
    gap: 6px;
}

.cabinet-card h3 {
    font-size: 0.98rem;
}

.cabinet-card-compact {
    padding: 7px 9px;
}

.cabinet-metric-label {
    font-size: 0.78rem;
}

.cabinet-metric-value {
    font-size: 1rem;
}

.cabinet-list {
    margin: 0;
    padding-left: 16px;
    font-size: 0.84rem;
    gap: 2px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-list-main,
.notification-list-compact {
    gap: 5px;
}

.notification-item {
    padding: 6px;
    border-radius: 8px;
}

.notification-tag {
    padding: 2px 7px;
    font-size: 0.72rem;
}

.notification-body strong {
    font-size: 0.86rem;
}

.notification-body span {
    font-size: 0.8rem;
    line-height: 1.28;
}

.cabinet-extra-disclosure {
    margin-top: 2px;
}

.cabinet-extra-disclosure > summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.source-center-list-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.source-center-list-compact .source-center-item {
    padding: 6px;
    gap: 4px;
}

.source-center-list-compact .source-center-slot {
    font-size: 0.76rem;
}

.source-center-list-compact .source-center-state {
    font-size: 0.74rem;
}

.source-center-list-compact .source-center-name {
    font-size: 0.88rem;
}

.source-center-list-compact .source-center-meta {
    font-size: 0.78rem;
}

.usage-timeline-wrap {
    margin-top: 8px;
}

.usage-collapse > summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.usage-collapse[open] .usage-table-wrap {
    margin-top: 6px;
}

.usage-table th,
.usage-table td {
    padding: 5px 6px;
    font-size: 0.82rem;
}

@media (max-width: 1200px) {
    .cabinet-list {
        grid-template-columns: 1fr;
    }

    .source-center-list-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .day-center-grid {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-actions {
        justify-content: flex-start;
    }

    .scan-per-page-select {
        max-width: none;
    }

    .scan-filter-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .scan-filter-actions {
        width: 100%;
    }

    .scan-filter-actions .btn {
        flex: 1;
    }
}

/* Cabinet compact layout without duplicates */
.cabinet-grid-compact {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 8px;
    align-items: start;
}

.cabinet-grid-compact .cabinet-card {
    min-height: 0;
}

.cabinet-grid-compact .cabinet-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-grid-compact .notification-list-main,
.cabinet-grid-compact .notification-list-compact {
    gap: 4px;
}

.cabinet-grid-compact .source-center-list-compact .source-center-item {
    min-height: 0;
}

.cabinet-grid-compact .source-center-list-compact .source-url {
    font-size: 0.7rem;
}

@media (max-width: 1320px) {
    .cabinet-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cabinet-grid-compact {
        grid-template-columns: 1fr;
    }

    .cabinet-grid-compact .cabinet-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Unified typography baseline v1.31.2 */
.panel h1 {
    font-size: 1.26rem;
}

.panel .muted {
    font-size: 1rem;
}

.panel .muted.small,
.panel .tiny-note {
    font-size: 0.84rem;
}

.settings-page .panel h1,
.settings-page .panel h2,
.user-cabinet-panel h1 {
    font-size: 1.26rem;
}

.user-cabinet-panel > .panel-head .muted {
    font-size: 1rem;
}

.user-cabinet-panel .tiny-note {
    font-size: 0.84rem;
}

.cabinet-card h3 {
    font-size: 0.98rem;
}

.cabinet-metric-label {
    font-size: 0.78rem;
}

.cabinet-metric-value {
    font-size: 1rem;
}

.cabinet-list {
    font-size: 0.84rem;
}

.notification-tag {
    font-size: 0.72rem;
}

.notification-body strong {
    font-size: 0.86rem;
}

.notification-body span {
    font-size: 0.8rem;
}

.source-center-slot {
    font-size: 0.76rem;
}

.source-center-state {
    font-size: 0.74rem;
}

.source-center-name {
    font-size: 0.88rem;
}

.source-center-meta {
    font-size: 0.78rem;
}

.usage-collapse > summary {
    font-size: 0.82rem;
}

.usage-table th,
.usage-table td {
    font-size: 0.74rem;
}



/* Sprint 1 UX 2026: clarity, disclosure, adaptive components */
@view-transition {
    navigation: auto;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Keep only one tooltip implementation (JS floating tooltip). */
.info-dot::after {
    content: none !important;
    display: none !important;
}

.floating-info-tip {
    max-width: min(320px, calc(100vw - 20px));
    font-size: 0.8rem;
    line-height: 1.35;
    pointer-events: none;
    z-index: 12000;
}

/* Progressive disclosure for scan row actions. */
.scan-actions {
    display: grid;
    gap: 6px;
    justify-items: start;
    max-width: 160px;
}

.scan-actions > .scan-action-btn {
    width: 100%;
}

.scan-actions-more {
    width: 100%;
}

.scan-actions-more > summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(104, 112, 243, 0.36);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.12);
    color: #535ce2;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.scan-actions-more > summary::-webkit-details-marker {
    display: none;
}

.scan-actions-more[open] > summary {
    background: rgba(104, 112, 243, 0.18);
    border-color: rgba(104, 112, 243, 0.5);
}

.scan-actions-menu {
    margin-top: 6px;
    display: grid;
    gap: 6px;
}

.scan-actions-menu .scan-action-btn {
    width: 100%;
}

/* Component-level responsiveness. */
.panel,
.settings-page .panel,
.user-cabinet-panel {
    container-type: inline-size;
}

@container (max-width: 760px) {
    .inline-fields,
    .insights-grid,
    .stats-grid,
    .cabinet-grid,
    .cabinet-grid-compact {
        grid-template-columns: 1fr;
    }

    .scan-actions {
        max-width: none;
        width: 100%;
    }

    .scan-action-btn,
    .scan-actions-more > summary {
        width: 100%;
    }
}

/* Prevent side overflow while keeping table usability. */
.table-wrap,
.admin-users-table-wrap,
.history-table-wrap {
    overflow-x: auto !important;
    max-width: 100%;
}

table,
.admin-users-table,
.history-table-wrap table,
.usage-table,
.dashboard-scan-table,
.mobile-friendly-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
}

th,
td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 980px) {
    .topbar-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/* Version 1.33 UX standard */
.skip-link {
    position: absolute;
    left: 12px;
    top: -44px;
    z-index: 20000;
    background: #535ce2;
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.skip-link:focus-visible {
    top: 10px;
    outline: 3px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
}

:focus-visible {
    outline: 3px solid rgba(104, 112, 243, 0.48);
    outline-offset: 2px;
}

.task-focus {
    margin-top: 10px;
    border: 1px solid rgba(104, 112, 243, 0.32);
    border-radius: 12px;
    background: rgba(104, 112, 243, 0.08);
    padding: 10px 12px;
}

.task-focus strong {
    display: inline-block;
    margin-bottom: 4px;
    color: #0f5f57;
}

.task-focus-steps {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 2px;
    color: #2f312c;
    font-size: 0.84rem;
}

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

.scan-guidance-card {
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px;
    display: grid;
    gap: 4px;
}

.scan-guidance-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c675d;
    font-weight: 800;
}

.scan-guidance-value {
    font-size: 0.86rem;
    color: #143c37;
    line-height: 1.35;
}

.locale-strict-note {
    margin-top: 8px;
}

.main-task-panel .panel-head h2 {
    margin-bottom: 4px;
}

.alert {
    border-left: 4px solid transparent;
}

.alert.error {
    border-left-color: rgba(192, 59, 55, 0.7);
}

.alert.success,
.alert.info {
    border-left-color: rgba(104, 112, 243, 0.56);
}

@container (max-width: 920px) {
    .scan-guidance {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .day-center-grid {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-actions {
        justify-content: flex-start;
    }

    .scan-per-page-select {
        max-width: none;
    }

    .scan-filter-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .scan-filter-actions {
        width: 100%;
    }

    .scan-filter-actions .btn {
        flex: 1;
    }
}


/* v1.33 product upgrades */
.day-center-panel {
    padding-top: 16px;
}

.day-center-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.day-center-card {
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px;
    display: grid;
    gap: 8px;
    min-height: 100px;
}

.day-center-card h3 {
    margin: 0;
    font-size: 0.92rem;
}

.day-center-list {
    gap: 6px;
    padding-left: 17px;
    font-size: 0.84rem;
}

.day-center-actions {
    display: grid;
    gap: 6px;
}

.day-action-btn {
    justify-content: flex-start;
}

.notification-action-btn {
    margin-top: 4px;
}

.scan-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
}

.scan-filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-preset-btn {
    min-height: 34px;
}

.filter-preset-btn.is-active {
    border-color: rgba(104, 112, 243, 0.52);
    background: rgba(104, 112, 243, 0.2);
    color: #0f5f57;
}

.scan-filter-main-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.scan-filter-search {
    width: 100%;
    min-width: 0;
}

.scan-filter-main-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.scan-per-page-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.scan-per-page-select {
    min-width: 92px;
    max-width: 120px;
    height: 36px;
    padding: 6px 28px 6px 10px;
    font-size: 0.84rem;
}
.scan-filter-options-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scan-filter-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.scan-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.scan-focus-indicator {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.scan-focus-title {
    margin: 4px 0 6px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.scan-focus-indicator__hint {
    color: var(--text-muted);
}

.scan-focus-indicator__reset {
    margin-left: auto;
    font-weight: 700;
}









.scan-filter-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}
html[data-theme="dark"] .day-center-card {
    background: rgba(20, 27, 37, 0.96);
    border-color: rgba(137, 169, 211, 0.24);
}

html[data-theme="dark"] .filter-preset-btn.is-active {
    background: rgba(124, 226, 213, 0.2);
    border-color: rgba(124, 226, 213, 0.5);
    color: #cffdf7;
}






/* Dashboard cleanup v1.33.2 */
.user-cabinet-panel {
    padding: 18px;
}

.user-cabinet-panel .panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.user-cabinet-panel > .panel-head .muted {
    margin-top: 4px;
    max-width: 64ch;
}

.cabinet-grid-compact {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 0.9fr;
    gap: 12px;
    align-items: stretch;
}

.cabinet-grid-compact .cabinet-card {
    min-height: 230px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.cabinet-grid-compact .cabinet-metric-row {
    align-items: flex-start;
}

.cabinet-grid-compact .cabinet-metric-value {
    text-align: right;
    font-size: 1.05rem;
    line-height: 1.2;
}

.cabinet-grid-compact .cabinet-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cabinet-grid-compact .notification-list-main,
.cabinet-grid-compact .notification-list-compact {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.cabinet-grid-compact .notification-item {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    min-height: 0;
}

.cabinet-grid-compact .notification-body {
    gap: 5px;
}

.cabinet-grid-compact .notification-action-btn {
    align-self: start;
}

.cabinet-grid-compact .source-center-list-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cabinet-grid-compact .source-center-list-compact .source-center-item {
    min-height: 132px;
}

.cabinet-grid-compact .source-center-name {
    line-height: 1.25;
}

.cabinet-grid-compact .source-center-meta {
    line-height: 1.35;
}

@media (max-width: 1350px) {
    .cabinet-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cabinet-grid-compact .cabinet-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .user-cabinet-panel {
        padding: 14px;
    }

    .cabinet-grid-compact {
        grid-template-columns: 1fr;
    }

    .cabinet-grid-compact .cabinet-card {
        min-height: 0;
    }

    .cabinet-grid-compact .source-center-list-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .user-cabinet-panel .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-cabinet-panel .badge {
        align-self: flex-start;
    }

    .cabinet-grid-compact .source-center-list-compact {
        grid-template-columns: 1fr;
    }
}

/* v1.33.4 Cabinet redesign (clean, balanced, no jumps) */
.user-cabinet-panel {
    padding: 20px;
    border-color: rgba(104, 112, 243, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 250, 248, 0.9) 100%);
}

.user-cabinet-panel .panel-head {
    margin-bottom: 14px;
    align-items: flex-start;
}

.user-cabinet-panel h1 {
    margin-bottom: 4px;
}

.user-cabinet-panel > .panel-head .muted {
    max-width: 64ch;
    line-height: 1.4;
}

.cabinet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.cabinet-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.cabinet-layout .cabinet-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(65, 55, 33, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 2px 10px rgba(31, 34, 33, 0.04);
    display: grid;
    gap: 10px;
}

.cabinet-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cabinet-card-head h3,
.cabinet-layout .cabinet-card h3 {
    margin: 0;
    font-size: 1.02rem;
}

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

.cabinet-kpi {
    border: 1px solid rgba(65, 55, 33, 0.13);
    border-radius: 10px;
    background: rgba(248, 249, 247, 0.84);
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.cabinet-kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #69655b;
    font-weight: 800;
}

.cabinet-kpi-value {
    font-size: 1.05rem;
    color: #203052;
    line-height: 1.2;
}

.cabinet-list-clean {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.cabinet-list-clean li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(65, 55, 33, 0.12);
    background: rgba(255, 255, 255, 0.58);
}

.cabinet-list-clean li span {
    color: #4f4c45;
    font-size: 0.9rem;
}

.cabinet-list-clean li strong {
    color: #1d332f;
    font-size: 0.92rem;
    text-align: right;
    line-height: 1.3;
}

.cabinet-list-clean li em {
    grid-column: 1 / -1;
    font-style: normal;
    color: #6a665d;
    font-size: 0.8rem;
    margin-top: -2px;
}

.cabinet-note-card .notification-list-main,
.cabinet-note-card .notification-list-compact {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.cabinet-note-card .notification-item {
    min-height: 0;
}

.cabinet-note-card .notification-action-btn {
    width: fit-content;
    min-width: 170px;
}

.cabinet-source-card .source-center-list-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cabinet-source-card .source-center-item {
    min-height: 128px;
}

.cabinet-source-card .source-center-name {
    line-height: 1.25;
}

.cabinet-source-card .source-center-meta {
    line-height: 1.35;
}

@media (max-width: 1320px) {
    .cabinet-layout {
        grid-template-columns: 1fr;
    }

    .cabinet-side {
        grid-template-columns: 1fr;
    }

    .cabinet-source-card .source-center-list-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .user-cabinet-panel {
        padding: 14px;
    }

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

    .cabinet-list-clean li {
        grid-template-columns: 1fr;
    }

    .cabinet-list-clean li strong {
        text-align: left;
    }

    .cabinet-source-card .source-center-list-compact {
        grid-template-columns: 1fr;
    }

    .cabinet-note-card .notification-action-btn {
        width: 100%;
        min-width: 0;
    }
}

html[data-theme="dark"] .user-cabinet-panel {
    background: linear-gradient(180deg, rgba(24, 33, 43, 0.92) 0%, rgba(20, 29, 37, 0.9) 100%);
    border-color: rgba(124, 210, 197, 0.34);
}

html[data-theme="dark"] .cabinet-layout .cabinet-card,
html[data-theme="dark"] .cabinet-kpi,
html[data-theme="dark"] .cabinet-list-clean li {
    background: rgba(19, 27, 35, 0.78);
    border-color: rgba(130, 154, 176, 0.34);
}

html[data-theme="dark"] .cabinet-list-clean li span,
html[data-theme="dark"] .cabinet-list-clean li em,
html[data-theme="dark"] .cabinet-kpi-label {
    color: #a9bfd2;
}

html[data-theme="dark"] .cabinet-list-clean li strong,
html[data-theme="dark"] .cabinet-kpi-value {
    color: #edf7ff;
}

/* --- Landing page (v1.33) --- */
.top-nav-guest {
    gap: 10px;
}

.top-nav-guest .topbar-cta {
    padding: 8px 14px;
    font-size: 0.86rem;
    min-height: 38px;
}

.landing-page {
    display: grid;
    gap: 16px;
}

.landing-hero {
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 16px;
    align-items: stretch;
}

.hero-copy {
    display: grid;
    gap: 12px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    line-height: 1.18;
}

.hero-list {
    margin-top: 2px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-primary-cta,
.hero-secondary-cta {
    min-height: 56px !important;
    border-radius: 999px !important;
    padding: 0 30px !important;
    font-size: 1rem !important;
}

.hero-side {
    display: grid;
    gap: 10px;
}

.landing-stat {
    border: 1px solid rgba(45, 42, 35, 0.16);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.76);
    padding: 12px;
    display: grid;
    gap: 6px;
}

.landing-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6d685f;
    font-weight: 800;
}

.landing-stat-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
    line-height: 1.3;
}

.landing-stat-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.42;
}

.landing-section {
    display: grid;
    gap: 12px;
}

.landing-section > h2 {
    margin: 0;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.step-card {
    border: 1px solid rgba(52, 49, 42, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
    display: grid;
    gap: 6px;
}

.step-card h3 {
    margin: 0;
    font-size: 0.95rem;
}

.step-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.step-index {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(104, 112, 243, 0.35);
    color: var(--accent-dark);
    background: rgba(104, 112, 243, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
}

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

.tariff-card {
    border: 1px solid rgba(46, 43, 35, 0.15);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.73);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.tariff-card-accent {
    border-color: rgba(104, 112, 243, 0.44);
    box-shadow: 0 12px 26px rgba(104, 112, 243, 0.13);
}

.tariff-head {
    display: grid;
    gap: 6px;
}

.tariff-head h3 {
    margin: 0;
    font-size: 1rem;
}

.tariff-price {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.12rem;
    color: #535ce2;
}

.tariff-list {
    margin: 0;
    line-height: 1.45;
    font-size: 0.9rem;
}

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-item {
    border: 1px solid rgba(58, 51, 39, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
}

.faq-item > summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 0.94rem;
    list-style: none;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: "+";
    float: right;
    font-weight: 900;
    color: var(--accent-dark);
}

.faq-item[open] > summary::after {
    content: "в€’";
}

.faq-item p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

.landing-cta {
    text-align: center;
}

.landing-cta p {
    max-width: 680px;
    margin: 0 auto;
}

.landing-cta .hero-actions {
    justify-content: center;
}

@media (max-width: 1200px) {
    .landing-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .hero-copy h1 {
        font-size: clamp(1.45rem, 6vw, 1.8rem);
    }

    .top-nav-guest .topbar-cta {
        min-height: 34px;
        padding: 7px 11px;
    }
}

@media (max-width: 680px) {
    .landing-steps,
    .tariff-grid {
        grid-template-columns: 1fr;
    }

    .faq-item > summary {
        padding-right: 18px;
    }

    .top-nav-guest {
        display: none;
    }
}

html[data-theme="dark"] .landing-stat,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .tariff-card,
html[data-theme="dark"] .faq-item {
    background: rgba(16, 25, 36, 0.82);
    border-color: rgba(117, 150, 185, 0.25);
}

html[data-theme="dark"] .tariff-price {
    color: #6de4d2;
}

html[data-theme="dark"] .landing-stat-label {
    color: #9eb5ce;
}

/* --- Auth + Loader + Landing polish (v1.34 draft) --- */
.page-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(246, 243, 234, 0.92);
    backdrop-filter: blur(6px);
    z-index: 120;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader-box {
    border: 1px solid rgba(104, 112, 243, 0.25);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 14px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4d5488;
    font-weight: 700;
}

.page-loader-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(104, 112, 243, 0.25);
    border-top-color: #6870f3;
    animation: loader-spin 0.8s linear infinite;
}

.page-transition-loader {
    z-index: 9999;
}

.page-transition-loader-box {
    width: min(420px, calc(100vw - 32px));
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(54, 61, 145, 0.16);
}

.page-transition-loader-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-transition-loader-head > div {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.page-transition-loader-head strong {
    color: #2f356c;
    font-size: 0.98rem;
    line-height: 1.2;
}

.page-transition-loader-head span:not(.page-loader-spinner) {
    color: #737aa5;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.page-transition-loader-percent {
    min-width: 48px;
    text-align: right;
    color: #535ce2;
    font-size: 0.98rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.page-transition-loader-bar {
    position: relative;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.12);
}

.page-transition-loader-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #535ce2 0%, #6870f3 64%, #8f95ff 100%);
    box-shadow: 0 0 18px rgba(83, 92, 226, 0.28);
    transform: none;
    transition: width 0.18s ease;
}

.page-transition-loader.is-waiting .page-transition-loader-bar span,
.page-transition-loader.is-unknown-total .page-transition-loader-bar span {
    width: 36%;
    transform: translateX(-120%);
    animation: page-transition-loader-wait 1.2s ease-in-out infinite;
}

.page-transition-loader.is-waiting .page-transition-loader-percent,
.page-transition-loader.is-unknown-total .page-transition-loader-percent {
    min-width: 58px;
}

.action-pill.is-loading {
    pointer-events: none;
    opacity: 0.82;
}

.action-pill.is-loading .inline-icon {
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes page-transition-loader-bar {
    0% {
        transform: translateX(-110%) scaleX(0.55);
    }

    55% {
        transform: translateX(95%) scaleX(1);
    }

    100% {
        transform: translateX(230%) scaleX(0.65);
    }
}

@keyframes page-transition-loader-wait {
    0% {
        transform: translateX(-120%);
    }

    55% {
        transform: translateX(115%);
    }

    100% {
        transform: translateX(280%);
    }
}

.alert.warning {
    color: #855f18;
    background: rgba(249, 211, 121, 0.24);
    border: 1px solid rgba(155, 111, 29, 0.34);
}

.auth-panel {
    display: grid;
    gap: 10px;
}

.auth-links-featured {
    margin-top: 2px;
    font-size: 0.94rem;
}

.auth-links-featured a {
    color: #535ce2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.auth-links-featured a:hover {
    color: #444bc8;
    text-decoration-thickness: 2px;
}

.password-policy-box {
    border: 1px solid rgba(104, 112, 243, 0.26);
    background: rgba(104, 112, 243, 0.09);
    border-radius: 11px;
    padding: 10px 12px;
    display: grid;
    gap: 6px;
}

.password-policy-box strong {
    font-size: 0.83rem;
    color: #535ce2;
}

.password-policy-box ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #4d5488;
    display: grid;
    gap: 3px;
}

.resend-form {
    margin-top: 2px;
}

.inline-resend-form {
    margin-top: 8px;
}

.demo-access-alert {
    display: grid;
    gap: 8px;
}

.tariff-card {
    min-height: 100%;
}

.tariff-card-recommended {
    border-color: rgba(104, 112, 243, 0.42);
    box-shadow: 0 14px 24px rgba(104, 112, 243, 0.14);
}

.tariff-badge {
    display: inline-flex;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.14);
    border: 1px solid rgba(104, 112, 243, 0.33);
    color: #0e655d;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tariff-note {
    margin: 0;
    color: #5f5b52;
    font-size: 0.84rem;
}

.tariff-cta {
    width: 100%;
}

.landing-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    gap: 12px;
}

.trust-card {
    border: 1px solid rgba(62, 57, 47, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.73);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.trust-card h2 {
    margin: 0;
}

.support-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.support-list strong {
    color: #1d4f4a;
}

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

.review-card {
    border: 1px solid rgba(52, 49, 42, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.review-card p {
    margin: 0;
    color: #4f4b43;
    line-height: 1.5;
    font-size: 0.9rem;
}

.review-card strong {
    color: #0f6259;
    font-size: 0.86rem;
}

.landing-footer {
    padding: 16px 18px;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
}

.landing-footer h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}


.footer-brand-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
}

.footer-links {
    margin: 0;
    padding-left: 0;
    list-style: none;
    gap: 6px;
}

.footer-links a {
    color: #535ce2;
    text-decoration: none;
    font-weight: 600;
}

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

.footer-legal-note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(27, 58, 56, 0.14);
    color: #5b5f57;
    font-size: 0.76rem;
    line-height: 1.55;
}

@media (max-width: 1080px) {
    .landing-two-col,
    .review-grid,
    .landing-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .day-center-grid {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-actions {
        justify-content: flex-start;
    }

    .scan-per-page-select {
        max-width: none;
    }

    .scan-filter-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .scan-filter-actions {
        width: 100%;
    }

    .scan-filter-actions .btn {
        flex: 1;
    }
}

html[data-theme="dark"] .page-loader {
    background: rgba(8, 13, 20, 0.9);
}

html[data-theme="dark"] .page-loader-box,
html[data-theme="dark"] .trust-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .landing-footer {
    background: rgba(15, 24, 35, 0.9);
    border-color: rgba(116, 151, 190, 0.28);
}

html[data-theme="dark"] .page-transition-loader-head strong {
    color: #e6f0ff;
}

html[data-theme="dark"] .page-transition-loader-head span:not(.page-loader-spinner) {
    color: #aebdd7;
}

html[data-theme="dark"] .page-transition-loader-percent {
    color: #9da7ff;
}

html[data-theme="dark"] .page-transition-loader-bar {
    background: rgba(116, 151, 190, 0.16);
}

html[data-theme="dark"] .footer-legal-note {
    border-top-color: rgba(116, 151, 190, 0.28);
    color: #9fb4c8;
}

html[data-theme="dark"] .password-policy-box {
    background: rgba(35, 96, 88, 0.22);
    border-color: rgba(89, 173, 159, 0.35);
}


/* Audit fixes v1.35: form UX + FAQ readability + stable scroll gutter */
html {
    scrollbar-gutter: stable;
}

.auth-links-featured a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 2px 0;
}

.faq-item {
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-item > summary::after {
    float: none;
    margin-left: auto;
    width: 20px;
    text-align: center;
}

.faq-item > summary:focus-visible {
    outline: 2px solid rgba(104, 112, 243, 0.55);
    outline-offset: 3px;
    border-radius: 6px;
}

.faq-item[open] {
    border-color: rgba(104, 112, 243, 0.5);
    background: rgba(222, 247, 243, 0.9);
    box-shadow: inset 0 0 0 1px rgba(104, 112, 243, 0.18);
}

.faq-item[open] > summary {
    color: #535ce2;
}

.faq-item[open] p {
    color: #224846;
}

html[data-theme="dark"] .faq-item[open] {
    background: rgba(22, 46, 58, 0.92);
    border-color: rgba(109, 228, 210, 0.42);
    box-shadow: inset 0 0 0 1px rgba(109, 228, 210, 0.2);
}

html[data-theme="dark"] .faq-item[open] > summary,
html[data-theme="dark"] .faq-item[open] p {
    color: #d2f5ee;
}


/* Audit UX polish v1.36: feedback, confirmations, filters, source actions */
.scan-status-note {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #6e6458;
    max-width: 260px;
    word-break: break-word;
}

.scan-filter-hint {
    margin: 6px 0 10px;
    font-size: 0.8rem;
    color: #4f5a58;
    line-height: 1.4;
}
.scan-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
}

.scan-pagination-meta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.scan-pagination-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.feed-slot-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-clear-hidden-form {
    display: none !important;
}

.source-url-disclosure > summary,
.scan-actions-more > summary,
.cabinet-extra-disclosure > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #535ce2;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(11, 118, 109, 0.26);
    background: rgba(104, 112, 243, 0.08);
    padding: 3px 8px;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.source-url-disclosure > summary:hover,
.scan-actions-more > summary:hover,
.cabinet-extra-disclosure > summary:hover {
    background: rgba(104, 112, 243, 0.16);
    border-color: rgba(11, 118, 109, 0.42);
    color: #444bc8;
}

.source-url {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #3b4c4a;
    overflow-wrap: anywhere;
}

.captcha-box {
    margin-top: 4px;
    border: 1px solid rgba(104, 112, 243, 0.24);
    border-radius: 12px;
    background: rgba(104, 112, 243, 0.08);
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.captcha-box-head {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #145f57;
}

.captcha-box-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(140px, 200px);
    align-items: center;
    gap: 10px;
}

.turnstile-wrap {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.turnstile-wrap .cf-turnstile {
    width: 100%;
    min-height: 65px;
}

.captcha-image-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 4px 40px 4px 4px;
    border: 1px dashed rgba(104, 112, 243, 0.36);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    position: relative;
}

.captcha-image {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
}

.captcha-refresh-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(11, 118, 109, 0.35);
    background: #ecf8f6;
    color: #0d6e66;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.captcha-refresh-btn:hover {
    background: #dff2ef;
    border-color: rgba(11, 118, 109, 0.55);
}

.captcha-refresh-btn:disabled {
    opacity: 0.62;
    cursor: wait;
}

.captcha-refresh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

.captcha-refresh-btn:hover .captcha-refresh-icon {
    transform: rotate(15deg);
}

.captcha-refresh-btn.is-spinning .captcha-refresh-icon {
    animation: loader-spin 0.75s linear infinite;
}

.captcha-question {
    margin: 0;
    font-size: 0.92rem;
    color: #2f3d3b;
}

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 17, 0.46);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1300;
}

.confirm-modal-overlay.is-open {
    display: flex;
}

.confirm-modal {
    width: min(440px, 100%);
    border-radius: 14px;
    border: 1px solid rgba(14, 60, 60, 0.24);
    background: #fffdf7;
    box-shadow: 0 22px 42px rgba(6, 33, 33, 0.3);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.confirm-modal-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
}

.confirm-modal-text {
    margin: 0;
    color: #4c5352;
    line-height: 1.45;
}

.confirm-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn.is-loading,
button.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.86;
}

.btn.is-loading::after,
button.is-loading::after {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #ffffff;
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -6px;
    animation: loader-spin 0.75s linear infinite;
}

.floating-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    width: min(390px, calc(100% - 28px));
    display: grid;
    gap: 8px;
    z-index: 1500;
}

.floating-toast {
    border-radius: 11px;
    border: 1px solid rgba(136, 140, 213, 0.24);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(66, 72, 143, 0.2);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px;
    animation: toast-in 0.18s ease;
}

.floating-toast.success {
    border-left: 4px solid #6870f3;
}

.floating-toast.warning {
    border-left: 4px solid #d09a2a;
}

.floating-toast.error {
    border-left: 4px solid #c44c4c;
}

.floating-toast.is-out {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.floating-toast-text {
    color: #203052;
    font-size: 0.87rem;
    line-height: 1.35;
}

.floating-toast-close {
    border: 0;
    background: transparent;
    color: #858aae;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 820px) {
    .captcha-box-row {
        grid-template-columns: 1fr;
    }

    .confirm-modal-actions {
        justify-content: stretch;
    }

    .confirm-modal-actions .btn {
        flex: 1;
    }
}

html[data-theme="dark"] .scan-status-note {
    color: #a5bab8;
}

html[data-theme="dark"] .scan-filter-hint,
html[data-theme="dark"] .captcha-question,
html[data-theme="dark"] .source-url {
    color: #b8cdcc;
}

html[data-theme="dark"] .captcha-box {
    background: rgba(23, 72, 72, 0.34);
    border-color: rgba(110, 176, 169, 0.32);
}

html[data-theme="dark"] .captcha-box-head {
    color: #8cd9cc;
}

html[data-theme="dark"] .captcha-image-wrap {
    background: rgba(7, 20, 22, 0.6);
    border-color: rgba(110, 176, 169, 0.42);
}

html[data-theme="dark"] .captcha-refresh-btn {
    background: rgba(10, 36, 39, 0.96);
    border-color: rgba(110, 176, 169, 0.5);
    color: #8fe8de;
}

html[data-theme="dark"] .captcha-refresh-btn:hover {
    background: rgba(14, 52, 56, 0.96);
    border-color: rgba(143, 232, 222, 0.6);
}

html[data-theme="dark"] .source-url-disclosure > summary,
html[data-theme="dark"] .scan-actions-more > summary,
html[data-theme="dark"] .cabinet-extra-disclosure > summary {
    color: #89e0d2;
}

html[data-theme="dark"] .source-url-disclosure > summary:hover,
html[data-theme="dark"] .scan-actions-more > summary:hover,
html[data-theme="dark"] .cabinet-extra-disclosure > summary:hover {
    background: rgba(52, 137, 124, 0.22);
    color: #b4f2e8;
}

html[data-theme="dark"] .confirm-modal {
    background: #111c29;
    border-color: rgba(124, 172, 187, 0.36);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .confirm-modal-title {
    color: #ecf4ff;
}

html[data-theme="dark"] .confirm-modal-text {
    color: #bdd0e5;
}

html[data-theme="dark"] .floating-toast {
    background: #112031;
    border-color: rgba(112, 151, 176, 0.34);
}

html[data-theme="dark"] .floating-toast-text {
    color: #d9e6f6;
}

html[data-theme="dark"] .floating-toast-close {
    color: #a7b5c4;
}

/* Select readability in light/dark themes */
select,
input,
textarea {
    max-width: 100%;
}

select {
    background-color: #fffefa;
}

select:focus-visible {
    position: relative;
    z-index: 3;
}

select option {
    background: #ffffff;
    color: #1f2424;
}

html[data-theme="dark"] select {
    background: #0f1a27;
    color: #e5eef8;
    border-color: rgba(112, 151, 176, 0.46);
}

html[data-theme="dark"] select option {
    background: #122031;
    color: #eaf3ff;
}





/* Scan filters + scan table: clean operational layout (RU-first) */
.scan-filter-main-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.scan-filter-main-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.scan-filter-main-actions > * {
    flex: 0 0 auto;
}

.scan-per-page-label {
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    color: #666150;
}

.scan-per-page-select {
    width: 120px !important;
    min-width: 120px;
    max-width: 120px;
    height: 38px;
    padding: 6px 30px 6px 12px;
    font-size: 0.84rem;
}

.scan-sort-by-select {
    width: 238px !important;
    min-width: 238px;
    max-width: 238px;
    height: 38px;
    padding: 6px 30px 6px 12px;
    font-size: 0.84rem;
}

.scan-sort-dir-select {
    width: 182px !important;
    min-width: 182px;
    max-width: 182px;
    height: 38px;
    padding: 6px 30px 6px 12px;
    font-size: 0.84rem;
}

.scan-filter-main-actions .btn {
    min-width: 146px;
    height: 38px;
}

.scan-filter-options-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.scan-filter-flags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 12px;
    width: 100%;
}

.scan-filter-flags .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 12px;
    background: rgba(104, 112, 243, 0.04);
    line-height: 1.25;
    font-size: 0.95rem;
}

.scan-gap-input {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    width: min(300px, 100%);
}

.scan-gap-input span {
    font-weight: 700;
    color: #484537;
}

.scan-gap-input input {
    height: 38px;
}

.scan-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-self: end;
}

.scan-filter-hint {
    margin: -2px 0 0;
    font-size: 0.82rem;
    color: #5f665c;
}

.scan-filter-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.scan-filter-top-row .scan-filter-presets {
    flex: 1 1 auto;
    min-width: 280px;
}

.scan-filter-top-row .scan-filter-actions {
    flex: 0 0 auto;
}

.scan-filter-search-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.scan-filter-search-row .scan-filter-search {
    height: 42px;
}

.scan-filter-search-row .btn {
    min-width: 136px;
    height: 42px;
}

.scan-filter-controls-row {
    display: grid;
    grid-template-columns: minmax(112px, 0.38fr) minmax(230px, 0.8fr) minmax(170px, 0.55fr) minmax(210px, 0.7fr);
    gap: 10px;
    align-items: end;
}

.scan-filter-control {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.scan-filter-control > span {
    color: #66777e;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scan-filter-control select,
.scan-filter-control input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px;
}

.scan-filter-control.scan-gap-input {
    grid-column: auto;
    width: auto;
}

.scan-filter-form > .scan-filter-flags {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 14px;
    background: rgba(248, 252, 251, 0.82);
}

.scan-filter-form > .scan-filter-flags .checkbox-label {
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.84rem;
}

html[data-theme="dark"] .scan-filter-control > span {
    color: #9bb4c7;
}

html[data-theme="dark"] .scan-filter-form > .scan-filter-flags {
    background: rgba(18, 25, 32, 0.62);
    border-color: rgba(126, 156, 178, 0.24);
}

html[data-theme="dark"] .scan-filter-form > .scan-filter-flags .checkbox-label {
    background: rgba(24, 34, 43, 0.72);
    border-color: rgba(126, 156, 178, 0.22);
}

.scan-focus-indicator {
    margin-top: 2px;
    margin-bottom: 10px;
}

.scan-rows-list {
    display: grid;
    gap: 10px;
}

.scan-rows-head {
    display: grid;
    grid-template-columns:
        auto
        minmax(360px, 1.7fr)
        minmax(90px, 0.45fr)
        minmax(110px, 0.5fr)
        minmax(170px, 0.7fr)
        minmax(130px, 0.5fr);
    gap: 10px;
    padding: 0 12px;
    color: #6b7c83;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.scan-item-row {
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.scan-item-row.is-crossed {
    border-color: rgba(176, 126, 38, 0.36);
}

.scan-item-row.is-out-stock {
    border-color: rgba(183, 79, 72, 0.34);
}

.scan-item-summary {
    list-style: none;
    display: grid;
    grid-template-columns:
        auto
        minmax(360px, 1.7fr)
        minmax(90px, 0.45fr)
        minmax(110px, 0.5fr)
        minmax(170px, 0.7fr)
        minmax(130px, 0.5fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
}

.scan-item-summary::-webkit-details-marker {
    display: none;
}

.scan-item-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(16, 112, 103, 0.2);
    background: rgba(104, 112, 243, 0.09);
    position: relative;
    flex: 0 0 auto;
}

.scan-item-toggle::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(11, 127, 117, 0.9);
    border-bottom: 2px solid rgba(11, 127, 117, 0.9);
    transform: rotate(45deg);
    transition: transform 0.16s ease;
}

.scan-item-row[open] .scan-item-toggle::before {
    transform: rotate(225deg);
    top: 8px;
}

.scan-item-row[open] .scan-item-summary {
    background: rgba(104, 112, 243, 0.08);
    border-bottom: 1px solid rgba(18, 58, 56, 0.12);
}

.scan-item-main {
    min-width: 0;
}

.scan-item-ident {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #6b7c83;
    margin-bottom: 3px;
}

.item-ident-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    max-width: 100%;
    padding: 1px 5px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.15;
    text-align: left;
    cursor: copy;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.item-ident-copy:not(:disabled):hover,
.item-ident-copy:not(:disabled):focus-visible,
.item-ident-copy.is-copied {
    border-color: rgba(83, 92, 226, 0.28);
    background: rgba(104, 112, 243, 0.1);
    color: #535ce2;
    outline: none;
}

.item-ident-copy:disabled {
    cursor: default;
    opacity: 0.7;
}

.item-ident-copy-label {
    color: currentColor;
    font-weight: 800;
}

.item-ident-copy-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.copy-feedback-popover {
    position: fixed;
    z-index: 18000;
    max-width: min(240px, calc(100vw - 20px));
    padding: 8px 10px;
    border: 1px solid rgba(83, 92, 226, 0.22);
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(66, 72, 143, 0.18);
    color: #1c2550;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px) scale(0.98);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.copy-feedback-popover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(83, 92, 226, 0.22);
    border-bottom: 1px solid rgba(83, 92, 226, 0.22);
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}

.copy-feedback-popover.is-below::after {
    top: -6px;
    bottom: auto;
    border: 0;
    border-left: 1px solid rgba(83, 92, 226, 0.22);
    border-top: 1px solid rgba(83, 92, 226, 0.22);
}

.copy-feedback-popover.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.copy-feedback-popover.is-out {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
}

.scan-item-summary .item-title {
    max-width: none;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scan-item-col {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.scan-item-col-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7c83;
    font-weight: 800;
}

.scan-item-col strong {
    font-size: 0.84rem;
    font-weight: 800;
    color: #183840;
}

.scan-item-body {
    padding: 10px 12px 12px;
    display: grid;
    gap: 10px;
}

.scan-item-body-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.scan-item-body-tags {
    margin: 0;
}

.scan-item-body-links {
    margin-bottom: 0;
    justify-content: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border-radius: 12px;
    border: 0;
    background: rgba(240, 249, 247, 0.72);
    box-shadow: 0 8px 16px rgba(13, 86, 79, 0.08);
}

.scan-item-body-links .action-pill {
    min-height: 31px;
    padding: 5px 12px;
    border: 0;
    box-shadow: 0 1px 2px rgba(10, 64, 60, 0.1), 0 6px 12px rgba(10, 64, 60, 0.08);
}

.scan-item-body-links .action-pill:not(.action-pill-info-primary) {
    color: #0e6e64;
    background: rgba(255, 255, 255, 0.98);
}

.scan-item-body-links .action-pill:not(.action-pill-info-primary):hover {
    color: #535ce2;
    background: rgba(228, 246, 243, 0.98);
    box-shadow: 0 2px 4px rgba(10, 64, 60, 0.12), 0 9px 14px rgba(10, 64, 60, 0.1);
}

.scan-item-body-links .action-pill-info-primary {
    color: #ffffff;
    background: linear-gradient(140deg, #11a79b, #0d7d74);
    box-shadow: 0 2px 5px rgba(12, 104, 96, 0.2), 0 10px 18px rgba(12, 104, 96, 0.16);
    min-width: 78px;
}

.scan-item-body-links .action-pill-info-primary:hover {
    color: #ffffff;
    background: linear-gradient(140deg, #13b0a3, #0f887e);
    box-shadow: 0 4px 8px rgba(12, 104, 96, 0.24), 0 14px 22px rgba(12, 104, 96, 0.18);
}

.scan-item-body-links .action-pill-info-primary.action-pill-disabled {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(17, 167, 155, 0.62);
    box-shadow: none;
    opacity: 0.7;
}

.scan-item-body-links .action-pill-info-primary.action-pill-locked {
    color: #4f58de;
    border: 1px solid rgba(104, 112, 243, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(240, 244, 255, 0.38));
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    backdrop-filter: blur(16px) saturate(1.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 24px rgba(83, 92, 226, 0.1);
    opacity: 1;
}

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

.scan-item-kpi-card {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 10px;
    padding: 10px;
    background: rgba(249, 252, 252, 0.94);
    display: grid;
    gap: 6px;
}

.scan-item-kpi-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7c83;
    font-weight: 800;
}

.scan-item-kpi-value {
    color: #183840;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}

.scan-item-kpi-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.73rem;
    line-height: 1.2;
    font-weight: 800;
    border: 1px solid transparent;
}

.scan-item-kpi-chip.tone-good {
    color: #535ce2;
    border-color: rgba(104, 112, 243, 0.34);
    background: rgba(104, 112, 243, 0.16);
}

.scan-item-kpi-chip.tone-warn {
    color: #7f5a18;
    border-color: rgba(232, 183, 88, 0.42);
    background: rgba(232, 183, 88, 0.2);
}

.scan-item-kpi-chip.tone-danger {
    color: #9b3732;
    border-color: rgba(212, 113, 106, 0.44);
    background: rgba(212, 113, 106, 0.16);
}

.scan-item-kpi-chip.tone-neutral {
    color: #456273;
    border-color: rgba(116, 152, 177, 0.38);
    background: rgba(173, 201, 219, 0.2);
}

.scan-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 14px;
    border: 1px solid rgba(22, 36, 33, 0.14);
    background: rgba(255, 255, 255, 0.92);
    scrollbar-gutter: stable both-edges;
}

.scan-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.scan-table-wrap::-webkit-scrollbar-track {
    background: rgba(104, 112, 243, 0.08);
}

.scan-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(104, 112, 243, 0.38);
    border-radius: 999px;
}

.scan-items-table {
    min-width: 1580px !important;
    table-layout: fixed !important;
}

.scan-items-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    background: #f4f2ec;
    border-bottom: 1px solid rgba(45, 45, 45, 0.16);
}

.scan-items-table th,
.scan-items-table td {
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
}

.scan-items-table td {
    font-size: 0.95rem;
}

.scan-items-table tbody tr:nth-child(even) td {
    background: rgba(104, 112, 243, 0.03);
}

.scan-items-table tbody tr:hover td {
    background: rgba(104, 112, 243, 0.09);
}

.scan-items-table th:nth-child(1),
.scan-items-table td:nth-child(1) { width: 130px; }

.scan-items-table th:nth-child(2),
.scan-items-table td:nth-child(2) { width: 130px; }

.scan-items-table th:nth-child(3),
.scan-items-table td:nth-child(3) {
    width: 470px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.scan-items-table th:nth-child(4),
.scan-items-table td:nth-child(4) { width: 110px; }

.scan-items-table th:nth-child(5),
.scan-items-table td:nth-child(5) { width: 160px; }

.scan-items-table th:nth-child(6),
.scan-items-table td:nth-child(6) { width: 120px; }

.scan-items-table th:nth-child(7),
.scan-items-table td:nth-child(7) { width: 120px; }

.scan-items-table th:nth-child(8),
.scan-items-table td:nth-child(8) { width: 170px; }

.scan-items-table th:nth-child(9),
.scan-items-table td:nth-child(9) { width: 210px; }

.scan-product-cell .item-title {
    margin-bottom: 6px;
    font-size: 0.98rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-collapsible__toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.cc-collapsible__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    color: #535ce2;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 2px;
}

.cc-collapsible__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 14px;
    block-size: 14px;
    border-radius: 50%;
    background: rgba(104, 112, 243, 0.12);
    border: 1px solid rgba(104, 112, 243, 0.24);
    font-size: 0.68rem;
    line-height: 1;
    transition: transform 0.24s ease;
    transform: rotate(0deg);
}

.cc-collapsible__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cc-collapsible__inner {
    padding-top: 6px;
}

.scan-item-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    font-size: 0.78rem;
    color: #4e4a41;
}

.scan-item-details-grid > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.scan-item-details-grid > div > span {
    color: #6e675e;
    white-space: nowrap;
}

.scan-item-details-grid > div > strong {
    color: #223330;
    min-width: 0;
}

.cc-collapsible__toggle:checked + .cc-collapsible__trigger .cc-collapsible__chevron {
    transform: rotate(180deg);
}

.cc-collapsible__toggle:checked + .cc-collapsible__trigger + .cc-collapsible__content {
    max-height: 220px;
}

.scan-items-table td:nth-child(1),
.scan-items-table td:nth-child(2),
.scan-items-table td:nth-child(3),
.scan-items-table td:nth-child(4),
.scan-items-table td:nth-child(5),
.scan-items-table td:nth-child(6),
.scan-items-table td:nth-child(7),
.scan-items-table td:nth-child(8),
.scan-items-table td:nth-child(9) {
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

.scan-items-table .availability-chip,
.scan-items-table .status-chip,
.scan-items-table .risk-chip {
    white-space: nowrap;
}

html[data-theme="dark"] .scan-rows-head {
    color: #93a9bb;
}

html[data-theme="dark"] .scan-item-row {
    border-color: rgba(126, 156, 178, 0.32);
    background: rgba(20, 28, 35, 0.9);
}

html[data-theme="dark"] .scan-item-row.is-crossed {
    border-color: rgba(232, 183, 88, 0.42);
}

html[data-theme="dark"] .scan-item-row.is-out-stock {
    border-color: rgba(212, 113, 106, 0.44);
}

html[data-theme="dark"] .scan-item-toggle {
    border-color: rgba(126, 156, 178, 0.28);
    background: rgba(24, 34, 43, 0.76);
}

html[data-theme="dark"] .scan-item-toggle::before {
    border-right-color: rgba(146, 226, 215, 0.9);
    border-bottom-color: rgba(146, 226, 215, 0.9);
}

html[data-theme="dark"] .scan-item-row[open] .scan-item-summary {
    background: rgba(83, 92, 226, 0.18);
    border-bottom-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .scan-item-ident,
html[data-theme="dark"] .scan-item-col-label,
html[data-theme="dark"] .scan-item-kpi-label {
    color: #9bb4c7;
}

html[data-theme="dark"] .item-ident-copy:not(:disabled):hover,
html[data-theme="dark"] .item-ident-copy:not(:disabled):focus-visible,
html[data-theme="dark"] .item-ident-copy.is-copied {
    border-color: rgba(143, 240, 226, 0.3);
    background: rgba(143, 240, 226, 0.12);
    color: #8ff0e2;
}

html[data-theme="dark"] .copy-feedback-popover {
    border-color: rgba(143, 240, 226, 0.26);
    background: #172633;
    box-shadow: 0 16px 34px rgba(5, 12, 18, 0.46);
    color: #e7fffb;
}

html[data-theme="dark"] .copy-feedback-popover::after {
    border-color: rgba(143, 240, 226, 0.26);
}

html[data-theme="dark"] .scan-item-col strong,
html[data-theme="dark"] .scan-item-kpi-value {
    color: #dbe8f2;
}

html[data-theme="dark"] .scan-item-kpi-card {
    border-color: rgba(126, 156, 178, 0.26);
    background: rgba(24, 34, 43, 0.72);
}

html[data-theme="dark"] .scan-item-kpi-chip.tone-good {
    color: #9af4e7;
    border-color: rgba(158, 162, 255, 0.42);
    background: rgba(83, 92, 226, 0.28);
}

html[data-theme="dark"] .scan-item-kpi-chip.tone-warn {
    color: #ffdca4;
    border-color: rgba(232, 183, 88, 0.42);
    background: rgba(120, 92, 33, 0.32);
}

html[data-theme="dark"] .scan-item-kpi-chip.tone-danger {
    color: #ffc2be;
    border-color: rgba(212, 113, 106, 0.44);
    background: rgba(112, 52, 48, 0.4);
}

html[data-theme="dark"] .scan-item-kpi-chip.tone-neutral {
    color: #c8dae7;
    border-color: rgba(126, 156, 178, 0.38);
    background: rgba(45, 62, 74, 0.62);
}

html[data-theme="dark"] .scan-item-body-links {
    border-color: transparent;
    background: rgba(25, 40, 50, 0.58);
    box-shadow: 0 10px 18px rgba(8, 20, 28, 0.34);
}

html[data-theme="dark"] .scan-item-body-links .action-pill:not(.action-pill-info-primary) {
    color: #9af4e7;
    background: rgba(27, 58, 53, 0.56);
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(6, 18, 22, 0.45), 0 8px 14px rgba(6, 18, 22, 0.32);
}

html[data-theme="dark"] .scan-item-body-links .action-pill:not(.action-pill-info-primary):hover {
    color: #d4fff8;
    background: rgba(37, 76, 70, 0.74);
    border-color: transparent;
    box-shadow: 0 3px 6px rgba(6, 18, 22, 0.48), 0 12px 20px rgba(6, 18, 22, 0.34);
}

html[data-theme="dark"] .scan-item-body-links .action-pill-info-primary {
    color: #e7fffb;
    border-color: transparent;
    background: linear-gradient(140deg, #22b3a5, #137e75);
    box-shadow: 0 2px 6px rgba(8, 26, 31, 0.54), 0 12px 20px rgba(8, 26, 31, 0.38);
}

html[data-theme="dark"] .scan-item-body-links .action-pill-info-primary:hover {
    color: #e6fffb;
    border-color: transparent;
    background: linear-gradient(140deg, #2bc5b6, #1a8f85);
    box-shadow: 0 4px 8px rgba(8, 26, 31, 0.58), 0 16px 24px rgba(8, 26, 31, 0.42);
}

@media (max-width: 1380px) {
    .scan-rows-head {
        display: none;
    }

    .scan-item-summary {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 8px;
    }

    .scan-item-col {
        grid-column: 2 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .scan-item-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scan-filter-main-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-main-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1040px) {
    .scan-filter-options-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-actions {
        justify-content: flex-start;
    }

    .scan-item-details-grid {
        grid-template-columns: 1fr;
    }

    .scan-item-body-head {
        align-items: stretch;
    }

    .scan-item-body-links {
        width: 100%;
        justify-content: flex-start;
    }

    .scan-sort-by-select,
    .scan-sort-dir-select,
    .scan-per-page-select {
        width: 100% !important;
        min-width: 0;
        max-width: none;
    }
}

/* Commission and profitability widgets */
.product-detail-screen {
    display: grid;
    gap: clamp(14px, 1.6vw, 24px);
    min-width: 0;
    min-height: calc(100vh - var(--topbar-height) - 32px);
    align-content: start;
}

.product-detail-header-zone {
    position: relative;
    z-index: 20;
    display: grid;
    gap: 10px;
    overflow: visible;
}

.product-detail-header-zone .cc-page-header {
    position: relative;
    z-index: 30;
    margin-bottom: 0;
    overflow: visible !important;
}

.product-detail-header-zone .cc-page-header-main,
.product-detail-header-zone .cc-page-header-actions {
    overflow: visible !important;
}

.product-detail-header-zone .cc-page-header-copy {
    flex: 1 1 auto;
    min-width: min(100%, 420px);
}

.product-detail-header-zone .cc-page-header-actions {
    position: relative;
    z-index: 40;
    flex: 0 0 auto;
    max-width: 100%;
}

.product-detail-header-zone .cc-page-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.product-detail-header-actions {
    position: relative;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
}

.product-detail-primary-action {
    flex: 0 0 auto;
    min-width: 136px;
}

.product-detail-action-menu {
    position: relative;
    z-index: 60;
    flex: 0 0 auto;
}

.product-detail-action-menu > summary {
    gap: 8px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

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

.product-detail-action-menu > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 0.16s ease;
}

.product-detail-action-menu[open] > summary::after {
    transform: rotate(225deg) translateY(-1px);
}

.product-detail-action-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 500;
    display: none;
    gap: 4px;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--ui-line, rgba(91, 96, 174, 0.24));
    border-radius: 8px;
    background: var(--ui-surface, #ffffff);
    box-shadow: 0 18px 40px rgba(30, 34, 87, 0.16);
}

.product-detail-action-menu[open] .product-detail-action-menu-panel {
    display: grid;
}

.product-detail-action-menu.is-positioned .product-detail-action-menu-panel {
    position: fixed;
    top: var(--product-action-menu-top, 0);
    right: auto;
    left: var(--product-action-menu-left, 0);
    width: var(--product-action-menu-width, max-content);
    max-width: calc(100vw - 24px);
    max-height: var(--product-action-menu-max-height, min(320px, calc(100vh - 24px)));
    overflow-y: auto;
}

.product-detail-action-menu-panel.is-product-action-menu-portal {
    position: fixed;
    top: 0;
    right: auto;
    left: 0;
    z-index: 20000;
    display: grid;
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: min(320px, calc(100vh - 24px));
    overflow-y: auto;
}

.product-detail-action-menu-item {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text, #171a3d);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.product-detail-action-menu-item:hover,
.product-detail-action-menu-item:focus-visible {
    color: var(--accent, #5961e8);
    background: color-mix(in srgb, var(--accent, #5961e8), transparent 90%);
    outline: none;
}

.product-detail-header-meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.product-detail-meta-chip {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(18, 58, 56, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    padding: 10px 12px;
    min-width: 0;
}

.product-detail-meta-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #627074;
}

.product-detail-meta-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1c3434;
    font-size: 0.94rem;
}

.product-detail-meta-link {
    display: inline-flex;
    min-width: 0;
    color: #535ce2;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-detail-meta-link:hover {
    text-decoration: underline;
}

.product-detail-meta-chip-status {
    justify-content: space-between;
}

.product-detail-meta-chip-status .status-chip {
    width: fit-content;
}

.product-detail-header-alert {
    margin: 0;
}

.product-detail-refresh-state {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(92, 103, 230, 0.2);
    border-radius: 8px;
    color: #39415f;
    background: rgba(248, 250, 255, 0.92);
}

.product-detail-refresh-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid rgba(82, 93, 224, 0.2);
    border-top-color: #525de0;
    border-radius: 50%;
    animation: product-detail-refresh-spin 0.8s linear infinite;
}

.product-detail-refresh-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.product-detail-refresh-copy strong {
    font-size: 0.82rem;
    line-height: 1.25;
}

.product-detail-refresh-copy span {
    color: #727b99;
    font-size: 0.75rem;
    line-height: 1.3;
}

.product-detail-refresh-state.is-success {
    border-color: rgba(18, 144, 118, 0.24);
    color: #0c7964;
    background: rgba(238, 252, 248, 0.94);
}

.product-detail-refresh-state.is-success .product-detail-refresh-spinner,
.product-detail-refresh-state.is-error .product-detail-refresh-spinner {
    display: none;
}

.product-detail-refresh-state.is-error {
    border-color: rgba(202, 89, 76, 0.24);
    color: #a43f35;
    background: rgba(255, 247, 246, 0.96);
}

html[data-theme="dark"] .product-detail-refresh-state {
    border-color: rgba(135, 146, 255, 0.26);
    color: #e7eaff;
    background: rgba(31, 37, 64, 0.94);
}

html[data-theme="dark"] .product-detail-refresh-copy span {
    color: #aeb6d8;
}

html[data-theme="dark"] .product-detail-refresh-state.is-success {
    border-color: rgba(60, 205, 169, 0.28);
    color: #8be3cc;
    background: rgba(17, 54, 48, 0.94);
}

html[data-theme="dark"] .product-detail-refresh-state.is-error {
    border-color: rgba(247, 130, 116, 0.3);
    color: #ffb3aa;
    background: rgba(65, 31, 35, 0.95);
}

@keyframes product-detail-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-detail-summary-zone {
    display: grid;
    gap: 12px;
}

.product-detail-summary-head {
    margin-bottom: 0;
}

.product-detail-summary-grid {
    margin-top: 0;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.product-metric-card {
    min-height: 108px;
    padding: 12px;
    gap: 6px;
}

.product-metric-card .insight-value {
    font-size: clamp(1.2rem, 0.94rem + 0.9vw, 1.72rem);
    line-height: 1.12;
    color: #133b36;
}

.product-metric-card .insight-meta {
    font-size: 0.78rem;
    color: #5c686c;
    line-height: 1.32;
}

.product-metric-card-status .insight-value {
    font-size: clamp(1rem, 0.9rem + 0.45vw, 1.24rem);
    font-weight: 800;
}

.product-detail-tabs-zone {
    display: grid;
    gap: 12px;
}

.product-detail-tabs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.product-detail-tab-btn {
    border: 1px solid rgba(18, 58, 56, 0.14);
    background: rgba(247, 249, 248, 0.96);
    color: #224243;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-detail-tab-btn:hover {
    border-color: rgba(83, 92, 226, 0.42);
    color: #0f5f55;
}

.product-detail-tab-btn:focus-visible {
    outline: 2px solid rgba(83, 92, 226, 0.34);
    outline-offset: 1px;
}

.product-detail-tab-btn.is-active {
    border-color: rgba(83, 92, 226, 0.42);
    background: rgba(233, 247, 243, 0.95);
    color: #0f5f55;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.is-active {
    display: grid;
    gap: 12px;
}

.product-detail-overview-aside {
    display: grid;
    gap: 12px;
    align-content: start;
}

.product-overview-aside-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-overview-aside-grid .insight-card {
    min-height: 118px;
    align-content: start;
}

.product-detail-model-section {
    display: grid;
    gap: 12px;
}

.model-analysis-status-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.model-analysis-status-chip,
.model-analysis-completeness,
.model-analysis-quality {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: 0.01em;
}

.model-analysis-status-chip.status-model_found {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.16);
    border-color: rgba(83, 92, 226, 0.36);
}

.model-analysis-status-chip.status-model_not_found,
.model-analysis-status-chip.status-pending_model_creation,
.model-analysis-status-chip.status-ambiguous_model_match,
.model-analysis-status-chip.status-wrong_model_suspected,
.model-analysis-status-chip.status-unknown {
    color: #8e5b12;
    background: rgba(245, 204, 110, 0.18);
    border-color: rgba(176, 126, 38, 0.34);
}

.model-analysis-completeness.quality-exact,
.model-analysis-quality.quality-exact {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.16);
    border-color: rgba(83, 92, 226, 0.36);
}

.model-analysis-completeness.quality-partial,
.model-analysis-quality.quality-partial {
    color: #8e5b12;
    background: rgba(245, 204, 110, 0.2);
    border-color: rgba(176, 126, 38, 0.34);
}

.model-analysis-completeness.quality-unknown,
.model-analysis-quality.quality-unknown {
    color: #60696f;
    background: rgba(124, 137, 144, 0.14);
    border-color: rgba(108, 121, 129, 0.3);
}

.model-analysis-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.model-analysis-status-option {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(18, 58, 56, 0.18);
    background: rgba(246, 249, 248, 0.92);
    color: #4b595d;
    padding: 3px 9px;
    font-size: 0.7rem;
    font-weight: 700;
}

.model-analysis-status-option.is-active {
    border-color: rgba(83, 92, 226, 0.42);
    background: rgba(233, 247, 243, 0.95);
    color: #0f5f55;
}

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

.model-analysis-item {
    border: 1px solid rgba(18, 58, 56, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    padding: 12px;
    display: grid;
    gap: 7px;
    min-width: 0;
}

.model-analysis-label {
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #607074;
}

.model-analysis-value {
    font-size: 1rem;
    font-weight: 700;
    color: #183d3a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-analysis-link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.product-detail-actions-section {
    display: grid;
    gap: 12px;
}

.product-detail-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-action-card {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.product-action-card h3 {
    margin: 0;
    font-size: 0.96rem;
}

.product-action-card .btn {
    width: fit-content;
}

.products-page-shell {
    display: grid;
    gap: 12px;
}

.products-filter-form {
    margin-top: 0;
}

.products-filter-form .scan-filter-main-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.products-filter-form .scan-filter-options-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.products-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.products-field > span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a665b;
    font-weight: 700;
}

.products-search-field .scan-filter-search {
    width: 100%;
}

.products-table-section {
    display: grid;
    gap: 12px;
}

.products-current-scan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.products-table .item-title {
    font-weight: 700;
}

.products-table .item-links-buttons {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .scan-item-ident {
        gap: 6px;
        font-size: 0.7rem;
    }

    .scan-item-body-links {
        padding: 6px;
    }

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

    .scan-item-kpi-card {
        padding: 8px;
    }
}

.products-rows-list {
    display: grid;
    gap: 10px;
}

.products-rows-head {
    display: grid;
    grid-template-columns: auto minmax(360px, 1.7fr) minmax(90px, 0.45fr) minmax(110px, 0.5fr) minmax(170px, 0.7fr) minmax(130px, 0.5fr);
    gap: 10px;
    padding: 0 12px;
    color: #6b7c83;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.products-item-row {
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.products-item-row.is-crossed {
    border-color: rgba(176, 126, 38, 0.36);
}

.products-item-summary {
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(360px, 1.7fr) minmax(90px, 0.45fr) minmax(110px, 0.5fr) minmax(170px, 0.7fr) minmax(130px, 0.5fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

/* Prom card health beta */
.prom-health-page-header {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(50, 58, 128, 0.08);
}

.prom-health-page-header .cc-page-title {
    font-size: clamp(1.8rem, 1.35rem + 1vw, 2.65rem);
    letter-spacing: 0;
}

.prom-health-page-header .cc-page-subtitle {
    max-width: 760px;
}

.prom-health-shell {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.prom-health-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.56fr);
    gap: 18px;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(107, 114, 225, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(50, 58, 128, 0.08);
    padding: 18px 20px;
}

.prom-health-hero-copy {
    display: grid;
    gap: 7px;
    align-content: center;
    min-width: 0;
}

.prom-health-hero-copy h2 {
    margin: 0;
    color: #171a3f;
    font-size: 1.08rem;
    line-height: 1.25;
}

.prom-health-hero-copy p {
    max-width: 850px;
    font-size: 0.84rem;
    line-height: 1.48;
}

.prom-health-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.prom-health-overview-grid div {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid rgba(107, 114, 225, 0.14);
    border-radius: 10px;
    background: rgba(247, 249, 255, 0.86);
    padding: 10px 12px;
}

.prom-health-overview-grid strong {
    color: #27307e;
    font-size: 0.78rem;
    line-height: 1.2;
}

.prom-health-overview-grid span {
    min-width: 0;
    color: #66708f;
    font-size: 0.72rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.prom-health-form,
.prom-health-credentials,
.prom-health-results,
.prom-health-coverage,
.prom-health-top-issues,
.prom-health-api-map,
.prom-health-blind-spots,
.prom-health-products {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(107, 114, 225, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(50, 58, 128, 0.075);
    padding: 18px;
}

.prom-health-form-grid,
.prom-health-advanced-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr);
    gap: 12px;
}

.prom-health-advanced-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 12px;
}

.prom-health-token-field {
    min-width: 0;
}

.prom-health-section-head {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(107, 114, 225, 0.12);
}

.prom-health-section-head h2,
.prom-health-run-head h2 {
    margin: 0;
    color: #171a3f;
    font-size: 1rem;
    line-height: 1.25;
}

.prom-health-section-head p,
.prom-health-run-head p {
    max-width: 760px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.prom-health-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.prom-health-subhead h3 {
    margin: 0;
    color: #27304d;
    font-size: 0.82rem;
    line-height: 1.2;
}

.prom-health-subhead span {
    border: 1px solid rgba(107, 114, 225, 0.16);
    border-radius: 999px;
    background: rgba(247, 249, 255, 0.95);
    color: #5a6592;
    padding: 5px 8px;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.prom-health-run-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(107, 114, 225, 0.12);
}

.prom-health-run-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(83, 92, 226, 0.2);
    border-radius: 999px;
    background: rgba(239, 242, 255, 0.95);
    color: #3f47b8;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.prom-health-credentials-form,
.prom-health-credential-block {
    display: grid;
    gap: 12px;
}

.prom-health-key-list {
    display: grid;
    gap: 10px;
}

.prom-health-key-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 98px;
    gap: 12px;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(107, 114, 225, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(246, 248, 255, 0.9));
    padding: 13px 14px;
}

.prom-health-key-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.prom-health-key-row strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #171a3f;
    font-size: 0.86rem;
}

.prom-health-key-row strong::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #5f68f2;
    box-shadow: 0 0 0 4px rgba(95, 104, 242, 0.1);
}

.prom-health-key-row span,
.prom-health-key-row small {
    min-width: 0;
    color: #55656c;
    font-size: 0.78rem;
    font-weight: 760;
    overflow-wrap: anywhere;
}

.prom-health-key-row small {
    color: #697981;
    font-weight: 720;
}

.prom-health-key-row .btn {
    width: 98px;
    white-space: nowrap;
}

.prom-health-key-delete-form,
.prom-health-clear-all-form {
    margin: 0;
}

.prom-health-clear-all-form {
    display: flex;
    justify-content: flex-start;
}

.prom-health-add-key-panel {
    border: 1px solid rgba(107, 114, 225, 0.14);
    border-radius: 12px;
    background: rgba(250, 251, 255, 0.82);
    overflow: hidden;
}

.prom-health-add-key-panel summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    list-style: none;
    cursor: pointer;
    padding: 13px 14px;
}

.prom-health-add-key-panel summary::-webkit-details-marker {
    display: none;
}

.prom-health-add-key-panel summary > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.prom-health-add-key-panel summary strong {
    color: #171a3f;
    font-size: 0.86rem;
    line-height: 1.2;
}

.prom-health-add-key-panel summary span {
    color: #66708f;
    font-size: 0.76rem;
    line-height: 1.35;
}

.prom-health-add-key-panel summary b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(83, 92, 226, 0.22);
    border-radius: 999px;
    background: rgba(239, 242, 255, 0.95);
    color: #3f47b8;
    padding: 7px 11px;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.prom-health-add-key-panel[open] summary {
    border-bottom: 1px solid rgba(107, 114, 225, 0.12);
}

.prom-health-add-key-panel[open] summary b {
    color: #6b2d2d;
    border-color: rgba(190, 70, 64, 0.22);
    background: rgba(255, 244, 242, 0.92);
}

.prom-health-add-key-panel[open] summary b::before {
    content: "Закрити";
    font-size: 0;
}

.prom-health-add-key-panel[open] summary b {
    font-size: 0;
}

.prom-health-add-key-panel[open] summary b::after {
    content: "Закрити";
    font-size: 0.72rem;
}

.prom-health-add-key-panel .prom-health-credentials-form {
    padding: 14px;
}

.prom-health-credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.prom-health-credential-block {
    align-content: start;
    min-width: 0;
    border: 1px solid rgba(107, 114, 225, 0.12);
    border-radius: 12px;
    background: rgba(250, 251, 255, 0.72);
    padding: 12px;
}

.prom-health-credential-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.prom-health-credential-status strong {
    color: #183c3a;
}

.prom-health-credential-status span {
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 999px;
    background: rgba(236, 244, 255, 0.78);
    color: #48506e;
    padding: 5px 8px;
    font-size: 0.78rem;
    font-weight: 750;
}

.prom-health-credentials-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.prom-health-credentials-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.prom-health-danger-action {
    border-color: rgba(190, 70, 64, 0.26);
    background: rgba(255, 244, 242, 0.92);
    color: #a83d38;
}

.prom-health-danger-action:hover:not(:disabled) {
    border-color: rgba(190, 70, 64, 0.42);
    background: rgba(255, 235, 232, 0.98);
    color: #872d29;
}

.prom-health-mode-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.prom-health-mode {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 86px;
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 12px;
    background: rgba(247, 249, 248, 0.92);
    padding: 12px 12px 12px 38px;
    cursor: pointer;
}

.prom-health-mode input {
    position: absolute;
    top: 14px;
    left: 14px;
}

.prom-health-mode strong {
    color: #193b3b;
}

.prom-health-mode span {
    color: #667579;
    font-size: 0.82rem;
}

.prom-health-mode.is-active,
.prom-health-mode:has(input:checked) {
    border-color: rgba(83, 92, 226, 0.38);
    background: rgba(236, 244, 255, 0.86);
}

.prom-health-advanced {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 13px;
    background: rgba(247, 249, 248, 0.78);
    padding: 12px;
}

.prom-health-advanced summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.prom-health-advanced summary::-webkit-details-marker {
    display: none;
}

.prom-health-advanced summary span {
    color: #68777a;
    font-size: 0.86rem;
}

.prom-health-checkbox {
    margin-top: 10px;
}

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

.prom-health-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.prom-health-kpi {
    display: grid;
    gap: 5px;
    min-height: 112px;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 13px;
    background: rgba(248, 250, 249, 0.9);
    padding: 13px;
}

.prom-health-kpi span,
.prom-health-kpi small {
    color: #627175;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prom-health-kpi small {
    font-size: 0.76rem;
    font-weight: 650;
    text-transform: none;
    letter-spacing: 0;
}

.prom-health-kpi strong {
    color: #153735;
    font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.9rem);
    line-height: 1.1;
}

.prom-health-kpi.is-good {
    border-color: rgba(42, 141, 111, 0.22);
    background: rgba(232, 247, 241, 0.92);
}

.prom-health-kpi.is-warn {
    border-color: rgba(176, 126, 38, 0.26);
    background: rgba(255, 247, 225, 0.92);
}

.prom-health-kpi.is-danger {
    border-color: rgba(190, 70, 64, 0.24);
    background: rgba(255, 239, 237, 0.92);
}

.prom-health-split {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    gap: 14px;
}

.prom-health-section-head {
    display: grid;
    gap: 4px;
}

.prom-health-section-head h2 {
    margin: 0;
    color: #183c3a;
    font-size: 1.05rem;
}

.prom-health-bars {
    display: grid;
    gap: 10px;
}

.prom-health-bar-row {
    display: grid;
    grid-template-columns: minmax(145px, 0.7fr) minmax(140px, 1fr) 58px;
    align-items: center;
    gap: 10px;
}

.prom-health-bar-row > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.prom-health-bar-row strong {
    color: #193b3b;
}

.prom-health-bar-row span {
    color: #667579;
    font-size: 0.78rem;
    line-height: 1.25;
}

.prom-health-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.12);
}

.prom-health-bar-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #42bda6, #535ce2);
}

.prom-health-bar-row b {
    color: #183c3a;
    font-size: 0.86rem;
    text-align: right;
}

.prom-health-issue-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prom-health-issue-cloud span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(18, 58, 56, 0.13);
    border-radius: 999px;
    background: rgba(247, 249, 248, 0.9);
    color: #2a4747;
    padding: 7px 10px;
    font-size: 0.82rem;
    font-weight: 750;
}

.prom-health-issue-cloud b {
    color: #535ce2;
}

.prom-health-api-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.prom-health-api-grid article {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 12px;
    background: rgba(247, 249, 248, 0.86);
    padding: 11px;
}

.prom-health-api-grid strong {
    color: #183c3a;
}

.prom-health-api-grid code {
    overflow-wrap: anywhere;
    color: #535ce2;
    font-size: 0.78rem;
}

.prom-health-api-grid span {
    color: #667579;
    font-size: 0.8rem;
    line-height: 1.35;
}

.prom-health-product-list {
    display: grid;
    gap: 12px;
}

.prom-health-product {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(18, 58, 56, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px;
}

.prom-health-product.is-danger {
    border-color: rgba(190, 70, 64, 0.28);
}

.prom-health-product.is-warn {
    border-color: rgba(176, 126, 38, 0.3);
}

.prom-health-product.is-good {
    border-color: rgba(42, 141, 111, 0.24);
}

.prom-health-product-main {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.prom-health-score {
    display: grid;
    gap: 4px;
    justify-items: center;
    align-content: center;
    min-height: 88px;
    border-radius: 13px;
    background: rgba(236, 244, 255, 0.9);
    color: #29347f;
    text-align: center;
}

.prom-health-score strong {
    font-size: 1.44rem;
    line-height: 1;
}

.prom-health-score span {
    max-width: 88px;
    color: #53616b;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.18;
}

.prom-health-product-title {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.prom-health-product-title h3 {
    margin: 0;
    color: #163837;
    font-size: 1.02rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.prom-health-product-meta,
.prom-health-product-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.prom-health-product-meta span,
.prom-health-product-taxonomy span {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 999px;
    background: rgba(247, 249, 248, 0.9);
    color: #526469;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.prom-health-product-taxonomy b {
    margin-left: 4px;
    color: #253e44;
}

.prom-health-product-issues {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.prom-health-issue {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 12px;
    background: rgba(247, 249, 248, 0.88);
    padding: 10px;
    min-width: 0;
}

.prom-health-issue > span {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(104, 112, 243, 0.12);
    color: #535ce2;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.prom-health-issue strong {
    color: #183c3a;
    font-size: 0.9rem;
    line-height: 1.25;
}

.prom-health-issue p,
.prom-health-issue small {
    margin: 0;
    color: #637175;
    font-size: 0.8rem;
    line-height: 1.35;
}

.prom-health-issue.is-critical {
    border-color: rgba(190, 70, 64, 0.24);
    background: rgba(255, 241, 239, 0.9);
}

.prom-health-issue.is-critical > span {
    background: rgba(190, 70, 64, 0.12);
    color: #b63d38;
}

.prom-health-issue.is-warning {
    border-color: rgba(176, 126, 38, 0.26);
    background: rgba(255, 248, 229, 0.92);
}

.prom-health-issue.is-warning > span {
    background: rgba(176, 126, 38, 0.13);
    color: #8e5b12;
}

.prom-health-market-grid,
.prom-health-intel-grid,
.prom-health-filters {
    display: grid;
    gap: 10px;
}

.prom-health-market-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.prom-health-market-card,
.prom-health-intel-card {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 13px;
    background: rgba(248, 250, 249, 0.9);
    padding: 13px;
    min-width: 0;
}

.prom-health-market-card span,
.prom-health-market-card small {
    color: #627175;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.32;
}

.prom-health-market-card span {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prom-health-market-card strong {
    color: #153735;
    font-size: 1.42rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.prom-health-market-card.is-good {
    border-color: rgba(42, 141, 111, 0.22);
    background: rgba(232, 247, 241, 0.92);
}

.prom-health-market-card.is-warn {
    border-color: rgba(176, 126, 38, 0.26);
    background: rgba(255, 247, 225, 0.92);
}

.prom-health-intel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prom-health-action-list,
.prom-health-alert-list,
.prom-health-bucket-list,
.prom-health-profit-grid,
.prom-health-opportunity-grid {
    display: grid;
    gap: 8px;
}

.prom-health-action-row,
.prom-health-alert-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    align-items: center;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
    padding: 9px 10px;
}

.prom-health-action-row strong,
.prom-health-alert-row strong {
    color: #183c3a;
    font-size: 0.9rem;
    line-height: 1.25;
}

.prom-health-action-row b,
.prom-health-alert-row b {
    color: #535ce2;
    font-size: 1rem;
}

.prom-health-action-row span,
.prom-health-alert-row span,
.prom-health-bucket-list span,
.prom-health-profit-grid span,
.prom-health-opportunity-grid span {
    grid-column: 1 / -1;
    color: #637175;
    font-size: 0.8rem;
    line-height: 1.35;
}

.prom-health-action-row.is-danger,
.prom-health-alert-row.is-critical {
    border-color: rgba(190, 70, 64, 0.24);
    background: rgba(255, 241, 239, 0.88);
}

.prom-health-action-row.is-warn,
.prom-health-alert-row.is-warning {
    border-color: rgba(176, 126, 38, 0.26);
    background: rgba(255, 248, 229, 0.9);
}

.prom-health-action-row.is-good {
    border-color: rgba(42, 141, 111, 0.24);
    background: rgba(232, 247, 241, 0.9);
}

.prom-health-keyword-cloud,
.prom-health-keyword-gaps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.prom-health-keyword-cloud span,
.prom-health-keyword-gaps span,
.prom-health-bucket-list span,
.prom-health-profit-grid span,
.prom-health-opportunity-grid span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 999px;
    background: rgba(247, 249, 248, 0.9);
    color: #526469;
    padding: 6px 9px;
    font-size: 0.78rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.prom-health-keyword-cloud b,
.prom-health-profit-grid b,
.prom-health-opportunity-grid b {
    color: #535ce2;
}

.prom-health-keyword-gaps {
    align-items: center;
    border: 1px dashed rgba(83, 92, 226, 0.26);
    border-radius: 12px;
    background: rgba(236, 244, 255, 0.52);
    padding: 9px;
}

.prom-health-keyword-gaps strong {
    color: #29347f;
    font-size: 0.82rem;
}

.prom-health-keyword-gap-lang {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.prom-health-keyword-gap-lang b {
    color: #3d4a64;
    font-size: 0.76rem;
}

.prom-health-ai-settings {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 16px;
    background: rgba(245, 247, 255, 0.82);
    box-shadow: 0 10px 26px rgba(11, 30, 31, 0.05);
    padding: clamp(14px, 1.6vw, 20px);
}

.prom-health-ai-settings-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.34fr) minmax(220px, 0.48fr);
    gap: 12px;
    align-items: end;
}

.prom-health-ai-settings-grid label[hidden] {
    display: none;
}

.prom-health-ai-card-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(83, 92, 226, 0.14);
    border-radius: 12px;
    background: rgba(245, 247, 255, 0.66);
    padding: 10px;
}

.prom-health-ai-result {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 12px;
    background: rgba(247, 249, 248, 0.9);
    padding: 12px;
}

.prom-health-ai-result.is-loading {
    border-color: rgba(83, 92, 226, 0.22);
    background: rgba(236, 244, 255, 0.82);
}

.prom-health-ai-result.is-warning {
    border-color: rgba(176, 126, 38, 0.26);
    background: rgba(255, 248, 229, 0.9);
}

.prom-health-ai-result.is-error {
    border-color: rgba(190, 70, 64, 0.24);
    background: rgba(255, 241, 239, 0.9);
}

.prom-health-ai-result.is-success {
    border-color: rgba(42, 141, 111, 0.24);
    background: rgba(237, 249, 245, 0.9);
}

.prom-health-ai-result p {
    margin: 0;
    color: #53636b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.prom-health-ai-result-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.prom-health-ai-result-title strong,
.prom-health-ai-result-block strong {
    color: #183c3a;
}

.prom-health-ai-result-title span {
    color: #65757d;
    font-size: 0.78rem;
    font-weight: 750;
}

.prom-health-ai-next-step {
    border-left: 3px solid #42bda6;
    padding-left: 9px;
    font-weight: 750;
}

.prom-health-ai-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.prom-health-ai-result-block {
    display: grid;
    gap: 7px;
    min-width: 0;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.66);
    padding: 10px;
}

.prom-health-ai-result-block strong {
    font-size: 0.86rem;
}

.prom-health-ai-result-block ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.prom-health-ai-result-block li {
    color: #596b72;
    font-size: 0.8rem;
    line-height: 1.35;
}

.prom-health-ai-price {
    border-top: 1px solid rgba(18, 58, 56, 0.12);
    padding-top: 9px;
}

.prom-health-filters {
    grid-template-columns: minmax(220px, 1.5fr) repeat(7, minmax(130px, 1fr));
    align-items: end;
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 13px;
    background: rgba(247, 249, 248, 0.78);
    padding: 12px;
}

.prom-health-filters label {
    min-width: 0;
}

.prom-health-browser-status,
.prom-health-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.prom-health-browser-status span,
.prom-health-pagination span {
    color: #526469;
    font-size: 0.86rem;
    font-weight: 750;
}

.prom-health-empty {
    margin: 0;
    border: 1px dashed rgba(18, 58, 56, 0.18);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.prom-health-product[hidden],
.prom-health-pagination[hidden],
.prom-health-empty[hidden] {
    display: none !important;
}

html[data-theme="dark"] .prom-health-overview,
html[data-theme="dark"] .prom-health-form,
html[data-theme="dark"] .prom-health-credentials,
html[data-theme="dark"] .prom-health-results,
html[data-theme="dark"] .prom-health-coverage,
html[data-theme="dark"] .prom-health-top-issues,
html[data-theme="dark"] .prom-health-api-map,
html[data-theme="dark"] .prom-health-blind-spots,
html[data-theme="dark"] .prom-health-products,
html[data-theme="dark"] .prom-health-product,
html[data-theme="dark"] .prom-health-market-card,
html[data-theme="dark"] .prom-health-intel-card,
html[data-theme="dark"] .prom-health-ai-settings {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(24, 34, 43, 0.88);
    box-shadow: 0 12px 30px rgba(5, 12, 18, 0.32);
}

html[data-theme="dark"] .prom-health-hero-copy h2,
html[data-theme="dark"] .prom-health-run-head h2,
html[data-theme="dark"] .prom-health-subhead h3,
html[data-theme="dark"] .prom-health-section-head h2,
html[data-theme="dark"] .prom-health-add-key-panel summary strong,
html[data-theme="dark"] .prom-health-credential-status strong,
html[data-theme="dark"] .prom-health-key-row strong,
html[data-theme="dark"] .prom-health-kpi strong,
html[data-theme="dark"] .prom-health-product-title h3,
html[data-theme="dark"] .prom-health-issue strong,
html[data-theme="dark"] .prom-health-mode strong,
html[data-theme="dark"] .prom-health-bar-row strong,
html[data-theme="dark"] .prom-health-api-grid strong,
html[data-theme="dark"] .prom-health-market-card strong,
html[data-theme="dark"] .prom-health-action-row strong,
html[data-theme="dark"] .prom-health-alert-row strong,
html[data-theme="dark"] .prom-health-ai-result-title strong,
html[data-theme="dark"] .prom-health-ai-result-block strong {
    color: #e5f6f4;
}

html[data-theme="dark"] .prom-health-overview-grid div,
html[data-theme="dark"] .prom-health-add-key-panel,
html[data-theme="dark"] .prom-health-credential-block,
html[data-theme="dark"] .prom-health-credential-status span,
html[data-theme="dark"] .prom-health-key-row,
html[data-theme="dark"] .prom-health-mode,
html[data-theme="dark"] .prom-health-advanced,
html[data-theme="dark"] .prom-health-kpi,
html[data-theme="dark"] .prom-health-api-grid article,
html[data-theme="dark"] .prom-health-issue,
html[data-theme="dark"] .prom-health-product-meta span,
html[data-theme="dark"] .prom-health-product-taxonomy span,
html[data-theme="dark"] .prom-health-issue-cloud span,
html[data-theme="dark"] .prom-health-filters,
html[data-theme="dark"] .prom-health-action-row,
html[data-theme="dark"] .prom-health-alert-row,
html[data-theme="dark"] .prom-health-keyword-cloud span,
html[data-theme="dark"] .prom-health-keyword-gaps,
html[data-theme="dark"] .prom-health-keyword-gaps span,
html[data-theme="dark"] .prom-health-bucket-list span,
html[data-theme="dark"] .prom-health-profit-grid span,
html[data-theme="dark"] .prom-health-opportunity-grid span,
html[data-theme="dark"] .prom-health-ai-card-tools,
html[data-theme="dark"] .prom-health-ai-result,
html[data-theme="dark"] .prom-health-ai-result-block {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(30, 43, 54, 0.82);
}

html[data-theme="dark"] .prom-health-score {
    background: rgba(83, 92, 226, 0.22);
    color: #dfe5ff;
}

html[data-theme="dark"] .prom-health-keyword-gap-lang b {
    color: #d7e3ee;
}

html[data-theme="dark"] .prom-health-ai-result p,
html[data-theme="dark"] .prom-health-ai-result-block li,
html[data-theme="dark"] .prom-health-overview-grid span,
html[data-theme="dark"] .prom-health-add-key-panel summary span,
html[data-theme="dark"] .prom-health-key-row span,
html[data-theme="dark"] .prom-health-key-row small,
html[data-theme="dark"] .prom-health-ai-result-title span {
    color: #c7d5dd;
}

html[data-theme="dark"] .prom-health-overview-grid strong,
html[data-theme="dark"] .prom-health-subhead span,
html[data-theme="dark"] .prom-health-add-key-panel summary b,
html[data-theme="dark"] .prom-health-run-head > span {
    color: #dfe5ff;
}

@media (max-width: 1180px) {
    .prom-health-kpis,
    .prom-health-api-grid,
    .prom-health-market-grid,
    .prom-health-intel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prom-health-product-issues,
    .prom-health-credentials-grid,
    .prom-health-filters,
    .prom-health-ai-settings-grid,
    .prom-health-ai-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .prom-health-overview,
    .prom-health-form-grid,
    .prom-health-mode-row,
    .prom-health-split,
    .prom-health-product-main,
    .prom-health-advanced-grid,
    .prom-health-credentials-grid,
    .prom-health-market-grid,
    .prom-health-intel-grid,
    .prom-health-filters {
        grid-template-columns: 1fr;
    }

    .prom-health-kpis,
    .prom-health-api-grid,
    .prom-health-product-issues {
        grid-template-columns: 1fr;
    }

    .prom-health-bar-row {
        grid-template-columns: 1fr;
    }

    .prom-health-bar-row b {
        text-align: left;
    }

    .prom-health-score {
        width: 112px;
    }
}

/* Prom workspace structure refresh */
.prom-health-shell {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.prom-health-overview {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.56fr);
}

.prom-health-setup-grid {
    display: grid;
    grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.prom-health-credentials,
.prom-health-form,
.prom-health-results,
.prom-health-coverage,
.prom-health-top-issues,
.prom-health-api-map,
.prom-health-blind-spots,
.prom-health-products {
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(50, 58, 128, 0.075);
}

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

.prom-health-credential-block {
    border-radius: 12px;
    padding: 12px;
}

.prom-health-form-grid {
    grid-template-columns: minmax(0, 1fr) 164px;
}

.prom-health-mode {
    min-height: 72px;
    border-radius: 8px;
    padding: 10px 10px 10px 34px;
}

.prom-health-advanced {
    border-radius: 8px;
}

.prom-health-results-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding-bottom: 4px;
}

.prom-health-results-head h2 {
    margin: 0;
    color: #163837;
    font-size: 1.18rem;
}

.prom-health-run-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    max-width: 460px;
}

.prom-health-run-meta span {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 999px;
    background: rgba(247, 249, 248, 0.9);
    color: #526469;
    padding: 6px 9px;
    font-size: 0.76rem;
    font-weight: 750;
}

.prom-health-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prom-health-kpi {
    min-height: 92px;
    border-radius: 8px;
    padding: 11px;
}

.prom-health-market-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.prom-health-market-strip .prom-health-market-card {
    min-height: 96px;
    border-radius: 8px;
    padding: 10px;
}

.prom-health-market-strip .prom-health-market-card strong {
    font-size: 1.08rem;
}

.prom-health-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid rgba(18, 58, 56, 0.12);
    padding-top: 4px;
}

.prom-health-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #5d6b72;
    padding: 10px 12px;
    font-size: 0.86rem;
    font-weight: 850;
    cursor: pointer;
}

.prom-health-tabs button.is-active {
    border-bottom-color: #535ce2;
    color: #253078;
}

.prom-health-tab-panel {
    display: grid;
    gap: 14px;
}

.prom-health-tab-panel[hidden] {
    display: none !important;
}

.prom-health-ai-settings-compact {
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.prom-health-ai-settings-compact details {
    padding: 0;
}

.prom-health-ai-settings-compact summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    padding: 13px 14px;
}

.prom-health-ai-settings-compact summary::-webkit-details-marker {
    display: none;
}

.prom-health-ai-settings-compact summary div {
    display: grid;
    gap: 3px;
}

.prom-health-ai-settings-compact summary strong {
    color: #183c3a;
    font-size: 0.94rem;
}

.prom-health-ai-settings-compact summary span,
.prom-health-ai-settings-compact summary b {
    color: #64727a;
    font-size: 0.78rem;
}

.prom-health-ai-settings-compact summary b {
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 999px;
    background: rgba(236, 244, 255, 0.8);
    color: #3d46a0;
    padding: 5px 8px;
    white-space: nowrap;
}

.prom-health-ai-settings-compact .prom-health-ai-settings-grid {
    padding: 0 14px 14px;
}

.prom-health-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(130px, 0.75fr)) minmax(150px, 0.8fr) minmax(150px, 0.8fr) 130px;
    border-radius: 8px;
    padding: 10px;
}

.prom-health-product-list {
    gap: 8px;
}

.prom-health-product {
    gap: 8px;
    border-radius: 9px;
    padding: 11px;
}

.prom-health-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    gap: 12px;
    align-items: center;
}

.prom-health-product-main {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
}

.prom-health-score {
    min-height: 74px;
    border-radius: 8px;
}

.prom-health-score strong {
    font-size: 1.22rem;
}

.prom-health-score span {
    max-width: 74px;
    font-size: 0.68rem;
}

.prom-health-product-title h3 {
    font-size: 0.96rem;
}

.prom-health-product-meta span,
.prom-health-product-taxonomy span {
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 0.73rem;
}

.prom-health-ai-card-tools {
    justify-content: flex-end;
    border: 0;
    background: transparent;
    padding: 0;
}

.prom-health-product-details {
    border-top: 1px solid rgba(18, 58, 56, 0.1);
    padding-top: 8px;
}

.prom-health-product-details summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
    color: #526469;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.prom-health-product-details summary::-webkit-details-marker {
    display: none;
}

.prom-health-product-details summary b {
    color: #535ce2;
}

.prom-health-product-details[open] {
    display: grid;
    gap: 10px;
}

.prom-health-product-details[open] summary {
    margin-bottom: 8px;
}

.prom-health-product-issues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prom-health-issue {
    border-radius: 8px;
}

.prom-health-intel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prom-health-intel-card,
.prom-health-market-card {
    border-radius: 9px;
    box-shadow: none;
}

.prom-health-api-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-theme="dark"] .prom-health-results-head h2,
html[data-theme="dark"] .prom-health-ai-settings-compact summary strong {
    color: #e5f6f4;
}

html[data-theme="dark"] .prom-health-run-meta span,
html[data-theme="dark"] .prom-health-ai-settings-compact summary b {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(30, 43, 54, 0.82);
    color: #dfe5ff;
}

@media (max-width: 1180px) {
    .prom-health-overview,
    .prom-health-setup-grid,
    .prom-health-results-head,
    .prom-health-product-row {
        grid-template-columns: 1fr;
    }

    .prom-health-market-strip,
    .prom-health-intel-grid,
    .prom-health-api-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prom-health-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prom-health-run-meta,
    .prom-health-ai-card-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .prom-health-overview,
    .prom-health-overview-grid,
    .prom-health-kpis,
    .prom-health-market-strip,
    .prom-health-intel-grid,
    .prom-health-api-grid,
    .prom-health-product-issues,
    .prom-health-filters,
    .prom-health-form-grid {
        grid-template-columns: 1fr;
    }

    .prom-health-tabs {
        position: sticky;
        top: 0;
        z-index: 2;
        background: rgba(255, 255, 255, 0.96);
    }

    .prom-health-product-main {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}

.products-item-summary::-webkit-details-marker {
    display: none;
}

.products-item-toggle {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(18, 58, 56, 0.2);
    background: rgba(243, 249, 248, 0.98);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.products-item-toggle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(83, 92, 226, 0.84);
    border-bottom: 2px solid rgba(83, 92, 226, 0.84);
    transform: rotate(45deg);
    transition: transform 0.14s ease;
}

.products-item-row[open] .products-item-toggle::before {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.products-item-row[open] .products-item-summary {
    background: rgba(104, 112, 243, 0.06);
    border-bottom: 1px solid rgba(18, 58, 56, 0.12);
}

.products-item-main {
    min-width: 0;
}

.products-item-ident {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #697a80;
    font-size: 0.73rem;
    margin-bottom: 4px;
}

.products-item-main .item-title {
    margin: 0;
}

.products-item-col {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.products-item-col-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7c83;
    font-weight: 800;
}

.products-item-col strong {
    font-size: 0.84rem;
    font-weight: 800;
    color: #183840;
}

.products-item-body {
    padding: 10px 12px 12px;
    display: grid;
    gap: 10px;
}

.products-item-body-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.products-item-body-tags {
    margin: 0;
}

.products-item-body-links {
    margin-bottom: 0;
    justify-content: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border-radius: 12px;
    border: 0;
    background: rgba(240, 249, 247, 0.72);
    box-shadow: 0 8px 16px rgba(13, 86, 79, 0.08);
}

.products-item-body-links .action-pill {
    min-height: 31px;
    padding: 5px 12px;
    border: 0;
    box-shadow: 0 1px 2px rgba(10, 64, 60, 0.1), 0 6px 12px rgba(10, 64, 60, 0.08);
}

.products-item-body-links .action-pill:not(.action-pill-info-primary) {
    color: #0e6e64;
    background: rgba(255, 255, 255, 0.98);
}

.products-item-body-links .action-pill:not(.action-pill-info-primary):hover {
    color: #535ce2;
    background: rgba(228, 246, 243, 0.98);
    box-shadow: 0 2px 4px rgba(10, 64, 60, 0.12), 0 9px 14px rgba(10, 64, 60, 0.1);
}

.products-item-body-links .action-pill-info-primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(140deg, #11a79b, #0d7d74);
    box-shadow: 0 2px 5px rgba(12, 104, 96, 0.2), 0 10px 18px rgba(12, 104, 96, 0.16);
    min-width: 78px;
}

.products-item-body-links .action-pill-info-primary:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(140deg, #13b0a3, #0f887e);
    box-shadow: 0 4px 8px rgba(12, 104, 96, 0.24), 0 14px 22px rgba(12, 104, 96, 0.18);
}

.products-item-body-links .action-pill-info-primary.action-pill-disabled {
    color: rgba(255, 255, 255, 0.82);
    border-color: transparent;
    background: rgba(17, 167, 155, 0.62);
    box-shadow: none;
    opacity: 0.7;
}

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

.products-item-kpi-card {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 10px;
    padding: 10px;
    background: rgba(249, 252, 252, 0.94);
    display: grid;
    gap: 6px;
}

.products-item-kpi-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7c83;
    font-weight: 800;
}

.products-item-kpi-value {
    color: #183840;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}

.products-item-kpi-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.73rem;
    line-height: 1.2;
    font-weight: 800;
    border: 1px solid transparent;
}

.products-item-kpi-chip.tone-good {
    color: #535ce2;
    border-color: rgba(104, 112, 243, 0.34);
    background: rgba(104, 112, 243, 0.12);
}

.products-item-kpi-chip.tone-warn {
    color: #84580f;
    border-color: rgba(176, 126, 38, 0.38);
    background: rgba(245, 204, 110, 0.2);
}

.products-item-kpi-chip.tone-danger {
    color: #8f3734;
    border-color: rgba(168, 68, 62, 0.36);
    background: rgba(232, 133, 124, 0.18);
}

.products-item-kpi-chip.tone-neutral {
    color: #4a5f66;
    border-color: rgba(113, 132, 140, 0.34);
    background: rgba(226, 235, 238, 0.64);
}

@media (max-width: 1260px) {
    .products-rows-head,
    .products-item-summary {
        grid-template-columns: auto minmax(320px, 1.5fr) minmax(86px, 0.4fr) minmax(100px, 0.45fr) minmax(160px, 0.65fr);
    }

    .products-rows-head span:nth-child(6) {
        display: none;
    }

    .products-item-summary .products-item-col:last-of-type {
        display: none;
    }
}

@media (max-width: 980px) {
    .products-rows-head {
        display: none;
    }

    .products-item-summary {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 8px;
    }

    .products-item-col {
        grid-column: 2 / -1;
    }

    .products-item-col {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .products-item-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .products-item-ident {
        gap: 6px;
        font-size: 0.7rem;
    }

    .products-item-body-links {
        width: 100%;
        justify-content: flex-start;
        padding: 6px;
    }

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

    .products-item-kpi-card {
        padding: 8px;
    }
}

html[data-theme="dark"] .products-field > span {
    color: #9db5c9;
}

html[data-theme="dark"] .products-rows-head {
    color: #93a9bb;
}

html[data-theme="dark"] .products-item-row {
    border-color: rgba(126, 156, 178, 0.32);
    background: rgba(20, 28, 35, 0.9);
}

html[data-theme="dark"] .products-item-row.is-crossed {
    border-color: rgba(232, 183, 88, 0.42);
}

html[data-theme="dark"] .products-item-toggle {
    border-color: rgba(126, 156, 178, 0.28);
    background: rgba(24, 34, 43, 0.76);
}

html[data-theme="dark"] .products-item-toggle::before {
    border-right-color: rgba(146, 226, 215, 0.9);
    border-bottom-color: rgba(146, 226, 215, 0.9);
}

html[data-theme="dark"] .products-item-row[open] .products-item-summary {
    background: rgba(83, 92, 226, 0.18);
    border-bottom-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .products-item-ident,
html[data-theme="dark"] .products-item-col-label {
    color: #9bb4c7;
}

html[data-theme="dark"] .products-item-col strong {
    color: #dbe8f2;
}

html[data-theme="dark"] .products-item-kpi-card {
    border-color: rgba(126, 156, 178, 0.26);
    background: rgba(24, 34, 43, 0.72);
}

html[data-theme="dark"] .products-item-kpi-label {
    color: #9bb4c7;
}

html[data-theme="dark"] .products-item-kpi-value {
    color: #dbe8f2;
}

html[data-theme="dark"] .products-item-kpi-chip.tone-good {
    color: #9af4e7;
    border-color: rgba(158, 162, 255, 0.42);
    background: rgba(83, 92, 226, 0.28);
}

html[data-theme="dark"] .products-item-kpi-chip.tone-warn {
    color: #ffdca4;
    border-color: rgba(232, 183, 88, 0.42);
    background: rgba(120, 92, 33, 0.32);
}

html[data-theme="dark"] .products-item-kpi-chip.tone-danger {
    color: #ffc2be;
    border-color: rgba(212, 113, 106, 0.44);
    background: rgba(112, 52, 48, 0.4);
}

html[data-theme="dark"] .products-item-kpi-chip.tone-neutral {
    color: #c8dae7;
    border-color: rgba(126, 156, 178, 0.38);
    background: rgba(45, 62, 74, 0.62);
}

html[data-theme="dark"] .products-item-body-links {
    border-color: transparent;
    background: rgba(25, 40, 50, 0.58);
    box-shadow: 0 10px 18px rgba(8, 20, 28, 0.34);
}

html[data-theme="dark"] .products-item-body-links .action-pill:not(.action-pill-info-primary) {
    color: #9af4e7;
    background: rgba(27, 58, 53, 0.56);
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(6, 18, 22, 0.45), 0 8px 14px rgba(6, 18, 22, 0.32);
}

html[data-theme="dark"] .products-item-body-links .action-pill:not(.action-pill-info-primary):hover {
    color: #d4fff8;
    background: rgba(37, 76, 70, 0.74);
    border-color: transparent;
    box-shadow: 0 3px 6px rgba(6, 18, 22, 0.48), 0 12px 20px rgba(6, 18, 22, 0.34);
}

html[data-theme="dark"] .products-item-body-links .action-pill-info-primary {
    color: #e7fffb;
    border-color: transparent;
    background: linear-gradient(140deg, #22b3a5, #137e75);
    box-shadow: 0 2px 6px rgba(8, 26, 31, 0.54), 0 12px 20px rgba(8, 26, 31, 0.38);
}

html[data-theme="dark"] .products-item-body-links .action-pill-info-primary:hover {
    color: #e6fffb;
    border-color: transparent;
    background: linear-gradient(140deg, #2bc5b6, #1a8f85);
    box-shadow: 0 4px 8px rgba(8, 26, 31, 0.58), 0 16px 24px rgba(8, 26, 31, 0.42);
}

html[data-theme="dark"] .action-pill-info-primary {
    color: #ffffff;
    border-color: rgba(81, 184, 246, 0.76);
    background: linear-gradient(135deg, #0e74cc, #0a59ab);
    box-shadow: 0 4px 12px rgba(12, 85, 160, 0.34);
}

html[data-theme="dark"] .action-pill-info-primary:hover {
    color: #ffffff;
    border-color: rgba(136, 214, 255, 0.9);
    background: linear-gradient(135deg, #0f7edb, #0b65bf);
    box-shadow: 0 6px 14px rgba(12, 90, 170, 0.4);
}

.product-detail-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(12px, 1.4vw, 20px);
    align-items: start;
}

.product-detail-main-section {
    min-width: 0;
    height: 100%;
}

.product-detail-commission-section .commission-panel {
    gap: 14px;
}

.product-detail-commission-section .commission-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-detail-commission-section .commission-summary-grid .insight-card:last-child {
    grid-column: 1 / -1;
}

.product-detail-history-section {
    padding-top: clamp(16px, 1.4vw, 20px);
}

.product-detail-history-section .stats-summary-grid {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-detail-history-section .summary-card-wide,
.product-detail-history-section .summary-card-highlight {
    grid-column: 1 / -1;
}

.product-detail-sellers-section {
    display: grid;
    gap: 12px;
}

html[data-theme="dark"] .product-detail-meta-chip {
    background: rgba(18, 26, 33, 0.9);
    border-color: rgba(126, 156, 178, 0.3);
}

html[data-theme="dark"] .product-detail-meta-label {
    color: #9db5c9;
}

html[data-theme="dark"] .product-detail-meta-chip strong {
    color: #edf7ff;
}

html[data-theme="dark"] .product-detail-meta-link {
    color: #8ff0e2;
}

html[data-theme="dark"] .product-detail-tabs-nav {
    border-color: rgba(126, 156, 178, 0.28);
    background: rgba(22, 30, 37, 0.9);
}

html[data-theme="dark"] .product-detail-tab-btn {
    border-color: rgba(126, 156, 178, 0.32);
    background: rgba(17, 25, 32, 0.92);
    color: #c5d8e8;
}

html[data-theme="dark"] .product-detail-tab-btn:hover {
    border-color: rgba(143, 240, 226, 0.46);
    color: #8ff0e2;
}

html[data-theme="dark"] .product-detail-tab-btn.is-active {
    border-color: rgba(143, 240, 226, 0.46);
    background: rgba(27, 58, 53, 0.72);
    color: #8ff0e2;
}

html[data-theme="dark"] .product-metric-card .insight-value {
    color: #edf7ff;
}

html[data-theme="dark"] .product-metric-card .insight-meta {
    color: #9db5c9;
}

html[data-theme="dark"] .product-action-card {
    border-color: rgba(126, 156, 178, 0.28);
    background: rgba(17, 25, 32, 0.9);
}

html[data-theme="dark"] .product-detail-action-menu-panel {
    border-color: rgba(126, 156, 178, 0.28);
    background: rgba(17, 25, 32, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .product-detail-action-menu-item {
    color: #d8e8f3;
}

html[data-theme="dark"] .product-detail-action-menu-item:hover,
html[data-theme="dark"] .product-detail-action-menu-item:focus-visible {
    color: #8ff0e2;
    background: rgba(143, 240, 226, 0.12);
}

html[data-theme="dark"] .model-analysis-status-option {
    border-color: rgba(126, 156, 178, 0.32);
    background: rgba(17, 25, 32, 0.92);
    color: #c5d8e8;
}

html[data-theme="dark"] .model-analysis-status-option.is-active {
    border-color: rgba(143, 240, 226, 0.46);
    background: rgba(27, 58, 53, 0.72);
    color: #8ff0e2;
}

html[data-theme="dark"] .model-analysis-item {
    border-color: rgba(126, 156, 178, 0.3);
    background: rgba(20, 28, 35, 0.9);
}

html[data-theme="dark"] .model-analysis-label {
    color: #9db5c9;
}

html[data-theme="dark"] .model-analysis-value {
    color: #edf7ff;
}

.commission-panel {
    display: grid;
    gap: 12px;
}

.commission-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.commission-form-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.commission-form-grid label > span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a665b;
    font-weight: 700;
}

.commission-form-action {
    display: flex;
    align-items: center;
}

.commission-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.item-meta-row {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.item-meta-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #535ce2;
    background: rgba(104, 112, 243, 0.12);
    border: 1px solid rgba(104, 112, 243, 0.28);
}

.scan-items-table td:nth-child(1),
.scan-items-table td:nth-child(2),
.scan-items-table td:nth-child(3),
.scan-items-table td:nth-child(6),
.scan-items-table td:nth-child(7),
.scan-items-table td:nth-child(8),
.scan-items-table td:nth-child(9),
.scan-items-table td:nth-child(10),
.scan-items-table td:nth-child(15),
.scan-items-table td:nth-child(16) {
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
    .product-detail-header-actions {
        justify-content: flex-start;
    }

    .product-detail-header-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-main-layout {
        grid-template-columns: 1fr;
    }

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

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

    .product-detail-actions-grid {
        grid-template-columns: 1fr;
    }

    .products-filter-form .scan-filter-main-row {
        grid-template-columns: 1fr;
    }

    .products-filter-form .scan-filter-options-row {
        grid-template-columns: 1fr;
    }

    .product-detail-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-commission-section .commission-summary-grid,
    .product-detail-history-section .stats-summary-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-commission-section .commission-summary-grid .insight-card:last-child,
    .product-detail-history-section .summary-card-wide,
    .product-detail-history-section .summary-card-highlight {
        grid-column: span 1;
    }

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

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

@media (max-width: 720px) {
    .product-detail-screen {
        gap: 12px;
    }

    .product-detail-header-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-detail-refresh-state {
        width: 100%;
        align-items: flex-start;
    }

    .product-detail-header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .product-detail-primary-action,
    .product-detail-action-menu,
    .product-detail-action-menu > summary {
        width: 100%;
    }

    .product-detail-action-menu-panel {
        right: auto;
        left: 0;
        width: 100%;
    }

    .product-detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .model-analysis-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }

    .product-detail-tab-btn {
        flex: 0 0 auto;
        min-width: 140px;
        text-align: center;
    }

    .commission-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal pages */
.legal-page {
    width: min(980px, 100%);
    justify-self: center;
    padding: clamp(18px, 2vw, 28px);
}

.legal-header h1 {
    margin-bottom: 8px;
}

.legal-back {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #535ce2;
    text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
    text-decoration: underline;
}

.legal-doc {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    line-height: 1.58;
}

.legal-doc h2 {
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.legal-doc p {
    margin: 0;
    color: var(--text-primary);
    overflow-wrap: break-word;
}

.legal-doc a {
    color: #535ce2;
    font-weight: 600;
}

html[data-theme="dark"] .legal-back {
    color: #aeb3ff;
}

html[data-theme="dark"] .legal-doc a {
    color: #aeb3ff;
}

/* -------------------------------------------------------------------------- */
/* v1.381 - Unified design system and app-shell foundation (UI only)          */
/* -------------------------------------------------------------------------- */

:root {
    --color-canvas: #f4f5f3;
    --color-surface: rgba(255, 255, 255, 0.82);
    --color-surface-soft: rgba(250, 251, 249, 0.72);
    --color-surface-strong: #ffffff;
    --color-text: #192425;
    --color-text-muted: #5b6668;
    --color-border: rgba(19, 62, 59, 0.16);
    --color-border-strong: rgba(16, 109, 101, 0.3);
    --color-primary: #6870f3;
    --color-primary-hover: #6870f3;
    --color-primary-active: #535ce2;
    --color-primary-soft: rgba(104, 112, 243, 0.14);
    --color-warning: #b4852f;
    --color-danger: #bb4e43;
    --color-success: #6870f3;

    --radius-2xs: 8px;
    --radius-xs: 10px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --shadow-sm: 0 4px 12px rgba(11, 27, 29, 0.06);
    --shadow-md: 0 12px 30px rgba(11, 27, 29, 0.08);
    --shadow-lg: 0 24px 48px rgba(11, 27, 29, 0.1);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    --topbar-height: 72px;
    --content-max: 1840px;
    --content-gutter: clamp(12px, 1.6vw, 32px);

    /* Backward-compatible aliases */
    --bg-base: var(--color-canvas);
    --bg-panel: var(--color-surface);
    --bg-panel-soft: var(--color-surface-soft);
    --text-main: var(--color-text);
    --text-primary: var(--color-text);
    --text-muted: var(--color-text-muted);
    --border: var(--color-border);
    --accent: var(--color-primary);
    --accent-dark: var(--color-primary-active);
    --danger: var(--color-danger);
    --ok: var(--color-success);
    --warning: var(--color-warning);
    --radius: var(--radius-md);
    --radius-sm: var(--radius-xs);
    --shadow: var(--shadow-md);
    --container: var(--content-max);
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-height) + 16px);
    background: #f6f7f4;
    overscroll-behavior-y: none;
}

body {
    color: var(--color-text);
    background:
        radial-gradient(1200px 700px at 4% -12%, rgba(247, 223, 153, 0.34) 0%, rgba(247, 223, 153, 0) 60%),
        radial-gradient(900px 600px at 96% 0%, rgba(152, 219, 204, 0.24) 0%, rgba(152, 219, 204, 0) 62%),
        linear-gradient(180deg, #f7f8f6 0%, #f1f2ef 100%);
    background-color: #f6f7f4;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overscroll-behavior-y: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image: radial-gradient(rgba(8, 46, 44, 0.06) 0.5px, transparent 0.5px);
    background-size: 3px 3px;
    opacity: 0.28;
}

body.shell-auth {
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1 1 auto;
    min-height: 0;
}

.container {
    width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
    max-width: none;
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 0;
    margin: 0;
    z-index: 70;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(248, 249, 248, 0.9) 0%, rgba(246, 247, 246, 0.86) 100%);
    backdrop-filter: saturate(130%) blur(10px);
    box-shadow: 0 2px 14px rgba(10, 35, 36, 0.05);
}

.topbar-inner {
    min-height: var(--topbar-height);
    gap: var(--space-4);
}

.brand {
    gap: var(--space-3);
    min-width: 0;
}

.brand-logo-main {
    display: block;
    height: clamp(34px, 2.8vw, 46px);
    width: auto;
    max-width: min(360px, 58vw);
    object-fit: contain;
}

.top-nav a,
.top-nav .nav-link-button {
    font-size: 0.96rem;
}

.top-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.page.page-content {
    padding: clamp(16px, 2vw, 28px) 0 clamp(26px, 3vw, 42px);
    gap: clamp(14px, 1.6vw, 22px);
    align-content: start;
}

.panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    padding: clamp(16px, 1.8vw, 24px);
}

.panel-soft {
    background: var(--color-surface-soft);
}

.panel h1 {
    font-size: clamp(1.32rem, 1.15rem + 0.7vw, 1.68rem);
    line-height: 1.2;
}

.panel h2 {
    font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.22rem);
    line-height: 1.3;
}

.panel h3 {
    margin: 0;
    font-size: clamp(0.96rem, 0.92rem + 0.24vw, 1.08rem);
    line-height: 1.35;
}

.muted {
    color: var(--color-text-muted);
}

label {
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.35;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    min-height: 44px;
    padding: 10px 14px;
    font-size: 1rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(70, 86, 90, 0.7);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-border-strong);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.15);
    background: #ffffff;
}

.btn {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    min-height: 42px;
    padding: 0 16px;
    font-weight: 700;
    transition: transform 0.12s ease, box-shadow 0.16s ease, filter 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible,
.filter-preset-btn:focus-visible,
.scan-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.22);
}

.btn-primary {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-active) 100%);
    border-color: rgba(83, 92, 226, 0.75);
    color: #ffffff;
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-secondary {
    background: rgba(104, 112, 243, 0.1);
    border-color: rgba(104, 112, 243, 0.35);
    color: var(--color-primary-active);
}

.btn-danger-soft {
    background: rgba(187, 78, 67, 0.09);
    border-color: rgba(187, 78, 67, 0.32);
    color: #9f352d;
}

.btn-warning-soft {
    background: rgba(180, 133, 47, 0.14);
    border-color: rgba(180, 133, 47, 0.38);
    color: #835f1d;
}

.table-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: auto;
    background: rgba(255, 255, 255, 0.78);
}

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

th {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #546061;
    font-weight: 700;
    background: rgba(244, 247, 245, 0.95);
}

th,
td {
    border-bottom: 1px solid rgba(21, 76, 76, 0.1);
    padding: 11px 12px;
    vertical-align: top;
}

tbody tr:hover td {
    background: rgba(104, 112, 243, 0.06);
}

.alert {
    border-radius: var(--radius-sm);
}

@media (max-width: 1440px) {
    :root {
        --content-max: 1560px;
    }
}

@media (max-width: 1280px) {
    :root {
        --content-max: 1360px;
        --content-gutter: clamp(12px, 1.6vw, 24px);
    }

    .topbar-inner {
        min-height: 66px;
    }
}

@media (max-width: 1024px) {
    :root {
        --content-max: 1200px;
        --content-gutter: 14px;
    }

    .topbar-inner {
        min-height: 64px;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
        padding-bottom: 4px;
    }

    .grid.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --content-gutter: 10px;
    }

    .brand-logo-main {
        height: 34px;
        max-width: 240px;
    }

    .top-nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .panel {
        border-radius: var(--radius-md);
        padding: 14px;
    }

    .page.page-content {
        padding-top: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 16px);
    }

    .topbar-inner {
        min-height: 58px;
    }

    .btn,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    select,
    textarea {
        min-height: 40px;
    }

    th,
    td {
        padding: 9px 8px;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.381.2 - Full-screen authorized SaaS app shell                           */
/* -------------------------------------------------------------------------- */

body.shell-auth .container {
    width: calc(100% - (var(--content-gutter) * 2));
    max-width: none;
}

body.shell-auth .topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--topbar-height);
    z-index: 120;
    background: #f6f7f4;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.shell-auth .topbar .container {
    width: calc(100% - (var(--content-gutter) * 2));
}

body.shell-auth .brand-logo-main {
    height: clamp(34px, 2.2vw, 42px);
}

.shell-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(13, 90, 85, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: #0e6f67;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

.shell-nav-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.shell-nav-toggle:hover {
    background: rgba(104, 112, 243, 0.12);
    border-color: rgba(13, 90, 85, 0.36);
}

.auth-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - var(--topbar-height));
    margin-top: var(--topbar-height);
}

.app-sidebar {
    position: sticky;
    top: var(--topbar-height);
    align-self: start;
    height: calc(100vh - var(--topbar-height));
    border-right: 1px solid rgba(12, 77, 73, 0.12);
    background: linear-gradient(180deg, rgba(248, 252, 251, 0.9) 0%, rgba(244, 248, 246, 0.85) 100%);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: width 0.2s ease, transform 0.22s ease;
}

.app-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 14px 8px;
}

.app-sidebar-title {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f5c56;
    letter-spacing: 0.01em;
}

.sidebar-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(13, 90, 85, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #0f6f67;
    cursor: pointer;
    transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}

.sidebar-collapse-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sidebar-collapse-btn:hover {
    background: rgba(104, 112, 243, 0.12);
    border-color: rgba(13, 90, 85, 0.36);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 10px 10px;
}

.sidebar-section-label {
    margin: 14px 12px 4px;
    color: #6b7f86;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #214445;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.sidebar-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(13, 90, 85, 0.22);
    background: rgba(255, 255, 255, 0.76);
    display: inline-grid;
    place-items: center;
    color: #0f7c74;
    transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
    flex: 0 0 auto;
}

.sidebar-link-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sidebar-link:hover {
    background: rgba(104, 112, 243, 0.11);
    border-color: rgba(104, 112, 243, 0.24);
    color: #535ce2;
}

.sidebar-link:hover .sidebar-link-icon {
    border-color: rgba(104, 112, 243, 0.36);
    background: rgba(104, 112, 243, 0.12);
    color: #0a6c64;
}

.sidebar-link.is-active {
    background: linear-gradient(180deg, rgba(104, 112, 243, 0.19) 0%, rgba(104, 112, 243, 0.12) 100%);
    border-color: rgba(104, 112, 243, 0.34);
    color: #0a5f58;
    box-shadow: inset 0 0 0 1px rgba(104, 112, 243, 0.12);
}

.sidebar-link.is-active .sidebar-link-icon {
    background: rgba(104, 112, 243, 0.16);
    border-color: rgba(104, 112, 243, 0.42);
    color: #0a655e;
}

.sidebar-link.is-locked {
    width: 100%;
    appearance: none;
    cursor: not-allowed;
    color: color-mix(in srgb, var(--text-muted), var(--text-main) 18%);
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    opacity: 0.78;
}

.sidebar-link.is-locked:hover,
.sidebar-link.is-locked:focus-visible {
    color: #626a85;
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(99, 102, 241, 0.24);
}

.sidebar-link.is-locked .sidebar-link-icon {
    color: #737b96;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.22);
}

.app-main {
    min-width: 0;
}

.app-main-scroll {
    min-height: calc(100vh - var(--topbar-height));
    padding: 0 var(--content-gutter) 22px;
}

.app-main-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

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

body.shell-auth .page.page-content {
    padding: 0;
    width: 100%;
}

.sidebar-backdrop {
    display: none;
}

body.shell-auth.sidebar-collapsed .auth-layout {
    grid-template-columns: 82px minmax(0, 1fr);
}

body.shell-auth.sidebar-collapsed .app-sidebar-title,
body.shell-auth.sidebar-collapsed .sidebar-link-text {
    display: none;
}

body.shell-auth.sidebar-collapsed .sidebar-section-label {
    display: flex;
    justify-content: center;
    margin: 12px 0 4px;
}

body.shell-auth.sidebar-collapsed .sidebar-section-label span {
    display: block;
    width: 20px;
    height: 1px;
    overflow: hidden;
    background: rgba(104, 112, 243, 0.32);
    color: transparent;
}

body.shell-auth.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding-inline: 8px;
}

body.shell-auth.sidebar-collapsed .app-sidebar-head {
    justify-content: center;
}

body.shell-auth.sidebar-collapsed .sidebar-collapse-btn {
    transform: rotate(180deg);
}

html[data-theme="dark"] body.shell-auth .topbar {
    background: rgba(16, 24, 30, 0.96);
    border-bottom-color: rgba(126, 156, 178, 0.26);
}

html[data-theme="dark"] .shell-nav-toggle,
html[data-theme="dark"] .sidebar-collapse-btn {
    background: rgba(22, 33, 42, 0.92);
    border-color: rgba(126, 156, 178, 0.34);
    color: #9edfd4;
}

html[data-theme="dark"] .app-sidebar {
    background: linear-gradient(180deg, rgba(19, 29, 36, 0.96) 0%, rgba(17, 25, 31, 0.94) 100%);
    border-right-color: rgba(126, 156, 178, 0.24);
}

html[data-theme="dark"] .app-sidebar-title {
    color: #d5eef2;
}

html[data-theme="dark"] .sidebar-link {
    color: #c5d8e8;
}

html[data-theme="dark"] .sidebar-section-label {
    color: #8b99bd;
}

html[data-theme="dark"] .sidebar-link-icon {
    background: rgba(17, 25, 32, 0.94);
    border-color: rgba(126, 156, 178, 0.32);
    color: #91e2d7;
}

html[data-theme="dark"] .sidebar-link:hover {
    background: rgba(24, 54, 58, 0.44);
    border-color: rgba(136, 140, 213, 0.34);
    color: #e8f8ff;
}

html[data-theme="dark"] .sidebar-link:hover .sidebar-link-icon {
    background: rgba(29, 70, 74, 0.58);
    border-color: rgba(136, 140, 213, 0.42);
    color: #b6fff5;
}

html[data-theme="dark"] .sidebar-link.is-active {
    background: linear-gradient(180deg, rgba(20, 85, 79, 0.5) 0%, rgba(20, 75, 72, 0.35) 100%);
    border-color: rgba(136, 140, 213, 0.4);
    color: #ddfbff;
}

html[data-theme="dark"] .sidebar-link.is-active .sidebar-link-icon {
    background: rgba(20, 85, 79, 0.44);
    border-color: rgba(136, 140, 213, 0.5);
    color: #bffff6;
}

@media (max-width: 1280px) {
    .auth-layout {
        grid-template-columns: 248px minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    .shell-nav-toggle {
        display: inline-flex;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    .auth-layout {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        width: min(320px, 86vw);
        transform: translateX(-102%);
        z-index: 130;
        box-shadow: 16px 0 40px rgba(6, 28, 27, 0.2);
        border-right: 1px solid rgba(12, 77, 73, 0.22);
    }

    body.shell-auth.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: var(--topbar-height) 0 0 0;
        background: rgba(13, 24, 24, 0.35);
        backdrop-filter: blur(1px);
        z-index: 125;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    body.shell-auth.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-main-scroll {
        padding-top: 14px;
    }

    .app-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .app-main-scroll {
        padding-inline: 10px;
    }

    body.shell-auth .topbar .container {
        width: calc(100% - 20px);
    }

    .app-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* v1.382 - unified page header */
.cc-page-header {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.cc-page-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cc-page-breadcrumbs a {
    color: var(--accent-dark);
    text-decoration: none;
}

.cc-page-breadcrumbs a:hover {
    text-decoration: underline;
}

.cc-page-breadcrumb-sep {
    color: var(--color-border-strong);
}

.cc-page-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cc-page-header-copy {
    min-width: 0;
}

.cc-page-title {
    margin: 0;
    font-size: clamp(1.24rem, 1vw + 1rem, 1.72rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cc-page-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.cc-page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cc-page-header--compact .cc-page-title {
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.cc-page-header--compact .cc-page-subtitle {
    font-size: 0.84rem;
}

@media (max-width: 768px) {
    .cc-page-header-main {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-page-header-actions {
        justify-content: flex-start;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.383 - Unified responsive grid wrappers (12 / 8 / 4)                     */
/* -------------------------------------------------------------------------- */

.layout-page-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(12px, 1.1vw, 20px);
    align-content: start;
}

.layout-page-container > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.layout-section {
    width: 100%;
    min-width: 0;
}

.layout-card-group {
    display: grid;
    gap: clamp(10px, 1vw, 16px);
}

.layout-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(8px, 0.9vw, 14px);
}

.layout-toolbar-row > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .layout-page-container {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .layout-page-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.384 - Adaptive behavior for desktop / tablet / mobile app shell         */
/* -------------------------------------------------------------------------- */

body.shell-auth {
    overflow-x: clip;
}

body.shell-auth .app-main {
    min-width: 0;
    width: 100%;
}

body.shell-auth .app-main-scroll {
    padding: 0 var(--content-gutter) 22px;
    overflow-x: clip;
}

body.shell-auth .app-main-container {
    width: 100%;
    max-width: none;
}

body.shell-auth .table-wrap,
body.shell-auth .scan-table-wrap {
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 1440px) {
    .auth-layout {
        grid-template-columns: 296px minmax(0, 1fr);
    }

    .layout-page-container {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .auth-layout {
        grid-template-columns: 264px minmax(0, 1fr);
    }

    .layout-page-container {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .shell-nav-toggle {
        display: inline-flex;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    .auth-layout {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        width: min(340px, 90vw);
        transform: translateX(-102%);
        z-index: 130;
        box-shadow: 16px 0 40px rgba(6, 28, 27, 0.2);
    }

    body.shell-auth.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: var(--topbar-height) 0 0 0;
        background: rgba(13, 24, 24, 0.34);
        backdrop-filter: blur(2px);
        z-index: 125;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    body.shell-auth.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-grid,
    .layout-page-container {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .shell-nav-toggle {
        display: inline-flex;
    }

    .auth-layout {
        display: block;
    }

    .app-main-scroll {
        padding-inline: 14px;
    }

    .app-grid,
    .layout-page-container {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .cc-page-header-main {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-page-header-actions {
        justify-content: flex-start;
    }

    .grid.two-col,
    .stats-grid,
    .scan-guidance {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 390px) and (max-width: 767px) {
    :root {
        --content-gutter: 10px;
    }

    body.shell-auth .topbar .container {
        width: calc(100% - 20px);
    }

    .app-main-scroll {
        padding-inline: 10px;
    }

    .app-grid,
    .layout-page-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .cc-page-header-main {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-page-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cc-page-header-actions > * {
        flex: 1 1 100%;
    }

    .cc-page-header-actions .btn,
    .cc-page-header-actions button {
        width: 100%;
        min-height: 40px;
        padding-block: 9px;
    }

    .grid.two-col,
    .stats-grid,
    .scan-guidance,
    .scan-filter-main-row,
    .scan-filter-options-row,
    .scan-filter-main-actions,
    .scan-filter-flags,
    .cabinet-layout,
    .cabinet-kpi-grid,
    .source-center-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .scan-filter-main-actions .btn,
    .scan-filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 389px) {
    body.shell-auth .topbar .container {
        width: calc(100% - 16px);
    }

    .app-main-scroll {
        padding-inline: 8px;
    }

    .layout-page-container,
    .app-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .cc-page-title {
        font-size: 1.12rem;
    }

    .btn {
        padding-inline: 12px;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.386 - Scan details mobile stabilization                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .scan-filter-main-row,
    .scan-filter-options-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .scan-filter-main-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        justify-content: stretch;
    }

    .scan-filter-main-actions .scan-per-page-label {
        margin-top: 2px;
        font-size: 0.78rem;
    }

    .scan-filter-main-actions .scan-per-page-select,
    .scan-filter-main-actions .scan-sort-by-select,
    .scan-filter-main-actions .scan-sort-dir-select,
    .scan-filter-main-actions .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .scan-filter-flags {
        grid-template-columns: 1fr;
    }

    .scan-filter-top-row,
    .scan-filter-search-row,
    .scan-filter-controls-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-top-row {
        display: grid;
    }

    .scan-filter-top-row .scan-filter-presets,
    .scan-filter-top-row .scan-filter-actions {
        min-width: 0;
        width: 100%;
    }

    .scan-filter-search-row .btn {
        width: 100%;
    }

    .scan-filter-form > .scan-filter-flags {
        grid-template-columns: 1fr;
    }

    .scan-filter-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .scan-filter-actions .btn {
        width: 100%;
    }

    .scan-filter-hint {
        margin-top: 2px;
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .scan-table-wrap {
        overflow: visible !important;
        border: 0;
        background: transparent;
        border-radius: 0;
    }

    .scan-items-table,
    .scan-items-table tbody,
    .scan-items-table tr,
    .scan-items-table td {
        display: block;
        width: 100% !important;
    }

    .scan-items-table {
        min-width: 0 !important;
        table-layout: auto !important;
    }

    .scan-items-table thead {
        display: none;
    }

    .scan-items-table tbody tr {
        margin: 0 0 10px;
        padding: 10px 10px 8px;
        border-radius: 12px;
        border: 1px solid rgba(16, 112, 103, 0.22);
        background: rgba(238, 249, 247, 0.76);
    }

    .scan-items-table tbody tr:hover td,
    .scan-items-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    .scan-items-table td {
        border: 0;
        padding: 0;
        margin: 0 0 8px;
        white-space: normal !important;
        overflow: visible;
        text-overflow: clip;
    }

    .scan-items-table td:last-child {
        margin-bottom: 0;
    }

    .scan-items-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 0.67rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #6f695d;
        font-weight: 800;
    }

    html[data-theme="dark"] .scan-items-table td::before {
        color: #9db0c7;
    }

    .scan-items-table td[data-label="Товар"] {
        margin-bottom: 10px;
    }

    .scan-items-table td[data-label="Товар"]::before {
        margin-bottom: 4px;
    }

    .scan-items-table td:not([data-label="Товар"]) {
        display: grid;
        grid-template-columns: minmax(108px, 40%) 1fr;
        gap: 8px;
        align-items: baseline;
    }

    .scan-items-table td:not([data-label="Товар"])::before {
        margin: 0;
    }

    .scan-product-cell .item-title {
        font-size: 0.93rem;
        line-height: 1.28;
        -webkit-line-clamp: 3;
    }

    .scan-product-cell .item-meta-row {
        gap: 5px;
    }

    .scan-product-cell .item-meta-chip,
    .scan-product-cell .action-pill {
        font-size: 0.7rem;
    }

    .scan-product-cell .item-links-buttons {
        margin-bottom: 5px;
    }

    .cc-collapsible__trigger {
        margin-top: 4px;
    }
}

@media (max-width: 520px) {
    .scan-filter-actions {
        grid-template-columns: 1fr;
    }

    .scan-items-table td:not([data-label="Товар"]) {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Feed source forms: isolated slot actions and explicit save state. */
body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slots-form {
    display: grid;
    gap: 14px;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 8px !important;
    scroll-margin-top: 96px;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form.has-success-feedback {
    border-color: rgba(42, 142, 92, 0.46) !important;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form.has-error-feedback {
    border-color: rgba(192, 59, 55, 0.52) !important;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form.is-dirty:not(.is-locked) {
    border-color: rgba(83, 92, 226, 0.46) !important;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-header {
    min-width: 0;
    margin: 0;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-header > .muted {
    margin-left: auto;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .inline-fields {
    gap: 14px;
    align-items: start;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .inline-fields label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .inline-fields input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management input[type="url"] {
    text-overflow: ellipsis;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management input[type="url"]:focus {
    text-overflow: clip;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding-top: 2px;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
    .feed-slot-primary-actions,
    .feed-slot-secondary-actions
) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-secondary-actions {
    justify-content: flex-end;
    margin-left: auto;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-secondary-actions:empty {
    display: none;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status::before {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status:is(.is-saved, .is-success) {
    color: #2a8e5c;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status.is-ready {
    color: #535ce2;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status:is(.is-warning, .is-dirty) {
    color: #a26718;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status.is-error {
    color: #b83b37;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status:is(.is-saved, .is-success) {
    color: #8de2b5;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status.is-ready {
    color: #aeb4ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status:is(.is-warning, .is-dirty) {
    color: #f1c47d;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status.is-error {
    color: #ffaaa6;
}

@media (max-width: 900px) {
    body.shell-auth:not(.shell-prom-analytics) #feeds-management .inline-fields {
        grid-template-columns: 1fr;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
        .feed-slot-primary-actions,
        .feed-slot-secondary-actions
    ) {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form {
        gap: 12px;
        padding: 14px !important;
        scroll-margin-top: 72px;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-header {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-header > .muted {
        margin-left: 0;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-header > .btn,
    body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
        .feed-slot-primary-actions,
        .feed-slot-secondary-actions
    ) > .btn {
        width: 100%;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
        .feed-slot-primary-actions,
        .feed-slot-secondary-actions
    ) {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form-status {
        min-height: 20px;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management input[type="url"] {
        font-size: 16px;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.394 - Product competitors structured view                               */
/* -------------------------------------------------------------------------- */

.product-competitors-table-wrap {
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    overflow-x: auto;
}

.product-competitors-table {
    width: 100%;
    min-width: 1220px;
    border-collapse: collapse;
}

.product-competitors-table th,
.product-competitors-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(20, 75, 72, 0.1);
    vertical-align: middle;
}

.product-competitors-table th {
    background: rgba(244, 248, 247, 0.96);
}

.product-competitor-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.product-competitor-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.product-competitor-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.product-competitor-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(18, 58, 56, 0.16);
    background: rgba(238, 248, 246, 0.95);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.product-competitor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-competitor-avatar span {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0e6c62;
}

.product-competitor-flag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.product-competitor-flag.flag-leader {
    color: #8e5b12;
    background: rgba(245, 204, 110, 0.22);
    border-color: rgba(176, 126, 38, 0.35);
}

.product-competitor-flag.flag-own {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.14);
    border-color: rgba(104, 112, 243, 0.34);
}

.product-stock-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-stock-chip.stock-in {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.16);
    border-color: rgba(83, 92, 226, 0.36);
}

.product-stock-chip.stock-out {
    color: #9c3a32;
    background: rgba(211, 112, 102, 0.14);
    border-color: rgba(183, 83, 73, 0.34);
}

.product-stock-chip.stock-unknown {
    color: #60696f;
    background: rgba(124, 137, 144, 0.14);
    border-color: rgba(108, 121, 129, 0.3);
}

.product-competitor-row.is-leader td:first-child {
    box-shadow: inset 3px 0 0 rgba(176, 126, 38, 0.36);
}

.product-competitor-row.is-own td:first-child {
    box-shadow: inset 3px 0 0 rgba(104, 112, 243, 0.44);
}

.product-competitor-row.is-own.is-leader td:first-child {
    box-shadow: inset 3px 0 0 rgba(104, 112, 243, 0.44), inset 6px 0 0 rgba(176, 126, 38, 0.32);
}

.product-competitor-categories-cell {
    min-width: 320px;
}

.product-competitor-accordion {
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
    overflow: hidden;
}

.product-competitor-accordion[open] {
    background: rgba(255, 255, 255, 0.94);
}

.product-competitor-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    position: relative;
    padding-right: 26px;
}

.product-competitor-accordion-summary::-webkit-details-marker {
    display: none;
}

.product-competitor-accordion-summary::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(83, 92, 226, 0.8);
    border-bottom: 2px solid rgba(83, 92, 226, 0.8);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.16s ease;
}

.product-competitor-accordion[open] .product-competitor-accordion-summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.product-competitor-accordion-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #535ce2;
    border: 1px solid rgba(104, 112, 243, 0.3);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.12);
    padding: 3px 8px;
    white-space: nowrap;
}

.product-competitor-accordion-meta {
    font-size: 0.73rem;
    color: #536369;
    font-weight: 700;
    text-align: right;
}

.product-competitor-accordion[open] .product-competitor-accordion-title {
    background: rgba(104, 112, 243, 0.2);
    border-color: rgba(104, 112, 243, 0.44);
}

.product-competitor-categories-total {
    font-size: 0.72rem;
    color: #536369;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-competitor-categories-list {
    display: grid;
    gap: 6px;
}

.product-competitor-category-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.2;
}

.product-competitor-category-rank {
    font-size: 0.67rem;
    color: #535ce2;
    background: rgba(104, 112, 243, 0.14);
    border: 1px solid rgba(104, 112, 243, 0.34);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 800;
}

.product-competitor-category-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #214047;
}

.product-competitor-category-meta {
    font-size: 0.74rem;
    color: #56696f;
}

.product-competitor-category-chip {
    font-size: 0.71rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 88, 116, 0.32);
    color: #17647f;
    background: rgba(195, 233, 244, 0.36);
    padding: 2px 8px;
    font-weight: 700;
}

.product-competitor-periods-list {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}

.product-competitor-period-block {
    border: 1px solid rgba(18, 58, 56, 0.12);
    border-radius: 10px;
    padding: 6px 8px;
    background: rgba(250, 252, 252, 0.96);
}

.product-competitor-period-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.product-competitor-period-badge {
    font-size: 0.68rem;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 800;
    color: #535ce2;
    background: rgba(104, 112, 243, 0.14);
    border: 1px solid rgba(104, 112, 243, 0.34);
}

.product-competitors-cards {
    display: none;
    gap: 10px;
}

.product-competitor-card {
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.product-competitor-card.is-own {
    border-color: rgba(104, 112, 243, 0.4);
    box-shadow: 0 10px 22px rgba(104, 112, 243, 0.08);
}

.product-competitor-card.is-leader {
    border-color: rgba(180, 133, 47, 0.42);
}

.product-competitor-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

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

.product-competitor-card-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.product-competitor-card-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: #637075;
}

.product-competitor-card-link .table-link {
    font-size: 0.86rem;
}

.product-competitor-card-categories {
    display: grid;
    gap: 6px;
}

.product-competitors-disclosure {
    display: grid;
    gap: 12px;
}

.product-competitors-disclosure-head {
    display: grid;
    grid-template-columns: auto minmax(300px, 1.5fr) minmax(100px, 0.5fr) minmax(90px, 0.45fr) minmax(140px, 0.7fr) auto;
    gap: 12px;
    padding: 0 12px;
    color: #6c7d84;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.product-competitors-disclosure-row {
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.product-competitors-disclosure-row.is-own {
    border-color: rgba(104, 112, 243, 0.42);
    box-shadow: 0 8px 20px rgba(104, 112, 243, 0.08);
}

.product-competitors-disclosure-row.is-leader {
    border-color: rgba(176, 126, 38, 0.4);
}

.product-competitors-disclosure-summary {
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(300px, 1.5fr) minmax(100px, 0.5fr) minmax(90px, 0.45fr) minmax(140px, 0.7fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
}

.product-competitors-disclosure-summary::-webkit-details-marker {
    display: none;
}

.product-competitors-disclosure-row[open] .product-competitors-disclosure-summary {
    background: rgba(104, 112, 243, 0.06);
    border-bottom: 1px solid rgba(18, 58, 56, 0.12);
}

html[data-theme="dark"] .product-competitors-table-wrap,
html[data-theme="dark"] .product-competitor-card {
    border-color: rgba(126, 156, 178, 0.3);
    background: rgba(20, 28, 35, 0.9);
}

html[data-theme="dark"] .product-competitors-table th {
    background: rgba(27, 37, 47, 0.94);
}

html[data-theme="dark"] .product-competitors-table th,
html[data-theme="dark"] .product-competitors-table td {
    border-bottom-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .product-competitor-avatar {
    background: rgba(23, 43, 42, 0.92);
    border-color: rgba(126, 156, 178, 0.34);
}

html[data-theme="dark"] .product-competitor-avatar span {
    color: #89e3d6;
}

html[data-theme="dark"] .product-competitor-card-label {
    color: #98afc1;
}

html[data-theme="dark"] .product-competitor-row.is-leader td {
    background: transparent;
}

html[data-theme="dark"] .product-competitor-row.is-own td {
    background: transparent;
}

html[data-theme="dark"] .product-competitor-row.is-own.is-leader td {
    background: transparent;
}

html[data-theme="dark"] .product-competitor-row.is-leader td:first-child {
    box-shadow: inset 3px 0 0 rgba(232, 183, 88, 0.45);
}

html[data-theme="dark"] .product-competitor-row.is-own td:first-child {
    box-shadow: inset 3px 0 0 rgba(64, 192, 175, 0.55);
}

html[data-theme="dark"] .product-competitor-row.is-own.is-leader td:first-child {
    box-shadow: inset 3px 0 0 rgba(64, 192, 175, 0.55), inset 6px 0 0 rgba(232, 183, 88, 0.45);
}

html[data-theme="dark"] .product-competitor-accordion {
    border-color: rgba(126, 156, 178, 0.3);
    background: rgba(26, 36, 45, 0.86);
}

html[data-theme="dark"] .product-competitor-accordion[open] {
    background: rgba(26, 36, 45, 0.96);
}

html[data-theme="dark"] .product-competitor-accordion-title {
    color: #aeb1ff;
    background: rgba(83, 92, 226, 0.24);
    border-color: rgba(158, 162, 255, 0.42);
}

html[data-theme="dark"] .product-competitor-accordion-meta {
    color: #9ab0c2;
}

html[data-theme="dark"] .product-competitor-categories-total {
    color: #9ab0c2;
}

html[data-theme="dark"] .product-competitor-category-rank {
    color: #aeb1ff;
    background: rgba(83, 92, 226, 0.24);
    border-color: rgba(158, 162, 255, 0.42);
}

html[data-theme="dark"] .product-competitor-category-name {
    color: #dbe8f2;
}

html[data-theme="dark"] .product-competitor-category-meta {
    color: #9db2c3;
}

html[data-theme="dark"] .product-competitor-category-chip {
    color: #88cde5;
    background: rgba(28, 70, 91, 0.42);
    border-color: rgba(87, 149, 182, 0.42);
}

html[data-theme="dark"] .product-competitor-period-block {
    background: rgba(24, 34, 43, 0.56);
    border-color: rgba(126, 156, 178, 0.25);
}

html[data-theme="dark"] .product-competitor-period-badge {
    color: #aeb1ff;
    background: rgba(83, 92, 226, 0.24);
    border-color: rgba(158, 162, 255, 0.42);
}

html[data-theme="dark"] .product-competitors-disclosure-head {
    color: #93a9bb;
}

html[data-theme="dark"] .product-competitors-disclosure-row {
    border-color: rgba(126, 156, 178, 0.3);
    background: rgba(20, 28, 35, 0.9);
}

html[data-theme="dark"] .product-competitors-disclosure-row[open] .product-competitors-disclosure-summary {
    background: rgba(83, 92, 226, 0.18);
    border-bottom-color: rgba(126, 156, 178, 0.2);
}

@media (max-width: 900px) {
    .product-competitor-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-competitor-card-stock {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .product-competitors-disclosure-head {
        display: none;
    }

    .product-competitors-disclosure-summary {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 8px;
    }

    .product-competitors-disclosure-summary .competitor-analysis-row-col {
        grid-column: 2 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .product-competitors-disclosure-summary .competitor-analysis-row-link {
        justify-items: start;
    }

    .product-competitors-table-wrap {
        display: none;
    }

    .product-competitors-cards {
        display: grid;
    }
}

@media (max-width: 560px) {
    .product-competitor-accordion-summary {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .product-competitor-accordion-meta {
        text-align: left;
    }

    .product-competitor-card-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.407 - Competitor analysis page                                          */
/* -------------------------------------------------------------------------- */

.competitor-analysis-shell,
.competitor-analysis-result {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.competitor-analysis-form {
    display: grid;
    grid-template-columns: minmax(320px, 1.4fr) minmax(240px, 0.7fr) auto;
    gap: 12px;
    align-items: end;
}

.competitor-analysis-form-standard {
    grid-template-columns: minmax(320px, 1fr) auto;
}

.competitor-analysis-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.competitor-analysis-field > span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #5f7076;
}

.competitor-analysis-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.competitor-analysis-history {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(104, 112, 243, 0.14);
}

.competitor-analysis-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.competitor-analysis-history-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.competitor-analysis-history-size label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667579;
    font-size: 0.78rem;
    font-weight: 800;
}

.competitor-analysis-history-size select {
    min-width: 76px;
    min-height: 32px;
    padding: 6px 30px 6px 10px;
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #535ce2;
    font-size: 0.78rem;
    font-weight: 900;
}

.competitor-analysis-history-head h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.competitor-analysis-history-list {
    display: grid;
    gap: 8px;
}

.competitor-analysis-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid rgba(18, 58, 56, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.competitor-analysis-history-item.is-active {
    border-color: rgba(104, 112, 243, 0.42);
    background: rgba(232, 250, 247, 0.9);
    box-shadow: 0 8px 18px rgba(13, 86, 79, 0.08);
}

.competitor-analysis-history-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.competitor-analysis-history-main strong {
    color: #193b38;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-analysis-history-main span {
    color: #667579;
    font-size: 0.82rem;
}

.competitor-analysis-history-date {
    color: #535ce2 !important;
    font-size: 0.74rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.competitor-analysis-history-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.competitor-analysis-history-actions .btn {
    min-height: 32px;
    padding: 6px 10px;
}

.competitor-analysis-history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.competitor-analysis-history-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.competitor-analysis-history-page {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.08);
    color: #667579;
    font-size: 0.78rem;
    font-weight: 800;
}

.competitor-analysis-history-empty {
    border: 1px dashed rgba(104, 112, 243, 0.28);
    border-radius: 14px;
    padding: 13px 14px;
    color: #607072;
    background: rgba(247, 252, 251, 0.72);
}

.position-history-section {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
    box-shadow: 0 14px 34px rgba(25, 52, 82, 0.06);
}

.position-history-section .competitor-analysis-history-list {
    gap: 16px;
}

.position-history-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-color: rgba(104, 112, 243, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.competitor-analysis-history-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.position-history-query-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    min-width: 0;
}

.position-history-query-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 16px;
    background: rgba(248, 252, 255, 0.86);
}

.position-history-query-card.is-found {
    border-color: rgba(32, 151, 105, 0.28);
    background: linear-gradient(180deg, rgba(246, 255, 250, 0.98), rgba(255, 255, 255, 0.9));
}

.position-history-query-card.is-missing {
    border-color: rgba(231, 151, 69, 0.26);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.9));
}

.position-history-query-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.position-history-query-card > strong {
    color: #173947;
    font-size: 0.95rem;
    line-height: 1.25;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.position-history-query-card > small,
.position-history-query-card > p {
    margin: 0;
    color: #667579;
    font-size: 0.8rem;
    line-height: 1.35;
    font-weight: 800;
}

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

.position-history-metrics span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(32, 151, 105, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.position-history-metrics em {
    color: #6a7c83;
    font-style: normal;
    font-size: 0.66rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 850;
}

.position-history-metrics strong {
    color: #12343c;
    font-size: 1.02rem;
    line-height: 1.15;
    font-weight: 950;
}

.position-history-metrics small {
    color: #5f737d;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 800;
}

.competitor-analysis-history-item.position-history-card {
    display: block;
    padding: 0;
    overflow: hidden;
    border-color: rgba(104, 112, 243, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.94));
    box-shadow: 0 16px 34px rgba(31, 45, 96, 0.08);
}

.competitor-analysis-history-item.position-history-card.is-active {
    border-color: rgba(83, 92, 226, 0.42);
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow: 0 18px 40px rgba(83, 92, 226, 0.12);
}

.position-history-card-shell {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    min-width: 0;
}

.position-history-record-rail {
    display: flex;
    justify-content: center;
    padding: 18px 0;
    border-right: 1px solid rgba(104, 112, 243, 0.16);
    background:
        linear-gradient(180deg, rgba(237, 241, 255, 0.9), rgba(236, 250, 247, 0.72));
}

.position-history-record-rail span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(104, 112, 243, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #535ce2;
    font-size: 0.82rem;
    font-weight: 950;
    box-shadow: 0 8px 16px rgba(83, 92, 226, 0.12);
}

.position-history-card-content {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
}

.position-history-card-topline {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(104, 112, 243, 0.14);
}

.position-history-card .competitor-analysis-history-main {
    gap: 7px;
}

.position-history-card .competitor-analysis-history-main strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.position-history-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.position-history-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 999px;
    background: rgba(245, 247, 255, 0.86);
    color: #65718c;
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 850;
}

.position-history-targets-block {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(57, 178, 255, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(239, 249, 255, 0.84), rgba(249, 252, 255, 0.72));
}

.position-history-targets-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.position-history-targets-head span {
    color: #7d83a9;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.position-history-targets-head strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(104, 112, 243, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #535ce2;
    font-size: 0.82rem;
    font-weight: 950;
}

.position-history-query-card {
    position: relative;
    padding: 14px 14px 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(31, 45, 96, 0.05);
}

.position-history-query-card::before {
    content: "";
    position: absolute;
    inset: 13px auto 13px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: #b9c0ec;
}

.position-history-query-card.is-found::before {
    background: #2dbd82;
}

.position-history-query-card.is-missing::before {
    background: #df9650;
}

.position-history-query-card.is-error::before {
    background: #df6b6b;
}

.position-history-query-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.position-history-query-title strong {
    color: #173947;
    font-size: 0.96rem;
    line-height: 1.28;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.position-history-query-title small {
    color: #73848b;
    font-size: 0.76rem;
    line-height: 1.3;
    font-weight: 850;
}

.position-history-metrics span {
    min-height: 70px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 255, 0.9));
}

@media (max-width: 760px) {
    .position-history-card-shell {
        grid-template-columns: 1fr;
    }

    .position-history-record-rail {
        display: none;
    }

    .position-history-card-content {
        padding: 14px;
    }

    .position-history-query-grid,
    .position-history-metrics {
        grid-template-columns: 1fr;
    }
}

.competitor-shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    border-color: rgba(104, 112, 243, 0.18);
    background:
        linear-gradient(135deg, rgba(235, 249, 247, 0.96), rgba(255, 255, 255, 0.98) 48%, rgba(246, 251, 250, 0.98));
    box-shadow: 0 14px 34px rgba(23, 72, 78, 0.08);
}

.competitor-shop-hero-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.competitor-shop-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(104, 112, 243, 0.24);
    background: rgba(255, 255, 255, 0.92);
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 8px 22px rgba(13, 86, 79, 0.1);
}

.competitor-shop-logo-wrap .competitor-analysis-profile-logo,
.competitor-shop-logo-wrap .competitor-analysis-profile-fallback {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.competitor-shop-logo-wrap .competitor-analysis-profile-logo {
    object-fit: contain;
    padding: 6px;
    background: #ffffff;
}

.competitor-shop-title {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.competitor-shop-eyebrow {
    color: #63777e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.competitor-shop-title h2 {
    margin: 0;
    color: #102f37;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.competitor-shop-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #516a73;
    font-size: 0.82rem;
    font-weight: 700;
}

.competitor-shop-meta span,
.competitor-shop-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.competitor-shop-meta a {
    color: #535ce2;
    text-decoration: none;
    font-weight: 800;
}

.competitor-shop-hero-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.competitor-shop-kpis {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(150px, 0.7fr));
    gap: 10px;
}

.competitor-shop-kpis article {
    display: grid;
    gap: 6px;
    min-width: 0;
    min-height: 86px;
    padding: 12px 14px;
    border: 1px solid rgba(24, 72, 82, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 18px rgba(31, 68, 77, 0.05);
}

.competitor-shop-kpis span {
    color: #6a7c83;
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
}

.competitor-shop-kpis strong {
    color: #12343c;
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.competitor-shop-kpis a {
    width: fit-content;
    color: #535ce2;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.competitor-analysis-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.competitor-analysis-profile-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.competitor-analysis-profile-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(18, 58, 56, 0.16);
    object-fit: cover;
    flex: 0 0 auto;
}

.competitor-analysis-profile-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0e6c62;
    background: rgba(223, 245, 241, 0.96);
    border: 1px solid rgba(104, 112, 243, 0.3);
    flex: 0 0 auto;
}

.competitor-analysis-profile-fallback::before,
.competitor-analysis-avatar-fallback::before {
    content: "";
    width: 12px;
    height: 8px;
    border: 2px solid rgba(83, 92, 226, 0.72);
    border-top-width: 3px;
    border-radius: 2px;
    display: block;
}

.competitor-analysis-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.competitor-analysis-categories-panel {
    display: grid;
    gap: 12px;
}

.position-analysis-mode-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.position-analysis-mode-tab {
    display: grid;
    gap: 5px;
    min-width: 0;
    min-height: 82px;
    padding: 13px 14px;
    border: 1px solid rgba(0, 120, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #395764;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 113, 206, 0.04);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.position-analysis-mode-tab:hover,
.position-analysis-mode-tab:focus-visible {
    border-color: rgba(0, 120, 255, 0.34);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(0, 146, 216, 0.1);
    outline: none;
}

.position-analysis-mode-tab.is-active {
    border-color: rgba(0, 120, 255, 0.45);
    background: linear-gradient(180deg, rgba(0, 132, 255, 0.12), rgba(24, 190, 213, 0.1));
}

.position-analysis-mode-tab strong {
    color: #183840;
    font-size: 0.94rem;
    line-height: 1.2;
    font-weight: 900;
}

.position-analysis-mode-tab span {
    color: #63777e;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
}

.position-analysis-form-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(24, 72, 82, 0.1);
    border-radius: 8px;
    background: rgba(248, 252, 255, 0.76);
}

.position-analysis-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.position-analysis-form-head h3 {
    margin: 0;
    color: #183840;
    font-size: 1rem;
    line-height: 1.25;
}

.position-product-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.position-product-search-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

.position-product-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(0, 132, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 252, 0.82));
    box-shadow: 0 10px 24px rgba(0, 113, 206, 0.06);
}

.position-product-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.position-product-card-head > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.position-product-card-head h3 {
    margin: 0;
    color: #173947;
    font-size: 1.05rem;
    line-height: 1.28;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.position-product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.position-product-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 132, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #63777e;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.position-product-card-meta strong {
    color: #173947;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
}

.position-product-media-grid {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    align-items: stretch;
}

.position-product-photo-card,
.position-result-media {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 132, 255, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 255, 0.9));
    box-shadow: 0 10px 24px rgba(0, 113, 206, 0.08);
}

.position-product-photo-card {
    min-height: 148px;
}

.position-result-media {
    width: 132px;
    min-height: 132px;
    flex: 0 0 132px;
}

.position-product-photo-card img,
.position-result-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #ffffff;
}

.position-product-photo-card > span,
.position-result-media > span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #343fd1;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.1;
    box-shadow: 0 8px 18px rgba(23, 72, 78, 0.08);
}

.position-product-photo-empty,
.position-result-media-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 112px;
    padding: 14px;
    color: #6b7c86;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: center;
}

.position-product-insight-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(118px, 0.72fr));
    gap: 10px;
    min-width: 0;
}

.position-product-insight-grid article {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    min-height: 102px;
    padding: 12px;
    border: 1px solid rgba(24, 72, 82, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(31, 68, 77, 0.05);
}

.position-product-insight-grid span,
.competitor-visibility-position-grid span {
    color: #6a7c83;
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 850;
}

.position-product-insight-grid strong,
.competitor-visibility-position-grid strong {
    min-width: 0;
    color: #12343c;
    font-size: 1.08rem;
    line-height: 1.18;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.position-product-insight-grid article:first-child strong {
    font-size: 0.9rem;
    line-height: 1.28;
}

.position-product-insight-grid small,
.competitor-visibility-position-grid small {
    color: #5f737d;
    font-size: 0.74rem;
    line-height: 1.3;
    font-weight: 800;
}

.position-language-metric-card {
    align-content: stretch;
}

.position-language-metric-list {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.position-language-metric-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.position-language-metric-list b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 999px;
    background: rgba(239, 242, 255, 0.9);
    color: #4d56dc;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 950;
}

.position-language-metric-list strong {
    text-align: right;
}

.position-language-metric-card small {
    margin-top: 2px;
    color: #5f737d;
    font-size: 0.74rem;
    line-height: 1.3;
    font-weight: 800;
}

.position-product-recent-checks {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.position-product-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.position-product-recent-head span {
    color: #6a7c83;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 900;
}

.position-product-recent-head strong {
    color: #535ce2;
    font-size: 0.78rem;
    font-weight: 900;
}

.position-product-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.position-product-recent-item {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 14px;
    background: rgba(248, 252, 255, 0.84);
}

.position-product-recent-item.is-found {
    border-color: rgba(32, 151, 105, 0.28);
    background: linear-gradient(180deg, rgba(244, 255, 249, 0.96), rgba(255, 255, 255, 0.86));
}

.position-product-recent-item > span {
    color: #535ce2;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 900;
}

.position-product-recent-item > strong {
    color: #173947;
    font-size: 0.86rem;
    line-height: 1.22;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.position-product-recent-item div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.position-product-recent-item small {
    min-height: 24px;
    padding: 5px 8px;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #5f737d;
    font-size: 0.72rem;
    line-height: 1.15;
    font-weight: 850;
}

.position-result-hero .competitor-shop-hero-main {
    align-items: stretch;
}

.position-result-hero .competitor-shop-kpis {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.competitor-visibility-position-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 10px;
    min-width: 0;
    margin-top: 8px;
}

.competitor-visibility-position-grid article {
    display: grid;
    gap: 6px;
    min-width: 0;
    min-height: 86px;
    padding: 12px 13px;
    border: 1px solid rgba(32, 151, 105, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 9px 20px rgba(26, 117, 87, 0.07);
}

.competitor-visibility-row.is-found .competitor-visibility-position-grid article {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 255, 249, 0.88));
}

.position-product-match-list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.position-product-match-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(0, 132, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 6px 16px rgba(0, 113, 206, 0.04);
}

.position-product-match-card > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.position-product-match-card span {
    color: #535ce2;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.position-product-match-card strong {
    color: #193b48;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.position-product-match-card small {
    color: #63777e;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.position-run-form {
    align-items: stretch;
}

.position-target-picker {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(0, 132, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 132, 255, 0.045), rgba(24, 190, 213, 0.04));
}

.position-target-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.position-target-picker-head > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.position-target-picker-head strong {
    color: #183840;
    font-size: 0.9rem;
    font-weight: 900;
}

.position-target-picker-head span,
.position-target-picker-head small,
.position-target-picker-state {
    color: #63777e;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
}

.position-target-picker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.position-manual-query {
    display: grid;
    grid-template-columns: minmax(150px, 0.28fr) minmax(220px, 1fr);
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    padding-top: 2px;
}

.position-manual-query span {
    color: #183840;
    font-size: 0.78rem;
    font-weight: 850;
}

.position-manual-query input {
    min-width: 0;
    min-height: 40px;
    border: 1px solid rgba(0, 132, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #152f3a;
    padding: 9px 11px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 750;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.position-manual-query input:focus {
    border-color: rgba(0, 132, 255, 0.52);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.1);
}

.position-manual-query small {
    grid-column: 2;
    color: #63777e;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 750;
}

.position-target-pill {
    cursor: pointer;
}

.position-target-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.position-target-pill-body {
    display: grid;
    gap: 2px;
    max-width: 280px;
    min-height: 48px;
    padding: 8px 11px;
    border: 1px solid rgba(0, 132, 255, 0.16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(20, 76, 114, 0.05);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.position-target-pill-body small {
    color: #5a7a87;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.position-target-pill-body strong {
    color: #173947;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
}

.position-target-pill input:checked + .position-target-pill-body {
    border-color: rgba(0, 132, 255, 0.52);
    background: linear-gradient(180deg, rgba(0, 132, 255, 0.12), rgba(24, 190, 213, 0.08));
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.11);
}

.position-limit-readonly {
    display: grid;
    gap: 2px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(0, 132, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.position-limit-readonly strong {
    color: #173947;
    font-size: 0.88rem;
}

.position-limit-readonly span {
    color: #5d7380;
    font-size: 0.74rem;
    font-weight: 750;
}

.heavy-progress-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.position-compare-form {
    justify-content: flex-end;
}

.competitor-analysis-tabs-shell {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.competitor-analysis-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: thin;
}

.competitor-analysis-tab-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: #516a73;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.15;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    white-space: nowrap;
}

.competitor-analysis-tab-btn:hover,
.competitor-analysis-tab-btn:focus-visible {
    border-color: rgba(104, 112, 243, 0.42);
    color: #343fd1;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(83, 92, 226, 0.08);
    outline: none;
}

.competitor-analysis-tab-btn.is-active {
    border-color: rgba(104, 112, 243, 0.52);
    background: linear-gradient(180deg, rgba(104, 112, 243, 0.16), rgba(63, 185, 169, 0.1));
    color: #2530bf;
}

.competitor-analysis-tab-panel[hidden] {
    display: none !important;
}

.competitor-analysis-tab-panel[data-competitor-analysis-panel="seller"] .competitor-analysis-seller-body {
    display: none;
}

.competitor-analysis-tab-panel[data-competitor-analysis-panel="seller"] .competitor-analysis-seller-row[open] .competitor-analysis-seller-summary {
    border-bottom: 0;
}

.competitor-visibility-panel {
    display: grid;
    gap: 12px;
}

.competitor-visibility-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.competitor-visibility-summary-grid article {
    display: grid;
    gap: 6px;
    min-width: 0;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid rgba(24, 72, 82, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 6px 18px rgba(31, 68, 77, 0.05);
}

.competitor-visibility-summary-grid span {
    color: #6a7c83;
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
}

.competitor-visibility-summary-grid strong {
    color: #12343c;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 900;
}

.competitor-visibility-list {
    display: grid;
    gap: 10px;
}

.competitor-visibility-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(18, 58, 56, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.competitor-visibility-row.is-found {
    border-color: rgba(32, 151, 105, 0.28);
    background: rgba(246, 253, 249, 0.94);
}

.competitor-visibility-row.is-error {
    border-color: rgba(214, 137, 58, 0.34);
    background: rgba(255, 249, 241, 0.92);
}

.competitor-visibility-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.competitor-visibility-kind {
    color: #6c7d84;
    font-size: 0.68rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 850;
}

.competitor-visibility-main strong {
    min-width: 0;
    color: #183840;
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.competitor-visibility-detail {
    min-width: 0;
    color: #526872;
    font-size: 0.8rem;
    line-height: 1.35;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.competitor-visibility-comparison {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.08);
    color: #3c4cc4;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.competitor-visibility-observed {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(214, 137, 58, 0.18);
    border-radius: 999px;
    background: rgba(255, 249, 241, 0.92);
    color: #7a4a19;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.competitor-visibility-card-position {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(32, 151, 105, 0.22);
    border-radius: 999px;
    background: rgba(246, 253, 249, 0.94);
    color: #11764d;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.competitor-visibility-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.competitor-visibility-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    background: rgba(104, 112, 243, 0.08);
    color: #526872;
    font-size: 0.74rem;
    font-weight: 850;
    white-space: nowrap;
}

.competitor-visibility-status.is-found {
    border-color: rgba(32, 151, 105, 0.3);
    background: rgba(32, 151, 105, 0.1);
    color: #11764d;
}

.competitor-visibility-status.is-error {
    border-color: rgba(214, 137, 58, 0.34);
    background: rgba(214, 137, 58, 0.12);
    color: #9a5b17;
}

@media (max-width: 1180px) {
    .position-product-media-grid {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .position-product-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .position-product-media-grid,
    .position-result-hero .competitor-shop-hero-main {
        grid-template-columns: 1fr;
    }

    .position-product-media-grid {
        display: grid;
    }

    .position-result-hero .competitor-shop-hero-main {
        display: grid;
    }

    .position-result-media {
        width: 100%;
        min-height: 180px;
        flex-basis: auto;
    }

    .position-product-photo-card {
        min-height: 190px;
    }

    .position-product-insight-grid,
    .competitor-visibility-position-grid,
    .position-history-metrics {
        grid-template-columns: 1fr;
    }

    .competitor-analysis-history-topline {
        grid-template-columns: 1fr;
    }

    .position-history-section {
        border-radius: 20px;
        padding: 14px;
    }
}

.competitor-analysis-sellers-list {
    display: grid;
    gap: 14px;
}

.competitor-analysis-sellers-head {
    display: grid;
    grid-template-columns: auto minmax(320px, 1.8fr) minmax(90px, 0.44fr) minmax(140px, 0.62fr) auto;
    gap: 12px;
    padding: 0 12px;
    color: #6c7d84;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.competitor-analysis-seller-row {
    border: 1px solid rgba(18, 58, 56, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.competitor-analysis-seller-row.is-own {
    border-color: rgba(104, 112, 243, 0.42);
    box-shadow: 0 8px 20px rgba(104, 112, 243, 0.08);
}

.competitor-analysis-seller-row.is-leader {
    border-color: rgba(176, 126, 38, 0.4);
}

.competitor-analysis-seller-summary {
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(320px, 1.8fr) minmax(90px, 0.44fr) minmax(140px, 0.62fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
}

.competitor-analysis-seller-summary::-webkit-details-marker {
    display: none;
}

.competitor-analysis-row-toggle {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(18, 58, 56, 0.2);
    background: rgba(243, 249, 248, 0.98);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.competitor-analysis-row-toggle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(83, 92, 226, 0.84);
    border-bottom: 2px solid rgba(83, 92, 226, 0.84);
    transform: rotate(45deg);
    transition: transform 0.14s ease;
}

.competitor-analysis-seller-row[open] .competitor-analysis-row-toggle::before {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.competitor-analysis-seller-row[open] .competitor-analysis-seller-summary {
    background: rgba(104, 112, 243, 0.06);
    border-bottom: 1px solid rgba(18, 58, 56, 0.12);
}

.competitor-analysis-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.competitor-analysis-row-main .product-competitor-avatar img {
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
}

.competitor-analysis-row-col {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #1f3e46;
}

.competitor-analysis-row-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: #66777e;
}

.competitor-analysis-row-col strong {
    font-size: 0.84rem;
    font-weight: 800;
    color: #183840;
}

.competitor-analysis-row-activity strong {
    font-size: 0.78rem;
}

.competitor-analysis-row-link {
    justify-items: end;
}

.competitor-analysis-seller-body {
    padding: 14px;
}

.seller-info-card {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.seller-info-card .competitor-analysis-seller-summary {
    grid-template-columns: minmax(260px, 1.55fr) minmax(96px, 0.36fr) minmax(150px, 0.58fr) auto;
    padding: 0;
    cursor: default;
}

.seller-info-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.seller-info-metrics article {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    min-height: 82px;
    padding: 12px 14px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 255, 0.9));
    box-shadow: 0 10px 24px rgba(66, 72, 143, 0.055);
}

.seller-info-metrics span {
    color: #7f88aa;
    font-size: 0.68rem;
    line-height: 1.18;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    font-weight: 850;
}

.seller-info-metrics strong {
    min-width: 0;
    color: #203052;
    font-size: 1rem;
    line-height: 1.18;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.seller-info-metrics small {
    min-width: 0;
    color: #7581a3;
    font-size: 0.72rem;
    line-height: 1.25;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.seller-info-metrics article.is-positive {
    border-color: rgba(41, 172, 119, 0.24);
    background: linear-gradient(180deg, rgba(246, 253, 249, 0.98), rgba(239, 250, 246, 0.94));
}

.seller-info-metrics article.is-positive strong {
    color: #148257;
}

.seller-info-metrics article.is-negative {
    border-color: rgba(224, 123, 91, 0.24);
    background: linear-gradient(180deg, rgba(255, 250, 246, 0.98), rgba(255, 245, 239, 0.94));
}

.seller-info-metrics article.is-negative strong {
    color: #a04d2a;
}

.seller-info-metrics article.is-orders {
    border-color: rgba(18, 138, 127, 0.24);
    background: linear-gradient(180deg, rgba(242, 253, 252, 0.98), rgba(235, 249, 247, 0.94));
}

.seller-info-metrics article.is-orders strong {
    color: #0d756e;
    font-variant-numeric: tabular-nums;
}

.seller-info-metrics article.is-identity {
    border-color: rgba(83, 92, 226, 0.18);
    background: linear-gradient(180deg, rgba(249, 250, 255, 0.98), rgba(243, 245, 255, 0.94));
}

.competitor-store-stats-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(28, 74, 86, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(250, 253, 253, 0.98), rgba(244, 249, 248, 0.96));
    box-shadow: 0 10px 24px rgba(31, 68, 77, 0.06);
}

.competitor-store-stats-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.competitor-store-stats-head h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.25;
    color: #183840;
}

.competitor-store-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(128px, 1fr));
    gap: 10px;
}

.competitor-store-stats-grid span {
    display: grid;
    gap: 5px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 72, 82, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #183840;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(31, 68, 77, 0.04);
}

.competitor-store-stats-grid b {
    display: block;
    color: #66777e;
    font-size: 0.68rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.competitor-store-stats-grid small {
    display: block;
    margin-top: 2px;
    color: #7b8d96;
    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 800;
}

.competitor-sales-insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 12px;
    align-items: stretch;
}

.competitor-sales-insights-main {
    min-width: 0;
}

.competitor-sales-insights-main .competitor-sales-line-card {
    height: 100%;
}

.competitor-sales-directions-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(116, 130, 153, 0.18);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(28, 40, 58, 0.045);
}

.competitor-sales-directions-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.competitor-sales-directions-head h4 {
    margin: 0;
    color: #183840;
    font-size: 0.96rem;
    line-height: 1.25;
}

.competitor-sales-directions-head p {
    margin: 4px 0 0;
    max-width: 270px;
}

.competitor-sales-directions-head a {
    flex: 0 0 auto;
    color: #535ce2;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 900;
    text-decoration: none;
}

.competitor-sales-directions-head a:hover {
    text-decoration: underline;
}

.competitor-directions-period-control {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.competitor-directions-period-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(116, 130, 153, 0.16);
    border-radius: 9px;
    background: #f7f9fc;
}

.competitor-directions-period-tabs label {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #657487;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.competitor-directions-period-tabs label:hover {
    color: #535ce2;
    background: rgba(104, 112, 243, 0.08);
}

#competitor-directions-period-3m:checked ~ .competitor-directions-period-tabs label[for="competitor-directions-period-3m"],
#competitor-directions-period-6m:checked ~ .competitor-directions-period-tabs label[for="competitor-directions-period-6m"],
#competitor-directions-period-12m:checked ~ .competitor-directions-period-tabs label[for="competitor-directions-period-12m"] {
    background: #ffffff;
    color: #535ce2;
    box-shadow: 0 4px 10px rgba(31, 68, 77, 0.08);
}

.competitor-directions-period-panels {
    min-width: 0;
}

.competitor-directions-period-panel {
    display: none;
    gap: 10px;
    min-width: 0;
}

#competitor-directions-period-3m:checked ~ .competitor-directions-period-panels .competitor-directions-period-panel.is-3m,
#competitor-directions-period-6m:checked ~ .competitor-directions-period-panels .competitor-directions-period-panel.is-6m,
#competitor-directions-period-12m:checked ~ .competitor-directions-period-panels .competitor-directions-period-panel.is-12m {
    display: grid;
}

.competitor-directions-period-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(116, 130, 153, 0.14);
}

.competitor-directions-period-summary span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.1);
    color: #535ce2;
    font-size: 0.72rem;
    font-weight: 900;
}

.competitor-directions-period-summary strong {
    color: #183840;
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 900;
}

.competitor-directions-list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.competitor-direction-mini-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 4px 8px;
    align-items: center;
    min-width: 0;
}

.competitor-direction-mini-rank {
    grid-row: 1 / span 3;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 8px;
    background: rgba(104, 112, 243, 0.1);
    color: #535ce2;
    font-size: 0.68rem;
    font-weight: 900;
}

.competitor-direction-mini-name {
    min-width: 0;
    color: #183840;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-direction-mini-percent {
    color: #118a7f;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.competitor-direction-mini-bar {
    grid-column: 2 / -1;
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(22, 163, 148, 0.11);
    overflow: hidden;
}

.competitor-direction-mini-bar i {
    display: block;
    width: min(max(var(--share, 0%), 3%), 100%);
    height: 100%;
    border-radius: inherit;
    background: #16a394;
}

.competitor-direction-mini-row small {
    grid-column: 2 / -1;
    min-width: 0;
    color: #738192;
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.competitor-sales-directions-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(116, 130, 153, 0.14);
    color: #657487;
    font-size: 0.68rem;
    font-weight: 850;
}

.competitor-sales-directions-foot span:first-child {
    color: #118a7f;
}

.competitor-store-stats-explain {
    margin: 0;
    color: #4d6269;
    font-size: 0.86rem;
    line-height: 1.45;
}

.competitor-sales-chart-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(24, 72, 82, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.competitor-sales-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.competitor-sales-chart-head h4 {
    margin: 0;
    color: #183840;
    font-size: 0.94rem;
    line-height: 1.25;
}

.competitor-sales-chart-head p {
    margin: 4px 0 0;
}

.competitor-sales-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(38px, 1fr));
    gap: 8px;
    min-height: 190px;
    padding: 12px 10px 10px;
    border: 1px solid rgba(24, 72, 82, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(to top, rgba(104, 112, 243, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
        rgba(248, 252, 251, 0.84);
    overflow-x: auto;
}

.competitor-sales-chart-month {
    display: grid;
    grid-template-rows: 24px minmax(118px, 1fr) 18px;
    align-items: end;
    justify-items: center;
    gap: 6px;
    min-width: 38px;
    color: #526872;
    font-size: 0.7rem;
    font-weight: 800;
}

.competitor-sales-chart-month strong {
    min-height: 20px;
    color: #183840;
    font-size: 0.76rem;
    line-height: 1;
}

.competitor-sales-chart-bar {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 118px;
    border-radius: 10px;
    background: rgba(235, 241, 242, 0.72);
    overflow: hidden;
}

.competitor-sales-chart-bar i {
    display: block;
    width: 100%;
    height: var(--bar-h, 0%);
    min-height: 0;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #6870f3 0%, #3fb9a9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.competitor-sales-chart-month.has-value .competitor-sales-chart-bar i {
    min-height: 8px;
}

.competitor-sales-chart-month.is-peak .competitor-sales-chart-bar {
    background: rgba(104, 112, 243, 0.12);
    box-shadow: 0 0 0 1px rgba(104, 112, 243, 0.18);
}

.competitor-sales-chart-month.is-peak strong,
.competitor-sales-chart-month.is-peak > span:last-child {
    color: #535ce2;
}

.competitor-sales-chart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competitor-sales-chart-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.08);
    color: #526872;
    font-size: 0.76rem;
    font-weight: 800;
}

.competitor-sales-chart-meta b {
    color: #183840;
}

.competitor-sales-line-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(116, 130, 153, 0.2);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(28, 40, 58, 0.045);
}

.competitor-sales-line-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.competitor-sales-line-head h4 {
    margin: 0;
    color: #183840;
    font-size: 0.96rem;
    line-height: 1.25;
}

.competitor-sales-line-head p {
    margin: 4px 0 0;
    max-width: 560px;
}

.competitor-sales-line-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #4b5d6b;
    font-size: 0.76rem;
    font-weight: 800;
    min-width: 0;
}

.competitor-sales-line-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    white-space: nowrap;
}

.competitor-sales-line-legend i {
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: #16a394;
    box-shadow: 0 0 0 1px rgba(22, 163, 148, 0.1);
}

.competitor-sales-line-source {
    padding: 4px 9px;
    border: 1px solid rgba(116, 130, 153, 0.22);
    border-radius: 999px;
    background: #f7f9fc;
    color: #415065;
    max-width: 100%;
}

.competitor-sales-line-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(116, 130, 153, 0.16);
    border-radius: 8px;
    background: #ffffff;
}

.competitor-sales-line-chart {
    display: block;
    width: 100%;
    min-width: 820px;
    height: auto;
}

.competitor-sales-line-grid {
    stroke: rgba(98, 113, 135, 0.18);
    stroke-width: 1;
}

.competitor-sales-line-vgrid {
    stroke: rgba(98, 113, 135, 0.14);
    stroke-width: 1;
    stroke-dasharray: 3 8;
}

.competitor-sales-line-y,
.competitor-sales-line-x {
    fill: #7d8a9c;
    font-size: 11px;
    font-weight: 800;
}

.competitor-sales-line-x {
    text-anchor: middle;
}

.competitor-sales-line-path {
    fill: none;
    stroke: #16a394;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.competitor-sales-line-area {
    opacity: 0.64;
}

.competitor-sales-line-point circle {
    fill: #ffffff;
    stroke: #16a394;
    stroke-width: 2.2;
}

.competitor-sales-line-point.is-peak circle {
    stroke: #4657d8;
    stroke-width: 2.6;
    filter: drop-shadow(0 3px 6px rgba(70, 87, 216, 0.16));
}

.competitor-sales-line-value {
    fill: #344256;
    font-size: 11px;
    font-weight: 900;
    text-anchor: middle;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2.4px;
    paint-order: stroke;
}

.competitor-sales-line-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    gap: 8px;
}

.competitor-sales-line-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(116, 130, 153, 0.18);
    border-radius: 999px;
    background: #f7f9fb;
    color: #52606c;
    font-size: 0.76rem;
    font-weight: 800;
}

.competitor-sales-line-meta b {
    color: #183840;
}

@media (max-width: 760px) {
    .competitor-sales-line-card {
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
    }

    .competitor-sales-line-head {
        flex-direction: column;
        gap: 8px;
    }

    .competitor-sales-line-head h4 {
        font-size: 0.9rem;
    }

    .competitor-sales-line-head p {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .competitor-sales-line-legend {
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        font-size: 0.68rem;
    }

    .competitor-sales-line-legend span {
        min-height: 22px;
        white-space: normal;
        line-height: 1.2;
    }

    .competitor-sales-line-source {
        padding: 4px 7px;
    }

    .competitor-sales-line-chart {
        min-width: 620px;
    }

    .competitor-sales-line-y,
    .competitor-sales-line-x,
    .competitor-sales-line-value {
        font-size: 11px;
    }

    .competitor-sales-line-meta {
        grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
        gap: 6px;
    }

    .competitor-sales-line-meta span {
        justify-content: center;
        min-height: 26px;
        padding: 5px 8px;
        font-size: 0.7rem;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .competitor-sales-line-chart {
        min-width: 560px;
    }

    .competitor-sales-line-scroll {
        margin-inline: -2px;
    }

    .competitor-sales-line-legend {
        display: grid;
        grid-template-columns: 1fr;
    }

    .competitor-sales-line-legend span {
        width: 100%;
    }

    .competitor-sales-line-source {
        justify-content: center;
    }
}

.competitor-top-products {
    display: grid;
    gap: 10px;
}

.competitor-top-products-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.competitor-top-products-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.competitor-top-products-actions .btn,
.competitor-top-products-table .competitor-top-product-action {
    gap: 7px;
}

.competitor-snapshot-status {
    display: inline-flex;
    min-height: 30px;
    max-width: min(290px, 34vw);
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.86);
    color: #71809a;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 5px 9px;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.competitor-snapshot-status span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-cpa-backfill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(83, 92, 226, 0.22);
    border-radius: 8px;
    background: rgba(247, 248, 255, 0.92);
    color: #4f58d9;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    padding: 5px 8px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.competitor-cpa-backfill:hover {
    border-color: rgba(83, 92, 226, 0.42);
    background: #f2f3ff;
    color: #3944cf;
    transform: translateY(-1px);
}

.competitor-cpa-backfill:focus-visible {
    outline: 3px solid rgba(83, 92, 226, 0.18);
    outline-offset: 2px;
}

.competitor-cpa-backfill:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.competitor-cpa-backfill b {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 6px;
    background: rgba(83, 92, 226, 0.11);
    font-size: 0.62rem;
}

.competitor-cpa-backfill.is-loading svg {
    animation: competitorCpaSpin 0.8s linear infinite;
}

.competitor-top-product-cpa-unavailable {
    display: inline-flex;
    max-width: 86px;
    align-items: center;
    gap: 4px;
    color: #7b8798;
    line-height: 1.15;
    white-space: normal;
}

.competitor-top-product-cpa-unavailable svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.competitor-top-product-cpa-unavailable b {
    font-size: 0.62rem;
    font-weight: 800;
}

.competitor-snapshot-status.is-error {
    border-color: rgba(214, 74, 74, 0.24);
    background: rgba(255, 245, 245, 0.94);
    color: #b74646;
}

@keyframes competitorCpaSpin {
    to {
        transform: rotate(360deg);
    }
}

.competitor-top-products-actions svg,
.competitor-top-products-table .competitor-top-product-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.competitor-top-products-close {
    display: none !important;
}

body.shell-auth .competitor-top-products-close {
    display: none !important;
}

.competitor-top-products h4 {
    margin: 0;
    font-size: 0.92rem;
    color: #183840;
}

.competitor-top-products-head p {
    margin: 4px 0 0;
}

.competitor-top-products-periods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 12px;
    align-items: start;
}

.competitor-top-products-period-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(24, 72, 82, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.competitor-top-products-period-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(24, 72, 82, 0.08);
}

.competitor-top-products-period-head strong {
    color: #183840;
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 900;
    white-space: nowrap;
}

.competitor-top-products-period-card h5 {
    margin: 0;
    color: #183840;
    font-size: 0.84rem;
    line-height: 1.25;
}

.competitor-top-products-list {
    display: grid;
    gap: 7px;
}

.competitor-top-product-row {
    display: grid;
    grid-template-columns: 34px 50px minmax(220px, 1fr) minmax(92px, auto) minmax(116px, auto);
    gap: 10px 12px;
    align-items: center;
    min-height: 64px;
    padding: 9px 12px;
    border: 1px solid rgba(24, 72, 82, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #183840;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.competitor-top-product-row:hover {
    background: rgba(236, 249, 247, 0.98);
    border-color: rgba(104, 112, 243, 0.22);
    transform: translateY(-1px);
}

.competitor-top-product-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #535ce2;
    background: rgba(104, 112, 243, 0.12);
    border: 1px solid rgba(104, 112, 243, 0.24);
    font-size: 0.78rem;
    font-weight: 900;
}

.competitor-top-product-thumb {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(116, 130, 153, 0.18);
    border-radius: 10px;
    background: #f8fafc;
}

.competitor-top-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
    background: #ffffff;
}

.competitor-top-product-thumb span {
    display: block;
    width: 22px;
    height: 18px;
    border: 2px solid rgba(116, 130, 153, 0.24);
    border-radius: 5px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(116, 130, 153, 0.18) 49%, rgba(116, 130, 153, 0.18) 55%, transparent 56%),
        linear-gradient(180deg, #ffffff, #f5f7fb);
}

.competitor-top-product-row.is-deleted .competitor-top-product-thumb {
    border-color: rgba(229, 84, 84, 0.22);
    background: linear-gradient(180deg, #fff8f8, #f8fafc);
}

.competitor-top-product-row.is-deleted .competitor-top-product-thumb span {
    border-color: rgba(229, 84, 84, 0.28);
    background:
        linear-gradient(135deg, transparent 48%, rgba(229, 84, 84, 0.22) 49%, rgba(229, 84, 84, 0.22) 55%, transparent 56%),
        linear-gradient(180deg, #ffffff, #fff1f1);
}

.competitor-top-product-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.competitor-top-product-title {
    display: -webkit-box;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.competitor-top-product-copy small {
    overflow: hidden;
    color: #7b8a99;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-top-product-status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin-top: 3px;
    border: 1px solid rgba(229, 84, 84, 0.24);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 246, 246, 0.98), rgba(255, 238, 238, 0.86));
    color: #bd4a4a;
    font-size: 0.67rem;
    font-weight: 950;
    line-height: 1;
    padding: 5px 8px;
}

.competitor-top-product-status::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 999px;
    background: #e55454;
    box-shadow: 0 0 0 3px rgba(229, 84, 84, 0.12);
}

.competitor-top-product-status.is-hidden {
    display: none;
}

.competitor-top-product-period {
    color: #526872;
    font-weight: 700;
    white-space: nowrap;
}

.competitor-top-product-action {
    justify-self: end;
    color: #535ce2;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.competitor-top-product-row strong {
    text-align: right;
    color: #535ce2;
    font-size: 0.84rem;
    white-space: nowrap;
}

.competitor-top-products-period-card .competitor-top-product-row {
    grid-template-columns: 30px 44px minmax(0, 1fr) minmax(88px, auto);
    gap: 7px 8px;
}

.competitor-top-products-period-card .competitor-top-product-title {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.competitor-top-products-period-card .competitor-top-product-action {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    font-size: 0.7rem;
}

.competitor-top-products-period-card .competitor-top-product-row strong {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
}

.competitor-analysis-periods {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(28, 74, 86, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(251, 254, 253, 0.98), rgba(247, 251, 250, 0.96));
}

.competitor-category-breakdown-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.competitor-category-breakdown-head h4 {
    margin: 0;
    color: #183840;
    font-size: 0.98rem;
    line-height: 1.25;
}

.competitor-category-breakdown-head p {
    margin: 4px 0 0;
}

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

.competitor-analysis-period-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(24, 72, 82, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
}

.competitor-analysis-period-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(24, 72, 82, 0.08);
}

.competitor-analysis-period-head strong {
    color: #183840;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 900;
}

.competitor-category-lines {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.competitor-category-line {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 3px 8px;
    align-items: start;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(24, 72, 82, 0.08);
}

.competitor-category-line:last-child {
    border-bottom: 0;
}

.competitor-category-line-rank {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #535ce2;
    background: rgba(104, 112, 243, 0.12);
    border: 1px solid rgba(104, 112, 243, 0.2);
    font-size: 0.68rem;
    font-weight: 900;
}

.competitor-category-line-name {
    min-width: 0;
    color: #183840;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-category-line-meta {
    grid-column: 2 / -1;
    min-width: 0;
    color: #526872;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: left;
}

.competitor-analysis-no-data {
    padding: 10px;
    border-radius: 10px;
    background: rgba(248, 252, 251, 0.88);
}

@media (max-width: 1120px) {
    .competitor-analysis-form {
        grid-template-columns: 1fr;
    }

    .competitor-analysis-actions {
        width: 100%;
    }

    .competitor-analysis-actions .btn {
        flex: 1 1 auto;
    }

    .competitor-shop-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .position-analysis-mode-tabs {
        grid-template-columns: 1fr;
    }

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

    .position-product-card-head,
    .position-product-match-card {
        grid-template-columns: 1fr;
    }

    .position-product-card-head .btn,
    .position-product-match-card .btn {
        width: 100%;
    }

    .position-target-picker-head {
        display: grid;
    }

    .position-manual-query {
        grid-template-columns: 1fr;
    }

    .position-manual-query small {
        grid-column: 1;
    }

    .competitor-visibility-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competitor-analysis-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .competitor-analysis-seller-summary {
        grid-template-columns: auto minmax(260px, 1.4fr) minmax(90px, 0.5fr) minmax(140px, 0.8fr) auto;
    }

    .competitor-store-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .competitor-sales-insights-grid {
        grid-template-columns: 1fr;
    }

    .competitor-sales-directions-card {
        grid-template-rows: auto auto auto auto;
    }

    .competitor-top-product-row {
        grid-template-columns: 34px 48px minmax(180px, 1fr) minmax(92px, auto) minmax(116px, auto);
    }

    .competitor-category-breakdown-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .competitor-analysis-sellers-head {
        grid-template-columns: auto minmax(260px, 1.4fr) minmax(90px, 0.5fr) minmax(140px, 0.8fr) auto;
    }
}

@media (max-width: 760px) {
    .competitor-shop-hero {
        grid-template-columns: 1fr;
    }

    .competitor-shop-hero-actions {
        justify-content: flex-start;
    }

    .competitor-analysis-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competitor-visibility-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .competitor-visibility-side {
        justify-content: flex-start;
    }

    .position-target-pill-body {
        max-width: 100%;
    }

    .competitor-analysis-sellers-head {
        display: none;
    }

    .competitor-analysis-history-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .competitor-analysis-history-actions {
        justify-content: flex-start;
    }

    .competitor-analysis-seller-summary {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 8px;
    }

    .seller-info-card .competitor-analysis-seller-summary {
        grid-template-columns: 1fr;
    }

    .seller-info-card .competitor-analysis-row-col {
        grid-column: auto;
        justify-content: start;
    }

    .competitor-analysis-row-col {
        grid-column: 2 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .competitor-analysis-row-link {
        justify-items: start;
    }

    .competitor-store-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competitor-sales-directions-head,
    .competitor-sales-directions-foot {
        display: grid;
        justify-content: stretch;
    }

    .competitor-sales-directions-head p {
        max-width: 100%;
    }

    .competitor-category-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .competitor-top-products-periods {
        grid-template-columns: 1fr;
    }

    .competitor-analysis-period-card {
        grid-template-columns: 1fr;
    }

    .competitor-category-line {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .competitor-category-line-meta {
        grid-column: 2 / -1;
        text-align: left;
    }

    .competitor-top-product-row {
        grid-template-columns: 34px 46px minmax(0, 1fr) minmax(96px, auto);
    }

    .competitor-top-product-action {
        grid-column: 3;
        justify-self: start;
    }

    .competitor-top-product-row strong {
        grid-column: 4;
        grid-row: 1;
    }
}

@media (max-width: 560px) {
    .competitor-shop-hero-main {
        align-items: flex-start;
    }

    .competitor-shop-logo-wrap {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .competitor-shop-kpis {
        grid-template-columns: 1fr;
    }

    .competitor-analysis-tabs {
        gap: 6px;
        padding-bottom: 6px;
    }

    .competitor-analysis-tab-btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .competitor-visibility-summary-grid {
        grid-template-columns: 1fr;
    }

    .competitor-analysis-history-head {
        flex-direction: column;
    }

    .competitor-analysis-history-tools,
    .competitor-analysis-history-size,
    .competitor-analysis-history-size label {
        width: 100%;
    }

    .competitor-analysis-history-size select {
        flex: 1 1 auto;
    }

    .competitor-analysis-history-actions,
    .competitor-analysis-history-actions .inline-form,
    .competitor-analysis-history-actions .btn {
        width: 100%;
    }

    .competitor-analysis-history-footer,
    .competitor-analysis-history-pagination,
    .competitor-analysis-history-pagination .btn,
    .competitor-analysis-history-pagination .is-disabled {
        width: 100%;
    }

    .competitor-analysis-history-pagination {
        display: grid;
        grid-template-columns: 1fr;
    }

    .competitor-analysis-history-page {
        justify-content: center;
    }

    .competitor-analysis-summary-grid {
        grid-template-columns: 1fr;
    }

    .competitor-store-stats-head {
        flex-direction: column;
    }

    .competitor-sales-chart-head {
        flex-direction: column;
    }

    .competitor-sales-chart {
        grid-template-columns: repeat(12, minmax(42px, 1fr));
    }

    .competitor-store-stats-grid {
        grid-template-columns: 1fr;
    }

    .competitor-top-product-row {
        grid-template-columns: 32px 44px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 9px 10px;
    }

    .competitor-top-product-thumb {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }

    .competitor-top-products-period-card {
        padding: 10px;
        border-radius: 10px;
    }

    .competitor-top-products-period-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .competitor-top-products-period-card .competitor-top-product-row {
        grid-template-columns: 30px 42px minmax(0, 1fr);
    }

    .competitor-top-product-title {
        white-space: normal;
    }

    .competitor-top-product-period,
    .competitor-top-product-action,
    .competitor-top-product-row strong,
    .competitor-top-products-period-card .competitor-top-product-action,
    .competitor-top-products-period-card .competitor-top-product-row strong {
        grid-column: 3 / -1;
        grid-row: auto;
        text-align: left;
        justify-self: start;
    }
}

html[data-theme="dark"] .competitor-analysis-seller-row {
    border-color: rgba(126, 156, 178, 0.34);
    background: rgba(20, 28, 35, 0.92);
}

html[data-theme="dark"] .seller-info-metrics article {
    border-color: rgba(126, 156, 178, 0.24);
    background: linear-gradient(180deg, rgba(24, 34, 43, 0.94), rgba(18, 25, 32, 0.9));
    box-shadow: none;
}

html[data-theme="dark"] .seller-info-metrics span,
html[data-theme="dark"] .seller-info-metrics small {
    color: #9db2c3;
}

html[data-theme="dark"] .seller-info-metrics strong {
    color: #e6f2f6;
}

html[data-theme="dark"] .seller-info-metrics article.is-positive {
    border-color: rgba(67, 205, 151, 0.28);
    background: rgba(21, 69, 55, 0.24);
}

html[data-theme="dark"] .seller-info-metrics article.is-positive strong {
    color: #72e3b7;
}

html[data-theme="dark"] .seller-info-metrics article.is-negative {
    border-color: rgba(238, 148, 111, 0.3);
    background: rgba(86, 45, 35, 0.24);
}

html[data-theme="dark"] .seller-info-metrics article.is-negative strong {
    color: #f0aa86;
}

html[data-theme="dark"] .seller-info-metrics article.is-orders {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(19, 78, 74, 0.24);
}

html[data-theme="dark"] .seller-info-metrics article.is-orders strong {
    color: #73eee0;
}

html[data-theme="dark"] .seller-info-metrics article.is-identity {
    border-color: rgba(151, 159, 255, 0.26);
    background: rgba(44, 51, 101, 0.22);
}

html[data-theme="dark"] .competitor-analysis-history {
    border-top-color: rgba(126, 156, 178, 0.18);
}

html[data-theme="dark"] .competitor-analysis-history-item {
    background: rgba(18, 25, 32, 0.78);
    border-color: rgba(126, 156, 178, 0.24);
}

html[data-theme="dark"] .competitor-analysis-history-item.is-active {
    background: rgba(20, 85, 79, 0.28);
    border-color: rgba(158, 162, 255, 0.42);
}

html[data-theme="dark"] .competitor-analysis-history-main strong {
    color: #e2eff4;
}

html[data-theme="dark"] .competitor-analysis-history-main span {
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-analysis-history-date {
    color: #aeb1ff !important;
}

html[data-theme="dark"] .competitor-analysis-history-empty {
    background: rgba(18, 25, 32, 0.72);
    border-color: rgba(158, 162, 255, 0.32);
    color: #b7cad8;
}

html[data-theme="dark"] .competitor-shop-hero {
    border-color: rgba(158, 162, 255, 0.28);
    background: linear-gradient(135deg, rgba(21, 44, 47, 0.95), rgba(20, 28, 35, 0.96) 52%, rgba(25, 34, 42, 0.96));
}

html[data-theme="dark"] .competitor-shop-logo-wrap,
html[data-theme="dark"] .competitor-shop-kpis article {
    border-color: rgba(126, 156, 178, 0.25);
    background: rgba(18, 25, 32, 0.72);
}

html[data-theme="dark"] .competitor-shop-title h2,
html[data-theme="dark"] .competitor-shop-kpis strong {
    color: #e6f2f6;
}

html[data-theme="dark"] .competitor-shop-eyebrow,
html[data-theme="dark"] .competitor-shop-meta,
html[data-theme="dark"] .competitor-shop-kpis span {
    color: #9bb4c7;
}

html[data-theme="dark"] .competitor-shop-meta a,
html[data-theme="dark"] .competitor-shop-kpis a,
html[data-theme="dark"] .competitor-top-product-action {
    color: #aeb1ff;
}

html[data-theme="dark"] .competitor-analysis-tab-btn {
    border-color: rgba(126, 156, 178, 0.24);
    background: rgba(18, 25, 32, 0.72);
    color: #a8bdcc;
}

html[data-theme="dark"] .competitor-analysis-tab-btn:hover,
html[data-theme="dark"] .competitor-analysis-tab-btn:focus-visible {
    border-color: rgba(158, 162, 255, 0.46);
    background: rgba(24, 34, 43, 0.9);
    color: #dbe8f2;
}

html[data-theme="dark"] .competitor-analysis-tab-btn.is-active {
    border-color: rgba(158, 162, 255, 0.52);
    background: linear-gradient(180deg, rgba(83, 92, 226, 0.28), rgba(63, 185, 169, 0.16));
    color: #eef5ff;
}

html[data-theme="dark"] .position-analysis-mode-tab,
html[data-theme="dark"] .position-analysis-form-card {
    border-color: rgba(126, 156, 178, 0.24);
    background: rgba(18, 25, 32, 0.72);
}

html[data-theme="dark"] .position-analysis-mode-tab:hover,
html[data-theme="dark"] .position-analysis-mode-tab:focus-visible {
    border-color: rgba(158, 162, 255, 0.46);
    background: rgba(24, 34, 43, 0.9);
}

html[data-theme="dark"] .position-analysis-mode-tab.is-active {
    border-color: rgba(158, 162, 255, 0.52);
    background: linear-gradient(180deg, rgba(83, 92, 226, 0.28), rgba(63, 185, 169, 0.16));
}

html[data-theme="dark"] .position-analysis-mode-tab strong,
html[data-theme="dark"] .position-analysis-form-head h3 {
    color: #e6f2f6;
}

html[data-theme="dark"] .position-analysis-mode-tab span {
    color: #9bb4c7;
}

html[data-theme="dark"] .position-product-card,
html[data-theme="dark"] .position-product-match-card,
html[data-theme="dark"] .position-product-photo-card,
html[data-theme="dark"] .position-result-media,
html[data-theme="dark"] .position-product-insight-grid article,
html[data-theme="dark"] .competitor-visibility-position-grid article {
    border-color: rgba(57, 178, 255, 0.22);
    background: rgba(18, 31, 40, 0.72);
    box-shadow: none;
}

html[data-theme="dark"] .position-product-card-head h3,
html[data-theme="dark"] .position-product-card-meta strong,
html[data-theme="dark"] .position-product-match-card strong,
html[data-theme="dark"] .position-product-insight-grid strong,
html[data-theme="dark"] .competitor-visibility-position-grid strong {
    color: #e6f2f6;
}

html[data-theme="dark"] .position-product-photo-card img,
html[data-theme="dark"] .position-result-media img {
    background: rgba(12, 18, 24, 0.96);
}

html[data-theme="dark"] .position-product-photo-card > span,
html[data-theme="dark"] .position-result-media > span {
    border-color: rgba(158, 162, 255, 0.3);
    background: rgba(18, 25, 32, 0.88);
    color: #d4dcff;
}

html[data-theme="dark"] .position-product-photo-empty,
html[data-theme="dark"] .position-result-media-empty,
html[data-theme="dark"] .position-product-insight-grid span,
html[data-theme="dark"] .position-product-insight-grid small,
html[data-theme="dark"] .position-language-metric-card small,
html[data-theme="dark"] .competitor-visibility-position-grid span,
html[data-theme="dark"] .competitor-visibility-position-grid small {
    color: #9bb4c7;
}

html[data-theme="dark"] .position-language-metric-list b {
    border-color: rgba(158, 162, 255, 0.28);
    background: rgba(83, 92, 226, 0.2);
    color: #d9defd;
}

html[data-theme="dark"] .position-product-card-meta span {
    border-color: rgba(57, 178, 255, 0.2);
    background: rgba(18, 25, 32, 0.82);
    color: #9bb4c7;
}

html[data-theme="dark"] .position-product-match-card span {
    color: #aeb1ff;
}

html[data-theme="dark"] .position-product-match-card small {
    color: #9bb4c7;
}

html[data-theme="dark"] .position-history-section,
html[data-theme="dark"] .position-history-card,
html[data-theme="dark"] .position-history-query-card,
html[data-theme="dark"] .position-history-metrics span,
html[data-theme="dark"] .position-product-recent-checks,
html[data-theme="dark"] .position-product-recent-item {
    border-color: rgba(57, 178, 255, 0.2);
    background: rgba(18, 31, 40, 0.72);
    box-shadow: none;
}

html[data-theme="dark"] .position-history-query-card.is-found,
html[data-theme="dark"] .position-product-recent-item.is-found {
    border-color: rgba(54, 206, 142, 0.28);
    background: rgba(17, 55, 45, 0.52);
}

html[data-theme="dark"] .position-history-query-card.is-missing {
    border-color: rgba(231, 151, 69, 0.28);
    background: rgba(56, 40, 24, 0.52);
}

html[data-theme="dark"] .position-history-query-card > strong,
html[data-theme="dark"] .position-history-metrics strong,
html[data-theme="dark"] .position-product-recent-item > strong {
    color: #e6f2f6;
}

html[data-theme="dark"] .position-history-query-card > small,
html[data-theme="dark"] .position-history-query-card > p,
html[data-theme="dark"] .position-history-metrics em,
html[data-theme="dark"] .position-history-metrics small,
html[data-theme="dark"] .position-product-recent-head span,
html[data-theme="dark"] .position-product-recent-item small {
    color: #9bb4c7;
}

html[data-theme="dark"] .position-product-recent-head strong,
html[data-theme="dark"] .position-product-recent-item > span {
    color: #aeb1ff;
}

html[data-theme="dark"] .position-product-recent-item small {
    border-color: rgba(158, 162, 255, 0.24);
    background: rgba(18, 25, 32, 0.72);
}

html[data-theme="dark"] .competitor-analysis-history-item.position-history-card {
    border-color: rgba(126, 156, 178, 0.28);
    background: linear-gradient(180deg, rgba(20, 28, 35, 0.96), rgba(18, 25, 32, 0.9));
    box-shadow: none;
}

html[data-theme="dark"] .competitor-analysis-history-item.position-history-card.is-active {
    border-color: rgba(158, 162, 255, 0.42);
    background: linear-gradient(180deg, rgba(28, 42, 54, 0.96), rgba(18, 25, 32, 0.92));
}

html[data-theme="dark"] .position-history-record-rail {
    border-right-color: rgba(126, 156, 178, 0.2);
    background: linear-gradient(180deg, rgba(39, 49, 72, 0.72), rgba(20, 47, 45, 0.48));
}

html[data-theme="dark"] .position-history-record-rail span,
html[data-theme="dark"] .position-history-targets-head strong {
    border-color: rgba(158, 162, 255, 0.34);
    background: rgba(18, 25, 32, 0.88);
    color: #d8dcff;
    box-shadow: none;
}

html[data-theme="dark"] .position-history-card-topline {
    border-bottom-color: rgba(126, 156, 178, 0.18);
}

html[data-theme="dark"] .position-history-card-meta span,
html[data-theme="dark"] .position-history-targets-block,
html[data-theme="dark"] .position-history-metrics span {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(18, 31, 40, 0.72);
}

html[data-theme="dark"] .position-history-card-meta span,
html[data-theme="dark"] .position-history-targets-head span,
html[data-theme="dark"] .position-history-query-title small {
    color: #9bb4c7;
}

html[data-theme="dark"] .position-history-query-title strong {
    color: #e6f2f6;
}

html[data-theme="dark"] .position-target-picker,
html[data-theme="dark"] .position-limit-readonly {
    border-color: rgba(57, 178, 255, 0.22);
    background: rgba(18, 31, 40, 0.7);
}

html[data-theme="dark"] .position-manual-query span {
    color: #e6f2f6;
}

html[data-theme="dark"] .position-manual-query input {
    border-color: rgba(57, 178, 255, 0.24);
    background: rgba(18, 25, 32, 0.82);
    color: #e6f2f6;
}

html[data-theme="dark"] .position-manual-query input:focus {
    border-color: rgba(57, 178, 255, 0.5);
    background: rgba(21, 31, 40, 0.95);
    box-shadow: 0 0 0 4px rgba(57, 178, 255, 0.12);
}

html[data-theme="dark"] .position-manual-query small {
    color: #9bb4c7;
}

html[data-theme="dark"] .position-target-pill-body {
    border-color: rgba(57, 178, 255, 0.2);
    background: rgba(18, 25, 32, 0.82);
}

html[data-theme="dark"] .position-target-pill input:checked + .position-target-pill-body {
    border-color: rgba(57, 178, 255, 0.48);
    background: linear-gradient(180deg, rgba(0, 132, 255, 0.22), rgba(24, 190, 213, 0.14));
}

html[data-theme="dark"] .position-target-picker-head strong,
html[data-theme="dark"] .position-target-pill-body strong,
html[data-theme="dark"] .position-limit-readonly strong {
    color: #e6f2f6;
}

html[data-theme="dark"] .position-target-picker-head span,
html[data-theme="dark"] .position-target-picker-head small,
html[data-theme="dark"] .position-target-picker-state,
html[data-theme="dark"] .position-target-pill-body small,
html[data-theme="dark"] .position-limit-readonly span {
    color: #9bb4c7;
}

html[data-theme="dark"] .competitor-visibility-summary-grid article,
html[data-theme="dark"] .competitor-visibility-row {
    border-color: rgba(126, 156, 178, 0.24);
    background: rgba(18, 25, 32, 0.72);
}

html[data-theme="dark"] .competitor-visibility-row.is-found {
    border-color: rgba(83, 205, 151, 0.32);
    background: rgba(19, 56, 43, 0.48);
}

html[data-theme="dark"] .competitor-visibility-row.is-error {
    border-color: rgba(232, 183, 88, 0.38);
    background: rgba(76, 51, 22, 0.34);
}

html[data-theme="dark"] .competitor-visibility-summary-grid span,
html[data-theme="dark"] .competitor-visibility-kind,
html[data-theme="dark"] .competitor-visibility-detail {
    color: #9bb4c7;
}

html[data-theme="dark"] .competitor-visibility-comparison {
    border-color: rgba(158, 162, 255, 0.28);
    background: rgba(83, 92, 226, 0.18);
    color: #d4dcff;
}

html[data-theme="dark"] .competitor-visibility-observed {
    border-color: rgba(232, 183, 88, 0.3);
    background: rgba(76, 51, 22, 0.34);
    color: #f4d08f;
}

html[data-theme="dark"] .competitor-visibility-card-position {
    border-color: rgba(83, 205, 151, 0.3);
    background: rgba(19, 56, 43, 0.48);
    color: #b9f4d7;
}

html[data-theme="dark"] .competitor-visibility-summary-grid strong,
html[data-theme="dark"] .competitor-visibility-main strong {
    color: #e6f2f6;
}

html[data-theme="dark"] .competitor-visibility-status {
    border-color: rgba(158, 162, 255, 0.28);
    background: rgba(83, 92, 226, 0.18);
    color: #b7cad8;
}

html[data-theme="dark"] .competitor-visibility-status.is-found {
    border-color: rgba(83, 205, 151, 0.36);
    background: rgba(83, 205, 151, 0.16);
    color: #8ff1c1;
}

html[data-theme="dark"] .competitor-visibility-status.is-error {
    border-color: rgba(232, 183, 88, 0.38);
    background: rgba(232, 183, 88, 0.16);
    color: #f0c36d;
}

html[data-theme="dark"] .competitor-analysis-seller-row.is-own {
    border-color: rgba(158, 162, 255, 0.45);
}

html[data-theme="dark"] .competitor-analysis-seller-row.is-leader {
    border-color: rgba(232, 183, 88, 0.46);
}

html[data-theme="dark"] .competitor-analysis-profile-logo {
    border-color: rgba(126, 156, 178, 0.34);
}

html[data-theme="dark"] .competitor-analysis-profile-fallback {
    color: #aeb1ff;
    background: rgba(83, 92, 226, 0.24);
    border-color: rgba(158, 162, 255, 0.42);
}

html[data-theme="dark"] .competitor-analysis-profile-fallback::before,
html[data-theme="dark"] .competitor-analysis-avatar-fallback::before {
    border-color: rgba(146, 226, 215, 0.9);
}

html[data-theme="dark"] .competitor-analysis-row-toggle {
    background: rgba(24, 34, 43, 0.76);
    border-color: rgba(126, 156, 178, 0.26);
}

html[data-theme="dark"] .competitor-analysis-row-toggle::before {
    border-right-color: rgba(146, 226, 215, 0.9);
    border-bottom-color: rgba(146, 226, 215, 0.9);
}

html[data-theme="dark"] .competitor-analysis-seller-row[open] .competitor-analysis-seller-summary {
    background: rgba(83, 92, 226, 0.18);
    border-bottom-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .competitor-analysis-row-label {
    color: #9bb4c7;
}

html[data-theme="dark"] .competitor-analysis-sellers-head {
    color: #93a9bb;
}

html[data-theme="dark"] .competitor-analysis-row-col strong {
    color: #dbe8f2;
}

html[data-theme="dark"] .competitor-analysis-period-card {
    background: rgba(18, 25, 32, 0.58);
    border-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .competitor-analysis-periods {
    background: rgba(20, 28, 35, 0.76);
    border-color: rgba(126, 156, 178, 0.24);
}

html[data-theme="dark"] .competitor-category-breakdown-head h4,
html[data-theme="dark"] .competitor-analysis-period-head strong {
    color: #dbe8f2;
}

html[data-theme="dark"] .competitor-analysis-no-data {
    background: rgba(18, 25, 32, 0.7);
    border-color: rgba(126, 156, 178, 0.18);
}

html[data-theme="dark"] .competitor-category-line {
    border-bottom-color: rgba(126, 156, 178, 0.16);
}

html[data-theme="dark"] .competitor-category-line-rank {
    color: #aeb1ff;
    background: rgba(83, 92, 226, 0.24);
    border-color: rgba(158, 162, 255, 0.42);
}

html[data-theme="dark"] .competitor-category-line-name {
    color: #e6f2f6;
}

html[data-theme="dark"] .competitor-category-line-meta {
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-store-stats-card {
    background: rgba(24, 34, 43, 0.8);
    border-color: rgba(126, 156, 178, 0.28);
}

html[data-theme="dark"] .competitor-store-stats-head h3,
html[data-theme="dark"] .competitor-store-stats-grid span {
    color: #dbe8f2;
}

html[data-theme="dark"] .competitor-store-stats-grid span {
    background: rgba(18, 25, 32, 0.72);
}

html[data-theme="dark"] .competitor-top-products h4,
html[data-theme="dark"] .competitor-top-products-period-card h5,
html[data-theme="dark"] .competitor-top-product-row {
    color: #dbe8f2;
}

html[data-theme="dark"] .competitor-top-products-period-card {
    background: rgba(18, 25, 32, 0.62);
    border-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .competitor-top-products-period-head {
    border-bottom-color: rgba(126, 156, 178, 0.18);
}

html[data-theme="dark"] .competitor-top-products-period-head strong {
    color: #dbe8f2;
}

html[data-theme="dark"] .competitor-top-product-row {
    background: rgba(18, 25, 32, 0.72);
    border-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .competitor-top-product-row:hover {
    background: rgba(27, 43, 51, 0.9);
}

html[data-theme="dark"] .competitor-top-product-rank {
    color: #aeb1ff;
    background: rgba(83, 92, 226, 0.24);
    border-color: rgba(158, 162, 255, 0.42);
}

html[data-theme="dark"] .competitor-top-product-period {
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-top-product-thumb {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(12, 18, 24, 0.72);
}

html[data-theme="dark"] .competitor-top-product-thumb img {
    background: rgba(18, 25, 32, 0.9);
}

html[data-theme="dark"] .competitor-top-product-thumb span {
    border-color: rgba(157, 178, 195, 0.22);
    background:
        linear-gradient(135deg, transparent 48%, rgba(157, 178, 195, 0.18) 49%, rgba(157, 178, 195, 0.18) 55%, transparent 56%),
        linear-gradient(180deg, rgba(25, 34, 43, 0.95), rgba(18, 25, 32, 0.92));
}

html[data-theme="dark"] .competitor-top-product-copy small {
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-store-stats-grid b {
    color: #9bb4c7;
}

html[data-theme="dark"] .competitor-store-stats-grid small {
    color: #8fa3b4;
}

html[data-theme="dark"] .competitor-sales-directions-card {
    background: rgba(18, 25, 32, 0.92);
    border-color: rgba(126, 156, 178, 0.22);
    box-shadow: none;
}

html[data-theme="dark"] .competitor-sales-directions-head h4,
html[data-theme="dark"] .competitor-directions-period-summary strong,
html[data-theme="dark"] .competitor-direction-mini-name {
    color: #e6f2f6;
}

html[data-theme="dark"] .competitor-sales-directions-head a,
html[data-theme="dark"] .competitor-directions-period-tabs label:hover {
    color: #aeb1ff;
}

html[data-theme="dark"] .competitor-directions-period-tabs {
    background: rgba(12, 18, 24, 0.54);
    border-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] #competitor-directions-period-3m:checked ~ .competitor-directions-period-tabs label[for="competitor-directions-period-3m"],
html[data-theme="dark"] #competitor-directions-period-6m:checked ~ .competitor-directions-period-tabs label[for="competitor-directions-period-6m"],
html[data-theme="dark"] #competitor-directions-period-12m:checked ~ .competitor-directions-period-tabs label[for="competitor-directions-period-12m"] {
    background: rgba(83, 92, 226, 0.22);
    color: #d8ddff;
}

html[data-theme="dark"] .competitor-directions-period-summary,
html[data-theme="dark"] .competitor-sales-directions-foot {
    border-color: rgba(126, 156, 178, 0.18);
}

html[data-theme="dark"] .competitor-direction-mini-row small,
html[data-theme="dark"] .competitor-sales-directions-foot {
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-store-stats-explain {
    color: #b7cad8;
}

html[data-theme="dark"] .competitor-sales-chart-card {
    background: rgba(18, 25, 32, 0.68);
    border-color: rgba(126, 156, 178, 0.22);
}

html[data-theme="dark"] .competitor-sales-chart-head h4,
html[data-theme="dark"] .competitor-sales-chart-month strong,
html[data-theme="dark"] .competitor-sales-chart-meta b {
    color: #e6f2f6;
}

html[data-theme="dark"] .competitor-sales-chart {
    border-color: rgba(126, 156, 178, 0.18);
    background:
        linear-gradient(to top, rgba(158, 162, 255, 0.11) 1px, transparent 1px) 0 0 / 100% 25%,
        rgba(20, 28, 35, 0.74);
}

html[data-theme="dark"] .competitor-sales-chart-bar {
    background: rgba(126, 156, 178, 0.14);
}

html[data-theme="dark"] .competitor-sales-chart-month,
html[data-theme="dark"] .competitor-sales-chart-meta span {
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-sales-chart-meta span {
    background: rgba(83, 92, 226, 0.18);
    border-color: rgba(158, 162, 255, 0.28);
}

html[data-theme="dark"] .competitor-sales-chart-month.is-peak strong,
html[data-theme="dark"] .competitor-sales-chart-month.is-peak > span:last-child {
    color: #aeb1ff;
}

html[data-theme="dark"] .competitor-sales-line-card {
    background: rgba(18, 25, 32, 0.92);
    border-color: rgba(126, 156, 178, 0.22);
    box-shadow: none;
}

html[data-theme="dark"] .competitor-sales-line-head h4,
html[data-theme="dark"] .competitor-sales-line-meta b {
    color: #e6f2f6;
}

html[data-theme="dark"] .competitor-sales-line-scroll {
    background: rgba(12, 18, 24, 0.54);
    border-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .competitor-sales-line-grid,
html[data-theme="dark"] .competitor-sales-line-vgrid {
    stroke: rgba(158, 172, 207, 0.18);
}

html[data-theme="dark"] .competitor-sales-line-y,
html[data-theme="dark"] .competitor-sales-line-x,
html[data-theme="dark"] .competitor-sales-line-legend,
html[data-theme="dark"] .competitor-sales-line-meta span {
    color: #9db2c3;
    fill: #8ea0bd;
}

html[data-theme="dark"] .competitor-sales-line-point circle {
    fill: #111923;
}

html[data-theme="dark"] .competitor-sales-line-source {
    background: rgba(24, 34, 43, 0.88);
    border-color: rgba(126, 156, 178, 0.24);
    color: #b7cad8;
}

html[data-theme="dark"] .competitor-sales-line-meta span {
    background: rgba(24, 34, 43, 0.88);
    border-color: rgba(126, 156, 178, 0.2);
}

html[data-theme="dark"] .competitor-sales-line-value {
    stroke: rgba(17, 25, 35, 0.92);
}

html[data-theme="dark"] .competitor-sales-line-meta span {
    background: rgba(37, 201, 189, 0.12);
    border-color: rgba(37, 201, 189, 0.24);
}

/* Dashboard operations board: sources, priorities, launch and export health */
.overview-zone-sources,
.overview-action-plan,
.overview-work-card,
.overview-run-grid > .panel {
    border-color: rgba(16, 93, 86, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 249, 0.9));
    box-shadow: 0 14px 34px rgba(25, 45, 42, 0.08);
}

.overview-zone-sources {
    padding: 18px;
}

.overview-action-plan {
    padding: 18px;
}

.overview-sources-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 93, 86, 0.12);
}

.overview-action-plan-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 93, 86, 0.12);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.overview-action-plan-head .btn {
    align-self: start;
    white-space: nowrap;
}

.overview-sources-head h2,
.overview-action-plan h2,
.overview-work-card h2,
.overview-run-grid h2 {
    margin-bottom: 4px;
}

.overview-sources-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.08);
    color: #245a54;
    font-weight: 700;
}

.overview-source-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.overview-source-item {
    position: relative;
    min-height: 82px;
    padding: 14px 14px 14px 18px;
    border-radius: 14px;
    border-color: rgba(16, 93, 86, 0.18);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.overview-source-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--accent);
}

.overview-source-item.is-empty::before {
    background: rgba(104, 118, 116, 0.42);
}

.overview-source-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.1);
    border: 1px solid rgba(104, 112, 243, 0.18);
}

.overview-source-item.is-empty .overview-source-status {
    background: rgba(104, 118, 116, 0.08);
    border-color: rgba(104, 118, 116, 0.2);
}

.overview-opportunity-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 14px;
}

.overview-work-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
}

.overview-status-list {
    gap: 10px;
}

.overview-status-list li {
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 14px;
    border-color: rgba(16, 93, 86, 0.14);
    background: rgba(255, 255, 255, 0.78);
    padding: 12px 14px;
}

.overview-status-list li span {
    color: #37534f;
    font-weight: 700;
}

.overview-status-list li strong {
    min-width: 58px;
    text-align: right;
    font-size: 1.12rem;
}

.notification-list-main {
    margin-top: 0;
}

.overview-opportunity-cards,
.overview-stats-grid {
    gap: 10px;
}

.overview-opportunity-cards .insight-card,
.overview-stats-grid .insight-card {
    min-height: 96px;
    border-radius: 14px;
    border-color: rgba(16, 93, 86, 0.14);
    background: rgba(255, 255, 255, 0.74);
    padding: 14px;
}

.overview-action-plan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 14px;
    align-items: stretch;
}

.overview-action-list {
    display: grid;
    gap: 10px;
}

.overview-action-card {
    min-height: 98px;
    display: grid;
    grid-template-columns: minmax(88px, 0.24fr) minmax(0, 1fr) minmax(76px, auto) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(16, 93, 86, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.overview-action-card:hover {
    border-color: rgba(104, 112, 243, 0.34);
    box-shadow: 0 12px 24px rgba(42, 62, 92, 0.1);
    transform: translateY(-1px);
}

.overview-action-card.is-urgent {
    border-color: rgba(188, 90, 56, 0.24);
    background: linear-gradient(135deg, rgba(255, 251, 247, 0.88), rgba(255, 255, 255, 0.78));
}

.overview-action-card.is-positive {
    border-color: rgba(17, 120, 110, 0.24);
    background: linear-gradient(135deg, rgba(241, 252, 250, 0.88), rgba(255, 255, 255, 0.78));
}

.overview-action-priority,
.overview-action-side-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    background: rgba(104, 112, 243, 0.08);
    color: #535ce2;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.overview-action-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.overview-action-copy strong {
    color: #17213f;
    font-size: 1.02rem;
}

.overview-action-copy em {
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.45;
}

.overview-action-metric {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 76px;
}

.overview-action-metric strong {
    color: #17213f;
    font-size: 1.35rem;
    line-height: 1;
}

.overview-action-metric small {
    color: var(--text-muted);
    font-weight: 800;
}

.overview-action-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.1);
    color: #535ce2;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.overview-action-side {
    display: grid;
    gap: 10px;
}

.overview-action-side-card,
.overview-action-notes {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(16, 93, 86, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.overview-action-side-card strong {
    color: #17213f;
    font-size: 2rem;
    line-height: 1;
}

.overview-action-notes h3 {
    margin: 0;
    color: #17213f;
    font-size: 1rem;
}

.overview-run-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    align-items: stretch;
    gap: 14px;
}

.overview-run-grid > .panel {
    height: 100%;
}

.main-task-panel {
    border-color: rgba(104, 112, 243, 0.22);
    background:
        linear-gradient(135deg, rgba(241, 252, 250, 0.96), rgba(255, 255, 255, 0.92) 54%, rgba(248, 246, 239, 0.9));
}

.overview-run-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 93, 86, 0.12);
}

.overview-scan-form {
    gap: 14px;
}

.main-task-panel label {
    color: #244d49;
    font-weight: 800;
}

.main-task-panel select,
.main-task-panel input[type="number"] {
    min-height: 44px;
}

.main-task-panel .source-preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.main-task-panel .source-preview-item {
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    border-color: rgba(16, 93, 86, 0.15);
    background: rgba(255, 255, 255, 0.76);
    padding: 10px 12px;
}

.main-task-panel .source-preview-title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.main-task-panel .source-preview-url {
    flex: 0 0 auto;
    word-break: normal;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    background: rgba(104, 112, 243, 0.08);
    color: #535ce2;
    font-weight: 800;
    font-size: 0.72rem;
}

.main-task-panel .btn-primary {
    min-height: 44px;
    box-shadow: 0 12px 24px rgba(9, 108, 99, 0.18);
}

.overview-stats-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 249, 0.9));
}

.overview-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

html[data-theme="dark"] .overview-zone-sources,
html[data-theme="dark"] .overview-action-plan,
html[data-theme="dark"] .overview-work-card,
html[data-theme="dark"] .overview-run-grid > .panel {
    background: linear-gradient(180deg, rgba(24, 34, 42, 0.92), rgba(18, 27, 34, 0.9));
    border-color: rgba(126, 156, 178, 0.28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .overview-sources-head,
html[data-theme="dark"] .overview-action-plan-head,
html[data-theme="dark"] .overview-run-head {
    border-bottom-color: rgba(126, 156, 178, 0.18);
}

html[data-theme="dark"] .overview-sources-count,
html[data-theme="dark"] .overview-source-status,
html[data-theme="dark"] .overview-action-priority,
html[data-theme="dark"] .overview-action-side-label,
html[data-theme="dark"] .overview-action-cta,
html[data-theme="dark"] .main-task-panel .source-preview-url {
    background: rgba(83, 92, 226, 0.2);
    border-color: rgba(158, 162, 255, 0.36);
    color: #9af0e5;
}

html[data-theme="dark"] .overview-source-item,
html[data-theme="dark"] .overview-action-card,
html[data-theme="dark"] .overview-action-side-card,
html[data-theme="dark"] .overview-action-notes,
html[data-theme="dark"] .overview-status-list li,
html[data-theme="dark"] .overview-opportunity-cards .insight-card,
html[data-theme="dark"] .overview-stats-grid .insight-card,
html[data-theme="dark"] .main-task-panel .source-preview-item {
    background: rgba(18, 26, 33, 0.78);
    border-color: rgba(126, 156, 178, 0.22);
}

html[data-theme="dark"] .overview-status-list li span,
html[data-theme="dark"] .overview-action-copy strong,
html[data-theme="dark"] .overview-action-metric strong,
html[data-theme="dark"] .overview-action-side-card strong,
html[data-theme="dark"] .overview-action-notes h3,
html[data-theme="dark"] .main-task-panel label {
    color: #d3e1eb;
}

@media (max-width: 1200px) {
    .overview-action-plan-layout,
    .overview-opportunity-grid,
    .overview-run-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .overview-sources-head,
    .overview-action-plan-head,
    .overview-run-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .overview-sources-head-actions,
    .overview-sources-head-actions .btn,
    .overview-run-head .badge {
        width: 100%;
    }

    .overview-action-plan-head .btn {
        width: 100%;
    }

    .overview-source-list,
    .main-task-panel .source-preview-list,
    .overview-opportunity-cards,
    .overview-stats-grid,
    .main-task-panel .inline-fields {
        grid-template-columns: 1fr;
    }

    .overview-action-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .overview-action-priority,
    .overview-action-copy {
        grid-column: 1 / -1;
    }

    .overview-action-metric {
        justify-items: start;
        min-width: 0;
    }

    .overview-action-cta {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .main-task-panel .source-preview-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.42 - Soft finance dashboard skin                                        */
/* -------------------------------------------------------------------------- */

:root {
    --v142-ink: #151a3f;
    --v142-muted: #777da7;
    --v142-lilac-50: #fbfaff;
    --v142-lilac-100: #f3f1ff;
    --v142-lilac-200: #e7e5fb;
    --v142-lilac-300: #d7d5f7;
    --v142-accent: #6a70f6;
    --v142-accent-strong: #545be4;
    --v142-success: #9ca1ff;
    --v142-danger: #ff7470;
    --v142-panel: rgba(255, 255, 255, 0.9);
    --v142-panel-soft: rgba(247, 246, 255, 0.86);
    --v142-border: rgba(117, 121, 205, 0.18);
    --v142-border-strong: rgba(106, 112, 246, 0.34);
    --v142-shadow: 0 24px 70px rgba(71, 77, 155, 0.13);
    --v142-shadow-soft: 0 16px 38px rgba(78, 86, 164, 0.1);
    --v142-radius: 30px;
    --v142-radius-sm: 20px;
}

html:not([data-theme="dark"]) {
    background: #fbf9ff;
}

html:not([data-theme="dark"]) body {
    color: var(--v142-ink);
    background:
        radial-gradient(900px 520px at 5% -8%, rgba(213, 210, 255, 0.92), transparent 62%),
        radial-gradient(860px 580px at 96% 8%, rgba(255, 232, 243, 0.82), transparent 58%),
        linear-gradient(135deg, #fbfaff 0%, #f6f4ff 46%, #fff8fb 100%);
}

html:not([data-theme="dark"]) body::before {
    background:
        radial-gradient(circle at 18px 18px, rgba(116, 122, 237, 0.08) 1px, transparent 1.5px),
        linear-gradient(120deg, rgba(255, 255, 255, 0.62), transparent 40%);
    background-size: 42px 42px, auto;
    opacity: 0.78;
}

html:not([data-theme="dark"]) .ambient-bg .orb {
    filter: blur(78px);
    opacity: 0.34;
}

html:not([data-theme="dark"]) .ambient-bg .orb-a {
    background: #a8a8ff;
}

html:not([data-theme="dark"]) .ambient-bg .orb-b {
    background: #ffd6ea;
}

html:not([data-theme="dark"]) .ambient-bg .orb-c {
    background: #d9f0ff;
}

html:not([data-theme="dark"]) body.shell-auth {
    --topbar-height: 94px;
    --content-gutter: clamp(12px, 1.4vw, 26px);
    --color-canvas: #fbfaff;
    --color-surface: var(--v142-panel);
    --color-surface-soft: var(--v142-panel-soft);
    --color-surface-strong: #ffffff;
    --color-text: var(--v142-ink);
    --color-text-muted: var(--v142-muted);
    --color-border: var(--v142-border);
    --color-border-strong: var(--v142-border-strong);
    --color-primary: var(--v142-accent);
    --color-primary-hover: #5f65ee;
    --color-primary-active: var(--v142-accent-strong);
    --color-primary-soft: rgba(106, 112, 246, 0.14);
    --color-success: #6870f3;
    --color-danger: #ec615c;
    --shadow-sm: var(--v142-shadow-soft);
    --shadow-md: var(--v142-shadow);
    --radius-sm: 18px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 34px;
}

html:not([data-theme="dark"]) body.shell-auth .topbar {
    inset: 12px clamp(10px, 1.2vw, 22px) auto clamp(10px, 1.2vw, 22px);
    height: 70px;
    border: 1px solid rgba(141, 143, 220, 0.16);
    border-radius: 30px;
    background: rgba(239, 238, 255, 0.78);
    box-shadow: 0 18px 52px rgba(93, 96, 166, 0.11);
    backdrop-filter: saturate(145%) blur(18px);
    -webkit-backdrop-filter: saturate(145%) blur(18px);
}

html:not([data-theme="dark"]) body.shell-auth .topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.24) 45%, rgba(255, 247, 252, 0.64)),
        radial-gradient(circle at 95% 50%, rgba(255, 255, 255, 0.78), transparent 24%);
    opacity: 0.82;
}

html:not([data-theme="dark"]) body.shell-auth .topbar-inner {
    position: relative;
    z-index: 1;
    min-height: 68px;
    padding-inline: clamp(12px, 1.3vw, 22px);
}

html:not([data-theme="dark"]) body.shell-auth .brand {
    min-height: 48px;
    padding: 7px 18px 7px 10px;
    border: 1px solid rgba(143, 146, 221, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html:not([data-theme="dark"]) body.shell-auth .brand-logo-main {
    height: clamp(31px, 2vw, 38px);
    max-width: min(250px, 44vw);
}

html:not([data-theme="dark"]) .top-actions {
    gap: 10px;
}

html:not([data-theme="dark"]) .top-actions .role-pill,
html:not([data-theme="dark"]) .top-nav a,
html:not([data-theme="dark"]) .top-nav .nav-link-button {
    border: 1px solid rgba(141, 143, 220, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #6d719f;
    min-height: 42px;
    padding: 9px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html:not([data-theme="dark"]) .top-nav a:hover,
html:not([data-theme="dark"]) .top-nav .nav-link-button:hover {
    color: var(--v142-accent-strong);
    border-color: rgba(106, 112, 246, 0.3);
    background: #ffffff;
}

html:not([data-theme="dark"]) .shell-nav-toggle,
html:not([data-theme="dark"]) .sidebar-collapse-btn {
    border-radius: 16px;
    border-color: rgba(127, 132, 223, 0.2);
    background: rgba(255, 255, 255, 0.74);
    color: var(--v142-accent);
    box-shadow: 0 10px 24px rgba(82, 89, 170, 0.12);
}

html:not([data-theme="dark"]) .auth-layout {
    grid-template-columns: minmax(218px, 244px) minmax(0, 1fr);
    gap: clamp(12px, 1.15vw, 20px);
    margin-top: var(--topbar-height);
    padding-right: clamp(10px, 1.2vw, 20px);
}

html:not([data-theme="dark"]) .app-sidebar {
    top: calc(var(--topbar-height) + 10px);
    height: calc(100vh - var(--topbar-height) - 24px);
    margin: 0 0 14px clamp(10px, 1.2vw, 20px);
    border: 1px solid rgba(137, 140, 219, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 247, 255, 0.82)),
        radial-gradient(circle at 50% 4%, rgba(124, 130, 247, 0.22), transparent 34%);
    box-shadow: 0 24px 62px rgba(74, 79, 157, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html:not([data-theme="dark"]) .app-sidebar::before {
    content: none;
    display: none;
}

html:not([data-theme="dark"]) .app-sidebar-head {
    justify-content: flex-end;
    padding: 14px 14px 8px;
}

html:not([data-theme="dark"]) .app-sidebar-title {
    color: #777da7;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html:not([data-theme="dark"]) .sidebar-nav {
    gap: 9px;
    padding: 2px 14px 18px;
}

html:not([data-theme="dark"]) .sidebar-link {
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 22px;
    color: #8488ae;
    font-weight: 700;
}

html:not([data-theme="dark"]) .sidebar-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    border-color: rgba(121, 126, 230, 0.18);
    background: rgba(255, 255, 255, 0.62);
    color: #8085da;
}

html:not([data-theme="dark"]) .sidebar-link:hover {
    border-color: rgba(106, 112, 246, 0.2);
    background: rgba(241, 240, 255, 0.88);
    color: #5f65cd;
}

html:not([data-theme="dark"]) .sidebar-link.is-active {
    border-color: rgba(106, 112, 246, 0.18);
    background: linear-gradient(135deg, rgba(238, 237, 255, 0.96), rgba(246, 244, 255, 0.86));
    color: #6267de;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 34px rgba(106, 112, 246, 0.13);
}

html:not([data-theme="dark"]) .sidebar-link.is-active .sidebar-link-icon {
    border-color: rgba(106, 112, 246, 0.26);
    background: rgba(255, 255, 255, 0.76);
    color: var(--v142-accent);
}

html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .auth-layout {
    grid-template-columns: 100px minmax(0, 1fr);
}

html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .app-sidebar::before {
    width: 46px;
    height: 46px;
    border-radius: 18px;
}

html:not([data-theme="dark"]) .app-main-scroll {
    padding: 0 0 clamp(22px, 2vw, 36px);
}

html:not([data-theme="dark"]) .app-main-container {
    display: grid;
}

html:not([data-theme="dark"]) .layout-page-container {
    gap: clamp(16px, 1.35vw, 24px);
}

html:not([data-theme="dark"]) .cc-page-header {
    position: relative;
    margin-bottom: clamp(16px, 1.8vw, 26px);
    padding: clamp(20px, 2vw, 32px);
    border: 1px solid rgba(139, 143, 220, 0.15);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 246, 255, 0.82)),
        radial-gradient(circle at 92% 12%, rgba(212, 214, 255, 0.72), transparent 34%);
    box-shadow: var(--v142-shadow-soft);
    overflow: hidden;
}

html:not([data-theme="dark"]) .cc-page-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 230px;
    height: 230px;
    border-radius: 999px;
    background: rgba(255, 223, 238, 0.72);
    filter: blur(6px);
    pointer-events: none;
}

html:not([data-theme="dark"]) .cc-page-header-main,
html:not([data-theme="dark"]) .cc-page-breadcrumbs {
    position: relative;
    z-index: 1;
}

html:not([data-theme="dark"]) .cc-page-title {
    color: #171a3d;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2rem, 1.35rem + 2.1vw, 3.55rem);
    letter-spacing: -0.055em;
}

html:not([data-theme="dark"]) .cc-page-subtitle {
    max-width: 760px;
    color: var(--v142-muted);
    font-size: clamp(0.96rem, 0.88rem + 0.28vw, 1.08rem);
}

html:not([data-theme="dark"]) .cc-page-breadcrumbs a,
html:not([data-theme="dark"]) .table-link {
    color: var(--v142-accent-strong);
}

html:not([data-theme="dark"]) .panel,
html:not([data-theme="dark"]) .overview-zone-kpi,
html:not([data-theme="dark"]) .overview-zone-sources,
html:not([data-theme="dark"]) .overview-work-card,
html:not([data-theme="dark"]) .overview-run-grid > .panel,
html:not([data-theme="dark"]) .table-wrap,
html:not([data-theme="dark"]) .history-table-block,
html:not([data-theme="dark"]) .product-competitors-table-wrap,
html:not([data-theme="dark"]) .products-table-section,
html:not([data-theme="dark"]) .competitor-analysis-panel,
html:not([data-theme="dark"]) .settings-page .table-wrap {
    border-color: var(--v142-border);
    border-radius: var(--v142-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.84)),
        radial-gradient(circle at 0% 0%, rgba(236, 235, 255, 0.68), transparent 42%);
    box-shadow: var(--v142-shadow-soft);
}

html:not([data-theme="dark"]) .panel,
html:not([data-theme="dark"]) .overview-zone-kpi,
html:not([data-theme="dark"]) .overview-zone-sources,
html:not([data-theme="dark"]) .overview-work-card,
html:not([data-theme="dark"]) .overview-run-grid > .panel {
    padding: clamp(18px, 1.8vw, 30px);
}

html:not([data-theme="dark"]) .panel h1,
html:not([data-theme="dark"]) .panel h2,
html:not([data-theme="dark"]) .overview-zone-header h2 {
    color: var(--v142-ink);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: -0.03em;
}

html:not([data-theme="dark"]) .overview-summary-v1387,
html:not([data-theme="dark"]) .overview-zone-kpi,
html:not([data-theme="dark"]) .overview-zone-actions,
html:not([data-theme="dark"]) .overview-zone-sources {
    position: relative;
    overflow: hidden;
}

html:not([data-theme="dark"]) .overview-zone-summary .panel,
html:not([data-theme="dark"]) .overview-zone-summary {
    background: transparent;
}

html:not([data-theme="dark"]) .overview-zone-summary.panel {
    border-radius: 36px;
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid {
    gap: clamp(12px, 1vw, 18px);
}

html:not([data-theme="dark"]) .overview-summary-stat,
html:not([data-theme="dark"]) .overview-v386-shell .insight-card,
html:not([data-theme="dark"]) .overview-source-item,
html:not([data-theme="dark"]) .overview-status-list li,
html:not([data-theme="dark"]) .main-task-panel .source-preview-item,
html:not([data-theme="dark"]) .product-overview-aside-grid .insight-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(130, 135, 218, 0.17);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 245, 255, 0.84)),
        radial-gradient(circle at 90% 0%, rgba(218, 219, 255, 0.55), transparent 34%);
    box-shadow: 0 18px 38px rgba(83, 88, 163, 0.09);
}

html:not([data-theme="dark"]) .overview-summary-stat::after,
html:not([data-theme="dark"]) .overview-v386-shell .insight-card::after {
    content: "";
    position: absolute;
    left: clamp(14px, 1vw, 18px);
    right: clamp(14px, 1vw, 18px);
    bottom: -1px;
    height: 42%;
    border-radius: 18px 18px 0 0;
    background:
        linear-gradient(90deg, rgba(205, 207, 255, 0.44) 0 18%, transparent 18% 24%, rgba(197, 200, 255, 0.36) 24% 44%, transparent 44% 51%, rgba(149, 154, 248, 0.38) 51% 70%, transparent 70% 77%, rgba(207, 209, 255, 0.34) 77% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(106, 112, 246, 0.1));
    opacity: 0.55;
    pointer-events: none;
    transform: translateY(28%);
}

html:not([data-theme="dark"]) .overview-v386-shell .insight-card > *,
html:not([data-theme="dark"]) .overview-summary-stat > * {
    position: relative;
    z-index: 1;
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat {
    min-height: 138px;
    padding: clamp(16px, 1.3vw, 22px);
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat:nth-child(2),
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card-primary,
html:not([data-theme="dark"]) .insight-card-ok {
    border-color: rgba(53, 211, 159, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 255, 249, 0.78)),
        radial-gradient(circle at 86% 0%, rgba(117, 237, 198, 0.38), transparent 36%);
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat:nth-child(3),
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card-warning {
    border-color: rgba(255, 116, 112, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 245, 0.8)),
        radial-gradient(circle at 86% 0%, rgba(255, 184, 181, 0.32), transparent 36%);
}

html:not([data-theme="dark"]) .overview-summary-label,
html:not([data-theme="dark"]) .insight-label,
html:not([data-theme="dark"]) .overview-source-slot,
html:not([data-theme="dark"]) .overview-competitor-field > span {
    color: #7f84ad;
    letter-spacing: 0.01em;
    text-transform: none;
}

html:not([data-theme="dark"]) .overview-summary-stat strong,
html:not([data-theme="dark"]) .insight-value,
html:not([data-theme="dark"]) .overview-status-list li strong {
    color: #252957;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: -0.035em;
}

html:not([data-theme="dark"]) .overview-summary-stat strong {
    font-size: clamp(1.15rem, 0.98rem + 0.65vw, 1.65rem);
}

html:not([data-theme="dark"]) .overview-kpi-grid .insight-card {
    min-height: 166px;
    padding: clamp(17px, 1.35vw, 24px);
}

html:not([data-theme="dark"]) .overview-kpi-grid .insight-card .insight-value {
    font-size: clamp(2rem, 1.55rem + 1.4vw, 3.2rem);
}

html:not([data-theme="dark"]) .kpi-delta,
html:not([data-theme="dark"]) .badge,
html:not([data-theme="dark"]) .overview-source-status,
html:not([data-theme="dark"]) .notification-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(121, 126, 230, 0.16);
    border-radius: 999px;
    background: rgba(241, 240, 255, 0.78);
    color: #656bd7;
    font-weight: 800;
}

html:not([data-theme="dark"]) .kpi-delta-down,
html:not([data-theme="dark"]) .overview-source-status {
    border-color: rgba(53, 211, 159, 0.24);
    background: rgba(228, 255, 246, 0.78);
    color: #18a775;
}

html:not([data-theme="dark"]) .kpi-delta-up,
html:not([data-theme="dark"]) .status-failed,
html:not([data-theme="dark"]) .status-cancelled {
    border-color: rgba(255, 116, 112, 0.24);
    background: rgba(255, 238, 238, 0.82);
    color: #e1605c;
}

html:not([data-theme="dark"]) input[type="text"],
html:not([data-theme="dark"]) input[type="number"],
html:not([data-theme="dark"]) input[type="email"],
html:not([data-theme="dark"]) input[type="password"],
html:not([data-theme="dark"]) input[type="url"],
html:not([data-theme="dark"]) input[type="search"],
html:not([data-theme="dark"]) input[type="date"],
html:not([data-theme="dark"]) select,
html:not([data-theme="dark"]) textarea,
html:not([data-theme="dark"]) .custom-select-trigger {
    min-height: 50px;
    border-color: rgba(132, 136, 219, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #272b5a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html:not([data-theme="dark"]) textarea {
    border-radius: 22px;
}

html:not([data-theme="dark"]) input:focus,
html:not([data-theme="dark"]) select:focus,
html:not([data-theme="dark"]) textarea:focus,
html:not([data-theme="dark"]) .custom-select-trigger:focus-visible {
    border-color: rgba(106, 112, 246, 0.42);
    box-shadow: 0 0 0 4px rgba(106, 112, 246, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html:not([data-theme="dark"]) .btn,
html:not([data-theme="dark"]) .scan-action-btn,
html:not([data-theme="dark"]) .filter-preset-btn,
html:not([data-theme="dark"]) .notification-action-btn,
html:not([data-theme="dark"]) .day-action-btn {
    min-height: 46px;
    border-radius: 999px;
    border-color: rgba(126, 131, 222, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: #6267c9;
    box-shadow: 0 12px 24px rgba(82, 89, 170, 0.09);
}

html:not([data-theme="dark"]) .btn:hover,
html:not([data-theme="dark"]) .scan-action-btn:hover,
html:not([data-theme="dark"]) .filter-preset-btn:hover,
html:not([data-theme="dark"]) .notification-action-btn:hover {
    border-color: rgba(106, 112, 246, 0.34);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(82, 89, 170, 0.14);
}

html:not([data-theme="dark"]) .btn-primary,
html:not([data-theme="dark"]) button[type="submit"].btn-primary,
html:not([data-theme="dark"]) .filter-preset-btn.is-active {
    border-color: rgba(78, 85, 225, 0.72);
    background: linear-gradient(135deg, #777cf9, #5e65ee);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(95, 101, 238, 0.26);
}

html:not([data-theme="dark"]) .btn-secondary {
    background: rgba(242, 241, 255, 0.82);
    color: #6267c9;
}

html:not([data-theme="dark"]) .btn-danger-soft {
    border-color: rgba(255, 116, 112, 0.28);
    background: rgba(255, 238, 238, 0.84);
    color: #df5a55;
}

html:not([data-theme="dark"]) .btn-warning-soft {
    border-color: rgba(255, 190, 96, 0.32);
    background: rgba(255, 247, 232, 0.9);
    color: #b9771e;
}

html:not([data-theme="dark"]) .table-wrap,
html:not([data-theme="dark"]) .history-table-wrap,
html:not([data-theme="dark"]) .admin-users-table-wrap,
html:not([data-theme="dark"]) .scan-table-wrap,
html:not([data-theme="dark"]) .product-competitors-table-wrap {
    scrollbar-color: rgba(127, 132, 223, 0.42) rgba(241, 240, 255, 0.72);
}

html:not([data-theme="dark"]) table {
    border-collapse: separate;
    border-spacing: 0;
}

html:not([data-theme="dark"]) th {
    color: #777da7;
    background: rgba(239, 238, 255, 0.82);
    border-bottom-color: rgba(132, 136, 219, 0.16);
    text-transform: none;
    letter-spacing: 0.01em;
}

html:not([data-theme="dark"]) td {
    color: #303565;
    border-bottom-color: rgba(132, 136, 219, 0.12);
}

html:not([data-theme="dark"]) tbody tr:hover td {
    background: rgba(243, 242, 255, 0.7);
}

html:not([data-theme="dark"]) .overview-source-item::before {
    background: linear-gradient(180deg, #777cf9, #9ca1ff);
}

html:not([data-theme="dark"]) .overview-source-item.is-empty::before {
    background: rgba(157, 161, 197, 0.48);
}

html:not([data-theme="dark"]) .overview-source-name {
    color: #252957;
}

html:not([data-theme="dark"]) .overview-source-meta,
html:not([data-theme="dark"]) .muted,
html:not([data-theme="dark"]) .small,
html:not([data-theme="dark"]) .tiny-note,
html:not([data-theme="dark"]) .insight-meta {
    color: var(--v142-muted);
}

html:not([data-theme="dark"]) .overview-actions-grid {
    gap: 12px;
}

html:not([data-theme="dark"]) .overview-actions-grid .btn {
    min-height: 52px;
}

html:not([data-theme="dark"]) .main-task-panel {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 243, 255, 0.9)),
        radial-gradient(circle at 100% 0%, rgba(216, 218, 255, 0.62), transparent 42%);
}

html:not([data-theme="dark"]) .main-task-panel label {
    color: #555b96;
}

html:not([data-theme="dark"]) .alert {
    border-radius: 22px;
    border-color: rgba(127, 132, 223, 0.18);
    box-shadow: 0 14px 30px rgba(82, 89, 170, 0.08);
}

@media (min-width: 1281px) {
    html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .sidebar-link {
        padding-inline: 8px;
    }
}

@media (max-width: 1280px) {
    html:not([data-theme="dark"]) .auth-layout {
        grid-template-columns: minmax(202px, 226px) minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    html:not([data-theme="dark"]) body.shell-auth {
        --topbar-height: 84px;
    }

    html:not([data-theme="dark"]) body.shell-auth .topbar {
        inset: 8px 8px auto;
        height: 66px;
        border-radius: 24px;
    }

    html:not([data-theme="dark"]) .auth-layout {
        display: block;
        padding-right: 0;
    }

    html:not([data-theme="dark"]) .app-sidebar {
        top: var(--topbar-height);
        left: 10px;
        width: min(330px, calc(100vw - 20px));
        height: calc(100vh - var(--topbar-height) - 12px);
        margin: 0;
        border-radius: 28px;
    }

    html:not([data-theme="dark"]) .sidebar-backdrop {
        inset: var(--topbar-height) 0 0 0;
        background: rgba(36, 39, 83, 0.24);
        backdrop-filter: blur(5px);
    }

    html:not([data-theme="dark"]) .app-main-scroll {
        padding-inline: 10px;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    html:not([data-theme="dark"]) body.shell-auth {
        --topbar-height: 76px;
    }

    html:not([data-theme="dark"]) body.shell-auth .topbar {
        height: 60px;
        border-radius: 22px;
    }

    html:not([data-theme="dark"]) body.shell-auth .topbar-inner {
        min-height: 58px;
        gap: 8px;
        padding-inline: 9px;
    }

    html:not([data-theme="dark"]) body.shell-auth .brand {
        min-height: 42px;
        padding: 5px 10px 5px 7px;
    }

    html:not([data-theme="dark"]) body.shell-auth .brand-logo-main {
        height: 30px;
        max-width: 168px;
    }

    html:not([data-theme="dark"]) .top-actions {
        width: auto;
        padding-bottom: 0;
    }

    html:not([data-theme="dark"]) .top-actions .role-pill {
        display: none;
    }

    html:not([data-theme="dark"]) .top-nav {
        gap: 6px;
    }

    html:not([data-theme="dark"]) .top-nav a,
    html:not([data-theme="dark"]) .top-nav .nav-link-button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    html:not([data-theme="dark"]) .cc-page-header,
    html:not([data-theme="dark"]) .panel,
    html:not([data-theme="dark"]) .overview-zone-kpi,
    html:not([data-theme="dark"]) .overview-zone-sources,
    html:not([data-theme="dark"]) .overview-work-card,
    html:not([data-theme="dark"]) .overview-run-grid > .panel {
        border-radius: 24px;
        padding: 16px;
    }

    html:not([data-theme="dark"]) .overview-summary-stat,
    html:not([data-theme="dark"]) .overview-v386-shell .insight-card,
    html:not([data-theme="dark"]) .overview-source-item,
    html:not([data-theme="dark"]) .overview-status-list li {
        border-radius: 20px;
    }

    html:not([data-theme="dark"]) .overview-kpi-grid .insight-card {
        min-height: 138px;
    }

    html:not([data-theme="dark"]) input[type="text"],
    html:not([data-theme="dark"]) input[type="number"],
    html:not([data-theme="dark"]) input[type="email"],
    html:not([data-theme="dark"]) input[type="password"],
    html:not([data-theme="dark"]) input[type="url"],
    html:not([data-theme="dark"]) input[type="search"],
    html:not([data-theme="dark"]) input[type="date"],
    html:not([data-theme="dark"]) select,
    html:not([data-theme="dark"]) textarea {
        min-height: 46px;
    }
}

@media (max-width: 520px) {
    html:not([data-theme="dark"]) .top-nav a span,
    html:not([data-theme="dark"]) .top-nav .nav-link-button span {
        display: none;
    }

    html:not([data-theme="dark"]) .top-nav a,
    html:not([data-theme="dark"]) .top-nav .nav-link-button {
        width: 38px;
        justify-content: center;
        padding-inline: 0;
    }

    html:not([data-theme="dark"]) .overview-actions-grid {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .cc-page-title {
        font-size: clamp(1.74rem, 12vw, 2.35rem);
    }
}

/* -------------------------------------------------------------------------- */
/* v1.42.1 - Clean production pass, no decorative noise                       */
/* -------------------------------------------------------------------------- */

html:not([data-theme="dark"]) {
    --clean-ink: #171b3f;
    --clean-ink-soft: #303663;
    --clean-muted: #7d83a9;
    --clean-bg: #f8f7ff;
    --clean-bg-warm: #fff9fc;
    --clean-surface: rgba(255, 255, 255, 0.92);
    --clean-surface-soft: rgba(247, 246, 255, 0.9);
    --clean-line: rgba(136, 140, 213, 0.18);
    --clean-line-strong: rgba(107, 113, 238, 0.36);
    --clean-primary: #6870f3;
    --clean-primary-strong: #535ce2;
    --clean-primary-soft: rgba(104, 112, 243, 0.12);
    --clean-success: #6870f3;
    --clean-success-soft: rgba(104, 112, 243, 0.12);
    --clean-danger: #eb6460;
    --clean-danger-soft: rgba(235, 100, 96, 0.12);
    --clean-warning: #c38432;
    --clean-warning-soft: rgba(195, 132, 50, 0.14);
    --clean-radius-xl: 32px;
    --clean-radius-lg: 26px;
    --clean-radius-md: 20px;
    --clean-radius-sm: 14px;
    --clean-shadow: 0 22px 60px rgba(66, 72, 143, 0.11);
    --clean-shadow-sm: 0 12px 30px rgba(66, 72, 143, 0.08);
}

html:not([data-theme="dark"]) body {
    color: var(--clean-ink);
    background:
        radial-gradient(1000px 640px at 0% -12%, rgba(224, 222, 255, 0.78), transparent 58%),
        radial-gradient(940px 620px at 100% 0%, rgba(255, 232, 244, 0.64), transparent 58%),
        linear-gradient(135deg, var(--clean-bg) 0%, #fbfaff 48%, var(--clean-bg-warm) 100%);
}

html:not([data-theme="dark"]) body::before {
    opacity: 0.24;
    background-image: radial-gradient(rgba(112, 117, 214, 0.12) 0.7px, transparent 0.8px);
    background-size: 32px 32px;
}

html:not([data-theme="dark"]) body::after,
html:not([data-theme="dark"]) .overview-summary-stat::after,
html:not([data-theme="dark"]) .overview-v386-shell .insight-card::after,
html:not([data-theme="dark"]) .overview-source-item::before,
html:not([data-theme="dark"]) .cc-page-header::after,
html:not([data-theme="dark"]) body.shell-auth .topbar::after {
    content: none !important;
    display: none !important;
}

html:not([data-theme="dark"]) .ambient-bg .orb {
    opacity: 0.22;
    filter: blur(90px);
}

html:not([data-theme="dark"]) .app-shell {
    isolation: isolate;
}

html:not([data-theme="dark"]) body.shell-auth .topbar {
    background: rgba(246, 245, 255, 0.88);
    border-color: var(--clean-line);
    box-shadow: 0 18px 46px rgba(68, 73, 142, 0.1);
}

html:not([data-theme="dark"]) body.shell-auth .brand,
html:not([data-theme="dark"]) .top-actions .role-pill,
html:not([data-theme="dark"]) .top-nav a,
html:not([data-theme="dark"]) .top-nav .nav-link-button {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(136, 140, 213, 0.16);
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shell-auth .brand:hover,
html:not([data-theme="dark"]) .top-nav a:hover,
html:not([data-theme="dark"]) .top-nav .nav-link-button:hover {
    background: #ffffff;
    border-color: var(--clean-line-strong);
    transform: translateY(-1px);
}

html:not([data-theme="dark"]) .app-sidebar {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--clean-line);
    box-shadow: var(--clean-shadow-sm);
}

html:not([data-theme="dark"]) .app-sidebar::before {
    background:
        linear-gradient(135deg, rgba(104, 112, 243, 0.94), rgba(186, 190, 255, 0.96));
    box-shadow: 0 14px 32px rgba(104, 112, 243, 0.2);
}

html:not([data-theme="dark"]) .sidebar-link {
    border-radius: 20px;
    color: #7b80a8;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

html:not([data-theme="dark"]) .sidebar-link-icon {
    background: rgba(247, 246, 255, 0.82);
    border-color: rgba(136, 140, 213, 0.18);
    color: #777ddc;
}

html:not([data-theme="dark"]) .sidebar-link:hover {
    transform: translateX(2px);
}

html:not([data-theme="dark"]) .sidebar-link.is-active,
html:not([data-theme="dark"]) .sidebar-link:hover {
    background: #f0efff;
    border-color: rgba(104, 112, 243, 0.22);
    color: var(--clean-primary-strong);
    box-shadow: none;
}

html:not([data-theme="dark"]) .sidebar-link.is-active .sidebar-link-icon,
html:not([data-theme="dark"]) .sidebar-link:hover .sidebar-link-icon {
    background: #ffffff;
    border-color: rgba(104, 112, 243, 0.28);
    color: var(--clean-primary);
}

html:not([data-theme="dark"]) .layout-page-container {
    max-width: 1880px;
    margin-inline: auto;
}

html:not([data-theme="dark"]) .cc-page-header,
html:not([data-theme="dark"]) .panel,
html:not([data-theme="dark"]) .overview-zone-kpi,
html:not([data-theme="dark"]) .overview-zone-sources,
html:not([data-theme="dark"]) .overview-work-card,
html:not([data-theme="dark"]) .overview-run-grid > .panel,
html:not([data-theme="dark"]) .table-wrap,
html:not([data-theme="dark"]) .history-table-block,
html:not([data-theme="dark"]) .history-table-wrap,
html:not([data-theme="dark"]) .admin-users-table-wrap,
html:not([data-theme="dark"]) .scan-table-wrap,
html:not([data-theme="dark"]) .product-competitors-table-wrap,
html:not([data-theme="dark"]) .products-table-section,
html:not([data-theme="dark"]) .competitor-analysis-panel,
html:not([data-theme="dark"]) .competitor-analysis-table-wrap,
html:not([data-theme="dark"]) .settings-page .table-wrap,
html:not([data-theme="dark"]) .auth-panel,
html:not([data-theme="dark"]) .landing-footer {
    border: 1px solid var(--clean-line);
    border-radius: var(--clean-radius-xl);
    background: var(--clean-surface);
    box-shadow: var(--clean-shadow-sm);
    backdrop-filter: saturate(130%) blur(16px);
    -webkit-backdrop-filter: saturate(130%) blur(16px);
}

html:not([data-theme="dark"]) .panel:hover,
html:not([data-theme="dark"]) .overview-zone-kpi:hover,
html:not([data-theme="dark"]) .overview-zone-sources:hover,
html:not([data-theme="dark"]) .overview-work-card:hover {
    border-color: rgba(136, 140, 213, 0.25);
}

html:not([data-theme="dark"]) .cc-page-header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 247, 255, 0.9));
}

html:not([data-theme="dark"]) .cc-page-title,
html:not([data-theme="dark"]) .landing-hero h1,
html:not([data-theme="dark"]) .panel h1,
html:not([data-theme="dark"]) .panel h2,
html:not([data-theme="dark"]) .panel h3,
html:not([data-theme="dark"]) .tariff-price,
html:not([data-theme="dark"]) .insight-value,
html:not([data-theme="dark"]) .overview-summary-stat strong {
    color: var(--clean-ink);
    text-wrap: balance;
}

html:not([data-theme="dark"]) .muted,
html:not([data-theme="dark"]) .small,
html:not([data-theme="dark"]) .tiny-note,
html:not([data-theme="dark"]) .cc-page-subtitle,
html:not([data-theme="dark"]) .insight-meta,
html:not([data-theme="dark"]) .landing-stat-note,
html:not([data-theme="dark"]) .tariff-note,
html:not([data-theme="dark"]) .overview-source-meta {
    color: var(--clean-muted);
}

html:not([data-theme="dark"]) .overview-summary-stat,
html:not([data-theme="dark"]) .overview-v386-shell .insight-card,
html:not([data-theme="dark"]) .overview-source-item,
html:not([data-theme="dark"]) .overview-status-list li,
html:not([data-theme="dark"]) .main-task-panel .source-preview-item,
html:not([data-theme="dark"]) .product-overview-aside-grid .insight-card,
html:not([data-theme="dark"]) .landing-stat,
html:not([data-theme="dark"]) .step-card,
html:not([data-theme="dark"]) .tariff-card,
html:not([data-theme="dark"]) .trust-card,
html:not([data-theme="dark"]) .review-card,
html:not([data-theme="dark"]) .faq-item,
html:not([data-theme="dark"]) .notification-card,
html:not([data-theme="dark"]) .cabinet-note-card,
html:not([data-theme="dark"]) .product-action-card,
html:not([data-theme="dark"]) .competitor-store-stats-card,
html:not([data-theme="dark"]) .competitor-top-product-row,
html:not([data-theme="dark"]) .competitor-analysis-period-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

html:not([data-theme="dark"]) .overview-summary-stat:hover,
html:not([data-theme="dark"]) .overview-v386-shell .insight-card:hover,
html:not([data-theme="dark"]) .overview-source-item:hover,
html:not([data-theme="dark"]) .step-card:hover,
html:not([data-theme="dark"]) .tariff-card:hover,
html:not([data-theme="dark"]) .review-card:hover,
html:not([data-theme="dark"]) .product-action-card:hover,
html:not([data-theme="dark"]) .competitor-top-product-row:hover {
    border-color: rgba(104, 112, 243, 0.26);
    box-shadow: 0 14px 34px rgba(66, 72, 143, 0.08);
    transform: translateY(-1px);
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat:nth-child(2),
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card-primary,
html:not([data-theme="dark"]) .insight-card-ok {
    border-color: rgba(104, 112, 243, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 255, 251, 0.78));
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat:nth-child(3),
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card-warning,
html:not([data-theme="dark"]) .insight-card-warning {
    border-color: rgba(235, 100, 96, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 247, 0.78));
}

html:not([data-theme="dark"]) .insight-card-critical,
html:not([data-theme="dark"]) .insight-card-expired {
    border-color: rgba(235, 100, 96, 0.26);
    background: rgba(255, 247, 247, 0.86);
}

html:not([data-theme="dark"]) .overview-summary-label,
html:not([data-theme="dark"]) .insight-label,
html:not([data-theme="dark"]) .overview-source-slot,
html:not([data-theme="dark"]) .landing-stat-label,
html:not([data-theme="dark"]) .scan-item-micro-label,
html:not([data-theme="dark"]) .product-detail-label,
html:not([data-theme="dark"]) .competitor-analysis-row-label {
    color: #858aae;
    font-weight: 800;
}

html:not([data-theme="dark"]) .btn,
html:not([data-theme="dark"]) button,
html:not([data-theme="dark"]) .scan-action-btn,
html:not([data-theme="dark"]) .filter-preset-btn,
html:not([data-theme="dark"]) .notification-action-btn,
html:not([data-theme="dark"]) .day-action-btn,
html:not([data-theme="dark"]) .role-action-btn,
html:not([data-theme="dark"]) .product-detail-tab-btn,
html:not([data-theme="dark"]) .captcha-refresh-btn {
    font-family: "Manrope", "Segoe UI", sans-serif;
}

html:not([data-theme="dark"]) .btn,
html:not([data-theme="dark"]) .scan-action-btn,
html:not([data-theme="dark"]) .filter-preset-btn,
html:not([data-theme="dark"]) .notification-action-btn,
html:not([data-theme="dark"]) .day-action-btn,
html:not([data-theme="dark"]) .role-action-btn,
html:not([data-theme="dark"]) .product-detail-tab-btn,
html:not([data-theme="dark"]) .captcha-refresh-btn,
html:not([data-theme="dark"]) button[type="submit"].btn {
    min-height: 44px;
    border: 1px solid rgba(136, 140, 213, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: var(--clean-primary-strong);
    box-shadow: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

html:not([data-theme="dark"]) .btn:hover,
html:not([data-theme="dark"]) .scan-action-btn:hover,
html:not([data-theme="dark"]) .filter-preset-btn:hover,
html:not([data-theme="dark"]) .notification-action-btn:hover,
html:not([data-theme="dark"]) .day-action-btn:hover,
html:not([data-theme="dark"]) .role-action-btn:hover,
html:not([data-theme="dark"]) .product-detail-tab-btn:hover,
html:not([data-theme="dark"]) .captcha-refresh-btn:hover {
    transform: translateY(-1px);
    border-color: var(--clean-line-strong);
    background: #f7f6ff;
    box-shadow: 0 10px 24px rgba(80, 86, 171, 0.1);
}

html:not([data-theme="dark"]) .btn:active,
html:not([data-theme="dark"]) .scan-action-btn:active,
html:not([data-theme="dark"]) .filter-preset-btn:active,
html:not([data-theme="dark"]) .notification-action-btn:active,
html:not([data-theme="dark"]) .day-action-btn:active,
html:not([data-theme="dark"]) .role-action-btn:active,
html:not([data-theme="dark"]) .product-detail-tab-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

html:not([data-theme="dark"]) .btn-primary,
html:not([data-theme="dark"]) button[type="submit"].btn-primary,
html:not([data-theme="dark"]) .filter-preset-btn.is-active,
html:not([data-theme="dark"]) .product-detail-tab-btn.is-active {
    border-color: rgba(83, 92, 226, 0.78);
    background: linear-gradient(135deg, var(--clean-primary), var(--clean-primary-strong));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(83, 92, 226, 0.22);
}

html:not([data-theme="dark"]) .btn-secondary {
    background: #f3f2ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .btn-danger-soft {
    border-color: rgba(235, 100, 96, 0.24);
    background: var(--clean-danger-soft);
    color: #d8524e;
}

html:not([data-theme="dark"]) .btn-warning-soft {
    border-color: rgba(195, 132, 50, 0.26);
    background: var(--clean-warning-soft);
    color: var(--clean-warning);
}

html:not([data-theme="dark"]) .btn:disabled,
html:not([data-theme="dark"]) .scan-action-btn:disabled,
html:not([data-theme="dark"]) button:disabled {
    opacity: 0.52;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

html:not([data-theme="dark"]) input[type="text"],
html:not([data-theme="dark"]) input[type="number"],
html:not([data-theme="dark"]) input[type="email"],
html:not([data-theme="dark"]) input[type="password"],
html:not([data-theme="dark"]) input[type="url"],
html:not([data-theme="dark"]) input[type="search"],
html:not([data-theme="dark"]) input[type="date"],
html:not([data-theme="dark"]) select,
html:not([data-theme="dark"]) textarea,
html:not([data-theme="dark"]) .custom-select-trigger,
html:not([data-theme="dark"]) .role-select {
    border: 1px solid rgba(136, 140, 213, 0.22);
    background: rgba(255, 255, 255, 0.86);
    color: var(--clean-ink-soft);
    box-shadow: none;
}

html:not([data-theme="dark"]) input::placeholder,
html:not([data-theme="dark"]) textarea::placeholder {
    color: rgba(125, 131, 169, 0.74);
}

html:not([data-theme="dark"]) input:focus,
html:not([data-theme="dark"]) select:focus,
html:not([data-theme="dark"]) textarea:focus,
html:not([data-theme="dark"]) .custom-select-trigger:focus-visible,
html:not([data-theme="dark"]) .role-select:focus-visible {
    background: #ffffff;
    border-color: var(--clean-line-strong);
    box-shadow: 0 0 0 4px rgba(104, 112, 243, 0.12);
}

html:not([data-theme="dark"]) label {
    color: #484e80;
    font-weight: 800;
}

html:not([data-theme="dark"]) .captcha-box,
html:not([data-theme="dark"]) .compact-disclosure,
html:not([data-theme="dark"]) .passkey-login-block,
html:not([data-theme="dark"]) .source-preview-list,
html:not([data-theme="dark"]) .scan-filter-panel,
html:not([data-theme="dark"]) .heavy-progress-card {
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-lg);
    background: rgba(248, 247, 255, 0.74);
}

html:not([data-theme="dark"]) .badge,
html:not([data-theme="dark"]) .kpi-delta,
html:not([data-theme="dark"]) .overview-source-status,
html:not([data-theme="dark"]) .notification-tag,
html:not([data-theme="dark"]) .status-chip,
html:not([data-theme="dark"]) .risk-chip,
html:not([data-theme="dark"]) .availability-chip,
html:not([data-theme="dark"]) .tariff-badge,
html:not([data-theme="dark"]) .scan-item-tag,
html:not([data-theme="dark"]) .products-item-tag {
    min-height: 28px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 999px;
    background: #f2f1ff;
    color: var(--clean-primary-strong);
    box-shadow: none;
    font-weight: 800;
}

html:not([data-theme="dark"]) .status-completed,
html:not([data-theme="dark"]) .status-running,
html:not([data-theme="dark"]) .kpi-delta-down,
html:not([data-theme="dark"]) .overview-source-status {
    border-color: rgba(104, 112, 243, 0.22);
    background: var(--clean-success-soft);
    color: #535ce2;
}

html:not([data-theme="dark"]) .status-failed,
html:not([data-theme="dark"]) .status-cancelled,
html:not([data-theme="dark"]) .risk-high,
html:not([data-theme="dark"]) .kpi-delta-up {
    border-color: rgba(235, 100, 96, 0.24);
    background: var(--clean-danger-soft);
    color: #d8524e;
}

html:not([data-theme="dark"]) .alert {
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: var(--clean-radius-md);
    box-shadow: none;
}

html:not([data-theme="dark"]) .alert.success {
    border-color: rgba(104, 112, 243, 0.24);
    background: var(--clean-success-soft);
    color: #535ce2;
}

html:not([data-theme="dark"]) .alert.error {
    border-color: rgba(235, 100, 96, 0.24);
    background: var(--clean-danger-soft);
    color: #ad3e3a;
}

html:not([data-theme="dark"]) .alert.warning {
    border-color: rgba(195, 132, 50, 0.26);
    background: var(--clean-warning-soft);
    color: #8e5e20;
}

html:not([data-theme="dark"]) .alert.info {
    background: var(--clean-primary-soft);
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .table-wrap,
html:not([data-theme="dark"]) .history-table-wrap,
html:not([data-theme="dark"]) .scan-table-wrap,
html:not([data-theme="dark"]) .product-competitors-table-wrap {
    background: rgba(255, 255, 255, 0.86);
}

html:not([data-theme="dark"]) th {
    background: #f1f0ff;
    color: #7379a3;
    font-weight: 900;
}

html:not([data-theme="dark"]) th,
html:not([data-theme="dark"]) td {
    border-bottom: 1px solid rgba(136, 140, 213, 0.13);
}

html:not([data-theme="dark"]) tbody tr:hover td {
    background: rgba(246, 245, 255, 0.78);
}

html:not([data-theme="dark"]) .scan-items-table tbody tr:nth-child(even) td,
html:not([data-theme="dark"]) .dashboard-scan-table tbody tr:nth-child(even) td,
html:not([data-theme="dark"]) .usage-table tbody tr:nth-child(even) td {
    background: rgba(250, 249, 255, 0.6);
}

html:not([data-theme="dark"]) .landing-page {
    display: grid;
    gap: clamp(18px, 2vw, 30px);
}

html:not([data-theme="dark"]) .landing-hero {
    padding: clamp(24px, 4vw, 64px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 246, 255, 0.88));
}

html:not([data-theme="dark"]) .landing-hero h1 {
    font-size: clamp(2.3rem, 1.2rem + 4vw, 5.3rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

html:not([data-theme="dark"]) .hero-actions {
    gap: 10px;
}

html:not([data-theme="dark"]) .tariff-card-recommended,
html:not([data-theme="dark"]) .tariff-card-accent {
    border-color: rgba(104, 112, 243, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 242, 255, 0.86));
}

html:not([data-theme="dark"]) .auth-wrap {
    min-height: calc(100vh - 130px);
    display: grid;
    place-items: center;
    padding: clamp(22px, 4vw, 56px) 0;
}

html:not([data-theme="dark"]) .auth-panel {
    width: min(520px, 100%);
    padding: clamp(22px, 3vw, 38px);
}

html:not([data-theme="dark"]) .auth-panel h1 {
    font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
    letter-spacing: -0.055em;
}

html:not([data-theme="dark"]) .back-link,
html:not([data-theme="dark"]) .auth-links a,
html:not([data-theme="dark"]) .footer-links a {
    color: var(--clean-primary-strong);
    font-weight: 800;
}

html:not([data-theme="dark"]) .settings-page,
html:not([data-theme="dark"]) .products-page,
html:not([data-theme="dark"]) .scan-detail-page,
html:not([data-theme="dark"]) .competitor-analysis-page {
    color: var(--clean-ink);
}

html:not([data-theme="dark"]) .custom-select-menu,
html:not([data-theme="dark"]) .scan-actions-menu,
html:not([data-theme="dark"]) .confirm-modal-panel,
html:not([data-theme="dark"]) .modal-panel {
    border: 1px solid var(--clean-line);
    border-radius: var(--clean-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--clean-shadow);
}

html:not([data-theme="dark"]) .custom-select-option:hover,
html:not([data-theme="dark"]) .custom-select-option:focus-visible,
html:not([data-theme="dark"]) .custom-select-option.is-selected {
    background: #f1f0ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .product-detail-tab-btn {
    background: #ffffff;
}

html:not([data-theme="dark"]) .progress-bar,
html:not([data-theme="dark"]) .progress-fill,
html:not([data-theme="dark"]) [data-field="progress-bar"] {
    background: linear-gradient(90deg, var(--clean-primary), #8d92ff);
}

@media (max-width: 1024px) {
    html:not([data-theme="dark"]) .cc-page-header,
    html:not([data-theme="dark"]) .panel,
    html:not([data-theme="dark"]) .overview-zone-kpi,
    html:not([data-theme="dark"]) .overview-zone-sources,
    html:not([data-theme="dark"]) .overview-work-card,
    html:not([data-theme="dark"]) .overview-run-grid > .panel {
        border-radius: 26px;
    }

    html:not([data-theme="dark"]) .overview-summary-v1387-grid,
    html:not([data-theme="dark"]) .overview-kpi-grid,
    html:not([data-theme="dark"]) .overview-source-list,
    html:not([data-theme="dark"]) .landing-steps,
    html:not([data-theme="dark"]) .tariff-grid,
    html:not([data-theme="dark"]) .review-grid {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    html:not([data-theme="dark"]) .layout-page-container {
        gap: 12px;
    }

    html:not([data-theme="dark"]) .cc-page-header,
    html:not([data-theme="dark"]) .panel,
    html:not([data-theme="dark"]) .overview-zone-kpi,
    html:not([data-theme="dark"]) .overview-zone-sources,
    html:not([data-theme="dark"]) .overview-work-card,
    html:not([data-theme="dark"]) .overview-run-grid > .panel,
    html:not([data-theme="dark"]) .auth-panel,
    html:not([data-theme="dark"]) .landing-footer {
        border-radius: 22px;
    }

    html:not([data-theme="dark"]) .overview-summary-stat,
    html:not([data-theme="dark"]) .overview-v386-shell .insight-card,
    html:not([data-theme="dark"]) .overview-source-item,
    html:not([data-theme="dark"]) .step-card,
    html:not([data-theme="dark"]) .tariff-card,
    html:not([data-theme="dark"]) .review-card,
    html:not([data-theme="dark"]) .faq-item {
        border-radius: 18px;
    }

    html:not([data-theme="dark"]) .btn,
    html:not([data-theme="dark"]) .scan-action-btn,
    html:not([data-theme="dark"]) .filter-preset-btn,
    html:not([data-theme="dark"]) .notification-action-btn,
    html:not([data-theme="dark"]) .day-action-btn,
    html:not([data-theme="dark"]) .role-action-btn,
    html:not([data-theme="dark"]) .product-detail-tab-btn {
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:not([data-theme="dark"]) *,
    html:not([data-theme="dark"]) *::before,
    html:not([data-theme="dark"]) *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* v1.42.2 - Dashboard density and semantic color cleanup */
html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat,
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card {
    min-height: 112px;
}

html:not([data-theme="dark"]) .overview-kpi-grid .insight-card-primary {
    border-color: rgba(104, 112, 243, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 245, 255, 0.82));
}

html:not([data-theme="dark"]) .overview-kpi-grid .insight-card-primary .insight-label {
    color: #6d72a5;
}

html:not([data-theme="dark"]) .overview-kpi-grid .insight-card-primary .kpi-delta {
    border-color: rgba(104, 112, 243, 0.18);
    background: #f2f1ff;
    color: var(--clean-primary-strong);
}

@media (min-width: 621px) and (max-width: 768px) {
    html:not([data-theme="dark"]) .overview-summary-v1387-grid,
    html:not([data-theme="dark"]) .overview-kpi-grid,
    html:not([data-theme="dark"]) .overview-source-list,
    html:not([data-theme="dark"]) .overview-stats-grid,
    html:not([data-theme="dark"]) .overview-opportunity-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html:not([data-theme="dark"]) .overview-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    html:not([data-theme="dark"]) .overview-summary-v1387-grid,
    html:not([data-theme="dark"]) .overview-kpi-grid,
    html:not([data-theme="dark"]) .overview-source-list,
    html:not([data-theme="dark"]) .overview-stats-grid,
    html:not([data-theme="dark"]) .overview-opportunity-cards {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat,
    html:not([data-theme="dark"]) .overview-kpi-grid .insight-card {
        min-height: 104px;
    }
}

/* v1.42.3 - Override legacy important button paint */
html:not([data-theme="dark"]) .btn,
html:not([data-theme="dark"]) .btn-action,
html:not([data-theme="dark"]) .btn-accent,
html:not([data-theme="dark"]) .btn-accent-soft,
html:not([data-theme="dark"]) .scan-action-btn,
html:not([data-theme="dark"]) .filter-preset-btn,
html:not([data-theme="dark"]) .notification-action-btn,
html:not([data-theme="dark"]) .day-action-btn,
html:not([data-theme="dark"]) .role-action-btn,
html:not([data-theme="dark"]) .product-detail-tab-btn,
html:not([data-theme="dark"]) button[type="submit"].btn {
    border-color: rgba(136, 140, 213, 0.22) !important;
    background: #ffffff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .btn:hover,
html:not([data-theme="dark"]) .btn-action:hover,
html:not([data-theme="dark"]) .btn-accent:hover,
html:not([data-theme="dark"]) .btn-accent-soft:hover,
html:not([data-theme="dark"]) .scan-action-btn:hover,
html:not([data-theme="dark"]) .filter-preset-btn:hover,
html:not([data-theme="dark"]) .notification-action-btn:hover,
html:not([data-theme="dark"]) .day-action-btn:hover,
html:not([data-theme="dark"]) .role-action-btn:hover,
html:not([data-theme="dark"]) .product-detail-tab-btn:hover,
html:not([data-theme="dark"]) button[type="submit"].btn:hover {
    border-color: var(--clean-line-strong) !important;
    background: #f7f6ff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: 0 10px 24px rgba(80, 86, 171, 0.1) !important;
}

html:not([data-theme="dark"]) .btn-primary,
html:not([data-theme="dark"]) button[type="submit"].btn-primary,
html:not([data-theme="dark"]) .filter-preset-btn.is-active,
html:not([data-theme="dark"]) .product-detail-tab-btn.is-active {
    border-color: rgba(83, 92, 226, 0.78) !important;
    background: linear-gradient(135deg, var(--clean-primary), var(--clean-primary-strong)) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(83, 92, 226, 0.22) !important;
}

html:not([data-theme="dark"]) .btn-secondary,
html:not([data-theme="dark"]) button[type="submit"].btn-secondary {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background: #f3f2ff !important;
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .btn-danger-soft {
    border-color: rgba(235, 100, 96, 0.24) !important;
    background: var(--clean-danger-soft) !important;
    color: #d8524e !important;
}

html:not([data-theme="dark"]) .btn-warning-soft {
    border-color: rgba(195, 132, 50, 0.26) !important;
    background: var(--clean-warning-soft) !important;
    color: var(--clean-warning) !important;
}

/* v1.42.4 - Unified adaptive scan/detail operations */
html:not([data-theme="dark"]) .scan-filter-form {
    display: grid;
    gap: 14px;
}

html:not([data-theme="dark"]) .scan-filter-top-row,
html:not([data-theme="dark"]) .scan-filter-search-row,
html:not([data-theme="dark"]) .scan-filter-controls-row,
html:not([data-theme="dark"]) .scan-filter-form > .scan-filter-flags {
    width: 100%;
}

html:not([data-theme="dark"]) .scan-filter-top-row {
    align-items: flex-start;
    gap: 12px;
}

html:not([data-theme="dark"]) .scan-filter-top-row .scan-filter-presets,
html:not([data-theme="dark"]) .scan-filter-top-row .scan-filter-actions,
html:not([data-theme="dark"]) .scan-filter-actions,
html:not([data-theme="dark"]) .scan-pagination-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html:not([data-theme="dark"]) .scan-filter-top-row .scan-filter-presets {
    min-width: min(100%, 320px);
}

html:not([data-theme="dark"]) .filter-preset-btn,
html:not([data-theme="dark"]) .scan-filter-actions .btn,
html:not([data-theme="dark"]) .scan-pagination .btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px !important;
    border-color: rgba(136, 140, 213, 0.22) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .filter-preset-btn.is-active,
html:not([data-theme="dark"]) .filter-preset-btn[aria-pressed="true"] {
    border-color: rgba(83, 92, 226, 0.78) !important;
    background: linear-gradient(135deg, var(--clean-primary), var(--clean-primary-strong)) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(83, 92, 226, 0.18) !important;
}

html:not([data-theme="dark"]) .scan-filter-search-row {
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 10px;
}

html:not([data-theme="dark"]) .scan-filter-search-row .scan-filter-search,
html:not([data-theme="dark"]) .scan-filter-control select,
html:not([data-theme="dark"]) .scan-filter-control input {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 48px;
    height: 48px !important;
    border-radius: 999px;
    border-color: rgba(136, 140, 213, 0.22) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--clean-ink-soft);
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .scan-filter-search-row .scan-filter-search {
    padding-inline: 18px;
}

html:not([data-theme="dark"]) .scan-filter-search-row .btn {
    min-width: 144px;
    min-height: 48px;
}

html:not([data-theme="dark"]) .scan-filter-controls-row {
    grid-template-columns:
        minmax(120px, 0.38fr)
        minmax(230px, 0.84fr)
        minmax(170px, 0.58fr)
        minmax(220px, 0.72fr);
    gap: 12px;
    align-items: end;
}

html:not([data-theme="dark"]) .scan-filter-control {
    gap: 7px;
    min-width: 0;
}

html:not([data-theme="dark"]) .scan-filter-control > span {
    padding-inline: 4px;
    color: #7d83a9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

html:not([data-theme="dark"]) .scan-filter-form > .scan-filter-flags {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 246, 255, 0.78));
}

html:not([data-theme="dark"]) .checkbox-label,
html:not([data-theme="dark"]) .scan-filter-form > .scan-filter-flags .checkbox-label {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: #4d5488;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.25;
}

html:not([data-theme="dark"]) .checkbox-label:has(input:checked) {
    border-color: rgba(83, 92, 226, 0.42);
    background: #f2f1ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .checkbox-label input[type="checkbox"] {
    inline-size: 20px;
    block-size: 20px;
    flex: 0 0 auto;
    accent-color: var(--clean-primary);
}

html:not([data-theme="dark"]) .scan-filter-hint,
html:not([data-theme="dark"]) .scan-pagination-meta {
    margin: 0;
    color: #858aae;
    font-size: 0.88rem;
    font-weight: 750;
}

html:not([data-theme="dark"]) .scan-rows-list {
    gap: 12px;
}

html:not([data-theme="dark"]) .scan-rows-head,
html:not([data-theme="dark"]) .scan-item-summary {
    grid-template-columns:
        34px
        minmax(300px, 1.52fr)
        minmax(90px, 0.42fr)
        minmax(104px, 0.48fr)
        minmax(148px, 0.64fr)
        minmax(122px, 0.52fr);
}

html:not([data-theme="dark"]) .scan-rows-head {
    gap: 12px;
    padding: 0 18px 0 16px;
    color: #858aae;
    font-size: 0.72rem;
    letter-spacing: 0.035em;
}

html:not([data-theme="dark"]) .scan-item-row {
    position: relative;
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(66, 72, 143, 0.07);
    overflow: hidden;
}

html:not([data-theme="dark"]) .scan-item-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: transparent;
    opacity: 0.86;
}

html:not([data-theme="dark"]) .scan-item-row.is-crossed {
    border-color: rgba(104, 112, 243, 0.28);
}

html:not([data-theme="dark"]) .scan-item-row.is-crossed::before {
    background: linear-gradient(180deg, var(--clean-primary), #9ca1ff);
}

html:not([data-theme="dark"]) .scan-item-row.is-out-stock {
    border-color: rgba(235, 100, 96, 0.24);
}

html:not([data-theme="dark"]) .scan-item-row.is-out-stock::before {
    background: linear-gradient(180deg, #ff8b87, var(--clean-danger));
}

html:not([data-theme="dark"]) .scan-item-summary {
    gap: 12px;
    padding: 16px 18px 16px 16px;
    transition: background-color 0.16s ease;
}

html:not([data-theme="dark"]) .scan-item-row[open] .scan-item-summary {
    background: linear-gradient(135deg, rgba(245, 244, 255, 0.9), rgba(255, 255, 255, 0.82));
    border-bottom: 1px solid rgba(136, 140, 213, 0.16) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .scan-item-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(136, 140, 213, 0.22);
    background: #f5f4ff;
    box-shadow: none;
}

html:not([data-theme="dark"]) .scan-item-toggle::before {
    top: 9px;
    left: 10px;
    width: 7px;
    height: 7px;
    border-color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .scan-item-row[open] .scan-item-toggle {
    border-color: rgba(83, 92, 226, 0.36);
    background: #ffffff;
}

html:not([data-theme="dark"]) .scan-item-row[open] .scan-item-toggle::before {
    top: 11px;
}

html:not([data-theme="dark"]) .scan-item-ident {
    gap: 6px 10px;
    color: #8990ad;
    font-size: 0.75rem;
}

html:not([data-theme="dark"]) .scan-item-summary .item-title {
    color: var(--clean-ink-soft);
    font-size: 0.96rem;
    font-weight: 760;
    letter-spacing: -0.025em;
}

html:not([data-theme="dark"]) .scan-item-col {
    gap: 4px;
    min-width: 0;
}

html:not([data-theme="dark"]) .scan-item-col-label,
html:not([data-theme="dark"]) .scan-item-kpi-label {
    color: #858aae;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

html:not([data-theme="dark"]) .scan-item-col strong,
html:not([data-theme="dark"]) .scan-item-kpi-value {
    color: #203052;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

html:not([data-theme="dark"]) .status-chip,
html:not([data-theme="dark"]) .scan-item-kpi-chip,
html:not([data-theme="dark"]) .item-meta-chip,
html:not([data-theme="dark"]) .availability-chip,
html:not([data-theme="dark"]) .risk-chip {
    min-height: 28px;
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(136, 140, 213, 0.2);
    background: #f2f1ff;
    color: var(--clean-primary-strong);
    box-shadow: none;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.15;
}

html:not([data-theme="dark"]) .status-crossed,
html:not([data-theme="dark"]) .status-ok,
html:not([data-theme="dark"]) .scan-item-kpi-chip.tone-neutral {
    border-color: rgba(104, 112, 243, 0.22);
    background: #f2f1ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .status-warning,
html:not([data-theme="dark"]) .scan-item-kpi-chip.tone-warn {
    border-color: rgba(136, 140, 213, 0.2);
    background: #f7f6ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .status-failed,
html:not([data-theme="dark"]) .scan-item-kpi-chip.tone-danger {
    border-color: rgba(136, 140, 213, 0.2);
    background: #f7f6ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .scan-item-kpi-chip.tone-good {
    border-color: rgba(136, 140, 213, 0.2);
    background: #f7f6ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .scan-item-kpi-chip {
    --chip-dot: var(--clean-primary);
}

html:not([data-theme="dark"]) .scan-item-kpi-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: var(--chip-dot);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.09);
}

html:not([data-theme="dark"]) .scan-item-kpi-chip.tone-good {
    --chip-dot: var(--clean-success);
}

html:not([data-theme="dark"]) .scan-item-kpi-chip.tone-warn {
    --chip-dot: var(--clean-warning);
}

html:not([data-theme="dark"]) .scan-item-kpi-chip.tone-danger {
    --chip-dot: var(--clean-danger);
}

html:not([data-theme="dark"]) .scan-item-body {
    gap: 14px;
    padding: 16px 18px 18px;
    border-top: 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 250, 255, 0.9));
}

html:not([data-theme="dark"]) .scan-item-summary:focus,
html:not([data-theme="dark"]) .scan-item-summary:focus-visible {
    outline: 3px solid rgba(104, 112, 243, 0.14);
    outline-offset: -3px;
}

html:not([data-theme="dark"]) .source-url-disclosure.compact-disclosure,
html:not([data-theme="dark"]) .source-url,
html:not([data-theme="dark"]) .source-url-hidden {
    border-color: rgba(136, 140, 213, 0.18) !important;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #4d5488 !important;
}

html:not([data-theme="dark"]) .source-url-disclosure.compact-disclosure > summary {
    color: var(--clean-primary-strong) !important;
    font-weight: 900;
    text-decoration-color: rgba(83, 92, 226, 0.28);
}

html:not([data-theme="dark"]) .scan-item-body-head {
    align-items: center;
    gap: 12px;
}

html:not([data-theme="dark"]) .scan-item-body-tags {
    gap: 8px;
}

html:not([data-theme="dark"]) .scan-item-body-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(136, 140, 213, 0.14);
    border-radius: 999px;
    background: rgba(245, 244, 255, 0.82);
    box-shadow: none;
}

html:not([data-theme="dark"]) .scan-item-body-links .action-pill,
html:not([data-theme="dark"]) .products-item-body-links .action-pill,
html:not([data-theme="dark"]) .action-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(136, 140, 213, 0.2);
    background: #ffffff;
    color: var(--clean-primary-strong);
    box-shadow: none;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

html:not([data-theme="dark"]) .scan-item-body-links .action-pill-info-primary,
html:not([data-theme="dark"]) .products-item-body-links .action-pill-info-primary,
html:not([data-theme="dark"]) .action-pill-info-primary {
    border-color: rgba(83, 92, 226, 0.72);
    background: linear-gradient(135deg, var(--clean-primary), var(--clean-primary-strong));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(83, 92, 226, 0.18);
}

html:not([data-theme="dark"]) .scan-item-body-links .action-pill:not(.action-pill-info-primary):hover,
html:not([data-theme="dark"]) .products-item-body-links .action-pill:not(.action-pill-info-primary):hover,
html:not([data-theme="dark"]) .action-pill:not(.action-pill-info-primary):hover {
    border-color: rgba(107, 113, 238, 0.34);
    background: #f8f7ff;
    color: var(--clean-primary-strong);
    transform: translateY(-1px);
}

html:not([data-theme="dark"]) .scan-item-body-links .action-pill-info-primary:hover,
html:not([data-theme="dark"]) .products-item-body-links .action-pill-info-primary:hover,
html:not([data-theme="dark"]) .action-pill-info-primary:hover {
    background: linear-gradient(135deg, #737aff, var(--clean-primary-strong));
    color: #ffffff;
    transform: translateY(-1px);
}

html:not([data-theme="dark"]) .action-pill-disabled,
html:not([data-theme="dark"]) .action-pill-info-primary.action-pill-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

html:not([data-theme="dark"]) .action-pill .inline-icon,
html:not([data-theme="dark"]) .inline-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

html:not([data-theme="dark"]) .scan-item-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

html:not([data-theme="dark"]) .scan-item-kpi-card {
    min-width: 0;
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

html:not([data-theme="dark"]) .scan-pagination {
    margin-top: 4px;
    padding: 12px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
}

html:not([data-theme="dark"]) .scan-table-wrap {
    border-color: rgba(136, 140, 213, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
}

html:not([data-theme="dark"]) .scan-table-wrap::-webkit-scrollbar-track {
    background: #f2f1ff;
}

html:not([data-theme="dark"]) .scan-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(104, 112, 243, 0.36);
}

html:not([data-theme="dark"]) .scan-items-table thead th {
    background: #f2f1ff;
    color: #858aae;
}

@media (max-width: 1360px) {
    html:not([data-theme="dark"]) .scan-rows-head,
    html:not([data-theme="dark"]) .scan-item-summary {
        grid-template-columns:
            34px
            minmax(270px, 1.45fr)
            minmax(82px, 0.42fr)
            minmax(96px, 0.46fr)
            minmax(132px, 0.62fr)
            minmax(112px, 0.56fr);
    }
}

@media (max-width: 1180px) {
    html:not([data-theme="dark"]) .scan-filter-controls-row,
    html:not([data-theme="dark"]) .scan-filter-form > .scan-filter-flags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html:not([data-theme="dark"]) .scan-rows-head {
        display: none;
    }

    html:not([data-theme="dark"]) .scan-item-summary {
        grid-template-columns: 34px minmax(0, 1fr) repeat(2, minmax(120px, 0.38fr));
        align-items: stretch;
    }

    html:not([data-theme="dark"]) .scan-item-main {
        grid-column: 2 / -1;
    }

    html:not([data-theme="dark"]) .scan-item-col {
        padding: 10px 12px;
        border: 1px solid rgba(136, 140, 213, 0.14);
        border-radius: 16px;
        background: rgba(250, 249, 255, 0.74);
    }

    html:not([data-theme="dark"]) .scan-item-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    html:not([data-theme="dark"]) .scan-filter-top-row,
    html:not([data-theme="dark"]) .scan-filter-search-row,
    html:not([data-theme="dark"]) .scan-filter-controls-row,
    html:not([data-theme="dark"]) .scan-filter-form > .scan-filter-flags {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .scan-filter-top-row .scan-filter-presets,
    html:not([data-theme="dark"]) .scan-filter-top-row .scan-filter-actions,
    html:not([data-theme="dark"]) .scan-filter-actions,
    html:not([data-theme="dark"]) .scan-pagination-actions {
        width: 100%;
    }

    html:not([data-theme="dark"]) .filter-preset-btn,
    html:not([data-theme="dark"]) .scan-filter-actions .btn,
    html:not([data-theme="dark"]) .scan-filter-search-row .btn,
    html:not([data-theme="dark"]) .scan-pagination .btn {
        width: 100%;
        min-width: 0;
    }

    html:not([data-theme="dark"]) .scan-item-summary {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 14px;
    }

    html:not([data-theme="dark"]) .scan-item-main {
        grid-column: 2 / -1;
    }

    html:not([data-theme="dark"]) .scan-item-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(118px, 0.7fr) minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    html:not([data-theme="dark"]) .scan-item-body {
        padding: 14px;
    }

    html:not([data-theme="dark"]) .scan-item-body-head {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .scan-item-body-links {
        width: 100%;
        justify-content: stretch;
        border-radius: 18px;
    }

    html:not([data-theme="dark"]) .scan-item-body-links .action-pill {
        flex: 1 1 132px;
    }

    html:not([data-theme="dark"]) .scan-item-kpi-grid {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .scan-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    html:not([data-theme="dark"]) .scan-filter-form > .scan-filter-flags {
        padding: 10px;
        border-radius: 20px;
    }

    html:not([data-theme="dark"]) .checkbox-label,
    html:not([data-theme="dark"]) .scan-filter-form > .scan-filter-flags .checkbox-label {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 0.86rem;
    }

    html:not([data-theme="dark"]) .scan-item-row {
        border-radius: 20px;
    }

    html:not([data-theme="dark"]) .scan-item-col {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .scan-item-body-links {
        padding: 6px;
    }

    html:not([data-theme="dark"]) .scan-item-body-links .action-pill {
        flex-basis: 100%;
        width: 100%;
    }
}

/* v1.42.5 - Shared legacy chip/icon cleanup */
html:not([data-theme="dark"]) {
    --accent: var(--clean-primary);
    --accent-soft: var(--clean-primary-soft);
    --accent-strong: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .product-detail-meta-chip,
html:not([data-theme="dark"]) .product-competitor-flag,
html:not([data-theme="dark"]) .product-stock-chip,
html:not([data-theme="dark"]) .product-competitor-category-chip,
html:not([data-theme="dark"]) .product-competitor-accordion-title,
html:not([data-theme="dark"]) .cc-collapsible__trigger,
html:not([data-theme="dark"]) .source-preview-url,
html:not([data-theme="dark"]) .source-url-hidden {
    border: 1px solid rgba(136, 140, 213, 0.2) !important;
    border-radius: 999px;
    background: #f7f6ff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
    font-weight: 900;
}

html:not([data-theme="dark"]) .product-competitor-flag,
html:not([data-theme="dark"]) .product-stock-chip {
    --chip-dot: var(--clean-primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

html:not([data-theme="dark"]) .product-competitor-flag::before,
html:not([data-theme="dark"]) .product-stock-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: var(--chip-dot);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.08);
}

html:not([data-theme="dark"]) .product-competitor-flag.flag-own,
html:not([data-theme="dark"]) .product-stock-chip.stock-in {
    --chip-dot: var(--clean-success);
}

html:not([data-theme="dark"]) .product-competitor-flag.flag-leader {
    --chip-dot: var(--clean-warning);
}

html:not([data-theme="dark"]) .product-stock-chip.stock-out {
    --chip-dot: var(--clean-danger);
}

html:not([data-theme="dark"]) .product-competitor-row.is-own td:first-child {
    box-shadow: inset 3px 0 0 rgba(104, 112, 243, 0.34) !important;
}

html:not([data-theme="dark"]) .product-competitor-row.is-leader td:first-child {
    box-shadow: inset 3px 0 0 rgba(195, 132, 50, 0.28) !important;
}

html:not([data-theme="dark"]) .product-competitor-row.is-own.is-leader td:first-child {
    box-shadow:
        inset 3px 0 0 rgba(104, 112, 243, 0.34),
        inset 6px 0 0 rgba(195, 132, 50, 0.24) !important;
}

html:not([data-theme="dark"]) .product-competitor-accordion {
    border-color: rgba(136, 140, 213, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

html:not([data-theme="dark"]) .product-competitor-accordion[open] {
    background: rgba(250, 249, 255, 0.88);
}

html:not([data-theme="dark"]) .product-competitor-accordion-summary::after,
html:not([data-theme="dark"]) .cc-collapsible__chevron {
    border-color: var(--clean-primary-strong) !important;
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .cc-collapsible__inner {
    border-color: rgba(136, 140, 213, 0.16);
    border-radius: 16px;
    background: rgba(250, 249, 255, 0.76);
}

/* v1.42.6 - Products and competitor pages cohesion */
html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-row,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    width: 100%;
}

html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr);
    align-items: center;
}

html:not([data-theme="dark"]) .products-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

html:not([data-theme="dark"]) .products-field > span,
html:not([data-theme="dark"]) .scan-per-page-label {
    padding-inline: 4px;
    color: #7d83a9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

html:not([data-theme="dark"]) .products-filter-form select,
html:not([data-theme="dark"]) .products-filter-form input {
    min-height: 48px;
    height: 48px !important;
    border-radius: 999px;
}

html:not([data-theme="dark"]) .products-filter-form .scan-filter-flags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 24px;
    background: rgba(247, 246, 255, 0.72);
}

html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions select,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions .btn {
    flex: 1 1 132px;
}

html:not([data-theme="dark"]) .products-rows-list,
html:not([data-theme="dark"]) .competitor-analysis-sellers-list {
    gap: 12px;
}

html:not([data-theme="dark"]) .products-rows-head,
html:not([data-theme="dark"]) .products-item-summary {
    grid-template-columns:
        34px
        minmax(300px, 1.52fr)
        minmax(90px, 0.42fr)
        minmax(104px, 0.48fr)
        minmax(148px, 0.64fr)
        minmax(122px, 0.52fr);
}

html:not([data-theme="dark"]) .products-rows-head,
html:not([data-theme="dark"]) .competitor-analysis-sellers-head {
    gap: 12px;
    padding: 0 18px 0 16px;
    color: #858aae;
    font-size: 0.72rem;
    letter-spacing: 0.035em;
}

html:not([data-theme="dark"]) .products-item-row,
html:not([data-theme="dark"]) .competitor-analysis-seller-row {
    position: relative;
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(66, 72, 143, 0.07);
    overflow: hidden;
}

html:not([data-theme="dark"]) .products-item-row.is-crossed,
html:not([data-theme="dark"]) .competitor-analysis-seller-row.is-own,
html:not([data-theme="dark"]) .competitor-analysis-seller-row.is-leader {
    border-color: rgba(104, 112, 243, 0.28);
    box-shadow: 0 16px 38px rgba(66, 72, 143, 0.07);
}

html:not([data-theme="dark"]) .products-item-summary,
html:not([data-theme="dark"]) .competitor-analysis-seller-summary {
    gap: 12px;
    padding: 16px 18px 16px 16px;
}

html:not([data-theme="dark"]) .products-item-row[open] .products-item-summary,
html:not([data-theme="dark"]) .competitor-analysis-seller-row[open] .competitor-analysis-seller-summary {
    background: linear-gradient(135deg, rgba(245, 244, 255, 0.9), rgba(255, 255, 255, 0.82)) !important;
    border-bottom: 1px solid rgba(136, 140, 213, 0.16) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .products-item-toggle,
html:not([data-theme="dark"]) .competitor-analysis-row-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(136, 140, 213, 0.22);
    background: #f5f4ff;
    box-shadow: none;
}

html:not([data-theme="dark"]) .products-item-toggle::before,
html:not([data-theme="dark"]) .competitor-analysis-row-toggle::before {
    width: 7px;
    height: 7px;
    border-right-color: var(--clean-primary-strong) !important;
    border-bottom-color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .products-item-ident,
html:not([data-theme="dark"]) .competitor-analysis-row-label,
html:not([data-theme="dark"]) .products-item-col-label,
html:not([data-theme="dark"]) .products-item-kpi-label {
    color: #858aae;
}

html:not([data-theme="dark"]) .products-item-main .item-title,
html:not([data-theme="dark"]) .competitor-analysis-row-col,
html:not([data-theme="dark"]) .competitor-analysis-row-col strong,
html:not([data-theme="dark"]) .products-item-col strong,
html:not([data-theme="dark"]) .products-item-kpi-value {
    color: #203052;
}

html:not([data-theme="dark"]) .products-item-body,
html:not([data-theme="dark"]) .competitor-analysis-seller-body {
    border-top: 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 250, 255, 0.9));
}

html:not([data-theme="dark"]) .products-item-body {
    gap: 14px;
    padding: 16px 18px 18px;
}

html:not([data-theme="dark"]) .products-item-body-head {
    gap: 12px;
}

html:not([data-theme="dark"]) .products-item-body-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(136, 140, 213, 0.14);
    border-radius: 999px;
    background: rgba(245, 244, 255, 0.82);
    box-shadow: none;
}

html:not([data-theme="dark"]) .products-item-kpi-grid {
    gap: 10px;
}

html:not([data-theme="dark"]) .products-item-kpi-card,
html:not([data-theme="dark"]) .competitor-store-stats-card,
html:not([data-theme="dark"]) .competitor-sales-chart-card,
html:not([data-theme="dark"]) .competitor-analysis-periods,
html:not([data-theme="dark"]) .competitor-analysis-period-card,
html:not([data-theme="dark"]) .competitor-store-stats-grid span,
html:not([data-theme="dark"]) .competitor-top-product-row {
    border-color: rgba(136, 140, 213, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

html:not([data-theme="dark"]) .products-item-kpi-card {
    min-height: 82px;
    align-content: center;
    padding: 14px;
}

html:not([data-theme="dark"]) .products-item-kpi-chip,
html:not([data-theme="dark"]) .model-analysis-status-chip,
html:not([data-theme="dark"]) .model-analysis-completeness,
html:not([data-theme="dark"]) .model-analysis-quality,
html:not([data-theme="dark"]) .model-analysis-status-option,
html:not([data-theme="dark"]) .product-competitor-period-badge {
    --chip-dot: var(--clean-primary);
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    padding: 4px 12px;
    border: 1px solid rgba(136, 140, 213, 0.2) !important;
    border-radius: 999px;
    background: #f7f6ff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
    font-weight: 900;
    line-height: 1.15;
}

html:not([data-theme="dark"]) .products-item-kpi-chip::before,
html:not([data-theme="dark"]) .model-analysis-status-chip::before,
html:not([data-theme="dark"]) .model-analysis-completeness::before,
html:not([data-theme="dark"]) .model-analysis-quality::before,
html:not([data-theme="dark"]) .model-analysis-status-option::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: var(--chip-dot);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.08);
}

html:not([data-theme="dark"]) .products-item-kpi-chip.tone-good,
html:not([data-theme="dark"]) .model-analysis-status-chip.status-model_found,
html:not([data-theme="dark"]) .model-analysis-completeness.quality-exact,
html:not([data-theme="dark"]) .model-analysis-quality.quality-exact {
    --chip-dot: var(--clean-success);
}

html:not([data-theme="dark"]) .products-item-kpi-chip.tone-warn,
html:not([data-theme="dark"]) .model-analysis-completeness.quality-partial,
html:not([data-theme="dark"]) .model-analysis-quality.quality-partial {
    --chip-dot: var(--clean-warning);
}

html:not([data-theme="dark"]) .products-item-kpi-chip.tone-danger,
html:not([data-theme="dark"]) .model-analysis-status-chip.status-model_not_found,
html:not([data-theme="dark"]) .model-analysis-status-chip.status-wrong_model_suspected {
    --chip-dot: var(--clean-danger);
}

html:not([data-theme="dark"]) .competitor-top-product-row:hover {
    border-color: rgba(107, 113, 238, 0.28);
    background: #f8f7ff;
}

html:not([data-theme="dark"]) .competitor-top-product-rank,
html:not([data-theme="dark"]) .competitor-category-line-rank {
    border: 1px solid rgba(136, 140, 213, 0.2);
    background: #f2f1ff;
    color: var(--clean-primary-strong);
}

html:not([data-theme="dark"]) .competitor-top-product-action,
html:not([data-theme="dark"]) .competitor-top-product-row strong,
html:not([data-theme="dark"]) .table-link,
html:not([data-theme="dark"]) .product-detail-meta-link,
html:not([data-theme="dark"]) .back-link {
    color: var(--clean-primary-strong) !important;
    font-weight: 900;
}

html:not([data-theme="dark"]) .competitor-analysis-form {
    grid-template-columns: minmax(240px, 1.35fr) minmax(220px, 0.72fr) auto;
    gap: 12px;
    align-items: end;
}

html:not([data-theme="dark"]) .competitor-analysis-field {
    gap: 7px;
}

html:not([data-theme="dark"]) .competitor-analysis-field > span,
html:not([data-theme="dark"]) .competitor-shop-eyebrow,
html:not([data-theme="dark"]) .heavy-progress-eyebrow {
    color: #7d83a9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

html:not([data-theme="dark"]) .competitor-analysis-history {
    border-top-color: rgba(136, 140, 213, 0.16);
}

html:not([data-theme="dark"]) .competitor-analysis-history-item {
    border-color: rgba(136, 140, 213, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

html:not([data-theme="dark"]) .competitor-analysis-history-item.is-active {
    border-color: rgba(104, 112, 243, 0.28);
    background: #f8f7ff;
    box-shadow: none;
}

html:not([data-theme="dark"]) .competitor-analysis-history-item.position-history-card {
    border-color: rgba(104, 112, 243, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.94));
    box-shadow: 0 16px 34px rgba(31, 45, 96, 0.08);
}

html:not([data-theme="dark"]) .competitor-analysis-history-item.position-history-card.is-active {
    border-color: rgba(83, 92, 226, 0.42);
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow: 0 18px 40px rgba(83, 92, 226, 0.12);
}

html:not([data-theme="dark"]) .competitor-analysis-history-main strong,
html:not([data-theme="dark"]) .competitor-shop-title h2,
html:not([data-theme="dark"]) .competitor-store-stats-head h3,
html:not([data-theme="dark"]) .competitor-sales-chart-head h4,
html:not([data-theme="dark"]) .competitor-sales-chart-month strong,
html:not([data-theme="dark"]) .competitor-sales-chart-meta b,
html:not([data-theme="dark"]) .competitor-category-breakdown-head h4,
html:not([data-theme="dark"]) .competitor-category-line-name {
    color: #203052;
}

html:not([data-theme="dark"]) .competitor-analysis-history-main span,
html:not([data-theme="dark"]) .competitor-store-stats-explain,
html:not([data-theme="dark"]) .competitor-sales-chart-month,
html:not([data-theme="dark"]) .competitor-sales-chart-meta span,
html:not([data-theme="dark"]) .competitor-top-product-period,
html:not([data-theme="dark"]) .competitor-category-line-meta {
    color: #858aae;
}

html:not([data-theme="dark"]) .competitor-analysis-history-date {
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .competitor-analysis-history-actions .btn {
    min-height: 40px;
    border-radius: 999px;
}

html:not([data-theme="dark"]) .competitor-analysis-history-empty,
html:not([data-theme="dark"]) .competitor-analysis-no-data {
    border-color: rgba(136, 140, 213, 0.18);
    border-radius: 18px;
    background: rgba(250, 249, 255, 0.76);
    color: #858aae;
}

html:not([data-theme="dark"]) .competitor-shop-hero {
    border-color: rgba(136, 140, 213, 0.18);
    background: rgba(255, 255, 255, 0.82);
}

html:not([data-theme="dark"]) .competitor-shop-logo-wrap,
html:not([data-theme="dark"]) .competitor-shop-kpis article {
    border-color: rgba(136, 140, 213, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

html:not([data-theme="dark"]) .competitor-shop-kpis span,
html:not([data-theme="dark"]) .competitor-store-stats-grid b {
    color: #858aae;
}

html:not([data-theme="dark"]) .competitor-shop-kpis strong,
html:not([data-theme="dark"]) .competitor-store-stats-grid span {
    color: #203052;
}

@media (max-width: 1180px) {
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-row,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .products-filter-form .scan-filter-flags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html:not([data-theme="dark"]) .products-rows-head {
        display: none;
    }

    html:not([data-theme="dark"]) .products-item-summary {
        grid-template-columns: 34px minmax(0, 1fr) repeat(2, minmax(120px, 0.38fr));
        align-items: stretch;
    }

    html:not([data-theme="dark"]) .products-item-main {
        grid-column: 2 / -1;
    }

    html:not([data-theme="dark"]) .products-item-col {
        padding: 10px 12px;
        border: 1px solid rgba(136, 140, 213, 0.14);
        border-radius: 16px;
        background: rgba(250, 249, 255, 0.74);
    }

    html:not([data-theme="dark"]) .products-item-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html:not([data-theme="dark"]) .competitor-analysis-form {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .competitor-analysis-actions,
    html:not([data-theme="dark"]) .competitor-analysis-actions .btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-flags,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        display: grid;
        justify-content: stretch;
    }

    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions select,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions .btn {
        width: 100%;
    }

    html:not([data-theme="dark"]) .products-item-summary,
    html:not([data-theme="dark"]) .competitor-analysis-seller-summary {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 14px;
    }

    html:not([data-theme="dark"]) .products-item-main,
    html:not([data-theme="dark"]) .competitor-analysis-row-main {
        grid-column: 2 / -1;
    }

    html:not([data-theme="dark"]) .products-item-col,
    html:not([data-theme="dark"]) .competitor-analysis-row-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(118px, 0.7fr) minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border: 1px solid rgba(136, 140, 213, 0.14);
        border-radius: 16px;
        background: rgba(250, 249, 255, 0.74);
    }

    html:not([data-theme="dark"]) .products-item-body-links {
        width: 100%;
        justify-content: stretch;
        border-radius: 18px;
    }

    html:not([data-theme="dark"]) .products-item-body-links .action-pill {
        flex: 1 1 132px;
    }

    html:not([data-theme="dark"]) .products-item-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    html:not([data-theme="dark"]) .products-item-row,
    html:not([data-theme="dark"]) .competitor-analysis-seller-row {
        border-radius: 20px;
    }

    html:not([data-theme="dark"]) .products-item-col,
    html:not([data-theme="dark"]) .competitor-analysis-row-col {
        grid-template-columns: 1fr;
    }

    html:not([data-theme="dark"]) .products-item-body-links .action-pill {
        flex-basis: 100%;
        width: 100%;
    }
}

/* v1.42.7 - Screenshot cleanup: sidebar mark, legacy accents, scan table */
html:not([data-theme="dark"]) .app-sidebar::before {
    content: none !important;
    display: none !important;
}

html:not([data-theme="dark"]) .app-sidebar {
    padding-top: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 247, 255, 0.84)) !important;
}

html:not([data-theme="dark"]) .app-sidebar-head {
    min-height: 64px;
    padding: 14px 14px 12px !important;
}

html:not([data-theme="dark"]) .app-sidebar-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

html:not([data-theme="dark"]) .app-sidebar-title::before {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 14px;
    background:
        url("/static/branding/logo-icon.png?v=20260508-icon432") center / contain no-repeat,
        #ffffff;
    box-shadow: 0 12px 26px rgba(66, 72, 143, 0.1);
}

html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .app-sidebar-title::before {
    display: none;
}

html:not([data-theme="dark"]) .overview-sources-count,
html:not([data-theme="dark"]) .overview-source-status,
html:not([data-theme="dark"]) .notification-tag,
html:not([data-theme="dark"]) .info-dot,
html:not([data-theme="dark"]) .tiny-action,
html:not([data-theme="dark"]) .source-url-disclosure > summary,
html:not([data-theme="dark"]) .scan-actions-more > summary,
html:not([data-theme="dark"]) .cabinet-extra-disclosure > summary,
html:not([data-theme="dark"]) .source-preview-url,
html:not([data-theme="dark"]) .source-url-hidden {
    border: 1px solid rgba(136, 140, 213, 0.2) !important;
    background: #f7f6ff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .overview-sources-count,
html:not([data-theme="dark"]) .overview-source-status,
html:not([data-theme="dark"]) .notification-tag {
    border-radius: 999px;
}

html:not([data-theme="dark"]) .overview-source-status::before,
html:not([data-theme="dark"]) .overview-sources-count::before,
html:not([data-theme="dark"]) .notification-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: var(--clean-primary);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.08);
}

html:not([data-theme="dark"]) .overview-sources-count,
html:not([data-theme="dark"]) .overview-source-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

html:not([data-theme="dark"]) .overview-source-item,
html:not([data-theme="dark"]) .overview-status-list li {
    border-color: rgba(136, 140, 213, 0.16) !important;
    background: rgba(255, 255, 255, 0.78) !important;
}

html:not([data-theme="dark"]) .overview-source-item::before,
html:not([data-theme="dark"]) .overview-source-item.is-empty::before {
    background: linear-gradient(180deg, var(--clean-primary), rgba(165, 169, 255, 0.76)) !important;
}

html:not([data-theme="dark"]) .overview-status-list li span,
html:not([data-theme="dark"]) .overview-status-list li strong,
html:not([data-theme="dark"]) .overview-source-name,
html:not([data-theme="dark"]) .source-name {
    color: #203052 !important;
}

html:not([data-theme="dark"]) .notification-item,
html:not([data-theme="dark"]) .notification-item.notification-success,
html:not([data-theme="dark"]) .notification-item.notification-ok,
html:not([data-theme="dark"]) .alert.success {
    border-color: rgba(136, 140, 213, 0.18) !important;
    background: linear-gradient(135deg, rgba(247, 246, 255, 0.9), rgba(255, 255, 255, 0.84)) !important;
    color: #203052 !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .alert.success strong,
html:not([data-theme="dark"]) .notification-item strong {
    color: #171b3f;
}

html:not([data-theme="dark"]) .floating-info-tip {
    border-color: rgba(136, 140, 213, 0.28);
}

html:not([data-theme="dark"]) .settings-page .referral-box {
    gap: 12px;
    margin-top: 14px;
    padding: clamp(16px, 1.8vw, 24px);
    border: 1px solid rgba(136, 140, 213, 0.18) !important;
    border-radius: 26px;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(221, 220, 255, 0.55), transparent 66%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 246, 255, 0.82)) !important;
    box-shadow: 0 18px 48px rgba(66, 72, 143, 0.08);
}

html:not([data-theme="dark"]) .settings-page .referral-row {
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid rgba(136, 140, 213, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

html:not([data-theme="dark"]) .settings-page .referral-label {
    color: #858aae;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html:not([data-theme="dark"]) .settings-page .referral-row code {
    padding: 6px 10px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 999px;
    background: #f2f1ff;
    color: #203052;
    font-weight: 900;
}

html:not([data-theme="dark"]) .settings-page .referral-link {
    color: var(--clean-primary-strong) !important;
    font-size: clamp(1rem, 0.9rem + 0.28vw, 1.18rem);
    font-weight: 900;
    text-decoration: none;
}

html:not([data-theme="dark"]) .settings-page .referral-stats-grid .insight-card {
    border-color: rgba(136, 140, 213, 0.16);
    background: rgba(255, 255, 255, 0.82);
}

html:not([data-theme="dark"]) .dashboard-scan-table {
    border-collapse: separate;
    border-spacing: 0;
}

html:not([data-theme="dark"]) .dashboard-scan-table thead th {
    background: #f2f1ff !important;
    color: #858aae !important;
}

html:not([data-theme="dark"]) .dashboard-scan-table tbody tr {
    transition: background-color 0.16s ease;
}

html:not([data-theme="dark"]) .dashboard-scan-table tbody tr:hover td {
    background: rgba(248, 247, 255, 0.86) !important;
}

html:not([data-theme="dark"]) .dashboard-scan-table .source-url-disclosure,
html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions-more {
    width: 100%;
}

html:not([data-theme="dark"]) .dashboard-scan-table .source-url-disclosure > summary,
html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions-more > summary {
    min-height: 34px;
    width: 100%;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

html:not([data-theme="dark"]) .dashboard-scan-table .source-url-disclosure > summary:hover,
html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions-more > summary:hover,
html:not([data-theme="dark"]) .cabinet-extra-disclosure > summary:hover {
    border-color: rgba(104, 112, 243, 0.34) !important;
    background: #ffffff !important;
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .dashboard-scan-table .source-url {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(136, 140, 213, 0.14);
    border-radius: 14px;
    background: rgba(250, 249, 255, 0.86) !important;
    color: #4d5488 !important;
}

html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions {
    max-width: 170px;
    gap: 8px;
    justify-items: stretch;
}

html:not([data-theme="dark"]) .dashboard-scan-table .scan-action-btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    height: auto;
    border-radius: 999px;
    font-size: 0.82rem;
}

html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions-menu {
    padding: 8px;
    border: 1px solid rgba(136, 140, 213, 0.14);
    border-radius: 18px;
    background: rgba(250, 249, 255, 0.92);
}

html:not([data-theme="dark"]) .status-completed,
html:not([data-theme="dark"]) .status-running,
html:not([data-theme="dark"]) .status-ok,
html:not([data-theme="dark"]) .status-success {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background: #f2f1ff !important;
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .status-failed,
html:not([data-theme="dark"]) .status-error,
html:not([data-theme="dark"]) .status-warning,
html:not([data-theme="dark"]) .status-crossed,
html:not([data-theme="dark"]) .status-cancelled {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background: #f7f6ff !important;
    color: var(--clean-primary-strong) !important;
}

@media (max-width: 760px) {
    html:not([data-theme="dark"]) .settings-page .referral-row {
        align-items: flex-start;
        flex-direction: column;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions {
        max-width: none;
    }
}

/* v1.42.8 - Dashboard scan table card mode and final accent cleanup */
html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat,
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card,
html:not([data-theme="dark"]) .insight-card-ok,
html:not([data-theme="dark"]) .insight-card-primary,
html:not([data-theme="dark"]) .insight-card-warning {
    border-color: rgba(136, 140, 213, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 248, 255, 0.78)) !important;
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat::after,
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card::after,
html:not([data-theme="dark"]) .insight-card-ok::after,
html:not([data-theme="dark"]) .insight-card-primary::after,
html:not([data-theme="dark"]) .insight-card-warning::after {
    display: none !important;
}

html:not([data-theme="dark"]) .overview-summary-v1387-grid .overview-summary-stat .kpi-delta,
html:not([data-theme="dark"]) .overview-kpi-grid .insight-card .kpi-delta {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background: #f2f1ff !important;
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .table-wrap:has(.dashboard-scan-table) {
    border-color: rgba(136, 140, 213, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: none;
}

html:not([data-theme="dark"]) .dashboard-scan-table td,
html:not([data-theme="dark"]) .dashboard-scan-table th {
    white-space: normal;
}

html:not([data-theme="dark"]) .dashboard-scan-table td[data-label="Источник"] {
    min-width: 190px;
}

html:not([data-theme="dark"]) .dashboard-scan-table td[data-label="Действия"] {
    min-width: 190px;
}

@media (max-width: 920px) {
    html:not([data-theme="dark"]) .table-wrap:has(.dashboard-scan-table) {
        overflow: visible !important;
        padding: 0;
        border: 0;
        background: transparent;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table,
    html:not([data-theme="dark"]) .dashboard-scan-table tbody,
    html:not([data-theme="dark"]) .dashboard-scan-table tr,
    html:not([data-theme="dark"]) .dashboard-scan-table td {
        display: block;
        width: 100%;
        min-width: 0 !important;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table thead {
        display: none;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table tbody {
        display: grid;
        gap: 12px;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table tr {
        padding: 12px;
        border: 1px solid rgba(136, 140, 213, 0.18);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 14px 32px rgba(66, 72, 143, 0.06);
    }

    html:not([data-theme="dark"]) .dashboard-scan-table tr:hover td {
        background: transparent !important;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table td {
        display: grid;
        grid-template-columns: minmax(96px, 0.36fr) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(136, 140, 213, 0.12);
        color: #203052;
        overflow-wrap: anywhere;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table td:last-child {
        border-bottom: 0;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table td::before {
        content: attr(data-label);
        color: #858aae;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table td[data-label="Источник"],
    html:not([data-theme="dark"]) .dashboard-scan-table td[data-label="Статус"],
    html:not([data-theme="dark"]) .dashboard-scan-table td[data-label="Действия"] {
        grid-template-columns: 1fr;
        align-items: start;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table .source-name {
        font-size: 1rem;
        font-weight: 900;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table .source-url-disclosure,
    html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions {
        max-width: none;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table .scan-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    html:not([data-theme="dark"]) .dashboard-scan-table tr {
        padding: 10px 12px;
        border-radius: 20px;
    }

    html:not([data-theme="dark"]) .dashboard-scan-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* v1.421.1 - Remove legacy accent from loaders, progress and seller checks */
html:not([data-theme="dark"]) {
    --accent: var(--clean-primary);
    --accent-dark: var(--clean-primary-strong);
    --accent-soft: var(--clean-primary-soft);
    --accent-strong: var(--clean-primary-strong);
    --color-success: var(--clean-primary);
    --clean-success: var(--clean-primary);
    --clean-success-soft: var(--clean-primary-soft);
    --ok: var(--clean-primary);
    accent-color: var(--clean-primary);
    scrollbar-color: rgba(104, 112, 243, 0.34) rgba(242, 241, 255, 0.92);
}

html:not([data-theme="dark"]) * {
    scrollbar-color: rgba(104, 112, 243, 0.34) rgba(242, 241, 255, 0.92);
}

html:not([data-theme="dark"]) *::-webkit-scrollbar-track {
    background: rgba(242, 241, 255, 0.92) !important;
}

html:not([data-theme="dark"]) *::-webkit-scrollbar-thumb {
    border-color: rgba(242, 241, 255, 0.92) !important;
    background: rgba(104, 112, 243, 0.34) !important;
}

html:not([data-theme="dark"]) *::-webkit-scrollbar-thumb:hover {
    background: rgba(83, 92, 226, 0.48) !important;
}

html:not([data-theme="dark"]) :is(input, select, textarea, button, summary, a):focus-visible {
    outline-color: rgba(104, 112, 243, 0.38) !important;
}

html:not([data-theme="dark"]) input[type="checkbox"],
html:not([data-theme="dark"]) input[type="radio"] {
    accent-color: var(--clean-primary);
}

html:not([data-theme="dark"]) .page-loader {
    background: rgba(247, 246, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

html:not([data-theme="dark"]) .page-loader-box {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: 0 18px 48px rgba(66, 72, 143, 0.12);
}

html:not([data-theme="dark"]) .page-loader-spinner {
    border-color: rgba(136, 140, 213, 0.22) !important;
    border-top-color: var(--clean-primary) !important;
}

html:not([data-theme="dark"]) .btn.is-loading::after,
html:not([data-theme="dark"]) button.is-loading::after {
    border-color: rgba(255, 255, 255, 0.58) !important;
    border-top-color: #ffffff !important;
}

html:not([data-theme="dark"]) .btn-secondary.is-loading::after,
html:not([data-theme="dark"]) .btn-outline.is-loading::after,
html:not([data-theme="dark"]) button.btn-secondary.is-loading::after,
html:not([data-theme="dark"]) button.btn-outline.is-loading::after {
    border-color: rgba(136, 140, 213, 0.24) !important;
    border-top-color: var(--clean-primary) !important;
}

html:not([data-theme="dark"]) .progress-bar,
html:not([data-theme="dark"]) .heavy-progress-bar {
    background: #f2f1ff !important;
}

html:not([data-theme="dark"]) .progress-bar span,
html:not([data-theme="dark"]) .progress-fill,
html:not([data-theme="dark"]) [data-field="progress-bar"],
html:not([data-theme="dark"]) [data-heavy-progress-bar] {
    background: linear-gradient(90deg, var(--clean-primary), #9ca1ff) !important;
}

html:not([data-theme="dark"]) .heavy-progress,
html:not([data-theme="dark"]) .heavy-progress-card {
    border-color: rgba(136, 140, 213, 0.18) !important;
    background:
        radial-gradient(520px 180px at 100% 0%, rgba(221, 220, 255, 0.42), transparent 68%),
        rgba(248, 247, 255, 0.82) !important;
    box-shadow: 0 18px 42px rgba(66, 72, 143, 0.08) !important;
}

html:not([data-theme="dark"]) .heavy-progress-percent,
html:not([data-theme="dark"]) .heavy-progress-head strong {
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .heavy-progress-meta,
html:not([data-theme="dark"]) .heavy-progress-eyebrow {
    color: #7d83a9 !important;
}

html:not([data-theme="dark"]) .heavy-progress[data-status="failed"] {
    border-color: rgba(235, 100, 96, 0.24) !important;
    background: var(--clean-danger-soft) !important;
}

html:not([data-theme="dark"]) .seller-own-row td,
html:not([data-theme="dark"]) .product-competitor-row.is-own td,
html:not([data-theme="dark"]) .product-competitor-row.is-own td:first-child,
html:not([data-theme="dark"]) .product-competitor-row.is-own.is-leader td:first-child {
    background: rgba(248, 247, 255, 0.82) !important;
    box-shadow: inset 3px 0 0 rgba(104, 112, 243, 0.32) !important;
}

html:not([data-theme="dark"]) .competitor-analysis-seller-row.is-own,
html:not([data-theme="dark"]) .product-competitors-disclosure-row.is-own {
    border-color: rgba(104, 112, 243, 0.28) !important;
    box-shadow: 0 16px 38px rgba(66, 72, 143, 0.07) !important;
}

html:not([data-theme="dark"]) .competitor-analysis-seller-row.is-leader,
html:not([data-theme="dark"]) .product-competitors-disclosure-row.is-leader {
    border-color: rgba(158, 162, 255, 0.38) !important;
}

html:not([data-theme="dark"]) .competitor-analysis-seller-row[open] .competitor-analysis-seller-summary,
html:not([data-theme="dark"]) .product-competitors-disclosure-row[open] .product-competitors-disclosure-summary,
html:not([data-theme="dark"]) .product-competitor-accordion[open] {
    border-bottom-color: rgba(136, 140, 213, 0.16) !important;
    background: linear-gradient(135deg, rgba(245, 244, 255, 0.9), rgba(255, 255, 255, 0.84)) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .competitor-analysis-row-toggle,
html:not([data-theme="dark"]) .products-item-toggle {
    border-color: rgba(136, 140, 213, 0.22) !important;
    background: #f5f4ff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .competitor-analysis-row-toggle::before,
html:not([data-theme="dark"]) .products-item-toggle::before,
html:not([data-theme="dark"]) .product-competitor-accordion-summary::after {
    border-right-color: var(--clean-primary-strong) !important;
    border-bottom-color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .product-stock-chip.stock-in,
html:not([data-theme="dark"]) .product-competitor-accordion-title,
html:not([data-theme="dark"]) .product-competitor-category-rank,
html:not([data-theme="dark"]) .product-competitor-category-chip,
html:not([data-theme="dark"]) .product-competitor-period-badge,
html:not([data-theme="dark"]) .competitor-analysis-rank-badge,
html:not([data-theme="dark"]) .competitor-analysis-period-badge,
html:not([data-theme="dark"]) .competitor-shop-badge,
html:not([data-theme="dark"]) .competitor-shop-platform,
html:not([data-theme="dark"]) .row-flag-yes,
html:not([data-theme="dark"]) .model-analysis-status-option.is-active,
html:not([data-theme="dark"]) .availability-chip.available,
html:not([data-theme="dark"]) .status-model-found,
html:not([data-theme="dark"]) .status-found,
html:not([data-theme="dark"]) .status-available,
html:not([data-theme="dark"]) .status-active,
html:not([data-theme="dark"]) .risk-chip.risk-low,
html:not([data-theme="dark"]) .source-pill,
html:not([data-theme="dark"]) .action-pill.market-link,
html:not([data-theme="dark"]) .role-partner,
html:not([data-theme="dark"]) .role-action-btn.is-current,
html:not([data-theme="dark"]) .overview-competitor-icon,
html:not([data-theme="dark"]) .overview-competitor-feature {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background: #f2f1ff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .kpi-delta-positive,
html:not([data-theme="dark"]) .metric-delta.positive,
html:not([data-theme="dark"]) .delta-up,
html:not([data-theme="dark"]) .trend-up,
html:not([data-theme="dark"]) .positive,
html:not([data-theme="dark"]) .success-text {
    color: var(--clean-primary-strong) !important;
}

html:not([data-theme="dark"]) .captcha-box,
html:not([data-theme="dark"]) .captcha-image-wrap,
html:not([data-theme="dark"]) .captcha-refresh-btn,
html:not([data-theme="dark"]) .source-url-disclosure > summary,
html:not([data-theme="dark"]) .source-url-disclosure[open] > summary,
html:not([data-theme="dark"]) .source-preview-url,
html:not([data-theme="dark"]) .source-url-hidden {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background: #f7f6ff !important;
    color: var(--clean-primary-strong) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .captcha-refresh-btn:hover,
html:not([data-theme="dark"]) .source-url-disclosure > summary:hover {
    border-color: rgba(104, 112, 243, 0.34) !important;
    background: #ffffff !important;
}

html:not([data-theme="dark"]) .captcha-refresh-icon {
    color: currentColor !important;
}

/* v1.421.2 - Unified floating notifications */
html:not([data-theme="dark"]) .floating-toast-stack {
    top: max(16px, env(safe-area-inset-top));
    right: clamp(14px, 1.6vw, 28px);
    width: min(380px, calc(100vw - 28px));
    gap: 10px;
    z-index: 2400;
}

html:not([data-theme="dark"]) .floating-toast {
    position: relative;
    min-height: 50px;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 13px 12px 13px 18px;
    border: 1px solid rgba(136, 140, 213, 0.2) !important;
    border-left: 1px solid rgba(136, 140, 213, 0.2) !important;
    border-radius: 20px;
    background:
        radial-gradient(220px 90px at 100% 0%, rgba(221, 220, 255, 0.56), transparent 68%),
        rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 18px 46px rgba(66, 72, 143, 0.14) !important;
    backdrop-filter: blur(16px);
}

html:not([data-theme="dark"]) .floating-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--clean-primary), #9ca1ff);
}

html:not([data-theme="dark"]) .floating-toast.success::before,
html:not([data-theme="dark"]) .floating-toast.info::before {
    background: linear-gradient(180deg, var(--clean-primary), #9ca1ff);
}

html:not([data-theme="dark"]) .floating-toast.warning::before {
    background: linear-gradient(180deg, #d69a35, #f4c56d);
}

html:not([data-theme="dark"]) .floating-toast.error::before {
    background: linear-gradient(180deg, var(--clean-danger), #ff9a97);
}

html:not([data-theme="dark"]) .floating-toast-text {
    color: #203052 !important;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

html:not([data-theme="dark"]) .floating-toast-close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(136, 140, 213, 0.18) !important;
    border-radius: 999px;
    background: #f7f6ff !important;
    color: var(--clean-primary-strong) !important;
    font-size: 0.9rem;
    line-height: 1;
}

html:not([data-theme="dark"]) .floating-toast-close:hover {
    border-color: rgba(104, 112, 243, 0.3) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 20px rgba(66, 72, 143, 0.1);
}

@media (max-width: 720px) {
    html:not([data-theme="dark"]) .floating-toast-stack {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* v1.423 - Remove scan row side rails */
html:not([data-theme="dark"]) .scan-item-row::before,
html:not([data-theme="dark"]) .scan-item-row.is-crossed::before,
html:not([data-theme="dark"]) .scan-item-row.is-out-stock::before {
    content: none !important;
    display: none !important;
}

html:not([data-theme="dark"]) .scan-item-row.is-crossed,
html:not([data-theme="dark"]) .scan-item-row.is-out-stock {
    border-left-color: rgba(136, 140, 213, 0.2) !important;
}

/* -------------------------------------------------------------------------- */
/* Unified UI system - spacing, type, controls and data surfaces              */
/* -------------------------------------------------------------------------- */

html:not([data-theme="dark"]) {
    --ui-bg: #f8f7ff;
    --ui-bg-warm: #fff9fc;
    --ui-surface: rgba(255, 255, 255, 0.92);
    --ui-surface-solid: #ffffff;
    --ui-surface-soft: rgba(247, 246, 255, 0.86);
    --ui-surface-hover: rgba(242, 241, 255, 0.94);
    --ui-ink: #171b3f;
    --ui-ink-soft: #24294f;
    --ui-muted: #59607f;
    --ui-muted-strong: #424967;
    --ui-line: rgba(91, 96, 174, 0.32);
    --ui-line-strong: rgba(73, 80, 204, 0.56);
    --ui-primary: #5961e8;
    --ui-primary-strong: #424acd;
    --ui-primary-soft: rgba(89, 97, 232, 0.18);
    --ui-danger: #d94d49;
    --ui-danger-strong: #b73b37;
    --ui-danger-soft: rgba(217, 77, 73, 0.18);
    --ui-warning: #9a651b;
    --ui-warning-soft: rgba(154, 101, 27, 0.18);
    --ui-radius-xs: 12px;
    --ui-radius-sm: 16px;
    --ui-radius-md: 20px;
    --ui-radius-lg: 26px;
    --ui-radius-xl: 32px;
    --ui-control-height: 48px;
    --ui-control-height-sm: 40px;
    --ui-control-height-xs: 34px;
    --ui-space-1: 4px;
    --ui-space-2: 8px;
    --ui-space-3: 12px;
    --ui-space-4: 16px;
    --ui-space-5: 20px;
    --ui-space-6: 24px;
    --ui-space-8: 32px;
    --ui-space-10: 40px;
    --ui-shadow-sm: 0 12px 30px rgba(66, 72, 143, 0.08);
    --ui-shadow-md: 0 22px 60px rgba(66, 72, 143, 0.11);
    --ui-shadow-focus: 0 0 0 4px rgba(104, 112, 243, 0.14);
    --ui-ease: 160ms ease;
    --ui-font-ui: "Manrope", "Segoe UI", sans-serif;
    --ui-font-display: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    --ui-text-xs: 0.72rem;
    --ui-text-sm: 0.82rem;
    --ui-text-md: 0.94rem;
    --ui-text-base: 1rem;
    --ui-text-lg: 1.14rem;
    --ui-title-sm: clamp(1.45rem, 1.05rem + 1.1vw, 2rem);
    --ui-title-md: clamp(2rem, 1.2rem + 2.1vw, 3.15rem);

    --bg-base: var(--ui-bg);
    --bg-panel: var(--ui-surface);
    --bg-panel-soft: var(--ui-surface-soft);
    --text-main: var(--ui-ink);
    --text-primary: var(--ui-ink);
    --text-muted: var(--ui-muted);
    --border: var(--ui-line);
    --accent: var(--ui-primary);
    --accent-dark: var(--ui-primary-strong);
    --accent-soft: var(--ui-primary-soft);
    --accent-strong: var(--ui-primary-strong);
    --danger: var(--ui-danger);
    --ok: var(--ui-primary);
    --warning: var(--ui-warning);
    --radius: var(--ui-radius-md);
    --radius-sm: var(--ui-radius-xs);
    --shadow: var(--ui-shadow-sm);
    --color-canvas: var(--ui-bg);
    --color-surface: var(--ui-surface);
    --color-surface-soft: var(--ui-surface-soft);
    --color-surface-strong: var(--ui-surface-solid);
    --color-text: var(--ui-ink);
    --color-text-muted: var(--ui-muted);
    --color-border: var(--ui-line);
    --color-border-strong: var(--ui-line-strong);
    --color-primary: var(--ui-primary);
    --color-primary-hover: var(--ui-primary);
    --color-primary-active: var(--ui-primary-strong);
    --color-primary-soft: var(--ui-primary-soft);
    --color-success: var(--ui-primary);
    --color-warning: var(--ui-warning);
    --color-danger: var(--ui-danger);
    --shadow-sm: var(--ui-shadow-sm);
    --shadow-md: var(--ui-shadow-md);
    --shadow-lg: var(--ui-shadow-md);
    --clean-ink: var(--ui-ink);
    --clean-ink-soft: var(--ui-ink-soft);
    --clean-muted: var(--ui-muted);
    --clean-bg: var(--ui-bg);
    --clean-bg-warm: var(--ui-bg-warm);
    --clean-surface: var(--ui-surface);
    --clean-surface-soft: var(--ui-surface-soft);
    --clean-line: var(--ui-line);
    --clean-line-strong: var(--ui-line-strong);
    --clean-primary: var(--ui-primary);
    --clean-primary-strong: var(--ui-primary-strong);
    --clean-primary-soft: var(--ui-primary-soft);
    --clean-success: var(--ui-primary);
    --clean-success-soft: var(--ui-primary-soft);
    --clean-danger: var(--ui-danger);
    --clean-danger-soft: var(--ui-danger-soft);
    --clean-warning: var(--ui-warning);
    --clean-warning-soft: var(--ui-warning-soft);
    --clean-radius-xl: var(--ui-radius-xl);
    --clean-radius-lg: var(--ui-radius-lg);
    --clean-radius-md: var(--ui-radius-md);
    --clean-radius-sm: var(--ui-radius-sm);
    --clean-shadow: var(--ui-shadow-md);
    --clean-shadow-sm: var(--ui-shadow-sm);
}

html:not([data-theme="dark"]) body {
    font-family: var(--ui-font-ui);
    color: var(--ui-ink);
    line-height: 1.55;
}

html:not([data-theme="dark"]) :where(h1, h2, h3, h4, .cc-page-title, .panel-title, .insight-value) {
    color: var(--ui-ink);
    font-family: var(--ui-font-display);
    letter-spacing: -0.045em;
}

html:not([data-theme="dark"]) :where(.cc-page-title, .panel h1) {
    font-size: var(--ui-title-md);
    line-height: 0.98;
}

html:not([data-theme="dark"]) :where(.panel h2, .settings-section h2, .history-table-head h3) {
    font-size: var(--ui-title-sm);
    line-height: 1.08;
}

html:not([data-theme="dark"]) :where(.muted, .small, .tiny-note, .cc-page-subtitle, .insight-meta, .scan-filter-hint, .scan-pagination-meta) {
    color: var(--ui-muted);
    font-size: var(--ui-text-md);
    line-height: 1.45;
}

html:not([data-theme="dark"]) :where(.layout-page-container, .landing-page, .settings-page, .products-page, .scan-detail-page, .competitor-analysis-page) {
    gap: clamp(var(--ui-space-4), 1.5vw, var(--ui-space-8));
}

html:not([data-theme="dark"]) :where(.cc-page-header, .panel, .table-wrap, .history-table-block, .history-table-wrap, .admin-users-table-wrap, .scan-table-wrap, .competitor-analysis-panel, .competitor-analysis-table-wrap, .products-table-section, .auth-panel) {
    border-color: var(--ui-line) !important;
    border-radius: var(--ui-radius-xl) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-shadow-sm) !important;
}

html:not([data-theme="dark"]) :where(.cc-page-header, .panel, .auth-panel) {
    padding: clamp(var(--ui-space-5), 2vw, var(--ui-space-8));
}

html:not([data-theme="dark"]) :where(.btn, .btn-primary, .btn-secondary, .btn-action, .btn-accent, .btn-accent-soft, .btn-warning-soft, .btn-danger-soft, .scan-action-btn, .filter-preset-btn, .notification-action-btn, .role-action-btn, .product-detail-tab-btn, .captcha-refresh-btn, .action-pill, .nav-link-button, .top-nav a) {
    min-height: var(--ui-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ui-space-2);
    border: 1px solid var(--ui-line) !important;
    border-radius: 999px !important;
    background: var(--ui-surface-solid) !important;
    color: var(--ui-primary-strong) !important;
    box-shadow: none !important;
    font-family: var(--ui-font-ui);
    font-size: var(--ui-text-md);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition:
        transform var(--ui-ease),
        border-color var(--ui-ease),
        background-color var(--ui-ease),
        box-shadow var(--ui-ease),
        color var(--ui-ease),
        opacity var(--ui-ease);
}

html:not([data-theme="dark"]) :where(.btn, .btn-primary, .btn-secondary, .btn-action, .btn-accent, .btn-accent-soft, .btn-warning-soft, .btn-danger-soft, .scan-action-btn, .filter-preset-btn, .notification-action-btn, .role-action-btn, .product-detail-tab-btn, .captcha-refresh-btn, .action-pill):not(.btn-xs):not(.btn-sm) {
    padding: 0 18px;
}

html:not([data-theme="dark"]) :where(.btn-sm, .settings-page .btn-sm) {
    min-height: var(--ui-control-height-sm) !important;
    padding: 0 14px !important;
    font-size: var(--ui-text-sm) !important;
}

html:not([data-theme="dark"]) :where(.btn-xs, .scan-action-btn.btn-xs, .role-action-btn.btn-sm) {
    min-height: var(--ui-control-height-xs) !important;
    padding: 0 12px !important;
    font-size: var(--ui-text-xs) !important;
}

html:not([data-theme="dark"]) :where(.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-action:hover, .btn-accent:hover, .btn-accent-soft:hover, .btn-warning-soft:hover, .btn-danger-soft:hover, .scan-action-btn:hover, .filter-preset-btn:hover, .notification-action-btn:hover, .role-action-btn:hover, .product-detail-tab-btn:hover, .captcha-refresh-btn:hover, .action-pill:hover, .top-nav a:hover, .nav-link-button:hover) {
    transform: translateY(-1px);
    border-color: var(--ui-line-strong) !important;
    background: var(--ui-surface-hover) !important;
    box-shadow: 0 12px 28px rgba(66, 72, 143, 0.1) !important;
}

html:not([data-theme="dark"]) :where(.btn-primary, button[type="submit"].btn-primary, .btn-action, .btn-accent, .filter-preset-btn.is-active, .filter-preset-btn[aria-pressed="true"], .product-detail-tab-btn.is-active, .action-pill-info-primary) {
    border-color: rgba(83, 92, 226, 0.74) !important;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-strong)) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(83, 92, 226, 0.2) !important;
}

html:not([data-theme="dark"]) :where(.btn-primary:hover, button[type="submit"].btn-primary:hover, .btn-action:hover, .btn-accent:hover, .filter-preset-btn.is-active:hover, .product-detail-tab-btn.is-active:hover, .action-pill-info-primary:hover) {
    background: linear-gradient(135deg, #747bff, var(--ui-primary-strong)) !important;
    color: #ffffff !important;
}

html:not([data-theme="dark"]) :where(.btn-secondary, .btn-accent-soft, .btn-outline) {
    background: var(--ui-surface-hover) !important;
}

html:not([data-theme="dark"]) :where(.hero-primary-cta, .hero-secondary-cta) {
    min-height: 56px !important;
    border-radius: 999px !important;
    padding: 0 30px !important;
    font-size: 1rem !important;
}

html:not([data-theme="dark"]) .hero-secondary-cta {
    min-width: 126px !important;
    border-color: rgba(136, 140, 213, 0.22) !important;
    background: #ffffff !important;
    color: var(--ui-primary-strong) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .hero-secondary-cta:hover {
    background: #f7f6ff !important;
    box-shadow: 0 10px 24px rgba(80, 86, 171, 0.1) !important;
}

html:not([data-theme="dark"]) :where(.btn-danger-soft, .danger-link) {
    border-color: rgba(235, 100, 96, 0.24) !important;
    background: var(--ui-danger-soft) !important;
    color: var(--ui-danger-strong) !important;
}

html:not([data-theme="dark"]) :where(.btn-warning-soft) {
    border-color: rgba(195, 132, 50, 0.26) !important;
    background: var(--ui-warning-soft) !important;
    color: var(--ui-warning) !important;
}

html:not([data-theme="dark"]) :where(.btn:active, .scan-action-btn:active, .filter-preset-btn:active, .action-pill:active) {
    transform: translateY(0);
    box-shadow: none !important;
}

html:not([data-theme="dark"]) :where(.btn:disabled, button:disabled, .btn-disabled, .action-pill-disabled) {
    opacity: 0.52 !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

html:not([data-theme="dark"]) :where(input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], select, textarea, .custom-select-trigger, .role-select, .scan-filter-search, .scan-filter-control input, .scan-filter-control select) {
    width: 100%;
    min-height: var(--ui-control-height);
    border: 1px solid var(--ui-line) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--ui-ink-soft) !important;
    box-shadow: none !important;
    font-family: var(--ui-font-ui);
    font-size: var(--ui-text-md);
    font-weight: 750;
    line-height: 1.25;
    transition:
        border-color var(--ui-ease),
        background-color var(--ui-ease),
        box-shadow var(--ui-ease),
        color var(--ui-ease);
}

html:not([data-theme="dark"]) :where(input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], select, .custom-select-trigger, .role-select, .scan-filter-search, .scan-filter-control input, .scan-filter-control select) {
    padding: 0 18px;
}

html:not([data-theme="dark"]) textarea {
    min-height: 116px;
    padding: 14px 18px !important;
    border-radius: var(--ui-radius-md) !important;
}

html:not([data-theme="dark"]) :where(input, textarea)::placeholder {
    color: rgba(125, 131, 169, 0.72) !important;
    font-weight: 750;
}

html:not([data-theme="dark"]) :where(input:focus, select:focus, textarea:focus, .custom-select-trigger:focus-visible, .role-select:focus-visible) {
    outline: none !important;
    border-color: var(--ui-line-strong) !important;
    background: var(--ui-surface-solid) !important;
    box-shadow: var(--ui-shadow-focus) !important;
}

html:not([data-theme="dark"]) :where(label, .scan-filter-control > span, .overview-summary-label, .insight-label, .scan-item-col-label, .scan-item-kpi-label, th) {
    color: var(--ui-muted-strong);
    font-size: var(--ui-text-xs);
    font-weight: 900;
    letter-spacing: 0.035em;
}

html:not([data-theme="dark"]) :where(.checkbox-label, .scan-filter-form > .scan-filter-flags .checkbox-label) {
    min-height: var(--ui-control-height);
    gap: var(--ui-space-3);
    padding: 10px 14px;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-sm) !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--ui-ink-soft) !important;
    font-size: var(--ui-text-md);
    font-weight: 800;
    line-height: 1.25;
}

html:not([data-theme="dark"]) :where(.checkbox-label:has(input:checked), .checkbox-label.is-active) {
    border-color: var(--ui-line-strong) !important;
    background: var(--ui-primary-soft) !important;
    color: var(--ui-primary-strong) !important;
}

html:not([data-theme="dark"]) :where(.badge, .status-chip, .risk-chip, .availability-chip, .kpi-delta, .notification-tag, .tariff-badge, .scan-item-tag, .products-item-tag, .scan-item-kpi-chip, .products-item-kpi-chip, .item-meta-chip, .product-detail-meta-chip, .product-stock-chip, .model-analysis-status-chip, .model-analysis-status-option) {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--ui-line-strong) !important;
    border-radius: 999px !important;
    background: #f1f2ff !important;
    color: var(--ui-primary-strong) !important;
    box-shadow: none !important;
    font-size: var(--ui-text-xs);
    font-weight: 900;
    line-height: 1.15;
}

html:not([data-theme="dark"]) :where(.status-failed, .status-cancelled, .risk-high, .tone-danger, .stock-out, .alert.error) {
    border-color: rgba(183, 59, 55, 0.44) !important;
    background: var(--ui-danger-soft) !important;
    color: var(--ui-danger-strong) !important;
}

html:not([data-theme="dark"]) :where(.status-warning, .tone-warn, .risk-medium, .alert.warning) {
    border-color: rgba(154, 101, 27, 0.44) !important;
    background: var(--ui-warning-soft) !important;
    color: var(--ui-warning) !important;
}

html:not([data-theme="dark"]) :where(.table-wrap, .history-table-wrap, .admin-users-table-wrap, .scan-table-wrap, .competitor-analysis-table-wrap) {
    overflow: auto;
    scrollbar-gutter: stable both-edges;
}

html:not([data-theme="dark"]) :where(table, .dashboard-scan-table, .usage-table, .admin-users-table, .mobile-friendly-table) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ui-ink-soft);
    font-size: var(--ui-text-md);
}

html:not([data-theme="dark"]) :where(th, td) {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(136, 140, 213, 0.13) !important;
    vertical-align: middle;
}

html:not([data-theme="dark"]) th {
    background: var(--ui-surface-hover) !important;
    color: var(--ui-muted-strong) !important;
    text-transform: uppercase;
}

html:not([data-theme="dark"]) td {
    background: rgba(255, 255, 255, 0.74);
    font-weight: 720;
}

html:not([data-theme="dark"]) :where(tbody tr:hover td, .dashboard-scan-table tbody tr:hover td, .usage-table tbody tr:hover td) {
    background: var(--ui-surface-hover) !important;
}

html:not([data-theme="dark"]) :where(.scan-rows-list, .products-list) {
    gap: var(--ui-space-3);
}

html:not([data-theme="dark"]) :where(.scan-item-row, .products-item-row, .competitor-analysis-seller-row, .product-competitors-disclosure-row) {
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-lg) !important;
    background: var(--ui-surface) !important;
    box-shadow: 0 14px 34px rgba(66, 72, 143, 0.07) !important;
}

html:not([data-theme="dark"]) :where(.scan-item-summary, .products-item-summary, .competitor-analysis-seller-summary, .product-competitors-disclosure-summary) {
    gap: var(--ui-space-3);
    padding: 16px 18px;
}

html:not([data-theme="dark"]) :where(.scan-item-row[open] .scan-item-summary, .products-item-row[open] .products-item-summary, .competitor-analysis-seller-row[open] .competitor-analysis-seller-summary, .product-competitors-disclosure-row[open] .product-competitors-disclosure-summary) {
    background: linear-gradient(135deg, var(--ui-surface-hover), rgba(255, 255, 255, 0.88)) !important;
    border-bottom: 1px solid var(--ui-line) !important;
}

/* v1.424 - Keep scan row borders aligned with product rows */
html:not([data-theme="dark"]) .scan-item-row,
html:not([data-theme="dark"]) .scan-item-row.is-crossed,
html:not([data-theme="dark"]) .scan-item-row.is-out-stock {
    border: 1px solid var(--ui-line) !important;
    box-shadow: 0 14px 34px rgba(66, 72, 143, 0.07) !important;
}

html:not([data-theme="dark"]) .scan-item-row[open],
html:not([data-theme="dark"]) .scan-item-row[open].is-crossed,
html:not([data-theme="dark"]) .scan-item-row[open].is-out-stock {
    border: 1px solid var(--ui-line) !important;
}

html:not([data-theme="dark"]) .scan-item-row[open] .scan-item-summary {
    background: linear-gradient(135deg, rgba(245, 244, 255, 0.9), rgba(255, 255, 255, 0.82)) !important;
    border-bottom: 1px solid rgba(136, 140, 213, 0.16) !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    html:not([data-theme="dark"]) {
        --ui-control-height: 46px;
        --ui-control-height-sm: 38px;
        --ui-control-height-xs: 34px;
    }

    html:not([data-theme="dark"]) :where(.cc-page-header, .panel, .auth-panel) {
        padding: var(--ui-space-5);
        border-radius: var(--ui-radius-lg) !important;
    }

    html:not([data-theme="dark"]) :where(.btn, .btn-primary, .btn-secondary, .btn-action, .btn-accent, .btn-accent-soft, .btn-warning-soft, .btn-danger-soft, .scan-action-btn, .filter-preset-btn, .notification-action-btn, .role-action-btn, .product-detail-tab-btn, .captcha-refresh-btn, .action-pill) {
        width: auto;
        max-width: 100%;
        font-size: var(--ui-text-sm);
    }

    html:not([data-theme="dark"]) :where(th, td) {
        padding: 12px 14px;
    }
}

/* -------------------------------------------------------------------------- */
/* Adaptive navigation - hamburger, tablet rail and mobile drawer             */
/* -------------------------------------------------------------------------- */

body.shell-auth .shell-nav-toggle {
    flex: 0 0 auto;
}

html:not([data-theme="dark"]) .shell-nav-toggle {
    width: 46px;
    height: 46px;
    border-radius: 18px !important;
    border-color: var(--ui-line) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: var(--ui-primary-strong) !important;
    box-shadow: 0 14px 30px rgba(66, 72, 143, 0.1) !important;
}

html:not([data-theme="dark"]) .shell-nav-toggle:hover,
html:not([data-theme="dark"]) body.shell-auth.sidebar-open .shell-nav-toggle {
    border-color: var(--ui-line-strong) !important;
    background: var(--ui-surface-hover) !important;
}

body.shell-auth.sidebar-collapsed .app-sidebar-title {
    display: inline-flex !important;
    justify-content: center;
    width: 100%;
    font-size: 0 !important;
    line-height: 0;
}

html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .app-sidebar-title::before {
    display: block !important;
    margin: 0 auto;
}

body.shell-auth.sidebar-collapsed .sidebar-link-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

body.shell-auth.sidebar-collapsed .sidebar-link {
    justify-content: center;
}

body.shell-auth.sidebar-collapsed .sidebar-link-icon {
    margin-inline: auto;
}

@media (max-width: 1279px) {
    body.shell-auth .shell-nav-toggle {
        display: inline-flex !important;
    }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    body.shell-auth .auth-layout,
    html:not([data-theme="dark"]) body.shell-auth .auth-layout {
        display: grid !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding-right: clamp(10px, 1.4vw, 18px) !important;
    }

    body.shell-auth .app-sidebar,
    html:not([data-theme="dark"]) body.shell-auth .app-sidebar {
        position: sticky !important;
        top: calc(var(--topbar-height) + 10px) !important;
        left: auto !important;
        width: auto !important;
        height: calc(100vh - var(--topbar-height) - 24px) !important;
        margin: 0 0 14px clamp(10px, 1.2vw, 18px) !important;
        transform: none !important;
        overflow: hidden auto;
    }

    body.shell-auth .sidebar-collapse-btn {
        display: none !important;
    }

    body.shell-auth.sidebar-collapsed .app-sidebar-head {
        justify-content: center !important;
        padding-inline: 10px !important;
    }

    body.shell-auth.sidebar-collapsed .sidebar-nav {
        padding-inline: 10px !important;
    }

    body.shell-auth.sidebar-collapsed .sidebar-link {
        min-height: 54px;
        padding: 9px !important;
    }

    body.shell-auth.sidebar-open .app-sidebar,
    html:not([data-theme="dark"]) body.shell-auth.sidebar-open .app-sidebar {
        position: fixed !important;
        top: var(--topbar-height) !important;
        left: 12px !important;
        width: min(344px, calc(100vw - 24px)) !important;
        height: calc(100vh - var(--topbar-height) - 16px) !important;
        margin: 0 !important;
        z-index: 150 !important;
        transform: translateX(0) !important;
        box-shadow: 24px 0 54px rgba(36, 39, 83, 0.18) !important;
    }

    body.shell-auth.sidebar-open .app-sidebar-head {
        justify-content: space-between !important;
    }

    body.shell-auth.sidebar-open .app-sidebar-title {
        width: auto;
        font-size: 0.82rem !important;
        line-height: 1.2;
    }

    body.shell-auth.sidebar-open .sidebar-link {
        justify-content: flex-start;
        padding: 10px 12px !important;
    }

    body.shell-auth.sidebar-open .sidebar-link-text {
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: normal !important;
    }

    body.shell-auth .sidebar-backdrop {
        display: block !important;
        position: fixed;
        inset: var(--topbar-height) 0 0;
        z-index: 145;
        background: rgba(36, 39, 83, 0.22);
        backdrop-filter: blur(5px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    body.shell-auth.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 1024px) {
    body.shell-auth .auth-layout,
    html:not([data-theme="dark"]) body.shell-auth .auth-layout {
        display: block !important;
        padding-right: 0 !important;
    }

    body.shell-auth .app-sidebar,
    html:not([data-theme="dark"]) body.shell-auth .app-sidebar {
        position: fixed !important;
        top: var(--topbar-height) !important;
        left: 10px !important;
        width: min(340px, calc(100vw - 20px)) !important;
        height: calc(100vh - var(--topbar-height) - 12px) !important;
        margin: 0 !important;
        z-index: 150 !important;
        transform: translateX(calc(-100% - 18px)) !important;
        overflow: hidden auto;
    }

    body.shell-auth.sidebar-open .app-sidebar,
    html:not([data-theme="dark"]) body.shell-auth.sidebar-open .app-sidebar {
        transform: translateX(0) !important;
    }

    body.shell-auth .sidebar-backdrop {
        display: block !important;
        position: fixed;
        inset: var(--topbar-height) 0 0;
        z-index: 145;
        background: rgba(36, 39, 83, 0.24);
        backdrop-filter: blur(5px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    body.shell-auth.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.shell-auth .app-sidebar-title {
        display: inline-flex !important;
        width: auto;
        font-size: 0.82rem !important;
        line-height: 1.2;
    }

    body.shell-auth .sidebar-link-text {
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: normal !important;
    }
}

@media (max-width: 640px) {
    body.shell-auth .topbar .container,
    html:not([data-theme="dark"]) body.shell-auth .topbar .container {
        width: calc(100% - 20px);
    }

    body.shell-auth .topbar-inner {
        gap: 8px;
    }

    body.shell-auth .brand-logo-main {
        height: 34px;
        max-width: 132px;
    }

    body.shell-auth .top-actions {
        gap: 6px;
    }

    body.shell-auth .top-actions .role-pill {
        display: none;
    }

    body.shell-auth .top-nav a span,
    body.shell-auth .top-nav .nav-link-button span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }

    body.shell-auth .top-nav a,
    body.shell-auth .top-nav .nav-link-button,
    html:not([data-theme="dark"]) body.shell-auth .top-nav a,
    html:not([data-theme="dark"]) body.shell-auth .top-nav .nav-link-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0 !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Settings tabs - compact readable settings workspace                         */
/* -------------------------------------------------------------------------- */

.settings-tabs-shell {
    display: grid;
    gap: 16px;
}

.settings-tabs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.settings-tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.settings-tab-btn {
    min-height: 66px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    color: #303663;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.settings-tab-btn span {
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.settings-tab-btn small {
    color: #59607f;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
}

.settings-tab-btn:hover,
.settings-tab-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(104, 112, 243, 0.34);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(66, 72, 143, 0.1);
    outline: none;
}

.settings-tab-btn.is-active {
    border-color: rgba(83, 92, 226, 0.46);
    background:
        radial-gradient(180px 92px at 100% 0%, rgba(221, 220, 255, 0.7), transparent 70%),
        linear-gradient(135deg, rgba(242, 241, 255, 0.98), rgba(255, 255, 255, 0.94));
    color: #535ce2;
    box-shadow: 0 16px 34px rgba(83, 92, 226, 0.14);
}

.settings-tab-btn.is-active small {
    color: #666d9a;
}

.settings-tab-section[hidden] {
    display: none !important;
}

.settings-tab-section.is-active {
    animation: settings-tab-reveal 180ms ease both;
}

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

.backup-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
}

.backup-upload-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
}

.backup-upload-form label {
    display: grid;
    gap: 5px;
    min-width: min(260px, 100%);
}

.backup-upload-form label span {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
}

.backup-upload-form input[type="file"] {
    max-width: 300px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
}

.backup-summary-grid .insight-value {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.backup-table code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.backup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.backup-actions .inline-form {
    margin: 0;
}

@media (max-width: 900px) {
    .backup-summary-grid {
        grid-template-columns: 1fr;
    }

    .backup-head-actions,
    .backup-upload-form {
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
    }

    .backup-upload-form input[type="file"],
    .backup-head-actions .btn,
    .backup-head-actions form {
        width: 100%;
    }
}

.settings-password-panel {
    display: grid;
    gap: 16px;
}

.settings-password-form {
    gap: 14px;
}

.settings-password-policy {
    max-width: 760px;
}

@keyframes settings-tab-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html:not([data-theme="dark"]) .settings-tabs-shell,
html:not([data-theme="dark"]) .settings-tab-section {
    border-color: var(--ui-line) !important;
}

html:not([data-theme="dark"]) .settings-tab-btn {
    border-color: var(--ui-line);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ui-ink-soft);
}

html:not([data-theme="dark"]) .settings-tab-btn:hover,
html:not([data-theme="dark"]) .settings-tab-btn:focus-visible {
    border-color: var(--ui-line-strong);
    background: var(--ui-surface-solid);
}

html:not([data-theme="dark"]) .settings-tab-btn.is-active {
    border-color: rgba(83, 92, 226, 0.46);
    color: var(--ui-primary-strong);
}

html:not([data-theme="dark"]) .settings-tab-btn small {
    color: var(--ui-muted);
}

html:not([data-theme="dark"]) .settings-tab-btn.is-active small {
    color: var(--ui-ink-soft);
}

/* Scan history follows the rounded list-card pattern used by product history. */
.scan-history-list {
    display: grid;
    gap: 14px;
}

.scan-history-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.76fr) minmax(500px, 1.18fr) minmax(132px, auto);
    gap: 20px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.scan-history-main {
    min-width: 0;
}

.scan-history-time {
    color: var(--accent-dark);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.scan-history-title {
    margin: 6px 0 0;
    color: var(--text-main);
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.24rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.scan-history-stats {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(84px, 1fr));
    gap: 12px;
    align-items: center;
}

.scan-history-stat {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.scan-history-stat small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-transform: uppercase;
}

.scan-history-stat strong {
    color: var(--text-main);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.scan-history-status {
    justify-items: start;
}

.scan-history-status .status-chip {
    width: fit-content;
    max-width: 100%;
}

.scan-history-actions {
    display: grid;
    gap: 8px;
    justify-self: end;
    width: 132px;
    max-width: 132px;
}

.scan-history-actions .scan-actions-more {
    width: 100%;
}

.scan-history-actions .scan-action-btn,
.scan-history-actions .scan-actions-more > summary {
    width: 100%;
    min-width: 0;
    min-height: 34px !important;
    height: 34px;
    padding: 0 14px !important;
    border-radius: 999px;
    font-size: 0.78rem !important;
    white-space: nowrap;
}

.scan-history-actions .scan-actions-menu {
    min-width: 144px;
}

html:not([data-theme="dark"]) .scan-history-card {
    border-color: rgba(136, 140, 213, 0.28) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) .scan-history-card:hover {
    border-color: rgba(104, 112, 243, 0.28) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

html:not([data-theme="dark"]) .scan-history-time {
    color: var(--ui-primary-strong);
}

html:not([data-theme="dark"]) .scan-history-title,
html:not([data-theme="dark"]) .scan-history-stat strong {
    color: var(--ui-ink);
}

html:not([data-theme="dark"]) .scan-history-stat small {
    color: var(--ui-muted);
}

@container (max-width: 980px) {
    .scan-history-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .scan-history-stats {
        grid-template-columns: repeat(5, minmax(118px, 1fr));
    }

    .scan-history-actions {
        display: flex;
        flex-wrap: wrap;
        justify-self: start;
        width: auto;
        max-width: none;
    }

    .scan-history-actions .scan-action-btn,
    .scan-history-actions .scan-actions-more > summary {
        width: auto;
        min-width: 116px;
    }

    .scan-history-actions .scan-actions-more {
        width: auto;
    }
}

@container (max-width: 920px) {
    .scan-history-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (max-width: 620px) {
    .scan-history-card {
        padding: 18px;
        border-radius: 24px;
    }

    .scan-history-stats {
        grid-template-columns: 1fr 1fr;
    }

    .scan-history-actions,
    .scan-history-actions .scan-action-btn,
    .scan-history-actions .scan-actions-more {
        width: 100%;
    }

    .scan-history-actions .scan-actions-more > summary {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .scan-history-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .scan-history-stats {
        grid-template-columns: repeat(5, minmax(118px, 1fr));
    }

    .scan-history-actions {
        display: flex;
        flex-wrap: wrap;
        justify-self: start;
        width: auto;
        max-width: none;
    }

    .scan-history-actions .scan-action-btn,
    .scan-history-actions .scan-actions-more > summary {
        width: auto;
        min-width: 116px;
    }

    .scan-history-actions .scan-actions-more {
        width: auto;
    }
}

@media (max-width: 920px) {
    .scan-history-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .scan-history-card {
        padding: 18px;
        border-radius: 24px;
    }

    .scan-history-stats {
        grid-template-columns: 1fr 1fr;
    }

    .scan-history-actions,
    .scan-history-actions .scan-action-btn,
    .scan-history-actions .scan-actions-more {
        width: 100%;
    }

    .scan-history-actions .scan-actions-more > summary {
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .settings-tabs-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .settings-tabs-shell {
        gap: 12px;
    }

    .settings-tabs-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-inline: 0;
        padding: 0;
        overflow-x: visible;
        scrollbar-gutter: auto;
        scroll-snap-type: none;
    }

    .settings-tab-btn {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 10px 12px;
        border-radius: 18px;
        scroll-snap-align: none;
    }

    .settings-tab-btn span {
        font-size: 0.88rem;
        overflow-wrap: anywhere;
    }

    .settings-tab-btn small {
        font-size: 0.68rem;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .settings-tab-section.is-active {
        animation: none;
    }
}

/* Sidebar brand block removed: topbar already carries the site logo. */
body.shell-auth .app-sidebar::before,
html:not([data-theme="dark"]) body.shell-auth .app-sidebar::before {
    content: none !important;
    display: none !important;
}

body.shell-auth .app-sidebar-title,
body.shell-auth .app-sidebar-title::before {
    display: none !important;
}

body.shell-auth .app-sidebar-head,
html:not([data-theme="dark"]) body.shell-auth .app-sidebar-head {
    position: absolute !important;
    top: 24px !important;
    right: 28px !important;
    z-index: 4 !important;
    min-height: 0 !important;
    padding: 0 !important;
    justify-content: flex-end !important;
}

body.shell-auth .sidebar-collapse-btn,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn {
    width: auto !important;
    height: auto !important;
    min-height: 42px !important;
    gap: 8px !important;
    padding: 4px 6px 4px 16px !important;
    border: 1px solid rgba(136, 140, 213, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #8488ae !important;
    box-shadow: 0 12px 26px rgba(83, 92, 226, 0.08) !important;
    opacity: 1;
}

body.shell-auth .sidebar-collapse-label,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-label {
    color: currentColor;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

body.shell-auth .sidebar-collapse-icon,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-icon {
    width: 34px !important;
    height: 34px !important;
    padding: 8px !important;
    border: 1px solid rgba(104, 112, 243, 0.24) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 22px rgba(83, 92, 226, 0.12) !important;
    box-sizing: border-box;
    stroke-width: 2.35;
}

body.shell-auth .sidebar-collapse-btn:hover,
body.shell-auth .sidebar-collapse-btn:focus-visible,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:hover,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:focus-visible {
    background: transparent !important;
    border-color: rgba(83, 92, 226, 0.28) !important;
    box-shadow: 0 14px 28px rgba(83, 92, 226, 0.1) !important;
    color: var(--ui-primary-strong, #535ce2) !important;
    outline: none;
}

body.shell-auth .sidebar-collapse-btn:hover .sidebar-collapse-icon,
body.shell-auth .sidebar-collapse-btn:focus-visible .sidebar-collapse-icon,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:hover .sidebar-collapse-icon,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:focus-visible .sidebar-collapse-icon {
    border-color: transparent !important;
    background: #ffffff !important;
}

body.shell-auth.sidebar-collapsed .sidebar-collapse-label,
html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .sidebar-collapse-label {
    display: none !important;
}

body.shell-auth.sidebar-collapsed .sidebar-collapse-btn,
html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .sidebar-collapse-btn {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px !important;
    border-radius: 999px !important;
}

body.shell-auth .sidebar-nav,
html:not([data-theme="dark"]) body.shell-auth .sidebar-nav {
    padding-top: 52px !important;
}

body.shell-auth.sidebar-collapsed .sidebar-nav,
html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .sidebar-nav {
    padding-top: 52px !important;
}

@media (max-width: 1279px) {
    body.shell-auth .app-sidebar-head,
    html:not([data-theme="dark"]) body.shell-auth .app-sidebar-head {
        display: none !important;
    }
}

/* v1.431.1 - Minimal Cloudflare Turnstile integration */
.auth-challenge.captcha-box,
html:not([data-theme="dark"]) .auth-challenge.captcha-box {
    margin-top: 8px !important;
    padding: clamp(14px, 2.2vw, 20px) !important;
    gap: 14px !important;
    border: 1px solid rgba(136, 140, 213, 0.18) !important;
    border-radius: var(--clean-radius-lg, 26px) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(104, 112, 243, 0.09), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 255, 0.9)) !important;
    color: var(--clean-ink-soft, #303663) !important;
    box-shadow: 0 18px 42px rgba(66, 72, 143, 0.08) !important;
}

.auth-challenge-turnstile.captcha-box,
html:not([data-theme="dark"]) .auth-challenge-turnstile.captcha-box {
    padding: clamp(8px, 1.4vw, 12px) !important;
    gap: 0 !important;
    border-color: rgba(136, 140, 213, 0.14) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(104, 112, 243, 0.08), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 247, 255, 0.84)) !important;
    box-shadow: 0 16px 38px rgba(66, 72, 143, 0.07) !important;
}

.auth-challenge .captcha-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--clean-ink-soft, #303663);
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.auth-challenge .captcha-box-title {
    font-weight: 850;
    text-transform: uppercase;
}

.turnstile-shell {
    display: grid;
    min-width: 0;
    gap: 0;
}

.turnstile-widget-frame {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 246, 255, 0.78));
    overflow: hidden;
}

.auth-challenge-turnstile .turnstile-widget-frame {
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-challenge .turnstile-wrap {
    display: flex;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.auth-challenge .turnstile-wrap .cf-turnstile {
    width: 100%;
    min-height: 72px;
}

html[data-theme="dark"] .auth-challenge.captcha-box {
    border-color: rgba(162, 166, 255, 0.2);
    background:
        radial-gradient(circle at 12% 0%, rgba(141, 146, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(31, 34, 68, 0.92), rgba(21, 24, 52, 0.94));
}

html[data-theme="dark"] .auth-challenge-turnstile.captcha-box {
    border-color: rgba(162, 166, 255, 0.16) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(141, 146, 255, 0.14), transparent 42%),
        linear-gradient(135deg, rgba(31, 34, 68, 0.86), rgba(21, 24, 52, 0.9)) !important;
}

html[data-theme="dark"] .turnstile-widget-frame {
    border-color: rgba(162, 166, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 560px) {
    .auth-challenge.captcha-box,
    html:not([data-theme="dark"]) .auth-challenge.captcha-box {
        padding: 12px !important;
        border-radius: 22px !important;
    }

    .auth-challenge .captcha-box-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .turnstile-widget-frame {
        padding: 8px;
    }

    .auth-challenge-turnstile.captcha-box,
    html:not([data-theme="dark"]) .auth-challenge-turnstile.captcha-box {
        padding: 8px !important;
        border-radius: 20px !important;
    }

    .auth-challenge-turnstile .turnstile-widget-frame {
        padding: 6px;
        border-radius: 18px;
    }
}

/* v1.429 - Landing copy boost with growth metrics and competitor section. */
.landing-hero-boost .hero-copy h1 {
    font-size: clamp(2rem, 1.1rem + 3.1vw, 3.35rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
}

.landing-hero-boost .hero-copy > .muted {
    max-width: 760px;
    font-size: 1.03rem;
}

.hero-grid-boost {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 18px;
}

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

.hero-impact-card {
    border: 1px solid rgba(136, 140, 213, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.hero-impact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clean-ink-soft, var(--text-muted));
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.25;
}

.hero-impact-label .tariff-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    flex: 0 0 30px;
}

.hero-impact-label .tariff-feature-icon svg {
    width: 16px;
    height: 16px;
}

.hero-impact-card strong {
    font-family: "Space Grotesk", sans-serif;
    color: var(--clean-primary-strong, var(--accent-dark));
    font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.45rem);
    line-height: 0.98;
}

.hero-impact-card p {
    margin: 0;
    color: var(--clean-muted, var(--text-muted));
    font-size: 0.82rem;
    line-height: 1.42;
}

.step-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.step-card-head .tariff-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    flex: 0 0 30px;
}

.step-card-head .tariff-feature-icon svg {
    width: 16px;
    height: 16px;
}

.hero-side-boost {
    position: relative;
    align-self: center;
    min-height: 0;
    padding: 0;
}

.hero-side-boost::before {
    content: "";
    position: absolute;
    inset: -8% -7% -8% 8%;
    border-radius: 36px;
    background:
        radial-gradient(circle at 34% 28%, rgba(104, 112, 243, 0.2), transparent 42%),
        radial-gradient(circle at 76% 62%, rgba(0, 151, 255, 0.16), transparent 40%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(239, 244, 255, 0.68));
    filter: blur(2px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-command-center {
    position: relative;
    z-index: 1;
    min-height: clamp(390px, 31vw, 520px);
    padding: clamp(18px, 2vw, 26px);
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 32px;
    background:
        radial-gradient(circle at 12% 10%, rgba(104, 112, 243, 0.18), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(22, 197, 226, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 255, 0.88));
    box-shadow:
        0 32px 84px rgba(42, 52, 140, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 14px;
    overflow: hidden;
}

.hero-command-center::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(104, 112, 243, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 112, 243, 0.065) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 66% 42%, #000 0%, transparent 64%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-command-center::after {
    content: "";
    position: absolute;
    right: -92px;
    bottom: -112px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104, 112, 243, 0.2), transparent 68%);
    pointer-events: none;
}

.hero-command-top,
.hero-command-score,
.hero-control-grid,
.hero-priority-panel,
.hero-proof-strip {
    position: relative;
    z-index: 1;
}

.hero-command-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hero-command-top strong {
    display: block;
    margin-top: 5px;
    max-width: 430px;
    color: var(--clean-ink, #171b3f);
    font-size: clamp(1.28rem, 0.9rem + 1.05vw, 1.9rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero-command-kicker {
    color: var(--clean-primary-strong, #535ce2);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-live-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--clean-primary-strong, #535ce2);
    font-size: 0.78rem;
    font-weight: 850;
    box-shadow: 0 12px 26px rgba(66, 72, 143, 0.08);
}

.hero-live-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6870f3;
    box-shadow: 0 0 0 6px rgba(104, 112, 243, 0.14);
}

.hero-command-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 243, 255, 0.78));
}

.hero-command-score span,
.hero-control-card span,
.hero-priority-head span {
    color: var(--clean-muted, #7d83a9);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-command-score strong {
    display: block;
    margin-top: 4px;
    color: var(--clean-primary-strong, #535ce2);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 1.7rem + 2.2vw, 4.1rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.hero-command-score small,
.hero-control-card small {
    display: block;
    margin-top: 9px;
    color: var(--clean-muted, #7d83a9);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.4;
}

.hero-score-ring {
    width: clamp(94px, 8.5vw, 122px);
    height: clamp(94px, 8.5vw, 122px);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 56%, transparent 57%),
        conic-gradient(from -40deg, #6870f3 0 84%, rgba(136, 140, 213, 0.16) 84% 100%);
    display: grid;
    place-items: center;
    color: var(--clean-ink, #171b3f);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 1rem + 0.8vw, 1.95rem);
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(104, 112, 243, 0.13);
}

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

.hero-control-card {
    min-height: 148px;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 16px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.hero-control-card-primary {
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.24), transparent 26%),
        linear-gradient(135deg, #6870f3, #535ce2);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(83, 92, 226, 0.2);
}

.hero-control-card .tariff-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.hero-control-card .tariff-feature-icon svg {
    width: 19px;
    height: 19px;
}

.hero-control-card strong {
    color: var(--clean-ink, #171b3f);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.55rem, 1.05rem + 1vw, 2.15rem);
    line-height: 0.96;
}

.hero-control-card-primary span,
.hero-control-card-primary strong,
.hero-control-card-primary small {
    color: #ffffff;
}

.hero-control-card-primary .tariff-feature-icon {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero-priority-panel {
    padding: 16px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
}

.hero-priority-head {
    display: grid;
    gap: 4px;
}

.hero-priority-head strong {
    color: var(--clean-ink, #171b3f);
    font-size: 1rem;
    font-weight: 850;
}

.hero-priority-list {
    margin-top: 12px;
    gap: 10px;
}

.hero-priority-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--clean-ink-soft, #303663);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.45;
}

.hero-priority-dot {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 8px;
    background: rgba(104, 112, 243, 0.12);
}

.hero-priority-dot::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #6870f3;
    border-bottom: 2px solid #6870f3;
    transform: rotate(-45deg);
}

.hero-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-proof-strip span {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0 0 14px;
    border-left: 2px solid rgba(104, 112, 243, 0.34);
    color: var(--clean-ink-soft, #303663);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    background: transparent;
}

.hero-preview-picture {
    position: relative;
    z-index: 1;
    min-height: clamp(350px, 31vw, 520px);
    margin: 0;
    border: 0;
    border-radius: 30px;
    overflow: hidden;
    background: #eef3ff;
    box-shadow:
        0 30px 78px rgba(42, 52, 140, 0.17),
        0 10px 22px rgba(83, 92, 226, 0.1);
    aspect-ratio: 16 / 11;
    line-height: 0;
}

.hero-preview-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(104, 112, 243, 0.24);
    border-radius: inherit;
    pointer-events: none;
}

.hero-preview-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.landing-capabilities .capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.capability-card {
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    padding: 14px;
    display: grid;
    gap: 9px;
}

.capability-card h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.capability-card p {
    margin: 0;
    color: var(--clean-muted, var(--text-muted));
    font-size: 0.86rem;
    line-height: 1.48;
}

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

.competitor-card {
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    padding: 14px;
    display: grid;
    gap: 9px;
}

.competitor-card h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
}

.competitor-card p {
    margin: 0;
    color: var(--clean-muted, var(--text-muted));
    font-size: 0.88rem;
    line-height: 1.5;
}

.trust-card-security > .muted {
    margin-top: -2px;
}

.security-point-list {
    margin-top: 2px;
}

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

.security-detail-card {
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    padding: 11px;
    display: grid;
    gap: 7px;
}

.security-detail-card h3 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.28;
}

.security-detail-card p {
    margin: 0;
    color: var(--clean-muted, var(--text-muted));
    font-size: 0.82rem;
    line-height: 1.45;
}

@media (max-width: 1160px) {
    .hero-impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-capabilities .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .hero-side-boost {
        padding: 0;
    }

    .hero-command-center {
        min-height: auto;
    }

    .hero-preview-picture {
        min-height: clamp(280px, 58vw, 430px);
    }

    .hero-impact-grid {
        grid-template-columns: 1fr;
    }

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

    .security-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .landing-capabilities .capability-grid,
    .landing-competitor .competitor-grid {
        grid-template-columns: 1fr;
    }

    .hero-command-center {
        padding: 14px;
        border-radius: 24px;
    }

    .hero-command-top,
    .hero-command-score {
        grid-template-columns: 1fr;
    }

    .hero-command-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-live-chip {
        align-self: flex-start;
    }

    .hero-control-grid {
        grid-template-columns: 1fr;
    }

    .hero-proof-strip {
        grid-template-columns: 1fr;
    }

    .hero-command-score {
        gap: 14px;
    }

    .hero-score-ring {
        justify-self: start;
    }
}

/* v1.428 - Landing tariffs: two clear monthly plans with icon-led limits. */
.landing-tariffs {
    gap: 18px;
}

.landing-tariffs .panel-head {
    margin-bottom: 2px;
}

.landing-tariffs .panel-head .muted {
    max-width: 760px;
}

.landing-tariffs .tariff-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.landing-tariffs .tariff-card {
    min-height: 100%;
    padding: 22px !important;
    gap: 16px;
    border: 1px solid rgba(136, 140, 213, 0.2) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 255, 0.88)) !important;
    box-shadow: 0 18px 46px rgba(66, 72, 143, 0.08) !important;
}

.landing-tariffs .tariff-card-recommended {
    border-color: rgba(104, 112, 243, 0.42) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 255, 0.94)) !important;
    box-shadow: 0 22px 54px rgba(83, 92, 226, 0.15) !important;
}

.landing-tariffs .tariff-head {
    gap: 8px;
}

.landing-tariffs .tariff-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.landing-tariffs .tariff-title-row h3 {
    font-size: 1.3rem;
    line-height: 1.18;
}

.landing-tariffs .tariff-head p {
    margin: 0;
    color: var(--clean-muted, var(--text-muted));
    font-size: 0.94rem;
    line-height: 1.5;
}

.landing-tariffs .tariff-price {
    color: var(--clean-primary-strong, var(--accent-dark)) !important;
    font-size: 1.72rem;
    line-height: 1.1;
}

.landing-tariffs .tariff-list {
    padding-left: 0;
    list-style: none;
    gap: 12px;
    font-size: 0.94rem;
}

.landing-tariffs .tariff-list li,
.landing-tariffs .tariff-lock-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.landing-tariffs .tariff-list li {
    min-height: 50px;
}

.landing-tariffs .tariff-list strong {
    display: block;
    color: var(--clean-ink, var(--text-main));
    font-weight: 900;
    line-height: 1.25;
}

.landing-tariffs .tariff-list small {
    display: block;
    margin-top: 3px;
    color: var(--clean-muted, var(--text-muted));
    font-size: 0.84rem;
    line-height: 1.42;
}

.tariff-feature-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--clean-primary-strong, var(--accent-dark));
    background: rgba(104, 112, 243, 0.1);
    flex: 0 0 42px;
}

.tariff-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-tariffs .tariff-note {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(136, 140, 213, 0.16);
    color: var(--clean-ink-soft, var(--text-muted));
    font-size: 0.9rem;
    line-height: 1.5;
}

.landing-tariffs .tariff-cta {
    min-height: 46px;
}

.landing-tariffs .tariff-lock-note {
    padding: 14px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.landing-tariffs .tariff-lock-note p {
    margin: 0;
    color: var(--clean-ink-soft, var(--text-muted));
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .landing-tariffs .tariff-grid {
        grid-template-columns: 1fr;
    }

    .landing-tariffs .tariff-card {
        padding: 18px !important;
    }

    .landing-tariffs .tariff-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Topbar logo should read as branding, not as a pill button. */
body.shell-auth .brand,
html:not([data-theme="dark"]) body.shell-auth .brand {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.shell-auth .brand:hover,
body.shell-auth .brand:focus-visible,
html:not([data-theme="dark"]) body.shell-auth .brand:hover,
html:not([data-theme="dark"]) body.shell-auth .brand:focus-visible {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none;
}

body.shell-auth .brand-logo-main,
html:not([data-theme="dark"]) body.shell-auth .brand-logo-main {
    height: clamp(38px, 2.6vw, 50px) !important;
    max-width: min(320px, 42vw) !important;
}

/* Sidebar collapse action uses the same visual language as nav rows. */
body.shell-auth .app-sidebar-head,
html:not([data-theme="dark"]) body.shell-auth .app-sidebar-head {
    position: static !important;
    display: block !important;
    min-height: 0 !important;
    padding: 20px 14px 8px !important;
}

body.shell-auth .sidebar-collapse-btn,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn {
    width: 100% !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 22px !important;
    background: transparent !important;
    color: #8488ae !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    text-align: left !important;
}

body.shell-auth .sidebar-collapse-label,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-label {
    order: 2;
    color: currentColor;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
}

body.shell-auth .sidebar-collapse-icon,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-icon {
    order: 1;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    padding: 9px !important;
    border: 1px solid rgba(121, 126, 230, 0.18) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.62) !important;
    color: #8085da !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

body.shell-auth .sidebar-collapse-btn:hover,
body.shell-auth .sidebar-collapse-btn:focus-visible,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:hover,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:focus-visible {
    border-color: rgba(106, 112, 246, 0.2) !important;
    background: rgba(241, 240, 255, 0.88) !important;
    color: #5f65cd !important;
    box-shadow: none !important;
    outline: none;
}

body.shell-auth .sidebar-collapse-btn:hover .sidebar-collapse-icon,
body.shell-auth .sidebar-collapse-btn:focus-visible .sidebar-collapse-icon,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:hover .sidebar-collapse-icon,
html:not([data-theme="dark"]) body.shell-auth .sidebar-collapse-btn:focus-visible .sidebar-collapse-icon {
    border-color: rgba(106, 112, 246, 0.26) !important;
    background: rgba(255, 255, 255, 0.76) !important;
    color: #6267de !important;
}

body.shell-auth .sidebar-nav,
html:not([data-theme="dark"]) body.shell-auth .sidebar-nav {
    padding-top: 2px !important;
}

body.shell-auth.sidebar-collapsed .app-sidebar-head,
html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .app-sidebar-head {
    padding: 12px 10px 4px !important;
}

body.shell-auth.sidebar-collapsed .sidebar-collapse-btn,
html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .sidebar-collapse-btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    padding: 4px !important;
    border-radius: 18px !important;
}

body.shell-auth.sidebar-collapsed .sidebar-collapse-icon,
html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .sidebar-collapse-icon {
    margin: 0 auto;
}

body.shell-auth.sidebar-collapsed .sidebar-nav,
html:not([data-theme="dark"]) body.shell-auth.sidebar-collapsed .sidebar-nav {
    padding-top: 4px !important;
}

@media (max-width: 1279px) {
    body.shell-auth .app-sidebar-head,
    html:not([data-theme="dark"]) body.shell-auth .app-sidebar-head {
        display: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.433 - Reference landing page: clean white SaaS layout.                  */
/* -------------------------------------------------------------------------- */

body.shell-guest-nav {
    --container: 1228px;
    --cc-bg: #fbfcff;
    --cc-surface: #ffffff;
    --cc-surface-blue: #f5f8ff;
    --cc-ink: #111958;
    --cc-ink-soft: #25306f;
    --cc-muted: #68709d;
    --cc-border: #dfe5fb;
    --cc-border-strong: #cfd7fa;
    --cc-primary: #4c58ef;
    --cc-primary-strong: #3243db;
    --cc-primary-soft: #eef1ff;
    --cc-shadow: 0 18px 54px rgba(38, 51, 142, 0.08);
    --cc-shadow-soft: 0 10px 26px rgba(38, 51, 142, 0.055);
    color: var(--cc-ink);
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 237, 255, 0.68), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, var(--cc-bg) 44%, #ffffff 100%);
}

html[data-theme="dark"] body.shell-guest-nav {
    color: var(--cc-ink);
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 237, 255, 0.68), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, var(--cc-bg) 44%, #ffffff 100%);
}

body.shell-guest-nav .ambient-bg {
    display: none;
}

body.shell-guest-nav .app-content {
    background: transparent;
}

body.shell-guest-nav .page {
    width: min(var(--container), calc(100% - 32px));
    padding: 0;
    gap: 0;
}

body.shell-guest-nav .topbar {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--cc-border);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

body.shell-guest-nav .topbar-inner {
    min-height: 54px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 268px;
    align-items: center;
    gap: 20px;
}

body.shell-guest-nav .brand {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.shell-guest-nav .brand:hover,
body.shell-guest-nav .brand:focus-visible {
    transform: none;
    box-shadow: none;
    outline: none;
}

body.shell-guest-nav .brand-logo-main {
    height: 30px;
    max-width: 174px;
    object-fit: contain;
}

.landing-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 4vw, 54px);
}

.landing-primary-nav a,
body.shell-guest-nav .top-nav a {
    color: var(--cc-ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.landing-primary-nav a:hover,
body.shell-guest-nav .top-nav a:hover {
    color: var(--cc-primary-strong);
}

body.shell-guest-nav .top-nav-guest {
    justify-content: flex-end;
    gap: 14px;
}

body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    min-width: 76px;
    min-height: 36px;
    padding: 0 18px;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(36, 49, 137, 0.04);
}

body.shell-guest-nav .topbar-cta {
    min-width: 132px;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    box-shadow: 0 12px 22px rgba(61, 76, 226, 0.2);
}

.cc-home {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--cc-ink);
    display: grid;
    gap: 10px;
}

.cc-home * {
    min-width: 0;
}

.cc-panel {
    border: 1px solid var(--cc-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--cc-shadow-soft);
}

.cc-section {
    padding: 18px;
}

.cc-section h2,
.cc-hero h1,
.cc-product-head h2,
.cc-tariff-card h3,
.cc-feature-card h3,
.cc-step h3,
.cc-security-item h3,
.cc-footer h3 {
    color: var(--cc-ink);
    margin: 0;
}

.cc-section h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.28rem, 1vw + 1rem, 1.72rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cc-section-head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.cc-section-head p,
.cc-trust-card > p,
.cc-support-copy > p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.48;
}

.cc-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-left: 0;
    border-right: 0;
    border-top-color: var(--cc-border);
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(circle at 62% 12%, rgba(220, 232, 255, 0.95), transparent 25%),
        radial-gradient(circle at 21% 22%, rgba(246, 248, 255, 0.85), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.92));
    box-shadow: none;
}

.cc-hero-grid {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 12px;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(470px, 0.97fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: center;
}

.cc-hero-copy {
    padding-top: 18px;
}

.cc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f0f2ff;
    color: var(--cc-primary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.cc-hero h1 {
    max-width: 585px;
    margin-top: 19px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(3.05rem, 4.35vw, 4.22rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.97;
}

.cc-lead {
    max-width: 545px;
    margin: 18px 0 0;
    color: var(--cc-muted);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.42;
}

.cc-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cc-home .btn {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 28px;
    border: 1px solid var(--cc-border-strong);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: none;
}

.cc-home .btn:hover {
    transform: translateY(-1px);
}

.cc-home .btn-primary,
body.shell-guest-nav .topbar-cta {
    border-color: rgba(50, 67, 219, 0.36);
    background: linear-gradient(135deg, #5260f6 0%, #3344dd 100%);
    color: #ffffff;
}

.cc-primary {
    min-width: 172px;
    box-shadow: 0 14px 26px rgba(59, 73, 223, 0.2) !important;
}

.cc-secondary {
    min-width: 100px;
    background: #ffffff;
    color: var(--cc-primary-strong);
}

.cc-check-list,
.cc-task-list,
.cc-dot-list,
.cc-support-list,
.cc-tariff-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-check-list {
    margin-top: 20px;
    display: grid;
    gap: 9px;
}

.cc-check-list li {
    position: relative;
    padding-left: 22px;
    color: var(--cc-ink-soft);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.35;
}

.cc-check-list li::before,
.cc-task-list li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 0.35em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, transparent 0 48%, #fff 48% 100%),
        var(--cc-primary);
}

.cc-check-list li::after,
.cc-task-list li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: calc(0.35em + 3px);
    width: 6px;
    height: 3px;
    border-left: 1.8px solid #ffffff;
    border-bottom: 1.8px solid #ffffff;
    transform: rotate(-45deg);
}

.cc-metric-grid {
    margin-top: 19px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cc-mini-card {
    min-height: 137px;
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(36, 49, 137, 0.035);
}

.cc-mini-card-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--cc-muted);
    font-size: 0.71rem;
    font-weight: 850;
}

.cc-mini-card strong {
    color: var(--cc-primary);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cc-mini-card p {
    margin: 0;
    color: var(--cc-ink-soft);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
}

.cc-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(76, 88, 239, 0.18);
    border-radius: 11px;
    color: var(--cc-primary);
    background: var(--cc-primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cc-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-product-card {
    position: relative;
    z-index: 0;
    min-height: 522px;
    padding: 22px;
    border: 1px solid var(--cc-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 94% 0%, rgba(223, 237, 255, 0.96), transparent 34%),
        linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f3f7ff 100%);
    box-shadow: 0 28px 72px rgba(35, 51, 131, 0.12);
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.cc-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(76, 88, 239, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 88, 239, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 76% 18%, #000 0%, transparent 58%);
    pointer-events: none;
    z-index: -1;
}

.cc-product-head,
.cc-score-card,
.cc-dashboard-grid,
.cc-task-card,
.cc-proof-strip {
    position: relative;
}

.cc-product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cc-product-head span,
.cc-score-card span,
.cc-dashboard-card span,
.cc-task-card > span {
    display: block;
    color: var(--cc-primary);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
}

.cc-product-head h2 {
    margin-top: 6px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.38rem, 1.4vw + 1rem, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.cc-product-head b {
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--cc-primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(36, 49, 137, 0.05);
}

.cc-product-head b::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cc-primary);
    box-shadow: 0 0 0 5px rgba(76, 88, 239, 0.1);
}

.cc-score-card {
    min-height: 108px;
    padding: 16px 20px;
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.cc-score-card strong {
    display: block;
    margin-top: 5px;
    color: var(--cc-primary);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.cc-score-card small,
.cc-dashboard-card small {
    display: block;
    margin-top: 7px;
    color: var(--cc-muted);
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.35;
}

.cc-ring {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #ffffff 0 52%, transparent 53%),
        conic-gradient(from -38deg, #5260f6 0 84%, rgba(76, 88, 239, 0.16) 84% 100%);
    display: grid;
    place-items: center;
    color: var(--cc-ink);
    font-size: 0.88rem;
    font-weight: 950;
}

.cc-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cc-dashboard-card {
    min-height: 136px;
    padding: 15px;
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    display: grid;
    gap: 8px;
    align-content: start;
}

.cc-dashboard-card .cc-icon {
    width: 30px;
    height: 30px;
}

.cc-dashboard-card strong {
    color: var(--cc-ink);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.cc-dashboard-card-hot {
    border-color: rgba(76, 88, 239, 0.3);
    background:
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.28), transparent 34%),
        linear-gradient(135deg, #5663f7, #3344dc);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(58, 71, 221, 0.22);
}

.cc-dashboard-card-hot span,
.cc-dashboard-card-hot strong,
.cc-dashboard-card-hot small {
    color: #ffffff;
}

.cc-dashboard-card-hot .cc-icon {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.cc-task-card {
    padding: 15px 18px 14px;
    border: 1px solid var(--cc-border);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.74);
}

.cc-task-card > strong {
    display: block;
    margin-top: 4px;
    color: var(--cc-ink);
    font-size: 0.92rem;
    font-weight: 950;
}

.cc-task-list {
    margin-top: 9px;
    display: grid;
    gap: 7px;
}

.cc-task-list li {
    position: relative;
    padding-left: 23px;
    color: var(--cc-ink-soft);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
}

.cc-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cc-proof-strip span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: var(--cc-ink-soft);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.cc-proof-strip .cc-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
}

.cc-steps-section {
    margin-top: 10px;
}

.cc-steps-section h2 {
    margin-bottom: 14px;
}

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

.cc-step {
    position: relative;
    min-height: 96px;
    padding: 15px 16px 14px 48px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.cc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 48%;
    width: 14px;
    height: 1px;
    border-top: 2px dotted #8e99d7;
}

.cc-step:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -17px;
    top: calc(48% - 3px);
    width: 6px;
    height: 6px;
    border-top: 1.8px solid #4451df;
    border-right: 1.8px solid #4451df;
    transform: rotate(45deg);
}

.cc-step-number {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cc-primary-soft);
    color: var(--cc-primary);
    font-size: 0.86rem;
    font-weight: 950;
}

.cc-step h3,
.cc-feature-card h3 {
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.25;
}

.cc-step p,
.cc-feature-card p {
    margin: 6px 0 0;
    color: var(--cc-muted);
    font-size: 0.73rem;
    font-weight: 650;
    line-height: 1.42;
}

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

.cc-feature-card {
    min-height: 98px;
    padding: 15px 16px;
    border: 1px solid var(--cc-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cc-feature-card .cc-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.cc-tariffs {
    padding-bottom: 12px;
}

.cc-tariff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cc-tariff-card {
    min-height: 300px;
    padding: 18px 18px 10px;
    border: 1px solid var(--cc-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 12px;
}

.cc-tariff-card.is-featured {
    border-color: rgba(76, 88, 239, 0.42);
    box-shadow: 0 16px 34px rgba(58, 71, 221, 0.09);
}

.cc-tariff-card header {
    display: grid;
    gap: 4px;
}

.cc-tariff-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-tariff-title h3 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.cc-tariff-title span {
    min-height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--cc-primary-soft);
    color: var(--cc-primary);
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cc-tariff-card header p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.cc-tariff-card header strong {
    color: var(--cc-primary);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cc-tariff-list {
    display: grid;
    gap: 7px;
}

.cc-tariff-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.cc-tariff-list .cc-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
}

.cc-tariff-list .cc-icon svg {
    width: 14px;
    height: 14px;
}

.cc-tariff-list b {
    display: block;
    color: var(--cc-ink);
    font-size: 0.8rem;
    font-weight: 950;
    line-height: 1.18;
}

.cc-tariff-list small {
    display: block;
    margin-top: 2px;
    color: var(--cc-muted);
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.28;
}

.cc-tariff-cta {
    width: 100%;
    min-height: 30px !important;
    margin-top: auto;
    border-radius: 6px !important;
    font-size: 0.76rem !important;
}

.cc-lock-note {
    margin-top: 12px;
    padding: 9px 14px;
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.cc-lock-note .cc-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.cc-lock-note p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.cc-trust-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 10px;
}

.cc-trust-card,
.cc-support-card {
    min-height: 218px;
}

.cc-trust-card h2,
.cc-support-card h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.55rem, 1.3vw + 1rem, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.cc-dot-list {
    margin-top: 9px;
    display: grid;
    gap: 4px;
}

.cc-dot-list li {
    position: relative;
    padding-left: 14px;
    color: var(--cc-ink-soft);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.35;
}

.cc-dot-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--cc-primary);
}

.cc-security-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.cc-security-item {
    min-height: 70px;
    padding: 10px;
    border: 1px solid var(--cc-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.76);
}

.cc-security-item h3 {
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1.18;
}

.cc-security-item p {
    margin: 5px 0 0;
    color: var(--cc-muted);
    font-size: 0.66rem;
    font-weight: 650;
    line-height: 1.3;
}

.cc-support-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: 1fr auto;
    gap: 12px;
    overflow: hidden;
}

.cc-support-copy,
.cc-support-art,
.cc-support-cta {
    position: relative;
    z-index: 1;
}

.cc-support-list {
    margin-top: 15px;
    display: grid;
    gap: 10px;
}

.cc-support-list li {
    display: grid;
    grid-template-columns: 28px 135px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--cc-ink-soft);
    font-size: 0.78rem;
    font-weight: 850;
}

.cc-support-list .cc-icon {
    width: 25px;
    height: 25px;
    border-radius: 8px;
}

.cc-support-list b {
    color: var(--cc-primary);
    font-weight: 950;
}

.cc-support-art {
    align-self: center;
    justify-self: center;
    width: 188px;
    height: 132px;
}

.cc-chat-bubble {
    position: absolute;
    right: 12px;
    top: 0;
    width: 66px;
    height: 40px;
    border-radius: 7px;
    background: linear-gradient(135deg, #5663f7, #3344dc);
}

.cc-chat-bubble::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: -8px;
    border-style: solid;
    border-width: 8px 8px 0 0;
    border-color: #3344dc transparent transparent transparent;
}

.cc-chat-bubble::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 9px 0 rgba(255, 255, 255, 0.55);
}

.cc-message-card {
    position: absolute;
    left: 7px;
    bottom: 12px;
    width: 86px;
    height: 58px;
    border-radius: 9px;
    background: #eef1ff;
    box-shadow: inset 0 0 0 1px rgba(76, 88, 239, 0.15);
}

.cc-message-card span {
    position: absolute;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cc-primary);
}

.cc-message-card span:nth-child(1) {
    left: 16px;
}

.cc-message-card span:nth-child(2) {
    left: 36px;
}

.cc-message-card span:nth-child(3) {
    left: 56px;
}

.cc-headset {
    position: absolute;
    right: 3px;
    bottom: 0;
    width: 88px;
    height: 86px;
    border: 7px solid var(--cc-primary-strong);
    border-bottom: 0;
    border-radius: 52px 52px 0 0;
}

.cc-headset i,
.cc-headset b {
    position: absolute;
    bottom: -15px;
    width: 18px;
    height: 38px;
    border-radius: 8px;
    background: var(--cc-primary-strong);
}

.cc-headset i {
    left: -10px;
}

.cc-headset b {
    right: -10px;
}

.cc-headset em {
    position: absolute;
    right: -18px;
    bottom: -17px;
    width: 24px;
    height: 8px;
    border-radius: 99px;
    background: var(--cc-primary-strong);
}

.cc-support-cta {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 32px !important;
    border-radius: 999px !important;
}

.cc-faq {
    margin-bottom: 0;
}

.cc-faq h2 {
    margin-bottom: 12px;
}

.cc-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 40px;
}

.cc-faq-item {
    border: 1px solid var(--cc-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.cc-faq-item summary {
    min-height: 32px;
    padding: 0 34px 0 14px;
    color: var(--cc-ink-soft);
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    font-size: 0.78rem;
    font-weight: 950;
    position: relative;
}

.cc-faq-item summary::-webkit-details-marker {
    display: none;
}

.cc-faq-item summary::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--cc-primary);
    border-right: 2px solid var(--cc-primary);
    transform: rotate(45deg);
}

.cc-faq-item[open] summary::after {
    transform: rotate(135deg);
}

.cc-faq-item p {
    margin: 0;
    padding: 0 14px 12px;
    color: var(--cc-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.cc-footer {
    margin-top: 12px;
    padding: 0 4px 16px;
    border-top: 1px solid var(--cc-border);
}

.cc-footer-grid {
    min-height: 58px;
    padding-top: 12px;
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 1.05fr 0.8fr;
    gap: 34px;
    align-items: start;
}

.cc-footer h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1.2;
}

.cc-footer img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.cc-footer p,
.cc-footer a {
    margin: 3px 0 0;
    color: var(--cc-muted);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.cc-footer a {
    color: var(--cc-primary);
}

@media (max-width: 1180px) {
    body.shell-guest-nav .topbar-inner {
        grid-template-columns: 190px minmax(0, 1fr) 244px;
    }

    .landing-primary-nav {
        gap: 22px;
    }

    .cc-hero-grid {
        grid-template-columns: 1fr;
    }

    .cc-hero-copy {
        padding-top: 6px;
    }

    .cc-product-card {
        max-width: 680px;
    }

    .cc-steps,
    .cc-feature-grid,
    .cc-security-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-step::before,
    .cc-step::after {
        display: none;
    }
}

@media (max-width: 860px) {
    body.shell-guest-nav .topbar-inner {
        min-height: 62px;
        grid-template-columns: 1fr auto;
    }

    .landing-primary-nav {
        display: none;
    }

    body.shell-guest-nav .brand-logo-main {
        height: 28px;
        max-width: 164px;
    }

    body.shell-guest-nav .top-nav-guest > a:not(.btn) {
        display: none;
    }

    .cc-metric-grid,
    .cc-dashboard-grid,
    .cc-tariff-grid,
    .cc-trust-grid,
    .cc-faq-grid,
    .cc-footer-grid {
        grid-template-columns: 1fr;
    }

    .cc-product-card {
        min-height: auto;
    }

    .cc-support-card {
        grid-template-columns: 1fr;
    }

    .cc-support-art {
        justify-self: start;
        min-height: 132px;
    }
}

@media (max-width: 620px) {
    html,
    body.shell-guest-nav {
        overflow-x: hidden;
    }

    .cc-home {
        width: 100%;
        zoom: 1;
    }

    body.shell-guest-nav .page,
    .cc-hero-grid {
        width: min(calc(100% - 20px), var(--container));
    }

    .cc-hero {
        width: 100%;
        margin-left: 0;
        border-left: 1px solid var(--cc-border);
        border-right: 1px solid var(--cc-border);
        border-radius: 0 0 18px 18px;
        overflow: hidden;
    }

    .cc-hero-grid {
        width: 100%;
        padding: 18px 14px 10px;
        display: block;
    }

    .cc-hero-copy,
    .cc-product-card {
        width: calc(100vw - 68px);
        max-width: calc(100vw - 68px);
    }

    .cc-hero h1 {
        max-width: calc(100vw - 76px);
        font-size: clamp(2.25rem, 11vw, 2.85rem);
        letter-spacing: -0.06em;
    }

    .cc-lead {
        max-width: 100%;
        font-size: 0.88rem;
        overflow-wrap: anywhere;
    }

    .cc-product-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .cc-product-card {
        margin-top: 18px;
    }

    .cc-product-head b {
        align-self: flex-start;
    }

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

    .cc-home .btn {
        width: 100%;
    }

    .cc-score-card,
    .cc-proof-strip,
    .cc-steps,
    .cc-feature-grid,
    .cc-security-grid {
        grid-template-columns: 1fr;
    }

    .cc-score-card {
        justify-items: start;
    }

    .cc-product-card,
    .cc-mini-card,
    .cc-step,
    .cc-feature-card,
    .cc-tariff-card,
    .cc-trust-card,
    .cc-support-card,
    .cc-faq {
        width: 100%;
        overflow: hidden;
    }

    .cc-check-list li,
    .cc-mini-card p,
    .cc-dashboard-card small,
    .cc-task-list li,
    .cc-step p,
    .cc-feature-card p,
    .cc-tariff-list small {
        overflow-wrap: anywhere;
    }

    .cc-section {
        padding: 14px;
    }

    .cc-step {
        min-height: auto;
    }

    .cc-support-list li {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .cc-support-list b {
        grid-column: 2;
    }
}

/* v1.434 - Compact the landing to match the supplied 1440x1800 reference. */
@media (min-width: 861px) {
    .cc-home {
        gap: 8px;
    }

    .cc-hero-grid {
        padding: 22px 0 10px;
    }

    .cc-hero-copy {
        padding-top: 8px;
    }

    .cc-pill {
        min-height: 24px;
        padding: 0 16px;
        font-size: 0.66rem;
    }

    .cc-hero h1 {
        max-width: 540px;
        margin-top: 16px;
        font-size: clamp(2.85rem, 3.72vw, 3.58rem);
        line-height: 0.98;
    }

    .cc-lead {
        max-width: 515px;
        margin-top: 14px;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .cc-actions {
        margin-top: 18px;
    }

    .cc-home .btn {
        min-height: 38px;
        padding: 0 24px;
        font-size: 0.76rem;
    }

    .cc-check-list {
        margin-top: 16px;
        gap: 7px;
    }

    .cc-check-list li {
        font-size: 0.74rem;
    }

    .cc-metric-grid {
        margin-top: 16px;
        gap: 10px;
    }

    .cc-mini-card {
        min-height: 112px;
        padding: 12px 14px;
        gap: 6px;
    }

    .cc-mini-card-label {
        font-size: 0.64rem;
        gap: 8px;
    }

    .cc-mini-card strong {
        font-size: 1.74rem;
    }

    .cc-mini-card p {
        font-size: 0.68rem;
        line-height: 1.28;
    }

    .cc-mini-card .cc-icon,
    .cc-icon {
        width: 27px;
        height: 27px;
        border-radius: 9px;
    }

    .cc-icon svg {
        width: 14px;
        height: 14px;
    }

    .cc-product-card {
        min-height: 486px;
        padding: 19px;
        gap: 10px;
        border-radius: 24px;
    }

    .cc-product-head h2 {
        font-size: clamp(1.25rem, 1.25vw + 1rem, 1.72rem);
    }

    .cc-product-head span,
    .cc-score-card span,
    .cc-dashboard-card span,
    .cc-task-card > span {
        font-size: 0.59rem;
    }

    .cc-product-head b {
        min-height: 25px;
        font-size: 0.66rem;
    }

    .cc-score-card {
        min-height: 96px;
        padding: 13px 17px;
        border-radius: 16px;
    }

    .cc-score-card strong {
        font-size: 2.45rem;
    }

    .cc-score-card small,
    .cc-dashboard-card small {
        margin-top: 5px;
        font-size: 0.65rem;
        line-height: 1.28;
    }

    .cc-ring {
        width: 78px;
        height: 78px;
        font-size: 0.75rem;
    }

    .cc-dashboard-grid {
        gap: 10px;
    }

    .cc-dashboard-card {
        min-height: 118px;
        padding: 13px;
        gap: 6px;
        border-radius: 14px;
    }

    .cc-dashboard-card strong {
        font-size: 1.86rem;
    }

    .cc-task-card {
        padding: 12px 15px;
        border-radius: 15px;
    }

    .cc-task-card > strong {
        font-size: 0.82rem;
    }

    .cc-task-list {
        margin-top: 7px;
        gap: 5px;
    }

    .cc-task-list li {
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .cc-proof-strip span {
        min-height: 31px;
        font-size: 0.68rem;
    }

    .cc-proof-strip .cc-icon {
        width: 24px;
        height: 24px;
    }

    .cc-section {
        padding: 14px;
    }

    .cc-section h2 {
        font-size: clamp(1.13rem, 0.85vw + 1rem, 1.42rem);
    }

    .cc-section-head {
        gap: 4px;
        margin-bottom: 10px;
    }

    .cc-section-head p,
    .cc-trust-card > p,
    .cc-support-copy > p {
        font-size: 0.72rem;
        line-height: 1.34;
    }

    .cc-steps-section {
        margin-top: 8px;
    }

    .cc-steps-section h2,
    .cc-faq h2 {
        margin-bottom: 10px;
    }

    .cc-steps {
        gap: 12px;
    }

    .cc-step {
        min-height: 78px;
        padding: 12px 12px 11px 42px;
    }

    .cc-step:not(:last-child)::after {
        right: -12px;
        width: 12px;
    }

    .cc-step:not(:last-child)::before {
        right: -15px;
    }

    .cc-step-number {
        left: 12px;
        top: 12px;
        width: 23px;
        height: 23px;
        font-size: 0.76rem;
    }

    .cc-step h3,
    .cc-feature-card h3 {
        font-size: 0.76rem;
        line-height: 1.18;
    }

    .cc-step p,
    .cc-feature-card p {
        margin-top: 5px;
        font-size: 0.63rem;
        line-height: 1.31;
    }

    .cc-feature-grid {
        gap: 12px;
    }

    .cc-feature-card {
        min-height: 74px;
        padding: 11px 13px;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
    }

    .cc-feature-card .cc-icon {
        width: 29px;
        height: 29px;
    }

    .cc-tariff-grid {
        gap: 16px;
    }

    .cc-tariff-card {
        min-height: 262px;
        padding: 13px 16px 9px;
        gap: 8px;
    }

    .cc-tariff-title h3 {
        font-size: 1rem;
    }

    .cc-tariff-title span {
        min-height: 21px;
        font-size: 0.59rem;
    }

    .cc-tariff-card header {
        gap: 3px;
    }

    .cc-tariff-card header p {
        font-size: 0.7rem;
    }

    .cc-tariff-card header strong {
        font-size: 1.22rem;
    }

    .cc-tariff-list {
        gap: 4px;
    }

    .cc-tariff-list li {
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 7px;
    }

    .cc-tariff-list .cc-icon {
        width: 22px;
        height: 22px;
        border-radius: 8px;
    }

    .cc-tariff-list b {
        font-size: 0.68rem;
    }

    .cc-tariff-list small {
        font-size: 0.58rem;
        line-height: 1.22;
    }

    .cc-tariff-cta {
        min-height: 26px !important;
        font-size: 0.66rem !important;
    }

    .cc-lock-note {
        margin-top: 9px;
        padding: 7px 12px;
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .cc-lock-note .cc-icon {
        width: 22px;
        height: 22px;
    }

    .cc-lock-note p {
        font-size: 0.65rem;
    }

    .cc-trust-card,
    .cc-support-card {
        min-height: 186px;
    }

    .cc-trust-card h2,
    .cc-support-card h2 {
        font-size: clamp(1.22rem, 1vw + 1rem, 1.58rem);
    }

    .cc-dot-list {
        margin-top: 7px;
        gap: 3px;
    }

    .cc-dot-list li {
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .cc-security-grid {
        margin-top: 9px;
        gap: 7px;
    }

    .cc-security-item {
        min-height: 57px;
        padding: 8px;
        border-radius: 9px;
    }

    .cc-security-item h3 {
        font-size: 0.62rem;
    }

    .cc-security-item p {
        margin-top: 4px;
        font-size: 0.56rem;
        line-height: 1.22;
    }

    .cc-support-card {
        grid-template-columns: minmax(0, 1fr) 184px;
        gap: 9px;
    }

    .cc-support-list {
        margin-top: 11px;
        gap: 7px;
    }

    .cc-support-list li {
        grid-template-columns: 24px 118px minmax(0, 1fr);
        gap: 8px;
        font-size: 0.66rem;
    }

    .cc-support-list .cc-icon {
        width: 22px;
        height: 22px;
    }

    .cc-support-art {
        width: 160px;
        height: 108px;
        transform: scale(0.9);
        transform-origin: center;
    }

    .cc-support-cta {
        min-height: 27px !important;
        font-size: 0.68rem !important;
    }

    .cc-faq-grid {
        gap: 7px 34px;
    }

    .cc-faq-item summary {
        min-height: 28px;
        font-size: 0.67rem;
    }

    .cc-faq-item p {
        font-size: 0.68rem;
    }

    .cc-footer {
        margin-top: 9px;
        padding-bottom: 8px;
    }

    .cc-footer-grid {
        min-height: 50px;
        padding-top: 9px;
    }
}

.cc-faq-column {
    display: grid;
    gap: 8px;
    align-content: start;
}

@media (min-width: 861px) {
    .cc-steps-section {
        margin-top: 0;
    }

    .cc-trust-card,
    .cc-support-card {
        min-height: 172px;
    }

    .cc-security-item {
        min-height: 50px;
        padding: 7px;
    }

    .cc-support-art {
        transform: scale(0.82);
    }

    .cc-faq {
        padding: 7px 14px 2px;
    }

    .cc-faq-grid,
    .cc-faq-column {
        gap: 2px 34px;
    }

    .cc-faq-item summary {
        min-height: 19px;
        padding-left: 12px;
        font-size: 0.58rem;
        line-height: 1.1;
    }

    .cc-faq h2 {
        margin-bottom: 2px;
        font-size: 1.08rem;
    }

    .cc-footer {
        margin-top: -6px;
        padding-bottom: 2px;
    }

    .cc-footer-grid {
        min-height: 40px;
        padding-top: 3px;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.435 - Landing reference remake: dashboard mockup, 4 metrics, adaptive UI */
/* -------------------------------------------------------------------------- */

body.shell-guest-nav {
    --container: 1228px;
    --cc-bg: #fbfcff;
    --cc-surface: #ffffff;
    --cc-surface-soft: #f7f9ff;
    --cc-ink: #111747;
    --cc-ink-soft: #27306f;
    --cc-muted: #6e77a6;
    --cc-border: #dfe5fb;
    --cc-border-strong: #cfd7fa;
    --cc-primary: #4f5cf4;
    --cc-primary-strong: #3546df;
    --cc-primary-soft: #eef1ff;
    --cc-shadow: 0 18px 44px rgba(39, 52, 140, 0.08);
    color: var(--cc-ink);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 42%, #ffffff 100%);
}

html[data-theme="dark"] body.shell-guest-nav {
    color: var(--cc-ink);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 42%, #ffffff 100%);
}

body.shell-guest-nav .ambient-bg {
    display: none;
}

body.shell-guest-nav .app-content {
    background: transparent;
}

body.shell-guest-nav .page {
    width: min(var(--container), calc(100% - 32px));
    padding: 0 0 18px;
    gap: 0;
}

body.shell-guest-nav .topbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(213, 220, 248, 0.82);
    box-shadow: 0 8px 24px rgba(39, 52, 140, 0.035);
    backdrop-filter: blur(16px);
}

body.shell-guest-nav .topbar-inner {
    min-height: 55px;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr) 270px;
    align-items: center;
    gap: 18px;
}

body.shell-guest-nav .brand {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.shell-guest-nav .brand:hover,
body.shell-guest-nav .brand:focus-visible {
    transform: none;
    box-shadow: none;
    outline: none;
}

body.shell-guest-nav .brand-logo-main {
    height: 30px;
    max-width: 174px;
    object-fit: contain;
}

.landing-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
}

.landing-primary-nav a,
body.shell-guest-nav .top-nav a {
    color: var(--cc-ink-soft);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.landing-primary-nav a:hover,
body.shell-guest-nav .top-nav a:hover {
    color: var(--cc-primary-strong);
}

body.shell-guest-nav .top-nav-guest {
    justify-content: flex-end;
    gap: 12px;
}

body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    min-width: 72px;
    min-height: 34px;
    padding: 0 17px;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(38, 51, 142, 0.04);
}

body.shell-guest-nav .topbar-cta {
    min-width: 134px;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 12px 22px rgba(61, 76, 226, 0.2);
}

.cc-home {
    width: 100%;
    zoom: normal;
    color: var(--cc-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    display: grid;
    gap: 12px;
}

.cc-home * {
    min-width: 0;
    letter-spacing: 0;
}

.cc-panel {
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 26px rgba(39, 52, 140, 0.045);
}

.cc-section {
    padding: 18px;
}

.cc-section h2,
.cc-hero h1,
.cc-mock-head h2,
.cc-tariff-card h3,
.cc-feature-card h3,
.cc-step h3,
.cc-security-item h3,
.cc-footer h3 {
    margin: 0;
    color: var(--cc-ink);
    letter-spacing: 0;
}

.cc-section h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.12;
}

.cc-section-head {
    display: grid;
    gap: 5px;
    margin-bottom: 14px;
}

.cc-section-head p,
.cc-trust-card > p,
.cc-support-copy > p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.42;
}

.cc-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border: 0;
    border-bottom: 1px solid rgba(224, 230, 252, 0.92);
    border-radius: 0;
    background:
        radial-gradient(circle at 63% 3%, rgba(223, 235, 255, 0.72), transparent 31%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: none;
}

.cc-hero-grid {
    width: min(var(--container), calc(100% - 32px));
    min-height: 392px;
    margin: 0 auto;
    padding: 31px 0 23px;
    display: grid;
    grid-template-columns: 512px minmax(0, 686px);
    gap: 30px;
    align-items: center;
}

.cc-hero-copy {
    width: auto;
    max-width: none;
    padding-top: 8px;
}

.cc-pill {
    min-height: 28px;
    padding: 0 17px;
    border-radius: 999px;
    background: #f0f3ff;
    color: var(--cc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.cc-hero h1 {
    max-width: 555px;
    margin-top: 19px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.03;
}

.cc-hero h1 span {
    display: block;
}

.cc-lead {
    max-width: 528px;
    margin: 18px 0 0;
    color: var(--cc-muted);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.42;
}

.cc-lead span {
    display: inline;
}

.cc-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cc-home .btn {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 28px;
    border: 1px solid var(--cc-border-strong);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: none;
}

.cc-home .btn:hover {
    transform: translateY(-1px);
}

.cc-home .btn-primary,
body.shell-guest-nav .topbar-cta {
    border-color: rgba(50, 67, 219, 0.34);
    background: linear-gradient(135deg, #5361f5 0%, #3445dd 100%);
    color: #ffffff;
}

.cc-primary {
    min-width: 175px;
    box-shadow: 0 14px 26px rgba(59, 73, 223, 0.22) !important;
}

.cc-secondary {
    min-width: 154px;
    background: #ffffff;
    color: var(--cc-primary-strong);
}

.cc-hero-proof,
.cc-task-list,
.cc-support-list,
.cc-tariff-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-hero-proof {
    margin-top: 23px;
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.cc-hero-proof li {
    position: relative;
    padding-left: 24px;
    color: var(--cc-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.cc-hero-proof li::before,
.cc-task-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f1f3ff;
    box-shadow: inset 0 0 0 1px rgba(76, 88, 239, 0.24);
}

.cc-hero-proof li::after,
.cc-task-list li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--cc-primary);
    border-bottom: 2px solid var(--cc-primary);
    transform: rotate(-45deg);
}

.cc-dashboard-shell {
    width: 100%;
    min-height: 348px;
    padding: 13px;
    border: 1px solid var(--cc-border);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 62px rgba(39, 52, 140, 0.13);
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
}

.cc-mock-sidebar {
    padding: 5px 0 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
}

.cc-mock-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    color: var(--cc-ink);
    font-size: 8px;
    font-weight: 950;
}

.cc-mock-brand img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cc-mock-nav {
    display: grid;
    gap: 4px;
    align-content: start;
}

.cc-mock-nav span {
    min-height: 24px;
    padding: 0 7px;
    border-radius: 7px;
    color: var(--cc-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

.cc-mock-nav span.is-active {
    color: var(--cc-primary);
    background: #f0f2ff;
}

.cc-mock-nav .cc-icon {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cc-mock-nav .cc-icon svg {
    width: 11px;
    height: 11px;
    stroke-width: 2;
}

.cc-mock-plan {
    padding: 11px 10px;
    border-radius: 12px;
    background: #f1f3ff;
    display: grid;
    gap: 3px;
}

.cc-mock-plan small,
.cc-mock-plan span {
    color: var(--cc-muted);
    font-size: 8px;
    font-weight: 750;
    line-height: 1.25;
}

.cc-mock-plan strong {
    color: var(--cc-ink);
    font-size: 13px;
    font-weight: 950;
}

.cc-mock-plan b {
    width: fit-content;
    margin-top: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--cc-primary);
    font-size: 8px;
    font-weight: 950;
}

.cc-mock-main {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 11px;
}

.cc-mock-head {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cc-mock-head h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.cc-mock-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-mock-head-actions span {
    min-height: 24px;
    padding: 0 12px;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    color: var(--cc-ink-soft);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 900;
}

.cc-mock-head-actions i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 68% 35%, #ffe0c4 0 12%, transparent 13%),
        radial-gradient(circle at 50% 38%, #f39a95 0 32%, transparent 33%),
        linear-gradient(135deg, #5a64f4, #ffc0c9);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.cc-mock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.cc-mock-card {
    min-height: 136px;
    padding: 14px 14px 12px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    align-content: start;
    gap: 4px;
}

.cc-mock-card span,
.cc-mock-tasks > span {
    color: var(--cc-ink-soft);
    font-size: 9px;
    font-weight: 950;
    line-height: 1.1;
}

.cc-mock-card small {
    color: var(--cc-muted);
    font-size: 8px;
    font-weight: 750;
}

.cc-mock-card strong {
    color: var(--cc-primary);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.cc-mock-card p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.26;
}

.cc-line-chart {
    height: 34px;
    margin-top: 4px;
    position: relative;
}

.cc-line-chart svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.cc-line-chart polyline {
    fill: none;
    stroke: #8790ff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-line-chart circle {
    fill: #8790ff;
    stroke: #ffffff;
    stroke-width: 1.2;
}

.cc-bars {
    height: 42px;
    margin-top: 7px;
    display: flex;
    align-items: end;
    gap: 5px;
}

.cc-bars i {
    width: 7px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #7d87ff, rgba(125, 135, 255, 0.14));
}

.cc-bars i:nth-child(1) { height: 23px; }
.cc-bars i:nth-child(2) { height: 33px; }
.cc-bars i:nth-child(3) { height: 27px; }
.cc-bars i:nth-child(4) { height: 41px; }
.cc-bars i:nth-child(5) { height: 31px; }
.cc-bars i:nth-child(6) { height: 18px; }
.cc-bars i:nth-child(7) { height: 13px; }
.cc-bars i:nth-child(8) { height: 25px; }
.cc-bars i:nth-child(9) { height: 37px; }
.cc-bars i:nth-child(10) { height: 22px; }

.cc-skeleton-list {
    margin-top: 10px;
    display: grid;
    gap: 9px;
}

.cc-skeleton-list i {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(97, 108, 238, 0.16), rgba(97, 108, 238, 0.05));
}

.cc-skeleton-list i:nth-child(1) { width: 92%; }
.cc-skeleton-list i:nth-child(2) { width: 70%; }
.cc-skeleton-list i:nth-child(3) { width: 82%; }

.cc-mock-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
}

.cc-mock-tasks {
    min-height: 102px;
    padding: 13px 15px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.cc-mock-tasks strong {
    display: block;
    margin-top: 4px;
    color: var(--cc-ink);
    font-size: 12px;
    font-weight: 950;
}

.cc-mock-tasks ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 5px;
}

.cc-mock-tasks li {
    position: relative;
    padding-left: 16px;
    color: var(--cc-muted);
    font-size: 8px;
    font-weight: 750;
    line-height: 1.25;
}

.cc-mock-tasks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #edf0ff;
    box-shadow: inset 0 0 0 1px rgba(76, 88, 239, 0.22);
}

.cc-mock-tasks li::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 5px;
    height: 3px;
    border-left: 1.5px solid var(--cc-primary);
    border-bottom: 1.5px solid var(--cc-primary);
    transform: rotate(-45deg);
}

.cc-mock-donut {
    min-height: 102px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
}

.cc-mock-donut::before {
    content: "";
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #ffffff 0 53%, transparent 54%),
        conic-gradient(from -38deg, #5260f6 0 84%, rgba(76, 88, 239, 0.15) 84% 100%);
    grid-area: 1 / 1;
}

.cc-mock-donut b {
    color: var(--cc-ink);
    font-size: 14px;
    font-weight: 950;
    grid-area: 1 / 1;
}

.cc-mock-donut span {
    width: 86px;
    color: var(--cc-muted);
    font-size: 7px;
    font-weight: 800;
    line-height: 1.18;
    text-align: center;
    text-transform: uppercase;
}

.cc-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cc-mini-card {
    min-height: 132px;
    padding: 17px 18px;
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(39, 52, 140, 0.045);
    display: grid;
    align-content: start;
    gap: 8px;
}

.cc-mini-card-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cc-ink-soft);
    font-size: 12px;
    font-weight: 900;
}

.cc-mini-card strong {
    color: var(--cc-primary);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 29px;
    font-weight: 800;
    line-height: 1;
}

.cc-mini-card p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.34;
}

.cc-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(76, 88, 239, 0.17);
    border-radius: 12px;
    color: var(--cc-primary);
    background: var(--cc-primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cc-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.cc-steps-section {
    margin-top: 0;
}

.cc-steps-section h2,
.cc-faq h2 {
    margin-bottom: 14px;
}

.cc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.cc-step {
    position: relative;
    min-height: 78px;
    padding: 15px 14px 14px 50px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
}

.cc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    border-top: 2px dotted #9aa4e3;
}

.cc-step-number {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: var(--cc-primary);
    background: #eef1ff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 7px 16px rgba(76, 88, 239, 0.22);
}

.cc-step h3,
.cc-feature-card h3 {
    font-size: 13px;
    font-weight: 950;
    line-height: 1.22;
}

.cc-step p,
.cc-feature-card p {
    margin: 6px 0 0;
    color: var(--cc-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.36;
}

.cc-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cc-feature-card {
    min-height: 92px;
    padding: 15px 14px;
    border: 1px solid var(--cc-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cc-feature-card .cc-icon {
    width: 34px;
    height: 34px;
}

.cc-tariffs {
    padding-bottom: 12px;
}

.cc-tariff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cc-tariff-card {
    min-height: 280px;
    padding: 17px 17px 12px;
    border: 1px solid var(--cc-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 12px;
}

.cc-tariff-card.is-featured {
    border-color: rgba(76, 88, 239, 0.44);
    box-shadow: 0 16px 32px rgba(58, 71, 221, 0.08);
}

.cc-tariff-card header {
    display: grid;
    gap: 4px;
}

.cc-tariff-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-tariff-title h3 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.cc-tariff-title span {
    min-height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--cc-primary-soft);
    color: var(--cc-primary);
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.cc-tariff-card header p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

.cc-tariff-card header strong {
    color: var(--cc-primary);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.cc-tariff-list {
    display: grid;
    gap: 8px;
}

.cc-tariff-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.cc-tariff-list .cc-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
}

.cc-tariff-list .cc-icon svg {
    width: 14px;
    height: 14px;
}

.cc-tariff-list b {
    display: block;
    color: var(--cc-ink);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.18;
}

.cc-tariff-list small {
    display: block;
    margin-top: 2px;
    color: var(--cc-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.24;
}

.cc-tariff-cta {
    width: 100%;
    min-height: 30px !important;
    margin-top: auto;
    border-radius: 8px !important;
    font-size: 11px !important;
}

.cc-lock-note {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.cc-lock-note .cc-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.cc-lock-note p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 11px;
    font-weight: 700;
}

.cc-trust-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 10px;
}

.cc-trust-card,
.cc-support-card {
    min-height: 170px;
}

.cc-trust-card h2,
.cc-support-card h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.cc-security-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cc-security-item {
    min-height: 72px;
    padding: 11px 10px;
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
}

.cc-security-item .cc-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    margin-bottom: 7px;
}

.cc-security-item h3 {
    font-size: 10px;
    font-weight: 950;
    line-height: 1.18;
}

.cc-security-item p {
    margin: 4px 0 0;
    color: var(--cc-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.25;
}

.cc-support-card {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
}

.cc-support-list {
    margin-top: 13px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cc-support-list li {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 12px;
    color: var(--cc-ink-soft);
    font-size: 12px;
    font-weight: 850;
}

.cc-support-list b {
    color: var(--cc-primary);
    font-weight: 950;
}

.cc-support-cta {
    width: 100%;
    min-height: 30px !important;
    border-radius: 999px !important;
}

.cc-faq {
    padding-bottom: 12px;
}

.cc-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 36px;
}

.cc-faq-column {
    display: grid;
    gap: 8px;
}

.cc-faq-item {
    border: 1px solid var(--cc-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.cc-faq-item summary {
    min-height: 30px;
    padding: 0 34px 0 14px;
    color: var(--cc-ink-soft);
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    font-size: 11px;
    font-weight: 950;
    position: relative;
}

.cc-faq-item summary::-webkit-details-marker {
    display: none;
}

.cc-faq-item summary::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--cc-primary);
    border-right: 2px solid var(--cc-primary);
    transform: rotate(45deg);
}

.cc-faq-item[open] summary::after {
    transform: rotate(135deg);
}

.cc-faq-item p {
    margin: 0;
    padding: 0 14px 12px;
    color: var(--cc-muted);
    font-size: 11px;
    line-height: 1.45;
}

.cc-footer {
    margin-top: 4px;
    padding: 8px 4px 16px;
    border-top: 1px solid var(--cc-border);
}

.cc-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1.1fr 0.8fr;
    gap: 36px;
    align-items: start;
}

.cc-footer h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
}

.cc-footer img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.cc-footer p,
.cc-footer a {
    margin: 4px 0 0;
    color: var(--cc-muted);
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.36;
    text-decoration: none;
}

.cc-footer a {
    color: var(--cc-primary);
}

@media (max-width: 1180px) {
    body.shell-guest-nav .topbar-inner {
        grid-template-columns: 190px minmax(0, 1fr) 248px;
    }

    .landing-primary-nav {
        gap: 24px;
    }

    .cc-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 0 26px;
    }

    .cc-hero-copy {
        max-width: 680px;
    }

    .cc-dashboard-shell {
        max-width: 760px;
    }

    .cc-impact-grid,
    .cc-steps,
    .cc-feature-grid,
    .cc-security-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-step::after,
    .cc-step::before {
        display: none;
    }
}

@media (max-width: 860px) {
    body.shell-guest-nav .topbar-inner {
        min-height: 60px;
        grid-template-columns: 1fr auto;
    }

    .landing-primary-nav {
        display: none;
    }

    body.shell-guest-nav .brand-logo-main {
        height: 28px;
        max-width: 164px;
    }

    body.shell-guest-nav .top-nav-guest > a:not(.btn) {
        display: none;
    }

    .cc-hero h1 {
        font-size: 46px;
        line-height: 1.06;
    }

    .cc-lead {
        font-size: 15px;
    }

    .cc-dashboard-shell {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .cc-mock-stats,
    .cc-mock-bottom,
    .cc-tariff-grid,
    .cc-trust-grid,
    .cc-faq-grid,
    .cc-footer-grid {
        grid-template-columns: 1fr;
    }

    .cc-mock-card {
        min-height: 112px;
    }

    .cc-support-list li {
        grid-template-columns: 132px minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    html,
    body.shell-guest-nav {
        overflow-x: hidden;
    }

    body.shell-guest-nav .page,
    .cc-hero-grid {
        width: min(var(--container), calc(100% - 32px));
    }

    body.shell-guest-nav .topbar-cta {
        min-width: 130px;
        padding: 0 14px;
    }

    .cc-hero {
        margin-left: calc(50% - 50vw);
        border-radius: 0;
    }

    .cc-hero-grid {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
        padding: 26px 0 22px;
    }

    .cc-hero h1 {
        max-width: 100%;
        font-size: 34px;
        line-height: 1.07;
        overflow-wrap: normal;
        word-break: normal;
    }

    .cc-lead {
        max-width: 100%;
        font-size: 14px;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .cc-lead span {
        display: block;
    }

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

    .cc-home .btn,
    .cc-primary,
    .cc-secondary {
        width: calc(100% - 24px);
        min-width: 0;
    }

    .cc-hero-proof {
        gap: 12px;
    }

    .cc-hero-proof li {
        flex: 1 1 100%;
    }

    .cc-dashboard-shell {
        min-height: 0;
        width: calc(100% - 24px);
        max-width: 100%;
        padding: 12px;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .cc-hero-copy,
    .cc-mock-main,
    .cc-mock-card,
    .cc-mock-tasks {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .cc-mock-sidebar {
        display: none;
    }

    .cc-mock-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .cc-mock-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cc-impact-grid,
    .cc-steps,
    .cc-feature-grid,
    .cc-security-grid {
        grid-template-columns: 1fr;
    }

    .cc-mini-card,
    .cc-step,
    .cc-feature-card,
    .cc-tariff-card,
    .cc-security-item,
    .cc-faq,
    .cc-trust-card,
    .cc-support-card {
        width: 100%;
        overflow: hidden;
    }

    .cc-section {
        padding: 15px;
    }

    .cc-section h2,
    .cc-trust-card h2,
    .cc-support-card h2 {
        font-size: 23px;
    }

    .cc-step {
        min-height: auto;
    }

    .cc-feature-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .cc-support-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (min-width: 1181px) {
    .cc-home {
        gap: 10px;
    }

    .cc-hero-grid {
        min-height: 366px;
        padding: 27px 0 18px;
        grid-template-columns: 520px minmax(0, 678px);
    }

    .cc-hero h1 {
        font-size: 52px;
        line-height: 1.04;
    }

    .cc-lead {
        margin-top: 15px;
        font-size: 15px;
        line-height: 1.38;
    }

    .cc-actions {
        margin-top: 20px;
    }

    .cc-hero-proof {
        margin-top: 18px;
    }

    .cc-dashboard-shell {
        min-height: 332px;
        padding: 12px;
    }

    .cc-mock-card {
        min-height: 124px;
        padding: 12px;
    }

    .cc-mock-bottom {
        grid-template-columns: minmax(0, 1fr) 110px;
    }

    .cc-mock-tasks,
    .cc-mock-donut {
        min-height: 91px;
    }

    .cc-mock-donut::before {
        width: 62px;
        height: 62px;
    }

    .cc-mini-card {
        min-height: 108px;
        padding: 14px 15px;
        gap: 6px;
    }

    .cc-mini-card-label {
        font-size: 11px;
        gap: 9px;
    }

    .cc-mini-card strong {
        font-size: 27px;
    }

    .cc-mini-card p {
        font-size: 10px;
        line-height: 1.26;
    }

    .cc-mini-card .cc-icon,
    .cc-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }

    .cc-icon svg {
        width: 14px;
        height: 14px;
    }

    .cc-section {
        padding: 14px;
    }

    .cc-section h2 {
        font-size: 22px;
    }

    .cc-section-head {
        gap: 4px;
        margin-bottom: 10px;
    }

    .cc-section-head p,
    .cc-trust-card > p,
    .cc-support-copy > p {
        font-size: 11px;
        line-height: 1.32;
    }

    .cc-steps-section h2,
    .cc-faq h2 {
        margin-bottom: 10px;
    }

    .cc-steps {
        gap: 16px;
    }

    .cc-step {
        min-height: 72px;
        padding: 12px 12px 11px 43px;
    }

    .cc-step:not(:last-child)::after {
        right: -16px;
        width: 16px;
    }

    .cc-step-number {
        left: 12px;
        top: 12px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .cc-step h3,
    .cc-feature-card h3 {
        font-size: 12px;
        line-height: 1.18;
    }

    .cc-step p,
    .cc-feature-card p {
        margin-top: 5px;
        font-size: 9px;
        line-height: 1.28;
    }

    .cc-feature-card {
        min-height: 76px;
        padding: 12px 13px;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
    }

    .cc-feature-card .cc-icon {
        width: 29px;
        height: 29px;
    }

    .cc-tariff-card {
        min-height: 250px;
        padding: 14px 16px 10px;
        gap: 8px;
    }

    .cc-tariff-title h3 {
        font-size: 16px;
    }

    .cc-tariff-title span {
        min-height: 21px;
        font-size: 9px;
    }

    .cc-tariff-card header p,
    .cc-lock-note p {
        font-size: 10px;
    }

    .cc-tariff-card header strong {
        font-size: 20px;
    }

    .cc-tariff-list {
        gap: 5px;
    }

    .cc-tariff-list li {
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 7px;
    }

    .cc-tariff-list .cc-icon {
        width: 23px;
        height: 23px;
        border-radius: 8px;
    }

    .cc-tariff-list b {
        font-size: 10px;
    }

    .cc-tariff-list small {
        font-size: 9px;
        line-height: 1.18;
    }

    .cc-tariff-cta {
        min-height: 28px !important;
        font-size: 10px !important;
    }

    .cc-lock-note {
        margin-top: 9px;
        padding: 8px 12px;
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .cc-lock-note .cc-icon {
        width: 22px;
        height: 22px;
    }

    .cc-trust-card,
    .cc-support-card {
        min-height: 158px;
    }

    .cc-trust-card h2,
    .cc-support-card h2 {
        font-size: 22px;
    }

    .cc-security-grid {
        margin-top: 10px;
        gap: 8px;
    }

    .cc-security-item {
        min-height: 58px;
        padding: 8px;
    }

    .cc-security-item .cc-icon {
        width: 21px;
        height: 21px;
        margin-bottom: 5px;
    }

    .cc-security-item h3 {
        font-size: 9px;
    }

    .cc-security-item p {
        font-size: 8px;
        line-height: 1.18;
    }

    .cc-support-list {
        margin-top: 10px;
        gap: 6px;
    }

    .cc-support-list li {
        grid-template-columns: 124px minmax(0, 1fr);
        font-size: 10px;
    }

    .cc-support-cta {
        min-height: 28px !important;
        font-size: 10px !important;
    }

    .cc-faq {
        padding: 9px 14px 8px;
    }

    .cc-faq h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .cc-faq-grid,
    .cc-faq-column {
        gap: 4px 34px;
    }

    .cc-faq-item summary {
        min-height: 24px;
        font-size: 10px;
    }

    .cc-footer {
        margin-top: -2px;
        padding-bottom: 8px;
    }
}

@media (min-width: 1500px) {
    body.shell-guest-nav {
        --container: calc(100vw - 96px);
    }

    body.shell-guest-nav .page {
        width: min(var(--container), calc(100% - 32px));
    }

    .cc-hero-grid {
        grid-template-columns: minmax(610px, 0.82fr) minmax(760px, 1fr);
        gap: clamp(42px, 4.5vw, 92px);
    }

    .cc-hero-copy {
        padding-top: clamp(20px, 3.2vw, 52px);
    }

    .cc-hero h1 {
        max-width: 760px;
        font-size: clamp(58px, 4.1vw, 78px);
        line-height: 1.04;
    }

    .cc-lead {
        max-width: 670px;
        font-size: clamp(16px, 1vw, 19px);
    }

    .cc-dashboard-shell {
        width: 100%;
        max-width: none;
        min-height: clamp(360px, 25vw, 470px);
        grid-template-columns: clamp(118px, 8vw, 150px) minmax(0, 1fr);
        padding: clamp(13px, 1vw, 18px);
        gap: clamp(12px, 1vw, 18px);
    }

    .cc-mock-stats {
        gap: clamp(10px, 0.8vw, 16px);
    }

    .cc-mock-card {
        min-height: clamp(124px, 9vw, 166px);
    }

    .cc-mock-bottom {
        grid-template-columns: minmax(0, 1fr) clamp(112px, 8vw, 150px);
        gap: clamp(10px, 0.8vw, 16px);
    }

    .cc-mock-tasks,
    .cc-mock-donut {
        min-height: clamp(94px, 7vw, 128px);
    }

    .cc-impact-grid,
    .cc-steps,
    .cc-feature-grid {
        gap: clamp(12px, 1vw, 18px);
    }

    .cc-mini-card,
    .cc-feature-card,
    .cc-tariff-card,
    .cc-security-item {
        padding-left: clamp(16px, 1.1vw, 22px);
        padding-right: clamp(16px, 1.1vw, 22px);
    }

    .cc-step {
        padding-left: 50px;
    }
}

/* Version 1.433 landing fixes */
.cc-dashboard-shell {
    display: block !important;
    padding: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1880 / 900;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(100, 113, 255, 0.22);
    border-radius: 31px;
    box-shadow: 0 30px 90px rgba(46, 59, 150, 0.16);
}

.cc-dashboard-shell > :not(.cc-dashboard-real) {
    display: none !important;
}

.cc-dashboard-real {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 61%;
}

.cc-step:not(:last-child)::before,
.cc-step:not(:last-child)::after {
    display: none !important;
    content: none !important;
}

.cc-steps {
    gap: clamp(14px, 1.15vw, 24px);
}

.cc-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, #ffffff 0%, #eef1ff 100%) !important;
    border: 1px solid rgba(84, 96, 255, 0.28) !important;
    box-shadow: 0 9px 20px rgba(76, 88, 230, 0.14) !important;
    color: #5562ff !important;
}

.cc-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.cc-mini-card .cc-icon,
.cc-feature-card .cc-icon,
.cc-security-item .cc-icon {
    flex: 0 0 auto;
}

.cc-tariff-list .cc-icon,
.cc-lock-note .cc-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
}

.cc-tariff-list .cc-icon svg,
.cc-lock-note .cc-icon svg {
    width: 15px !important;
    height: 15px !important;
}

.cc-step-number {
    box-shadow: 0 8px 18px rgba(76, 88, 230, 0.18);
}

@media (max-width: 1180px) {
    .cc-dashboard-shell {
        width: min(100%, 920px);
        margin-inline: auto;
    }
}

@media (max-width: 720px) {
    .cc-dashboard-shell {
        border-radius: 22px;
    }

    .cc-dashboard-real {
        object-position: 42% 61%;
    }
}

/* 2026 polish: product-first, mobile-fast landing */
html,
body.shell-guest-nav {
    overflow-x: hidden;
}

body.shell-guest-nav {
    --container: 1280px;
    --cc-ink: #070d35;
    --cc-ink-soft: #18235f;
    --cc-muted: #65719f;
    --cc-primary: #4357ff;
    --cc-primary-strong: #2436d8;
    --cc-accent: #00a7ff;
    --cc-border: #dce4fb;
    --cc-primary-soft: #eef2ff;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 46%, #ffffff 100%);
}

.cc-home,
.cc-home * {
    letter-spacing: 0 !important;
}

.cc-hero {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%),
        linear-gradient(90deg, rgba(67, 87, 255, 0.05) 1px, transparent 1px);
    background-size: auto, 46px 46px;
}

.cc-hero-grid {
    min-height: 520px;
    padding: 44px 0 30px;
    grid-template-columns: minmax(470px, 0.82fr) minmax(620px, 1.18fr);
    gap: 42px;
}

.cc-pill {
    display: none !important;
}

.cc-hero h1 {
    max-width: 650px;
    margin-top: 0;
    font-size: 66px;
    line-height: 1.02;
    text-wrap: balance;
}

.cc-lead {
    max-width: 610px;
    font-size: 18px;
    line-height: 1.46;
}

.cc-actions {
    margin-top: 28px;
}

.cc-home .btn {
    min-height: 46px;
    font-size: 13px;
}

.cc-hero-proof {
    max-width: 620px;
    gap: 18px 28px;
}

.cc-dashboard-shell {
    position: relative;
    display: block !important;
    aspect-ratio: 2.06 / 1;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 24px;
    border: 1px solid rgba(86, 104, 255, 0.22);
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(23, 36, 105, 0.15);
    overflow: hidden;
    contain: layout paint;
}

.cc-dashboard-shell > .cc-dashboard-picture {
    display: block !important;
}

.cc-dashboard-shell > .cc-demo-strip {
    display: grid !important;
}

.cc-dashboard-picture {
    width: 100%;
    height: 100%;
}

.cc-dashboard-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 46%;
    transform: translateZ(0);
}

.cc-demo-strip {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    padding: 10px;
    border: 1px solid rgba(216, 225, 255, 0.8);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(28, 42, 120, 0.12);
    backdrop-filter: blur(10px);
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cc-demo-strip span {
    display: grid;
    gap: 2px;
    color: var(--cc-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.cc-demo-strip b {
    color: var(--cc-ink);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 18px;
    line-height: 1;
}

.cc-impact-grid {
    margin-top: 12px;
    gap: 14px;
}

.cc-mini-card,
.cc-feature-card,
.cc-step,
.cc-tariff-card,
.cc-security-item {
    border-color: rgba(185, 197, 244, 0.76);
    background: rgba(255, 255, 255, 0.94);
}

.cc-mini-card {
    min-height: 128px;
}

.cc-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    color: #3347ee !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 239, 255, 0.98)) !important;
    border: 1px solid rgba(67, 87, 255, 0.28) !important;
    box-shadow: 0 10px 22px rgba(44, 59, 168, 0.12) !important;
}

.cc-icon svg {
    width: 22px !important;
    height: 22px !important;
    overflow: visible;
}

.cc-icon svg .cc-icon-tone {
    fill: currentColor !important;
    stroke: none !important;
    opacity: 0.14;
}

.cc-icon svg .cc-icon-line {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.cc-feature-card,
.cc-tariff-list li {
    grid-template-columns: 44px minmax(0, 1fr);
}

.cc-step:not(:last-child)::before,
.cc-step:not(:last-child)::after {
    display: none !important;
}

.cc-step-number {
    background: #ffffff;
    border: 1px solid rgba(67, 87, 255, 0.22);
}

@media (min-width: 1500px) {
    body.shell-guest-nav {
        --container: calc(100vw - 96px);
    }

    .cc-hero-grid {
        grid-template-columns: minmax(560px, 0.72fr) minmax(820px, 1fr);
        min-height: 560px;
    }

    .cc-hero h1 {
        font-size: 78px;
    }
}

@media (max-width: 1180px) {
    body.shell-guest-nav {
        --container: min(100%, 960px);
    }

    .cc-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 0 28px;
    }

    .cc-hero-copy {
        max-width: 760px;
    }

    .cc-hero h1 {
        max-width: 760px;
        font-size: 54px;
    }

    .cc-dashboard-shell {
        max-width: 920px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    body.shell-guest-nav .app-content {
        overflow-x: hidden;
    }

    body.shell-guest-nav .topbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.shell-guest-nav .page {
        width: 100%;
        max-width: 100%;
        padding: 0 0 18px;
    }

    .cc-home {
        width: 100%;
        gap: 10px;
        overflow: hidden;
    }

    .cc-hero {
        width: 100%;
        margin-left: 0;
        overflow: hidden;
    }

    .cc-hero-grid {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 30px 16px 18px;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .cc-hero-copy {
        width: 100%;
        max-width: 100%;
        padding-top: 0;
    }

    .cc-hero h1 {
        max-width: 100%;
        font-size: 34px;
        line-height: 1.08;
    }

    .cc-lead {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.45;
    }

    .cc-actions {
        width: 100%;
        margin-top: 22px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cc-home .btn,
    .cc-primary,
    .cc-secondary {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 45px;
        padding-inline: 16px;
    }

    .cc-hero-proof {
        margin-top: 20px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cc-dashboard-shell {
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 9.6;
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(23, 36, 105, 0.12);
    }

    .cc-dashboard-real {
        object-position: 47% 47%;
    }

    .cc-demo-strip {
        left: 10px;
        right: 10px;
        bottom: 10px;
        grid-template-columns: 1fr 1fr;
        backdrop-filter: none;
    }

    .cc-demo-strip span:nth-child(3) {
        display: none;
    }

    .cc-demo-strip b {
        font-size: 15px;
    }

    .cc-impact-grid,
    .cc-steps,
    .cc-feature-grid,
    .cc-tariff-grid,
    .cc-trust-grid,
    .cc-security-grid,
    .cc-footer-grid {
        grid-template-columns: 1fr !important;
    }

    .cc-mini-card,
    .cc-step,
    .cc-feature-card {
        min-height: auto;
    }

    .cc-feature-card,
    .cc-tariff-list li {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .cc-section {
        padding: 16px;
    }

    .cc-section h2,
    .cc-trust-card h2,
    .cc-support-card h2 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-home *,
    body.shell-guest-nav .topbar * {
        transition: none !important;
        animation: none !important;
    }
}

/* v1.433 landing production system: scroll-safe, Ukrainian SaaS homepage */
html:has(body.shell-guest-nav) {
    overflow: visible !important;
    overscroll-behavior-y: auto !important;
}

body.shell-guest-nav {
    --container: 1220px;
    --cc-gutter: 28px;
    --cc-ink: #071039;
    --cc-ink-soft: #202a65;
    --cc-muted: #5f6f9f;
    --cc-primary: #4054f2;
    --cc-primary-strong: #2536c7;
    --cc-accent: #00a8ff;
    --cc-bg: #f6f8ff;
    --cc-surface: #ffffff;
    --cc-surface-soft: #f7f9ff;
    --cc-border: #d9e2fb;
    --cc-border-strong: #c5d1f6;
    --cc-radius: 22px;
    --cc-radius-sm: 16px;
    --cc-shadow-soft: 0 16px 34px rgba(22, 34, 94, 0.08);
    --cc-shadow-card: 0 22px 48px rgba(22, 34, 94, 0.11);
    color: var(--cc-ink);
    overflow: visible !important;
    overscroll-behavior-y: auto !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 48%, #ffffff 100%);
    font-size: 16px;
}

body.shell-guest-nav .app-shell,
body.shell-guest-nav .app-content,
body.shell-guest-nav .page,
.cc-home {
    overflow: visible !important;
}

body.shell-guest-nav .page {
    width: 100%;
    max-width: 100%;
    padding: 0 0 52px;
    gap: 22px;
}

.cc-home {
    width: 100%;
    --cc-section-width: min(var(--container), calc(100% - (var(--cc-gutter) * 2)));
    gap: 22px;
}

body.shell-guest-nav .topbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--cc-border);
    box-shadow: 0 8px 24px rgba(22, 34, 94, 0.045);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.shell-guest-nav .topbar-inner {
    width: var(--cc-section-width);
    min-height: 64px;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 24px;
}

body.shell-guest-nav .landing-primary-nav {
    gap: 32px;
}

body.shell-guest-nav .landing-primary-nav a,
body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    color: var(--cc-ink-soft);
    font-size: 14px;
    font-weight: 850;
}

body.shell-guest-nav .topbar-cta {
    min-width: 168px;
    min-height: 44px;
    padding: 0 22px;
    font-size: 14px;
}

.cc-hero {
    width: 100%;
    margin: 0;
    overflow: clip;
    border: 0;
    border-bottom: 1px solid var(--cc-border);
    border-radius: 0;
    background:
        radial-gradient(680px 420px at 73% 18%, rgba(212, 225, 255, 0.78), transparent 64%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.cc-hero-grid {
    width: var(--cc-section-width);
    max-width: none;
    min-height: 560px;
    margin: 0 auto;
    padding: 58px 0 38px;
    grid-template-columns: minmax(420px, 0.86fr) minmax(580px, 1.14fr);
    gap: 58px;
    align-items: center;
}

.cc-pill {
    display: none !important;
}

.cc-hero-copy {
    max-width: 680px;
    padding-top: 0;
}

.cc-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--cc-ink);
    font-size: 72px;
    line-height: 1.02;
    font-weight: 800;
}

.cc-lead {
    max-width: 650px;
    margin-top: 22px;
    color: var(--cc-muted);
    font-size: 19px;
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: normal;
    word-break: normal;
}

.cc-actions {
    margin-top: 30px;
    gap: 14px;
}

.cc-home .btn,
body.shell-guest-nav .topbar-cta {
    min-height: 52px;
    border-radius: 16px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    border: 1px solid var(--cc-border-strong);
    box-shadow: none;
}

.cc-home .btn-primary,
body.shell-guest-nav .topbar-cta {
    background: linear-gradient(135deg, #4d61f6 0%, #2f43e6 100%);
    border-color: rgba(47, 67, 230, 0.42);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(47, 67, 230, 0.22) !important;
}

.cc-secondary {
    background: #ffffff;
    color: var(--cc-primary-strong);
}

.cc-hero-proof {
    margin-top: 24px;
    gap: 18px 30px;
}

.cc-hero-proof li {
    color: var(--cc-muted);
    font-size: 15px;
    font-weight: 850;
}

.cc-dashboard-shell {
    aspect-ratio: 2.06 / 1;
    border-radius: 26px;
    border: 1px solid rgba(141, 157, 235, 0.42);
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(23, 36, 105, 0.16);
}

.cc-demo-strip {
    left: 18px;
    right: 18px;
    bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(202, 214, 255, 0.95);
    box-shadow: 0 18px 40px rgba(28, 42, 120, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cc-demo-strip span {
    font-size: 12px;
    line-height: 1.3;
}

.cc-demo-strip b {
    font-size: 24px;
}

.cc-impact-grid,
.cc-panel.cc-section,
.cc-trust-grid,
.cc-footer {
    width: var(--cc-section-width);
    margin-inline: auto;
}

.cc-impact-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cc-panel,
.cc-mini-card,
.cc-feature-card,
.cc-step,
.cc-tariff-card,
.cc-security-item {
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--cc-shadow-soft);
}

.cc-section {
    padding: 30px;
}

.cc-section h2,
.cc-trust-card h2,
.cc-support-card h2 {
    color: var(--cc-ink);
    font-size: 34px;
    line-height: 1.12;
    font-weight: 800;
}

.cc-section-head {
    gap: 10px;
    margin-bottom: 22px;
}

.cc-section-head p,
.cc-trust-card > p,
.cc-support-copy > p {
    color: var(--cc-muted);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.cc-mini-card {
    min-height: 166px;
    padding: 24px;
}

.cc-mini-card-label span,
.cc-feature-card h3,
.cc-step h3,
.cc-security-item h3,
.cc-tariff-list b {
    color: var(--cc-ink-soft);
    font-size: 16px;
    line-height: 1.28;
    font-weight: 900;
}

.cc-mini-card strong {
    margin-top: 14px;
    color: var(--cc-primary);
    font-size: 34px;
    line-height: 1;
}

.cc-mini-card p,
.cc-feature-card p,
.cc-step p,
.cc-security-item p,
.cc-tariff-card p,
.cc-tariff-list small,
.cc-lock-note p {
    color: var(--cc-muted);
    font-size: 15px;
    line-height: 1.48;
    font-weight: 650;
}

.cc-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
    color: var(--cc-primary) !important;
}

.cc-steps,
.cc-feature-grid,
.cc-security-grid {
    gap: 18px;
}

.cc-step {
    padding: 22px;
    gap: 16px;
}

.cc-step-number {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.cc-feature-card {
    min-height: 128px;
    padding: 22px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
}

.cc-tariff-grid {
    gap: 20px;
}

.cc-tariff-card {
    padding: 26px;
}

.cc-tariff-card header strong {
    color: var(--cc-primary);
    font-size: 30px;
}

.cc-tariff-list {
    gap: 14px;
}

.cc-tariff-list li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 0;
}

.cc-tariff-cta,
.cc-support-cta {
    width: 100%;
}

.cc-lock-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: var(--cc-radius-sm);
    border: 1px solid var(--cc-border);
    background: var(--cc-surface-soft);
}

.cc-trust-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 20px;
}

.cc-security-item {
    padding: 20px;
}

.cc-support-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
}

.cc-support-list {
    margin-top: 18px;
    gap: 12px;
}

.cc-support-list li {
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cc-border);
    font-size: 15px;
}

.cc-faq-grid {
    gap: 16px;
}

.cc-faq-item {
    border-radius: 16px;
    border: 1px solid var(--cc-border);
    background: #ffffff;
}

.cc-faq-item summary {
    min-height: 52px;
    padding: 0 18px;
    color: var(--cc-ink-soft);
    font-size: 15px;
    font-weight: 850;
}

.cc-faq-item p {
    padding: 0 18px 18px;
    color: var(--cc-muted);
    font-size: 15px;
    line-height: 1.5;
}

.cc-footer {
    margin-top: 4px;
    padding: 26px 0 10px;
}

.cc-footer-grid {
    gap: 24px;
}

.cc-footer h3 {
    font-size: 16px;
}

.cc-footer p,
.cc-footer a {
    font-size: 14px;
    line-height: 1.5;
}

body.shell-guest-nav :where(input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], select, textarea) {
    min-height: 50px;
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--cc-ink);
    box-shadow: 0 10px 24px rgba(22, 34, 94, 0.05);
    font-size: 16px;
}

body.shell-guest-nav :where(table) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--cc-shadow-soft);
}

body.shell-guest-nav :where(th, td) {
    padding: 14px 16px;
    border-bottom: 1px solid var(--cc-border);
    font-size: 15px;
}

body.shell-guest-nav :where(th) {
    color: var(--cc-muted);
    background: var(--cc-surface-soft);
    font-weight: 900;
}

@media (min-width: 1500px) {
    body.shell-guest-nav {
        --container: 1360px;
    }

    .cc-hero-grid {
        min-height: 600px;
        grid-template-columns: minmax(590px, 0.92fr) minmax(620px, 1.08fr);
    }

    .cc-hero h1 {
        font-size: 76px;
    }
}

@media (max-width: 1180px) {
    body.shell-guest-nav {
        --container: 940px;
    }

    .cc-hero-grid {
        min-height: auto;
        padding: 44px 0 32px;
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .cc-hero h1 {
        max-width: 780px;
        font-size: 56px;
    }

    .cc-lead {
        max-width: 760px;
        font-size: 18px;
    }

    .cc-dashboard-shell {
        max-width: 920px;
        margin: 0;
    }

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

    .cc-trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.shell-guest-nav {
        --cc-gutter: 16px;
        font-size: 16px;
    }

    body.shell-guest-nav .topbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.shell-guest-nav .topbar-inner {
        min-height: 60px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    body.shell-guest-nav .brand-logo-main {
        height: 28px;
        max-width: 164px;
    }

    body.shell-guest-nav .landing-primary-nav,
    body.shell-guest-nav .top-nav-guest,
    body.shell-guest-nav .top-nav-guest > a:not(.btn) {
        display: none;
    }

    body.shell-guest-nav .topbar-cta {
        min-width: 136px;
        min-height: 42px;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 13px;
    }

    body.shell-guest-nav .page,
    .cc-home {
        gap: 16px;
    }

    .cc-hero-grid {
        width: var(--cc-section-width);
        padding: 28px 0 18px;
        gap: 20px;
    }

    .cc-hero-copy {
        overflow: visible !important;
    }

    .cc-hero h1 {
        font-size: 36px;
        line-height: 1.08;
    }

    .cc-lead {
        max-width: min(100%, 320px);
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    .cc-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cc-home .btn,
    .cc-primary,
    .cc-secondary {
        width: 100%;
        max-width: 100%;
        min-height: 52px;
        padding-inline: 16px;
        font-size: 15px;
    }

    .cc-hero-proof {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cc-dashboard-shell {
        width: 100%;
        aspect-ratio: 16 / 8.8;
        border-radius: 20px;
        box-shadow: 0 18px 42px rgba(23, 36, 105, 0.14);
    }

    .cc-dashboard-real {
        object-position: 47% 47%;
    }

    .cc-demo-strip {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 12px;
        grid-template-columns: 1fr 1fr;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .cc-demo-strip span:nth-child(3) {
        display: none;
    }

    .cc-demo-strip b {
        font-size: 19px;
    }

    .cc-impact-grid,
    .cc-steps,
    .cc-feature-grid,
    .cc-tariff-grid,
    .cc-security-grid,
    .cc-footer-grid {
        grid-template-columns: 1fr !important;
    }

    .cc-section {
        padding: 22px;
    }

    .cc-section h2,
    .cc-trust-card h2,
    .cc-support-card h2 {
        font-size: 28px;
    }

    .cc-section-head p,
    .cc-trust-card > p,
    .cc-support-copy > p,
    .cc-mini-card p,
    .cc-feature-card p,
    .cc-step p,
    .cc-security-item p,
    .cc-tariff-card p,
    .cc-tariff-list small,
    .cc-lock-note p {
        font-size: 16px;
    }

    .cc-mini-card,
    .cc-feature-card,
    .cc-step,
    .cc-tariff-card,
    .cc-security-item {
        min-height: auto;
        padding: 20px;
    }

    .cc-mini-card strong {
        font-size: 32px;
    }

    .cc-footer {
        padding-top: 18px;
    }
}

/* v1.433.1: keep step numbers out of the title column */
.cc-steps-section .cc-steps {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 20px !important;
}

.cc-steps-section .cc-step {
    position: relative;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 18px !important;
    row-gap: 0 !important;
    min-height: 166px;
    padding: 24px !important;
    overflow: visible;
}

.cc-steps-section .cc-step-number {
    position: static !important;
    inset: auto !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    transform: none !important;
    display: inline-grid !important;
    place-items: center;
    align-self: start;
    justify-self: start;
    flex: 0 0 40px;
    z-index: 1;
}

.cc-steps-section .cc-step h3 {
    margin: 0 0 10px !important;
    overflow-wrap: anywhere;
}

.cc-steps-section .cc-step p {
    margin: 0 !important;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .cc-steps-section .cc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .cc-steps-section .cc-steps {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .cc-steps-section .cc-step {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        min-height: auto;
        padding: 20px !important;
        column-gap: 14px !important;
    }

    .cc-steps-section .cc-step-number {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px;
    }
}

/* v1.433.2: readable access-control cards */
.cc-trust-card {
    display: flex;
    flex-direction: column;
}

.cc-trust-card > p {
    max-width: 760px;
}

.cc-trust-card .cc-security-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 22px !important;
}

.cc-trust-card .cc-security-item {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 150px !important;
    padding: 20px !important;
}

.cc-trust-card .cc-security-item .cc-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
}

.cc-trust-card .cc-security-item h3 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.24 !important;
    overflow-wrap: anywhere;
}

.cc-trust-card .cc-security-item p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.46 !important;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .cc-trust-grid {
        grid-template-columns: 1fr !important;
    }
}

/* v1.436.10: structured admin subscription and billing controls */
.admin-subscription-section,
.admin-billing-section {
    gap: 14px !important;
}

.admin-subscription-grid {
    grid-template-columns: minmax(180px, 1.05fr) minmax(150px, 0.95fr) minmax(148px, 0.78fr) minmax(148px, 0.78fr) !important;
    align-items: end !important;
}

.admin-subscription-footer {
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto) !important;
}

.admin-quick-panel {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.admin-quick-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.admin-quick-panel-head strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.admin-quick-panel-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.admin-quick-actions {
    display: grid !important;
    grid-template-columns: minmax(118px, 0.6fr) repeat(2, minmax(220px, 1fr));
    gap: 8px !important;
}

.admin-quick-actions .role-action-form {
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-quick-actions .role-action-form:first-child {
    grid-template-columns: 1fr;
}

.admin-quick-date {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.admin-quick-date span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-quick-date input[type="date"] {
    min-height: 38px;
    width: 100%;
    padding: 0 12px;
    border-radius: 13px;
}

.admin-quick-actions .role-action-btn {
    min-width: 112px !important;
    width: 100%;
    white-space: nowrap;
}

.admin-billing-grid {
    grid-template-columns: minmax(180px, 1.05fr) minmax(128px, 0.75fr) minmax(128px, 0.75fr) minmax(150px, 0.95fr) !important;
    align-items: end !important;
}

.admin-billing-section textarea {
    min-height: 112px !important;
}

.admin-billing-footer {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(210px, auto) !important;
}

@media (max-width: 1280px) {
    .admin-subscription-grid,
    .admin-billing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .admin-quick-actions {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    .admin-subscription-grid,
    .admin-billing-grid,
    .admin-subscription-footer,
    .admin-billing-footer,
    .admin-quick-actions .role-action-form {
        grid-template-columns: 1fr !important;
    }

    .admin-quick-panel-head {
        display: grid;
    }

    .admin-quick-panel-head span {
        text-align: left;
    }
}

/* v1.436.11: cleaner source cards and scan launch rhythm */
.feed-policy-panel,
.feed-scan-launch-panel,
#feeds-management {
    border-radius: 28px !important;
}

.feed-policy-grid article {
    border-radius: 22px !important;
    padding: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.feed-scan-launch-form {
    grid-template-columns: minmax(260px, 1.45fr) minmax(124px, 0.46fr) minmax(160px, 0.58fr) minmax(180px, auto) !important;
    gap: 14px !important;
}

.feed-scan-launch-form :where(select, input) {
    min-height: 52px !important;
    border-radius: 18px !important;
}

.feed-scan-launch-form .btn {
    min-height: 52px !important;
    border-radius: 18px !important;
}

.feed-slots-form .feed-slot {
    border-radius: 22px !important;
    padding: 20px !important;
    box-shadow: 0 12px 28px rgba(22, 33, 84, 0.04);
}

.feed-slot.is-locked {
    border-color: rgba(245, 158, 11, 0.46) !important;
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(255, 250, 235, 0.76)) !important;
}

.feed-slot-header {
    align-items: center !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(169, 178, 226, 0.28);
}

.feed-lock-note {
    border-radius: 18px !important;
}

.feed-lock-url {
    margin-top: 12px !important;
    display: grid !important;
    gap: 8px !important;
}

.feed-lock-url code {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .feed-scan-launch-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .feed-policy-panel,
    .feed-scan-launch-panel,
    #feeds-management {
        border-radius: 22px !important;
    }

    .feed-scan-launch-form {
        grid-template-columns: 1fr !important;
    }

    .feed-slot-header {
        align-items: flex-start !important;
    }
}

/* v1.436.8: visible locked URLs and calendar controls */
.source-preview-item.is-locked {
    align-items: flex-start;
}

.source-lock-visible-url {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 14px;
    background: rgba(248, 248, 255, 0.86);
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.main-task-panel .source-preview-item.is-locked {
    flex-wrap: wrap;
}

.main-task-panel .source-lock-visible-url {
    flex: 1 1 100%;
    justify-content: flex-start;
    white-space: normal;
}

.feed-lock-url {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(245, 158, 11, 0.28);
}

.feed-lock-url span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.feed-lock-url code {
    display: block;
    max-width: 100%;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.admin-form-grid,
.admin-billing-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.admin-quick-actions .role-action-form {
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-quick-date {
    display: inline-grid;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.admin-quick-date input[type="date"] {
    width: 150px;
    min-height: 42px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    padding-inline: 12px;
}

@media (max-width: 760px) {
    .admin-quick-actions .role-action-form,
    .admin-quick-date,
    .admin-quick-date input[type="date"] {
        width: 100%;
    }
}

/* v1.436.6: SaaS billing center inside Settings */
.settings-billing-center {
    display: grid;
    gap: 16px;
}

.billing-overview-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.2fr);
    gap: 12px;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 12%);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--accent), transparent 88%), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.82));
    padding: 14px;
}

.billing-overview-main {
    display: grid;
    align-content: center;
    gap: 5px;
}

.billing-overview-main span,
.billing-center-card-head span,
.billing-plan-limit-grid em,
.billing-invoice-meta-grid em,
.billing-admin-request em,
.billing-admin-table-head {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.billing-overview-main strong {
    color: var(--text-main);
    font-size: clamp(1.6rem, 2vw, 2.15rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.billing-overview-main small,
.billing-empty-state span,
.billing-invoice-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.35;
}

.billing-overview-stats,
.billing-invoice-meta-grid,
.billing-plan-limit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.billing-overview-stats span,
.billing-invoice-meta-grid span,
.billing-plan-limit-grid span {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.76);
    padding: 10px 11px;
}

.billing-overview-stats em,
.billing-invoice-meta-grid em,
.billing-plan-limit-grid em {
    display: block;
    margin-bottom: 6px;
    font-style: normal;
}

.billing-overview-stats strong,
.billing-invoice-meta-grid strong,
.billing-plan-limit-grid strong,
.billing-admin-request b {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.billing-plan-limit-grid small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.3;
}

.billing-center-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
    gap: 14px;
}

.billing-center-card {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 8%);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface, #ffffff), var(--bg, #f7f7ff) 10%);
    padding: 14px;
}

.billing-center-card-wide {
    grid-column: 1 / -1;
}

.billing-center-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.billing-center-card-head h3 {
    margin: 4px 0 0;
    color: var(--text-main);
    font-size: clamp(1.15rem, 1.35vw, 1.45rem);
    font-weight: 950;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.billing-center-card-head > small {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 14%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface, #ffffff), var(--accent) 5%);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 850;
    padding: 8px 11px;
    white-space: nowrap;
}

.billing-plan-accordion-list,
.billing-invoice-list {
    display: grid;
    gap: 9px;
}

.billing-plan-details,
.billing-invoice-details {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 7%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
}

.billing-plan-details[open],
.billing-invoice-details[open] {
    border-color: color-mix(in srgb, var(--accent), var(--border) 34%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.88));
}

.billing-plan-details summary,
.billing-invoice-details summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 12px 13px;
}

.billing-plan-details summary::-webkit-details-marker,
.billing-invoice-details summary::-webkit-details-marker {
    display: none;
}

.billing-plan-details summary span,
.billing-invoice-details summary span {
    min-width: 0;
}

.billing-plan-details summary strong,
.billing-invoice-details summary strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.1;
}

.billing-plan-details summary small,
.billing-invoice-details summary small,
.billing-plan-details-body p {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.28;
}

.billing-plan-details summary b,
.billing-invoice-details summary b {
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 950;
    white-space: nowrap;
}

.billing-plan-details-body {
    display: grid;
    gap: 10px;
    padding: 0 13px 13px;
}

.billing-plan-details-body p {
    margin: 0;
}

.billing-plan-limit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-plan-request-form {
    display: flex;
    justify-content: flex-end;
}

.billing-requisites-box {
    display: grid;
    gap: 8px;
    margin: 0 13px 13px;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 8%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    padding: 12px;
}

.billing-requisites-box > span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.billing-requisites-box pre {
    margin: 0;
    white-space: pre-wrap;
    color: var(--text-main);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.35;
}

.billing-invoice-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 13px 13px;
}

.billing-invoice-note {
    margin: 0;
    padding: 0 13px 13px;
}

.billing-empty-state {
    display: grid;
    gap: 5px;
    border: 1px dashed color-mix(in srgb, var(--border), var(--accent) 18%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.62);
    padding: 16px;
}

.billing-empty-state strong {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 950;
}

.billing-admin-request-list {
    display: grid;
    gap: 9px;
}

.billing-admin-request {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) minmax(90px, 0.55fr) minmax(90px, 0.55fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 8%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
    padding: 10px;
}

.billing-admin-request div {
    min-width: 0;
}

.billing-admin-request strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.12;
}

.billing-admin-request small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.billing-admin-request em {
    display: block;
    margin-bottom: 5px;
    font-style: normal;
}

.billing-admin-table {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 8%);
    border-radius: var(--radius);
}

.billing-admin-table-head,
.billing-admin-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.15fr) minmax(110px, 0.65fr) minmax(110px, 0.6fr) minmax(100px, 0.6fr) minmax(110px, 0.7fr) minmax(120px, 0.75fr) auto;
    gap: 10px;
    align-items: center;
}

.billing-admin-table-head {
    background: color-mix(in srgb, var(--accent), #ffffff 91%);
    padding: 12px 14px;
}

.billing-admin-row {
    min-height: 70px;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 20%);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 12px 14px;
}

.billing-admin-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.billing-admin-row strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 950;
}

.billing-admin-row small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.billing-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 18%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface, #ffffff), var(--accent) 5%);
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 950;
    padding: 0 10px;
    white-space: nowrap;
}

.billing-status-pill.is-paid {
    border-color: rgba(83, 92, 226, 0.28);
    background: rgba(104, 112, 243, 0.1);
}

.billing-status-pill.is-void {
    border-color: rgba(245, 111, 111, 0.28);
    background: rgba(245, 111, 111, 0.09);
    color: #cc4f4f;
}

@media (max-width: 1280px) {
    .billing-overview-card,
    .billing-center-layout {
        grid-template-columns: 1fr;
    }

    .billing-admin-table {
        overflow-x: auto;
    }

    .billing-admin-table-head,
    .billing-admin-row {
        min-width: 980px;
    }
}

@media (max-width: 760px) {
    .billing-overview-stats,
    .billing-invoice-meta-grid,
    .billing-plan-limit-grid,
    .billing-admin-request {
        grid-template-columns: 1fr;
    }

    .billing-center-card,
    .billing-overview-card {
        padding: 12px;
    }

    .billing-center-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-plan-request-form,
    .billing-plan-request-form .btn,
    .billing-admin-request .btn {
        width: 100%;
    }
}

/* v1.436.7: inner billing tabs inspired by SaaS invoice flows */
.billing-inner-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 10%);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface, #ffffff), var(--bg, #f7f7ff) 18%);
    padding: 6px;
}

.billing-inner-tabs button {
    appearance: none;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-sm) - 2px);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    padding: 0 14px;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.billing-inner-tabs button:hover,
.billing-inner-tabs button:focus-visible {
    border-color: color-mix(in srgb, var(--border), var(--accent) 18%);
    background: rgba(255, 255, 255, 0.76);
    color: var(--accent);
    outline: none;
}

.billing-inner-tabs button.is-active {
    border-color: color-mix(in srgb, var(--accent), var(--border) 42%);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--accent), transparent 86%);
    color: var(--accent);
}

.billing-tab-panels {
    display: grid;
    gap: 14px;
}

.billing-tab-panel {
    min-width: 0;
}

.billing-status-board {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
    gap: 12px;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 12%);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--accent), transparent 88%), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.84));
    padding: 14px;
}

.billing-status-board.is-ready,
.billing-status-board.is-requested,
.billing-status-board.is-paid {
    border-color: color-mix(in srgb, var(--accent), var(--border) 34%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 84%);
}

.billing-status-copy {
    display: grid;
    align-content: center;
    gap: 7px;
}

.billing-status-copy span,
.billing-create-note strong,
.billing-create-plan > div span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.billing-status-copy h3 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
}

.billing-status-copy p,
.billing-create-note span {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.38;
}

.billing-status-facts,
.billing-status-limits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.billing-status-limits {
    grid-column: 1 / -1;
}

.billing-status-facts span,
.billing-status-limits span {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
    padding: 10px 11px;
}

.billing-status-facts em,
.billing-status-limits em,
.billing-create-plan li em {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.billing-status-facts strong,
.billing-status-limits strong,
.billing-create-plan li b {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.billing-status-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 44%);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent), transparent 92%);
    padding: 10px;
}

.billing-status-actions span {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

.admin-dashboard-kpis {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 14%);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9)),
        color-mix(in srgb, var(--panel), transparent 0%);
    padding: clamp(16px, 2vw, 22px);
}

.admin-dashboard-kpis.is-inline {
    margin: 16px 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.admin-dashboard-kpis-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-dashboard-kpis-head span,
.admin-dashboard-kpi-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
}

.admin-dashboard-kpis-head h2 {
    margin: 4px 0 0;
    color: var(--text-main);
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 950;
    line-height: 1;
}

.admin-dashboard-kpis-head small {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.3;
    text-align: right;
}

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

.admin-dashboard-kpi-card {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
    padding: 16px;
}

.admin-dashboard-kpi-card strong {
    display: block;
    margin-top: 10px;
    color: var(--text-main);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.95;
}

.admin-dashboard-kpi-card small {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.35;
}

.admin-dashboard-kpi-card.is-positive {
    border-color: color-mix(in srgb, #16a34a, var(--border) 62%);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.86), rgba(255, 255, 255, 0.78));
}

html[data-theme="dark"] .admin-dashboard-kpis {
    background:
        linear-gradient(135deg, rgba(19, 23, 42, 0.94), rgba(20, 27, 48, 0.9)),
        var(--panel);
}

html[data-theme="dark"] .admin-dashboard-kpi-card {
    background: rgba(15, 23, 42, 0.68);
}

html[data-theme="dark"] .admin-dashboard-kpi-card.is-positive {
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.24), rgba(15, 23, 42, 0.68));
}

.billing-create-layout {
    display: grid;
    gap: 14px;
}

.billing-create-note {
    display: grid;
    gap: 5px;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 10%);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface, #ffffff), var(--accent) 4%);
    padding: 12px;
}

.billing-create-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.billing-create-plan {
    display: grid;
    gap: 12px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 8%);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.8);
    padding: 14px;
}

.billing-create-plan.is-selected {
    border-color: color-mix(in srgb, var(--accent), #ffffff 12%);
    background:
        radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--accent), transparent 88%), transparent 34%),
        rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 74%);
}

.billing-create-plan > div {
    display: grid;
    gap: 4px;
}

.billing-create-plan > div strong {
    color: var(--accent);
    font-size: 1.38rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1;
}

.billing-create-plan > div small {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.3;
}

.billing-create-plan ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.billing-create-plan li {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 18%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.74);
    padding: 9px 10px;
}

.billing-create-plan .btn {
    width: 100%;
}

.billing-checkout-shell {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.billing-checkout-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.28fr);
    gap: 12px;
    align-items: stretch;
}

.billing-checkout-hero > div:first-child,
.billing-checkout-summary,
.billing-pricing-card {
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 10%);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.84)),
        color-mix(in srgb, var(--surface, #ffffff), var(--accent) 3%);
}

.billing-checkout-hero > div:first-child {
    padding: 18px 20px;
}

.billing-checkout-hero span,
.billing-checkout-summary span,
.billing-pricing-card-topline > span,
.billing-plan-badges b,
.billing-pricing-features em {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: uppercase;
}

.billing-checkout-hero h3 {
    margin: 6px 0 8px;
    color: var(--text-main);
    font-size: clamp(1.35rem, 1.65vw, 1.72rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
}

.billing-checkout-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.45;
}

.billing-checkout-summary {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px 18px;
}

.billing-checkout-summary strong {
    color: var(--text-main);
    font-size: 1.22rem;
    font-weight: 950;
    line-height: 1;
}

.billing-checkout-summary small {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.25;
}

.billing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.billing-pricing-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    min-width: 0;
    min-height: 360px;
    padding: 18px 20px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.billing-pricing-card:hover,
.billing-pricing-card:focus-within {
    border-color: color-mix(in srgb, var(--accent), var(--border) 22%);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--accent), transparent 88%);
}

.billing-pricing-card.is-selected {
    border-color: color-mix(in srgb, var(--accent), var(--border) 18%);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent), transparent 88%), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.9));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 80%);
}

.billing-pricing-card-head {
    display: grid;
    gap: 8px;
}

.billing-pricing-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.billing-plan-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.billing-plan-badges b {
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 42%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 92%);
    color: color-mix(in srgb, var(--accent), var(--text-main) 18%);
    padding: 5px 8px;
}

.billing-pricing-card h4 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.billing-pricing-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 780;
    line-height: 1.38;
}

.billing-pricing-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.billing-pricing-features li {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 72px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
    padding: 10px 12px;
}

.billing-pricing-features em {
    color: var(--text-muted);
    font-style: normal;
    overflow-wrap: anywhere;
}

.billing-pricing-features b {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.15;
    text-align: left;
    overflow-wrap: anywhere;
}

.billing-pricing-features small {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.billing-pricing-action {
    display: grid;
    gap: 8px;
}

.billing-pricing-action .btn {
    width: 100%;
    min-height: 46px;
}

.billing-pricing-action small {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1.28;
    text-align: center;
}

html[data-theme="dark"] .billing-checkout-hero > div:first-child,
html[data-theme="dark"] .billing-checkout-summary,
html[data-theme="dark"] .billing-pricing-card {
    background: color-mix(in srgb, var(--panel), #0f172a 16%);
}

html[data-theme="dark"] .billing-pricing-features li {
    background: rgba(15, 23, 42, 0.62);
}

@media (max-width: 1180px) {
    .billing-status-board {
        grid-template-columns: 1fr;
    }

    .billing-status-limits {
        grid-column: auto;
    }

    .admin-dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .billing-checkout-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .billing-inner-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .billing-inner-tabs button {
        width: 100%;
    }

    .billing-status-facts,
    .billing-status-limits,
    .billing-create-plan-grid,
    .billing-create-plan ul,
    .billing-pricing-features,
    .billing-pricing-grid {
        grid-template-columns: 1fr;
    }

    .billing-pricing-card {
        min-height: 0;
        padding: 14px;
    }

    .billing-pricing-card-topline {
        display: grid;
    }

    .billing-plan-badges {
        justify-content: flex-start;
    }

    .billing-status-actions {
        display: grid;
        justify-items: stretch;
    }

    .billing-status-actions span {
        text-align: left;
    }

    .admin-dashboard-kpis-head {
        display: grid;
    }

    .admin-dashboard-kpis-head small {
        text-align: left;
    }

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

/* v1.436.5: native dashboard billing control, no separate promo block */
.overview-billing-inline {
    width: min(640px, 100%);
    justify-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    align-items: center;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 12%);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 255, 0.82));
    padding: 14px 16px;
}

.overview-billing-paybox {
    width: min(640px, 100%);
    grid-template-columns: minmax(0, 1fr) auto;
    border-color: color-mix(in srgb, var(--accent), var(--border) 28%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.9)),
        color-mix(in srgb, var(--surface), var(--accent) 3%);
    box-shadow: 0 16px 34px rgba(76, 87, 206, 0.08);
}

.overview-billing-paybox .overview-billing-copy span,
.overview-billing-paybox .overview-billing-current span,
.overview-billing-paybox .overview-billing-action > span {
    color: color-mix(in srgb, var(--accent), var(--text-muted) 25%);
    text-transform: uppercase;
}

.overview-billing-paybox .overview-billing-copy strong {
    font-size: 1.22rem;
}

.overview-billing-paybox .overview-billing-current {
    background: color-mix(in srgb, var(--accent), transparent 92%);
}

.overview-billing-paybox .overview-billing-action .btn {
    min-width: 164px;
}

/* v1.459.1: dashboard payment lives inside the account KPI grid, not in the header */
.overview-summary-v1387-top {
    grid-template-columns: 1fr;
}

.overview-payment-stat {
    grid-column: span 2;
    align-content: stretch !important;
    grid-template-rows: auto auto 1fr auto;
    gap: 8px !important;
    border-color: color-mix(in srgb, var(--accent), var(--border) 26%) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 255, 0.82)) !important;
}

.overview-payment-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.overview-payment-stat-head b {
    flex: 0 0 auto;
    max-width: 100%;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 28%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 92%);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    padding: 7px 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.overview-payment-stat > strong {
    color: var(--text-main);
    font-size: clamp(1.35rem, 1.5vw, 1.7rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.overview-payment-stat > .muted {
    max-width: 560px;
    font-weight: 760;
    line-height: 1.32;
}

.overview-payment-stat-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 4px;
}

.overview-payment-stat-action .btn {
    min-height: 40px;
    min-width: 180px;
}

@media (max-width: 1024px) {
    .overview-payment-stat {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .overview-payment-stat-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-payment-stat-action,
    .overview-payment-stat-action .btn {
        width: 100%;
    }
}

.toggle-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 14%);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface), var(--accent) 3%);
    padding: 14px;
}

.toggle-row input[type="checkbox"] {
    margin-top: 3px;
}

.toggle-row span {
    display: grid;
    gap: 4px;
}

.toggle-row strong {
    color: var(--text-main);
    font-weight: 900;
}

.toggle-row small {
    color: var(--text-muted);
    font-weight: 650;
    line-height: 1.35;
}

/* v1.447: compact admin logging and monitoring */
.monitoring-shell {
    display: grid;
    gap: 14px;
}

.monitoring-filter {
    display: inline-flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 70;
}

.monitoring-page-header,
.cc-page-header.monitoring-page-header,
.monitoring-page-header .cc-page-header-main,
.monitoring-page-header .cc-page-header-actions {
    position: relative;
    overflow: visible !important;
}

.cc-page-header.monitoring-page-header {
    z-index: 55;
}

.monitoring-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    position: relative;
    top: auto;
    z-index: 1;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: var(--clean-radius-lg, 26px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 44px rgba(66, 72, 143, 0.1);
    padding: 8px;
    backdrop-filter: blur(18px);
}

.monitoring-tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 62px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    padding: 10px;
    text-align: left;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.monitoring-tab-button:hover,
.monitoring-tab-button:focus-visible {
    border-color: rgba(83, 92, 226, 0.24);
    background: rgba(245, 244, 255, 0.82);
    outline: none;
}

.monitoring-tab-button.is-active,
.monitoring-tab-button[aria-selected="true"] {
    border-color: rgba(83, 92, 226, 0.36);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 241, 255, 0.92));
    box-shadow: 0 12px 28px rgba(66, 72, 143, 0.12);
}

.monitoring-tab-button.is-active {
    transform: translateY(-1px);
}

.monitoring-tab-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(104, 112, 243, 0.1);
    color: var(--ui-primary-strong, #535ce2);
    font-size: 0.78rem;
    font-weight: 950;
}

.monitoring-tab-button.is-active .monitoring-tab-index,
.monitoring-tab-button[aria-selected="true"] .monitoring-tab-index {
    background: var(--ui-primary-strong, #535ce2);
    color: #ffffff;
}

.monitoring-tab-button span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.monitoring-tab-button strong,
.monitoring-tab-button small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monitoring-tab-button strong {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 950;
}

.monitoring-tab-button small {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 780;
}

.monitoring-tab-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.monitoring-tab-panel[hidden] {
    display: none !important;
}

.monitoring-overview-panel,
.monitoring-logs-panel {
    align-content: start;
}

.monitoring-period-menu {
    position: relative;
    min-width: 120px;
}

.monitoring-period-label {
    display: block;
    margin-bottom: 4px;
}

.monitoring-period-dropdown {
    position: relative;
    z-index: 90;
}

.monitoring-period-dropdown summary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
    list-style: none;
    padding: 10px 13px;
    box-shadow: 0 12px 28px rgba(66, 72, 143, 0.08);
}

.monitoring-period-dropdown summary::-webkit-details-marker {
    display: none;
}

.monitoring-period-dropdown summary svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    transition: transform 0.16s ease;
}

.monitoring-period-dropdown[open] summary {
    border-color: rgba(83, 92, 226, 0.44);
    box-shadow: 0 0 0 4px rgba(83, 92, 226, 0.1), 0 18px 38px rgba(66, 72, 143, 0.12);
}

.monitoring-period-dropdown[open] summary svg {
    transform: rotate(180deg);
}

.monitoring-period-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 500;
    display: grid;
    gap: 4px;
    min-width: 142px;
    border: 1px solid rgba(136, 140, 213, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 255, 0.96));
    box-shadow: 0 24px 60px rgba(66, 72, 143, 0.22);
    padding: 7px;
}

.monitoring-period-options a {
    display: flex;
    align-items: center;
    min-height: 36px;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 800;
    text-decoration: none;
    padding: 8px 10px;
}

.monitoring-period-options a:hover,
.monitoring-period-options a.is-active {
    background: rgba(104, 112, 243, 0.12);
    color: var(--ui-primary-strong, #535ce2);
}

.monitoring-period-label,
.monitoring-kpi-card span,
.monitoring-status-strip em {
    display: grid;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.monitoring-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.monitoring-kpi-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: var(--clean-radius-lg, 26px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 255, 0.84)),
        radial-gradient(circle at 14% 0%, rgba(104, 112, 243, 0.1), transparent 42%);
    box-shadow: 0 18px 42px rgba(66, 72, 143, 0.08);
    padding: 18px;
}

.monitoring-kpi-card span,
.monitoring-status-strip em {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.monitoring-kpi-card strong {
    color: var(--text-main);
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 900;
    line-height: 1;
}

.monitoring-kpi-card small,
.monitoring-panel .small {
    line-height: 1.35;
}

.monitoring-kpi-card.is-success {
    border-color: color-mix(in srgb, var(--ok), var(--border) 64%);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--ok), #ffffff 94%), rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--ok), transparent 78%), transparent 44%);
}

.monitoring-kpi-card.is-danger {
    border-color: color-mix(in srgb, var(--danger), var(--border) 58%);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--danger), #ffffff 94%), rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--danger), transparent 82%), transparent 44%);
}

.anti-fraud-panel {
    display: grid;
    gap: 14px;
    border-color: rgba(191, 78, 78, 0.2);
}

.anti-fraud-head {
    margin-bottom: 0;
}

.anti-fraud-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.anti-fraud-kpi {
    display: grid;
    gap: 7px;
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.72);
    padding: 13px 14px;
}

.anti-fraud-kpi.is-danger {
    border-color: color-mix(in srgb, var(--danger), var(--border) 56%);
    background: color-mix(in srgb, var(--danger), #ffffff 93%);
}

.anti-fraud-kpi span,
.anti-fraud-rule label > span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.anti-fraud-kpi strong {
    color: var(--text-main);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 950;
    line-height: 1;
}

.anti-fraud-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 14px;
}

.anti-fraud-card {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.anti-fraud-card-head h3 {
    margin: 0;
    font-size: 1rem;
}

.anti-fraud-table {
    min-width: 720px;
}

.anti-fraud-table th:nth-child(2),
.anti-fraud-table th:nth-child(3),
.anti-fraud-table th:nth-child(4),
.anti-fraud-table td:nth-child(2),
.anti-fraud-table td:nth-child(3),
.anti-fraud-table td:nth-child(4) {
    width: 110px;
}

.anti-fraud-table th:nth-child(5),
.anti-fraud-table td:nth-child(5) {
    width: 132px;
}

.anti-fraud-ip-cell {
    min-width: 220px;
    color: var(--text-main);
    font-weight: 900;
}

.anti-fraud-ip-cell > strong {
    display: block;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.anti-fraud-ip-users {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.anti-fraud-ip-users span,
.anti-fraud-ip-users strong,
.anti-fraud-ip-users small {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    border: 1px solid rgba(136, 140, 213, 0.22);
    border-radius: 999px;
    background: rgba(246, 247, 255, 0.86);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.1;
    overflow-wrap: anywhere;
    padding: 4px 7px;
}

.anti-fraud-ip-users strong {
    color: var(--text-main);
}

.anti-fraud-chart {
    display: grid;
    gap: 9px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
}

.anti-fraud-bar-row {
    display: grid;
    grid-template-columns: minmax(100px, 0.8fr) minmax(90px, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-width: 0;
    font-size: 0.82rem;
}

.anti-fraud-bar-row span {
    overflow: hidden;
    color: var(--text-muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anti-fraud-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--border), transparent 24%);
}

.anti-fraud-bar-track i {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, #e45f4f, #6870f3);
}

.anti-fraud-event-list {
    display: grid;
    gap: 9px;
}

.anti-fraud-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
}

.anti-fraud-event-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.anti-fraud-event-main strong,
.anti-fraud-event-main small {
    display: block;
    overflow-wrap: anywhere;
}

.anti-fraud-event-main small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.anti-fraud-event-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.anti-fraud-risk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    padding: 7px 9px;
    text-transform: uppercase;
}

.anti-fraud-risk.risk-low {
    background: color-mix(in srgb, var(--ok), #ffffff 86%);
    color: var(--ok);
}

.anti-fraud-risk.risk-medium {
    background: color-mix(in srgb, var(--warning), #ffffff 84%);
    color: var(--warning);
}

.anti-fraud-risk.risk-high,
.anti-fraud-risk.risk-critical {
    background: color-mix(in srgb, var(--danger), #ffffff 84%);
    color: var(--danger);
}

.anti-fraud-rules {
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
}

.anti-fraud-rules > summary {
    cursor: pointer;
    color: var(--text-main);
    font-weight: 900;
}

.anti-fraud-rules-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

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

.anti-fraud-rule {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    padding: 12px;
}

.anti-fraud-rule legend {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 900;
    padding: 0 4px;
}

.anti-fraud-rule .checkbox-label {
    grid-column: 1 / -1;
}

.anti-fraud-rule label:not(.checkbox-label) {
    display: grid;
    gap: 5px;
}

.anti-fraud-rule input[type="number"] {
    width: 100%;
}

.anti-fraud-blocked-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.anti-fraud-blocked-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--danger), var(--border) 56%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--danger), #ffffff 92%);
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 7px 10px;
}

.anti-fraud-blocked-strip small {
    color: inherit;
    font-size: 0.7rem;
    opacity: 0.74;
}

.anti-fraud-blocked-registry {
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
}

.anti-fraud-blocked-registry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.anti-fraud-blocked-registry-head p {
    margin: 4px 0 0;
}

.anti-fraud-registry-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    border: 1px solid rgba(141, 150, 255, 0.38);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), #ffffff 92%);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 950;
    padding: 5px 10px;
}

.anti-fraud-blocked-registry-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: min(100%, 460px);
}

.anti-fraud-unblock-search {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 8px;
    align-items: end;
    min-width: min(100%, 370px);
}

.anti-fraud-unblock-search label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.anti-fraud-unblock-search label > span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.anti-fraud-unblock-search input {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(136, 140, 213, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-main);
    font-weight: 800;
    padding: 7px 10px;
}

.anti-fraud-blocked-list {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.anti-fraud-blocked-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.75fr) minmax(240px, 1.35fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
}

.anti-fraud-blocked-ip,
.anti-fraud-blocked-users,
.anti-fraud-blocked-meta {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.anti-fraud-blocked-ip > span,
.anti-fraud-blocked-users > span,
.anti-fraud-blocked-meta > span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.anti-fraud-blocked-ip strong,
.anti-fraud-blocked-meta strong {
    overflow-wrap: anywhere;
}

.anti-fraud-blocked-meta small {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.anti-fraud-unblock-form,
.anti-fraud-unblock-form .btn {
    justify-self: end;
}

.presence-panel {
    display: grid;
    gap: 14px;
    border-color: rgba(39, 160, 125, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 249, 0.9)),
        radial-gradient(circle at 0% 0%, rgba(39, 160, 125, 0.13), transparent 34%);
}

.presence-head {
    margin-bottom: 0;
}

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

.presence-kpi {
    display: grid;
    gap: 7px;
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.72);
    padding: 13px 14px;
}

.presence-kpi.is-live {
    border-color: color-mix(in srgb, var(--ok), var(--border) 56%);
    background: color-mix(in srgb, var(--ok), #ffffff 93%);
}

.presence-kpi span,
.presence-table small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.presence-kpi strong {
    color: var(--text-main);
    font-size: clamp(1.32rem, 1.8vw, 1.78rem);
    font-weight: 950;
    line-height: 1;
}

.presence-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 14px;
}

.presence-card {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.presence-card-head h3 {
    margin: 0;
    font-size: 1rem;
}

.presence-card-head-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.presence-feed-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.presence-feed-metrics span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1;
    padding: 7px 9px;
}

.presence-feed-metrics small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 850;
}

.presence-user-list {
    display: grid;
    gap: 10px;
}

.presence-user-card {
    overflow: hidden;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.72);
}

.presence-user-card[open] {
    border-color: rgba(83, 92, 226, 0.3);
    box-shadow: 0 16px 36px rgba(66, 72, 143, 0.08);
}

.presence-user-summary {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(120px, 0.7fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(120px, 0.7fr) minmax(110px, 0.62fr);
    gap: 12px;
    align-items: center;
    min-height: 82px;
    cursor: pointer;
    list-style: none;
    padding: 14px;
}

.presence-user-summary::-webkit-details-marker {
    display: none;
}

.presence-user-summary > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.presence-user-summary em,
.presence-user-meta em {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.presence-user-summary strong,
.presence-user-summary small,
.presence-user-meta strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presence-user-summary strong {
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 950;
}

.presence-user-summary small {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 780;
}

.presence-user-summary code,
.presence-session-item code {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.presence-user-person strong {
    font-size: 1rem;
}

.presence-user-status {
    justify-items: end;
    text-align: right;
}

.presence-user-body {
    display: grid;
    gap: 12px;
    border-top: 1px solid rgba(136, 140, 213, 0.14);
    padding: 12px 14px 14px;
}

.presence-user-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.presence-user-meta span,
.presence-session-item {
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    padding: 10px 11px;
}

.presence-user-meta strong {
    margin-top: 4px;
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 900;
}

.presence-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.presence-user-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
}

.presence-user-detail-grid h4 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 950;
}

.presence-session-list {
    display: grid;
    gap: 8px;
}

.presence-session-item {
    display: grid;
    gap: 3px;
}

.presence-session-item strong,
.presence-session-item small {
    display: block;
    overflow-wrap: anywhere;
}

.presence-session-item small {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 760;
}

.presence-ip-line,
.presence-user-summary strong.presence-ip-line,
.presence-digest-cell small.presence-ip-line,
.presence-digest-detail strong.presence-ip-line,
.presence-session-ip {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.presence-user-summary strong.presence-ip-line,
.presence-digest-detail strong.presence-ip-line,
.presence-session-ip {
    color: var(--text-main);
}

.presence-ip-line > span:not(.ip-country-chip),
.presence-session-ip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.presence-ip-chip-list,
.presence-user-meta strong.presence-ip-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    white-space: normal;
}

.presence-ip-address-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 4px 6px 4px 9px;
}

.presence-ip-address-chip > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-country-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    min-width: 0;
    border: 1px solid rgba(83, 92, 226, 0.22);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.1);
    color: var(--ui-primary-strong, #535ce2);
    font-size: 0.68rem;
    font-weight: 950;
    line-height: 1;
    padding: 3px 6px;
    text-transform: uppercase;
}

.ip-country-chip b {
    color: inherit;
    font: inherit;
    line-height: 1;
}

.ip-country-flag {
    font-size: 0.9rem;
    line-height: 1;
}

.ip-country-chip.is-local {
    border-color: rgba(136, 140, 213, 0.18);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-muted);
}

.ip-country-chip.is-unknown {
    border-color: color-mix(in srgb, var(--warning), var(--border) 42%);
    background: color-mix(in srgb, var(--warning), transparent 88%);
    color: color-mix(in srgb, var(--warning), var(--text-main) 24%);
}

.presence-event-list.is-compact {
    max-height: 340px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.presence-event-list.is-compact .presence-event {
    padding: 10px;
}

.presence-table {
    min-width: 1080px;
}

.presence-table td {
    vertical-align: top;
}

.presence-table td > strong,
.presence-table td > small {
    display: block;
    overflow-wrap: anywhere;
}

.presence-table code {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    color: var(--text-main);
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.presence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.presence-event-list {
    display: grid;
    gap: 9px;
}

.presence-digest-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: min(500px, 56vh);
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.presence-digest-header {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(118px, 0.55fr) minmax(170px, 0.82fr) minmax(76px, 0.25fr) minmax(116px, 0.42fr) minmax(80px, 0.28fr);
    gap: 10px;
    align-items: center;
    padding: 0 12px 0 35px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.presence-digest-item {
    position: relative;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.presence-digest-item:focus-within {
    border-color: rgba(83, 92, 226, 0.28);
}

.presence-digest-item.is-background {
    background: rgba(247, 248, 255, 0.72);
}

.presence-digest-summary {
    display: grid;
    grid-template-columns: auto minmax(190px, 1fr) minmax(118px, 0.55fr) minmax(170px, 0.82fr) minmax(76px, 0.25fr) minmax(116px, 0.42fr) minmax(80px, 0.28fr);
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 12px 96px 12px 12px;
}

.presence-digest-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.presence-digest-cell em {
    display: none;
}

.presence-digest-cell strong,
.presence-digest-cell small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presence-digest-cell strong {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 950;
    line-height: 1.2;
}

.presence-digest-cell small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 780;
}

.presence-digest-path strong,
.presence-digest-path small {
    overflow-wrap: anywhere;
}

.presence-digest-repeat {
    justify-items: center;
    text-align: center;
}

.presence-digest-repeat strong {
    min-width: 42px;
    border: 1px solid rgba(83, 92, 226, 0.2);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.1);
    color: var(--ui-primary-strong, #535ce2);
    font-size: 0.8rem;
    font-weight: 950;
    line-height: 1;
    padding: 7px 10px;
    text-align: center;
}

.presence-digest-time {
    justify-items: end;
    text-align: right;
}

.presence-digest-details {
    min-width: 0;
}

.presence-digest-details > summary {
    position: absolute;
    top: 50%;
    right: 12px;
    width: fit-content;
    min-width: 72px;
    border: 1px solid rgba(136, 140, 213, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    list-style: none;
    transform: translateY(-50%);
}

.presence-digest-details > summary::-webkit-details-marker {
    display: none;
}

.presence-digest-details[open] > summary {
    top: 24px;
    transform: none;
}

.presence-digest-detail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid rgba(136, 140, 213, 0.14);
    padding: 10px 12px 12px 32px;
}

.presence-digest-detail span {
    min-width: 0;
}

.presence-digest-detail em {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.presence-digest-detail strong {
    display: block;
    margin-top: 3px;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 880;
    overflow-wrap: anywhere;
}

.presence-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
}

.presence-event-dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--ok);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok), transparent 82%);
}

.presence-event strong,
.presence-event small {
    display: block;
    overflow-wrap: anywhere;
}

.presence-event small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.4;
}

.presence-path-chart {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
}

.presence-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(90px, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    min-width: 0;
    font-size: 0.82rem;
}

.presence-bar-row span {
    overflow: hidden;
    color: var(--text-muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presence-bar-row small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.presence-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--border), transparent 24%);
}

.presence-bar-track i {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, #27a07d, #6870f3);
}

.monitoring-delay-panel {
    display: grid;
    gap: 16px;
    border-color: rgba(83, 92, 226, 0.26);
    border-radius: var(--clean-radius-xl, 32px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 255, 0.9)),
        radial-gradient(circle at 0% 0%, rgba(104, 112, 243, 0.16), transparent 34%);
    box-shadow: 0 22px 60px rgba(66, 72, 143, 0.1);
}

.monitoring-delay-head,
.monitoring-delay-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.monitoring-delay-head h2 {
    margin: 2px 0 5px;
    font-size: clamp(1.18rem, 1.55vw, 1.55rem);
}

.monitoring-delay-eyebrow {
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.monitoring-delay-mode-card {
    display: grid;
    gap: 4px;
    min-width: 180px;
    border: 1px solid rgba(83, 92, 226, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    padding: 14px 16px;
    text-align: right;
}

.monitoring-delay-mode-card span,
.monitoring-delay-now span,
.monitoring-delay-signals em,
.monitoring-delay-meta em,
.monitoring-delay-comment > span,
.monitoring-delay-manual-fields label > span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.monitoring-delay-mode-card strong {
    color: var(--text-main);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 950;
    line-height: 1;
}

.monitoring-delay-form {
    display: grid;
    gap: 14px;
}

.monitoring-delay-dashboard {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
    gap: 12px;
}

.monitoring-delay-now,
.monitoring-delay-signals span,
.monitoring-delay-option,
.monitoring-delay-meta span {
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    padding: 13px 14px;
}

.monitoring-delay-now {
    display: grid;
    gap: 6px;
}

.monitoring-delay-now strong {
    color: var(--text-main);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 950;
    line-height: 1;
}

.monitoring-delay-now strong em {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 850;
}

.monitoring-delay-now small {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.35;
}

.monitoring-delay-signals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
}

.monitoring-delay-signals span,
.monitoring-delay-meta span {
    display: grid;
    gap: 4px;
}

.monitoring-delay-signals b,
.monitoring-delay-meta b {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.monitoring-delay-mode-toggle,
.monitoring-delay-profile-fields,
.monitoring-delay-manual-fields,
.monitoring-delay-meta {
    display: grid;
    gap: 10px;
}

.monitoring-delay-profile-fields {
    gap: 8px;
}

.monitoring-delay-profile-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 760;
}

.monitoring-delay-profile-head strong {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 900;
}

.monitoring-delay-mode-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monitoring-delay-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.monitoring-delay-option:has(input:checked) {
    border-color: rgba(83, 92, 226, 0.42);
    background: rgba(242, 241, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(83, 92, 226, 0.12);
}

.monitoring-delay-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.monitoring-delay-option span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.monitoring-delay-option strong {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 900;
}

.monitoring-delay-option small {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.monitoring-delay-manual-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monitoring-delay-comment textarea {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    border: 1px solid rgba(39, 28, 9, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 10px 12px;
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.monitoring-delay-comment textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104, 112, 243, 0.15);
}

.monitoring-delay-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
}

.monitoring-delay-footer .btn {
    min-width: 150px;
}

.monitoring-status-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.monitoring-status-strip span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(66, 72, 143, 0.06);
    padding: 9px 14px;
}

.monitoring-status-strip b {
    font-size: 1rem;
    font-weight: 900;
}

.monitoring-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 14px;
}

.monitoring-panel {
    border-color: rgba(136, 140, 213, 0.18);
    border-radius: var(--clean-radius-xl, 32px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 248, 255, 0.88));
    box-shadow: 0 20px 54px rgba(66, 72, 143, 0.08);
    padding: clamp(18px, 2vw, 24px);
}

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

.monitoring-panel-head h2 {
    margin: 0 0 4px;
}

.monitoring-panel-head .badge {
    align-self: flex-start;
    flex: 0 0 auto;
    white-space: nowrap;
}

.monitoring-table-wrap {
    overflow-x: auto;
    border-radius: var(--clean-radius-md, 20px);
}

.monitoring-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: fixed;
}

.monitoring-table th,
.monitoring-table td {
    padding: 10px 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 28%);
    font-size: 0.84rem;
    text-align: left;
    vertical-align: top;
}

.monitoring-table th {
    background: rgba(242, 240, 255, 0.78);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.monitoring-table.is-log {
    min-width: 900px;
}

.monitoring-table.is-log th:nth-child(1),
.monitoring-table.is-log td:nth-child(1) {
    width: 70px;
}

.monitoring-table.is-log th:nth-child(2),
.monitoring-table.is-log td:nth-child(2) {
    width: 132px;
}

.monitoring-table.is-log th:nth-child(4),
.monitoring-table.is-log td:nth-child(4),
.monitoring-table.is-log th:nth-child(5),
.monitoring-table.is-log td:nth-child(5),
.monitoring-table.is-log th:nth-child(6),
.monitoring-table.is-log td:nth-child(6),
.monitoring-table.is-log th:nth-child(7),
.monitoring-table.is-log td:nth-child(7) {
    width: 112px;
}

.monitoring-url-cell {
    overflow-wrap: anywhere;
    color: var(--text-muted);
}

.monitoring-error-list {
    display: grid;
    gap: 8px;
}

.monitoring-error-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid color-mix(in srgb, var(--border), var(--danger) 18%);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.72);
    padding: 12px;
}

.monitoring-error-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.monitoring-error-main strong {
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.25;
}

.monitoring-error-main small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.monitoring-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ok), #ffffff 84%);
    color: var(--ok);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    padding: 6px 8px;
    text-transform: uppercase;
}

.monitoring-status[class*="status-4"],
.monitoring-status.status-network {
    background: color-mix(in srgb, var(--warning), #ffffff 84%);
    color: var(--warning);
}

.monitoring-status[class*="status-5"] {
    background: color-mix(in srgb, var(--danger), #ffffff 84%);
    color: var(--danger);
}

.monitoring-log-panel {
    display: grid;
    gap: 12px;
}

.monitoring-log-closed,
.monitoring-log-toolbar,
.monitoring-log-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: var(--clean-radius-md, 20px);
    background: rgba(255, 255, 255, 0.72);
    padding: 12px 14px;
}

.monitoring-log-closed strong,
.monitoring-log-toolbar b {
    color: var(--text-main);
}

.monitoring-log-closed p {
    margin: 3px 0 0;
}

.monitoring-log-list {
    display: grid;
    gap: 7px;
}

.monitoring-log-item {
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    overflow: hidden;
}

.monitoring-log-item summary {
    display: grid;
    grid-template-columns: 72px 84px 64px 86px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 42px;
    cursor: pointer;
    list-style: none;
    padding: 8px 10px;
}

.monitoring-log-item summary::-webkit-details-marker {
    display: none;
}

.monitoring-log-item[open] summary {
    background: rgba(242, 240, 255, 0.66);
}

.monitoring-log-id,
.monitoring-log-item summary span {
    min-width: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monitoring-log-id {
    color: var(--text-main);
}

.monitoring-log-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    border-top: 1px solid rgba(136, 140, 213, 0.12);
    padding: 12px;
}

.monitoring-log-detail-grid div {
    min-width: 0;
}

.monitoring-log-detail-grid dt {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.monitoring-log-detail-grid dd {
    margin: 3px 0 0;
    color: var(--text-main);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.monitoring-log-pagination .btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

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

html[data-theme="dark"] .monitoring-kpi-card,
html[data-theme="dark"] .anti-fraud-kpi,
html[data-theme="dark"] .anti-fraud-chart,
html[data-theme="dark"] .anti-fraud-event,
html[data-theme="dark"] .anti-fraud-rules,
html[data-theme="dark"] .anti-fraud-rule,
html[data-theme="dark"] .anti-fraud-blocked-registry,
html[data-theme="dark"] .anti-fraud-blocked-row,
html[data-theme="dark"] .anti-fraud-ip-users span,
html[data-theme="dark"] .anti-fraud-ip-users strong,
html[data-theme="dark"] .anti-fraud-ip-users small,
html[data-theme="dark"] .anti-fraud-unblock-search input,
html[data-theme="dark"] .presence-kpi,
html[data-theme="dark"] .presence-user-card,
html[data-theme="dark"] .presence-user-meta span,
html[data-theme="dark"] .presence-ip-address-chip,
html[data-theme="dark"] .presence-session-item,
html[data-theme="dark"] .presence-event,
html[data-theme="dark"] .presence-digest-item,
html[data-theme="dark"] .presence-feed-metrics span,
html[data-theme="dark"] .presence-path-chart,
html[data-theme="dark"] .monitoring-status-strip span,
html[data-theme="dark"] .monitoring-error-item,
html[data-theme="dark"] .monitoring-period-dropdown summary,
html[data-theme="dark"] .monitoring-log-closed,
html[data-theme="dark"] .monitoring-log-toolbar,
html[data-theme="dark"] .monitoring-log-pagination,
html[data-theme="dark"] .monitoring-log-item {
    background: rgba(25, 32, 39, 0.82);
}

html[data-theme="dark"] .monitoring-period-options {
    background: linear-gradient(145deg, rgba(25, 32, 39, 0.98), rgba(31, 36, 48, 0.96));
}

html[data-theme="dark"] .monitoring-tabs {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(18, 25, 34, 0.82);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .monitoring-tab-button:hover,
html[data-theme="dark"] .monitoring-tab-button:focus-visible,
html[data-theme="dark"] .monitoring-tab-button.is-active,
html[data-theme="dark"] .monitoring-tab-button[aria-selected="true"] {
    border-color: rgba(141, 150, 255, 0.38);
    background: rgba(55, 60, 104, 0.42);
}

html[data-theme="dark"] .monitoring-kpi-card.is-success {
    background: color-mix(in srgb, var(--ok), #111923 84%);
}

html[data-theme="dark"] .monitoring-kpi-card.is-danger {
    background: color-mix(in srgb, var(--danger), #111923 86%);
}

html[data-theme="dark"] .anti-fraud-kpi.is-danger,
html[data-theme="dark"] .anti-fraud-blocked-strip span {
    background: color-mix(in srgb, var(--danger), #111923 84%);
}

html[data-theme="dark"] .presence-panel {
    border-color: rgba(68, 196, 158, 0.28);
    background:
        linear-gradient(145deg, rgba(20, 27, 35, 0.96), rgba(23, 38, 36, 0.9)),
        radial-gradient(circle at 0% 0%, rgba(68, 196, 158, 0.14), transparent 34%);
}

html[data-theme="dark"] .presence-kpi.is-live {
    background: color-mix(in srgb, var(--ok), #111923 84%);
}

html[data-theme="dark"] .ip-country-chip {
    border-color: rgba(141, 150, 255, 0.32);
    background: rgba(55, 60, 104, 0.42);
    color: color-mix(in srgb, var(--accent), #ffffff 22%);
}

html[data-theme="dark"] .ip-country-chip.is-local {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(18, 25, 34, 0.76);
    color: var(--text-muted);
}

html[data-theme="dark"] .ip-country-chip.is-unknown {
    background: color-mix(in srgb, var(--warning), #111923 82%);
}

html[data-theme="dark"] .anti-fraud-risk.risk-low {
    background: color-mix(in srgb, var(--ok), #111923 82%);
}

html[data-theme="dark"] .anti-fraud-risk.risk-medium {
    background: color-mix(in srgb, var(--warning), #111923 82%);
}

html[data-theme="dark"] .anti-fraud-risk.risk-high,
html[data-theme="dark"] .anti-fraud-risk.risk-critical {
    background: color-mix(in srgb, var(--danger), #111923 82%);
}

html[data-theme="dark"] .monitoring-delay-panel {
    border-color: rgba(141, 150, 255, 0.32);
    background:
        linear-gradient(145deg, rgba(20, 27, 35, 0.96), rgba(25, 32, 45, 0.9)),
        radial-gradient(circle at 0% 0%, rgba(141, 150, 255, 0.15), transparent 34%);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .monitoring-delay-mode-card,
html[data-theme="dark"] .monitoring-delay-now,
html[data-theme="dark"] .monitoring-delay-signals span,
html[data-theme="dark"] .monitoring-delay-option,
html[data-theme="dark"] .monitoring-delay-meta span,
html[data-theme="dark"] .monitoring-delay-comment textarea {
    border-color: rgba(126, 156, 178, 0.26);
    background: rgba(18, 25, 34, 0.86);
}

html[data-theme="dark"] .monitoring-delay-option:has(input:checked) {
    border-color: rgba(141, 150, 255, 0.46);
    background: rgba(55, 60, 104, 0.42);
}

@media (max-width: 1020px) {
    .monitoring-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .monitoring-kpi-grid,
    .anti-fraud-kpis,
    .presence-kpis,
    .anti-fraud-grid,
    .presence-grid,
    .anti-fraud-rule-grid,
    .monitoring-status-strip,
    .monitoring-grid {
        grid-template-columns: 1fr 1fr;
    }

    .monitoring-delay-dashboard,
    .monitoring-delay-mode-toggle,
    .monitoring-delay-manual-fields,
    .presence-digest-header,
    .presence-user-summary,
    .presence-user-meta,
    .anti-fraud-blocked-row,
    .presence-user-detail-grid,
    .presence-digest-summary,
    .presence-digest-detail {
        grid-template-columns: 1fr;
    }

    .presence-digest-header {
        display: none;
    }

    .presence-digest-time,
    .presence-digest-repeat {
        justify-items: start;
        text-align: left;
    }

    .presence-digest-summary {
        padding-right: 12px;
    }

    .presence-digest-cell em {
        display: block;
        color: var(--text-muted);
        font-size: 0.66rem;
        font-style: normal;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1;
        text-transform: uppercase;
    }

    .presence-digest-details > summary,
    .presence-digest-details[open] > summary {
        position: static;
        margin: 0 12px 12px;
        transform: none;
    }
}

@media (max-width: 700px) {
    .monitoring-tabs {
        position: static;
        grid-template-columns: 1fr;
    }

    .monitoring-tab-button {
        min-height: 56px;
    }

    .monitoring-kpi-grid,
    .anti-fraud-kpis,
    .presence-kpis,
    .anti-fraud-grid,
    .presence-grid,
    .anti-fraud-rule-grid,
    .monitoring-status-strip,
    .monitoring-grid {
        grid-template-columns: 1fr;
    }

    .monitoring-panel-head,
    .presence-card-head-split,
    .anti-fraud-event,
    .presence-actions,
    .monitoring-filter,
    .monitoring-delay-head,
    .monitoring-delay-profile-head,
    .monitoring-delay-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .monitoring-filter,
    .monitoring-period-menu,
    .monitoring-filter .btn,
    .monitoring-delay-footer .btn {
        width: 100%;
    }

    .monitoring-delay-mode-card {
        width: 100%;
        text-align: left;
    }

    .monitoring-delay-signals,
    .monitoring-delay-meta,
    .anti-fraud-rule,
    .anti-fraud-bar-row,
    .anti-fraud-blocked-row,
    .presence-user-summary,
    .presence-user-meta,
    .presence-user-detail-grid,
    .presence-digest-summary,
    .presence-digest-detail,
    .presence-bar-row {
        grid-template-columns: 1fr;
    }

    .anti-fraud-event-actions,
    .anti-fraud-event-actions .inline-form,
    .anti-fraud-event-actions .btn,
    .anti-fraud-blocked-registry-tools,
    .anti-fraud-unblock-search,
    .anti-fraud-unblock-form,
    .anti-fraud-unblock-form .btn,
    .presence-actions .inline-form,
    .presence-actions .btn {
        width: 100%;
        justify-self: stretch;
    }

    .monitoring-period-options {
        left: 0;
        right: auto;
        width: min(100%, 220px);
    }

    .monitoring-log-closed,
    .monitoring-log-toolbar,
    .monitoring-log-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .monitoring-log-closed .btn,
    .monitoring-log-toolbar .btn,
    .monitoring-log-pagination .btn {
        width: 100%;
    }

    .monitoring-log-item summary {
        grid-template-columns: 62px 78px 1fr;
    }

    .monitoring-log-item summary span:nth-child(4),
    .monitoring-log-item summary span:nth-child(5) {
        display: none;
    }

    .monitoring-log-detail-grid {
        grid-template-columns: 1fr;
    }

    .presence-user-summary {
        align-items: stretch;
    }

    .presence-user-status {
        justify-items: start;
        text-align: left;
    }

    .presence-digest-detail {
        padding-left: 12px;
    }

    .presence-feed-metrics {
        justify-content: flex-start;
    }
}

/* v1.447.1: keep long admin navigation usable after adding monitoring */
body.shell-auth .app-sidebar,
html:not([data-theme="dark"]) body.shell-auth .app-sidebar {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.shell-auth .sidebar-nav,
html:not([data-theme="dark"]) body.shell-auth .sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: max(32px, env(safe-area-inset-bottom)) !important;
    scrollbar-gutter: stable;
}

body.shell-auth .sidebar-link {
    flex-shrink: 0;
}

body.shell-auth .sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

body.shell-auth .sidebar-nav::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(121, 126, 230, 0.28);
    background-clip: padding-box;
}

.overview-billing-copy,
.overview-billing-action,
.overview-billing-current,
.overview-billing-plan {
    min-width: 0;
}

.overview-billing-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    grid-column: 1;
    min-width: 0;
    padding: 0;
}

.overview-billing-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.overview-billing-title-row > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.overview-billing-copy span,
.overview-billing-current span,
.overview-billing-action > span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
}

.overview-billing-copy strong {
    color: var(--text-main);
    font-size: clamp(1.12rem, 1.2vw, 1.3rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.overview-billing-copy small {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.28;
    max-width: 430px;
}

.overview-billing-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.overview-billing-plan {
    position: relative;
    display: grid;
    gap: 4px;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 8%);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.86);
    padding: 8px 10px;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.overview-billing-plan:hover {
    border-color: color-mix(in srgb, var(--accent), var(--border) 38%);
}

.overview-billing-plan:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent), #ffffff 10%);
    background: color-mix(in srgb, var(--accent), #ffffff 92%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 72%);
}

.overview-billing-plan input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.overview-billing-plan:has(input:disabled) {
    cursor: default;
    opacity: 0.74;
}

.overview-billing-plan span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.overview-billing-plan strong,
.overview-billing-current strong {
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.1;
}

.overview-billing-plan b {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.overview-billing-plan small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-billing-current {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 12%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface), var(--accent) 4%);
    padding: 6px 10px;
}

.overview-billing-current span {
    display: none;
}

.overview-billing-current strong {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.overview-billing-action {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: end;
}

.overview-billing-action > span {
    max-width: 170px;
    overflow: hidden;
    color: color-mix(in srgb, var(--accent), var(--text-muted) 30%);
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-billing-action .btn {
    min-height: 42px !important;
    padding-inline: 18px !important;
    white-space: nowrap;
}

@media (max-width: 1380px) {
    .overview-billing-inline {
        width: min(640px, 100%);
        justify-self: start;
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 980px) {
    .overview-billing-inline {
        grid-template-columns: 1fr;
    }

    .overview-billing-copy,
    .overview-billing-action {
        grid-column: auto;
        grid-row: auto;
    }

    .overview-billing-action {
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: stretch;
    }

    .overview-billing-action > span {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .overview-billing-inline {
        padding: 12px;
    }

    .overview-billing-plans,
    .overview-billing-action {
        grid-template-columns: 1fr;
    }

    .overview-billing-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .overview-billing-plan small {
        white-space: normal;
    }

    .overview-billing-action .btn {
        width: 100%;
    }
}

/* v1.440: admin organization and audit center */
.tenant-create-form {
    gap: 12px !important;
}

.tenant-create-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.72fr) minmax(180px, auto) !important;
    align-items: end;
}

.tenant-create-grid .btn {
    width: 100%;
    min-height: 48px;
}

.tenant-management-list {
    display: grid;
    gap: 14px;
}

.tenant-card {
    display: grid;
    gap: 14px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 18%);
    padding: 16px;
}

.tenant-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.tenant-avatar {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 52%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent), transparent 92%);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.tenant-card-head strong,
.audit-main strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
}

.tenant-card-head span,
.audit-main span,
.audit-time span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.tenant-status,
.audit-status {
    width: fit-content;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 52%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 92%);
    color: var(--accent);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.tenant-status.is-paused,
.audit-status-failed {
    border-color: color-mix(in srgb, #ef4444, var(--border) 44%);
    background: color-mix(in srgb, #ef4444, transparent 91%);
    color: #dc2626;
}

.audit-status-warning,
.audit-status-info {
    border-color: color-mix(in srgb, #f59e0b, var(--border) 46%);
    background: color-mix(in srgb, #f59e0b, transparent 90%);
    color: #b45309;
}

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

.tenant-metrics span,
.audit-summary-card {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 22%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 44%);
    padding: 10px 12px;
}

.tenant-metrics em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.tenant-metrics strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1;
}

.tenant-edit-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.72fr) minmax(150px, 0.54fr) minmax(140px, auto);
    gap: 10px;
    align-items: end;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 20%);
    padding-top: 14px;
}

.tenant-edit-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.tenant-edit-form .btn {
    min-height: 46px;
}

.audit-console {
    display: grid;
    gap: 14px;
}

.audit-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(260px, 1fr);
    gap: 14px;
    align-items: stretch;
}

.audit-summary-card strong {
    color: var(--text);
    font-size: 28px;
    line-height: 1;
}

.audit-summary-card span,
.audit-summary-card small,
.audit-search span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.audit-search {
    display: grid;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 18%);
    padding: 12px 14px;
}

.audit-search input {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    outline: none;
}

.audit-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audit-filter-bar button {
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface), var(--bg) 18%);
    color: var(--muted);
    padding: 0 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.audit-filter-bar button.is-active {
    border-color: color-mix(in srgb, var(--accent), var(--border) 36%);
    background: color-mix(in srgb, var(--accent), transparent 90%);
    color: var(--accent);
}

.audit-list {
    display: grid;
    gap: 10px;
}

[data-audit-item][hidden] {
    display: none !important;
}

.audit-item {
    display: grid;
    grid-template-columns: minmax(140px, 0.36fr) minmax(300px, 1fr) minmax(220px, 0.58fr);
    gap: 14px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 10%);
    padding: 14px;
}

.audit-time,
.audit-main,
.audit-side {
    min-width: 0;
}

.audit-time,
.audit-main {
    display: grid;
    gap: 6px;
}

.audit-time strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
}

.audit-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audit-meta-line span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.audit-side {
    display: grid;
    grid-template-columns: auto minmax(84px, auto) minmax(100px, 1fr);
    gap: 8px;
    align-items: center;
    justify-content: end;
}

.audit-ip {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.audit-details {
    min-width: 0;
}

.audit-details summary {
    width: fit-content;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg), var(--surface) 36%);
    color: var(--text);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.audit-details p,
.audit-details code {
    display: block;
    max-width: 100%;
    margin: 8px 0 0;
    overflow: auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.security-console {
    display: grid;
    gap: 14px;
}

.security-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.security-overview-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 14%);
    padding: 14px;
}

.security-overview-card.is-danger {
    border-color: color-mix(in srgb, #ef4444, var(--border) 42%);
    background: color-mix(in srgb, #ef4444, transparent 93%);
}

.security-overview-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.security-overview-card strong {
    color: var(--text);
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}

.security-overview-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
}

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

.security-search {
    padding: 10px 12px;
}

.security-filter-bar {
    justify-content: flex-end;
}

.security-event-list {
    display: grid;
    gap: 10px;
    max-height: min(560px, 58vh);
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.security-event-card {
    display: block;
    min-width: 0;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 10%);
}

.security-event-card:focus-within {
    border-color: color-mix(in srgb, var(--accent), var(--border) 36%);
    box-shadow: 0 14px 30px rgba(66, 72, 143, 0.08);
}

.security-event-summary {
    display: grid;
    grid-template-columns: auto minmax(230px, 1fr) minmax(130px, 0.52fr) minmax(96px, 0.36fr) minmax(130px, 0.42fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 14px;
}

.security-event-marker {
    width: 11px;
    height: 42px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 10%);
}

.security-event-failed .security-event-marker {
    background: #ef4444;
}

.security-event-warning .security-event-marker {
    background: #f59e0b;
}

.security-event-mfa .security-event-marker {
    background: #8b5cf6;
}

.security-event-login .security-event-marker {
    background: #2563eb;
}

.security-event-main,
.security-event-user,
.security-event-ip,
.security-event-time {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.security-event-main strong,
.security-event-main small,
.security-event-user strong,
.security-event-ip strong,
.security-event-time strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.security-event-main strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
}

.security-event-main small,
.security-event-user em,
.security-event-ip em,
.security-event-time em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.security-event-main code {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.security-event-user strong,
.security-event-ip strong,
.security-event-time strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.security-event-compact {
    display: grid;
    grid-template-columns: minmax(160px, 0.46fr) minmax(120px, 0.3fr) minmax(92px, 0.18fr) auto;
    gap: 10px;
    align-items: center;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    padding: 10px 14px 12px 37px;
}

.security-event-compact span,
.security-row-details {
    min-width: 0;
}

.security-event-compact em {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.security-event-compact strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 12px;
    font-weight: 820;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.security-row-details summary {
    width: fit-content;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg), var(--surface) 36%);
    color: var(--text);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.security-row-details summary::-webkit-details-marker {
    display: none;
}

.security-row-detail-body p,
.security-row-detail-body code {
    display: block;
    max-width: 100%;
    margin: 8px 0 0;
    overflow: auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.security-row-detail-body code {
    max-height: 140px;
    white-space: pre-wrap;
}

.settings-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 18%);
    padding-top: 14px;
}

.settings-pagination > span:not(.btn) {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.settings-pagination .is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

.source-lock-list {
    position: relative;
    z-index: 6;
    display: grid;
    gap: 12px;
    overflow: visible;
}

.source-lock-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
    grid-template-areas:
        "main meta"
        "action action";
    gap: 14px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 12%);
    padding: 14px;
}

.source-lock-card:focus-within {
    z-index: 2;
}

.source-lock-main,
.source-lock-meta,
.source-lock-action {
    min-width: 0;
}

.source-lock-main {
    grid-area: main;
    display: grid;
    gap: 10px;
}

.source-lock-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.source-lock-title strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.source-lock-badge {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 48%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 91%);
    color: var(--accent);
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.source-lock-source {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.source-lock-source span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.source-lock-source code {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    border: 1px solid color-mix(in srgb, var(--border), transparent 20%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 42%);
    color: var(--text);
    padding: 9px 10px;
    font: 800 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.source-lock-source small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.source-lock-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.source-lock-meta span {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 22%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 44%);
    padding: 10px;
}

.source-lock-meta em,
.source-lock-duration legend {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.source-lock-meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 12px;
    line-height: 1.25;
}

.source-lock-action {
    grid-area: action;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
    gap: 12px;
    align-items: end;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 28%);
    padding-top: 12px;
    overflow: hidden;
}

.source-lock-duration {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.source-lock-duration-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.source-lock-duration label {
    position: relative;
    display: block;
    min-width: 0;
}

.source-lock-duration input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.source-lock-duration label > span {
    display: grid;
    min-width: 0;
    min-height: 42px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 12%);
    color: var(--text);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.source-lock-duration input:checked + span {
    border-color: color-mix(in srgb, var(--accent), var(--border) 24%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 90%), color-mix(in srgb, #39f0c7, transparent 90%));
    color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
}

.source-lock-duration input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--accent), transparent 72%);
    outline-offset: 2px;
}

.source-lock-action .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.source-lock-manual-shell {
    display: grid;
    gap: 14px;
    min-width: 0;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 42%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent), transparent 96%);
    padding: 14px;
    margin-bottom: 14px;
}

.source-lock-manual-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.source-lock-manual-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.source-lock-manual-head strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.source-lock-manual-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.source-lock-manual-form {
    display: grid;
    grid-template-columns: minmax(320px, 1.5fr) minmax(120px, 0.45fr) minmax(150px, 0.55fr) minmax(180px, auto);
    gap: 10px;
    align-items: end;
    min-width: 0;
    overflow: visible;
}

.source-lock-manual-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.source-lock-manual-form select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 850;
}

.source-lock-manual-form .btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
}

.source-lock-empty-note {
    margin-top: 12px;
}

@media (max-width: 1180px) {
    .tenant-create-grid,
    .tenant-edit-form,
    .audit-toolbar,
    .audit-item,
    .security-toolbar,
    .security-event-summary,
    .security-event-compact,
    .source-lock-card {
        grid-template-columns: 1fr !important;
    }

    .audit-side,
    .security-filter-bar,
    .source-lock-action,
    .source-lock-manual-form {
        justify-content: start;
        grid-template-columns: 1fr;
    }

    .source-lock-card {
        grid-template-areas:
            "main"
            "meta"
            "action";
    }
}

@media (max-width: 720px) {
    .tenant-card-head,
    .tenant-metrics,
    .audit-side,
    .security-overview-grid,
    .source-lock-meta,
    .source-lock-action,
    .source-lock-manual-form {
        grid-template-columns: 1fr;
    }

    .source-lock-manual-head {
        display: grid;
    }

    .tenant-card-head {
        align-items: start;
    }

    .tenant-status,
    .audit-status {
        justify-self: start;
    }

    .security-event-summary {
        align-items: start;
    }

    .security-event-compact {
        padding-left: 14px;
    }

    .source-lock-duration-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* v1.439: site-native custom dropdowns */
.custom-select {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    vertical-align: middle;
}

.select-native {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.custom-select-trigger {
    min-width: 0;
    max-width: 100%;
    padding-inline: 18px 14px !important;
    line-height: 1.2;
}

.custom-select-value {
    display: block;
    flex: 1 1 auto;
}

.custom-select-chevron {
    pointer-events: none;
}

.custom-select-menu {
    z-index: 220;
    border-radius: 18px;
    box-shadow: 0 22px 46px rgba(45, 49, 115, 0.16);
    backdrop-filter: blur(14px);
}

.custom-select-option {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.custom-select-option.is-selected {
    box-shadow: inset 3px 0 0 currentColor;
}

.custom-select.is-disabled .custom-select-trigger {
    cursor: not-allowed;
    opacity: 0.58;
}

.custom-select.has-error .custom-select-trigger {
    border-color: rgba(235, 100, 96, 0.72) !important;
    box-shadow: 0 0 0 4px rgba(235, 100, 96, 0.14) !important;
}

.settings-grid .custom-select,
.scan-filter-control .custom-select {
    width: 100%;
}

.overview-kpi-scan-form .custom-select {
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 520px;
}

.role-form-inline .custom-select-role {
    flex: 1 1 130px;
    min-width: 130px;
}

.custom-select-scan-per-page {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.custom-select-scan-sort-by {
    width: 238px;
    min-width: 238px;
    max-width: 238px;
}

.custom-select-scan-sort-dir {
    width: 182px;
    min-width: 182px;
    max-width: 182px;
}

.scan-filter-control .custom-select,
.products-filter-form .scan-filter-main-actions .custom-select {
    min-width: 0;
}

.scan-filter-control .custom-select,
.scan-filter-control .custom-select-trigger {
    width: 100%;
}

.scan-filter-control .custom-select-scan-per-page,
.scan-filter-control .custom-select-scan-sort-by,
.scan-filter-control .custom-select-scan-sort-dir,
.products-field .custom-select-scan-sort-by,
.products-filter-form .scan-filter-main-actions .custom-select-scan-per-page,
.products-filter-form .scan-filter-main-actions .custom-select-scan-sort-by,
.products-filter-form .scan-filter-main-actions .custom-select-scan-sort-dir {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.products-field .custom-select {
    width: 100%;
}

.scan-filter-control .custom-select-trigger,
.products-filter-form .scan-filter-main-actions .custom-select-trigger {
    min-height: 48px;
}

.products-filter-form .scan-filter-options-row {
    display: grid !important;
    grid-template-columns: minmax(320px, 0.45fr) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.products-filter-form .scan-filter-main-actions {
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns:
        max-content
        minmax(92px, 112px)
        max-content
        minmax(160px, 1fr)
        minmax(132px, 0.78fr)
        minmax(142px, 0.84fr) !important;
    align-items: end;
    justify-content: stretch !important;
    gap: 8px 10px;
    overflow: visible;
}

.products-filter-form .scan-filter-main-actions > * {
    min-width: 0 !important;
    max-width: 100%;
}

.products-filter-form .scan-filter-main-actions .scan-per-page-label {
    align-self: center;
}

.products-filter-form .scan-filter-main-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
}

.products-filter-form .scan-filter-main-actions .custom-select {
    width: 100%;
    min-width: 0;
}

html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row.layout-toolbar-row {
    display: grid !important;
    grid-template-columns: minmax(320px, 0.45fr) minmax(0, 1fr) !important;
    align-items: start !important;
    overflow: visible;
}

html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
    display: grid !important;
    grid-template-columns:
        max-content
        minmax(92px, 112px)
        max-content
        minmax(160px, 1fr)
        minmax(132px, 0.78fr)
        minmax(142px, 0.84fr) !important;
    justify-content: stretch !important;
}

html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions .custom-select,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions .btn {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* v1.439.1: restore a clean products filter layout after custom selects */
.products-filter-form {
    gap: 18px !important;
}

.products-filter-form .scan-filter-main-row.layout-toolbar-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: end !important;
}

.products-filter-form .scan-filter-options-row.layout-toolbar-row,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row.layout-toolbar-row {
    display: grid !important;
    grid-template-columns: minmax(410px, 0.52fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    width: 100%;
}

.products-filter-form .scan-filter-flags,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-flags {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 10px !important;
    align-self: end;
}

.products-filter-form .scan-filter-main-actions,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
    display: grid !important;
    grid-template-columns:
        minmax(112px, 0.52fr)
        minmax(220px, 1fr)
        minmax(170px, 0.78fr)
        minmax(160px, 0.72fr) !important;
    grid-template-rows: auto 48px;
    grid-auto-flow: row;
    gap: 7px 12px !important;
    align-items: end !important;
    justify-content: stretch !important;
    width: 100%;
    min-width: 0;
    padding-top: 0;
}

.products-filter-form .scan-filter-main-actions label[for="products-per-page"] {
    grid-column: 1;
    grid-row: 1;
}

.products-filter-form .scan-filter-main-actions .custom-select-scan-per-page {
    grid-column: 1;
    grid-row: 2;
}

.products-filter-form .scan-filter-main-actions label[for="products-sort-by"] {
    grid-column: 2;
    grid-row: 1;
}

.products-filter-form .scan-filter-main-actions .custom-select-scan-sort-by {
    grid-column: 2;
    grid-row: 2;
}

.products-filter-form .scan-filter-main-actions .custom-select-scan-sort-dir {
    grid-column: 3;
    grid-row: 2;
}

.products-filter-form .scan-filter-main-actions .btn {
    grid-column: 4;
    grid-row: 2;
    min-height: 48px !important;
}

.products-filter-form .scan-filter-main-actions .scan-per-page-label {
    margin: 0;
    padding-inline: 4px;
    line-height: 1.15;
}

.products-filter-form .scan-filter-hint {
    margin-top: 0 !important;
}

.custom-select.is-open {
    z-index: 260;
}

.products-filter-form,
.products-filter-form .scan-filter-options-row,
.products-filter-form .scan-filter-main-actions,
.scan-filter-controls-row {
    overflow: visible !important;
}

.products-filter-form .scan-filter-main-actions .custom-select-menu,
.scan-filter-controls-row .custom-select-menu {
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 320;
    max-height: min(238px, 42vh);
    margin: 0;
}

.admin-user-card .custom-select {
    width: 100%;
}

.admin-user-card .custom-select-trigger {
    min-height: 46px !important;
    border-radius: 8px !important;
    padding-inline: 14px 12px !important;
    font-size: 14px !important;
}

html:not([data-theme="dark"]) .custom-select-trigger {
    border-color: rgba(136, 140, 213, 0.24) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 255, 0.9)) !important;
    color: var(--ui-ink-soft, #272b5a) !important;
}

html:not([data-theme="dark"]) .custom-select-trigger:hover {
    border-color: rgba(106, 112, 246, 0.42) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 26px rgba(82, 89, 170, 0.11) !important;
}

html:not([data-theme="dark"]) .custom-select.is-open .custom-select-trigger {
    border-color: var(--ui-line-strong, rgba(106, 112, 246, 0.42)) !important;
    background: #ffffff !important;
    box-shadow: var(--ui-shadow-focus, 0 0 0 4px rgba(106, 112, 246, 0.14)) !important;
}

html:not([data-theme="dark"]) .custom-select-menu {
    border-color: rgba(136, 140, 213, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 255, 0.96)) !important;
}

html:not([data-theme="dark"]) .custom-select-option {
    color: var(--ui-ink-soft, #272b5a);
}

html:not([data-theme="dark"]) .custom-select-option:hover,
html:not([data-theme="dark"]) .custom-select-option:focus-visible {
    background: rgba(241, 240, 255, 0.92) !important;
    color: var(--ui-primary-strong, #535ce2) !important;
}

html:not([data-theme="dark"]) .custom-select-option.is-selected {
    background: linear-gradient(135deg, rgba(241, 240, 255, 0.96), rgba(231, 255, 247, 0.78)) !important;
    color: var(--ui-primary-strong, #535ce2) !important;
}

html[data-theme="dark"] .custom-select-menu {
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

@media (max-width: 1024px) {
    .overview-kpi-scan-form .custom-select,
    .overview-kpi-scan-form .custom-select-trigger {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .custom-select-scan-per-page,
    .custom-select-scan-sort-by,
    .custom-select-scan-sort-dir {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 1500px) {
    .products-filter-form .scan-filter-options-row {
        grid-template-columns: 1fr !important;
    }

    .products-filter-form .scan-filter-main-actions {
        grid-template-columns:
            auto minmax(104px, 120px)
            auto minmax(190px, 1fr)
            minmax(160px, 0.72fr)
            minmax(150px, 0.72fr) !important;
    }

    html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row.layout-toolbar-row {
        grid-template-columns: 1fr !important;
    }

    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-columns:
            auto minmax(104px, 120px)
            auto minmax(190px, 1fr)
            minmax(160px, 0.72fr)
            minmax(150px, 0.72fr) !important;
    }
}

@media (max-width: 1180px) {
    .products-filter-form .scan-filter-main-row.layout-toolbar-row,
    .products-filter-form .scan-filter-options-row.layout-toolbar-row,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row.layout-toolbar-row {
        grid-template-columns: 1fr !important;
    }

    .products-filter-form .scan-filter-main-actions,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto 48px auto 48px;
    }

    .products-filter-form .scan-filter-main-actions label[for="products-per-page"] {
        grid-column: 1;
        grid-row: 1;
    }

    .products-filter-form .scan-filter-main-actions .custom-select-scan-per-page {
        grid-column: 1;
        grid-row: 2;
    }

    .products-filter-form .scan-filter-main-actions label[for="products-sort-by"] {
        grid-column: 2;
        grid-row: 1;
    }

    .products-filter-form .scan-filter-main-actions .custom-select-scan-sort-by {
        grid-column: 2;
        grid-row: 2;
    }

    .products-filter-form .scan-filter-main-actions .custom-select-scan-sort-dir {
        grid-column: 1;
        grid-row: 4;
    }

    .products-filter-form .scan-filter-main-actions .btn {
        grid-column: 2;
        grid-row: 4;
    }
}

@media (max-width: 860px) {
    .products-filter-form .scan-filter-main-actions {
        grid-template-columns: 1fr !important;
    }

    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-columns: 1fr !important;
    }

    .products-filter-form .scan-filter-main-actions .scan-per-page-label {
        align-self: end;
    }
}

/* v1.439.2: final products toolbar composition */
.products-filter-form {
    display: grid !important;
    gap: 16px !important;
}

.products-page-shell {
    position: relative;
    z-index: 30;
}

.products-table-section {
    position: relative;
    z-index: 1;
}

.products-filter-form .scan-filter-main-row.layout-toolbar-row,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-row.layout-toolbar-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: end !important;
    width: 100%;
}

.products-filter-form .products-field,
.products-filter-form .products-search-field {
    min-width: 0;
}

.products-filter-form .products-field .custom-select,
.products-filter-form .products-field .custom-select-trigger,
.products-filter-form .products-search-field .scan-filter-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.products-filter-form .scan-filter-options-row.layout-toolbar-row,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row.layout-toolbar-row {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.48fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: end !important;
    width: 100%;
}

.products-filter-form .scan-filter-flags,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-flags {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-self: end;
    min-width: 0;
    padding: 10px !important;
    border-radius: 24px;
}

.products-filter-form .scan-filter-flags .checkbox-label {
    min-height: 58px;
    padding: 12px 16px;
    gap: 12px;
    border-radius: 18px;
    line-height: 1.18;
}

.products-filter-form .scan-filter-main-actions,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
    display: grid !important;
    grid-template-columns:
        minmax(112px, 0.45fr)
        minmax(230px, 1fr)
        minmax(158px, 0.68fr)
        minmax(170px, 0.72fr) !important;
    grid-template-rows: auto 48px;
    grid-template-areas:
        "perLabel sortLabel . ."
        "perSelect sortSelect dirSelect submit";
    gap: 7px 12px !important;
    align-items: end !important;
    width: 100%;
    min-width: 0;
}

.products-filter-form .scan-filter-main-actions label[for="products-per-page"] {
    grid-area: perLabel;
}

.products-filter-form .scan-filter-main-actions .custom-select-scan-per-page {
    grid-area: perSelect;
}

.products-filter-form .scan-filter-main-actions label[for="products-sort-by"] {
    grid-area: sortLabel;
}

.products-filter-form .scan-filter-main-actions .custom-select-scan-sort-by {
    grid-area: sortSelect;
}

.products-filter-form .scan-filter-main-actions .custom-select-scan-sort-dir {
    grid-area: dirSelect;
}

.products-filter-form .scan-filter-main-actions .btn {
    grid-area: submit;
}

.products-filter-form .scan-filter-main-actions .scan-per-page-label {
    margin: 0;
    padding-inline: 4px;
    color: #7d83a9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.15;
    text-transform: uppercase;
}

.products-filter-form .scan-filter-main-actions .custom-select,
.products-filter-form .scan-filter-main-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.products-filter-form .scan-filter-main-actions .custom-select-trigger,
.products-filter-form .scan-filter-main-actions .btn {
    min-height: 48px !important;
    height: 48px;
}

.products-filter-form .scan-filter-main-actions .custom-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-filter-form .scan-filter-hint {
    margin-top: 0 !important;
}

.products-filter-form,
.products-filter-form .scan-filter-main-row,
.products-filter-form .scan-filter-options-row,
.products-filter-form .scan-filter-main-actions {
    overflow: visible !important;
}

.products-filter-form .scan-filter-main-actions .custom-select-menu {
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 340;
    max-height: min(232px, 42vh);
}

html:not([data-theme="dark"]) .custom-select-menu {
    background: #ffffff !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

@media (max-width: 1280px) {
    .products-filter-form .scan-filter-options-row.layout-toolbar-row,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-options-row.layout-toolbar-row {
        grid-template-columns: 1fr !important;
    }

    .products-filter-form .scan-filter-main-actions,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-columns:
            minmax(112px, 0.4fr)
            minmax(220px, 1fr)
            minmax(150px, 0.62fr)
            minmax(170px, 0.7fr) !important;
    }
}

@media (max-width: 900px) {
    .products-filter-form .scan-filter-main-row.layout-toolbar-row,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-row.layout-toolbar-row {
        grid-template-columns: 1fr !important;
    }

    .products-filter-form .scan-filter-main-actions,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto 48px 48px;
        grid-template-areas:
            "perLabel sortLabel"
            "perSelect sortSelect"
            "dirSelect submit";
    }
}

@media (max-width: 640px) {
    .products-filter-form .scan-filter-flags,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-flags,
    .products-filter-form .scan-filter-main-actions,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-columns: 1fr !important;
    }

    .products-filter-form .scan-filter-main-actions,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-actions {
        grid-template-rows: auto 48px auto 48px 48px 48px;
        grid-template-areas:
            "perLabel"
            "perSelect"
            "sortLabel"
            "sortSelect"
            "dirSelect"
            "submit";
    }
}

/* Trial access notice */
.trial-access-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: min(420px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(99, 112, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: 0 18px 48px rgba(28, 36, 86, 0.18);
    backdrop-filter: blur(18px);
}

.trial-access-toast[hidden] {
    display: none !important;
}

.trial-access-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(99, 112, 255, 0.18);
    border-radius: 50%;
    background: rgba(247, 248, 255, 0.92);
    color: #4854d9;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.trial-access-kicker {
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(235, 239, 255, 0.96);
    color: #4c5be8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.trial-access-toast h2 {
    margin: 0 36px 8px 0;
    color: #151a3f;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
}

.trial-access-toast p {
    margin: 0;
    color: #626b91;
    font-size: 13px;
    line-height: 1.45;
}

.trial-access-limits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.trial-access-limits div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(99, 112, 255, 0.16);
    border-radius: 8px;
    background: rgba(248, 249, 255, 0.9);
}

.trial-access-limits dt {
    margin: 0 0 4px;
    color: #7d86ae;
    font-size: 11px;
    font-weight: 800;
}

.trial-access-limits dd {
    margin: 0;
    color: #171d46;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.trial-access-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.trial-access-actions .btn {
    min-height: 40px;
    border-radius: 8px;
}

.trial-access-actions span {
    color: #7d86ae;
    font-size: 12px;
    font-weight: 800;
}

.trial-access-invoice {
    max-height: 180px;
    margin: 14px 0;
    overflow: auto;
    white-space: pre-wrap;
    border: 1px solid rgba(28, 36, 86, 0.12);
    border-radius: 8px;
    background: rgba(248, 249, 255, 0.92);
    color: #171d46;
    padding: 12px;
    font: 800 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-theme="dark"] .trial-access-toast {
    border-color: rgba(142, 154, 255, 0.32);
    background: rgba(22, 27, 54, 0.96);
    color: #eef1ff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .trial-access-toast h2,
html[data-theme="dark"] .trial-access-limits dd {
    color: #f6f7ff;
}

html[data-theme="dark"] .trial-access-toast p,
html[data-theme="dark"] .trial-access-limits dt,
html[data-theme="dark"] .trial-access-actions span {
    color: #b4bbdc;
}

html[data-theme="dark"] .trial-access-limits div,
html[data-theme="dark"] .trial-access-close,
html[data-theme="dark"] .trial-access-kicker {
    background: rgba(38, 45, 86, 0.9);
}

html[data-theme="dark"] .trial-access-invoice {
    border-color: rgba(142, 154, 255, 0.24);
    background: rgba(15, 23, 42, 0.72);
    color: #f6f7ff;
}

@media (max-width: 720px) {
    .trial-access-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        padding: 16px;
    }

    .trial-access-limits {
        grid-template-columns: 1fr;
    }

    .trial-access-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .trial-access-actions .btn {
        width: 100%;
    }
}

/* v1.437: calm account cards for billing admin */
.admin-users-workspace {
    max-width: 1480px;
    margin-inline: auto;
    gap: 18px !important;
}

.admin-users-list {
    gap: 18px !important;
}

.admin-user-card {
    border-color: color-mix(in srgb, var(--border), transparent 12%) !important;
    box-shadow: 0 18px 46px rgba(25, 31, 80, 0.05);
}

.admin-user-card-head {
    grid-template-columns: auto minmax(280px, 1fr) minmax(440px, 0.82fr) !important;
    gap: 22px !important;
    padding: 22px !important;
    background: color-mix(in srgb, var(--surface), var(--bg) 12%);
}

.admin-user-avatar {
    inline-size: 54px !important;
    block-size: 54px !important;
}

.admin-user-main {
    gap: 9px !important;
}

.admin-user-title {
    gap: 12px !important;
}

.admin-user-title strong {
    font-size: 18px !important;
}

.admin-user-meta {
    gap: 10px 18px !important;
    font-size: 13px !important;
}

.admin-user-status-strip {
    gap: 12px !important;
}

.admin-user-status-strip span,
.admin-status-row span {
    border-radius: 8px !important;
    padding: 11px 13px !important;
}

.admin-user-status-strip em,
.admin-status-row em {
    font-size: 10px !important;
    letter-spacing: 0 !important;
}

.admin-user-status-strip strong,
.admin-status-row strong {
    font-size: 13px !important;
}

.admin-user-workgrid {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 18px !important;
    background: color-mix(in srgb, var(--bg), var(--surface) 42%);
}

.admin-user-section {
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%) !important;
    border-radius: 8px !important;
    background: var(--surface);
    padding: 20px !important;
    gap: 16px !important;
}

.admin-user-section-identity {
    grid-row: 1 / span 2;
}

.admin-subscription-section,
.admin-billing-section {
    grid-column: 2;
}

.admin-user-section-head {
    align-items: flex-start !important;
    border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    padding-bottom: 12px;
}

.admin-user-section-head strong {
    font-size: 15px !important;
}

.admin-user-section-head span {
    font-size: 12px !important;
    line-height: 1.3;
}

.admin-control-stack,
.admin-subscription-form,
.billing-form {
    gap: 14px !important;
}

.admin-compact-form,
.admin-form-footer {
    gap: 12px !important;
}

.admin-form-grid {
    grid-template-columns: minmax(230px, 1.2fr) minmax(180px, 0.9fr) minmax(96px, 0.45fr) minmax(96px, 0.45fr) !important;
    gap: 12px !important;
}

.admin-billing-grid {
    grid-template-columns: minmax(210px, 1fr) minmax(170px, 0.74fr) minmax(132px, 0.56fr) minmax(180px, 0.78fr) !important;
}

.admin-user-card :where(.role-select, input[type="number"], input[type="text"], textarea) {
    width: 100%;
    border-radius: 8px !important;
    min-height: 46px !important;
    padding-inline: 14px !important;
    font-size: 14px !important;
    line-height: 1.25;
}

.admin-user-card textarea {
    min-height: 118px !important;
    padding: 14px !important;
    line-height: 1.45;
}

.admin-user-card .btn,
.admin-user-card .btn-sm,
.admin-user-card .role-action-btn {
    border-radius: 8px !important;
    min-height: 46px !important;
    padding-inline: 16px !important;
}

.admin-user-card .btn-primary {
    box-shadow: 0 14px 30px rgba(91, 100, 246, 0.22);
}

.admin-status-row {
    gap: 12px !important;
}

.admin-quick-actions {
    gap: 10px !important;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 16%);
    padding-top: 14px;
}

.admin-form-footer {
    grid-template-columns: minmax(0, 1fr) minmax(140px, auto) !important;
}

.admin-billing-footer {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto) minmax(220px, auto) !important;
}

.admin-control-stack .admin-compact-form + .admin-compact-form {
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 18%);
    padding-top: 14px;
}

@media (max-width: 1320px) {
    .admin-user-card-head,
    .admin-user-workgrid {
        grid-template-columns: 1fr !important;
    }

    .admin-user-section-identity,
    .admin-subscription-section,
    .admin-billing-section {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 980px) {
    .admin-user-card-head {
        padding: 18px !important;
    }

    .admin-user-workgrid {
        padding: 14px !important;
    }

    .admin-form-grid,
    .admin-billing-grid,
    .admin-form-footer,
    .admin-billing-footer {
        grid-template-columns: 1fr !important;
    }
}

/* v1.438: collapsible account rows and admin search */
.admin-users-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 14px;
    align-items: stretch;
}

.admin-users-toolbar .admin-users-summary {
    min-height: 72px;
}

.admin-users-search {
    display: grid;
    gap: 7px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px 14px;
}

.admin-users-search label {
    display: grid;
    gap: 7px;
}

.admin-users-search span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.admin-users-search input {
    min-height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    outline: none;
}

.admin-users-search input::placeholder {
    color: color-mix(in srgb, var(--muted), transparent 24%);
}

.admin-users-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-users-search-actions .btn {
    min-height: 34px;
}

.admin-analysis-bulk-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 16px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-600), var(--border) 72%);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand-500), transparent 92%), transparent 56%),
        color-mix(in srgb, var(--surface), var(--brand-50) 24%);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.admin-analysis-bulk-card strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.admin-analysis-bulk-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.admin-analysis-bulk-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 150px) auto;
    gap: 10px;
    align-items: end;
}

.admin-analysis-bulk-form > label:not(.checkline) {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.admin-analysis-bulk-form input[type="number"] {
    min-height: 42px;
}

.client-billing-panel {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 8%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 22%);
    padding: 18px;
}

.client-billing-panel.is-ready {
    border-color: color-mix(in srgb, #f59e0b, var(--border) 50%);
    background: color-mix(in srgb, var(--surface), #fffbeb 34%);
}

.client-billing-panel.is-paid {
    border-color: color-mix(in srgb, #16a34a, var(--border) 50%);
    background: color-mix(in srgb, var(--surface), #ecfdf5 34%);
}

.client-billing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.client-billing-kicker,
.admin-billing-inbox-head span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.client-billing-head h3 {
    margin: 6px 0 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.client-billing-status {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 48%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 91%);
    color: var(--accent);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.client-billing-meta,
.admin-billing-inbox-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.client-billing-meta span,
.admin-billing-inbox-meta span {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 22%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 44%);
    padding: 10px;
}

.client-billing-meta em,
.admin-billing-inbox-meta em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.client-billing-meta strong,
.admin-billing-inbox-meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
}

.client-invoice-box {
    display: grid;
    gap: 8px;
}

.client-invoice-box > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.client-invoice-box pre {
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    border: 1px solid color-mix(in srgb, #16a34a, var(--border) 54%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), #f0fdf4 44%);
    color: var(--text);
    padding: 14px;
    font: 800 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.client-billing-note {
    margin: 0;
}

.client-billing-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px dashed color-mix(in srgb, var(--border), transparent 6%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 34%);
    padding: 12px;
}

.client-billing-request-form {
    flex: 0 0 auto;
}

.admin-billing-inbox {
    display: grid;
    gap: 14px;
    border: 1px solid color-mix(in srgb, #f59e0b, var(--border) 46%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), #fffbeb 38%);
    padding: 16px;
}

.admin-billing-inbox-head {
    display: grid;
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.admin-billing-inbox-head strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
}

.admin-billing-inbox-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.admin-billing-inbox-list {
    display: grid;
    gap: 10px;
}

.admin-billing-inbox-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(520px, 1.45fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid color-mix(in srgb, #f59e0b, var(--border) 58%);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.admin-billing-inbox-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-billing-inbox-user div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.admin-billing-inbox-user strong,
.admin-billing-inbox-user span,
.admin-billing-inbox-user small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-billing-inbox-user strong {
    color: var(--text);
    font-size: 14px;
}

.admin-billing-inbox-user span,
.admin-billing-inbox-user small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

details.admin-user-card {
    display: block;
}

.admin-user-card[hidden] {
    display: none !important;
}

.feed-policy-panel {
    padding: 20px;
}

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

.feed-policy-grid article {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.feed-policy-grid strong {
    display: block;
    margin: 6px 0;
    font-size: 1.35rem;
    color: var(--text);
}

.feed-scan-launch-panel {
    display: grid;
    gap: 16px;
}

.feed-scan-launch-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(120px, 0.45fr) minmax(150px, 0.55fr) auto;
    gap: 12px;
    align-items: end;
}

.feed-scan-launch-form label {
    min-width: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.feed-scan-launch-form :where(select, input) {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
}

.feed-scan-launch-form .btn {
    min-height: 44px;
    white-space: nowrap;
}

.feed-scan-launch-note {
    margin: 0;
}

.feed-slots-form .feed-slot {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.feed-slots-form .feed-slot + .feed-slot {
    margin-top: 14px;
}

.feed-slot.is-locked {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(255, 251, 235, 0.58);
}

.feed-slot.is-plan-locked {
    opacity: 0.68;
}

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

.feed-slot-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feed-lock-note {
    margin: 0 0 12px;
}

.feed-slot-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.feed-unlock-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: auto;
}

.feed-unlock-inline select {
    min-width: 120px;
}

.source-preview-item.is-locked,
.overview-source-item.is-locked {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(255, 251, 235, 0.52);
}

html[data-theme="dark"] .feed-policy-grid article,
html[data-theme="dark"] .feed-slots-form .feed-slot {
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .feed-slot.is-locked,
html[data-theme="dark"] .source-preview-item.is-locked,
html[data-theme="dark"] .overview-source-item.is-locked {
    background: rgba(120, 53, 15, 0.22);
}

@media (max-width: 860px) {
    .feed-policy-grid,
    .feed-scan-launch-form {
        grid-template-columns: 1fr;
    }

    .feed-slot-header,
    .feed-slot-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .feed-unlock-inline,
    .feed-unlock-inline select,
    .feed-scan-launch-form .btn,
    .feed-slot-actions .btn {
        width: 100%;
    }
}

.admin-user-card > summary {
    list-style: none;
}

.admin-user-card > summary::-webkit-details-marker {
    display: none;
}

.admin-user-card-head {
    cursor: pointer;
    user-select: none;
    grid-template-columns: auto minmax(260px, 1fr) minmax(360px, 0.82fr) 36px !important;
}

.admin-user-card:not([open]) .admin-user-card-head {
    border-bottom: 0;
}

.admin-user-card[open] .admin-user-card-head {
    border-bottom: 1px solid var(--border);
}

.admin-user-card[open] {
    box-shadow: 0 22px 56px rgba(25, 31, 80, 0.07);
}

.admin-user-card.is-billing-requested {
    border-color: color-mix(in srgb, #f59e0b, var(--border) 34%) !important;
}

.admin-user-card.is-billing-requested > .admin-user-card-head {
    background: color-mix(in srgb, var(--surface), #fffbeb 34%);
}

.admin-user-request-pill {
    border-color: color-mix(in srgb, #f59e0b, var(--border) 40%) !important;
    background: color-mix(in srgb, #fffbeb, var(--surface) 38%) !important;
}

.admin-user-request-pill strong {
    color: #92400e !important;
}

.admin-billing-requested {
    display: grid;
    gap: 8px;
    border: 1px solid color-mix(in srgb, #f59e0b, var(--border) 46%);
    border-radius: 8px;
    background: color-mix(in srgb, #fffbeb, var(--surface) 26%);
    padding: 12px;
}

.admin-billing-requested strong {
    display: block;
    color: #92400e;
    font-size: 14px;
    line-height: 1.2;
}

.admin-billing-requested span,
.admin-billing-requested p,
.admin-field-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.admin-billing-requested p {
    margin: 0;
}

.admin-field-hint {
    display: block;
    margin-top: 2px;
}

html[data-theme="dark"] .client-billing-panel,
html[data-theme="dark"] .admin-billing-inbox,
html[data-theme="dark"] .admin-billing-inbox-card,
html[data-theme="dark"] .admin-billing-requested {
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .client-billing-panel.is-ready,
html[data-theme="dark"] .client-invoice-box pre {
    background: rgba(20, 83, 45, 0.18);
}

html[data-theme="dark"] .admin-user-card.is-billing-requested > .admin-user-card-head,
html[data-theme="dark"] .admin-user-request-pill {
    background: rgba(120, 53, 15, 0.22) !important;
}

html[data-theme="dark"] .admin-user-request-pill strong,
html[data-theme="dark"] .admin-billing-requested strong {
    color: #fbbf24 !important;
}

.admin-user-toggle-icon {
    position: relative;
    display: grid;
    place-items: center;
    inline-size: 34px;
    block-size: 34px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 42%);
}

.admin-user-toggle-icon::before {
    content: "";
    inline-size: 9px;
    block-size: 9px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.18s ease;
}

.admin-user-card[open] .admin-user-toggle-icon::before {
    transform: rotate(225deg) translate(-1px, -1px);
}

.admin-user-card:hover .admin-user-toggle-icon {
    border-color: color-mix(in srgb, var(--accent), var(--border) 42%);
}

.admin-user-status-strip {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
}

.admin-users-empty {
    margin: 0;
    border: 1px dashed color-mix(in srgb, var(--border), transparent 8%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 26%);
    padding: 18px;
    text-align: center;
}

@media (max-width: 1320px) {
    .admin-user-card-head {
        grid-template-columns: auto minmax(0, 1fr) 36px !important;
    }

    .admin-user-status-strip {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .admin-users-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-analysis-bulk-card,
    .admin-analysis-bulk-form {
        grid-template-columns: 1fr;
    }

    .admin-billing-inbox-head,
    .admin-billing-inbox-card {
        grid-template-columns: 1fr;
    }

    .admin-billing-inbox-card .btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .client-billing-head {
        flex-direction: column;
    }

    .client-billing-meta,
    .admin-billing-inbox-meta {
        grid-template-columns: 1fr;
    }

    .client-billing-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .client-billing-request-form,
    .client-billing-request-form .btn {
        width: 100%;
    }

    .admin-user-card-head {
        grid-template-columns: auto minmax(0, 1fr) 34px !important;
        gap: 12px !important;
    }

    .admin-user-status-strip {
        grid-column: 1 / -1;
        grid-template-columns: 1fr !important;
    }
}

/* v1.439: standalone admin billing workspace */
.admin-billing-page {
    gap: 18px;
}

.admin-billing-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.72fr);
    gap: 18px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 16%);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand-50, #eef2ff), transparent 10%), transparent 58%),
        color-mix(in srgb, var(--surface), var(--bg) 18%);
    padding: 22px;
}

.admin-billing-hero-copy,
.admin-billing-hero-metrics,
.admin-billing-kpi,
.admin-billing-control-room,
.admin-billing-client-note,
.admin-billing-status-lane span {
    min-width: 0;
}

.admin-billing-hero-copy {
    display: grid;
    align-content: center;
    gap: 9px;
}

.admin-billing-hero-copy > span,
.admin-billing-kpi span,
.admin-billing-hero-metrics em,
.admin-billing-status-lane em,
.admin-billing-client-note span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.admin-billing-hero-copy h2 {
    max-width: 780px;
    margin: 0;
    color: var(--text);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.98;
}

.admin-billing-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.48;
}

.admin-billing-hero-metrics,
.admin-billing-status-lane {
    display: grid;
    gap: 10px;
}

.admin-billing-hero-metrics span,
.admin-billing-status-lane span {
    display: grid;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), #ffffff 38%);
    padding: 14px;
}

.admin-billing-hero-metrics strong,
.admin-billing-status-lane strong,
.admin-billing-kpi strong,
.admin-billing-client-note strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 950;
    line-height: 1.08;
}

.admin-billing-hero-metrics strong {
    font-size: 22px;
}

.admin-billing-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-billing-kpi {
    display: grid;
    gap: 7px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 8%);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.admin-billing-kpi strong {
    font-size: 30px;
}

.admin-billing-kpi small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
}

.admin-billing-kpi.is-warning {
    border-color: color-mix(in srgb, #f59e0b, var(--border) 42%);
    background: color-mix(in srgb, var(--surface), #fffbeb 30%);
}

.admin-billing-kpi.is-ok {
    border-color: color-mix(in srgb, #16a34a, var(--border) 44%);
    background: color-mix(in srgb, var(--surface), #ecfdf5 28%);
}

.admin-billing-tabs-shell {
    padding: 10px !important;
}

.admin-billing-tabs-shell .billing-inner-tabs {
    border-radius: 8px;
}

.admin-billing-duo {
    display: grid;
    grid-template-columns: minmax(420px, 1.18fr) minmax(320px, 0.82fr);
    gap: 14px;
    align-items: start;
}

.admin-billing-control-room {
    position: sticky;
    top: 18px;
}

.admin-billing-status-lane {
    margin-bottom: 12px;
}

.admin-billing-status-lane strong {
    font-size: 24px;
}

.admin-billing-accounts {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.admin-billing-user-card .admin-user-status-strip {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
}

.admin-billing-workgrid {
    align-items: start;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) !important;
}

.admin-billing-workgrid .admin-user-section-identity,
.admin-billing-workgrid .admin-subscription-section,
.admin-billing-workgrid .admin-billing-section {
    min-width: 0;
}

.admin-billing-workgrid .admin-user-section-identity {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
}

.admin-billing-workgrid .admin-subscription-section,
.admin-billing-workgrid .admin-billing-section {
    grid-column: 2 !important;
    grid-row: auto !important;
}

.admin-billing-user-card .admin-user-section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.admin-billing-user-card .admin-user-section-head span {
    justify-self: end;
    max-width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
}

.admin-billing-user-card .admin-form-grid,
.admin-billing-user-card .admin-billing-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

.admin-billing-user-card .admin-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch;
}

.admin-billing-user-card .admin-quick-actions .role-action-form,
.admin-billing-user-card .admin-quick-actions .role-action-form:first-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: end;
    gap: 10px;
    min-width: 0;
}

.admin-billing-user-card .admin-quick-actions .role-action-form:first-child {
    align-content: center;
}

.admin-billing-user-card .admin-quick-date {
    display: grid !important;
    width: 100%;
    min-width: 0;
}

.admin-billing-user-card .admin-quick-date input[type="date"] {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.admin-billing-user-card .admin-quick-actions .role-action-btn {
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal;
}

.admin-billing-user-card .admin-form-grid > label,
.admin-billing-user-card .billing-form > label,
.admin-billing-user-card .admin-form-footer,
.admin-billing-user-card .admin-quick-panel,
.admin-billing-user-card .custom-select {
    min-width: 0;
}

.admin-billing-user-card .admin-billing-grid > label:first-child,
.admin-billing-user-card .admin-billing-textarea-field {
    grid-column: 1 / -1;
}

.admin-billing-context-row {
    grid-template-columns: 1fr !important;
}

.admin-billing-client-note {
    display: grid;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 44%);
    padding: 12px;
}

.admin-billing-client-note span {
    text-transform: none;
    line-height: 1.4;
}

.admin-billing-invoices-table .billing-admin-table-head,
.admin-billing-invoices-table .billing-admin-row {
    grid-template-columns: minmax(210px, 1.2fr) minmax(110px, 0.65fr) minmax(120px, 0.7fr) minmax(110px, 0.6fr) minmax(126px, 0.68fr) minmax(116px, 0.62fr) auto;
}

.billing-center-card-plans {
    max-width: 1120px;
}

.admin-billing-plan-list .billing-plan-details {
    background: var(--surface);
}

.admin-billing-events-table table {
    min-width: 900px;
}

.admin-billing-events-table code {
    white-space: normal;
    overflow-wrap: anywhere;
}

html[data-theme="dark"] .admin-billing-hero,
html[data-theme="dark"] .admin-billing-kpi,
html[data-theme="dark"] .admin-billing-hero-metrics span,
html[data-theme="dark"] .admin-billing-status-lane span,
html[data-theme="dark"] .admin-billing-client-note {
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .admin-billing-kpi.is-warning {
    background: rgba(120, 53, 15, 0.2);
}

html[data-theme="dark"] .admin-billing-kpi.is-ok {
    background: rgba(20, 83, 45, 0.18);
}

@media (max-width: 1320px) {
    .admin-billing-hero,
    .admin-billing-duo {
        grid-template-columns: 1fr !important;
    }

    .admin-billing-control-room {
        position: static;
    }
}

@media (max-width: 1180px) {
    .admin-billing-workgrid,
    .admin-billing-user-card .admin-form-grid,
    .admin-billing-user-card .admin-billing-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-billing-workgrid .admin-user-section-identity,
    .admin-billing-workgrid .admin-subscription-section,
    .admin-billing-workgrid .admin-billing-section,
    .admin-billing-user-card .admin-billing-grid > label:first-child,
    .admin-billing-user-card .admin-billing-textarea-field {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

@media (max-width: 980px) {
    .admin-billing-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-billing-hero {
        padding: 18px;
    }

    .admin-billing-invoices-table {
        overflow-x: auto;
    }

    .admin-billing-invoices-table .billing-admin-table-head,
    .admin-billing-invoices-table .billing-admin-row {
        min-width: 980px;
    }
}

@media (max-width: 680px) {
    .admin-billing-hero,
    .admin-billing-kpi-grid,
    .admin-billing-hero-metrics {
        grid-template-columns: 1fr;
    }

    .admin-billing-hero-copy h2 {
        font-size: 30px;
    }
}

/* v1.435: tariff-aware registration and manual invoice billing */
.auth-plan-disclosure {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 28%);
    padding: 14px;
}

.auth-plan-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    font-weight: 900;
    color: var(--text);
}

.auth-plan-disclosure summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.auth-plan-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.auth-plan-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.auth-plan-card:hover,
.auth-plan-card.is-selected,
.auth-plan-card:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent), #ffffff 18%);
    background: color-mix(in srgb, var(--surface), var(--accent) 5%);
}

.auth-plan-card input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.auth-plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.auth-plan-card-head strong,
.auth-plan-card-head b {
    display: block;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
}

.auth-plan-card-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.auth-plan-card-head b {
    white-space: nowrap;
    color: var(--accent);
}

.auth-plan-limits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-plan-limits span {
    display: grid;
    gap: 2px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--bg), var(--surface) 34%);
    padding: 8px 10px;
}

.auth-plan-limits em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.auth-plan-limits strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.2;
}

.auth-plan-note {
    margin: 12px 0 0;
}

.auth-demo-card {
    border-block: 1px solid color-mix(in srgb, var(--ui-line, var(--border)), var(--accent) 5%);
    background: transparent;
    box-shadow: none;
    padding: 8px 0;
}

.auth-demo-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.auth-demo-card p {
    margin: 0;
    color: var(--ui-muted, var(--muted));
    font-family: var(--ui-font-ui, "Manrope", "Segoe UI", sans-serif);
    font-size: var(--ui-text-md, 0.94rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
}

.auth-legal-consent {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 12%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 28%);
    color: var(--text);
    font-family: var(--ui-font-ui, "Manrope", "Segoe UI", sans-serif);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-legal-consent:focus-within {
    border-color: color-mix(in srgb, var(--accent), #ffffff 12%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%);
}

.auth-legal-consent.is-accepted,
.auth-legal-consent:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent), #ffffff 22%);
    background: color-mix(in srgb, var(--surface), var(--accent) 6%);
}

.auth-legal-consent-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
}

.auth-legal-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-legal-consent-copy {
    min-width: 0;
}

.auth-legal-consent .auth-legal-consent-copy label {
    display: block;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.auth-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 7px;
}

.auth-legal-links a {
    color: var(--accent-dark);
    font: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.auth-legal-links a:hover {
    text-decoration-thickness: 2px;
}

.auth-legal-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.auth-legal-consent-hint {
    margin: 0 0 0 30px;
    color: var(--muted);
    font: inherit;
    letter-spacing: inherit;
}

@media (max-width: 520px) {
    .auth-legal-consent {
        padding: 11px;
    }

    .auth-legal-links {
        display: grid;
        gap: 5px;
    }

    .auth-legal-consent-hint {
        margin-left: 30px;
    }
}

.billing-panel {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.billing-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.billing-panel-head span {
    color: var(--accent);
}

.billing-form textarea {
    min-height: 112px;
    resize: vertical;
}

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

@media (max-width: 760px) {
    .auth-plan-disclosure summary,
    .auth-plan-card-head,
    .billing-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-plan-disclosure summary small {
        text-align: left;
    }

    .auth-plan-limits,
    .billing-grid {
        grid-template-columns: 1fr;
    }

}

/* v1.436.2: demo users choose paid plan from the dashboard */
.demo-upgrade-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 22px;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    border-color: color-mix(in srgb, var(--accent), var(--border) 72%) !important;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, #80d8ff, transparent 78%), transparent 34%),
        radial-gradient(circle at 10% 100%, color-mix(in srgb, var(--accent), transparent 88%), transparent 38%),
        var(--surface) !important;
}

.demo-upgrade-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--accent), transparent 94%) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 94%) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000 35%, #000 100%);
    opacity: 0.58;
}

.demo-upgrade-copy,
.demo-plan-form {
    position: relative;
    z-index: 1;
}

.demo-upgrade-copy {
    display: grid;
    align-content: start;
    gap: 14px;
}

.demo-upgrade-kicker {
    justify-self: start;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 44%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 91%);
    color: var(--accent);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.demo-upgrade-copy h2 {
    max-width: 640px;
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.demo-upgrade-copy p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 760;
    line-height: 1.45;
}

.demo-upgrade-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.demo-upgrade-steps span {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 18%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 24%);
    color: var(--text);
    padding: 11px 12px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.demo-plan-form {
    display: grid;
    gap: 14px;
}

.demo-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.demo-plan-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 16%);
    padding: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.demo-plan-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent), var(--border) 48%);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--accent), transparent 88%);
}

.demo-plan-card:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent), #ffffff 20%);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 91%), transparent 54%),
        var(--surface);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--accent), transparent 88%),
        0 24px 44px color-mix(in srgb, var(--accent), transparent 88%);
}

.demo-plan-card input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.demo-plan-card input:disabled + .demo-plan-top,
.demo-plan-card:has(input:disabled) {
    cursor: default;
}

.demo-plan-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.demo-plan-top strong,
.demo-plan-top b {
    display: block;
    color: var(--text);
    font-size: 20px;
    line-height: 1.05;
}

.demo-plan-top b {
    color: var(--accent);
    white-space: nowrap;
}

.demo-plan-top em {
    display: inline-flex;
    margin-top: 8px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 42%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 92%);
    color: var(--accent);
    padding: 5px 8px;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.demo-plan-desc {
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.4;
}

.demo-plan-limits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.demo-plan-limits span {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 28%);
    border-radius: 7px;
    background: color-mix(in srgb, var(--bg), var(--surface) 50%);
    padding: 9px 10px;
}

.demo-plan-limits em,
.demo-invoice-strip span,
.demo-invoice-strip small {
    display: block;
    color: var(--muted);
}

.demo-plan-limits em {
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
}

.demo-plan-limits strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
    line-height: 1.18;
}

.demo-invoice-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 55%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent), transparent 94%);
    padding: 14px;
}

.demo-invoice-strip div {
    min-width: 0;
}

.demo-invoice-strip span {
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.demo-invoice-strip strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.15;
}

.demo-invoice-strip small {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.35;
}

.demo-invoice-strip .btn {
    flex: 0 0 auto;
}

.demo-invoice-details {
    display: grid;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 64%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--accent) 3%);
    padding: 14px;
}

.demo-invoice-details span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
}

.demo-invoice-details pre {
    margin: 0;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    border: 1px solid color-mix(in srgb, var(--border), transparent 18%);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    padding: 12px;
    font: 800 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 1180px) {
    .demo-upgrade-panel,
    .demo-plan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .demo-upgrade-panel {
        padding: 18px !important;
    }

    .demo-upgrade-steps,
    .demo-plan-limits {
        grid-template-columns: 1fr;
    }

    .demo-invoice-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .demo-invoice-strip .btn {
        width: 100%;
    }
}

/* v1.436.3: compact in-product tariff request, matching dashboard cards */
.demo-upgrade-panel {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 18px !important;
    border-color: color-mix(in srgb, var(--border), var(--accent) 20%) !important;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface), #ffffff 8%), color-mix(in srgb, var(--surface), var(--accent) 3%)),
        var(--surface) !important;
}

.demo-upgrade-panel::before {
    background-size: 28px 28px !important;
    mask-image: linear-gradient(90deg, transparent, #000 58%, transparent) !important;
    opacity: 0.28 !important;
}

.demo-upgrade-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.demo-upgrade-copy {
    gap: 8px !important;
}

.demo-upgrade-copy h2 {
    max-width: 780px !important;
    font-size: clamp(22px, 2.1vw, 32px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.045em !important;
}

.demo-upgrade-copy p {
    max-width: 760px !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
}

.demo-upgrade-kicker {
    padding: 6px 9px !important;
    font-size: 10px !important;
}

.demo-upgrade-status {
    flex: 0 0 auto;
    min-width: 148px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 58%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--accent) 5%);
    padding: 10px 12px;
    text-align: right;
}

.demo-upgrade-status span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.demo-upgrade-status strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.15;
}

.demo-plan-form {
    gap: 10px !important;
}

.demo-plan-grid {
    gap: 10px !important;
}

.demo-plan-card {
    gap: 9px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.demo-plan-card:hover {
    transform: none !important;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent), transparent 91%) !important;
}

.demo-plan-card:has(input:checked) {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent), transparent 84%) !important;
}

.demo-plan-top strong {
    font-size: 17px !important;
}

.demo-plan-top b {
    font-size: 14px !important;
}

.demo-plan-top em {
    margin-top: 6px !important;
    padding: 4px 7px !important;
    font-size: 9px !important;
}

.demo-plan-desc {
    font-size: 12px !important;
    line-height: 1.32 !important;
}

.demo-plan-limits {
    gap: 6px !important;
}

.demo-plan-limits span {
    padding: 7px 8px !important;
}

.demo-plan-limits em {
    font-size: 9px !important;
}

.demo-plan-limits strong {
    margin-top: 3px !important;
    font-size: 12px !important;
}

.demo-invoice-strip {
    gap: 12px !important;
    padding: 11px 12px !important;
    border-color: color-mix(in srgb, var(--border), var(--accent) 22%) !important;
    background: color-mix(in srgb, var(--surface), var(--bg) 18%) !important;
}

.demo-invoice-strip strong {
    margin-top: 4px !important;
    font-size: 15px !important;
}

.demo-invoice-strip small {
    margin-top: 4px !important;
    font-size: 11px !important;
}

.demo-invoice-strip .btn {
    min-height: 42px !important;
    padding-inline: 20px !important;
}

@media (max-width: 900px) {
    .demo-upgrade-head {
        flex-direction: column;
    }

    .demo-upgrade-status {
        width: 100%;
        text-align: left;
    }

    .demo-plan-grid {
        grid-template-columns: 1fr !important;
    }
}

/* v1.436.4: make the demo billing control feel native to the dashboard */
.demo-upgrade-panel {
    display: block !important;
    padding: 12px 14px !important;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 14%) !important;
    border-radius: 8px !important;
    background: color-mix(in srgb, var(--surface), var(--bg) 12%) !important;
    box-shadow: none !important;
}

.demo-upgrade-panel::before,
.demo-upgrade-head,
.demo-upgrade-steps,
.demo-plan-grid,
.demo-invoice-strip,
.demo-invoice-details {
    display: none !important;
}

.demo-upgrade-compact-form {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.25fr) auto;
    gap: 12px;
    align-items: center;
}

.demo-upgrade-compact-copy {
    min-width: 0;
}

.demo-upgrade-compact-copy span,
.demo-plan-current span,
.demo-status-chip {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.demo-upgrade-compact-copy strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.demo-upgrade-compact-copy small,
.demo-plan-current small,
.demo-plan-pill small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.32;
}

.demo-plan-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.demo-plan-pill,
.demo-plan-current {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
}

.demo-plan-pill {
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.demo-plan-pill:hover {
    border-color: color-mix(in srgb, var(--accent), var(--border) 44%);
}

.demo-plan-pill:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent), #ffffff 20%);
    background: color-mix(in srgb, var(--accent), transparent 94%);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent), transparent 88%);
}

.demo-plan-pill input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.demo-plan-pill:has(input:disabled) {
    cursor: default;
    opacity: 0.82;
}

.demo-plan-pill span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.demo-plan-pill strong,
.demo-plan-current strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.1;
}

.demo-plan-pill b {
    color: var(--accent);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.demo-plan-current {
    display: grid;
    gap: 2px;
    background: color-mix(in srgb, var(--surface), var(--accent) 3%);
}

.demo-upgrade-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.demo-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    white-space: nowrap;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 18%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface), var(--accent) 4%);
    color: var(--text);
    padding: 0 12px;
}

.demo-upgrade-action .btn {
    min-height: 38px !important;
    padding-inline: 16px !important;
    white-space: nowrap;
}

@media (max-width: 1220px) {
    .demo-upgrade-compact-form {
        grid-template-columns: 1fr;
    }

    .demo-upgrade-action {
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .demo-upgrade-panel {
        padding: 12px !important;
    }

    .demo-plan-pills {
        grid-template-columns: 1fr;
    }

    .demo-upgrade-action {
        align-items: stretch;
        flex-direction: column;
    }

    .demo-status-chip,
    .demo-upgrade-action .btn {
        width: 100%;
    }
}

/* v1.436: structured SaaS account management */
.admin-users-workspace {
    display: grid;
    gap: 14px;
}

.admin-users-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 24%);
    padding: 12px 14px;
}

.admin-users-summary div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text);
}

.admin-users-summary strong {
    font-size: 22px;
    line-height: 1;
}

.admin-users-summary span,
.admin-users-summary p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-users-summary p {
    margin: 0;
    text-align: right;
}

.admin-users-list {
    display: grid;
    gap: 14px;
}

.admin-user-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.admin-user-card-head {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(360px, 0.9fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-user-avatar {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 38%);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.admin-user-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.admin-user-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-user-title strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 16px;
    line-height: 1.25;
}

.admin-role-chip {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 52%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 91%);
    color: var(--accent);
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.admin-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-user-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-user-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-user-status-strip span,
.admin-status-row span {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 25%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg), var(--surface) 44%);
    padding: 8px 10px;
}

.admin-user-status-strip em,
.admin-status-row em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.admin-user-status-strip strong,
.admin-status-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 12px;
    line-height: 1.2;
}

.admin-user-workgrid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.15fr) minmax(420px, 1.2fr);
}

.admin-user-section {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border-right: 1px solid var(--border);
}

.admin-user-section:last-child {
    border-right: 0;
}

.admin-user-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.admin-user-section-head strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.admin-user-section-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.admin-control-stack,
.admin-subscription-form,
.billing-form {
    display: grid;
    gap: 10px;
}

.admin-compact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.admin-compact-form label,
.admin-form-grid label,
.billing-form label {
    min-width: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.admin-compact-form .btn,
.admin-form-footer .btn,
.admin-quick-actions .btn {
    min-height: 42px;
}

.admin-readonly-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.admin-readonly-line span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.admin-readonly-line strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
}

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

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(130px, 1fr) minmax(78px, 0.55fr) minmax(78px, 0.55fr);
    gap: 8px;
}

.admin-billing-grid {
    grid-template-columns: minmax(160px, 1.1fr) minmax(110px, 0.7fr) minmax(140px, 1fr);
}

.admin-form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-quick-actions .role-action-form {
    margin: 0;
}

.admin-quick-actions .role-action-btn {
    min-width: 104px;
}

.admin-system-note {
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.admin-billing-section textarea {
    min-height: 88px;
    resize: vertical;
}

.admin-billing-footer .btn {
    min-width: 150px;
}

@media (max-width: 1280px) {
    .admin-user-card-head,
    .admin-user-workgrid {
        grid-template-columns: 1fr;
    }

    .admin-user-card-head {
        align-items: start;
    }

    .admin-user-section {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-user-section:last-child {
        border-bottom: 0;
    }

    .admin-users-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-users-summary p {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .admin-user-card-head,
    .admin-user-section {
        padding: 14px;
    }

    .admin-user-title,
    .admin-user-meta,
    .admin-user-section-head,
    .admin-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-status-strip,
    .admin-status-row,
    .admin-form-grid,
    .admin-billing-grid,
    .admin-form-footer,
    .admin-compact-form {
        grid-template-columns: 1fr;
    }

    .admin-user-section-head span {
        text-align: left;
    }

    .admin-form-footer .btn,
    .admin-billing-footer .btn,
    .admin-quick-actions .role-action-btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .cc-trust-card .cc-security-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-top: 18px !important;
    }

    .cc-trust-card .cc-security-item {
        min-height: auto !important;
        padding: 18px !important;
        gap: 10px;
    }

    .cc-trust-card .cc-security-item .cc-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* v1.433.3: centered SaaS header spacing */
body.shell-guest-nav .topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(211, 219, 249, 0.9) !important;
    box-shadow: 0 14px 34px rgba(25, 37, 104, 0.055) !important;
}

body.shell-guest-nav .topbar-inner {
    width: min(var(--container), calc(100% - (var(--cc-gutter) * 2))) !important;
    max-width: var(--container) !important;
    min-height: 72px !important;
    margin-inline: auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(190px, 224px) minmax(420px, 1fr) auto !important;
    align-items: center !important;
    gap: clamp(22px, 3vw, 42px) !important;
}

body.shell-guest-nav .brand {
    width: max-content;
    min-width: 0;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-self: start;
}

body.shell-guest-nav .brand-logo-main {
    width: 176px !important;
    max-width: 176px !important;
    height: auto !important;
    max-height: 36px !important;
    object-fit: contain !important;
}

body.shell-guest-nav .landing-primary-nav {
    justify-content: center !important;
    gap: clamp(28px, 3.1vw, 46px) !important;
    min-width: 0;
}

body.shell-guest-nav .landing-primary-nav a,
body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    font-size: 15px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

body.shell-guest-nav .top-nav-guest {
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: max-content;
}

body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    min-width: 84px !important;
    min-height: 42px !important;
    padding: 0 20px !important;
}

body.shell-guest-nav .topbar-cta {
    min-width: 176px !important;
    min-height: 44px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
}

/* v1.436.1: remove the empty-looking air above the public navigation. */
body.shell-guest-nav .topbar {
    min-height: 60px !important;
    margin-top: -24px !important;
}

body.shell-guest-nav .topbar-inner {
    min-height: 60px !important;
}

body.shell-guest-nav .brand {
    min-height: 36px !important;
}

body.shell-guest-nav .brand-logo-main {
    max-height: 32px !important;
}

@media (max-width: 1180px) {
    body.shell-guest-nav .topbar-inner {
        grid-template-columns: minmax(176px, 200px) minmax(320px, 1fr) auto !important;
        gap: 20px !important;
    }

    body.shell-guest-nav .brand-logo-main {
        width: 164px !important;
        max-width: 164px !important;
    }

    body.shell-guest-nav .landing-primary-nav {
        gap: 24px !important;
    }

    body.shell-guest-nav .landing-primary-nav a,
    body.shell-guest-nav .top-nav-guest > a:not(.btn) {
        font-size: 14px !important;
    }
}

@media (max-width: 900px) {
    body.shell-guest-nav .topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto !important;
        min-height: 64px !important;
    }

    body.shell-guest-nav .landing-primary-nav {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.shell-guest-nav .topbar {
        min-height: 62px;
    }

    body.shell-guest-nav .topbar-inner {
        width: calc(100% - 32px) !important;
        min-height: 62px !important;
    }

    body.shell-guest-nav .brand {
        min-height: 38px !important;
    }

    body.shell-guest-nav .brand-logo-main {
        width: 156px !important;
        max-width: 156px !important;
    }

    body.shell-guest-nav .top-nav-guest {
        display: none !important;
    }
}

/* v1.433.4: hero uses the real dashboard screenshot only */
.cc-hero .cc-dashboard-shell {
    width: min(100%, 850px) !important;
    aspect-ratio: 2.02 / 1 !important;
    padding: 0 !important;
    border-radius: 28px !important;
    border: 1px solid rgba(120, 137, 236, 0.34) !important;
    background: #f9fbff !important;
    box-shadow: 0 30px 76px rgba(24, 38, 111, 0.16) !important;
    overflow: hidden !important;
}

.cc-hero .cc-dashboard-shell > .cc-dashboard-picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.cc-hero .cc-dashboard-real {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
}

.cc-hero .cc-demo-strip {
    display: none !important;
}

/* v1.433.7: compact hero dashboard crop */
.cc-hero .cc-dashboard-shell {
    aspect-ratio: 1410 / 675 !important;
}

@media (min-width: 1500px) {
    .cc-hero .cc-dashboard-shell {
        width: min(100%, 900px) !important;
    }
}

@media (max-width: 1180px) {
    .cc-hero .cc-dashboard-shell {
        width: min(100%, 920px) !important;
        margin-inline: auto !important;
    }
}

@media (max-width: 760px) {
    .cc-hero .cc-dashboard-shell {
        width: 100% !important;
        border-radius: 20px !important;
        box-shadow: 0 18px 42px rgba(24, 38, 111, 0.13) !important;
    }
}

/* v1.433.5: stronger pricing and support actions */
.cc-tariff-card {
    display: flex !important;
    flex-direction: column;
}

.cc-tariff-cta {
    min-height: 56px !important;
    margin-top: 26px !important;
    border-radius: 18px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    box-shadow: 0 18px 34px rgba(70, 82, 224, 0.24) !important;
}

.cc-support-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: auto !important;
    gap: 24px !important;
}

.cc-support-copy {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cc-support-list {
    margin-top: 24px !important;
    gap: 0 !important;
}

.cc-support-list li {
    min-height: 68px !important;
    padding: 14px 0 !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 8px !important;
    font-size: 15px !important;
}

.cc-support-list b {
    display: block !important;
    min-width: 0 !important;
    font-size: 15px !important;
    overflow-wrap: anywhere;
}

.cc-support-card .cc-support-list li > span,
.cc-support-card .cc-support-list li > b {
    grid-column: 1 / -1 !important;
}

.cc-support-benefits {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cc-support-benefits span {
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(167, 181, 255, 0.58);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(242, 245, 255, 0.82));
    color: var(--cc-ink-soft);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.24;
    display: flex;
    align-items: center;
}

.cc-support-cta {
    min-height: 58px !important;
    margin-top: auto !important;
    border-radius: 18px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    box-shadow: 0 18px 34px rgba(70, 82, 224, 0.24) !important;
}

@media (max-width: 1180px) {
    .cc-support-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .cc-tariff-cta,
    .cc-support-cta {
        min-height: 54px !important;
        font-size: 15px !important;
    }

    body.shell-guest-nav .cc-support-card .cc-support-list li {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 7px !important;
        align-items: start !important;
    }

    body.shell-guest-nav .cc-support-card .cc-support-list b {
        display: block !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }

    .cc-support-benefits {
        grid-template-columns: 1fr;
    }
}

/* v1.433.6: align trust/support grid with the main sections */
.cc-tariff-grid {
    align-items: stretch !important;
}

.cc-tariff-card .cc-tariff-list {
    flex: 1 1 auto;
}

.cc-trust-grid {
    width: var(--cc-section-width) !important;
    max-width: var(--container) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 24px !important;
}

.cc-trust-grid > .cc-panel {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
}

@media (max-width: 1180px) {
    .cc-trust-grid {
        grid-template-columns: 1fr !important;
    }
}

/* v1.440: simplified filter modes with one visual rhythm. */
.scan-filter-form .filter-mode-shell {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(124, 132, 205, 0.26);
    border-radius: var(--cc-radius-card, 28px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 251, 255, 0.86)),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(48, 57, 132, 0.08);
    overflow: visible;
}

.scan-filter-form .filter-mode-basic {
    border-color: rgba(99, 112, 255, 0.24);
}

.filter-mode-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.filter-mode-heading > strong,
.filter-mode-advanced > summary > strong {
    color: #151936;
    font-size: 1rem;
    line-height: 1.16;
    font-weight: 900;
}

.filter-mode-heading > span:last-child,
.filter-mode-advanced > summary > span:last-child {
    grid-column: 1;
    min-width: 0;
    color: #5f668d;
    font-size: 0.86rem;
    line-height: 1.35;
}

.filter-mode-advanced {
    padding: 0 !important;
}

.filter-mode-advanced > summary {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    list-style: none;
    border-radius: inherit;
}

.filter-mode-advanced > summary::-webkit-details-marker {
    display: none;
}

.filter-mode-advanced > summary::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: #4a55de;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.filter-mode-advanced[open] > summary::after {
    transform: rotate(225deg);
}

.filter-advanced-body {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
}

.filter-mode-shell .scan-filter-top-row,
.filter-mode-shell .scan-filter-search-row,
.filter-mode-shell .scan-filter-controls-row,
.filter-mode-shell .scan-filter-flags {
    min-width: 0;
}

.filter-mode-shell .scan-filter-flags,
html:not([data-theme="dark"]) .filter-mode-shell .scan-filter-flags {
    display: grid !important;
    gap: 10px !important;
    width: 100%;
    padding: 10px !important;
    border: 1px solid rgba(124, 132, 205, 0.18);
    border-radius: var(--cc-radius-card-sm, 22px);
    background: rgba(255, 255, 255, 0.72);
}

.filter-mode-shell .scan-filter-basic-flags,
html:not([data-theme="dark"]) .filter-mode-shell .scan-filter-basic-flags {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
}

.filter-mode-shell .scan-filter-advanced-flags,
html:not([data-theme="dark"]) .filter-mode-shell .scan-filter-advanced-flags {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

.filter-mode-shell .scan-filter-flags .checkbox-label,
html:not([data-theme="dark"]) .filter-mode-shell .scan-filter-flags .checkbox-label {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: var(--cc-radius-card-sm, 22px);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(124, 132, 205, 0.2);
}

.products-filter-form .scan-filter-main-row.products-basic-fields,
html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-row.products-basic-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.products-filter-form .products-filter-search-row {
    grid-template-columns: minmax(260px, 1fr) minmax(160px, auto);
}

.products-filter-form .products-filter-controls-row {
    grid-template-columns:
        minmax(128px, 0.42fr)
        minmax(230px, 1fr)
        minmax(170px, 0.64fr)
        minmax(150px, 0.54fr) !important;
}

.products-filter-advanced-submit {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    align-self: end;
}

html[data-theme="dark"] .scan-filter-form .filter-mode-shell {
    border-color: rgba(126, 156, 178, 0.28);
    background:
        linear-gradient(180deg, rgba(18, 25, 34, 0.92), rgba(13, 18, 26, 0.86)),
        rgba(18, 25, 34, 0.9);
    box-shadow: none;
}

html[data-theme="dark"] .filter-mode-heading > strong,
html[data-theme="dark"] .filter-mode-advanced > summary > strong {
    color: #edf4ff;
}

html[data-theme="dark"] .filter-mode-heading > span:last-child,
html[data-theme="dark"] .filter-mode-advanced > summary > span:last-child {
    color: #9bb4c7;
}

html[data-theme="dark"] .filter-mode-shell .scan-filter-flags,
html[data-theme="dark"] .filter-mode-shell .scan-filter-flags .checkbox-label {
    background: rgba(18, 25, 32, 0.68);
    border-color: rgba(126, 156, 178, 0.24);
}

@media (max-width: 900px) {
    .filter-mode-heading,
    .filter-mode-advanced > summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .filter-mode-heading > span:last-child,
    .filter-mode-advanced > summary > span:last-child {
        grid-column: 1;
    }

    .products-filter-form .scan-filter-main-row.products-basic-fields,
    html:not([data-theme="dark"]) .products-filter-form .scan-filter-main-row.products-basic-fields,
    .products-filter-form .products-filter-controls-row,
    .scan-filter-controls-row {
        grid-template-columns: 1fr !important;
    }

    .products-filter-form .products-filter-search-row,
    .scan-filter-search-row {
        grid-template-columns: 1fr;
    }

    .scan-filter-search-row .btn,
    .products-filter-advanced-submit {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .scan-filter-form .filter-mode-shell {
        padding: 12px;
        border-radius: var(--cc-radius-card, 28px);
    }

    .filter-mode-advanced > summary {
        padding: 12px;
    }

    .filter-advanced-body {
        padding: 0 12px 12px;
    }

    .filter-mode-shell .scan-filter-basic-flags,
    .filter-mode-shell .scan-filter-advanced-flags,
    html:not([data-theme="dark"]) .filter-mode-shell .scan-filter-basic-flags,
    html:not([data-theme="dark"]) .filter-mode-shell .scan-filter-advanced-flags {
        grid-template-columns: 1fr !important;
    }
}

/* Keep the tariff expiry line compact despite large KPI number styles. */
.overview-summary-stat .overview-summary-validity,
html:not([data-theme="dark"]) .overview-summary-stat .overview-summary-validity {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.overview-summary-stat .overview-summary-validity strong,
html:not([data-theme="dark"]) .overview-summary-stat .overview-summary-validity strong {
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
}

/* First-login product onboarding */
.product-onboarding {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 38px);
}

.product-onboarding[hidden] {
    display: none !important;
}

.product-onboarding-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(89, 97, 232, 0.22), transparent 32%),
        radial-gradient(circle at 82% 8%, rgba(235, 100, 96, 0.12), transparent 30%),
        rgba(16, 18, 40, 0.42);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.product-onboarding-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 32px));
    overflow: auto;
    border: 1px solid rgba(124, 132, 205, 0.34);
    border-radius: var(--cc-radius-panel, 34px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 255, 0.96)),
        #ffffff;
    box-shadow: 0 36px 110px rgba(23, 27, 63, 0.24);
}

.product-onboarding-form {
    display: grid;
    gap: 22px;
    padding: clamp(22px, 4vw, 34px);
}

.product-onboarding-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(124, 132, 205, 0.28);
    border-radius: var(--cc-radius-pill, 999px);
    background: rgba(255, 255, 255, 0.82);
    color: #4a55de;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
}

.product-onboarding-hero {
    display: grid;
    gap: 10px;
    padding-right: 56px;
}

.product-onboarding-kicker {
    margin: 0;
    color: #4a55de;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-onboarding-hero h2 {
    margin: 0;
    color: #151936;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.product-onboarding-hero p:last-child {
    max-width: 680px;
    margin: 0;
    color: #59607f;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.45;
}

.product-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-onboarding-step {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(124, 132, 205, 0.26);
    border-radius: var(--cc-radius-card, 28px);
    background: rgba(255, 255, 255, 0.76);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-onboarding-step:hover,
.product-onboarding-step:focus-visible {
    border-color: rgba(89, 97, 232, 0.48);
    box-shadow: 0 18px 44px rgba(48, 57, 132, 0.12);
    transform: translateY(-1px);
}

.product-onboarding-step-index {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--cc-radius-pill, 999px);
    background: #eff0ff;
    color: #4a55de;
    font-weight: 900;
}

.product-onboarding-step-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.product-onboarding-step-copy strong {
    color: #151936;
    font-size: 1rem;
    line-height: 1.2;
}

.product-onboarding-step-copy span {
    color: #59607f;
    font-size: 0.9rem;
    line-height: 1.42;
}

.product-onboarding-step-link {
    grid-column: 2;
    color: #4a55de;
    font-size: 0.82rem;
    font-weight: 900;
}

.product-onboarding-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.product-onboarding-actions .btn {
    min-height: 46px;
}

html[data-theme="dark"] .product-onboarding-panel {
    border-color: rgba(126, 156, 178, 0.28);
    background:
        linear-gradient(145deg, rgba(18, 25, 34, 0.98), rgba(13, 18, 26, 0.96)),
        #121922;
}

html[data-theme="dark"] .product-onboarding-hero h2,
html[data-theme="dark"] .product-onboarding-step-copy strong {
    color: #edf4ff;
}

html[data-theme="dark"] .product-onboarding-hero p:last-child,
html[data-theme="dark"] .product-onboarding-step-copy span {
    color: #9bb4c7;
}

html[data-theme="dark"] .product-onboarding-step,
html[data-theme="dark"] .product-onboarding-close {
    background: rgba(18, 25, 34, 0.78);
    border-color: rgba(126, 156, 178, 0.24);
}

@media (max-width: 760px) {
    .product-onboarding {
        align-items: end;
        padding: 12px;
    }

    .product-onboarding-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: var(--cc-radius-panel, 34px);
    }

    .product-onboarding-form {
        gap: 16px;
        padding: 22px 16px 16px;
    }

    .product-onboarding-hero {
        padding-right: 46px;
    }

    .product-onboarding-steps {
        grid-template-columns: 1fr;
    }

    .product-onboarding-actions,
    .product-onboarding-actions .btn {
        width: 100%;
    }
}

/* Final radius guard: keep authenticated UI corners consistent after legacy blocks. */
html:not([data-theme="dark"]) body.shell-auth {
    --cc-radius-panel: 34px;
    --cc-radius-card: 28px;
    --cc-radius-card-sm: 22px;
    --cc-radius-pill: 999px;
}

html:not([data-theme="dark"]) body.shell-auth :where(
    .cc-page-header,
    .panel,
    .overview-zone-kpi,
    .overview-zone-sources,
    .overview-work-card,
    .overview-run-grid > .panel,
    .table-wrap,
    .history-table-block,
    .history-table-wrap,
    .admin-users-table-wrap,
    .scan-table-wrap,
    .product-competitors-table-wrap,
    .products-table-section,
    .competitor-analysis-panel,
    .competitor-analysis-table-wrap,
    .settings-page .table-wrap,
    .settings-tabs-shell,
    .settings-tab-panel,
    .user-cabinet-panel,
    .product-detail-summary-zone,
    .product-detail-tabs-zone,
    .product-onboarding-panel,
    .trial-access-toast
) {
    border-radius: var(--cc-radius-panel) !important;
}

html:not([data-theme="dark"]) body.shell-auth :where(
    .overview-summary-stat,
    .overview-v386-shell .insight-card,
    .overview-source-item,
    .overview-status-list li,
    .overview-opportunity-cards .insight-card,
    .overview-stats-grid .insight-card,
    .main-task-panel .source-preview-item,
    .product-overview-aside-grid .insight-card,
    .notification-item,
    .notification-card,
    .cabinet-card,
    .cabinet-note-card,
    .source-center-item,
    .product-action-card,
    .competitor-store-stats-card,
    .competitor-top-product-row,
    .competitor-analysis-period-card,
    .scan-history-card,
    .scan-item-row,
    .products-item-row,
    .product-onboarding-step,
    .competitor-analysis-seller-row,
    .settings-tab-btn,
    .settings-page .referral-row,
    .trial-access-limits div,
    .trial-access-invoice,
    .app-error-card,
    .alert
) {
    border-radius: var(--cc-radius-card) !important;
    overflow: hidden;
}

html:not([data-theme="dark"]) body.shell-auth :where(
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-action,
    .btn-accent,
    .btn-accent-soft,
    .btn-warning-soft,
    .btn-danger-soft,
    .scan-action-btn,
    .filter-preset-btn,
    .product-onboarding-close,
    .notification-action-btn,
    .role-action-btn,
    .day-action-btn,
    .product-detail-tab-btn,
    .captcha-refresh-btn,
    .action-pill,
    .status-chip,
    .badge,
    .risk-chip,
    .availability-chip,
    .kpi-delta,
    .notification-tag,
    .tariff-badge,
    .scan-item-tag,
    .products-item-tag,
    .scan-item-kpi-chip,
    .products-item-kpi-chip,
    .item-meta-chip,
    .product-detail-meta-chip,
    .product-stock-chip,
    .model-analysis-status-chip,
    .model-analysis-status-option,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    .custom-select-trigger
) {
    border-radius: var(--cc-radius-pill) !important;
}

html:not([data-theme="dark"]) body.shell-auth textarea {
    border-radius: var(--cc-radius-card-sm) !important;
}

/* v1.442: unified controls, filters, and action bars. */
body.shell-auth {
    --cc-control-height: 44px;
    --cc-control-height-sm: 36px;
    --cc-control-height-xs: 32px;
    --cc-control-radius: 12px;
    --cc-control-panel-radius: 16px;
    --cc-control-border: rgba(124, 132, 205, 0.26);
    --cc-control-border-strong: rgba(92, 101, 226, 0.46);
    --cc-control-bg: rgba(255, 255, 255, 0.94);
    --cc-control-bg-soft: rgba(247, 248, 255, 0.88);
    --cc-control-bg-hover: #ffffff;
    --cc-control-ink: #202451;
    --cc-control-muted: #667097;
    --cc-control-primary: #5e65ee;
    --cc-control-primary-strong: #535ce2;
    --cc-control-focus: 0 0 0 3px rgba(94, 101, 238, 0.16);
    --cc-control-shadow: 0 10px 22px rgba(67, 72, 150, 0.08);
}

html[data-theme="dark"] body.shell-auth {
    --cc-control-border: rgba(126, 156, 178, 0.28);
    --cc-control-border-strong: rgba(138, 168, 255, 0.54);
    --cc-control-bg: rgba(18, 25, 34, 0.88);
    --cc-control-bg-soft: rgba(16, 23, 32, 0.74);
    --cc-control-bg-hover: rgba(27, 37, 50, 0.96);
    --cc-control-ink: #edf4ff;
    --cc-control-muted: #9bb4c7;
    --cc-control-primary: #8d96ff;
    --cc-control-primary-strong: #a9dff0;
    --cc-control-focus: 0 0 0 3px rgba(141, 150, 255, 0.2);
    --cc-control-shadow: none;
}

body.shell-auth :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea,
    .custom-select-trigger
) {
    min-height: var(--cc-control-height) !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-radius) !important;
    background: var(--cc-control-bg) !important;
    color: var(--cc-control-ink) !important;
    box-shadow: none !important;
    font-size: 0.93rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

body.shell-auth :where(textarea) {
    border-radius: var(--cc-control-radius) !important;
}

body.shell-auth :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea
) {
    padding: 10px 14px !important;
}

body.shell-auth :where(.custom-select-trigger) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 14px !important;
    text-align: left !important;
}

body.shell-auth :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea,
    .custom-select-trigger
):hover {
    border-color: var(--cc-control-border-strong) !important;
    background: var(--cc-control-bg-hover) !important;
}

body.shell-auth :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea
):focus,
body.shell-auth :where(.custom-select.is-open .custom-select-trigger, .custom-select-trigger:focus-visible) {
    outline: none !important;
    border-color: var(--cc-control-border-strong) !important;
    background: var(--cc-control-bg-hover) !important;
    box-shadow: var(--cc-control-focus) !important;
}

body.shell-auth input::placeholder,
body.shell-auth textarea::placeholder {
    color: color-mix(in srgb, var(--cc-control-muted), transparent 22%) !important;
    font-weight: 600 !important;
}

body.shell-auth :where(.btn, .action-pill) {
    min-height: var(--cc-control-height) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 14px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-radius) !important;
    background: var(--cc-control-bg-soft) !important;
    color: var(--cc-control-primary-strong) !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.18 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
}

body.shell-auth :where(.btn:hover, .action-pill:hover) {
    transform: translateY(-1px) !important;
    border-color: var(--cc-control-border-strong) !important;
    background: var(--cc-control-bg-hover) !important;
    box-shadow: var(--cc-control-shadow) !important;
}

body.shell-auth :where(.btn:active, .action-pill:active) {
    transform: translateY(0) !important;
}

body.shell-auth :where(.btn:focus-visible, .action-pill:focus-visible) {
    outline: none !important;
    border-color: var(--cc-control-border-strong) !important;
    box-shadow: var(--cc-control-focus) !important;
}

body.shell-auth :where(.btn:disabled, .btn-disabled, .btn.is-disabled, .action-pill-disabled) {
    cursor: not-allowed !important;
    opacity: 0.58 !important;
    transform: none !important;
    box-shadow: none !important;
}

body.shell-auth :where(.btn-primary) {
    border-color: color-mix(in srgb, var(--cc-control-primary), #000 10%) !important;
    background: linear-gradient(180deg, var(--cc-control-primary), var(--cc-control-primary-strong)) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(83, 92, 226, 0.22) !important;
}

body.shell-auth :where(.btn-primary:hover) {
    filter: none !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(83, 92, 226, 0.28) !important;
}

body.shell-auth :where(.btn-secondary, .btn-action, .action-pill) {
    background: var(--cc-control-bg-soft) !important;
    color: var(--cc-control-primary-strong) !important;
}

body.shell-auth :where(.btn-accent-soft, .action-pill-info-primary) {
    border-color: rgba(43, 166, 149, 0.3) !important;
    background: rgba(225, 250, 246, 0.78) !important;
    color: #177d73 !important;
}

body.shell-auth :where(.btn-warning-soft) {
    border-color: rgba(180, 133, 47, 0.34) !important;
    background: rgba(255, 247, 232, 0.9) !important;
    color: #8a641d !important;
}

body.shell-auth :where(.btn-danger-soft) {
    border-color: rgba(210, 82, 76, 0.34) !important;
    background: rgba(255, 239, 239, 0.92) !important;
    color: #b6423d !important;
}

html[data-theme="dark"] body.shell-auth :where(.btn-primary) {
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth :where(.btn-accent-soft, .action-pill-info-primary) {
    border-color: rgba(126, 223, 210, 0.32) !important;
    background: rgba(33, 128, 119, 0.18) !important;
    color: #a9dff0 !important;
}

html[data-theme="dark"] body.shell-auth :where(.btn-warning-soft) {
    border-color: rgba(243, 184, 91, 0.34) !important;
    background: rgba(143, 94, 21, 0.2) !important;
    color: #f1c47a !important;
}

html[data-theme="dark"] body.shell-auth :where(.btn-danger-soft) {
    border-color: rgba(245, 120, 115, 0.34) !important;
    background: rgba(149, 50, 48, 0.22) !important;
    color: #ffaaa7 !important;
}

body.shell-auth :where(.btn-sm) {
    min-height: var(--cc-control-height-sm) !important;
    padding-inline: 12px !important;
    font-size: 0.84rem !important;
}

body.shell-auth :where(.btn-xs, .scan-action-btn.btn-xs) {
    min-height: var(--cc-control-height-xs) !important;
    padding-inline: 10px !important;
    font-size: 0.78rem !important;
}

body.shell-auth :where(.btn-block) {
    width: 100% !important;
}

body.shell-auth :where(.scan-filter-form) {
    display: grid !important;
    gap: 12px !important;
    overflow: visible !important;
}

body.shell-auth :where(.scan-filter-form .filter-mode-shell) {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-panel-radius) !important;
    background: var(--cc-control-bg-soft) !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.shell-auth :where(.filter-mode-heading, .filter-mode-advanced > summary) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 4px 12px !important;
}

body.shell-auth :where(.filter-mode-heading > strong, .filter-mode-advanced > summary > strong) {
    color: var(--cc-control-ink) !important;
    font-size: 0.96rem !important;
    font-weight: 900 !important;
    line-height: 1.18 !important;
}

body.shell-auth :where(.filter-mode-heading > span:last-child, .filter-mode-advanced > summary > span:last-child) {
    grid-column: 1 !important;
    color: var(--cc-control-muted) !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
}

body.shell-auth :where(.filter-mode-advanced) {
    padding: 0 !important;
}

body.shell-auth :where(.filter-mode-advanced > summary) {
    min-height: 54px !important;
    padding: 14px !important;
    border-radius: var(--cc-control-panel-radius) !important;
}

body.shell-auth :where(.filter-advanced-body) {
    display: grid !important;
    gap: 12px !important;
    padding: 0 14px 14px !important;
}

body.shell-auth :where(.scan-filter-top-row) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 10px 12px !important;
}

body.shell-auth :where(.scan-filter-presets, .scan-filter-actions, .scan-pagination-actions, .products-item-body-links, .scan-item-body-links) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body.shell-auth :where(.scan-filter-actions, .scan-pagination-actions) {
    justify-content: flex-end !important;
}

body.shell-auth :where(.filter-preset-btn) {
    min-height: var(--cc-control-height-sm) !important;
    border-radius: var(--cc-control-radius) !important;
    background: var(--cc-control-bg) !important;
    box-shadow: none !important;
}

body.shell-auth :where(.filter-preset-btn.is-active) {
    border-color: color-mix(in srgb, var(--cc-control-primary), #000 10%) !important;
    background: linear-gradient(180deg, var(--cc-control-primary), var(--cc-control-primary-strong)) !important;
    color: #ffffff !important;
}

body.shell-auth :where(.scan-filter-search-row) {
    display: grid !important;
    grid-template-columns: minmax(240px, 1fr) minmax(132px, auto) !important;
    gap: 10px !important;
    align-items: stretch !important;
    min-width: 0 !important;
}

body.shell-auth :where(.scan-filter-search-row .scan-filter-search, .scan-filter-search-row .btn) {
    width: 100% !important;
    min-height: var(--cc-control-height) !important;
}

body.shell-auth :where(.scan-filter-main-row, .scan-filter-controls-row) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 10px !important;
    align-items: end !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.shell-auth :where(.products-filter-form .products-basic-fields) {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

body.shell-auth :where(.products-filter-form .products-filter-controls-row) {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

body.shell-auth :where(.scan-filter-control, .products-field, .products-search-field, .competitor-analysis-field, .feed-scan-launch-form label) {
    display: grid !important;
    gap: 6px !important;
    align-content: end !important;
    min-width: 0 !important;
}

body.shell-auth :where(.scan-filter-control > span, .products-field > span, .competitor-analysis-field > span, .feed-scan-launch-form label > span) {
    color: var(--cc-control-muted) !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.shell-auth :where(.scan-filter-control .custom-select, .products-field .custom-select, .overview-kpi-scan-form .custom-select, .competitor-analysis-field .custom-select) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.shell-auth :where(.scan-filter-flags) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-panel-radius) !important;
    background: color-mix(in srgb, var(--cc-control-bg), transparent 20%) !important;
}

body.shell-auth :where(.checkbox-label) {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-radius) !important;
    background: var(--cc-control-bg) !important;
    color: var(--cc-control-ink) !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.shell-auth :where(.checkbox-label input[type="checkbox"], input[type="checkbox"], input[type="radio"]) {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--cc-control-primary) !important;
    flex: 0 0 auto !important;
}

body.shell-auth :where(.scan-filter-hint) {
    margin: 0 !important;
    color: var(--cc-control-muted) !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

body.shell-auth :where(.overview-kpi-scan-form, .competitor-analysis-form, .feed-scan-launch-form) {
    display: grid !important;
    gap: 10px !important;
    align-items: end !important;
    padding: 12px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-panel-radius) !important;
    background: var(--cc-control-bg-soft) !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.shell-auth :where(.overview-kpi-scan-form) {
    grid-template-columns: auto minmax(240px, 1fr) auto auto !important;
}

body.shell-auth :where(.overview-kpi-scan-form label) {
    margin: 0 !important;
    color: var(--cc-control-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.shell-auth :where(.competitor-analysis-form) {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.38fr) auto !important;
}

body.shell-auth :where(.competitor-analysis-form.competitor-analysis-form-standard) {
    grid-template-columns: minmax(260px, 1fr) auto !important;
}

body.shell-auth :where(.competitor-analysis-actions) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

body.shell-auth :where(.feed-scan-launch-form) {
    grid-template-columns: minmax(260px, 1fr) minmax(110px, 0.32fr) minmax(150px, 0.42fr) auto !important;
}

body.shell-auth :where(.feed-scan-launch-form .btn, .competitor-analysis-actions .btn) {
    width: auto !important;
}

body.shell-auth :where(.feed-scan-launch-form > .btn) {
    min-width: 180px !important;
}

body.shell-auth :where(.audit-filter-bar, .billing-inner-tabs) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 8px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-panel-radius) !important;
    background: var(--cc-control-bg-soft) !important;
}

body.shell-auth :where(.audit-filter-bar button, .billing-inner-tabs button) {
    min-height: var(--cc-control-height-sm) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border: 1px solid transparent !important;
    border-radius: var(--cc-control-radius) !important;
    background: transparent !important;
    color: var(--cc-control-muted) !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

body.shell-auth :where(.audit-filter-bar button:hover, .billing-inner-tabs button:hover) {
    border-color: var(--cc-control-border) !important;
    background: var(--cc-control-bg) !important;
    color: var(--cc-control-primary-strong) !important;
}

body.shell-auth :where(.audit-filter-bar button.is-active, .billing-inner-tabs button.is-active) {
    border-color: color-mix(in srgb, var(--cc-control-primary), #000 10%) !important;
    background: linear-gradient(180deg, var(--cc-control-primary), var(--cc-control-primary-strong)) !important;
    color: #ffffff !important;
}

body.shell-auth :where(.settings-tab-btn) {
    border-radius: var(--cc-control-panel-radius) !important;
}

body.shell-auth :where(.settings-tab-btn.is-active) {
    border-color: var(--cc-control-border-strong) !important;
}

body.shell-auth :where(.cc-page-header-actions, .feed-slot-actions, .settings-actions, .admin-form-footer, .role-form-inline, .admin-quick-actions) {
    gap: 8px !important;
}

body.shell-auth :where(.cc-page-header-actions .btn, .feed-slot-actions .btn, .settings-actions .btn, .admin-form-footer .btn, .role-form-inline .btn, .admin-quick-actions .btn) {
    min-height: var(--cc-control-height-sm) !important;
}

body.shell-auth :where(.custom-select-menu) {
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-radius) !important;
    background: var(--cc-control-bg-hover) !important;
    box-shadow: 0 18px 38px rgba(32, 36, 81, 0.14) !important;
}

body.shell-auth :where(.custom-select-option) {
    min-height: 36px !important;
    padding: 8px 10px !important;
    color: var(--cc-control-ink) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
}

body.shell-auth :where(.custom-select-option:hover, .custom-select-option:focus-visible) {
    background: color-mix(in srgb, var(--cc-control-primary), transparent 88%) !important;
    color: var(--cc-control-primary-strong) !important;
}

body.shell-auth :where(.custom-select-option.is-selected) {
    background: color-mix(in srgb, var(--cc-control-primary), transparent 84%) !important;
    color: var(--cc-control-primary-strong) !important;
    box-shadow: inset 3px 0 0 var(--cc-control-primary) !important;
}

@media (max-width: 980px) {
    body.shell-auth :where(.scan-filter-top-row, .overview-kpi-scan-form, .competitor-analysis-form, .feed-scan-launch-form) {
        grid-template-columns: 1fr !important;
    }

    body.shell-auth :where(.scan-filter-actions, .scan-pagination-actions, .competitor-analysis-actions) {
        justify-content: stretch !important;
    }

    body.shell-auth :where(.scan-filter-actions .btn, .scan-filter-actions a, .overview-kpi-scan-form .btn, .overview-kpi-scan-form a, .competitor-analysis-actions .btn, .feed-scan-launch-form .btn) {
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    body.shell-auth {
        --cc-control-height: 42px;
        --cc-control-height-sm: 36px;
    }

    body.shell-auth :where(.scan-filter-form .filter-mode-shell, .filter-advanced-body, .overview-kpi-scan-form, .competitor-analysis-form, .feed-scan-launch-form) {
        padding: 10px !important;
    }

    body.shell-auth :where(.scan-filter-search-row, .scan-filter-main-row, .scan-filter-controls-row, .scan-filter-flags, .products-filter-form .products-basic-fields, .products-filter-form .products-filter-controls-row) {
        grid-template-columns: 1fr !important;
    }
}

/* Final control guard: override older high-specificity pill rules. */
html:not([data-theme="dark"]) body.shell-auth :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea,
    .custom-select-trigger
),
html[data-theme="dark"] body.shell-auth :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea,
    .custom-select-trigger
) {
    min-height: var(--cc-control-height) !important;
    border-radius: var(--cc-control-radius) !important;
}

html:not([data-theme="dark"]) body.shell-auth :where(
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-action,
    .btn-accent-soft,
    .btn-warning-soft,
    .btn-danger-soft,
    .scan-action-btn,
    .filter-preset-btn,
    .action-pill,
    .audit-filter-bar button,
    .billing-inner-tabs button
),
html[data-theme="dark"] body.shell-auth :where(
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-action,
    .btn-accent-soft,
    .btn-warning-soft,
    .btn-danger-soft,
    .scan-action-btn,
    .filter-preset-btn,
    .action-pill,
    .audit-filter-bar button,
    .billing-inner-tabs button
) {
    border-radius: var(--cc-control-radius) !important;
}

html:not([data-theme="dark"]) body.shell-auth :where(.btn-sm),
html[data-theme="dark"] body.shell-auth :where(.btn-sm) {
    min-height: var(--cc-control-height-sm) !important;
}

html:not([data-theme="dark"]) body.shell-auth :where(.btn-xs, .scan-action-btn.btn-xs),
html[data-theme="dark"] body.shell-auth :where(.btn-xs, .scan-action-btn.btn-xs) {
    min-height: var(--cc-control-height-xs) !important;
}

html:not([data-theme="dark"]) body.shell-auth .scan-filter-actions .btn,
html:not([data-theme="dark"]) body.shell-auth .cc-page-header-actions .btn,
html:not([data-theme="dark"]) body.shell-auth .feed-slot-actions .btn,
html:not([data-theme="dark"]) body.shell-auth .settings-actions .btn,
html:not([data-theme="dark"]) body.shell-auth .admin-form-footer .btn,
html:not([data-theme="dark"]) body.shell-auth .role-form-inline .btn,
html:not([data-theme="dark"]) body.shell-auth .admin-quick-actions .btn,
html[data-theme="dark"] body.shell-auth .scan-filter-actions .btn,
html[data-theme="dark"] body.shell-auth .cc-page-header-actions .btn,
html[data-theme="dark"] body.shell-auth .feed-slot-actions .btn,
html[data-theme="dark"] body.shell-auth .settings-actions .btn,
html[data-theme="dark"] body.shell-auth .admin-form-footer .btn,
html[data-theme="dark"] body.shell-auth .role-form-inline .btn,
html[data-theme="dark"] body.shell-auth .admin-quick-actions .btn {
    border-radius: var(--cc-control-radius) !important;
}

body.shell-auth :where(.source-url-disclosure.compact-disclosure) {
    display: inline-grid !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 8px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.shell-auth :where(.source-url-disclosure.compact-disclosure[open]) {
    display: grid !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 8px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-panel-radius) !important;
    background: var(--cc-control-bg-soft) !important;
}

body.shell-auth :where(.source-url-disclosure.compact-disclosure > summary) {
    min-height: var(--cc-control-height-sm) !important;
    padding: 0 12px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-radius) !important;
    background: var(--cc-control-bg) !important;
    color: var(--cc-control-primary-strong) !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: var(--cc-control-shadow) !important;
}

body.shell-auth :where(.source-url-disclosure.compact-disclosure > summary:hover) {
    border-color: var(--cc-control-border-strong) !important;
    background: var(--cc-control-bg-hover) !important;
    color: var(--cc-control-primary) !important;
}

body.shell-auth :where(.source-url-disclosure.compact-disclosure[open] > .source-url) {
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--cc-control-border) !important;
    border-radius: var(--cc-control-radius) !important;
    background: var(--cc-control-bg) !important;
}

/* Launch-form dropdowns stay as overlays, but above the following cards. */
body.shell-auth :where(.feed-scan-launch-panel, .main-task-panel) {
    position: relative !important;
    overflow: visible !important;
}

body.shell-auth :where(.feed-scan-launch-panel:has(.custom-select.is-open), .main-task-panel:has(.custom-select.is-open)) {
    z-index: 80 !important;
}

body.shell-auth :where(.feed-scan-launch-form, .overview-scan-form) {
    overflow: visible !important;
}

body.shell-auth :where(.feed-scan-launch-form .custom-select.is-open, .overview-scan-form .custom-select.is-open) {
    z-index: 90 !important;
}

body.shell-auth :where(.feed-scan-launch-form .custom-select-menu, .overview-scan-form .custom-select-menu) {
    position: absolute !important;
    inset: auto 0 auto 0 !important;
    top: calc(100% + 8px) !important;
    width: 100% !important;
    margin: 0 !important;
    max-height: min(238px, 42vh) !important;
    z-index: 100 !important;
    box-shadow: 0 18px 38px rgba(45, 49, 115, 0.16) !important;
}

/* Scan history action buttons keep one size and collapse into an equal grid. */
body.shell-auth {
    --scan-history-action-width: 148px;
    --scan-history-action-height: 36px;
}

body.shell-auth :where(.scan-history-card) {
    grid-template-columns: minmax(240px, 0.76fr) minmax(500px, 1.18fr) var(--scan-history-action-width) !important;
}

body.shell-auth :where(.scan-history-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    justify-self: end !important;
    align-self: center !important;
    width: var(--scan-history-action-width) !important;
    min-width: var(--scan-history-action-width) !important;
    max-width: var(--scan-history-action-width) !important;
}

body.shell-auth :where(.scan-history-actions form, .scan-history-actions .inline-form, .scan-history-actions .scan-actions-more) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.shell-auth :where(.scan-history-actions .btn, .scan-history-actions .scan-action-btn, .scan-history-actions .scan-actions-more > summary) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: var(--scan-history-action-height) !important;
    height: var(--scan-history-action-height) !important;
    padding-inline: 12px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

@container (max-width: 980px) {
    body.shell-auth :where(.scan-history-card) {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    body.shell-auth :where(.scan-history-actions) {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
        justify-self: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@media (max-width: 980px) {
    body.shell-auth :where(.scan-history-card) {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    body.shell-auth :where(.scan-history-actions) {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
        justify-self: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@container (max-width: 560px) {
    body.shell-auth :where(.scan-history-actions) {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    body.shell-auth :where(.scan-history-actions) {
        grid-template-columns: 1fr !important;
    }
}

/* Keep item history tables flush inside their card after the global radius pass. */
body.shell-auth :where(.history-table-block) {
    overflow: hidden !important;
}

body.shell-auth :where(.history-table-block > .history-table-wrap) {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    scrollbar-gutter: auto !important;
}

html:not([data-theme="dark"]) body.shell-auth .history-table-block > .history-table-wrap,
html[data-theme="dark"] body.shell-auth .history-table-block > .history-table-wrap {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    scrollbar-gutter: auto !important;
}

body.shell-auth :where(.history-table-block > .history-table-wrap table) {
    width: 100% !important;
    min-width: 860px !important;
}

@media (max-width: 860px) {
    body.shell-auth :where(.history-table-block > .history-table-wrap) {
        overflow-x: hidden !important;
    }

    body.shell-auth :where(.history-table-block > .history-table-wrap table) {
        min-width: 0 !important;
    }
}

/* Row disclosure focus must not thicken the card border after mouse clicks. */
body.shell-auth :where(.scan-item-row, .products-item-row) {
    border-width: 1px !important;
}

body.shell-auth :where(.scan-item-row[open], .products-item-row[open]) {
    border-width: 1px !important;
}

body.shell-auth :where(.scan-item-summary, .products-item-summary):focus,
body.shell-auth :where(.scan-item-summary, .products-item-summary):active {
    outline: none !important;
    outline-offset: 0 !important;
}

body.shell-auth :where(.scan-item-summary, .products-item-summary):focus:not(:focus-visible) {
    box-shadow: none !important;
}

body.shell-auth :where(.scan-item-summary, .products-item-summary):focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc-control-primary), transparent 82%) !important;
}

.partners-page {
    gap: 16px;
}

.partners-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 18px;
    align-items: stretch;
}

.partners-hero-main {
    display: grid;
    gap: 10px;
    align-content: center;
}

.partners-eyebrow,
.partner-link-card-head span,
.partner-link-fields em,
.partner-report-linkbar em,
.partner-mini-stats em,
.partner-report-metrics em {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partners-hero-main h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.35rem);
    line-height: 1.08;
    max-width: 760px;
}

.partners-hero-main p {
    margin: 0;
    color: var(--text-muted);
    max-width: 820px;
    line-height: 1.55;
}

.partner-link-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(104, 112, 243, 0.22);
    background: linear-gradient(135deg, rgba(104, 112, 243, 0.13), rgba(255, 255, 255, 0.68));
}

.partner-link-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.partner-link-card-head strong {
    font-size: 1rem;
}

.partner-link-fields,
.partner-report-linkbar {
    display: grid;
    gap: 10px;
}

.partner-link-fields span,
.partner-link-fields label,
.partner-report-linkbar span,
.partner-report-linkbar label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.partner-link-fields input,
.partner-report-linkbar input {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(65, 55, 33, 0.18);
    padding: 10px 12px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.76);
    font: inherit;
    font-size: 0.86rem;
}

.partners-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.partner-report-list {
    display: grid;
    gap: 12px;
}

.partner-report-card {
    border: 1px solid rgba(65, 55, 33, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    overflow: hidden;
}

.partner-report-card[open] {
    border-color: rgba(104, 112, 243, 0.3);
    box-shadow: 0 12px 28px rgba(35, 35, 70, 0.08);
}

.partner-report-card > summary {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(320px, 0.9fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.partner-report-card > summary::-webkit-details-marker {
    display: none;
}

.partner-report-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(104, 112, 243, 0.14);
    color: var(--accent-dark);
    font-weight: 900;
}

.partner-report-title,
.partner-report-title small,
.partner-report-metrics span,
.partner-mini-stats span {
    min-width: 0;
}

.partner-report-title {
    display: grid;
    gap: 3px;
}

.partner-report-title strong {
    font-size: 1rem;
}

.partner-report-title small {
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.partner-report-metrics,
.partner-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.partner-report-metrics span,
.partner-mini-stats span {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(247, 245, 238, 0.86);
}

.partner-report-metrics b,
.partner-mini-stats strong {
    overflow-wrap: anywhere;
}

.partner-report-body {
    display: grid;
    gap: 16px;
    padding: 0 14px 16px;
}

.partner-report-linkbar {
    grid-template-columns: minmax(110px, auto) minmax(140px, auto) minmax(260px, 1fr) auto;
    align-items: end;
    padding: 14px;
    border-radius: 12px;
    background: rgba(247, 245, 238, 0.72);
}

.partner-mini-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.partner-client-table th,
.partner-client-table td {
    vertical-align: top;
}

.partner-client-table td {
    min-width: 120px;
}

.partner-client-table td:first-child {
    min-width: 180px;
}

.partner-empty-state {
    margin-top: 0;
}

html[data-theme="dark"] .partner-link-card,
html[data-theme="dark"] .partner-report-card,
html[data-theme="dark"] .partner-report-linkbar,
html[data-theme="dark"] .partner-report-metrics span,
html[data-theme="dark"] .partner-mini-stats span {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(20, 24, 38, 0.72);
}

html[data-theme="dark"] .partner-link-fields input,
html[data-theme="dark"] .partner-report-linkbar input {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(9, 12, 22, 0.62);
}

@media (max-width: 1180px) {
    .partners-hero,
    .partner-report-card > summary,
    .partner-report-linkbar {
        grid-template-columns: 1fr;
    }

    .partners-kpi-grid,
    .partner-mini-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .partner-link-card {
        padding: 14px;
    }

    .partners-kpi-grid,
    .partner-report-metrics,
    .partner-mini-stats {
        grid-template-columns: 1fr;
    }

    .partner-report-card > summary {
        gap: 10px;
    }

    .partner-report-avatar {
        width: 40px;
        height: 40px;
    }

    .partner-client-table-wrap {
        overflow-x: auto;
    }

    .partner-client-table {
        min-width: 920px;
    }
}

/* v1.445 - partner reports aligned with the authenticated app design system */
.partners-page {
    gap: clamp(12px, 1.2vw, 20px);
}

.partners-page .panel {
    min-width: 0;
}

.partners-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(14px, 1.4vw, 22px);
    align-items: center;
    min-height: auto;
}

.partners-hero--with-link {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}

.partners-hero-main {
    max-width: 920px;
    gap: 8px;
}

.partners-hero-main h2 {
    font-size: clamp(1.42rem, 1.06rem + 1.2vw, 2.12rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.partners-hero-main p {
    max-width: 780px;
    font-size: 0.96rem;
}

.partners-eyebrow,
.partner-link-card-head span,
.partner-link-fields em,
.partner-report-linkbar em,
.partner-mini-stats em,
.partner-report-metrics em {
    font-size: var(--ui-text-sm, 0.82rem);
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.partners-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: clamp(10px, 1vw, 14px);
}

.partners-kpi-grid .insight-card {
    min-height: 92px;
    padding: 14px 16px;
}

.partners-kpi-grid .insight-value {
    font-size: clamp(1.25rem, 1rem + 0.72vw, 1.72rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.partners-kpi-grid .insight-meta {
    margin-top: 2px;
}

.partner-link-card,
.partner-report-card,
.partner-report-linkbar,
.partner-report-metrics span,
.partner-mini-stats span {
    min-width: 0;
}

.partner-link-card {
    align-self: stretch;
    border-radius: var(--ui-radius-lg, 26px);
    padding: clamp(14px, 1.15vw, 18px);
}

.partner-link-card-head,
.partner-report-card > summary {
    min-width: 0;
}

.partner-link-card-head strong,
.partner-report-title strong,
.partner-report-metrics b,
.partner-mini-stats strong,
.partner-report-linkbar strong,
.partner-report-linkbar code,
.partner-link-fields code {
    overflow-wrap: anywhere;
}

.partner-link-fields,
.partner-report-linkbar {
    gap: 8px;
}

.partner-link-fields span,
.partner-link-fields label,
.partner-report-linkbar span,
.partner-report-linkbar label {
    gap: 6px;
}

.partner-link-fields code,
.partner-report-linkbar code {
    width: fit-content;
    max-width: 100%;
    border-radius: var(--ui-radius-xs, 12px);
    padding: 4px 8px;
    font-family: var(--ui-font-ui, "Manrope", "Segoe UI", sans-serif);
    font-size: 0.82rem;
    font-weight: 850;
}

.partner-link-fields input,
.partner-report-linkbar input {
    min-height: var(--ui-control-height-sm, 40px) !important;
    font-size: var(--ui-text-md, 0.94rem) !important;
    font-weight: 750 !important;
}

.partner-report-list {
    gap: 10px;
}

.partner-report-card {
    border-radius: var(--ui-radius-lg, 26px);
}

.partner-report-card > summary {
    grid-template-columns: auto minmax(180px, 1fr) minmax(360px, 0.82fr) auto;
    gap: 12px;
    padding: 12px;
}

.partner-report-card > summary:focus {
    outline: none;
}

.partner-report-card > summary:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent), transparent 76%);
}

.partner-report-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--ui-radius-sm, 16px);
    font-size: 0.86rem;
}

.partner-report-title {
    gap: 2px;
}

.partner-report-title small {
    font-size: 0.86rem;
    line-height: 1.35;
}

.partner-report-metrics,
.partner-mini-stats {
    gap: 8px;
}

.partner-report-metrics span,
.partner-mini-stats span {
    gap: 4px;
    min-height: 58px;
    border-radius: var(--ui-radius-sm, 16px);
    padding: 10px 12px;
}

.partner-report-body {
    gap: 14px;
    padding: 0 12px 14px;
}

.partner-report-linkbar {
    grid-template-columns: minmax(96px, auto) minmax(150px, auto) minmax(260px, 1fr) auto minmax(230px, auto);
    gap: 10px;
    align-items: end;
    border-radius: var(--ui-radius-lg, 26px);
    padding: 12px;
}

.partner-report-linkbar .btn {
    min-width: 116px;
    white-space: nowrap !important;
}

.partner-workspace-access-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    min-width: 0;
}

.partner-workspace-access-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--ui-muted);
    font-size: var(--ui-text-sm, 0.82rem);
    font-weight: 750;
    line-height: 1.25;
}

.partner-workspace-access-label .info-dot {
    flex: 0 0 auto;
}

.partner-workspace-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 86px;
    min-width: 86px;
    height: 38px;
    padding: 0 12px 0 38px;
    border: 1px solid rgba(91, 96, 174, 0.26);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--ui-muted);
    cursor: pointer;
    font: 850 var(--ui-text-sm, 0.82rem) / 1 var(--ui-font-ui, "Manrope", "Segoe UI", sans-serif);
    letter-spacing: 0;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.partner-workspace-toggle-knob {
    position: absolute;
    left: 5px;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.18);
    transform: translateY(-50%);
    transition: transform 0.18s ease;
}

.partner-workspace-toggle.is-on {
    justify-content: flex-start;
    padding: 0 38px 0 12px;
    border-color: rgba(22, 163, 74, 0.36);
    background: rgba(22, 163, 74, 0.18);
    color: #166534;
}

.partner-workspace-toggle.is-on .partner-workspace-toggle-knob {
    transform: translate(48px, -50%);
}

.partner-workspace-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%);
}

.partner-mini-stats {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.partner-client-table .tiny-note {
    margin-top: 4px;
}

.partner-empty-state {
    border-style: dashed;
    padding: clamp(16px, 1.4vw, 22px);
}

.partner-report-card[open] .admin-user-toggle-icon::before {
    transform: rotate(225deg) translate(-1px, -1px);
}

html:not([data-theme="dark"]) .partners-hero,
html:not([data-theme="dark"]) .partners-overview,
html:not([data-theme="dark"]) .partners-report-shell {
    border-color: var(--ui-line) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-shadow-sm) !important;
}

html:not([data-theme="dark"]) .partners-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 247, 255, 0.9)) !important;
}

html:not([data-theme="dark"]) .partners-eyebrow,
html:not([data-theme="dark"]) .partner-link-card-head span,
html:not([data-theme="dark"]) .partner-link-fields em,
html:not([data-theme="dark"]) .partner-report-linkbar em,
html:not([data-theme="dark"]) .partner-mini-stats em,
html:not([data-theme="dark"]) .partner-report-metrics em {
    color: var(--ui-muted);
}

html:not([data-theme="dark"]) .partners-kpi-grid .insight-card,
html:not([data-theme="dark"]) .partner-report-card,
html:not([data-theme="dark"]) .partner-link-card,
html:not([data-theme="dark"]) .partner-report-linkbar,
html:not([data-theme="dark"]) .partner-report-metrics span,
html:not([data-theme="dark"]) .partner-mini-stats span {
    border: 1px solid rgba(91, 96, 174, 0.2);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

html:not([data-theme="dark"]) .partners-kpi-grid .insight-card:hover,
html:not([data-theme="dark"]) .partner-report-card:hover {
    border-color: var(--ui-line-strong);
}

html:not([data-theme="dark"]) .partner-report-card[open] {
    border-color: rgba(73, 80, 204, 0.34);
    box-shadow: 0 14px 34px rgba(66, 72, 143, 0.08);
}

html:not([data-theme="dark"]) .partner-link-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 241, 255, 0.78));
}

html:not([data-theme="dark"]) .partner-link-fields code,
html:not([data-theme="dark"]) .partner-report-linkbar code {
    background: rgba(242, 241, 255, 0.9);
    color: var(--ui-ink-soft);
}

html:not([data-theme="dark"]) .partner-report-linkbar,
html:not([data-theme="dark"]) .partner-report-metrics span,
html:not([data-theme="dark"]) .partner-mini-stats span {
    background: var(--ui-surface-soft);
}

html:not([data-theme="dark"]) .partner-report-avatar,
html:not([data-theme="dark"]) .admin-user-toggle-icon {
    border-color: rgba(91, 96, 174, 0.22);
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
}

html:not([data-theme="dark"]) .partner-empty-state {
    border-color: rgba(91, 96, 174, 0.26);
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .partners-hero,
html[data-theme="dark"] .partners-overview,
html[data-theme="dark"] .partners-report-shell {
    border-color: rgba(126, 156, 178, 0.24);
}

html[data-theme="dark"] .partner-report-card[open] {
    border-color: rgba(141, 150, 255, 0.38);
}

html[data-theme="dark"] .partner-link-fields code,
html[data-theme="dark"] .partner-report-linkbar code {
    background: rgba(141, 150, 255, 0.12);
    color: var(--text-main);
}

html[data-theme="dark"] .partner-workspace-toggle {
    border-color: rgba(126, 156, 178, 0.28);
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

html[data-theme="dark"] .partner-workspace-toggle.is-on {
    border-color: rgba(74, 222, 128, 0.34);
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

@media (max-width: 1180px) {
    .partners-hero--with-link,
    .partner-report-linkbar {
        grid-template-columns: 1fr;
    }

    .partner-workspace-access-form {
        grid-template-columns: 1fr auto;
    }

    .partner-report-card > summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .partner-report-metrics {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .partners-hero-main h2 {
        font-size: clamp(1.28rem, 5.4vw, 1.7rem);
    }

    .partner-link-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .partner-report-card > summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 10px;
    }

    .partner-report-avatar {
        width: 38px;
        height: 38px;
    }

    .partner-report-linkbar .btn {
        width: 100%;
    }

    .partner-workspace-access-form {
        grid-template-columns: 1fr;
    }

    .partner-workspace-toggle {
        width: 100%;
        justify-content: center;
        padding-left: 38px;
        padding-right: 38px;
    }

    .partner-workspace-toggle.is-on {
        justify-content: center;
        padding-left: 38px;
        padding-right: 38px;
    }

    .partner-workspace-toggle.is-on .partner-workspace-toggle-knob {
        left: auto;
        right: 5px;
        transform: translateY(-50%);
    }

    .partner-client-table {
        min-width: 860px;
    }
}

@media (max-width: 640px) {
    body.shell-auth .topbar-inner,
    html:not([data-theme="dark"]) body.shell-auth .topbar-inner {
        flex-wrap: nowrap !important;
    }

    body.shell-auth .top-actions,
    html:not([data-theme="dark"]) body.shell-auth .top-actions {
        width: auto !important;
        flex: 0 0 auto;
        padding-bottom: 0 !important;
    }

    body.shell-auth .top-actions > .badge,
    html:not([data-theme="dark"]) body.shell-auth .top-actions > .badge {
        display: none !important;
    }

    body.shell-auth .brand,
    html:not([data-theme="dark"]) body.shell-auth .brand {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }
}

/* v1.446 - corporate scan/product row actions and outlines */
body.shell-auth :where(.scan-item-body-head, .products-item-body-head) {
    align-items: center !important;
    gap: 12px !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) {
    width: fit-content !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding: 5px !important;
    border: 1px solid rgba(124, 132, 205, 0.22) !important;
    border-radius: var(--cc-control-panel-radius, 16px) !important;
    background: rgba(247, 248, 255, 0.82) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill {
    min-height: var(--cc-control-height-sm, 36px) !important;
    padding: 0 12px !important;
    border: 1px solid rgba(124, 132, 205, 0.24) !important;
    border-radius: var(--cc-control-radius, 12px) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--cc-control-primary-strong, #535ce2) !important;
    box-shadow: none !important;
    font-size: 0.84rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill-info-primary {
    border-color: rgba(94, 101, 238, 0.34) !important;
    background: rgba(94, 101, 238, 0.1) !important;
    color: var(--cc-control-primary-strong, #535ce2) !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(94, 101, 238, 0.44) !important;
    background: #ffffff !important;
    color: var(--cc-control-primary-strong, #535ce2) !important;
    box-shadow: 0 10px 20px rgba(67, 72, 150, 0.1) !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill:focus-visible {
    outline: none !important;
    border-color: rgba(94, 101, 238, 0.52) !important;
    box-shadow: 0 0 0 3px rgba(94, 101, 238, 0.16) !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill:active {
    transform: translateY(0) !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill-disabled {
    opacity: 0.54 !important;
    transform: none !important;
    box-shadow: none !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill-locked {
    pointer-events: none !important;
    opacity: 1 !important;
    border-color: rgba(94, 101, 238, 0.28) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(240, 244, 255, 0.38)) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
    backdrop-filter: blur(16px) saturate(1.25) !important;
    color: var(--cc-control-primary-strong, #535ce2) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 24px rgba(83, 92, 226, 0.1) !important;
}

body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill .inline-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}

html:not([data-theme="dark"]) body.shell-auth :where(.scan-item-row, .products-item-row) {
    border-color: rgba(124, 132, 205, 0.24) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 30px rgba(67, 72, 150, 0.06) !important;
}

html:not([data-theme="dark"]) body.shell-auth :where(.scan-item-row[open], .products-item-row[open]) {
    border-color: rgba(94, 101, 238, 0.34) !important;
}

html:not([data-theme="dark"]) body.shell-auth :where(.scan-item-kpi-card, .products-item-kpi-card) {
    border-color: rgba(124, 132, 205, 0.2) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth :where(.scan-item-body-links, .products-item-body-links) {
    border-color: rgba(126, 156, 178, 0.28) !important;
    background: rgba(16, 23, 32, 0.76) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill {
    border-color: rgba(126, 156, 178, 0.3) !important;
    background: rgba(18, 25, 34, 0.9) !important;
    color: var(--cc-control-primary-strong, #a9dff0) !important;
}

html[data-theme="dark"] body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill-info-primary {
    border-color: rgba(141, 150, 255, 0.4) !important;
    background: rgba(141, 150, 255, 0.16) !important;
    color: #dbe8ff !important;
}

html[data-theme="dark"] body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill-locked {
    border-color: rgba(141, 150, 255, 0.34) !important;
    background: rgba(83, 92, 226, 0.18) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
    backdrop-filter: blur(16px) saturate(1.2) !important;
    color: #bfc2ff !important;
    box-shadow: none !important;
}

@media (max-width: 1040px) {
    body.shell-auth :where(.scan-item-body-links, .products-item-body-links) {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 520px) {
    body.shell-auth :where(.scan-item-body-links, .products-item-body-links) {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body.shell-auth :where(.scan-item-body-links, .products-item-body-links) .action-pill {
        width: 100% !important;
    }
}

/* v1.445.1 - keep the public landing header on one clean row */
body.shell-guest-nav .topbar {
    min-height: 76px !important;
    margin-top: -24px !important;
    display: flex !important;
    align-items: center !important;
}

body.shell-guest-nav .topbar-inner {
    width: min(var(--container), calc(100% - 64px)) !important;
    max-width: var(--container) !important;
    min-height: 76px !important;
    margin-inline: auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: auto auto minmax(420px, 1fr) auto !important;
    align-items: center !important;
    gap: clamp(18px, 2.4vw, 34px) !important;
}

body.shell-guest-nav .topbar-inner > .badge {
    justify-self: start !important;
    white-space: nowrap !important;
}

body.shell-guest-nav .brand {
    justify-self: start !important;
    min-height: 42px !important;
}

body.shell-guest-nav .brand-logo-main {
    width: 176px !important;
    max-width: 176px !important;
    height: auto !important;
    max-height: 34px !important;
}

body.shell-guest-nav .landing-primary-nav {
    display: flex !important;
    justify-self: end !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    gap: clamp(22px, 2.8vw, 44px) !important;
}

body.shell-guest-nav .top-nav-guest {
    display: flex !important;
    justify-self: end !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    min-width: max-content !important;
}

body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    min-height: 40px !important;
}

body.shell-guest-nav .topbar-cta {
    min-height: 42px !important;
}

@media (max-width: 1180px) {
    body.shell-guest-nav .topbar-inner {
        width: min(var(--container), calc(100% - 40px)) !important;
        grid-template-columns: auto auto minmax(0, 1fr) auto !important;
        gap: 16px !important;
    }

    body.shell-guest-nav .brand-logo-main {
        width: 158px !important;
        max-width: 158px !important;
    }

    body.shell-guest-nav .landing-primary-nav {
        gap: 20px !important;
    }
}

@media (max-width: 980px) {
    body.shell-guest-nav .topbar-inner {
        grid-template-columns: auto auto minmax(0, 1fr) !important;
    }

    body.shell-guest-nav .landing-primary-nav {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.shell-guest-nav .topbar {
        min-height: 64px !important;
    }

    body.shell-guest-nav .topbar-inner {
        width: calc(100% - 28px) !important;
        min-height: 64px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
    }

    body.shell-guest-nav .topbar-inner > .badge,
    body.shell-guest-nav .landing-primary-nav,
    body.shell-guest-nav .top-nav-guest > a:not(.btn) {
        display: none !important;
    }

    body.shell-guest-nav .brand-logo-main {
        width: 152px !important;
        max-width: 152px !important;
    }

    body.shell-guest-nav .top-nav-guest {
        display: flex !important;
    }

body.shell-guest-nav .topbar-cta {
    min-width: 132px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
}
}

/* v1.448: per-user and per-tariff Prom.ua speed management */
.speed-inline-form,
.speed-user-form {
    display: grid;
    gap: 12px;
    border: 1px solid color-mix(in srgb, var(--border), var(--accent) 8%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 12%);
    padding: 14px;
}

.speed-form-head,
.speed-form-footer,
.speed-row-title,
.speed-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.speed-form-head span,
.speed-row-title span,
.speed-column-head {
    min-width: 0;
}

.speed-form-head strong,
.speed-row-title strong,
.speed-column-head strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

.speed-form-head small,
.speed-row-title small,
.speed-column-head span,
.speed-form-footer small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.speed-form-head b,
.speed-row-title b {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 35%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent), transparent 90%);
    color: var(--accent);
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.speed-delay-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 10px;
}

.speed-inline-form label,
.speed-user-form label {
    min-width: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.speed-inline-form :where(input[type="number"], input[type="text"]),
.speed-user-form :where(input[type="number"], input[type="text"]) {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
    font-size: 13px;
}

.speed-form-footer span {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-speed-section {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

.admin-user-speed-pill strong {
    color: var(--accent) !important;
}

.speed-management-panel {
    border-color: color-mix(in srgb, var(--accent), var(--border) 58%);
}

.speed-management-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.speed-management-summary span {
    display: grid;
    gap: 4px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px 14px;
}

.speed-management-summary em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.speed-management-summary strong {
    color: var(--text);
    font-size: 20px;
    font-weight: 950;
}

.competitor-quota-panel {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 42%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--accent) 3%);
    padding: 12px;
}

.competitor-quota-head {
    align-items: flex-start;
}

.competitor-quota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.competitor-quota-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
}

.competitor-quota-title,
.competitor-quota-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.competitor-quota-title span {
    min-width: 0;
}

.competitor-quota-title strong,
.competitor-quota-title small {
    display: block;
}

.competitor-quota-title strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-quota-title small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.competitor-quota-title b {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 35%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 91%);
    color: var(--accent);
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.competitor-quota-fields {
    display: grid;
    grid-template-columns: minmax(86px, 0.8fr) minmax(86px, 1fr);
    gap: 8px;
}

.competitor-quota-fields label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.competitor-quota-fields input[type="number"] {
    width: 100%;
    min-height: 38px;
    border-radius: 8px;
    font-size: 13px;
}

.competitor-quota-footer {
    align-items: center;
}

.competitor-quota-unlimited {
    min-height: 34px;
    padding: 7px 9px;
}

.personal-quota-section {
    display: grid;
    gap: 14px;
    margin-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    padding-top: 16px;
}

.personal-quota-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.personal-quota-section-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.personal-quota-section-head strong,
.personal-quota-list-head strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
}

.personal-quota-section-head span,
.personal-quota-list-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.personal-quota-section-head p {
    max-width: 430px;
    margin: 0;
    border-left: 3px solid color-mix(in srgb, var(--accent), transparent 28%);
    padding: 2px 0 2px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.personal-quota-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
    gap: 14px;
    align-items: start;
}

.personal-quota-form {
    display: grid;
    gap: 12px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 56%);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.personal-quota-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.personal-quota-form label > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.personal-quota-form :where(input[type="text"], input[type="number"]) {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
    font-size: 14px;
}

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

.personal-quota-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.personal-quota-form-footer .btn {
    min-height: 40px;
}

.personal-quota-list-panel {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.personal-quota-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
}

.personal-quota-list-head > div {
    display: grid;
    gap: 3px;
}

.personal-quota-list-head b {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 28px;
    border: 1px solid color-mix(in srgb, var(--accent), var(--border) 45%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent), transparent 92%);
    color: var(--accent);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 950;
}

.personal-quota-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.personal-quota-row {
    display: grid;
    grid-template-columns: 42px minmax(150px, 1.2fr) minmax(120px, 0.8fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 8px;
    background: var(--surface);
    padding: 11px 12px;
}

.personal-quota-row .admin-user-avatar {
    inline-size: 42px !important;
    block-size: 42px !important;
    font-size: 11px !important;
}

.personal-quota-identity,
.personal-quota-rule {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.personal-quota-identity strong,
.personal-quota-rule strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.personal-quota-identity span,
.personal-quota-rule span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.personal-quota-rule strong {
    color: var(--accent);
}

.personal-quota-empty {
    display: grid;
    gap: 4px;
    min-height: 116px;
    place-content: center;
    border: 1px dashed color-mix(in srgb, var(--border), transparent 4%);
    border-radius: 8px;
    color: var(--muted);
    padding: 20px;
    text-align: center;
}

.personal-quota-empty strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.personal-quota-empty span {
    font-size: 12px;
    font-weight: 700;
}

.quota-wait-note {
    display: block;
    margin-top: 4px;
    color: var(--accent);
    font-weight: 900;
    line-height: 1.25;
}

.alert.warning.quota-wait-alert {
    --quota-wait-red: #d8524e;
    display: block;
    border: 1px solid rgba(216, 82, 78, 0.34) !important;
    border-radius: var(--cc-control-panel-radius, 16px) !important;
    background: rgba(216, 82, 78, 0.12) !important;
    color: var(--quota-wait-red) !important;
    font-weight: 900;
    box-shadow: none !important;
}

.alert.warning.quota-wait-alert strong {
    display: block;
    color: var(--quota-wait-red) !important;
}

.alert.warning.quota-wait-alert .quota-wait-caption {
    display: block;
    margin-top: 6px;
    color: var(--quota-wait-red) !important;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

html[data-theme="dark"] .alert.warning.quota-wait-alert {
    --quota-wait-red: #ff8f8f;
    border-color: rgba(255, 143, 143, 0.34) !important;
    background: rgba(255, 143, 143, 0.14) !important;
}

.competitor-analysis-form.is-quota-locked {
    opacity: 0.72;
}

.competitor-analysis-form.is-quota-locked :where(input, select, button):disabled {
    cursor: not-allowed;
}

.speed-management-workspace {
    display: grid;
    gap: 16px;
}

.speed-management-search {
    max-width: 520px;
}

.speed-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.speed-management-column {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.speed-row-list {
    display: grid;
    gap: 10px;
}

.speed-row {
    display: grid;
    gap: 12px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.speed-row[hidden],
[data-speed-management-row][hidden] {
    display: none !important;
}

.speed-row-title {
    align-items: flex-start;
}

.speed-row-title .admin-user-avatar {
    flex: 0 0 auto;
    inline-size: 42px !important;
    block-size: 42px !important;
    font-size: 12px !important;
}

.speed-row .speed-inline-form {
    border-color: color-mix(in srgb, var(--border), transparent 10%);
    background: color-mix(in srgb, var(--bg), var(--surface) 48%);
}

.speed-plan-form {
    margin-top: 4px;
}

@media (max-width: 1320px) {
    .admin-speed-section {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

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

    .speed-management-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .personal-quota-layout {
        grid-template-columns: 1fr;
    }

    .competitor-quota-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .speed-form-head,
    .speed-form-footer,
    .speed-row-title,
    .speed-column-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .speed-form-footer span,
    .speed-form-footer .btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .speed-management-summary {
        grid-template-columns: 1fr;
    }

    .competitor-quota-grid,
    .competitor-quota-fields,
    .personal-quota-form-grid {
        grid-template-columns: 1fr;
    }

    .competitor-quota-title,
    .competitor-quota-footer,
    .personal-quota-section-head,
    .personal-quota-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .competitor-quota-title b,
    .competitor-quota-footer .btn,
    .personal-quota-form-footer .btn {
        width: 100%;
        text-align: center;
    }

    .personal-quota-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .personal-quota-rule,
    .personal-quota-row form {
        grid-column: 2;
    }

    .personal-quota-row form .btn {
        width: 100%;
    }
}

/* v1.452 - Telegram community links */
.telegram-links {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.telegram-links--dashboard {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(16px, 2vw, 26px);
}

.telegram-links-head {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.telegram-links-kicker {
    width: fit-content;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid rgba(42, 171, 238, 0.24);
    border-radius: 999px;
    background: rgba(42, 171, 238, 0.1);
    color: #1687c5;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
}

.telegram-links-head h3 {
    margin: 0;
    color: var(--text-main);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.18rem, 0.96rem + 0.72vw, 1.72rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
}

.telegram-links-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.45;
}

.telegram-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.telegram-links--landing .telegram-links-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.telegram-links--landing {
    gap: 10px;
}

.telegram-links--landing .telegram-links-head {
    display: flex;
    align-items: center;
}

.telegram-links--landing .telegram-link-card {
    min-height: 76px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(36, 111, 173, 0.055);
}

.telegram-links--landing .telegram-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.telegram-links--landing .telegram-link-icon svg {
    width: 20px;
    height: 20px;
}

.telegram-links--landing .telegram-link-copy {
    gap: 3px;
}

.telegram-links--landing .telegram-link-copy strong {
    font-size: 0.9rem;
}

.telegram-links--landing .telegram-link-copy span,
.telegram-links--landing .telegram-link-copy em {
    font-size: 0.76rem;
}

.telegram-link-card {
    position: relative;
    isolation: isolate;
    min-height: 112px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(42, 171, 238, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 255, 0.86)),
        radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.16), transparent 38%);
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(36, 111, 173, 0.07);
    overflow: hidden;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.telegram-link-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: rgba(42, 171, 238, 0.12);
    z-index: -1;
}

.telegram-link-card--chat {
    border-color: rgba(53, 211, 159, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 255, 249, 0.84)),
        radial-gradient(circle at 100% 0%, rgba(53, 211, 159, 0.16), transparent 38%);
}

.telegram-link-card--chat::after {
    background: rgba(53, 211, 159, 0.12);
}

.telegram-link-card--support {
    border-color: rgba(255, 116, 112, 0.22);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 248, 0.84)),
        radial-gradient(circle at 100% 0%, rgba(255, 116, 112, 0.13), transparent 38%);
}

.telegram-link-card--support::after {
    background: rgba(255, 116, 112, 0.11);
}

.telegram-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(42, 171, 238, 0.4);
    box-shadow: 0 18px 34px rgba(36, 111, 173, 0.12);
}

.telegram-link-card:focus-visible {
    outline: none;
    border-color: rgba(42, 171, 238, 0.5);
    box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.14), 0 18px 34px rgba(36, 111, 173, 0.12);
}

.telegram-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: rgba(42, 171, 238, 0.12);
    color: #229ed9;
    box-shadow: inset 0 0 0 1px rgba(42, 171, 238, 0.16);
}

.telegram-link-card--chat .telegram-link-icon {
    background: rgba(53, 211, 159, 0.12);
    color: #16a878;
    box-shadow: inset 0 0 0 1px rgba(53, 211, 159, 0.18);
}

.telegram-link-card--support .telegram-link-icon {
    background: rgba(255, 116, 112, 0.12);
    color: #e1605c;
    box-shadow: inset 0 0 0 1px rgba(255, 116, 112, 0.16);
}

.telegram-link-icon svg {
    width: 23px;
    height: 23px;
}

.telegram-link-icon svg path:first-child {
    fill: currentColor;
}

.telegram-link-icon svg path:last-child {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.telegram-link-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.telegram-link-copy strong {
    color: var(--text-main);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.2;
}

.telegram-link-copy span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.35;
}

.telegram-link-copy em {
    width: fit-content;
    max-width: 100%;
    color: #1687c5;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.telegram-link-card--chat .telegram-link-copy em {
    color: #12936b;
}

.telegram-link-card--support .telegram-link-copy em {
    color: #d4524e;
}

.cc-support-card .telegram-links {
    margin-top: 18px;
}

.cc-support-card .telegram-links-head h3 {
    font-size: clamp(1.02rem, 0.92rem + 0.36vw, 1.22rem);
}

.cc-support-card .telegram-links-head p {
    font-size: 0.82rem;
}

.cc-support-card .telegram-link-card {
    border-radius: 18px;
}

.cc-support-card .cc-support-cta {
    margin-top: 16px !important;
}

.overview-telegram-panel {
    padding: clamp(18px, 1.8vw, 30px);
}

.overview-training-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 1.8vw, 30px);
}

html:not([data-theme="dark"]) .overview-training-panel {
    border-color: rgba(104, 112, 243, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 248, 0.9)),
        linear-gradient(90deg, rgba(104, 112, 243, 0.08), rgba(31, 183, 189, 0.08));
    box-shadow: var(--v142-shadow-soft, 0 18px 42px rgba(31, 41, 71, 0.08));
}

.overview-training-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr);
    gap: clamp(18px, 2.6vw, 36px);
    align-items: center;
    min-width: 0;
}

.overview-training-copy {
    display: grid;
    gap: clamp(14px, 1.4vw, 20px);
    min-width: 0;
}

.overview-training-copy-viewport,
.overview-training-copy-panel {
    min-width: 0;
}

.overview-training-copy-panel {
    display: grid;
    gap: clamp(14px, 1.4vw, 20px);
}

.overview-training-copy-panel[hidden] {
    display: none;
}

.overview-training-kicker {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.1);
    color: #535ce2;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.overview-training-heading {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.overview-training-heading h2 {
    margin: 0;
    color: var(--text-main);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.26rem, 1.02rem + 0.82vw, 1.94rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: 0;
}

.overview-training-heading p {
    max-width: 56ch;
    font-weight: 650;
}

.overview-training-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.overview-training-steps li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.overview-training-step-index {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31, 183, 189, 0.25);
    border-radius: 14px;
    background: rgba(235, 249, 248, 0.94);
    color: #0d786f;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.overview-training-step-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding-top: 2px;
}

.overview-training-step-copy strong {
    color: #203052;
    font-size: 0.94rem;
    line-height: 1.25;
}

.overview-training-step-copy em {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 650;
    line-height: 1.42;
}

.overview-training-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.overview-training-actions .btn {
    min-height: 42px;
    border-radius: 12px;
}

.overview-training-note {
    color: #637173;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.42;
}

.overview-training-player-card {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(24, 67, 63, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.88)),
        linear-gradient(180deg, rgba(104, 112, 243, 0.08), rgba(31, 183, 189, 0.04));
    box-shadow: 0 16px 34px rgba(20, 46, 66, 0.09);
}

.overview-training-player-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 2px 4px 0;
}

.overview-training-player-title {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.overview-training-player-head span,
.overview-training-player-head strong {
    min-width: 0;
    line-height: 1.2;
}

.overview-training-player-head span {
    color: #637173;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.overview-training-player-head strong {
    color: #203052;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: right;
}

.overview-training-player-title strong {
    text-align: left;
}

.overview-training-carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.overview-training-carousel-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #535ce2;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.overview-training-carousel-btn:hover,
.overview-training-carousel-btn:focus-visible {
    border-color: rgba(31, 183, 189, 0.36);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(31, 41, 71, 0.1);
    transform: translateY(-1px);
}

.overview-training-carousel-btn:focus-visible {
    outline: 3px solid rgba(104, 112, 243, 0.22);
    outline-offset: 2px;
}

.overview-training-carousel-btn svg {
    width: 20px;
    height: 20px;
}

.overview-training-carousel-viewport {
    min-width: 0;
}

.overview-training-slide {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.overview-training-slide[hidden] {
    display: none;
}

.overview-training-lesson-head {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 0 4px;
}

.overview-training-lesson-head span {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(31, 183, 189, 0.12);
    color: #0d786f;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.overview-training-lesson-head strong {
    color: #203052;
    font-size: clamp(0.96rem, 0.9rem + 0.22vw, 1.14rem);
    font-weight: 900;
    line-height: 1.22;
}

.overview-training-slide p {
    margin: 0;
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.42;
}

.overview-training-video-shell {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(11, 22, 36, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(12, 18, 34, 0.98), rgba(23, 34, 58, 0.98));
}

.overview-training-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #08101f;
    object-fit: contain;
}

.overview-training-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 2px 0 0;
}

.overview-training-carousel-dot {
    width: 30px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.18);
    color: transparent;
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.overview-training-carousel-dot span {
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.overview-training-carousel-dot.is-active {
    width: 44px;
    background: linear-gradient(90deg, #6870f3, #1fb7bd);
    box-shadow: 0 8px 16px rgba(31, 183, 189, 0.2);
}

.overview-training-carousel-dot:focus-visible {
    outline: 3px solid rgba(104, 112, 243, 0.22);
    outline-offset: 3px;
}

html[data-theme="dark"] .overview-training-panel {
    border-color: rgba(126, 156, 178, 0.3);
    background:
        linear-gradient(135deg, rgba(18, 26, 34, 0.94), rgba(18, 38, 43, 0.86)),
        linear-gradient(90deg, rgba(104, 112, 243, 0.12), rgba(31, 183, 189, 0.1));
    box-shadow: none;
}

html[data-theme="dark"] .overview-training-kicker {
    border-color: rgba(136, 140, 213, 0.32);
    background: rgba(104, 112, 243, 0.18);
    color: #c6caff;
}

html[data-theme="dark"] .overview-training-step-index {
    border-color: rgba(88, 193, 175, 0.34);
    background: rgba(20, 85, 79, 0.36);
    color: #abf5ea;
}

html[data-theme="dark"] .overview-training-step-copy strong,
html[data-theme="dark"] .overview-training-player-head strong,
html[data-theme="dark"] .overview-training-lesson-head strong {
    color: var(--text-main);
}

html[data-theme="dark"] .overview-training-step-copy em,
html[data-theme="dark"] .overview-training-note,
html[data-theme="dark"] .overview-training-player-head span,
html[data-theme="dark"] .overview-training-slide p {
    color: #aebfd0;
}

html[data-theme="dark"] .overview-training-player-card {
    border-color: rgba(126, 156, 178, 0.28);
    background:
        linear-gradient(135deg, rgba(17, 25, 32, 0.94), rgba(21, 34, 43, 0.86));
    box-shadow: none;
}

html[data-theme="dark"] .overview-training-video-shell {
    border-color: rgba(126, 156, 178, 0.24);
}

html[data-theme="dark"] .overview-training-carousel-btn {
    border-color: rgba(126, 156, 178, 0.28);
    background: rgba(18, 26, 34, 0.88);
    color: #c6caff;
}

html[data-theme="dark"] .overview-training-carousel-btn:hover,
html[data-theme="dark"] .overview-training-carousel-btn:focus-visible {
    border-color: rgba(88, 193, 175, 0.4);
    background: rgba(21, 34, 43, 0.96);
    box-shadow: none;
}

html[data-theme="dark"] .overview-training-lesson-head span {
    background: rgba(20, 85, 79, 0.36);
    color: #abf5ea;
}

html[data-theme="dark"] .overview-training-carousel-dot {
    background: rgba(126, 156, 178, 0.24);
}

html[data-theme="dark"] .overview-training-carousel-dot.is-active {
    background: linear-gradient(90deg, #8b91ff, #58c1af);
    box-shadow: none;
}

html:not([data-theme="dark"]) .overview-telegram-panel {
    border-color: var(--v142-border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.86)),
        radial-gradient(circle at 95% 0%, rgba(42, 171, 238, 0.16), transparent 34%);
    box-shadow: var(--v142-shadow-soft);
}

html[data-theme="dark"] .telegram-links-kicker {
    border-color: rgba(99, 183, 233, 0.32);
    background: rgba(42, 171, 238, 0.16);
    color: #9ddcff;
}

html[data-theme="dark"] .telegram-link-card,
html[data-theme="dark"] .telegram-link-card--chat,
html[data-theme="dark"] .telegram-link-card--support {
    border-color: rgba(126, 156, 178, 0.28);
    background:
        linear-gradient(135deg, rgba(18, 26, 34, 0.94), rgba(21, 34, 43, 0.86)),
        radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.18), transparent 38%);
    box-shadow: none;
}

html[data-theme="dark"] .telegram-link-copy strong,
html[data-theme="dark"] .telegram-links-head h3 {
    color: var(--text-main);
}

html[data-theme="dark"] .telegram-link-copy span,
html[data-theme="dark"] .telegram-links-head p {
    color: #aebfd0;
}

html[data-theme="dark"] .telegram-link-copy em {
    color: #9ddcff;
}

@media (max-width: 1180px) {
    .overview-training-layout {
        grid-template-columns: 1fr;
    }

    .telegram-links--dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .overview-training-player-card {
        padding: 8px;
    }

    .telegram-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .overview-training-panel {
        padding: 14px;
    }

    .overview-training-steps li {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .overview-training-step-index {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 0.72rem;
    }

    .overview-training-actions {
        align-items: stretch;
    }

    .overview-training-actions .btn {
        width: 100%;
    }

    .overview-training-player-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .overview-training-carousel-controls {
        width: 100%;
        justify-content: space-between;
    }

    .overview-training-carousel-btn {
        width: 44px;
        height: 40px;
    }

    .overview-training-player-head strong {
        text-align: left;
    }

    .telegram-link-card {
        min-height: 0;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
    }

    .telegram-link-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .telegram-link-copy strong {
        font-size: 0.9rem;
    }

    .telegram-link-copy span {
        font-size: 0.78rem;
    }
}

/* v1.452 - Cross Checker SaaS landing with count-up metrics and product motion */
html:has(body.shell-guest-nav) {
    background: #f5fbf8 !important;
}

body.shell-guest-nav {
    --container: 1480px;
    background:
        linear-gradient(180deg, #f7fbf9 0%, #ffffff 38%, #f4f8fb 100%) !important;
    color: #101923 !important;
}

body.shell-guest-nav .ambient-bg {
    display: none !important;
}

body.shell-guest-nav .app-content {
    overflow: hidden;
}

body.shell-guest-nav .page {
    width: min(var(--container), calc(100vw - 32px)) !important;
    max-width: var(--container) !important;
    padding: clamp(18px, 2.4vw, 34px) 0 clamp(46px, 6vw, 86px) !important;
}

body.shell-guest-nav .topbar {
    border-bottom: 1px solid rgba(17, 85, 75, 0.12) !important;
    background: rgba(248, 252, 250, 0.88) !important;
    box-shadow: 0 10px 30px rgba(17, 47, 42, 0.05) !important;
}

body.shell-guest-nav .landing-primary-nav a,
body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    color: #20313b !important;
    font-size: 0.88rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
}

.cc-home-v2,
.cc-home-v2 * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.cc-home-v2 {
    --cc-ink: #101923;
    --cc-muted: #5d6b77;
    --cc-soft: #eef7f4;
    --cc-line: rgba(18, 91, 81, 0.14);
    --cc-emerald: #007d66;
    --cc-emerald-strong: #006854;
    --cc-blue: #256bd8;
    --cc-amber: #e7a718;
    --cc-red: #e85b58;
    --cc-shadow: 0 22px 60px rgba(15, 49, 43, 0.11);
    width: 100%;
    display: grid;
    gap: clamp(22px, 3vw, 44px);
    color: var(--cc-ink);
}

.cc-home-v2 :where(h1, h2, h3, p) {
    margin: 0;
}

.cc-home-v2 h1,
.cc-home-v2 h2,
.cc-home-v2 h3 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    color: var(--cc-ink);
}

.cc-home-v2 h1 {
    max-width: 720px;
    font-size: clamp(2.7rem, 4.5vw, 4.05rem);
    line-height: 1.02;
    font-weight: 800;
}

.cc-home-v2 h1::first-letter {
    letter-spacing: 0;
}

.cc-home-v2 h2 {
    font-size: clamp(2rem, 3.4vw, 3.7rem);
    line-height: 1.02;
    font-weight: 800;
}

.cc-home-v2 h3 {
    font-size: clamp(1.02rem, 1.1vw, 1.22rem);
    line-height: 1.18;
    font-weight: 800;
}

.cc-home-v2 p {
    color: var(--cc-muted);
    line-height: 1.66;
}

.cc-home-v2 .btn,
body.shell-guest-nav .topbar-cta {
    min-height: 52px !important;
    border-radius: 8px !important;
    padding: 0 22px !important;
    border: 1px solid rgba(0, 125, 102, 0.28) !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.cc-home-v2 .btn-primary,
body.shell-guest-nav .topbar-cta {
    background: linear-gradient(135deg, #008b72 0%, #006a55 100%) !important;
    color: #ffffff !important;
    border-color: rgba(0, 102, 82, 0.55) !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn {
    min-height: 52px !important;
    border-radius: 8px !important;
    border-color: rgba(0, 125, 102, 0.28) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #006a55 !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn-primary {
    border-color: rgba(0, 102, 82, 0.55) !important;
    background: linear-gradient(135deg, #008b72 0%, #006a55 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(0, 105, 83, 0.16) !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .cc-secondary {
    border-color: rgba(0, 125, 102, 0.24) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #006a55 !important;
}

.cc-home-v2 .btn:hover,
body.shell-guest-nav .topbar-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 30px rgba(0, 105, 83, 0.18) !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn:hover {
    border-color: rgba(0, 125, 102, 0.42) !important;
    background: linear-gradient(135deg, #00977b 0%, #006f59 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(0, 105, 83, 0.18) !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .cc-secondary:hover {
    background: #ffffff !important;
    color: #006a55 !important;
}

.cc-home-v2 .cc-secondary {
    background: rgba(255, 255, 255, 0.82) !important;
    color: #006a55 !important;
}

.cc-hero {
    position: relative;
    min-height: min(700px, calc(100vh - 116px));
    display: grid;
    align-items: center;
    padding: clamp(28px, 5vw, 84px) 0 clamp(22px, 3vw, 44px);
}

.cc-home-v2 .cc-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(520px, 0.92fr) minmax(620px, 1.08fr) !important;
    align-items: center !important;
    gap: clamp(28px, 3.2vw, 54px) !important;
}

.cc-home-v2 .cc-hero-copy {
    display: grid !important;
    justify-items: start !important;
    gap: clamp(18px, 2vw, 26px) !important;
    max-width: 780px;
}

.cc-home-v2 .cc-lead {
    max-width: 690px;
    color: #445661;
    font-size: clamp(1.05rem, 1.28vw, 1.28rem);
    font-weight: 650;
}

.cc-home-v2 .cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.cc-home-v2 .cc-hero-proof {
    max-width: 720px;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
}

.cc-home-v2 .cc-hero-proof li {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #52646f;
    font-size: 0.88rem;
    font-weight: 750;
}

.cc-home-v2 .cc-hero-proof li::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 6px;
    border: 1px solid rgba(0, 125, 102, 0.32);
    background: rgba(0, 125, 102, 0.08);
}

.cc-home-v2 .cc-hero-proof li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 7px;
    height: 4px;
    border-left: 2px solid #007d66;
    border-bottom: 2px solid #007d66;
    transform: translateY(-68%) rotate(-45deg);
}

.cc-home-v2 .cc-dashboard-shell {
    position: relative !important;
    isolation: isolate;
    min-height: 470px !important;
    border: 1px solid rgba(17, 71, 66, 0.14) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 247, 0.94)),
        radial-gradient(circle at 12% 0%, rgba(0, 125, 102, 0.14), transparent 30%) !important;
    box-shadow: var(--cc-shadow) !important;
    overflow: hidden !important;
    padding: 14px !important;
    transform: translateZ(0);
}

.cc-home-v2 .cc-dashboard-top {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 14px;
    border: 1px solid rgba(17, 71, 66, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #52646f;
    font-size: 0.84rem;
    font-weight: 850;
}

.cc-home-v2 .cc-dashboard-top b {
    color: #007d66;
    font-size: 0.98rem;
}

.cc-home-v2 .cc-dashboard-picture {
    display: block !important;
    border-radius: 8px;
    overflow: hidden;
    border: 0;
    background: #ffffff;
}

.cc-home-v2 .cc-dashboard-real {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 620px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    opacity: 0.98;
}

.cc-scanline {
    position: absolute;
    z-index: 3;
    inset: 60px 14px auto;
    height: 90px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 170, 136, 0.16) 50%, transparent 100%);
    border-top: 1px solid rgba(0, 154, 124, 0.28);
    border-bottom: 1px solid rgba(0, 154, 124, 0.16);
    animation: ccScan 5.6s ease-in-out infinite;
    pointer-events: none;
}

.cc-floating-row {
    position: absolute;
    z-index: 4;
    min-width: 178px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(17, 71, 66, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(13, 47, 43, 0.14);
    padding: 12px 14px;
    animation: ccFloat 4.8s ease-in-out infinite;
}

.cc-floating-row span {
    color: #667681;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.cc-floating-row strong {
    color: var(--cc-ink);
    font-size: 1.05rem;
}

.cc-floating-row-a {
    right: 28px;
    top: 112px;
}

.cc-floating-row-b {
    left: 30px;
    bottom: 30px;
    animation-delay: -1.4s;
}

.cc-number-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 101, 82, 0.24);
    border-radius: 10px;
    background:
        linear-gradient(135deg, #023a34 0%, #006b57 52%, #013a33 100%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 36%);
    color: #ffffff;
    box-shadow: 0 26px 50px rgba(0, 85, 70, 0.22);
}

.cc-number-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 6px 16px;
    padding: clamp(20px, 2.4vw, 34px);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.cc-number-card:last-child {
    border-right: 0;
}

.cc-number-card .cc-icon {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f1c94a;
}

.cc-number-card strong {
    color: #ffffff;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2.2rem, 3.2vw, 4rem);
    line-height: 0.95;
    font-weight: 800;
    white-space: nowrap;
}

.cc-number-card span {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 700;
}

.cc-home-v2 .cc-section,
.cc-opportunity,
.cc-trust-card,
.cc-support-card,
.cc-final-cta {
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 40px rgba(25, 58, 53, 0.055);
}

.cc-home-v2 .cc-section {
    padding: clamp(24px, 4vw, 58px);
}

.cc-home-v2 .cc-section-head {
    max-width: 940px;
    display: grid;
    gap: 12px;
    margin-bottom: clamp(22px, 3vw, 36px);
}

.cc-home-v2 .cc-section-head p {
    max-width: 760px;
    font-size: 1.02rem;
    font-weight: 650;
}

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

.cc-loss-card,
.cc-tariff-card,
.cc-security-item,
.cc-faq-item {
    border: 1px solid rgba(18, 91, 81, 0.13);
    border-radius: 8px;
    background: #ffffff;
}

.cc-loss-card {
    min-height: 230px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cc-loss-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 125, 102, 0.34);
    box-shadow: 0 18px 34px rgba(20, 67, 60, 0.08);
}

.cc-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(0, 125, 102, 0.08);
    color: var(--cc-emerald);
}

.cc-icon svg {
    width: 23px;
    height: 23px;
    overflow: visible;
}

.cc-icon-tone {
    fill: currentColor;
    opacity: 0.12;
}

.cc-icon-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-loss-card:nth-child(2) .cc-icon,
.cc-security-item:nth-child(2) .cc-icon {
    background: rgba(37, 107, 216, 0.1);
    color: var(--cc-blue);
}

.cc-loss-card:nth-child(3) .cc-icon {
    background: rgba(231, 167, 24, 0.14);
    color: #b87900;
}

.cc-loss-card:nth-child(4) .cc-icon {
    background: rgba(232, 91, 88, 0.1);
    color: var(--cc-red);
}

.cc-opportunity {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    align-items: center;
    gap: clamp(24px, 4vw, 74px);
    padding: clamp(24px, 4vw, 58px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 247, 0.86)),
        linear-gradient(90deg, rgba(0, 125, 102, 0.05), transparent);
}

.cc-opportunity-copy {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.cc-action-console {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(18, 91, 81, 0.14);
    border-radius: 10px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 20px 44px rgba(24, 65, 58, 0.08);
}

.cc-console-head,
.cc-action-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.cc-console-head {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 48px;
    padding: 0 6px 10px;
    border-bottom: 1px solid rgba(18, 91, 81, 0.1);
}

.cc-console-head span {
    color: #536672;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cc-console-head strong {
    color: #006a55;
    font-size: 1.22rem;
}

.cc-action-row {
    min-height: 72px;
    border: 1px solid rgba(18, 91, 81, 0.1);
    border-radius: 8px;
    background: #fbfefd;
    padding: 12px;
    animation: ccRowPulse 6s ease-in-out infinite;
}

.cc-action-row:nth-child(3) {
    animation-delay: -1s;
}

.cc-action-row:nth-child(4) {
    animation-delay: -2s;
}

.cc-action-row:nth-child(5) {
    animation-delay: -3s;
}

.cc-action-row.is-hot {
    border-color: rgba(232, 91, 88, 0.28);
    background: linear-gradient(90deg, rgba(232, 91, 88, 0.08), #ffffff 42%);
}

.cc-action-row i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e85b58, #ffb14a);
}

.cc-action-row:nth-child(3) i {
    background: linear-gradient(135deg, #e7a718, #ffd46a);
}

.cc-action-row:nth-child(4) i {
    background: linear-gradient(135deg, #256bd8, #59bbff);
}

.cc-action-row:nth-child(5) i {
    background: linear-gradient(135deg, #007d66, #3dd8b7);
}

.cc-action-row b {
    display: block;
    color: #152630;
    font-size: 0.95rem;
    line-height: 1.2;
}

.cc-action-row span {
    display: block;
    margin-top: 3px;
    color: #667681;
    font-size: 0.82rem;
    line-height: 1.3;
}

.cc-action-row em {
    color: #006a55;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.cc-home-v2 .cc-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.cc-home-v2 .cc-step {
    position: relative;
    min-height: 238px;
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px solid rgba(18, 91, 81, 0.13);
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
}

.cc-home-v2 .cc-step-number {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #006a55;
    color: #ffffff;
    font-weight: 900;
}

.cc-tariff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cc-tariff-card {
    display: grid;
    gap: 20px;
    padding: clamp(20px, 2.6vw, 34px);
}

.cc-tariff-card.is-featured {
    border-color: rgba(0, 125, 102, 0.38);
    background:
        linear-gradient(180deg, rgba(238, 249, 246, 0.95), #ffffff 54%),
        #ffffff;
    box-shadow: 0 20px 42px rgba(0, 105, 83, 0.1);
}

.cc-tariff-card header {
    display: grid;
    gap: 12px;
}

.cc-tariff-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-tariff-title span {
    border: 1px solid rgba(0, 125, 102, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    color: #006a55;
    background: rgba(0, 125, 102, 0.08);
    font-size: 0.76rem;
    font-weight: 900;
}

.cc-tariff-card header strong {
    color: var(--cc-ink);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2rem, 2.8vw, 3.1rem);
    line-height: 1;
}

.cc-tariff-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cc-tariff-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(18, 91, 81, 0.1);
    border-radius: 8px;
    background: #fbfefd;
    padding: 12px;
}

.cc-tariff-list .cc-icon {
    width: 38px;
    height: 38px;
}

.cc-tariff-list b,
.cc-tariff-list small {
    display: block;
}

.cc-tariff-list b {
    color: #14252f;
    line-height: 1.18;
}

.cc-tariff-list small {
    margin-top: 4px;
    color: #64737d;
    line-height: 1.38;
}

.cc-tariff-cta {
    width: 100%;
}

.cc-trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 18px;
}

.cc-trust-card,
.cc-support-card {
    padding: clamp(22px, 3vw, 42px);
}

.cc-trust-card {
    display: grid;
    gap: 20px;
}

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

.cc-security-item {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
}

.cc-support-card {
    display: grid;
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 255, 0.82)),
        #ffffff;
}

.cc-support-copy {
    display: grid;
    align-content: start;
    gap: 14px;
}

.cc-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: clamp(24px, 4vw, 52px);
    background:
        linear-gradient(135deg, #ffffff 0%, #eef8f5 100%),
        #ffffff;
}

.cc-final-cta h2 {
    max-width: 900px;
    font-size: clamp(2rem, 3vw, 3.25rem);
}

.cc-final-cta p {
    max-width: 690px;
    margin-top: 10px;
    font-weight: 650;
}

.cc-final-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cc-home-v2 .cc-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cc-home-v2 .cc-faq h2 {
    margin-bottom: 20px;
}

.cc-home-v2 .cc-faq-item {
    padding: 0;
    overflow: hidden;
}

.cc-home-v2 .cc-faq-item summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    padding: 18px 20px;
    color: #14252f;
    font-weight: 900;
}

.cc-home-v2 .cc-faq-item summary::-webkit-details-marker {
    display: none;
}

.cc-home-v2 .cc-faq-item summary::after {
    content: "+";
    color: #007d66;
    font-size: 1.35rem;
    line-height: 1;
}

.cc-home-v2 .cc-faq-item[open] summary::after {
    content: "-";
}

.cc-home-v2 .cc-faq-item p {
    padding: 0 20px 18px;
}

.cc-home-v2 .cc-footer {
    border: 0;
    border-top: 1px solid rgba(18, 91, 81, 0.12);
    padding: 30px 0 0;
    background: transparent;
}

.cc-home-v2 .cc-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 20px;
}

.cc-home-v2 .cc-footer h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.cc-home-v2 .cc-footer img {
    width: 30px;
    height: 30px;
}

.cc-home-v2 .cc-footer a,
.cc-home-v2 .cc-footer p {
    display: block;
    color: #5b6b76;
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: none;
}

.cc-home-v2 .cc-footer-requisites {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(83, 92, 226, 0.12);
    color: rgba(91, 107, 118, 0.78);
    font-size: 0.72rem;
    line-height: 1.45;
}

.cc-home-v2 .cc-footer-requisites span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.cc-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes ccScan {
    0%, 100% {
        transform: translateY(-16px);
        opacity: 0.15;
    }
    45%, 60% {
        opacity: 1;
    }
    50% {
        transform: translateY(350px);
    }
}

@keyframes ccFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes ccRowPulse {
    0%, 100% {
        transform: translateX(0);
        box-shadow: none;
    }
    45%, 55% {
        transform: translateX(4px);
        box-shadow: 0 14px 24px rgba(0, 105, 83, 0.08);
    }
}

@media (max-width: 1280px) {
    .cc-home-v2 .cc-hero-grid {
        grid-template-columns: 1fr !important;
    }

    .cc-home-v2 .cc-dashboard-shell {
        min-height: 0 !important;
    }

    .cc-number-band,
    .cc-loss-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-number-card:nth-child(2) {
        border-right: 0;
    }

    .cc-number-card:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .cc-opportunity,
    .cc-trust-grid {
        grid-template-columns: 1fr;
    }

    .cc-home-v2 .cc-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    body.shell-guest-nav .page {
        width: min(100% - 24px, var(--container)) !important;
    }

    .cc-hero {
        min-height: 0;
        padding-top: 24px;
    }

    .cc-home-v2 h1 {
        font-size: clamp(2.28rem, 9.6vw, 3.75rem);
    }

    .cc-home-v2 .cc-dashboard-shell {
        padding: 10px !important;
    }

    .cc-floating-row {
        display: none;
    }

    .cc-home-v2 .cc-steps,
    .cc-security-grid,
    .cc-tariff-grid,
    .cc-home-v2 .cc-faq-grid,
    .cc-home-v2 .cc-footer-grid {
        grid-template-columns: 1fr;
    }

    .cc-final-cta {
        grid-template-columns: 1fr;
    }

    .cc-final-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body.shell-guest-nav .topbar {
        min-height: 68px !important;
    }

    body.shell-guest-nav .topbar-inner {
        width: calc(100% - 28px) !important;
        min-height: 68px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }

    body.shell-guest-nav .brand-logo-main {
        width: 158px !important;
        max-width: 158px !important;
    }

    body.shell-guest-nav .topbar-cta {
        min-width: 148px !important;
        min-height: 42px !important;
        padding: 0 14px !important;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.shell-guest-nav .page {
        width: 100% !important;
        padding-top: 12px !important;
    }

    .cc-home-v2 {
        gap: 16px;
    }

    .cc-hero,
    .cc-home-v2 .cc-section,
    .cc-opportunity,
    .cc-trust-card,
    .cc-support-card,
    .cc-final-cta {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .cc-hero {
        padding-inline: 14px;
    }

    .cc-home-v2 .cc-actions,
    .cc-home-v2 .cc-actions .btn,
    .cc-final-actions,
    .cc-final-actions .btn {
        width: 100%;
    }

    .cc-home-v2 .cc-footer-requisites {
        display: grid;
        gap: 4px;
        font-size: 0.68rem;
    }

    .cc-number-band,
    .cc-loss-grid {
        grid-template-columns: 1fr;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .cc-number-card,
    .cc-number-card:nth-child(2),
    .cc-number-card:nth-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .cc-number-card:last-child {
        border-bottom: 0;
    }

    .cc-number-card {
        min-height: 116px;
        padding: 20px 16px;
    }

    .cc-action-console {
        padding: 10px;
    }

    .cc-action-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cc-action-row em {
        grid-column: 2;
        justify-self: start;
    }

    .cc-home-v2 .cc-dashboard-top,
    .cc-scanline {
        display: none;
    }

    .cc-home-v2 .cc-dashboard-picture {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-reveal,
    .cc-scanline,
    .cc-floating-row,
    .cc-action-row {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .cc-reveal {
        opacity: 1;
    }
}

/* v1.453 - Ukrainian corporate landing polish */
html:has(body.shell-guest-nav) {
    background: #f6f7ff !important;
}

body.shell-guest-nav {
    --container: 1480px;
    background:
        radial-gradient(circle at 18% 4%, rgba(104, 112, 243, 0.16), transparent 32%),
        linear-gradient(180deg, #f6f7ff 0%, #ffffff 42%, #f7fbff 100%) !important;
    color: #171a3d !important;
}

body.shell-guest-nav .topbar {
    border-bottom: 1px solid rgba(83, 92, 226, 0.16) !important;
    background: rgba(248, 249, 255, 0.9) !important;
    box-shadow: 0 10px 30px rgba(63, 70, 170, 0.06) !important;
}

body.shell-guest-nav .landing-primary-nav a,
body.shell-guest-nav .top-nav-guest > a:not(.btn) {
    color: #303665 !important;
}

.cc-home-v2 {
    --cc-ink: #171a3d;
    --cc-muted: #65708f;
    --cc-soft: #f0f2ff;
    --cc-line: rgba(83, 92, 226, 0.16);
    --cc-brand: #535ce2;
    --cc-brand-2: #6870f3;
    --cc-brand-strong: #444bc8;
    --cc-sky: #1687c5;
    --cc-teal: #2ba695;
    --cc-amber: #d09a2a;
    --cc-red: #c44c4c;
    --cc-shadow: 0 24px 64px rgba(44, 52, 154, 0.13);
    gap: clamp(22px, 3.2vw, 48px) !important;
    color: var(--cc-ink) !important;
}

.cc-home-v2 :where(h1, h2, h3) {
    color: var(--cc-ink) !important;
}

.cc-home-v2 h1 {
    max-width: 760px !important;
    font-size: clamp(2.65rem, 4.25vw, 4.25rem) !important;
    line-height: 1.01 !important;
}

.cc-home-v2 h2 {
    font-size: clamp(2rem, 3.15vw, 3.5rem) !important;
    line-height: 1.03 !important;
}

.cc-home-v2 h3 {
    font-size: clamp(1.06rem, 1.08vw, 1.24rem) !important;
    line-height: 1.18 !important;
}

.cc-home-v2 p,
.cc-home-v2 small {
    color: var(--cc-muted) !important;
}

.cc-home-v2 .btn,
body.shell-guest-nav .topbar-cta {
    border-color: rgba(83, 92, 226, 0.24) !important;
    color: var(--cc-brand-strong) !important;
}

.cc-home-v2 .btn-primary,
body.shell-guest-nav .topbar-cta,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn-primary {
    border-color: rgba(68, 75, 200, 0.58) !important;
    background: linear-gradient(150deg, var(--cc-brand-2) 0%, var(--cc-brand) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(83, 92, 226, 0.2) !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .cc-secondary,
.cc-home-v2 .cc-secondary {
    border-color: rgba(83, 92, 226, 0.22) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--cc-brand-strong) !important;
}

.cc-home-v2 .btn:hover,
body.shell-guest-nav .topbar-cta:hover,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn:hover {
    border-color: rgba(83, 92, 226, 0.46) !important;
    background: linear-gradient(150deg, #737aff 0%, var(--cc-brand) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 34px rgba(83, 92, 226, 0.22) !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .cc-secondary:hover {
    background: #ffffff !important;
    color: var(--cc-brand-strong) !important;
}

.cc-hero {
    min-height: min(710px, calc(100vh - 108px)) !important;
}

.cc-home-v2 .cc-hero-grid {
    grid-template-columns: minmax(500px, 0.9fr) minmax(640px, 1.1fr) !important;
}

.cc-home-v2 .cc-lead {
    color: #4e587c !important;
}

.cc-home-v2 .cc-hero-proof {
    gap: 10px 14px !important;
}

.cc-home-v2 .cc-hero-proof li {
    gap: 9px !important;
    color: #59637f !important;
}

.cc-home-v2 .cc-hero-proof li::before,
.cc-home-v2 .cc-hero-proof li::after {
    display: none !important;
    content: none !important;
}

.cc-proof-mark {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(83, 92, 226, 0.28);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(237, 240, 255, 0.94)),
        radial-gradient(circle at 50% 50%, rgba(83, 92, 226, 0.24), transparent 40%);
    box-shadow: 0 8px 18px rgba(83, 92, 226, 0.12);
}

.cc-proof-mark::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #535ce2;
    box-shadow: 0 0 0 4px rgba(83, 92, 226, 0.12);
}

.cc-home-v2 .cc-dashboard-shell {
    aspect-ratio: auto !important;
    min-height: 520px !important;
    display: block !important;
    padding: 12px !important;
    border-color: rgba(83, 92, 226, 0.18) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(104, 112, 243, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 255, 0.95)) !important;
    box-shadow: var(--cc-shadow) !important;
}

.cc-home-v2 .cc-dashboard-shell > :not(.cc-dashboard-real),
.cc-home-v2 .cc-dashboard-shell > * {
    display: block !important;
}

.cc-home-v2 .cc-dashboard-shell > .cc-product-window {
    display: grid !important;
}

.cc-product-window {
    position: relative;
    z-index: 2;
    min-height: 496px;
    height: 100%;
    overflow: hidden;
    grid-template-columns: 184px minmax(0, 1fr);
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.cc-product-sidebar {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px 14px;
    border-right: 1px solid rgba(83, 92, 226, 0.12);
    background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 100%);
}

.cc-product-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--cc-ink);
    font-size: 0.78rem;
    font-weight: 900;
}

.cc-product-brand img {
    width: 28px;
    height: 28px;
}

.cc-product-sidebar > span {
    min-height: 36px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 11px;
    color: #7881a6;
    font-size: 0.78rem;
    font-weight: 900;
}

.cc-product-sidebar > span.is-active {
    border-color: rgba(83, 92, 226, 0.22);
    background: rgba(83, 92, 226, 0.1);
    color: var(--cc-brand-strong);
}

.cc-product-main {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 18px;
    background:
        radial-gradient(circle at 84% 8%, rgba(43, 166, 149, 0.11), transparent 30%),
        #ffffff;
}

.cc-product-top {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(83, 92, 226, 0.14);
    border-radius: 14px;
    background: #fafbff;
    padding: 0 14px;
    color: #6d7698;
    font-size: 0.82rem;
    font-weight: 900;
}

.cc-product-top strong {
    color: var(--cc-brand-strong);
}

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

.cc-product-kpis article {
    min-height: 132px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(83, 92, 226, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfbff);
    padding: 18px;
}

.cc-product-kpis span {
    color: #7881a6;
    font-size: 0.74rem;
    font-weight: 900;
}

.cc-product-kpis strong {
    color: var(--cc-ink);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2.1rem, 3vw, 3.2rem);
    line-height: 0.92;
}

.cc-product-kpis small {
    justify-self: start;
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 999px;
    background: rgba(83, 92, 226, 0.08);
    padding: 5px 9px;
    color: var(--cc-brand-strong) !important;
    font-size: 0.7rem;
    font-weight: 900;
}

.cc-product-board {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(83, 92, 226, 0.14);
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
}

.cc-product-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    border: 1px solid rgba(83, 92, 226, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fbfcff;
}

.cc-product-row span {
    width: 10px;
    height: 28px;
    border-radius: 999px;
    background: var(--cc-brand);
}

.cc-product-row:nth-child(2) span {
    background: var(--cc-amber);
}

.cc-product-row:nth-child(3) span {
    background: var(--cc-teal);
}

.cc-product-row b {
    color: var(--cc-ink);
    font-size: 0.88rem;
    line-height: 1.2;
}

.cc-product-row em {
    color: var(--cc-brand-strong);
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
}

.cc-product-row.is-priority {
    border-color: rgba(83, 92, 226, 0.22);
    background: linear-gradient(90deg, rgba(83, 92, 226, 0.1), #ffffff 48%);
}

.cc-scanline {
    background: linear-gradient(180deg, transparent 0%, rgba(104, 112, 243, 0.17) 50%, transparent 100%) !important;
    border-top-color: rgba(83, 92, 226, 0.24) !important;
    border-bottom-color: rgba(83, 92, 226, 0.14) !important;
}

.cc-floating-row {
    border-color: rgba(83, 92, 226, 0.18) !important;
    box-shadow: 0 18px 40px rgba(63, 70, 170, 0.16) !important;
}

.cc-floating-row strong {
    color: var(--cc-brand-strong) !important;
}

.cc-number-band {
    border-color: rgba(68, 75, 200, 0.3) !important;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.2), transparent 32%),
        linear-gradient(135deg, #20245f 0%, var(--cc-brand) 52%, #252b7b 100%) !important;
    box-shadow: 0 26px 54px rgba(83, 92, 226, 0.24) !important;
}

.cc-number-card .cc-icon {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.cc-home-v2 .cc-section,
.cc-opportunity,
.cc-trust-card,
.cc-support-card,
.cc-final-cta {
    border-color: var(--cc-line) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 18px 42px rgba(63, 70, 170, 0.07) !important;
}

.cc-loss-card,
.cc-tariff-card,
.cc-security-item,
.cc-faq-item {
    border-color: rgba(83, 92, 226, 0.14) !important;
}

.cc-icon {
    position: relative;
    width: 48px !important;
    height: 48px !important;
    overflow: hidden;
    border: 1px solid rgba(83, 92, 226, 0.22) !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 40%),
        linear-gradient(145deg, #ffffff 0%, #eef0ff 100%) !important;
    color: var(--cc-brand) !important;
    box-shadow: 0 14px 28px rgba(83, 92, 226, 0.14) !important;
}

.cc-icon::after {
    content: "";
    position: absolute;
    inset: auto -22px -28px auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.13;
}

.cc-icon svg {
    position: relative;
    z-index: 1;
    width: 30px !important;
    height: 30px !important;
    fill: none !important;
    stroke: none !important;
}

.cc-icon-bg {
    fill: currentColor !important;
    stroke: none !important;
    opacity: 0.12 !important;
}

.cc-icon-fill {
    fill: currentColor !important;
    stroke: none !important;
    opacity: 0.28 !important;
}

.cc-icon-line {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 0.98 !important;
}

.cc-loss-card:nth-child(2) .cc-icon,
.cc-security-item:nth-child(2) .cc-icon,
.cc-action-row:nth-child(4) .cc-icon {
    color: var(--cc-sky) !important;
    background: linear-gradient(145deg, #ffffff 0%, #ebf8ff 100%) !important;
    border-color: rgba(22, 135, 197, 0.22) !important;
}

.cc-loss-card:nth-child(3) .cc-icon,
.cc-action-row:nth-child(3) .cc-icon {
    color: var(--cc-amber) !important;
    background: linear-gradient(145deg, #ffffff 0%, #fff7e6 100%) !important;
    border-color: rgba(208, 154, 42, 0.25) !important;
}

.cc-loss-card:nth-child(4) .cc-icon,
.cc-action-row:nth-child(5) .cc-icon {
    color: var(--cc-teal) !important;
    background: linear-gradient(145deg, #ffffff 0%, #eaf9f6 100%) !important;
    border-color: rgba(43, 166, 149, 0.24) !important;
}

.cc-opportunity {
    background:
        radial-gradient(circle at 92% 12%, rgba(104, 112, 243, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 247, 255, 0.9)) !important;
}

.cc-action-console {
    border-color: rgba(83, 92, 226, 0.16) !important;
    box-shadow: 0 22px 48px rgba(63, 70, 170, 0.09) !important;
}

.cc-console-head span {
    color: #6a7394 !important;
}

.cc-console-head strong,
.cc-action-row em {
    color: var(--cc-brand-strong) !important;
}

.cc-action-row {
    grid-template-columns: 54px minmax(0, 1fr) auto !important;
    border-color: rgba(83, 92, 226, 0.12) !important;
    background: #fbfcff !important;
}

.cc-action-row.is-hot {
    border-color: rgba(83, 92, 226, 0.26) !important;
    background: linear-gradient(90deg, rgba(83, 92, 226, 0.1), #ffffff 48%) !important;
}

.cc-action-row > .cc-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    box-shadow: 0 10px 20px rgba(83, 92, 226, 0.11) !important;
}

.cc-action-row > .cc-icon svg {
    width: 27px !important;
    height: 27px !important;
}

.cc-action-row b {
    color: var(--cc-ink) !important;
}

.cc-action-row span {
    color: #68728f !important;
}

.cc-home-v2 .cc-steps-section .cc-steps {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: 16px !important;
}

.cc-home-v2 .cc-steps-section .cc-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    min-height: 250px !important;
    padding: 24px !important;
    border-color: rgba(83, 92, 226, 0.14) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
    box-shadow: 0 18px 34px rgba(63, 70, 170, 0.055) !important;
}

.cc-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cc-step-index {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(83, 92, 226, 0.2);
    border-radius: 14px;
    background: rgba(83, 92, 226, 0.09);
    color: var(--cc-brand-strong);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-weight: 800;
}

.cc-home-v2 .cc-step h3 {
    margin: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: auto;
}

.cc-home-v2 .cc-step p {
    margin: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.cc-tariff-card.is-featured {
    border-color: rgba(83, 92, 226, 0.32) !important;
    background:
        radial-gradient(circle at 88% 2%, rgba(104, 112, 243, 0.12), transparent 35%),
        linear-gradient(180deg, #f7f8ff 0%, #ffffff 58%) !important;
    box-shadow: 0 22px 48px rgba(83, 92, 226, 0.11) !important;
}

.cc-tariff-title span {
    border-color: rgba(83, 92, 226, 0.22) !important;
    color: var(--cc-brand-strong) !important;
    background: rgba(83, 92, 226, 0.09) !important;
}

.cc-tariff-list .cc-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
}

.cc-tariff-list .cc-icon svg {
    width: 24px !important;
    height: 24px !important;
}

.cc-support-card {
    background:
        radial-gradient(circle at 92% 5%, rgba(22, 135, 197, 0.13), transparent 34%),
        linear-gradient(135deg, #ffffff, #f5f9ff) !important;
}

.cc-home-v2 .cc-faq-grid {
    gap: 14px !important;
}

.cc-home-v2 .cc-faq-item {
    border-radius: 14px !important;
    background: #ffffff !important;
}

.cc-home-v2 .cc-faq-item summary {
    min-height: 70px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    color: var(--cc-ink) !important;
}

.cc-home-v2 .cc-faq-item summary::after {
    display: none !important;
    content: none !important;
}

.cc-faq-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 13px;
    background: rgba(83, 92, 226, 0.08);
    color: var(--cc-brand-strong);
    transition: transform 0.18s ease, background 0.18s ease;
}

.cc-faq-mark svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-home-v2 .cc-faq-item[open] .cc-faq-mark {
    transform: rotate(180deg);
    background: rgba(83, 92, 226, 0.14);
}

.cc-home-v2 .cc-footer {
    border-top-color: rgba(83, 92, 226, 0.14) !important;
}

html[data-theme="dark"] .cc-home-v2 .cc-footer-requisites {
    border-top-color: rgba(144, 163, 255, 0.18);
    color: rgba(214, 223, 245, 0.72);
}

@keyframes ccRowPulse {
    0%, 100% {
        transform: translateX(0);
        box-shadow: none;
    }
    45%, 55% {
        transform: translateX(4px);
        box-shadow: 0 14px 24px rgba(83, 92, 226, 0.08);
    }
}

@media (max-width: 1280px) {
    .cc-home-v2 .cc-hero-grid {
        grid-template-columns: 1fr !important;
    }

    .cc-home-v2 .cc-dashboard-shell {
        min-height: 460px !important;
    }
}

@media (max-width: 920px) {
    .cc-product-window {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .cc-product-sidebar {
        display: none;
    }

    .cc-product-kpis {
        grid-template-columns: 1fr;
    }

    .cc-home-v2 .cc-steps-section .cc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .cc-hero {
        padding-inline: 16px !important;
    }

    .cc-home-v2 h1 {
        font-size: clamp(2.24rem, 10.5vw, 3.25rem) !important;
    }

    .cc-home-v2 .cc-dashboard-shell {
        min-height: 0 !important;
        border-radius: 0 !important;
        padding: 10px !important;
    }

    .cc-product-main {
        gap: 12px;
        padding: 12px;
    }

    .cc-product-top {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 64px;
    }

    .cc-product-kpis article {
        min-height: 104px;
    }

    .cc-product-row {
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .cc-product-row em {
        grid-column: 2;
        justify-self: start;
    }

    .cc-action-row {
        grid-template-columns: 48px minmax(0, 1fr) !important;
    }

    .cc-action-row em {
        grid-column: 2;
    }

    .cc-home-v2 .cc-steps-section .cc-steps {
        grid-template-columns: 1fr !important;
    }

    .cc-home-v2 .cc-steps-section .cc-step {
        min-height: 0 !important;
        padding: 20px !important;
    }

    .cc-home-v2 .cc-faq-item summary {
        grid-template-columns: minmax(0, 1fr) 38px !important;
        padding: 16px !important;
    }

    .cc-faq-mark {
        width: 38px;
        height: 38px;
    }
}

/* v1.453.1 - final button specificity and mobile mockup trim */
html:not([data-theme="dark"]) body.shell-guest-nav .topbar-cta.btn-primary,
body.shell-guest-nav .topbar-cta.btn-primary,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn.btn-primary,
.cc-home-v2 .btn.btn-primary {
    border-color: rgba(68, 75, 200, 0.58) !important;
    background: linear-gradient(150deg, #737aff 0%, #535ce2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(83, 92, 226, 0.22) !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn:not(.btn-primary),
.cc-home-v2 .btn:not(.btn-primary) {
    border-color: rgba(83, 92, 226, 0.22) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #444bc8 !important;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn.btn-primary:hover,
body.shell-guest-nav .topbar-cta.btn-primary:hover,
.cc-home-v2 .btn.btn-primary:hover {
    background: linear-gradient(150deg, #7d84ff 0%, #4e56db 100%) !important;
    color: #ffffff !important;
}

html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2 .btn:not(.btn-primary):hover,
.cc-home-v2 .btn:not(.btn-primary):hover {
    background: #ffffff !important;
    color: #444bc8 !important;
    box-shadow: 0 14px 26px rgba(83, 92, 226, 0.12) !important;
}

@media (max-width: 640px) {
    .cc-product-window {
        max-height: 472px;
    }

    .cc-product-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .cc-product-kpis article {
        min-height: 96px;
        padding: 10px;
        border-radius: 12px;
    }

    .cc-product-kpis span {
        font-size: 0.64rem;
        line-height: 1.15;
    }

    .cc-product-kpis strong {
        font-size: 1.55rem;
    }

    .cc-product-kpis small {
        padding: 4px 6px;
        font-size: 0.58rem;
    }

    .cc-product-board {
        gap: 7px;
        padding: 9px;
    }

    .cc-product-row {
        min-height: 50px;
        padding: 8px 9px;
    }

    .cc-product-row b,
    .cc-product-row em {
        font-size: 0.76rem;
    }
}

/* v1.453.2 - rounded outer hero container */
.cc-home-v2 > .cc-hero {
    border: 1px solid rgba(83, 92, 226, 0.15) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 78% 18%, rgba(104, 112, 243, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.94)) !important;
    box-shadow: 0 18px 46px rgba(63, 70, 170, 0.055) !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .cc-home-v2 > .cc-hero {
        width: calc(100% - 24px) !important;
        margin-inline: auto !important;
        border-radius: 20px !important;
        border-left: 1px solid rgba(83, 92, 226, 0.15) !important;
        border-right: 1px solid rgba(83, 92, 226, 0.15) !important;
    }
}

/* v1.453.3 - keep animated metric numbers inside their columns */
.cc-number-card {
    min-width: 0 !important;
}

.cc-number-card strong {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    font-size: clamp(2rem, 2.35vw, 2.85rem) !important;
    font-variant-numeric: tabular-nums;
}

.cc-number-card:first-child strong {
    font-size: clamp(1.45rem, 1.65vw, 1.95rem) !important;
}

/* v1.454 - office photo hero integration */
.cc-home-v2 .cc-dashboard-shell.cc-photo-stage {
    min-height: clamp(500px, 35vw, 570px) !important;
    padding: 12px !important;
    border-radius: 24px !important;
    border-color: rgba(83, 92, 226, 0.18) !important;
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.9), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(83, 92, 226, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 240, 255, 0.94)) !important;
    overflow: hidden !important;
}

.cc-home-v2 .cc-dashboard-shell.cc-photo-stage > .cc-product-window,
.cc-home-v2 .cc-dashboard-shell.cc-photo-stage > .cc-scanline {
    display: none !important;
}

.cc-home-v2 .cc-dashboard-shell.cc-photo-stage > .cc-hero-photo-frame {
    display: block !important;
}

.cc-hero-photo-frame {
    position: absolute;
    z-index: 1;
    inset: 12px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 20px;
    background: #f7f8ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.cc-hero-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 26%, transparent 72%, rgba(83, 92, 226, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 22%, rgba(20, 24, 68, 0.06));
}

.cc-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: 54% 50%;
    transform: scale(1.01);
}

.cc-photo-stage .cc-floating-row {
    z-index: 3;
    min-width: 174px;
    border-radius: 14px;
    border-color: rgba(83, 92, 226, 0.16) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 18px 42px rgba(31, 39, 121, 0.18) !important;
    backdrop-filter: blur(16px);
}

.cc-photo-stage .cc-floating-row span {
    color: #68728f !important;
    letter-spacing: 0;
}

.cc-photo-stage .cc-floating-row strong {
    color: var(--cc-brand-strong) !important;
}

.cc-photo-stage .cc-floating-row-a {
    top: 26px;
    right: 26px;
}

.cc-photo-stage .cc-floating-row-b {
    right: 28px;
    bottom: 28px;
    left: auto;
}

/* v1.455 - SEO landing icon system and responsive polish */
.cc-seo-landing {
    --seo-icon-competitors: #535ce2;
    --seo-icon-positions: #1687c5;
    --seo-icon-actions: #d09a2a;
    --seo-icon-growth: #2ba695;
}

.cc-seo-landing .cc-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.cc-seo-landing .cc-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    max-width: 100%;
}

.cc-seo-landing .cc-actions .btn {
    min-height: 52px !important;
    padding-inline: 18px !important;
    font-size: 0.9rem !important;
}

.cc-seo-landing .cc-btn-icon > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cc-btn-glyph {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 0;
    background: transparent;
}

.cc-btn-glyph .cc-lucide {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-seo-landing .btn:not(.btn-primary) .cc-btn-glyph {
    background: transparent;
}

.cc-seo-landing .cc-hero-proof li {
    min-width: 0;
    align-items: center;
}

.cc-seo-landing .cc-hero-proof li span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-loss-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    align-items: stretch;
}

.cc-seo-landing .cc-loss-card {
    position: relative;
    isolation: isolate;
    min-height: 218px;
    grid-template-rows: auto auto 1fr;
    padding: clamp(20px, 2vw, 28px) !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 96% 0%, rgba(83, 92, 226, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
    box-shadow: 0 16px 32px rgba(63, 70, 170, 0.055);
}

.cc-seo-landing .cc-loss-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, currentColor, transparent 82%);
    opacity: 0.38;
}

.cc-seo-landing .cc-loss-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -40px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.055;
    z-index: -1;
}

.cc-seo-landing .cc-loss-card:nth-child(4n + 1) {
    color: var(--seo-icon-competitors);
}

.cc-seo-landing .cc-loss-card:nth-child(4n + 2) {
    color: var(--seo-icon-positions);
}

.cc-seo-landing .cc-loss-card:nth-child(4n + 3) {
    color: var(--seo-icon-actions);
}

.cc-seo-landing .cc-loss-card:nth-child(4n) {
    color: var(--seo-icon-growth);
}

.cc-seo-landing .cc-loss-card h3,
.cc-seo-landing .cc-loss-card h3 a {
    color: var(--cc-ink) !important;
}

.cc-seo-landing .cc-loss-card h3 {
    margin: 0;
    font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.28rem);
    line-height: 1.18;
}

.cc-seo-landing .cc-loss-card p {
    margin: 0;
    color: #4e587c;
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.5;
}

.cc-seo-icon {
    flex: 0 0 auto;
}

.cc-seo-landing .cc-seo-icon {
    display: inline-grid !important;
    place-items: center;
    overflow: hidden;
    border-width: 1px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(39, 48, 99, 0.1) !important;
}

.cc-seo-landing .cc-seo-icon::after {
    display: none !important;
}

.cc-seo-landing .cc-seo-icon .cc-lucide {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.cc-seo-landing .cc-loss-card > .cc-seo-icon {
    width: 54px !important;
    height: 54px !important;
    box-shadow: 0 12px 26px rgba(39, 48, 99, 0.11) !important;
}

.cc-seo-landing .cc-loss-card > .cc-seo-icon svg {
    width: 33px !important;
    height: 33px !important;
}

.cc-seo-landing .cc-section-head h2,
.cc-seo-landing .cc-faq h2 {
    color: var(--cc-ink) !important;
}

.cc-seo-landing .cc-section-head p {
    color: #4e587c !important;
}

.cc-seo-icon--competitors,
.cc-seo-icon--setup {
    color: var(--seo-icon-competitors) !important;
    border-color: rgba(83, 92, 226, 0.2) !important;
    background: #f3f4ff !important;
}

.cc-seo-icon--positions,
.cc-seo-icon--scan {
    color: var(--seo-icon-positions) !important;
    border-color: rgba(22, 135, 197, 0.2) !important;
    background: #eef8fd !important;
}

.cc-seo-icon--actions,
.cc-seo-icon--map {
    color: var(--seo-icon-actions) !important;
    border-color: rgba(208, 154, 42, 0.22) !important;
    background: #fff8e9 !important;
}

.cc-seo-icon--growth {
    color: var(--seo-icon-growth) !important;
    border-color: rgba(43, 166, 149, 0.2) !important;
    background: #eefaf8 !important;
}

.cc-seo-landing .cc-step-head .cc-seo-icon {
    width: 48px !important;
    height: 48px !important;
}

.cc-seo-landing .cc-step-head .cc-seo-icon svg {
    width: 29px !important;
    height: 29px !important;
}

.cc-seo-landing .cc-step {
    overflow: hidden;
}

.cc-seo-landing .cc-step::after,
.cc-seo-landing .cc-step::before {
    display: none !important;
}

.cc-seo-landing .cc-step h3,
.cc-seo-landing .cc-step p,
.cc-seo-landing .cc-section-head h2,
.cc-seo-landing .cc-section-head p {
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-faq-item summary span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-support-card {
    position: relative;
    overflow: hidden;
}

.cc-seo-landing .cc-support-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #1687c5, #2ba695);
    opacity: 0.32;
}

.cc-seo-landing .cc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    max-width: min(100%, 720px);
    margin: 0 0 16px;
    color: #68728f;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.35;
}

.cc-seo-landing .cc-breadcrumbs a,
.cc-seo-landing .cc-breadcrumbs span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-breadcrumbs a {
    color: #535ce2;
    text-decoration: none;
}

.cc-seo-landing .cc-breadcrumbs a:hover,
.cc-seo-landing .cc-breadcrumbs a:focus-visible {
    color: #1687c5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cc-seo-landing .cc-breadcrumbs [aria-current="page"] {
    color: #4e587c;
}

.cc-seo-landing .cc-query-strip {
    display: grid;
    gap: clamp(18px, 2vw, 26px);
}

.cc-seo-landing .cc-query-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.cc-seo-landing .cc-query-list > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    max-width: 100%;
    padding: 9px 13px;
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 8px;
    background: #ffffff;
    color: #36405f;
    box-shadow: 0 12px 24px rgba(63, 70, 170, 0.055);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-query-list .cc-query-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #535ce2;
    stroke-width: 2;
}

.cc-seo-landing .cc-query-list > span > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-hub-section {
    display: grid;
    gap: clamp(20px, 2.4vw, 30px);
}

.cc-seo-landing .cc-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cc-seo-landing .cc-hub-group {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid rgba(83, 92, 226, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 16px 32px rgba(63, 70, 170, 0.06);
}

.cc-seo-landing .cc-hub-group header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.cc-seo-landing .cc-hub-group h3 {
    margin: 0;
    color: var(--cc-ink);
    font-size: clamp(1.02rem, 0.96rem + 0.22vw, 1.22rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-hub-group .cc-seo-icon {
    width: 48px !important;
    height: 48px !important;
}

.cc-seo-landing .cc-hub-group .cc-seo-icon svg {
    width: 29px !important;
    height: 29px !important;
}

.cc-seo-landing .cc-hub-links {
    display: grid;
    gap: 8px;
}

.cc-seo-landing .cc-hub-links a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(83, 92, 226, 0.12);
    border-radius: 8px;
    background: rgba(246, 248, 255, 0.78);
    color: #36405f;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-hub-links a > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cc-seo-landing .cc-hub-link-icon {
    width: 17px;
    height: 17px;
    margin-left: auto;
    flex: 0 0 auto;
    color: #7d85a5;
    stroke-width: 2.2;
    transition: transform 160ms ease, color 160ms ease;
}

.cc-seo-landing .cc-hub-links a:hover,
.cc-seo-landing .cc-hub-links a:focus-visible {
    border-color: rgba(83, 92, 226, 0.28);
    background: #ffffff;
    color: #535ce2;
    box-shadow: 0 12px 22px rgba(63, 70, 170, 0.08);
}

.cc-seo-landing .cc-hub-links a:hover .cc-hub-link-icon,
.cc-seo-landing .cc-hub-links a:focus-visible .cc-hub-link-icon {
    color: currentColor;
    transform: translateX(2px);
}

@media (max-width: 920px) {
    .cc-seo-landing .cc-loss-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cc-seo-landing .cc-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cc-seo-landing .cc-breadcrumbs {
        margin-bottom: 12px;
        font-size: 0.76rem;
    }

    .cc-seo-landing .cc-query-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cc-seo-landing .cc-query-list > span,
    .cc-seo-landing .cc-hub-links a {
        min-height: 40px;
        font-size: 0.84rem;
    }

    .cc-seo-landing .cc-hub-group {
        padding: 16px;
    }

    .cc-seo-landing .cc-hub-group header {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .cc-seo-landing .cc-hub-group .cc-seo-icon {
        width: 42px !important;
        height: 42px !important;
    }

    .cc-seo-landing .cc-hub-group .cc-seo-icon svg {
        width: 25px !important;
        height: 25px !important;
    }

    .cc-seo-landing .cc-actions,
    .cc-seo-landing .cc-final-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .cc-seo-landing .cc-btn-icon {
        width: 100% !important;
        min-height: 48px !important;
        padding-inline: 14px !important;
        font-size: 0.86rem !important;
    }

    .cc-seo-landing .cc-loss-grid {
        grid-template-columns: 1fr !important;
    }

    .cc-seo-landing .cc-loss-card {
        min-height: 0;
        padding: 18px !important;
    }

    .cc-seo-landing .cc-step-head {
        align-items: center;
    }

    .cc-seo-landing .cc-step-head .cc-seo-icon,
    .cc-seo-landing .cc-step-index {
        width: 42px !important;
        height: 42px !important;
    }
}

@media (max-width: 1280px) {
    .cc-home-v2 .cc-dashboard-shell.cc-photo-stage {
        min-height: clamp(430px, 56vw, 560px) !important;
    }
}

@media (max-width: 920px) {
    .cc-hero-photo {
        object-position: 55% 50%;
    }
}

@media (max-width: 640px) {
    .cc-home-v2 .cc-dashboard-shell.cc-photo-stage {
        min-height: 390px !important;
        padding: 8px !important;
        border-radius: 18px !important;
    }

    .cc-hero-photo-frame {
        inset: 8px;
        border-radius: 15px;
    }

    .cc-hero-photo {
        object-position: 58% 50%;
        transform: scale(1.03);
    }

    .cc-photo-stage .cc-floating-row {
        min-width: 146px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .cc-photo-stage .cc-floating-row span {
        font-size: 0.64rem;
    }

    .cc-photo-stage .cc-floating-row strong {
        font-size: 0.92rem;
    }

    .cc-photo-stage .cc-floating-row-a {
        top: 18px;
        right: 18px;
    }

    .cc-photo-stage .cc-floating-row-b {
        right: 18px;
        bottom: 18px;
    }
}

/* v1.454.1 - tighter first screen rhythm after photo integration */
.cc-home-v2 > .cc-hero {
    padding: clamp(22px, 3.6vw, 56px) 0 clamp(16px, 2.1vw, 30px) !important;
}

.cc-home-v2 .cc-hero {
    min-height: auto !important;
}

.cc-home-v2 .cc-hero-grid {
    padding: clamp(10px, 1.4vw, 20px) 0 8px !important;
}

@media (min-width: 1281px) and (max-width: 1500px) {
    .cc-home-v2 .cc-dashboard-shell.cc-photo-stage {
        min-height: clamp(460px, 34vw, 500px) !important;
    }
}

/* v1.455 - sales-focused trust block copy layout */
.cc-trust-card .cc-security-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.cc-trust-card .cc-security-item {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    grid-template-areas:
        "icon title"
        "icon text";
    align-items: start !important;
    gap: 6px 16px !important;
    padding: 18px !important;
}

.cc-trust-card .cc-security-item > .cc-icon {
    grid-area: icon;
    margin-top: 2px;
}

.cc-trust-card .cc-security-item h3 {
    grid-area: title;
    margin: 0 !important;
}

.cc-trust-card .cc-security-item p {
    grid-area: text;
    margin: 0 !important;
}

@media (max-width: 640px) {
    .cc-trust-card .cc-security-item {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        gap: 6px 12px !important;
        padding: 16px !important;
    }
}

.cc-home-v2 :where(section[id], .cc-trust-grid[id], #contacts) {
    scroll-margin-top: 92px;
}

@media (max-width: 640px) {
    .cc-home-v2 :where(section[id], .cc-trust-grid[id], #contacts) {
        scroll-margin-top: 78px;
    }
}

.admin-pages-page {
    gap: 18px;
}

/* v1.475 - product and competitor analytics landing focus */
html:has(body.shell-guest-nav) {
    background: #f7f9ff !important;
}

body.shell-guest-nav {
    --container: 1480px;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 42%, #f5fbfa 100%) !important;
    color: #171a3d !important;
}

.cc-home-v3,
.cc-home-v3 * {
    letter-spacing: 0 !important;
}

.cc-home-v3 {
    --cc-ink: #151936;
    --cc-muted: #62708f;
    --cc-soft: #f4f6ff;
    --cc-line: rgba(83, 92, 226, 0.15);
    --cc-brand: #535ce2;
    --cc-brand-2: #6870f3;
    --cc-teal: #24a391;
    --cc-amber: #d09a2a;
    --cc-red: #c95a5a;
    --cc-shadow: 0 20px 48px rgba(56, 63, 150, 0.09);
    gap: clamp(18px, 3vw, 40px) !important;
    color: var(--cc-ink) !important;
    font-family: "Manrope", system-ui, sans-serif !important;
}

.cc-home-v3 :where(h1, h2, h3) {
    font-family: "Manrope", system-ui, sans-serif !important;
    font-weight: 650 !important;
    color: var(--cc-ink) !important;
}

.cc-home-v3 h1 {
    max-width: 800px !important;
    font-size: clamp(1.85rem, 2.55vw, 2.75rem) !important;
    font-weight: 520 !important;
    line-height: 1.08 !important;
}

.cc-home-v3 .cc-demand-accent {
    display: inline !important;
    color: #f54353 !important;
    font-weight: 700 !important;
}

.cc-home-v3 h2 {
    font-size: clamp(1.85rem, 2.55vw, 2.75rem) !important;
    font-weight: 520 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

.cc-home-v3 h3 {
    font-size: clamp(1.02rem, 0.98rem + 0.28vw, 1.24rem) !important;
}

.cc-home-v3 p,
.cc-home-v3 small {
    color: var(--cc-muted) !important;
    font-weight: 450 !important;
}

.cc-home-v3 .btn,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v3 .btn {
    min-height: 50px !important;
    border-radius: 8px !important;
    padding: 0 20px !important;
    font-size: 0.92rem !important;
    font-weight: 650 !important;
}

.cc-home-v3 .btn-primary,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v3 .btn-primary {
    border-color: rgba(83, 92, 226, 0.54) !important;
    background: linear-gradient(135deg, var(--cc-brand-2), var(--cc-brand)) !important;
    box-shadow: 0 14px 28px rgba(83, 92, 226, 0.18) !important;
}

.cc-home-v3 .cc-secondary,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v3 .cc-secondary {
    border-color: rgba(83, 92, 226, 0.2) !important;
    background: #ffffff !important;
    color: #444bc8 !important;
}

.cc-home-v3 > .cc-hero {
    min-height: auto !important;
    padding: clamp(30px, 5vw, 78px) clamp(18px, 4vw, 58px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cc-home-v3 .cc-hero-grid {
    grid-template-columns: minmax(420px, 0.86fr) minmax(560px, 1.14fr) !important;
    gap: clamp(26px, 4vw, 72px) !important;
    align-items: start !important;
}

.cc-home-v3 .cc-hero-copy {
    gap: clamp(18px, 2vw, 26px) !important;
}

.cc-home-v3 .cc-lead {
    max-width: 740px !important;
    color: #4f5c7b !important;
    font-size: clamp(1.04rem, 1vw + 0.7rem, 1.28rem) !important;
    font-weight: 450 !important;
}

.cc-home-v3 .cc-hero-proof {
    gap: 10px 16px !important;
}

.cc-home-v3 .cc-hero-proof li {
    color: #53607d !important;
    font-size: 0.9rem !important;
    font-weight: 550 !important;
}

.cc-home-v3 .cc-analytics-console {
    position: relative;
    display: grid;
    align-self: start;
    gap: 14px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cc-console-figure {
    display: grid;
    gap: 12px;
    justify-self: end;
    width: min(108%, 760px);
    min-width: 0;
    margin: 0;
}

.cc-console-shot-frame {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.cc-console-screenshot {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1619 / 1195;
    object-fit: contain;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .cc-console-shot-frame,
    .cc-console-screenshot {
        transition: none !important;
    }
}

.cc-console-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, 420px);
    padding: 4px;
    border: 1px solid rgba(83, 92, 226, 0.13);
    border-radius: 8px;
    background: #f3f5ff;
}

.cc-console-tabs span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #64708f;
    font-size: 0.78rem;
    font-weight: 650;
}

.cc-console-tabs .is-active {
    background: #ffffff;
    color: var(--cc-brand);
    box-shadow: 0 6px 14px rgba(56, 63, 150, 0.09);
}

.cc-console-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(83, 92, 226, 0.12);
}

.cc-console-title span,
.cc-console-head span {
    color: #6b7492;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cc-console-title strong {
    color: var(--cc-ink);
    font-size: clamp(1.1rem, 1.3vw, 1.38rem);
    font-weight: 650;
    text-align: right;
}

.cc-console-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cc-console-kpis article,
.cc-signal-grid article,
.cc-flagship-card,
.cc-market-module-grid article {
    border: 1px solid rgba(83, 92, 226, 0.13);
    border-radius: 8px;
    background: #ffffff;
}

.cc-console-kpis article {
    display: grid;
    gap: 5px;
    min-height: 116px;
    padding: 16px;
}

.cc-console-kpis span {
    color: #6b7492;
    font-size: 0.74rem;
    font-weight: 650;
}

.cc-console-kpis strong {
    color: var(--cc-ink);
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 0.95;
    font-weight: 650;
}

.cc-console-kpis small {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef1ff;
    color: var(--cc-brand) !important;
    font-size: 0.7rem;
    font-weight: 650 !important;
}

.cc-console-table {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(83, 92, 226, 0.12);
    border-radius: 10px;
    background: #f8faff;
}

.cc-console-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.35fr) repeat(4, minmax(72px, 0.7fr));
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid rgba(83, 92, 226, 0.09);
    border-radius: 8px;
    background: #ffffff;
    color: #3d4868;
    font-size: 0.78rem;
    font-weight: 550;
}

.cc-console-row-head {
    min-height: 34px;
    background: transparent;
    border-color: transparent;
    color: #7a84a1;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.cc-console-row.is-hot {
    border-color: rgba(83, 92, 226, 0.22);
    background: linear-gradient(90deg, rgba(83, 92, 226, 0.09), #ffffff 46%);
}

.cc-home-v3 .cc-number-band {
    border-color: rgba(83, 92, 226, 0.28) !important;
    background: linear-gradient(135deg, #171b56 0%, #535ce2 55%, #1f6260 100%) !important;
    box-shadow: 0 22px 46px rgba(83, 92, 226, 0.2) !important;
}

.cc-home-v3 .cc-number-card {
    position: relative;
    min-height: 154px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: start !important;
    align-items: start !important;
    gap: 12px !important;
    padding: clamp(24px, 2vw, 30px) clamp(26px, 2.5vw, 40px) !important;
}

.cc-home-v3 .cc-number-card strong {
    position: relative !important;
    font-family: "Manrope", system-ui, sans-serif !important;
    display: block !important;
    max-width: 100% !important;
    min-height: calc(2.22em + 14px) !important;
    padding-bottom: 14px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    font-size: clamp(1.08rem, 1.32vw, 1.46rem) !important;
    font-weight: 780 !important;
    line-height: 1.08 !important;
}

.cc-home-v3 .cc-number-card strong::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.28));
}

.cc-home-v3 .cc-number-card:first-child strong {
    font-size: clamp(1.08rem, 1.32vw, 1.46rem) !important;
}

.cc-home-v3 .cc-number-card span {
    max-width: 315px;
    font-size: clamp(0.78rem, 0.72rem + 0.14vw, 0.88rem) !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.cc-home-v3 .cc-section,
.cc-home-v3 .cc-opportunity,
.cc-home-v3 .cc-trust-card,
.cc-home-v3 .cc-support-card,
.cc-home-v3 .cc-final-cta {
    border-color: var(--cc-line) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 14px 34px rgba(63, 70, 170, 0.055) !important;
}

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

.cc-flagship-links {
    margin-top: 18px;
    flex-wrap: wrap;
}

.cc-flagship-links .btn {
    min-height: 44px;
    white-space: normal;
}

.cc-flagship-card {
    --cc-flagship-pad: clamp(24px, 2.5vw, 34px);
    --cc-flagship-index-col: clamp(88px, 6.8vw, 112px);
    position: relative;
    display: grid;
    grid-template-columns: var(--cc-flagship-index-col) minmax(0, 1fr);
    gap: clamp(26px, 2.4vw, 34px);
    align-items: start;
    min-height: 198px;
    padding: var(--cc-flagship-pad);
    overflow: hidden;
}

.cc-flagship-card::before {
    content: "";
    position: absolute;
    inset: var(--cc-flagship-pad) auto var(--cc-flagship-pad) calc(var(--cc-flagship-pad) + var(--cc-flagship-index-col) + 24px);
    width: 1px;
    background: linear-gradient(180deg, rgba(83, 92, 226, 0.2), rgba(83, 92, 226, 0.04));
}

.cc-flagship-index {
    position: relative;
    z-index: 1;
    display: block;
    color: #535ce2;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: clamp(2.15rem, 4vw, 3.75rem);
    font-weight: 780;
    line-height: 0.88;
    letter-spacing: 0;
    text-shadow: 0 10px 24px rgba(83, 92, 226, 0.14);
    width: var(--cc-flagship-index-col);
    text-align: center;
}

.cc-flagship-card > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cc-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cc-signal-grid article {
    --cc-signal-line: #535ce2;
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 24px 20px 20px;
}

.cc-signal-grid article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--cc-signal-line);
}

.cc-signal-grid article:nth-child(4n + 1) {
    --cc-signal-line: #535ce2;
}

.cc-signal-grid article:nth-child(4n + 2) {
    --cc-signal-line: #2ba695;
}

.cc-signal-grid article:nth-child(4n + 3) {
    --cc-signal-line: #d09a2a;
}

.cc-signal-grid article:nth-child(4n) {
    --cc-signal-line: #f54353;
}

.cc-signal-grid h3,
.cc-flagship-card h3,
.cc-market-module-grid h3 {
    margin: 0 !important;
}

.cc-home-v3 .cc-signal-grid h3 {
    color: var(--cc-ink) !important;
    font-size: clamp(1rem, 0.92rem + 0.25vw, 1.22rem) !important;
    font-weight: 820 !important;
    line-height: 1.18 !important;
}

.cc-home-v3 .cc-signal-grid p {
    color: #4e587c !important;
    font-size: clamp(0.88rem, 0.82rem + 0.15vw, 0.98rem) !important;
    font-weight: 560 !important;
    line-height: 1.52 !important;
}

.cc-home-v3 .cc-signal-section .cc-section-head p {
    max-width: 790px !important;
    color: #465174 !important;
    font-weight: 620 !important;
}

.cc-home-v3 .cc-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #eef1ff !important;
    color: var(--cc-brand) !important;
    box-shadow: none !important;
}

.cc-home-v3 .cc-icon svg {
    width: 28px;
    height: 28px;
}

.cc-home-v3 .cc-icon-bg {
    fill: currentColor;
    opacity: 0.1;
}

.cc-home-v3 .cc-icon-fill {
    fill: currentColor;
    opacity: 0.78;
}

.cc-home-v3 .cc-icon-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-home-v3 .cc-signal-grid article:nth-child(4n + 2) .cc-icon,
.cc-home-v3 .cc-action-row:nth-child(4) .cc-icon {
    background: #eefaf8 !important;
    color: var(--cc-teal) !important;
}

.cc-home-v3 .cc-signal-grid article:nth-child(4n + 3) .cc-icon,
.cc-home-v3 .cc-action-row:nth-child(5) .cc-icon {
    background: #fff8e9 !important;
    color: var(--cc-amber) !important;
}

.cc-home-v3 .cc-signal-grid article:nth-child(4n) .cc-icon {
    background: #fff0f0 !important;
    color: var(--cc-red) !important;
}

.cc-home-v3 .cc-opportunity {
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr) !important;
}

.cc-home-v3 .cc-action-console {
    border-color: rgba(83, 92, 226, 0.13) !important;
    box-shadow: 0 18px 36px rgba(63, 70, 170, 0.06) !important;
}

.cc-home-v3 .cc-action-row {
    animation: none !important;
    border-color: rgba(83, 92, 226, 0.12) !important;
    background: #fbfcff !important;
}

.cc-home-v3 .cc-action-row.is-hot {
    border-color: rgba(83, 92, 226, 0.26) !important;
    background: linear-gradient(90deg, rgba(83, 92, 226, 0.1), #ffffff 44%) !important;
}

.cc-home-v3 .cc-action-row em,
.cc-home-v3 .cc-console-head strong {
    color: var(--cc-brand) !important;
}

.cc-interface-proof {
    overflow: hidden;
}

.cc-collapse-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: clamp(26px, 4vw, 58px);
}

.cc-collapse-media {
    display: grid;
    align-items: center;
    justify-items: center;
    min-width: 0;
}

.cc-collapse-copy {
    display: grid;
    align-content: center;
    gap: clamp(14px, 1.7vw, 22px);
    min-width: 0;
}

.cc-collapse-eyebrow {
    color: #f54353;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.cc-collapse-copy h2 {
    margin: 0;
    color: var(--cc-ink);
    font-size: clamp(2rem, 2.5vw, 3.3rem);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.05;
}

.cc-collapse-copy > p {
    margin: 0;
    color: #53607d;
    font-size: clamp(1rem, 0.94rem + 0.24vw, 1.18rem);
    font-weight: 600;
    line-height: 1.55;
}

.cc-collapse-points {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.cc-collapse-points article {
    --cc-collapse-line: #535ce2;
    position: relative;
    display: grid;
    gap: 5px;
    padding-left: 18px;
}

.cc-collapse-points article::before {
    content: "";
    position: absolute;
    inset: 4px auto 4px 0;
    width: 3px;
    border-radius: 999px;
    background: var(--cc-collapse-line);
}

.cc-collapse-points article:nth-child(2) {
    --cc-collapse-line: #2ba695;
}

.cc-collapse-points article:nth-child(3) {
    --cc-collapse-line: #f54353;
}

.cc-collapse-points strong {
    color: var(--cc-ink);
    font-size: 1rem;
    font-weight: 780;
    line-height: 1.2;
}

.cc-collapse-points p {
    margin: 0;
    color: #53607d;
    font-size: 0.92rem;
    font-weight: 550;
    line-height: 1.45;
}

.cc-collapse-video-shell {
    position: relative;
    width: min(100%, 720px);
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(11, 22, 36, 0.18);
    border-radius: 16px;
    background: #080d16;
    box-shadow: 0 18px 36px rgba(63, 70, 170, 0.1);
}

.cc-collapse-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #080d16;
    object-fit: contain;
}

.cc-video-play-button {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--cc-brand);
    box-shadow: 0 18px 42px rgba(13, 21, 46, 0.24);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.cc-video-play-button span {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 18px solid currentColor;
}

.cc-video-play-button:hover,
.cc-video-play-button:focus-visible {
    outline: none;
    box-shadow: 0 22px 52px rgba(13, 21, 46, 0.3);
    transform: translate(-50%, -50%) scale(1.06);
}

.cc-collapse-video-shell.is-playing .cc-video-play-button,
.cc-collapse-video-shell.is-played .cc-video-play-button {
    opacity: 0;
    pointer-events: none;
}

.cc-real-screen {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(83, 92, 226, 0.13);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(63, 70, 170, 0.08);
}

.cc-real-screen img {
    display: block;
    width: 100%;
    height: auto;
}

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

.cc-method-grid article {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 20px;
    border: 1px solid rgba(83, 92, 226, 0.13);
    border-radius: 8px;
    background: #ffffff;
}

.cc-method-grid ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    color: #53607d;
    list-style: none;
    line-height: 1.55;
}

.cc-method-grid li {
    position: relative;
    min-height: 22px;
    padding-left: 30px;
    color: #53607d;
    font-size: 0.96rem;
    font-weight: 520;
    line-height: 1.5;
}

.cc-method-grid li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.34em;
    width: 13px;
    height: 7px;
    border-left: 2px solid #078475;
    border-bottom: 2px solid #078475;
    border-radius: 1px;
    transform: rotate(-45deg);
}

.cc-home-v3 .cc-steps-section .cc-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.cc-home-v3 .cc-step {
    min-height: 238px !important;
}

.cc-home-v3 .cc-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-home-v3 .cc-step-index {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 8px;
    background: #f4f6ff;
    color: var(--cc-brand);
    font-size: 0.78rem;
    font-weight: 700;
}

.cc-home-v3 .cc-tariff-card,
.cc-home-v3 .cc-security-item,
.cc-home-v3 .cc-faq-item {
    border-color: rgba(83, 92, 226, 0.13) !important;
}

.cc-home-v3 .cc-tariff-title span {
    border-color: rgba(83, 92, 226, 0.18) !important;
    background: #eef1ff !important;
    color: var(--cc-brand) !important;
    font-weight: 650 !important;
}

.cc-home-v3 .cc-tariff-card header strong {
    font-family: "Manrope", system-ui, sans-serif !important;
    font-weight: 650 !important;
}

.cc-home-v3 .cc-tariff-card.is-featured {
    border-color: rgba(83, 92, 226, 0.28) !important;
    background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 56%) !important;
}

.cc-home-v3 .cc-final-cta {
    background: linear-gradient(135deg, #ffffff 0%, #f3f5ff 100%) !important;
}

.cc-market-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cc-market-module-grid article {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 218px;
    padding: clamp(18px, 2vw, 24px);
    box-shadow: 0 14px 28px rgba(63, 70, 170, 0.055);
}

.cc-market-module-grid .cc-seo-icon {
    width: 52px !important;
    height: 52px !important;
}

.cc-market-module-grid p {
    color: #4e587c !important;
    font-size: 0.93rem;
    font-weight: 550 !important;
    line-height: 1.5 !important;
}

@media (max-width: 1280px) {
    .cc-home-v3 .cc-opportunity {
        grid-template-columns: 1fr !important;
    }

    .cc-signal-grid,
    .cc-market-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-home-v3 .cc-steps-section .cc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1120px) {
    .cc-home-v3 .cc-hero-grid {
        grid-template-columns: 1fr !important;
    }

    .cc-console-figure {
        width: 100%;
    }
}

@media (max-width: 1080px) {
    .cc-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .cc-collapse-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cc-collapse-copy {
        order: -1;
    }

    .cc-collapse-copy h2 {
        font-size: clamp(1.7rem, 6vw, 2.35rem);
    }
}

@media (max-width: 760px) {
    .cc-home-v3 > .cc-hero {
        width: calc(100% - 24px) !important;
        margin-inline: auto !important;
        padding: 24px 16px !important;
        border-radius: 14px !important;
    }

    .cc-home-v3 h1 {
        font-size: clamp(1.58rem, 6.3vw, 1.95rem) !important;
    }

    .cc-console-kpis,
    .cc-flagship-grid,
    .cc-signal-grid,
    .cc-market-module-grid,
    .cc-method-grid,
    .cc-home-v3 .cc-steps-section .cc-steps {
        grid-template-columns: 1fr !important;
    }

    .cc-video-play-button {
        width: 60px;
        height: 60px;
    }

    .cc-video-play-button span {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 15px;
    }

    .cc-console-row {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(62px, auto));
    }

    .cc-console-row span:nth-child(4),
    .cc-console-row span:nth-child(5) {
        display: none;
    }

    .cc-flagship-card {
        --cc-flagship-pad: 18px;
        --cc-flagship-index-col: 54px;
        grid-template-columns: var(--cc-flagship-index-col) minmax(0, 1fr);
        gap: 18px;
        min-height: 0;
        padding: var(--cc-flagship-pad);
    }

    .cc-flagship-card::before {
        inset: var(--cc-flagship-pad) auto var(--cc-flagship-pad) calc(var(--cc-flagship-pad) + var(--cc-flagship-index-col) + 12px);
    }

    .cc-flagship-index {
        font-size: 2rem;
    }

    .cc-home-v3 .cc-section,
    .cc-home-v3 .cc-opportunity,
    .cc-home-v3 .cc-trust-card,
    .cc-home-v3 .cc-support-card,
    .cc-home-v3 .cc-final-cta {
        border-radius: 12px !important;
    }
}

.admin-pages-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(104, 112, 243, 0.12), rgba(43, 166, 149, 0.1)),
        rgba(255, 255, 255, 0.88);
}

.admin-pages-hero-copy,
.admin-pages-hero-metrics,
.admin-page-card,
.admin-editor-note,
.admin-toggle-card {
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
}

.admin-pages-hero-copy {
    padding: 24px;
}

.admin-pages-hero-copy > span,
.admin-page-card-head span,
.admin-pages-hero-metrics em,
.admin-page-status-list em {
    color: #607082;
    font-size: 0.78rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-pages-hero-copy h2 {
    margin: 8px 0 10px;
    color: #18203d;
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    line-height: 1.08;
}

.admin-pages-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #56627a;
    line-height: 1.65;
}

.admin-pages-hero-metrics,
.admin-page-status-list {
    display: grid;
    gap: 10px;
}

.admin-pages-hero-metrics {
    padding: 16px;
}

.admin-pages-hero-metrics span,
.admin-page-status-list span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(247, 249, 255, 0.88);
}

.admin-pages-hero-metrics strong,
.admin-page-status-list strong {
    color: #17213f;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.admin-pages-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.admin-page-card {
    padding: 20px;
}

.admin-page-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.admin-page-card-head h3 {
    margin: 5px 0 0;
    color: #19213d;
    font-size: 1.25rem;
}

.admin-home-legal-preview {
    display: grid;
    gap: 4px;
    min-height: 72px;
    align-content: center;
    padding: 16px;
    border: 1px dashed rgba(104, 112, 243, 0.26);
    border-radius: 14px;
    background: rgba(247, 249, 255, 0.86);
    color: rgba(53, 65, 88, 0.78);
    font-size: 0.74rem;
    line-height: 1.45;
}

.admin-home-legal-preview.is-muted {
    color: #7d8898;
    background: rgba(245, 247, 251, 0.72);
}

.admin-pages-editor {
    padding: 22px;
}

.admin-legal-form {
    gap: 18px;
}

.admin-toggle-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    cursor: pointer;
}

.admin-toggle-card input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #535ce2;
}

.admin-toggle-card strong {
    display: block;
    color: #17213f;
    font-size: 1rem;
}

.admin-toggle-card small {
    display: block;
    margin-top: 4px;
    color: #65708f;
    line-height: 1.45;
}

.admin-legal-fields {
    grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
}

.admin-editor-note {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(43, 166, 149, 0.08);
    border-color: rgba(43, 166, 149, 0.18);
}

.admin-editor-note strong {
    color: #11695f;
}

.admin-editor-note span {
    color: #59667e;
    line-height: 1.55;
}

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

html[data-theme="dark"] .admin-pages-hero {
    background:
        linear-gradient(135deg, rgba(104, 112, 243, 0.18), rgba(43, 166, 149, 0.12)),
        rgba(17, 25, 32, 0.9);
    border-color: rgba(126, 156, 178, 0.22);
}

html[data-theme="dark"] .admin-pages-hero-copy,
html[data-theme="dark"] .admin-pages-hero-metrics,
html[data-theme="dark"] .admin-page-card,
html[data-theme="dark"] .admin-editor-note,
html[data-theme="dark"] .admin-toggle-card {
    background: rgba(17, 25, 32, 0.78);
    border-color: rgba(126, 156, 178, 0.22);
}

html[data-theme="dark"] .admin-pages-hero-copy h2,
html[data-theme="dark"] .admin-page-card-head h3,
html[data-theme="dark"] .admin-pages-hero-metrics strong,
html[data-theme="dark"] .admin-page-status-list strong,
html[data-theme="dark"] .admin-toggle-card strong {
    color: #eef5ff;
}

html[data-theme="dark"] .admin-pages-hero-copy p,
html[data-theme="dark"] .admin-toggle-card small,
html[data-theme="dark"] .admin-editor-note span {
    color: #b7c6dc;
}

html[data-theme="dark"] .admin-pages-hero-metrics span,
html[data-theme="dark"] .admin-page-status-list span,
html[data-theme="dark"] .admin-home-legal-preview {
    background: rgba(23, 34, 43, 0.82);
}

html[data-theme="dark"] .admin-home-legal-preview {
    color: rgba(221, 230, 245, 0.78);
}

@media (max-width: 980px) {
    .admin-pages-hero,
    .admin-pages-grid,
    .admin-legal-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-pages-hero,
    .admin-page-card,
    .admin-pages-editor {
        border-radius: 12px;
        padding: 16px;
    }

    .admin-pages-hero-copy {
        padding: 18px;
    }

    .admin-page-card-head,
    .admin-pages-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-pages-actions .btn,
    .admin-page-card-head .btn {
        width: 100%;
    }
}

/* Admin stability board */
.stability-shell {
    display: grid;
    gap: 16px;
}

.stability-page-header,
.cc-page-header.stability-page-header,
.stability-page-header .cc-page-header-main,
.stability-page-header .cc-page-header-actions {
    position: relative;
    overflow: visible !important;
}

.stability-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    border-bottom: 1px solid rgba(136, 140, 213, 0.2);
    color: #536078;
    font-size: 0.82rem;
    padding: 0 2px 12px;
}

.stability-toolbar-auto {
    margin-left: auto;
    color: #778198;
    font-size: 0.76rem;
}

.stability-toolbar-indicator {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #94a3b8;
}

.stability-toolbar-indicator.is-ok {
    background: #16a34a;
}

.stability-toolbar-indicator.is-warning {
    background: #f59e0b;
}

.stability-toolbar-indicator.is-error {
    background: #dc2626;
}

.stability-toolbar-indicator.is-loading {
    border: 2px solid rgba(104, 112, 243, 0.2);
    border-top-color: #6870f3;
    background: transparent;
    animation: stability-spin 0.8s linear infinite;
}

.stability-refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.stability-refresh-button.is-loading > span:first-child {
    animation: stability-spin 0.8s linear infinite;
}

.stability-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.stability-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    background: #ffffff;
    padding: 18px 20px;
}

.stability-overview.stability-status-warning {
    border-left-color: #f59e0b;
}

.stability-overview.stability-status-critical {
    border-left-color: #dc2626;
}

.stability-overview-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.stability-overview-main h2 {
    margin: 3px 0 5px;
    color: #17213f;
    font-size: 1.55rem;
    line-height: 1.15;
}

.stability-overview-main p {
    max-width: 760px;
    margin: 0;
    color: #56627a;
    font-size: 0.88rem;
    line-height: 1.45;
}

.stability-eyebrow {
    display: inline-flex;
    color: #607082;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.stability-big-lamp {
    display: inline-block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 4px solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.stability-lamp {
    display: inline-block;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.stability-lamp-ok {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18), 0 0 20px rgba(22, 163, 74, 0.42);
}

.stability-lamp-warning {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 0 20px rgba(245, 158, 11, 0.34);
}

.stability-lamp-critical {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18), 0 0 20px rgba(220, 38, 38, 0.36);
}

.stability-lamp-idle {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.stability-big-lamp.stability-lamp-ok,
.stability-big-lamp.stability-lamp-warning,
.stability-big-lamp.stability-lamp-critical,
.stability-big-lamp.stability-lamp-idle {
    border-width: 4px;
}

.stability-summary-counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    margin: 0;
}

.stability-summary-counts > div {
    display: grid;
    gap: 3px;
    min-width: 0;
    border-left: 1px solid rgba(136, 140, 213, 0.2);
    padding: 5px 14px;
}

.stability-summary-counts dt,
.stability-lamp-card small,
.stability-lamp-card p,
.stability-action-row small,
.stability-error-row small,
.stability-empty span {
    color: #65708f;
}

.stability-summary-counts dt {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.stability-summary-counts dd {
    margin: 0;
    color: #17213f;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.stability-section-list {
    display: grid;
    gap: 22px;
}

.stability-group {
    display: grid;
    gap: 14px;
}

.stability-group-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.stability-group-head h2,
.stability-panel-head h2 {
    margin: 4px 0 0;
    color: #17213f;
    font-size: clamp(1.28rem, 1.6vw, 1.8rem);
    line-height: 1.15;
}

.stability-group-head p {
    max-width: 720px;
    margin: 7px 0 0;
    color: #65708f;
    line-height: 1.5;
}

.stability-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: #17213f;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 9px 13px;
    white-space: nowrap;
}

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

.stability-lamp-card,
.stability-panel {
    min-width: 0;
    border: 1px solid rgba(136, 140, 213, 0.18);
    border-radius: 8px;
    background: #ffffff;
}

.stability-lamp-card {
    display: grid;
    gap: 10px;
    min-height: 156px;
    border-left: 3px solid #94a3b8;
    padding: 16px;
}

.stability-lamp-card.stability-status-ok,
.stability-action-row.stability-status-ok {
    border-color: color-mix(in srgb, var(--ok), var(--border) 64%);
}

.stability-lamp-card.stability-status-ok {
    border-left-color: #16a34a;
}

.stability-lamp-card.stability-status-warning,
.stability-action-row.stability-status-warning,
.stability-error-row.stability-status-warning {
    border-color: color-mix(in srgb, var(--warning), var(--border) 56%);
    background: color-mix(in srgb, var(--warning), #ffffff 95%);
}

.stability-lamp-card.stability-status-warning {
    border-left-color: #f59e0b;
}

.stability-lamp-card.stability-status-critical,
.stability-action-row.stability-status-critical,
.stability-error-row.stability-status-critical {
    border-color: color-mix(in srgb, var(--danger), var(--border) 54%);
    background: color-mix(in srgb, var(--danger), #ffffff 96%);
}

.stability-lamp-card.stability-status-critical {
    border-left-color: #dc2626;
}

.stability-lamp-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.stability-lamp-card-head strong,
.stability-action-row strong,
.stability-error-row strong,
.stability-empty strong {
    display: block;
    overflow-wrap: anywhere;
    color: #17213f;
    font-size: 0.96rem;
    line-height: 1.25;
}

.stability-lamp-card small,
.stability-action-row small,
.stability-error-row small {
    display: block;
    margin-top: 3px;
    font-size: 0.76rem;
    line-height: 1.35;
}

.stability-lamp-card b {
    display: block;
    color: #17213f;
    font-size: clamp(1.18rem, 1.2vw, 1.48rem);
    line-height: 1;
}

.stability-lamp-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.stability-lamp-card a,
.stability-action-row {
    color: var(--ui-primary-strong, #535ce2);
    font-weight: 900;
    text-decoration: none;
}

.stability-lamp-card a {
    align-self: end;
    width: max-content;
    font-size: 0.82rem;
}

.stability-lamp-card a:hover,
.stability-action-row:hover {
    text-decoration: underline;
}

.stability-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr) minmax(300px, 0.85fr);
    gap: 14px;
}

.stability-panel {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
}

.stability-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.stability-panel-head strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(104, 112, 243, 0.1);
    color: var(--ui-primary-strong, #535ce2);
    font-weight: 950;
}

.stability-action-list,
.stability-error-list {
    display: grid;
    gap: 9px;
}

.stability-action-row,
.stability-error-row,
.stability-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 6px;
    background: #ffffff;
    padding: 12px;
}

.stability-error-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.stability-action-row b {
    color: #17213f;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stability-error-row strong {
    max-height: 2.6em;
    overflow: hidden;
}

.stability-empty {
    grid-template-columns: minmax(0, 1fr);
    background: #f7f9fc;
}

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

.stability-skeleton-card {
    display: grid;
    gap: 12px;
    min-height: 156px;
    border: 1px solid rgba(136, 140, 213, 0.16);
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
}

.stability-skeleton {
    display: block;
    border-radius: 4px;
    background: linear-gradient(90deg, #edf0f6 20%, #f8f9fc 38%, #edf0f6 56%);
    background-size: 220% 100%;
    animation: stability-shimmer 1.25s ease-in-out infinite;
}

.stability-skeleton-lamp {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.stability-skeleton-copy {
    display: grid;
    gap: 8px;
}

.stability-skeleton-line {
    width: 100%;
    height: 11px;
}

.stability-skeleton-line.is-short {
    width: min(120px, 55%);
}

.stability-skeleton-title {
    width: min(260px, 80%);
    height: 26px;
}

.stability-skeleton-value {
    width: min(110px, 54%);
    height: 24px;
}

.stability-load-error {
    display: grid;
    justify-items: start;
    gap: 7px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    background: #fffafa;
    color: #536078;
    padding: 18px;
}

.stability-load-error strong {
    color: #17213f;
}

@keyframes stability-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes stability-shimmer {
    to {
        background-position-x: -220%;
    }
}

html[data-theme="dark"] .stability-toolbar {
    border-color: rgba(126, 156, 178, 0.2);
    color: #b7c6dc;
}

html[data-theme="dark"] .stability-toolbar-auto {
    color: #8fa1b8;
}

html[data-theme="dark"] .stability-overview,
html[data-theme="dark"] .stability-section-badge,
html[data-theme="dark"] .stability-lamp-card,
html[data-theme="dark"] .stability-panel,
html[data-theme="dark"] .stability-action-row,
html[data-theme="dark"] .stability-error-row,
html[data-theme="dark"] .stability-empty {
    background: #111920;
    border-color: rgba(126, 156, 178, 0.22);
}

html[data-theme="dark"] .stability-overview-main h2,
html[data-theme="dark"] .stability-summary-counts dd,
html[data-theme="dark"] .stability-group-head h2,
html[data-theme="dark"] .stability-panel-head h2,
html[data-theme="dark"] .stability-section-badge,
html[data-theme="dark"] .stability-lamp-card-head strong,
html[data-theme="dark"] .stability-lamp-card b,
html[data-theme="dark"] .stability-action-row strong,
html[data-theme="dark"] .stability-action-row b,
html[data-theme="dark"] .stability-error-row strong,
html[data-theme="dark"] .stability-empty strong {
    color: #eef5ff;
}

html[data-theme="dark"] .stability-overview-main p,
html[data-theme="dark"] .stability-group-head p,
html[data-theme="dark"] .stability-summary-counts dt,
html[data-theme="dark"] .stability-lamp-card small,
html[data-theme="dark"] .stability-lamp-card p,
html[data-theme="dark"] .stability-action-row small,
html[data-theme="dark"] .stability-error-row small,
html[data-theme="dark"] .stability-empty span {
    color: #b7c6dc;
}

html[data-theme="dark"] .stability-skeleton-card {
    border-color: rgba(126, 156, 178, 0.2);
    background: #111920;
}

html[data-theme="dark"] .stability-skeleton {
    background: linear-gradient(90deg, #1d2933 20%, #273642 38%, #1d2933 56%);
    background-size: 220% 100%;
}

html[data-theme="dark"] .stability-load-error {
    border-color: rgba(240, 125, 125, 0.32);
    border-left-color: #f07d7d;
    background: #21191c;
    color: #b7c6dc;
}

html[data-theme="dark"] .stability-load-error strong {
    color: #eef5ff;
}

@media (max-width: 1180px) {
    .stability-lamp-grid,
    .stability-bottom-grid,
    .stability-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .stability-summary-counts > div:first-child {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 840px) {
    .stability-bottom-grid,
    .stability-lamp-grid,
    .stability-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .stability-group-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .stability-overview,
    .stability-lamp-card,
    .stability-panel {
        padding: 14px;
    }

    .stability-big-lamp {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .stability-summary-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 0;
    }

    .stability-summary-counts > div:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .stability-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .stability-toolbar-auto {
        flex: 0 0 100%;
        margin-left: 19px;
    }

    .stability-action-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .stability-action-row b {
        grid-column: 2;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stability-toolbar-indicator.is-loading,
    .stability-refresh-button.is-loading > span:first-child,
    .stability-skeleton {
        animation: none;
    }
}

html:not([data-theme="dark"]) body.shell-auth .competitor-top-product-row {
    border-radius: 10px !important;
    background: #ffffff;
}

html:not([data-theme="dark"]) body.shell-auth .competitor-top-product-thumb {
    border-radius: 10px;
}

/* v1.458: bounded admin data regions */
body.shell-auth :where(.settings-page, .admin-billing-page, .admin-monitoring-panel) {
    --cc-admin-list-max: min(680px, 62vh);
    --cc-admin-table-max: min(620px, 58vh);
    --cc-admin-compact-list-max: min(460px, 48vh);
}

.admin-monitoring-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-console-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.admin-console-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-console-hero-copy h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2vw, 2rem);
    letter-spacing: 0;
}

.admin-console-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.admin-console-nav-card {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 255, 255, 0.96));
    color: inherit;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(35, 42, 88, 0.08);
}

.admin-console-nav-card:hover,
.admin-console-nav-card.is-active {
    border-color: rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.admin-console-nav-card.is-active {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand-500), transparent 86%), transparent 58%),
        var(--surface);
    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.14);
}

.admin-console-nav-card strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.admin-console-nav-card span {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.admin-console-anchor {
    display: block;
    height: 1px;
    scroll-margin-top: 96px;
}

.admin-monitoring-panel .admin-console-section {
    margin: 0;
}

.admin-monitoring-panel .admin-console-section[hidden] {
    display: none !important;
}

.admin-monitoring-panel :where(.admin-users-list, .speed-row-list, .audit-list, .security-event-list, .source-lock-list) {
    max-height: var(--cc-admin-list-max);
    overflow: auto;
    overscroll-behavior: contain;
}

.admin-monitoring-panel :where(.backup-table-wrap, .table-wrap) {
    max-height: var(--cc-admin-table-max);
    overflow: auto;
}

html[data-theme="dark"] .admin-console-nav-card {
    background: linear-gradient(135deg, rgba(18, 26, 46, 0.96), rgba(24, 32, 58, 0.92));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

html[data-theme="dark"] .admin-console-nav-card.is-active {
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.22), transparent 68%),
        rgba(15, 23, 42, 0.96);
    border-color: rgba(129, 140, 248, 0.68);
}

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

body.shell-auth :where(.settings-page, .admin-billing-page) :where(
    .tenant-management-list,
    .speed-row-list,
    .audit-list,
    .security-event-list,
    .source-lock-list,
    .billing-admin-request-list,
    .admin-billing-inbox-list
) {
    max-height: var(--cc-admin-list-max) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 2px 6px 2px 2px;
}

body.shell-auth :where(.settings-page, .admin-billing-page) :where(
    .audit-list,
    .security-event-list,
    .source-lock-list,
    .billing-admin-request-list,
    .admin-billing-inbox-list
) {
    max-height: var(--cc-admin-compact-list-max) !important;
}

body.shell-auth :where(.settings-page, .admin-billing-page) :where(
    .tenant-management-list,
    .speed-row-list,
    .audit-list,
    .security-event-list,
    .source-lock-list,
    .billing-admin-request-list,
    .admin-billing-inbox-list
) > :first-child {
    margin-top: 0;
}

body.shell-auth :where(.settings-page, .admin-billing-page) :where(
    .tenant-management-list,
    .speed-row-list,
    .audit-list,
    .security-event-list,
    .source-lock-list,
    .billing-admin-request-list,
    .admin-billing-inbox-list
) > :last-child {
    margin-bottom: 0;
}

body.shell-auth :where(.settings-page, .admin-billing-page) :where(
    .settings-tab-section .table-wrap,
    .billing-center-card .table-wrap,
    .admin-billing-events-table,
    .backup-table-wrap,
    .billing-admin-table
) {
    max-height: var(--cc-admin-table-max) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body.shell-auth :where(
    .admin-user-card[open],
    .billing-plan-details[open],
    .billing-invoice-details[open]
) {
    overflow: visible !important;
}

body.shell-auth :where(.settings-page, .admin-billing-page) :where(.table-wrap table thead th) {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--surface);
    box-shadow: 0 1px 0 var(--border);
}

body.shell-auth :where(.settings-page, .admin-billing-page) :where(.billing-admin-table-head) {
    position: sticky;
    top: 0;
    z-index: 4;
    background: color-mix(in srgb, var(--surface), var(--bg) 10%);
    box-shadow: 0 1px 0 var(--border);
}

body.shell-auth :where(.settings-page, .admin-billing-page) :where(.settings-pagination) {
    position: sticky;
    bottom: 0;
    z-index: 5;
    border: 1px solid color-mix(in srgb, var(--border), transparent 18%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface), var(--bg) 10%);
    padding: 10px;
    box-shadow: 0 -12px 26px rgba(44, 50, 120, 0.06);
}

body.shell-auth :where(.custom-select-menu) {
    max-height: min(280px, 42vh) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (max-width: 760px) {
    body.shell-auth :where(.settings-page, .admin-billing-page) {
        --cc-admin-list-max: min(580px, 70vh);
        --cc-admin-table-max: min(540px, 66vh);
        --cc-admin-compact-list-max: min(420px, 62vh);
    }

    body.shell-auth :where(.settings-page, .admin-billing-page) :where(
        .tenant-management-list,
        .speed-row-list,
        .audit-list,
        .security-event-list,
        .source-lock-list,
        .billing-admin-request-list,
        .admin-billing-inbox-list
    ) {
        padding-right: 2px;
    }
}

/* v1.465: admin project switcher in topbar */
.project-switcher {
    display: flex;
    flex: 1 1 520px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.project-switcher-kicker {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-switcher-track {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    padding: 3px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 14px 32px rgba(35, 42, 88, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
}

.project-switcher-option {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: color-mix(in srgb, var(--text-main), var(--text-muted) 16%);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.project-switcher-option:hover,
.project-switcher-option:focus-visible {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.62);
}

.project-switcher-option:focus-visible {
    outline: 2px solid rgba(83, 92, 226, 0.42);
    outline-offset: 2px;
}

.project-switcher-option.is-active {
    color: #343aa4;
    border-color: rgba(83, 92, 226, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 243, 255, 0.92));
    box-shadow: 0 10px 24px rgba(66, 72, 174, 0.14);
}

.project-switcher-name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-switcher-note {
    color: currentColor;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    opacity: 0.58;
    white-space: nowrap;
}

.prom-analytics-placeholder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: stretch;
}

.prom-analytics-placeholder-copy,
.prom-analytics-placeholder-card {
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 44px rgba(35, 42, 88, 0.08);
}

.prom-analytics-placeholder-copy {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
}

.prom-analytics-placeholder-copy > span,
.prom-analytics-placeholder-card span {
    color: #535ce2;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.prom-analytics-placeholder-copy h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.45rem, 2.3vw, 2.25rem);
    letter-spacing: 0;
}

.prom-analytics-placeholder-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.prom-analytics-placeholder-grid {
    display: grid;
    gap: 10px;
}

.prom-analytics-placeholder-card {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.prom-analytics-placeholder-card strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.prom-analytics-placeholder-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.prom-analytics-page {
    display: grid;
    gap: 14px;
}

body.shell-prom-analytics .cc-page-header.prom-analytics-page-header {
    min-height: 0;
    padding: 18px 22px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9)),
        #fff;
    box-shadow: 0 18px 46px rgba(35, 42, 88, 0.08);
}

body.shell-prom-analytics .prom-analytics-page-header .cc-page-header-main {
    align-items: center;
}

body.shell-prom-analytics .prom-analytics-page-header .cc-page-title {
    font-size: 3rem;
    line-height: 0.96;
}

body.shell-prom-analytics .prom-analytics-page-header .cc-page-subtitle {
    max-width: 760px;
    font-size: 1.02rem;
}

body.shell-prom-analytics .prom-analytics-page-header .cc-page-header-actions {
    align-items: center;
}

.prom-analytics-page.is-filter-only {
    gap: 0;
}

.prom-analytics-hero,
.prom-filter-panel,
.prom-panel {
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(35, 42, 88, 0.08);
    min-width: 0;
}

.prom-analytics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 16px;
    align-items: stretch;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(83, 92, 226, 0.1), rgba(43, 166, 149, 0.09)),
        rgba(255, 255, 255, 0.82);
}

.prom-analytics-hero-copy {
    display: grid;
    align-content: center;
    gap: 8px;
}

.prom-analytics-hero-copy > span,
.prom-panel-head span,
.prom-filter-head span:not(.badge) {
    color: #535ce2;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.prom-analytics-hero-copy h2,
.prom-filter-head h2,
.prom-panel-head h2 {
    margin: 0;
    color: var(--text-primary);
    letter-spacing: 0;
}

.prom-analytics-hero-copy h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.55rem);
    line-height: 1.05;
}

.prom-analytics-hero-copy p,
.prom-filter-head p,
.prom-pipeline p,
.prom-module-list span {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.52;
}

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

.prom-analytics-metrics span,
.prom-pipeline article {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.86);
}

.prom-analytics-metrics em {
    color: #687084;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.prom-analytics-metrics strong {
    color: var(--text-primary);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.prom-filter-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.prom-filter-form-grid {
    display: grid;
    gap: 16px;
}

.prom-search-entry {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(96px, 0.14fr) auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(83, 92, 226, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(83, 92, 226, 0.08), rgba(38, 185, 195, 0.08)),
        rgba(248, 250, 255, 0.92);
}

.prom-search-entry-field,
.prom-search-mini-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.prom-search-entry-field span,
.prom-search-mini-field span {
    color: #343aa4;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-search-entry-field input,
.prom-search-mini-field input,
.prom-search-main-input input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(83, 92, 226, 0.28);
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    outline: none;
}

.prom-search-entry-field input {
    min-height: 54px;
    padding: 0 16px;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(35, 42, 88, 0.07);
}

.prom-search-mini-field input {
    min-height: 44px;
    padding: 0 10px;
    font-weight: 800;
}

.prom-search-entry-field input:focus,
.prom-search-mini-field input:focus,
.prom-search-main-input input:focus {
    border-color: rgba(83, 92, 226, 0.58);
    box-shadow: 0 0 0 4px rgba(83, 92, 226, 0.12);
}

.prom-search-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(43, 166, 149, 0.22);
    border-radius: 8px;
    background: rgba(236, 253, 245, 0.82);
    color: #11695f;
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
}

.prom-search-check input {
    accent-color: #535ce2;
}

.prom-filter-head,
.prom-panel-head,
.prom-category-branch-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.prom-filter-head > div,
.prom-panel-head > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

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

.prom-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.prom-field-wide {
    grid-column: span 2;
}

.prom-field-keywords {
    grid-column: span 2;
}

.prom-field span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.prom-field input,
.prom-field select,
.prom-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.86);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9rem;
    padding: 0 12px;
    outline: none;
}

.prom-field textarea {
    min-height: 132px;
    padding: 12px;
    resize: vertical;
}

.prom-field select {
    appearance: auto;
}

.prom-field input:focus,
.prom-field select:focus,
.prom-field textarea:focus {
    border-color: rgba(83, 92, 226, 0.5);
    box-shadow: 0 0 0 3px rgba(83, 92, 226, 0.12);
}

.prom-filter-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.prom-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
}

.prom-panel {
    padding: 18px;
}

body.shell-prom-analytics .prom-search-workspace .prom-panel,
body.shell-prom-analytics .prom-search-results .prom-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(35, 42, 88, 0.07);
}

.prom-filter-panel-only {
    min-height: 0;
}

.prom-panel-head {
    margin-bottom: 14px;
}

.prom-selected-path {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-weight: 800;
}

.prom-selected-path span {
    border: 1px solid rgba(43, 166, 149, 0.2);
    border-radius: 999px;
    background: rgba(43, 166, 149, 0.09);
    color: #11695f;
    padding: 5px 10px;
}

.prom-selected-path b {
    color: rgba(104, 112, 243, 0.5);
}

.prom-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.prom-pipeline article > span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #535ce2;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.prom-pipeline strong,
.prom-module-list strong,
.prom-category-card strong {
    color: var(--text-primary);
}

.prom-module-list {
    display: grid;
    gap: 8px;
}

.prom-module-list a {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.78);
    color: inherit;
    padding: 13px;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.prom-module-list a:hover,
.prom-module-list a:focus-visible,
.prom-module-list a.is-active {
    border-color: rgba(83, 92, 226, 0.38);
    background: rgba(241, 243, 255, 0.96);
    transform: translateY(-1px);
}

.prom-products-notes,
.prom-parser-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: 18px;
    align-items: start;
}

.prom-note-composer {
    display: grid;
    gap: 14px;
}

.prom-field-full {
    grid-column: 1 / -1;
}

.prom-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prom-note-empty {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 1px dashed rgba(83, 92, 226, 0.26);
    border-radius: 8px;
    background: rgba(241, 243, 255, 0.62);
}

.prom-note-empty strong,
.prom-note-meta strong {
    color: var(--text-primary);
}

.prom-note-empty p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.prom-note-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 11px 0 0;
    border-top: 1px solid rgba(104, 112, 243, 0.12);
}

.prom-note-meta span {
    color: var(--text-muted);
    font-weight: 800;
}

.prom-products-board,
.prom-parser-layout {
    display: grid;
    gap: 18px;
}

.prom-search-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.prom-search-command {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    gap: 12px;
}

.prom-search-main-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.prom-search-main-input {
    display: grid;
    gap: 7px;
}

.prom-search-main-input span {
    color: #535ce2;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-search-main-input input {
    min-height: 56px;
    padding: 0 16px;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(35, 42, 88, 0.09);
}

.prom-search-command .prom-parser-submit-row {
    align-items: center;
    justify-content: flex-end;
    min-width: max-content;
}

.prom-search-command .prom-parser-submit-row .btn {
    min-height: 56px;
}

.prom-search-controls {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(320px, 1.35fr) minmax(220px, 0.65fr);
    gap: 10px;
}

.prom-search-selection-plan {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(83, 92, 226, 0.07), rgba(38, 185, 195, 0.06)),
        rgba(248, 250, 255, 0.86);
}

.prom-search-selection-plan span {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.78);
}

.prom-search-selection-plan em,
.prom-search-selection-plan small {
    color: var(--text-muted);
    font-style: normal;
    font-weight: 800;
}

.prom-search-selection-plan em {
    font-size: 0.65rem;
    text-transform: uppercase;
}

.prom-search-selection-plan strong {
    color: var(--text-primary);
    font-size: 1.08rem;
    font-variant-numeric: tabular-nums;
}

.prom-search-selection-plan small {
    font-size: 0.72rem;
}

.prom-category-analysis-command {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 14px;
}

.prom-category-analysis-form {
    display: grid;
    gap: 12px;
}

.prom-category-cascade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.prom-category-select-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.prom-category-select-field.is-hidden {
    display: none;
}

.prom-category-select-field span {
    color: #535ce2;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-category-select-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 38px 0 14px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    font-weight: 850;
    outline: none;
    box-shadow: 0 12px 26px rgba(35, 42, 88, 0.06);
}

.prom-category-select-field select:focus {
    border-color: rgba(83, 92, 226, 0.58);
    box-shadow:
        0 0 0 3px rgba(83, 92, 226, 0.12),
        0 12px 26px rgba(35, 42, 88, 0.08);
}

.prom-category-selected-path {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(104, 112, 243, 0.07), rgba(38, 185, 195, 0.05)),
        rgba(248, 250, 255, 0.84);
}

.prom-category-selected-path em {
    display: inline-grid;
    width: 24px;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(83, 92, 226, 0.12);
    color: #535ce2;
    font-style: normal;
    font-weight: 900;
}

.prom-category-selected-path span {
    flex: 1;
    min-width: 0;
    color: var(--text-primary);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.prom-category-selected-path strong {
    color: #535ce2;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.prom-category-analysis-actions {
    display: grid;
    grid-template-columns: minmax(240px, 0.46fr) minmax(220px, 0.54fr);
    gap: 10px;
    align-items: stretch;
}

.prom-category-analysis-actions .btn {
    min-height: 54px;
}

.prom-category-analysis-actions > .btn:only-child {
    grid-column: 1 / -1;
}

.prom-category-analysis-actions .btn:disabled {
    cursor: not-allowed;
    opacity: 0.54;
    filter: saturate(0.7);
}

.prom-search-status {
    position: static;
    z-index: auto;
    display: grid;
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: minmax(220px, 0.42fr) minmax(360px, 1.08fr);
    gap: 16px 20px;
    align-items: center;
    align-self: start;
    width: 100%;
    height: fit-content;
    max-height: none;
    overflow: visible;
}

.prom-search-status[data-prom-job-status] {
    grid-template-columns: minmax(230px, 0.4fr) minmax(320px, 0.9fr) minmax(300px, 1fr);
}

.prom-search-status > .prom-panel-head {
    margin-bottom: 0;
}

.prom-search-status > .prom-panel-head h2 {
    white-space: nowrap;
}

.prom-search-progress-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    padding: 14px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(104, 112, 243, 0.09), rgba(38, 185, 195, 0.07)),
        rgba(248, 250, 255, 0.84);
}

.prom-search-status > .prom-search-progress-card {
    min-height: 118px;
}

.prom-search-status:not([data-prom-job-status]) > .prom-search-progress-card {
    grid-column: 2;
}

.prom-search-status:not([data-prom-job-status]) .prom-progress-orb {
    width: 88px;
    min-width: 88px;
}

.prom-search-status:not([data-prom-job-status]) .prom-progress-orb::before {
    inset: 8px;
}

.prom-search-status[data-prom-job-status] > .prom-search-progress-card {
    grid-column: 2;
}

.prom-search-status[data-prom-job-status] > .prom-search-job-state {
    grid-column: 3;
}

.prom-search-status[data-prom-job-status] > .prom-job-controls,
.prom-search-status[data-prom-job-status] > .prom-job-control-message {
    grid-column: 2 / -1;
}

.prom-progress-orb {
    --prom-progress: 0%;
    position: relative;
    display: grid;
    width: 112px;
    min-width: 112px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            from -90deg,
            #535ce2 0 var(--prom-progress),
            rgba(104, 112, 243, 0.14) var(--prom-progress) 100%
        );
    box-shadow:
        0 18px 34px rgba(35, 42, 88, 0.12),
        inset 0 0 0 1px rgba(104, 112, 243, 0.18);
    transition: background 360ms ease, transform 220ms ease;
}

.prom-progress-orb::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(104, 112, 243, 0.1);
}

.prom-progress-orb span {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    font-size: 1.28rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.prom-search-progress-card.is-running .prom-progress-orb {
    background:
        conic-gradient(
            from -90deg,
            #535ce2 0 var(--prom-progress),
            #26b9c3 var(--prom-progress) calc(var(--prom-progress) + 4%),
            rgba(104, 112, 243, 0.13) calc(var(--prom-progress) + 4%) 100%
        );
    animation: prom-progress-orb-pulse 1.8s ease-in-out infinite;
}

.prom-search-progress-card.is-complete .prom-progress-orb {
    background: conic-gradient(from -90deg, #18a66f 0 100%);
}

.prom-search-progress-card.is-idle .prom-progress-orb {
    background: conic-gradient(from -90deg, rgba(104, 112, 243, 0.18) 0 var(--prom-progress), rgba(104, 112, 243, 0.08) var(--prom-progress) 100%);
    box-shadow: inset 0 0 0 1px rgba(104, 112, 243, 0.14);
}

.prom-search-progress-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.prom-search-progress-copy strong {
    color: var(--text-primary);
    font-size: 1.02rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.prom-search-progress-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.42;
}

@keyframes prom-progress-orb-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 18px 34px rgba(35, 42, 88, 0.12),
            inset 0 0 0 1px rgba(104, 112, 243, 0.18);
    }
    50% {
        transform: scale(1.025);
        box-shadow:
            0 22px 42px rgba(35, 42, 88, 0.16),
            0 0 0 6px rgba(38, 185, 195, 0.08),
            inset 0 0 0 1px rgba(104, 112, 243, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .prom-search-progress-card.is-running .prom-progress-orb {
        animation: none;
    }

    .prom-progress-orb {
        transition: none;
    }
}

.prom-search-job-state {
    display: grid;
    gap: 10px;
}

.prom-search-job-state strong {
    color: var(--text-primary);
}

.prom-search-job-state p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.prom-job-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(104, 112, 243, 0.12);
}

.prom-job-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #535ce2;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(35, 42, 88, 0.05);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease;
}

.prom-job-control-btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.prom-job-control-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-job-control-btn:hover {
    border-color: rgba(83, 92, 226, 0.34);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(35, 42, 88, 0.08);
    transform: translateY(-1px);
}

.prom-job-control-btn:focus-visible {
    outline: 3px solid rgba(83, 92, 226, 0.18);
    outline-offset: 2px;
}

.prom-job-control-btn:disabled,
.prom-job-control-btn[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.prom-job-control-btn.is-hidden {
    display: none;
}

.prom-job-control-primary {
    border-color: rgba(83, 92, 226, 0.34);
    background: linear-gradient(135deg, #6870f3, #4248d8);
    color: #fff;
    box-shadow: 0 14px 26px rgba(83, 92, 226, 0.22);
}

.prom-job-control-primary:hover {
    background: linear-gradient(135deg, #747cff, #464cde);
    color: #fff;
}

.prom-job-control-danger {
    border-color: rgba(224, 69, 69, 0.22);
    background: rgba(255, 241, 242, 0.92);
    color: #d54b4b;
}

.prom-job-control-danger:hover {
    border-color: rgba(224, 69, 69, 0.34);
    background: rgba(255, 231, 232, 0.96);
    color: #be3434;
}

.prom-job-control-link {
    border-color: rgba(38, 185, 195, 0.2);
    color: #07838d;
}

.prom-job-control-message {
    min-height: 18px;
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
}

.prom-job-control-message[data-tone="success"] {
    color: #07838d;
}

.prom-job-control-message[data-tone="error"] {
    color: #d54b4b;
}

.prom-job-confirm-overlay {
    background:
        radial-gradient(circle at 50% 44%, rgba(104, 112, 243, 0.12), transparent 42%),
        rgba(9, 13, 42, 0.48);
    backdrop-filter: blur(4px);
}

.prom-job-confirm-modal {
    width: min(430px, calc(100vw - 32px));
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 60px rgba(35, 42, 88, 0.24);
    padding: 20px;
}

.prom-job-confirm-modal .confirm-modal-title {
    color: var(--text-primary);
    font-size: 1.18rem;
    font-weight: 900;
}

.prom-job-confirm-modal .confirm-modal-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.prom-job-confirm-modal .confirm-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
}

.prom-job-confirm-modal .confirm-modal-actions .btn {
    min-height: 42px;
    width: 100%;
}

.prom-search-results,
.prom-search-categories,
.prom-search-history {
    grid-column: 1 / -1;
}

.prom-history-duo {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
    gap: 14px;
    align-items: start;
}

.prom-history-duo .prom-search-history {
    grid-column: auto;
    min-height: 0;
}

.prom-history-duo > .prom-search-history:only-child {
    grid-column: 1 / -1;
}

.prom-history-duo .prom-search-history-list {
    max-height: 650px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.prom-history-duo .prom-search-history-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
}

.prom-history-duo .prom-search-history-actions {
    justify-content: space-between;
}

.prom-search-history {
    display: grid;
    gap: 12px;
}

.prom-search-history-list {
    display: grid;
    gap: 10px;
}

.prom-search-history-item {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.72);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.prom-search-history-item:hover {
    border-color: rgba(83, 92, 226, 0.26);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(35, 42, 88, 0.06);
    transform: translateY(-1px);
}

.prom-search-history-item.is-current {
    border-color: rgba(83, 92, 226, 0.34);
    background: linear-gradient(135deg, rgba(104, 112, 243, 0.12), rgba(38, 185, 195, 0.08));
    box-shadow: 0 12px 28px rgba(35, 42, 88, 0.08);
}

.prom-search-history-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.prom-search-history-main h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-search-history-main p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.prom-search-history-status {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(104, 112, 243, 0.12);
    color: #535ce2;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.prom-search-history-item.is-running .prom-search-history-status,
.prom-search-history-item.is-queued .prom-search-history-status,
.prom-search-history-item.is-paused .prom-search-history-status {
    background: rgba(38, 185, 195, 0.14);
    color: #07838d;
}

.prom-search-history-item.is-cancelled .prom-search-history-status,
.prom-search-history-item.is-failed .prom-search-history-status {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.prom-search-history-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.prom-search-history-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    min-height: 56px;
    padding: 8px 10px;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.prom-search-history-metrics em {
    color: var(--text-muted);
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-search-history-metrics strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.prom-search-history-current-action {
    cursor: default;
    opacity: 0.76;
    pointer-events: none;
}

.prom-search-history-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.prom-search-history-actions .btn {
    min-height: 38px;
    white-space: nowrap;
}

.prom-search-history-delete-form {
    flex: 0 0 auto;
    margin: 0;
}

.prom-search-history-delete-button {
    width: 36px;
    height: 36px;
}

.prom-search-history-delete-button:hover {
    border-color: rgba(239, 68, 68, 0.36);
    background: rgba(254, 242, 242, 0.92);
    color: #dc2626;
    transform: translateY(-1px);
}

html[data-theme="dark"] .prom-search-history-delete-button:hover {
    border-color: rgba(240, 125, 125, 0.42);
    background: rgba(240, 125, 125, 0.12);
    color: #ffaaaa;
}

.prom-category-grid-counts .prom-category-card summary b {
    width: auto;
    min-width: 34px;
    padding: 0 8px;
    border-radius: 999px;
}

.prom-category-system-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(83, 92, 226, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(83, 92, 226, 0.08), rgba(38, 185, 195, 0.08)),
        rgba(248, 250, 255, 0.9);
}

.prom-category-system-total > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.prom-category-system-total em {
    color: #535ce2;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-category-system-total strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.prom-category-system-total small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.prom-category-system-total > b {
    display: inline-grid;
    min-width: 74px;
    min-height: 48px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0 16px;
    border-radius: 8px;
    background: #535ce2;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(83, 92, 226, 0.2);
}

.prom-products-summary {
    display: grid;
    gap: 12px;
}

.prom-products-filter-panel,
.prom-products-filter-form {
    display: grid;
    gap: 16px;
}

.prom-products-filter-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(104, 112, 243, 0.12);
}

.prom-products-filter-head h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.12;
}

.prom-products-filter-stats {
    display: flex;
    min-width: 0;
    margin: 0;
}

.prom-products-filter-stats > div {
    display: grid;
    gap: 3px;
    min-width: 104px;
    padding: 0 16px;
    border-left: 1px solid rgba(104, 112, 243, 0.14);
}

.prom-products-filter-stats dt {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.prom-products-filter-stats dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.prom-products-filter-search {
    display: grid;
    grid-template-columns: minmax(300px, 1.55fr) minmax(240px, 0.75fr);
    gap: 12px;
}

.prom-products-category-cascade {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.prom-products-selected-path {
    min-height: 44px;
}

.prom-products-category-add {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid rgba(83, 92, 226, 0.22);
    border-radius: 7px;
    background: #535ce2;
    color: #fff;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.prom-products-category-add:disabled {
    border-color: rgba(104, 112, 243, 0.12);
    background: rgba(104, 112, 243, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

.prom-products-category-selection {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prom-products-category-chips {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 7px;
}

.prom-products-category-selection > strong {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 850;
    white-space: nowrap;
}

.prom-products-category-chip {
    display: inline-flex;
    min-height: 34px;
    max-width: min(100%, 440px);
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 10px;
    border: 1px solid rgba(83, 92, 226, 0.22);
    border-radius: 7px;
    background: rgba(238, 242, 255, 0.8);
    color: #4248d8;
    font-size: 0.72rem;
    font-weight: 850;
}

.prom-products-category-chip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-products-category-chip button {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
}

.prom-products-category-chip button:hover {
    background: rgba(83, 92, 226, 0.1);
}

.prom-products-category-chip svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.prom-products-filter-section {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(104, 112, 243, 0.12);
}

.prom-products-filter-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prom-products-filter-section-head h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 900;
}

.prom-products-range-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(200px, 1fr));
    gap: 10px;
}

.prom-products-range-group,
.prom-products-choice-group {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.68);
}

.prom-products-range-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.prom-products-range-group legend,
.prom-products-choice-group legend {
    padding: 0 6px;
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 900;
}

.prom-products-range-group label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.prom-products-range-group label > span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.prom-products-range-group input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 7px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.prom-products-range-group input:focus-visible {
    border-color: rgba(83, 92, 226, 0.54);
    outline: 3px solid rgba(83, 92, 226, 0.14);
    outline-offset: 1px;
}

.prom-products-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 10px;
}

.prom-products-choice-grid.is-sort {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.prom-products-choice-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prom-products-choice-options label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.prom-products-choice-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.prom-products-choice-options label > span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 7px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.15;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.prom-products-choice-options svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    padding: 2px;
    border: 1px solid rgba(104, 112, 243, 0.3);
    border-radius: 4px;
    fill: none;
    stroke: transparent;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.prom-products-choice-options input[type="radio"] + span svg {
    border-radius: 50%;
}

.prom-products-choice-options label:hover > span {
    border-color: rgba(83, 92, 226, 0.34);
    color: var(--text-primary);
}

.prom-products-choice-options input:checked + span {
    border-color: rgba(83, 92, 226, 0.4);
    background: rgba(238, 242, 255, 0.92);
    color: #4248d8;
    box-shadow: inset 0 0 0 1px rgba(83, 92, 226, 0.08);
}

.prom-products-choice-options input:checked + span svg {
    border-color: #535ce2;
    background: #535ce2;
    stroke: #fff;
}

.prom-products-choice-options input:focus-visible + span {
    outline: 3px solid rgba(83, 92, 226, 0.22);
    outline-offset: 2px;
}

.prom-products-sort-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.72);
}

.prom-products-sort-panel legend {
    padding: 0 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-products-sort-groups {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 10px;
}

.prom-products-sort-group {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.prom-products-sort-group > span {
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.prom-products-sort-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3px;
    border: 1px solid rgba(104, 112, 243, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

.prom-products-sort-options label,
.prom-products-sort-special label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.prom-products-sort-options input,
.prom-products-sort-special input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.prom-products-sort-options label > span,
.prom-products-sort-special label > span {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.prom-products-sort-options label > span b {
    color: #6870f3;
    font-size: 0.9rem;
}

.prom-products-sort-options input:checked + span,
.prom-products-sort-special input:checked + span {
    background: #535ce2;
    color: #fff;
    box-shadow: 0 7px 16px rgba(83, 92, 226, 0.18);
}

.prom-products-sort-options input:checked + span b {
    color: #fff;
}

.prom-products-sort-options input:focus-visible + span,
.prom-products-sort-special input:focus-visible + span {
    outline: 3px solid rgba(83, 92, 226, 0.24);
    outline-offset: 2px;
}

.prom-products-sort-special {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prom-products-sort-special label > span {
    min-height: 40px;
    padding-inline: 14px;
    border: 1px solid rgba(104, 112, 243, 0.15);
    background: rgba(255, 255, 255, 0.88);
}

.prom-products-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(104, 112, 243, 0.12);
}

.prom-products-filter-actions .btn {
    min-height: 44px;
}

.prom-products-pagination {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.86));
    box-shadow: 0 14px 34px rgba(35, 42, 88, 0.06);
}

.prom-products-pagination > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.prom-products-pagination strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.prom-products-pagination span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.prom-products-pagination-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.prom-products-page-jump {
    display: grid;
    grid-template-columns: auto minmax(64px, 88px) 38px;
    align-items: center;
    gap: 7px;
}

.prom-products-page-jump label {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 850;
    white-space: nowrap;
}

.prom-products-page-jump select {
    width: 100%;
    height: 38px;
    padding: 0 28px 0 10px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 900;
}

.prom-products-page-jump-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(83, 92, 226, 0.22);
    border-radius: 8px;
    background: #535ce2;
    color: #fff;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
}

.prom-products-page-jump-button:hover {
    background: #4248d8;
    transform: translateY(-1px);
}

.prom-products-page-jump-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.prom-products-page-link {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #535ce2;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.prom-products-page-link:hover {
    border-color: rgba(83, 92, 226, 0.34);
    background: rgba(238, 242, 255, 0.92);
    transform: translateY(-1px);
}

.prom-products-page-link.is-active {
    border-color: rgba(83, 92, 226, 0.58);
    background: linear-gradient(135deg, #6870f3, #4248d8);
    color: #fff;
    box-shadow: 0 12px 24px rgba(83, 92, 226, 0.22);
}

.prom-products-pagination .is-disabled {
    pointer-events: none;
    opacity: 0.48;
}

.prom-parser-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.prom-parser-metrics span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.82);
}

.prom-parser-metrics em,
.prom-product-metric em,
.prom-product-period-strip em,
.prom-product-chart-head span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.prom-parser-metrics strong {
    color: var(--text-primary);
    font-size: 1.18rem;
}

.prom-product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
    isolation: isolate;
    overflow: visible;
}

.prom-product-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px 202px 84px 290px 142px 58px 38px 52px;
    gap: 11px;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
    box-shadow: 0 18px 42px rgba(35, 42, 88, 0.08);
    overflow: hidden;
}

.prom-product-card:has(.prom-opportunity-pill:is(:hover, :focus-visible)) {
    z-index: 60;
    overflow: visible;
}

.prom-product-card-top,
.prom-product-card-path,
.prom-product-title-row,
.prom-product-actions,
.prom-product-seller {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-inline: 14px;
}

.prom-product-card-top {
    position: relative;
    justify-content: space-between;
    min-height: 0;
    padding-top: 10px;
    z-index: 8;
    overflow: visible;
}

.prom-product-card-top-left {
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    min-width: 0;
}

.prom-product-card-path {
    min-width: 0;
    padding-inline: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.prom-product-card-path span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-product-card .status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.prom-opportunity-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    height: 22px;
    padding: 2px 7px 2px 4px;
    border: 1px solid rgba(104, 112, 243, 0.16);
    border-radius: 999px;
    background: rgba(248, 250, 255, 0.88);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    outline: none;
}

.prom-opportunity-pill::before,
.prom-opportunity-pill::after {
    position: absolute;
    left: 12px;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.prom-opportunity-pill::before {
    content: "";
    top: calc(100% + 4px);
    width: 10px;
    height: 10px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-right: 0;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px) rotate(45deg);
}

.prom-opportunity-pill::after {
    content: attr(data-tooltip);
    top: calc(100% + 8px);
    width: min(282px, calc(100vw - 56px));
    padding: 10px 12px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(35, 42, 88, 0.14);
    color: #172033;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.38;
    text-align: left;
    white-space: normal;
    transform: translateY(-4px);
}

.prom-opportunity-pill:is(:hover, :focus-visible)::before,
.prom-opportunity-pill:is(:hover, :focus-visible)::after {
    opacity: 1;
}

.prom-opportunity-pill:is(:hover, :focus-visible)::before {
    transform: translateY(0) rotate(45deg);
}

.prom-opportunity-pill:is(:hover, :focus-visible)::after {
    transform: translateY(0);
}

.prom-opportunity-pill:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.prom-opportunity-pill strong {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.66rem;
}

.prom-opportunity-pill span {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.prom-opportunity-pill em {
    min-width: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-opportunity-pill.is-a {
    border-color: rgba(5, 150, 105, 0.28);
    background: rgba(236, 253, 245, 0.92);
}

.prom-opportunity-pill.is-a strong {
    background: #059669;
    color: #fff;
}

.prom-opportunity-pill.is-b {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(255, 251, 235, 0.94);
}

.prom-opportunity-pill.is-b strong {
    background: #f59e0b;
    color: #fff;
}

.prom-opportunity-pill.is-c,
.prom-opportunity-pill.is-pending {
    border-color: rgba(100, 116, 139, 0.22);
    background: rgba(248, 250, 252, 0.94);
}

.prom-opportunity-pill.is-c strong,
.prom-opportunity-pill.is-pending strong {
    background: #64748b;
    color: #fff;
}

.prom-opportunity-pill.is-low-data em {
    color: #92400e;
}

.prom-opportunity-pill.is-decline {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(254, 242, 242, 0.96);
}

.prom-opportunity-pill.is-decline strong {
    background: #dc2626;
    color: #fff;
}

.prom-opportunity-pill.is-decline em {
    color: #991b1b;
}

.prom-product-delete-form {
    margin: 0;
}

.prom-product-icon-button {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    color: #596078;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.prom-product-icon-button svg,
.prom-product-title-row a svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.prom-product-delete-button:hover {
    border-color: rgba(239, 68, 68, 0.36);
    background: rgba(254, 242, 242, 0.92);
    color: #dc2626;
    transform: translateY(-1px);
}

.prom-product-image-wrap {
    display: grid;
    place-items: center;
    height: 202px;
    margin-inline: 14px;
    border-bottom: 1px solid rgba(104, 112, 243, 0.1);
    background: #fff;
}

.prom-product-image-wrap img {
    max-width: 100%;
    max-height: 184px;
    object-fit: contain;
}

.prom-product-title-row {
    align-items: flex-start;
    justify-content: space-between;
    min-height: 0;
    overflow: hidden;
}

.prom-product-title-row h3 {
    display: -webkit-box;
    min-width: 0;
    max-height: 5.2em;
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.3;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.prom-product-title-row a {
    display: inline-grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 8px;
    color: #343aa4;
    text-decoration: none;
}

.prom-product-title-row a:hover {
    border-color: rgba(79, 70, 229, 0.34);
    background: rgba(238, 242, 255, 0.82);
}

.prom-product-analytics-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 62px repeat(3, 68px);
    gap: 8px;
    min-height: 0;
    padding: 0 14px;
    overflow: hidden;
}

.prom-product-metric {
    display: grid;
    grid-template-rows: 14px 18px 14px;
    align-content: center;
    gap: 2px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.prom-product-metric.is-category {
    grid-column: 1 / -1;
    grid-template-rows: 14px minmax(0, 30px);
    min-height: 0;
}

.prom-product-metric em {
    line-height: 14px;
}

.prom-product-metric strong {
    display: block;
    min-width: 0;
    min-height: 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-product-metric.is-category strong {
    display: -webkit-box;
    min-height: 0;
    max-height: 30px;
    line-height: 15px;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.prom-product-metric small {
    display: block;
    min-height: 14px;
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-product-metric.is-cpa strong {
    color: #009c91;
}

.prom-product-metric.is-rating strong {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prom-rating-stars {
    position: relative;
    display: inline-block;
    color: rgba(245, 158, 11, 0.28);
    font-size: 0.72rem;
    letter-spacing: 0;
    line-height: 1;
}

.prom-rating-stars span {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: #f5b301;
    white-space: nowrap;
}

.prom-product-chart {
    display: grid;
    grid-template-rows: 20px 110px;
    gap: 7px;
    min-height: 0;
    padding: 0 14px;
    overflow: hidden;
}

.prom-product-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.prom-product-chart-head strong {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.prom-product-chart-head strong.is-up {
    color: #059669;
}

.prom-product-chart-head strong.is-down {
    color: #dc2626;
}

.prom-product-chart svg {
    width: 100%;
    height: 110px;
    overflow: visible;
}

.prom-product-chart .grid {
    fill: none;
    stroke: rgba(148, 163, 184, 0.24);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.prom-product-chart .axis {
    fill: none;
    stroke: rgba(100, 116, 139, 0.32);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.prom-product-chart .area {
    stroke: none;
}

.prom-product-chart .line {
    fill: none;
    stroke: #26b9c3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.2;
    filter: drop-shadow(0 5px 8px rgba(38, 185, 195, 0.2));
    vector-effect: non-scaling-stroke;
}

.prom-product-chart .point {
    fill: #ffffff;
    stroke: #26b9c3;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.prom-product-chart .point.is-last {
    fill: #26b9c3;
    stroke: #ffffff;
    filter: drop-shadow(0 4px 8px rgba(38, 185, 195, 0.28));
}

.prom-product-chart .label {
    fill: var(--text-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.prom-product-chart .label.is-end {
    text-anchor: end;
}

.prom-product-period-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    padding: 0 14px;
}

.prom-product-period-strip span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 6px;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.72);
    text-align: center;
}

.prom-product-period-strip strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.prom-product-actions {
    min-height: 0;
    padding-bottom: 0;
}

.prom-product-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    padding-block: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-product-seller {
    justify-content: space-between;
    min-height: 0;
    padding-block: 10px;
    border-top: 1px solid rgba(104, 112, 243, 0.1);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.prom-product-seller span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prom-product-seller strong {
    flex: 0 0 auto;
    color: #343aa4;
    white-space: nowrap;
}

.prom-products-empty {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.prom-products-empty strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.prom-products-empty p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.prom-parser-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
    align-items: start;
}

.prom-parser-jobs {
    grid-column: 1 / -1;
}

.prom-parser-form,
.prom-parser-settings-form {
    display: grid;
    gap: 14px;
}

.prom-parser-category-box {
    display: grid;
    gap: 10px;
}

.prom-parser-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
}

.prom-parser-category-head strong {
    color: var(--text-primary);
}

.prom-parser-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-height: 340px;
    overflow: auto;
    padding-right: 3px;
}

.prom-check-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.78);
}

.prom-check-card input {
    margin-top: 3px;
    accent-color: #535ce2;
}

.prom-check-card span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.prom-check-card strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.prom-check-card em {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-style: normal;
}

.prom-check-card-compact {
    min-height: 72px;
}

.prom-parser-options-grid,
.prom-parser-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.prom-parser-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prom-parser-transport-list,
.prom-parser-refresh-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.prom-parser-transport-list label,
.prom-parser-refresh-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.prom-parser-transport-list input,
.prom-parser-refresh-list input {
    accent-color: #535ce2;
}

.prom-parser-job-list {
    display: grid;
    gap: 8px;
}

.prom-parser-job-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.78);
}

.prom-parser-job-list article > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.prom-parser-job-list strong {
    color: var(--text-primary);
}

.prom-parser-job-list span,
.prom-job-counters b {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.prom-job-counters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.prom-job-counters b {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(83, 92, 226, 0.08);
}

.prom-products-table-wrap {
    max-height: min(420px, 52vh);
}

.prom-products-table {
    min-width: 760px;
}

.prom-products-table td,
.prom-products-table th {
    vertical-align: top;
}

.prom-products-table a {
    color: #343aa4;
    overflow-wrap: anywhere;
}

.prom-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.prom-category-card {
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.82);
    overflow: hidden;
}

.prom-category-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 70px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.prom-category-card summary:focus-visible {
    outline: 2px solid rgba(83, 92, 226, 0.46);
    outline-offset: -2px;
}

.prom-category-card summary::-webkit-details-marker {
    display: none;
}

.prom-category-card summary::after {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-right: 2px solid #535ce2;
    border-bottom: 2px solid #535ce2;
    content: "";
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.prom-category-card[open] summary::after {
    transform: rotate(225deg);
}

.prom-category-card summary span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.prom-category-card summary em {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
}

.prom-category-card summary b {
    display: inline-grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(83, 92, 226, 0.1);
    color: #535ce2;
    font-size: 0.78rem;
}

.prom-category-card-body {
    display: grid;
    gap: 10px;
    max-height: min(560px, 56vh);
    overflow: auto;
    padding: 0 14px 14px;
    overscroll-behavior: contain;
}

.prom-category-branch {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding-top: 10px;
}

.prom-category-branch-head a {
    color: var(--text-primary);
    font-weight: 800;
    text-decoration: none;
}

.prom-category-branch-head span {
    flex: 0 0 auto;
    min-width: 28px;
    border-radius: 999px;
    background: rgba(43, 166, 149, 0.1);
    color: #11695f;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
    padding: 3px 8px;
}

.prom-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prom-category-tags a {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 5px 8px;
    text-decoration: none;
}

.prom-category-tags a:hover,
.prom-category-branch-head a:hover {
    color: #343aa4;
}

.prom-homepage-admin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.4fr);
    gap: 18px;
    align-items: start;
}

.prom-homepage-control,
.prom-homepage-preview {
    display: grid;
    gap: 14px;
}

.prom-homepage-settings-form {
    display: grid;
    gap: 14px;
}

.prom-homepage-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.78);
}

.prom-homepage-tablist button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
}

.prom-homepage-tablist button:hover,
.prom-homepage-tablist button:focus-visible {
    border-color: rgba(83, 92, 226, 0.24);
    color: #343aa4;
    outline: none;
}

.prom-homepage-tablist button.is-active {
    border-color: rgba(83, 92, 226, 0.35);
    background: linear-gradient(135deg, rgba(83, 92, 226, 0.14), rgba(38, 185, 195, 0.08));
    color: #343aa4;
    box-shadow: 0 10px 24px rgba(83, 92, 226, 0.12);
}

.prom-homepage-tab-panel[hidden] {
    display: none !important;
}

.prom-homepage-defaults {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(83, 92, 226, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(83, 92, 226, 0.06), rgba(38, 185, 195, 0.05)),
        rgba(248, 250, 255, 0.86);
}

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

.prom-visibility-card {
    display: flex;
    gap: 12px;
    min-width: 0;
    min-height: 112px;
    padding: 13px;
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.8);
}

.prom-visibility-card input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: #535ce2;
}

.prom-visibility-card span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.prom-visibility-card strong {
    color: var(--text-primary);
    font-size: 0.94rem;
    line-height: 1.24;
}

.prom-visibility-card small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.42;
}

.prom-limit-control {
    display: grid;
    gap: 14px;
}

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

.prom-limit-plan-card,
.prom-limit-category-panel,
.prom-limit-rule-row {
    border: 1px solid rgba(104, 112, 243, 0.14);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.82);
}

.prom-limit-plan-card {
    display: grid;
    gap: 12px;
    padding: 13px;
}

.prom-limit-plan-card header,
.prom-limit-category-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.prom-limit-plan-card header span,
.prom-limit-category-head strong,
.prom-limit-rule-row strong {
    color: var(--text-primary);
    font-weight: 900;
}

.prom-limit-plan-card header em {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(83, 92, 226, 0.12);
    color: #343aa4;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    padding: 4px 8px;
}

.prom-limit-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.prom-limit-category-panel {
    display: grid;
    gap: 12px;
    padding: 13px;
}

.prom-limit-category-head span,
.prom-limit-rule-row span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-limit-category-head small,
.prom-limit-rule-row small {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.prom-limit-category-add {
    display: grid;
    grid-template-columns: minmax(160px, 0.75fr) minmax(260px, 1.5fr) repeat(2, minmax(120px, 0.55fr));
    gap: 10px;
    align-items: end;
}

.prom-limit-category-select {
    min-width: 0;
}

.prom-limit-rule-list {
    display: grid;
    gap: 8px;
}

.prom-limit-rule-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(110px, 0.3fr) minmax(110px, 0.3fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.prom-limit-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 8px;
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 900;
}

.prom-limit-delete input {
    width: 18px;
    height: 18px;
    accent-color: #ef4444;
}

.prom-info-dot {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid rgba(83, 92, 226, 0.28);
    border-radius: 50%;
    background: rgba(238, 242, 255, 0.86);
    color: #343aa4;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
}

.prom-snapshot-list {
    display: grid;
    gap: 8px;
}

.prom-snapshot-list span,
.prom-query-snapshot-strip span {
    min-width: 0;
    border: 1px solid rgba(104, 112, 243, 0.12);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.82);
}

.prom-snapshot-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
}

.prom-snapshot-list em {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.prom-snapshot-list strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.prom-search-workspace.is-status-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.prom-search-workspace.is-status-hidden .prom-search-command,
.prom-search-workspace.is-status-hidden .prom-category-analysis-command {
    grid-column: 1;
    grid-row: auto;
}

.prom-search-workspace.is-status-hidden .prom-category-cascade-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.prom-search-history-snapshot {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.prom-query-snapshot-strip {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(92px, 0.28fr));
    gap: 8px;
    margin-top: 12px;
}

.prom-query-snapshot-strip span {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 62px;
    padding: 10px 12px;
}

.prom-query-snapshot-strip span:first-child {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
}

.prom-query-snapshot-strip span:first-child small {
    grid-column: 2;
}

.prom-query-snapshot-strip strong {
    color: var(--text-primary);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.prom-query-snapshot-strip small {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.25;
}

html[data-theme="dark"] .project-switcher-track {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(16, 23, 42, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .project-switcher-option {
    color: rgba(226, 232, 240, 0.74);
}

html[data-theme="dark"] .project-switcher-option:hover,
html[data-theme="dark"] .project-switcher-option:focus-visible {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.86);
}

html[data-theme="dark"] .project-switcher-option.is-active {
    color: #dfe4ff;
    border-color: rgba(142, 150, 255, 0.32);
    background: linear-gradient(180deg, rgba(47, 56, 120, 0.94), rgba(26, 34, 82, 0.9));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .prom-search-progress-card {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(20, 184, 166, 0.1)),
        rgba(15, 23, 42, 0.78);
}

html[data-theme="dark"] .prom-search-selection-plan,
html[data-theme="dark"] .prom-search-selection-plan span,
html[data-theme="dark"] .prom-products-pagination {
    background: rgba(19, 27, 48, 0.78);
}

html[data-theme="dark"] .prom-products-filter-badges span,
html[data-theme="dark"] .prom-products-page-link {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
    color: #dfe4ff;
}

html[data-theme="dark"] .prom-products-sort-panel {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.52);
}

html[data-theme="dark"] .prom-products-filter-head,
html[data-theme="dark"] .prom-products-filter-section {
    border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .prom-products-filter-stats > div {
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .prom-products-category-add {
    border-color: rgba(142, 150, 255, 0.32);
    background: #6870f3;
}

html[data-theme="dark"] .prom-products-category-add:disabled {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.58);
    color: rgba(226, 232, 240, 0.45);
}

html[data-theme="dark"] .prom-products-category-chip {
    border-color: rgba(142, 150, 255, 0.28);
    background: rgba(49, 46, 129, 0.34);
    color: #dfe4ff;
}

html[data-theme="dark"] .prom-products-category-chip button:hover {
    background: rgba(142, 150, 255, 0.16);
}

html[data-theme="dark"] .prom-products-range-group,
html[data-theme="dark"] .prom-products-choice-group {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.52);
}

html[data-theme="dark"] .prom-products-range-group input,
html[data-theme="dark"] .prom-products-choice-options label > span {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: rgba(226, 232, 240, 0.78);
}

html[data-theme="dark"] .prom-products-choice-options input:checked + span {
    border-color: rgba(142, 150, 255, 0.42);
    background: rgba(49, 46, 129, 0.38);
    color: #dfe4ff;
}

html[data-theme="dark"] .prom-products-sort-options {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .prom-products-sort-options label > span,
html[data-theme="dark"] .prom-products-sort-special label > span {
    color: rgba(226, 232, 240, 0.76);
}

html[data-theme="dark"] .prom-products-sort-special label > span {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .prom-products-sort-options input:checked + span,
html[data-theme="dark"] .prom-products-sort-special input:checked + span {
    background: linear-gradient(135deg, #6870f3, #4248d8);
    color: #fff;
}

html[data-theme="dark"] .prom-products-page-jump select {
    border-color: rgba(148, 163, 184, 0.2);
    background-color: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
}

html[data-theme="dark"] .prom-products-page-link:hover {
    border-color: rgba(142, 150, 255, 0.32);
    background: rgba(30, 41, 59, 0.92);
}

html[data-theme="dark"] .prom-products-page-link.is-active {
    border-color: rgba(142, 150, 255, 0.5);
    background: linear-gradient(135deg, #6870f3, #4248d8);
    color: #fff;
}

html[data-theme="dark"] .prom-progress-orb::before {
    background: rgba(15, 23, 42, 0.96);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .prom-progress-orb span {
    color: #f8fafc;
}

html[data-theme="dark"] .prom-analytics-placeholder-copy,
html[data-theme="dark"] .prom-analytics-placeholder-card {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: none;
}

html[data-theme="dark"] .prom-analytics-hero,
html[data-theme="dark"] .prom-filter-panel,
html[data-theme="dark"] .prom-panel {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: none;
}

html[data-theme="dark"] body.shell-prom-analytics .cc-page-header.prom-analytics-page-header,
html[data-theme="dark"] body.shell-prom-analytics .prom-search-workspace .prom-panel,
html[data-theme="dark"] body.shell-prom-analytics .prom-search-results .prom-panel {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.82)),
        rgba(15, 23, 42, 0.86);
    box-shadow: none;
}

html[data-theme="dark"] .prom-analytics-hero {
    background:
        linear-gradient(135deg, rgba(83, 92, 226, 0.16), rgba(43, 166, 149, 0.12)),
        rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"] .prom-analytics-metrics span,
html[data-theme="dark"] .prom-pipeline article,
html[data-theme="dark"] .prom-module-list a,
html[data-theme="dark"] .prom-category-card,
html[data-theme="dark"] .prom-homepage-tablist,
html[data-theme="dark"] .prom-homepage-defaults,
html[data-theme="dark"] .prom-limit-plan-card,
html[data-theme="dark"] .prom-limit-category-panel,
html[data-theme="dark"] .prom-limit-rule-row,
html[data-theme="dark"] .prom-visibility-card,
html[data-theme="dark"] .prom-snapshot-list span,
html[data-theme="dark"] .prom-query-snapshot-strip span,
html[data-theme="dark"] .prom-search-entry,
html[data-theme="dark"] .prom-field input,
html[data-theme="dark"] .prom-field select,
html[data-theme="dark"] .prom-field textarea,
html[data-theme="dark"] .prom-search-entry-field input,
html[data-theme="dark"] .prom-search-mini-field input,
html[data-theme="dark"] .prom-search-main-input input,
html[data-theme="dark"] .prom-note-empty,
html[data-theme="dark"] .prom-parser-metrics span,
html[data-theme="dark"] .prom-product-card,
html[data-theme="dark"] .prom-check-card,
html[data-theme="dark"] .prom-parser-job-list article {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(23, 34, 43, 0.82);
}

html[data-theme="dark"] .prom-homepage-tablist button.is-active,
html[data-theme="dark"] .prom-limit-plan-card header em {
    border-color: rgba(129, 140, 248, 0.28);
    background: rgba(83, 92, 226, 0.22);
    color: #c4c9ff;
}

html[data-theme="dark"] .prom-homepage-tablist button {
    color: rgba(203, 213, 225, 0.8);
}

html[data-theme="dark"] .prom-homepage-tablist button:hover,
html[data-theme="dark"] .prom-homepage-tablist button:focus-visible {
    color: #c4c9ff;
}

html[data-theme="dark"] .prom-product-image-wrap {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.68);
}

html[data-theme="dark"] .prom-product-metric,
html[data-theme="dark"] .prom-product-period-strip span,
html[data-theme="dark"] .prom-product-icon-button {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.44);
}

html[data-theme="dark"] .prom-product-title-row a:hover {
    background: rgba(49, 46, 129, 0.34);
}

html[data-theme="dark"] .prom-product-chart .point {
    fill: #17222b;
}

html[data-theme="dark"] .prom-product-chart .point.is-last {
    fill: #26b9c3;
    stroke: #17222b;
}

html[data-theme="dark"] .prom-product-delete-button:hover {
    border-color: rgba(248, 113, 113, 0.46);
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

html[data-theme="dark"] .prom-module-list a:hover,
html[data-theme="dark"] .prom-module-list a:focus-visible,
html[data-theme="dark"] .prom-module-list a.is-active {
    border-color: rgba(142, 150, 255, 0.34);
    background: rgba(31, 41, 72, 0.94);
}

html[data-theme="dark"] .prom-category-tags a {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.78);
}

html[data-theme="dark"] .prom-info-dot {
    border-color: rgba(142, 150, 255, 0.34);
    background: rgba(49, 46, 129, 0.3);
    color: #dfe4ff;
}

html[data-theme="dark"] .prom-search-check {
    border-color: rgba(45, 212, 191, 0.24);
    background: rgba(20, 83, 75, 0.2);
    color: #8de0d4;
}

html[data-theme="dark"] .prom-search-history-item {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(23, 34, 43, 0.82);
}

html[data-theme="dark"] .prom-search-history-item.is-current {
    border-color: rgba(142, 150, 255, 0.34);
    background: linear-gradient(135deg, rgba(104, 112, 243, 0.18), rgba(38, 185, 195, 0.1));
}

html[data-theme="dark"] .prom-search-history-item:hover {
    border-color: rgba(142, 150, 255, 0.32);
    background: rgba(30, 41, 59, 0.92);
}

html[data-theme="dark"] .prom-search-history-metrics span {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.44);
}

html[data-theme="dark"] .prom-category-select-field select,
html[data-theme="dark"] .prom-category-selected-path {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.58);
}

html[data-theme="dark"] .prom-job-control-btn {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
}

html[data-theme="dark"] .prom-job-control-primary {
    border-color: rgba(142, 150, 255, 0.44);
    background: linear-gradient(135deg, #6870f3, #4248d8);
}

html[data-theme="dark"] .prom-job-control-danger {
    border-color: rgba(248, 113, 113, 0.26);
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

html[data-theme="dark"] .prom-job-confirm-modal {
    border-color: rgba(142, 150, 255, 0.26);
    background: rgba(15, 23, 42, 0.96);
}

html[data-theme="dark"] .prom-job-confirm-modal .confirm-modal-title {
    color: #f8fafc;
}

html[data-theme="dark"] .prom-job-confirm-modal .confirm-modal-text {
    color: #cbd5e1;
}

html[data-theme="dark"] .prom-category-system-total {
    border-color: rgba(142, 150, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(104, 112, 243, 0.16), rgba(38, 185, 195, 0.1)),
        rgba(23, 34, 43, 0.82);
}

html[data-theme="dark"] .prom-selected-path span,
html[data-theme="dark"] .prom-category-branch-head span {
    color: #8de0d4;
    background: rgba(43, 166, 149, 0.14);
}

@media (max-width: 1180px) {
    .project-switcher-note,
    .project-switcher-kicker {
        display: none;
    }

    .prom-search-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-command,
    .prom-category-analysis-command,
    .prom-search-status {
        grid-column: 1;
    }

    .prom-search-command {
        grid-row: 1;
    }

    .prom-category-analysis-command {
        grid-row: 2;
    }

    .prom-search-status {
        position: static;
        grid-row: 3;
        grid-template-columns: minmax(220px, 0.4fr) minmax(320px, 1fr);
        max-height: none;
        overflow: visible;
    }

    .prom-search-status[data-prom-job-status] {
        grid-template-columns: minmax(220px, 0.4fr) minmax(320px, 1fr);
    }

    .prom-search-status[data-prom-job-status] > .prom-search-job-state,
    .prom-search-status[data-prom-job-status] > .prom-job-controls,
    .prom-search-status[data-prom-job-status] > .prom-job-control-message {
        grid-column: 1 / -1;
    }

    .prom-search-main-form,
    .prom-history-duo {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-products-range-grid {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .prom-products-choice-grid,
    .prom-products-choice-grid.is-sort {
        grid-template-columns: repeat(3, minmax(210px, 1fr));
    }

    .prom-search-command .prom-parser-submit-row {
        justify-content: flex-start;
        min-width: 0;
    }

    .prom-history-duo .prom-search-history-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 980px) {
    body.shell-auth.shell-admin,
    html:not([data-theme="dark"]) body.shell-auth.shell-admin {
        --topbar-height: 136px;
    }

    body.shell-auth.shell-admin .topbar,
    html:not([data-theme="dark"]) body.shell-auth.shell-admin .topbar {
        height: 124px;
    }

    .topbar-inner-admin {
        min-height: 112px;
        flex-wrap: wrap;
        align-content: center;
    }

    .project-switcher {
        order: 4;
        flex: 0 0 100%;
        justify-content: center;
    }

    .prom-analytics-placeholder {
        grid-template-columns: 1fr;
    }

    .prom-analytics-hero,
    .prom-workspace-grid,
    .prom-products-notes,
    .prom-parser-admin-grid,
    .prom-homepage-admin,
    .prom-parser-layout,
    .prom-search-workspace,
    .prom-category-grid {
        grid-template-columns: 1fr;
    }

    .prom-parser-jobs {
        grid-column: auto;
    }

    .prom-search-history-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .prom-search-history-metrics {
        grid-column: 1 / -1;
    }

    .prom-category-cascade-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prom-category-analysis-actions {
        grid-template-columns: 1fr;
    }

    .prom-job-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .prom-products-range-grid,
    .prom-products-choice-grid,
    .prom-products-choice-grid.is-sort {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prom-field-wide,
    .prom-field-keywords {
        grid-column: span 2;
    }

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

    .prom-parser-metrics,
    .prom-parser-category-list,
    .prom-parser-options-grid,
    .prom-parser-two,
    .prom-limit-plan-grid,
    .prom-limit-matrix,
    .prom-limit-category-add,
    .prom-limit-rule-row,
    .prom-homepage-defaults,
    .prom-visibility-grid,
    .prom-query-snapshot-strip,
    .prom-search-entry,
    .prom-search-controls,
    .prom-parser-transport-list,
    .prom-parser-refresh-list {
        grid-template-columns: 1fr;
    }

    .prom-search-status {
        position: static;
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-status[data-prom-job-status] {
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-search-status > .prom-panel-head,
    .prom-search-status:not([data-prom-job-status]) > .prom-search-progress-card,
    .prom-search-status[data-prom-job-status] > .prom-search-progress-card,
    .prom-search-status[data-prom-job-status] > .prom-search-job-state,
    .prom-search-status[data-prom-job-status] > .prom-job-controls,
    .prom-search-status[data-prom-job-status] > .prom-job-control-message {
        grid-column: 1;
    }

    .prom-search-progress-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .prom-search-selection-plan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.shell-prom-analytics .prom-analytics-page-header .cc-page-title {
        font-size: 2.35rem;
    }
}

@media (max-width: 640px) {
    .prom-category-cascade-grid,
    .prom-category-selected-path {
        grid-template-columns: 1fr;
    }

    .prom-category-selected-path {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .prom-category-selected-path strong {
        flex: 0 0 100%;
        white-space: normal;
    }

    .prom-search-command .prom-parser-submit-row,
    .prom-search-command .prom-parser-submit-row .btn,
    .prom-category-analysis-actions .btn {
        width: 100%;
    }

    .prom-products-filter-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .prom-products-filter-stats {
        width: 100%;
    }

    .prom-products-filter-stats > div {
        min-width: 0;
        flex: 1 1 0;
        padding: 0 10px;
    }

    .prom-products-filter-stats > div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .prom-products-filter-search,
    .prom-products-range-grid,
    .prom-products-choice-grid,
    .prom-products-choice-grid.is-sort {
        grid-template-columns: 1fr;
    }

    .prom-products-category-selection {
        align-items: flex-start;
        flex-direction: column;
    }

    .prom-products-category-chips,
    .prom-products-category-chip {
        width: 100%;
    }

    .prom-products-category-chip {
        max-width: none;
        justify-content: space-between;
    }

    .prom-products-category-selection > strong {
        align-self: flex-end;
    }

    .prom-products-choice-options label {
        flex: 1 1 140px;
    }

    .prom-products-choice-options label > span {
        width: 100%;
        justify-content: flex-start;
    }

    .prom-products-filter-actions,
    .prom-products-pagination,
    .prom-products-pagination-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .prom-products-filter-actions .btn,
    .prom-products-pagination .btn {
        flex: 1 1 160px;
    }

    .prom-products-pagination {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .prom-products-page-jump {
        grid-template-columns: minmax(0, 1fr) 82px 38px;
        width: 100%;
    }

    .prom-products-pagination-actions {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .prom-job-controls {
        grid-template-columns: 1fr;
    }

    .prom-search-progress-card {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }

    .prom-search-history-actions {
        justify-content: stretch;
    }

    .prom-search-history-actions .btn {
        flex: 1 1 170px;
    }

    .prom-search-selection-plan {
        grid-template-columns: 1fr;
    }

    body.shell-auth.shell-admin,
    html:not([data-theme="dark"]) body.shell-auth.shell-admin {
        --topbar-height: 136px;
    }

    body.shell-auth.shell-admin .topbar,
    html:not([data-theme="dark"]) body.shell-auth.shell-admin .topbar {
        height: 124px !important;
    }

    body.shell-auth .topbar-inner-admin,
    html:not([data-theme="dark"]) body.shell-auth .topbar-inner-admin {
        min-height: 112px !important;
        flex-wrap: wrap !important;
    }

    body.shell-auth .topbar-inner-admin .brand,
    html:not([data-theme="dark"]) body.shell-auth .topbar-inner-admin .brand {
        justify-content: flex-start;
    }

    .project-switcher-track {
        width: 100%;
    }

    .project-switcher-option {
        flex: 1 1 0;
        justify-content: center;
        padding: 0 8px;
    }

    .project-switcher-name {
        font-size: 0.74rem;
    }

    .prom-analytics-placeholder-copy,
    .prom-analytics-placeholder-card {
        padding: 14px;
    }

    .prom-analytics-hero,
    .prom-filter-panel,
    .prom-panel {
        padding: 14px;
    }

    .prom-filter-head,
    .prom-panel-head,
    .prom-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .prom-filter-actions .btn {
        width: 100%;
    }

    .prom-filter-grid,
    .prom-pipeline,
    .prom-analytics-metrics,
    .prom-parser-metrics,
    .prom-limit-plan-grid,
    .prom-limit-matrix,
    .prom-limit-category-add,
    .prom-limit-rule-row,
    .prom-homepage-defaults,
    .prom-visibility-grid,
    .prom-query-snapshot-strip,
    .prom-search-entry,
    .prom-search-controls,
    .prom-search-history-item,
    .prom-search-history-metrics {
        grid-template-columns: 1fr;
    }

    .prom-field-wide,
    .prom-field-keywords {
        grid-column: auto;
    }

    .prom-category-card summary {
        min-height: 0;
        align-items: flex-start;
    }

    .prom-category-system-total {
        align-items: stretch;
        padding: 14px;
    }

    .prom-category-system-total > b {
        min-width: 64px;
        min-height: 44px;
        padding-inline: 12px;
    }

    .prom-product-analytics-strip,
    .prom-product-period-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prom-parser-job-list article {
        display: grid;
        grid-template-columns: 1fr;
    }
}

body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden,
html:not([data-theme="dark"]) body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden,
html[data-theme="dark"] body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden {
    --topbar-height: 0px !important;
}

body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden .auth-layout,
html:not([data-theme="dark"]) body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden .auth-layout,
html[data-theme="dark"] body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden .auth-layout {
    min-height: 100vh !important;
    margin-top: 0 !important;
}

body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden .app-sidebar,
html:not([data-theme="dark"]) body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden .app-sidebar,
html[data-theme="dark"] body.shell-auth.shell-prom-analytics.shell-prom-topbar-hidden .app-sidebar {
    top: 10px !important;
    height: calc(100vh - 20px) !important;
}
/* IP Control */
.ip-control-page {
    display: grid;
    gap: 18px;
}

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

.ip-metric-card {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.28));
    border-radius: 8px;
    background: var(--panel-bg, rgba(255, 255, 255, 0.86));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ip-metric-card strong {
    overflow-wrap: anywhere;
}

.ip-rotation-panel {
    display: grid;
    gap: 14px;
}

.ip-rotation-current {
    display: grid;
    gap: 4px;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.86);
}

.ip-rotation-current strong {
    overflow-wrap: anywhere;
}

.ip-rotation-settings-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(110px, 0.4fr) minmax(120px, 0.45fr) minmax(120px, 0.45fr) minmax(210px, 0.85fr) auto;
    gap: 12px;
    align-items: end;
}

.ip-rotation-settings-form label {
    min-width: 0;
}

.ip-rotation-toggle {
    align-self: center;
}

.ip-rotation-status-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ip-rotation-status-grid > span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.82);
}

.ip-rotation-status-grid em {
    color: var(--muted, #64748b);
    font-size: 0.78rem;
    font-style: normal;
}

.ip-rotation-status-grid strong {
    overflow-wrap: anywhere;
}

.ip-status-inline,
.ip-proxy-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ip-lamp {
    display: inline-block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.ip-lamp-ok {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18), 0 0 16px rgba(22, 163, 74, 0.38);
}

.ip-lamp-fail,
.ip-lamp-expired {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16), 0 0 16px rgba(220, 38, 38, 0.32);
}

.ip-lamp-unknown,
.ip-lamp-checking {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18), 0 0 16px rgba(245, 158, 11, 0.28);
}

.ip-lamp-disabled {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

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

.ip-form-grid label {
    min-width: 0;
}

.ip-form-actions,
.ip-panel-actions,
.ip-proxy-actions,
.ip-proxy-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ip-panel-actions {
    justify-content: flex-end;
}

.ip-proxy-list {
    display: grid;
    gap: 14px;
}

.ip-proxy-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.ip-proxy-card-ok {
    border-left-color: #16a34a;
}

.ip-proxy-card-fail,
.ip-proxy-card-expired {
    border-left-color: #dc2626;
}

.ip-proxy-card-unknown,
.ip-proxy-card-checking {
    border-left-color: #f59e0b;
}

.ip-proxy-main {
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: start;
}

.ip-proxy-identity {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.ip-proxy-identity h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.ip-proxy-identity code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
}

.ip-proxy-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.ip-proxy-facts > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.82);
}

.ip-proxy-facts strong {
    overflow-wrap: anywhere;
}

.ip-proxy-error {
    margin: 0;
    overflow-wrap: anywhere;
}

.ip-assignment-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
}

.ip-assign-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.ip-assignment-list {
    display: grid;
    gap: 8px;
}

.ip-assignment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.ip-assignment-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ip-assignment-row strong,
.ip-assignment-row span {
    overflow-wrap: anywhere;
}

.ip-assignment-empty {
    margin: 0;
}

.ip-edit-details {
    position: relative;
}

.ip-edit-details > summary {
    list-style: none;
    cursor: pointer;
}

.ip-edit-details > summary::-webkit-details-marker {
    display: none;
}

.ip-proxy-edit-form {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.82);
}

html[data-theme="dark"] .ip-metric-card,
html[data-theme="dark"] .ip-proxy-card {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: none;
}

html[data-theme="dark"] .ip-proxy-facts > div,
html[data-theme="dark"] .ip-proxy-edit-form,
html[data-theme="dark"] .ip-assignment-panel,
html[data-theme="dark"] .ip-rotation-current,
html[data-theme="dark"] .ip-rotation-status-grid > span {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .ip-assignment-row {
    background: rgba(15, 23, 42, 0.62);
}

@media (max-width: 1100px) {
    .ip-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ip-proxy-main,
    .ip-form-grid,
    .ip-rotation-settings-form {
        grid-template-columns: 1fr;
    }

    .ip-proxy-facts,
    .ip-rotation-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ip-assign-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ip-metrics-grid,
    .ip-proxy-facts,
    .ip-rotation-status-grid {
        grid-template-columns: 1fr;
    }

    .ip-proxy-identity,
    .ip-panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ip-proxy-actions .btn,
    .ip-panel-actions .btn,
    .ip-form-actions .btn,
    .ip-assign-form .btn,
    .ip-rotation-settings-form .btn {
        width: 100%;
    }

    .ip-assignment-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* v1.460: competitor top products as a metrics table */
.competitor-top-products-table {
    position: relative;
    isolation: isolate;
    max-height: min(720px, 72vh);
    overflow: auto;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.92)),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(38, 48, 94, 0.06);
    scrollbar-gutter: stable;
}

.competitor-top-products-table::before,
.competitor-top-products-table::after {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.competitor-top-products-table::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(243, 246, 252, 0.72);
    backdrop-filter: blur(4px);
}

.competitor-top-products-table::after {
    content: attr(data-loading-text);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    transform: translate(-50%, -50%);
    min-width: min(320px, calc(100% - 32px));
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(38, 48, 94, 0.18);
    color: #20284f;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.25;
    padding: 14px 18px;
    text-align: center;
}

.competitor-top-products.is-preview-loading .competitor-top-products-table::before,
.competitor-top-products.is-preview-loading .competitor-top-products-table::after {
    opacity: 1;
}

.competitor-top-products.is-preview-loading .competitor-top-products-table {
    overflow: hidden;
}

.competitor-top-products.is-preview-loading .competitor-top-products-list {
    filter: blur(1.4px);
    opacity: 0.52;
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.competitor-top-products-headrow,
.competitor-top-products-table .competitor-top-product-row {
    display: grid;
    grid-template-columns:
        34px minmax(250px, 1.42fr) minmax(138px, 0.52fr) minmax(84px, 0.31fr)
        minmax(86px, 0.31fr) minmax(108px, 0.39fr) minmax(84px, 0.31fr)
        minmax(96px, 0.35fr) minmax(116px, 0.4fr) minmax(92px, 0.32fr) 42px !important;
    min-width: 1320px;
    align-items: center;
    gap: 10px;
}

.competitor-top-products-headrow {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(104, 112, 243, 0.14);
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%),
        #ffffff;
    box-shadow:
        0 1px 0 rgba(104, 112, 243, 0.08),
        0 10px 18px rgba(38, 48, 94, 0.06);
    background-clip: padding-box;
    color: #7a879d;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.competitor-top-products-table .competitor-top-products-list {
    display: block;
}

.competitor-top-products-table .competitor-top-product-row {
    min-height: 78px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid rgba(104, 112, 243, 0.11);
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
}

.competitor-top-products-table .competitor-top-product-row:last-child {
    border-bottom: 0;
}

.competitor-top-products-table .competitor-top-product-row:hover {
    background: linear-gradient(90deg, rgba(236, 249, 247, 0.96), rgba(248, 250, 255, 0.96));
    border-color: rgba(104, 112, 243, 0.18);
}

.competitor-top-products-table .competitor-top-product-row.is-deleted {
    background:
        linear-gradient(90deg, rgba(255, 248, 248, 0.86), rgba(248, 250, 255, 0.92)),
        rgba(255, 255, 255, 0.78);
}

.competitor-top-products-table .competitor-top-product-row.is-deleted:hover {
    background:
        linear-gradient(90deg, rgba(255, 241, 241, 0.96), rgba(245, 248, 255, 0.96)),
        rgba(255, 255, 255, 0.86);
}

.competitor-top-product-main {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.competitor-top-product-category,
.competitor-top-product-metric,
.competitor-top-product-trend,
.competitor-top-product-rating {
    min-width: 0;
    color: #526872;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}

.competitor-top-product-category {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-top-product-metric {
    display: grid;
    gap: 3px;
    justify-items: start;
}

.competitor-top-product-metric b,
.competitor-top-product-rating b {
    color: #183840;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
}

.competitor-top-product-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(138, 150, 168, 0.22);
    border-radius: 999px;
    background: rgba(138, 150, 168, 0.08);
    color: #738094;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    padding: 4px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-top-product-rating .competitor-top-product-empty {
    flex: 1 1 auto;
}

.competitor-top-product-metric.is-age .competitor-top-product-empty {
    justify-self: start;
}

.competitor-top-product-row.is-deleted .competitor-top-product-category,
.competitor-top-product-row.is-deleted .competitor-top-product-metric b,
.competitor-top-product-row.is-deleted .competitor-top-product-rating b {
    color: #9a6d6d;
}

.competitor-top-product-row.is-deleted .competitor-top-product-empty {
    border-color: rgba(210, 96, 96, 0.24);
    background: rgba(244, 126, 126, 0.1);
    color: #9a6d6d;
}

.competitor-top-product-row.is-deleted .competitor-top-product-metric b,
.competitor-top-product-row.is-deleted .competitor-top-product-rating b {
    font-size: 0.74rem;
}

.competitor-top-product-metric small,
.competitor-top-product-trend small {
    color: #8a96a8;
    font-size: 0.67rem;
    font-weight: 850;
    line-height: 1;
}

.competitor-top-product-metric.is-sales b {
    color: #535ce2;
}

.competitor-top-product-metric.is-cpa b {
    color: #168f87;
}

.competitor-top-product-metric.is-age b {
    color: #183840;
    white-space: nowrap;
}

.competitor-top-product-trend {
    display: grid;
    gap: 5px;
}

.competitor-top-product-spark {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    gap: 3px;
    width: 98px;
    height: 30px;
    padding: 4px 5px;
    border: 1px solid rgba(37, 201, 189, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(37, 201, 189, 0.08), rgba(255, 255, 255, 0.66));
}

.competitor-top-product-spark i {
    display: block;
    height: max(3px, var(--bar-h, 0%));
    border-radius: 999px 999px 2px 2px;
    background: rgba(156, 171, 190, 0.34);
}

.competitor-top-product-spark i.has-value {
    background: linear-gradient(180deg, #25c9bd, #535ce2);
}

.competitor-top-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 108px;
    max-width: 116px;
    overflow: hidden;
    justify-self: start;
}

.competitor-top-product-stars {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 16px;
    color: #f5c84b;
    font-size: 0.84rem;
    line-height: 1;
    flex: 0 0 58px;
}

.competitor-top-product-stars::before,
.competitor-top-product-stars::after {
    content: "\2605\2605\2605\2605\2605";
    position: absolute;
    inset: 0;
    letter-spacing: 1px;
}

.competitor-top-product-stars::before {
    color: rgba(138, 150, 168, 0.28);
}

.competitor-top-product-stars::after {
    width: var(--rating-w, 0%);
    overflow: hidden;
    color: #f5c84b;
    white-space: nowrap;
}

.competitor-top-product-rating b {
    flex: 0 0 auto;
    min-width: 24px;
}

.competitor-top-products-table .competitor-top-product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    min-height: 34px;
    border: 1px solid rgba(104, 112, 243, 0.18);
    border-radius: 8px;
    background: rgba(104, 112, 243, 0.08);
    padding: 0;
    justify-self: end;
    white-space: nowrap;
}

.paid-feature-lock,
.paid-feature-inline-lock {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(236, 249, 247, 0.3)),
        rgba(255, 255, 255, 0.34);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 34px rgba(38, 48, 94, 0.08);
    color: #20284f;
}

.paid-feature-lock {
    padding: 14px 16px;
    min-height: 70px;
}

.paid-feature-lock-compact,
.paid-feature-inline-lock {
    padding: 9px 12px;
    min-height: 0;
}

.paid-feature-lock-directions {
    margin-top: 6px;
}

.paid-feature-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(83, 92, 226, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.46);
    color: #4f58de;
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.paid-feature-lock-icon svg,
.paid-lock-badge svg,
.paid-lock-cell svg,
.tab-lock-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.paid-feature-lock strong,
.paid-feature-inline-lock strong {
    display: block;
    color: #20284f;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.2;
}

.paid-feature-lock small,
.paid-feature-inline-lock small {
    display: block;
    margin-top: 2px;
    color: #657089;
    font-size: 0.68rem;
    font-weight: 760;
    line-height: 1.35;
}

.paid-feature-inline-lock {
    margin: 8px 0 10px;
}

.paid-feature-inline-lock .paid-feature-lock-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.paid-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-color: rgba(104, 112, 243, 0.2);
    color: #4f58de;
    text-decoration: none;
    cursor: pointer;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(240, 244, 255, 0.34));
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    backdrop-filter: blur(16px) saturate(1.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(83, 92, 226, 0.08);
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.paid-lock-badge:hover {
    border-color: rgba(83, 92, 226, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(240, 244, 255, 0.5));
    color: #444bc8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 12px 26px rgba(83, 92, 226, 0.14);
    transform: translateY(-1px);
}

.paid-lock-badge:focus-visible {
    outline: 2px solid rgba(83, 92, 226, 0.42);
    outline-offset: 3px;
}

.paid-lock-cell {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(240, 244, 255, 0.32));
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    backdrop-filter: blur(16px) saturate(1.25);
    color: #4f58de;
    font-size: 0.64rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 8px 20px rgba(83, 92, 226, 0.08);
}

.paid-lock-cell span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.locked-spark-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    min-height: 32px;
}

.locked-spark-preview .competitor-top-product-spark {
    width: 100px;
    filter: blur(5px);
    opacity: 0.62;
    transform: scale(0.98);
}

.locked-spark-preview .paid-lock-cell {
    position: absolute;
    left: 50%;
    top: 50%;
    min-height: 24px;
    padding: 4px 8px;
    transform: translate(-50%, -50%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(83, 92, 226, 0.14);
}

.premium-metric-ghost {
    display: inline-block;
    filter: blur(4.5px);
    opacity: 0.5;
    user-select: none;
}

.premium-stat-ghost {
    display: block;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(37, 201, 189, 0.26), rgba(83, 92, 226, 0.18), rgba(247, 190, 70, 0.14));
    filter: blur(4.5px);
    opacity: 0.56;
    user-select: none;
}

.premium-stat-ghost-main {
    width: min(72px, 88%);
    height: 14px;
    margin-bottom: 6px;
}

.premium-stat-ghost-sub {
    width: min(54px, 72%);
    height: 8px;
}

.premium-stat-ghost-label {
    width: 38px;
    height: 9px;
    margin-top: 5px;
}

.premium-stat-ghost-rating {
    width: 22px;
    height: 13px;
}

.premium-stat-ghost-kpi {
    width: min(112px, 74%);
    height: 25px;
    margin-top: 12px;
}

.premium-stat-ghost-pill {
    width: 132px;
    height: 22px;
}

.premium-category-ghost {
    display: block;
    width: min(118px, 86%);
    height: 12px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(138, 150, 168, 0.16), rgba(83, 92, 226, 0.18), rgba(37, 201, 189, 0.14));
    filter: blur(3px);
    opacity: 0.56;
}

.premium-spark-ghost {
    filter: blur(4px);
    opacity: 0.58;
}

.premium-cell-gate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    min-height: 20px;
    padding: 3px 6px;
    border: 1px solid rgba(104, 112, 243, 0.2);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(245, 248, 255, 0.32)),
        rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 8px 18px rgba(83, 92, 226, 0.08);
    color: #535ce2;
    font-size: 0.58rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    pointer-events: auto;
}

.premium-cell-gate svg {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.25;
}

.competitor-top-products.is-paid-locked .competitor-top-product-category,
.competitor-top-products.is-paid-locked .competitor-top-product-metric,
.competitor-top-products.is-paid-locked .competitor-top-product-trend,
.competitor-top-products.is-paid-locked .competitor-top-product-rating {
    display: grid;
    grid-template-rows: 30px 20px;
    align-content: center;
    align-items: center;
    justify-items: start;
    gap: 4px;
    height: 56px;
    min-height: 56px;
    overflow: visible;
    color: #526872;
}

.competitor-top-products.is-paid-locked .premium-cell-preview {
    display: grid;
    align-content: center;
    align-items: center;
    justify-items: start;
    gap: 4px;
    width: 100%;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    overflow: hidden;
}

.competitor-top-products.is-paid-locked .competitor-top-product-category {
    white-space: normal;
}

.competitor-top-products.is-paid-locked .competitor-top-product-trend .premium-cell-preview {
    width: 98px;
}

.competitor-top-products.is-paid-locked .competitor-top-product-rating {
    max-width: 116px;
}

.competitor-top-products.is-paid-locked .competitor-top-product-trend .premium-stat-ghost-label {
    display: none;
}

.competitor-top-products.is-paid-locked .premium-stat-ghost-main {
    margin-bottom: 0;
}

.competitor-top-products.is-paid-locked .premium-cell-gate {
    align-self: end;
}

.competitor-top-products.is-paid-locked .competitor-top-product-row:hover {
    background: linear-gradient(90deg, rgba(244, 246, 255, 0.98), rgba(236, 249, 247, 0.94));
}

.competitor-analysis-tab-btn.is-paid-locked {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.competitor-analysis-tab-btn.is-paid-locked .tab-lock-icon {
    width: 14px;
    height: 14px;
    opacity: 0.86;
}

.competitor-paid-sales-preview {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 16px;
}

.competitor-paid-sales-preview .premium-sales-blur-surface {
    position: relative;
    display: grid;
    gap: 16px;
    filter: blur(4.8px);
    opacity: 0.58;
    pointer-events: none;
    user-select: none;
}

.competitor-paid-sales-preview .premium-sales-chart-ghost {
    opacity: 0.9;
}

.premium-access-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(620px, calc(100% - 32px));
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(245, 248, 255, 0.42)),
        rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    backdrop-filter: blur(18px) saturate(1.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 16px 34px rgba(38, 48, 94, 0.1);
    color: #20284f;
}

.premium-access-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(83, 92, 226, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    color: #4f58de;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.premium-access-icon svg,
.premium-access-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.premium-access-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.premium-access-copy strong {
    color: #171d45;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.16;
}

.premium-access-copy small {
    color: #67728f;
    font-size: 0.68rem;
    font-weight: 760;
    line-height: 1.25;
}

.premium-access-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    white-space: nowrap;
}

.premium-access-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.58);
    color: #4f58de;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.premium-access-links a:hover {
    border-color: rgba(83, 92, 226, 0.4);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 18px rgba(83, 92, 226, 0.12);
    transform: translateY(-1px);
}

.premium-access-link {
    gap: 6px;
}

.premium-access-cue-chart {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: clamp(160px, 42%, 330px);
    transform: translate(-50%, -50%);
    padding: 10px 12px;
}

html[data-theme="dark"] .competitor-top-products-table {
    border-color: rgba(126, 156, 178, 0.22);
    background: rgba(18, 25, 32, 0.7);
    box-shadow: none;
}

html[data-theme="dark"] .competitor-top-products-headrow {
    border-bottom-color: rgba(126, 156, 178, 0.18);
    background:
        linear-gradient(180deg, #121a22 0%, #10171f 100%),
        #121a22;
    box-shadow:
        0 1px 0 rgba(126, 156, 178, 0.12),
        0 10px 18px rgba(0, 0, 0, 0.28);
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-top-products-table .competitor-top-product-row {
    background: rgba(18, 25, 32, 0.62);
    border-bottom-color: rgba(126, 156, 178, 0.16);
}

html[data-theme="dark"] .competitor-top-products-table .competitor-top-product-row:hover {
    background: rgba(27, 43, 51, 0.9);
}

html[data-theme="dark"] .competitor-top-products-table .competitor-top-product-row.is-deleted {
    background:
        linear-gradient(90deg, rgba(63, 30, 35, 0.62), rgba(18, 25, 32, 0.74)),
        rgba(18, 25, 32, 0.72);
}

html[data-theme="dark"] .competitor-top-products-table .competitor-top-product-row.is-deleted:hover {
    background:
        linear-gradient(90deg, rgba(75, 36, 42, 0.74), rgba(27, 43, 51, 0.92)),
        rgba(27, 43, 51, 0.9);
}

html[data-theme="dark"] .competitor-top-product-category,
html[data-theme="dark"] .competitor-top-product-metric,
html[data-theme="dark"] .competitor-top-product-trend,
html[data-theme="dark"] .competitor-top-product-rating {
    color: #9db2c3;
}

html[data-theme="dark"] .competitor-top-product-metric b,
html[data-theme="dark"] .competitor-top-product-rating b {
    color: #dbe8f2;
}

html[data-theme="dark"] .competitor-top-product-empty {
    border-color: rgba(157, 178, 195, 0.24);
    background: rgba(157, 178, 195, 0.1);
    color: #aebdca;
}

html[data-theme="dark"] .competitor-top-product-row.is-deleted .competitor-top-product-category,
html[data-theme="dark"] .competitor-top-product-row.is-deleted .competitor-top-product-metric b,
html[data-theme="dark"] .competitor-top-product-row.is-deleted .competitor-top-product-rating b {
    color: #f1b4b4;
}

html[data-theme="dark"] .competitor-top-product-row.is-deleted .competitor-top-product-empty {
    border-color: rgba(244, 126, 126, 0.3);
    background: rgba(244, 126, 126, 0.12);
    color: #f1b4b4;
}

html[data-theme="dark"] .competitor-top-product-status {
    border-color: rgba(244, 126, 126, 0.28);
    background: rgba(83, 36, 42, 0.54);
    color: #ffc8c8;
}

html[data-theme="dark"] .competitor-top-product-metric.is-cpa b {
    color: #7ee1d8;
}

.competitor-top-products.is-expanded {
    position: fixed;
    inset: clamp(10px, 2vw, 24px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(104, 112, 243, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(37, 201, 189, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 255, 0.98));
    box-shadow: 0 26px 80px rgba(21, 28, 67, 0.24);
    animation: competitorTopProductsLift 0.2s ease both;
}

.competitor-top-products.is-expanded .competitor-top-products-table {
    flex: 1 1 auto;
    max-height: none;
}

.competitor-top-products.is-expanded .competitor-top-products-expand {
    display: none !important;
}

.competitor-top-products.is-expanded .competitor-top-products-close {
    display: inline-flex !important;
}

body.shell-auth .competitor-top-products.is-expanded .competitor-top-products-close {
    display: inline-flex !important;
}

body.competitor-top-products-expanded {
    overflow: hidden;
}

body.competitor-top-products-expanded::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(16, 22, 50, 0.32);
    backdrop-filter: blur(9px);
}

@keyframes competitorTopProductsLift {
    from {
        opacity: 0.88;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

html[data-theme="dark"] .competitor-top-products.is-expanded {
    border-color: rgba(126, 156, 178, 0.28);
    background:
        radial-gradient(circle at top left, rgba(37, 201, 189, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(17, 24, 32, 0.99), rgba(12, 18, 24, 0.98));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

html[data-theme="dark"] .competitor-snapshot-status {
    border-color: rgba(126, 156, 178, 0.2);
    background: rgba(19, 28, 37, 0.78);
    color: #aebfce;
}

html[data-theme="dark"] .competitor-cpa-backfill {
    border-color: rgba(158, 162, 255, 0.28);
    background: rgba(83, 92, 226, 0.16);
    color: #bfc2ff;
}

html[data-theme="dark"] .competitor-cpa-backfill:hover {
    border-color: rgba(158, 162, 255, 0.44);
    background: rgba(83, 92, 226, 0.24);
    color: #d7d9ff;
}

html[data-theme="dark"] .competitor-top-product-cpa-unavailable {
    color: #93a2b0;
}

html[data-theme="dark"] .competitor-snapshot-status.is-error {
    border-color: rgba(255, 126, 126, 0.3);
    background: rgba(110, 34, 34, 0.28);
    color: #ffb4b4;
}

html[data-theme="dark"] .competitor-top-product-spark {
    border-color: rgba(37, 201, 189, 0.2);
    background: rgba(12, 18, 24, 0.46);
}

html[data-theme="dark"] .competitor-top-products-table .competitor-top-product-action {
    border-color: rgba(158, 162, 255, 0.28);
    background: rgba(83, 92, 226, 0.18);
}

html[data-theme="dark"] .paid-feature-lock,
html[data-theme="dark"] .paid-feature-inline-lock {
    border-color: rgba(126, 156, 178, 0.2);
    background:
        linear-gradient(135deg, rgba(27, 55, 58, 0.58), rgba(34, 38, 70, 0.44)),
        rgba(18, 25, 32, 0.34);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    backdrop-filter: blur(18px) saturate(1.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.22);
    color: #dbe8f2;
}

html[data-theme="dark"] .paid-feature-lock-icon {
    border-color: rgba(158, 162, 255, 0.26);
    background: rgba(18, 25, 32, 0.44);
    -webkit-backdrop-filter: blur(14px) saturate(1.16);
    backdrop-filter: blur(14px) saturate(1.16);
    color: #9ea2ff;
}

html[data-theme="dark"] .paid-feature-lock strong,
html[data-theme="dark"] .paid-feature-inline-lock strong {
    color: #dbe8f2;
}

html[data-theme="dark"] .paid-feature-lock small,
html[data-theme="dark"] .paid-feature-inline-lock small {
    color: #9db2c3;
}

html[data-theme="dark"] .paid-lock-badge,
html[data-theme="dark"] .paid-lock-cell {
    border-color: rgba(158, 162, 255, 0.26);
    background:
        linear-gradient(135deg, rgba(45, 54, 88, 0.5), rgba(29, 39, 56, 0.34));
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
    backdrop-filter: blur(16px) saturate(1.18);
    color: #bfc2ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .paid-lock-badge:hover {
    border-color: rgba(158, 162, 255, 0.46);
    background:
        linear-gradient(135deg, rgba(67, 76, 120, 0.54), rgba(36, 48, 68, 0.44));
    color: #d7d9ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .competitor-paid-sales-preview .premium-sales-blur-surface {
    opacity: 0.5;
}

html[data-theme="dark"] .premium-access-cue {
    border-color: rgba(158, 162, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(30, 39, 54, 0.7), rgba(24, 28, 48, 0.52)),
        rgba(18, 25, 32, 0.48);
    -webkit-backdrop-filter: blur(18px) saturate(1.14);
    backdrop-filter: blur(18px) saturate(1.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 18px 40px rgba(0, 0, 0, 0.22);
    color: #dbe8f2;
}

html[data-theme="dark"] .premium-access-icon {
    border-color: rgba(158, 162, 255, 0.28);
    background: rgba(18, 25, 32, 0.56);
    color: #bfc2ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .premium-access-copy strong {
    color: #dbe8f2;
}

html[data-theme="dark"] .premium-access-copy small {
    color: #9db2c3;
}

html[data-theme="dark"] .premium-access-links a {
    border-color: rgba(158, 162, 255, 0.26);
    background: rgba(83, 92, 226, 0.16);
    color: #bfc2ff;
}

html[data-theme="dark"] .premium-access-links a:hover {
    border-color: rgba(158, 162, 255, 0.42);
    background: rgba(83, 92, 226, 0.24);
    box-shadow: none;
}

html[data-theme="dark"] .premium-cell-gate {
    border-color: rgba(158, 162, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(45, 54, 88, 0.42), rgba(18, 25, 32, 0.28)),
        rgba(18, 25, 32, 0.28);
    -webkit-backdrop-filter: blur(14px) saturate(1.16);
    backdrop-filter: blur(14px) saturate(1.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.16);
    color: #bfc2ff;
}

html[data-theme="dark"] .competitor-top-products-table::before {
    background: rgba(11, 17, 24, 0.72);
}

html[data-theme="dark"] .competitor-top-products-table::after {
    border-color: rgba(158, 162, 255, 0.24);
    background: rgba(18, 25, 32, 0.9);
    color: #dbe8f2;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

@media (max-width: 760px) {
    .competitor-top-products-head {
        align-items: stretch;
        flex-direction: column;
    }

    .competitor-top-products-actions {
        justify-content: flex-start;
    }

    .competitor-snapshot-status {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .competitor-cpa-backfill {
        min-height: 34px;
    }

    .competitor-top-products-table {
        max-height: none;
        overflow-x: visible;
        border-radius: 12px;
        padding: 7px;
    }

    .competitor-top-products.is-expanded {
        inset: 8px;
        padding: 12px;
        border-radius: 14px;
    }

    .competitor-top-products.is-expanded .competitor-top-products-table {
        overflow: auto;
    }

    .competitor-top-products-headrow {
        display: none;
    }

    .premium-access-cue {
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .premium-access-cue-chart {
        position: relative;
        inset: auto;
        transform: none;
        margin: 8px 0;
        padding: 9px 10px;
    }

    .premium-access-cue-chart {
        order: -1;
    }

    .premium-access-copy small {
        display: none;
    }

    .premium-access-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        white-space: normal;
    }

    .competitor-top-products-table .competitor-top-product-row {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        min-width: 0;
        align-items: start;
        gap: 8px 10px;
        min-height: 0;
        margin-bottom: 8px;
        border: 1px solid rgba(104, 112, 243, 0.14);
        border-radius: 10px !important;
        padding: 10px;
    }

    .competitor-top-products-table .competitor-top-product-row:last-child {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(104, 112, 243, 0.14);
    }

    .competitor-top-product-main,
    .competitor-top-product-category,
    .competitor-top-product-metric,
    .competitor-top-product-trend,
    .competitor-top-product-rating,
    .competitor-top-products-table .competitor-top-product-action {
        grid-column: 2 / -1;
    }

    .competitor-top-product-main {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
    }

    .competitor-top-product-category,
    .competitor-top-product-metric,
    .competitor-top-product-trend,
    .competitor-top-product-rating {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-top: 1px solid rgba(104, 112, 243, 0.1);
        padding-top: 8px;
    }

    .competitor-top-product-category::before,
    .competitor-top-product-metric::before,
    .competitor-top-product-trend::before,
    .competitor-top-product-rating::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #8a96a8;
        font-size: 0.66rem;
        font-weight: 950;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .competitor-top-product-category {
        white-space: normal;
    }

    .competitor-top-product-metric {
        justify-items: end;
        text-align: right;
    }

    .competitor-top-product-trend {
        grid-template-columns: auto auto;
    }

    .competitor-top-product-spark {
        width: 104px;
    }

    .competitor-top-products-table .competitor-top-product-action {
        justify-self: start;
        margin-top: 2px;
    }
}

@media (max-width: 420px) {
    .competitor-top-products-table .competitor-top-product-row {
        grid-template-columns: 30px minmax(0, 1fr) !important;
    }

    .competitor-top-product-category,
    .competitor-top-product-metric,
    .competitor-top-product-trend,
    .competitor-top-product-rating {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .competitor-top-product-metric {
        text-align: left;
    }
}

body.shell-auth .prom-products-table {
    min-width: 760px !important;
}

/* -------------------------------------------------------------------------- */
/* v1.468 - Cross Checker dark workspace                                      */
/* Prom Analytics is deliberately excluded through .shell-prom-analytics.      */
/* -------------------------------------------------------------------------- */

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) {
    color-scheme: dark;
    --topbar-height: 68px;
    --content-gutter: clamp(14px, 1.55vw, 30px);

    --cc-dark-canvas: #08111a;
    --cc-dark-canvas-soft: #0b1621;
    --cc-dark-sidebar: #0c1823;
    --cc-dark-surface: #101c28;
    --cc-dark-surface-raised: #152331;
    --cc-dark-surface-soft: #0d1924;
    --cc-dark-surface-hover: #192a39;
    --cc-dark-line: rgba(139, 166, 191, 0.2);
    --cc-dark-line-strong: rgba(126, 139, 255, 0.48);
    --cc-dark-text: #f2f6fb;
    --cc-dark-text-soft: #d5dfeb;
    --cc-dark-muted: #9eafc1;
    --cc-dark-subtle: #7f91a5;
    --cc-dark-primary: #7784ff;
    --cc-dark-primary-strong: #9ba4ff;
    --cc-dark-primary-soft: rgba(119, 132, 255, 0.15);
    --cc-dark-teal: #54caba;
    --cc-dark-teal-soft: rgba(84, 202, 186, 0.14);
    --cc-dark-success: #62cf9a;
    --cc-dark-warning: #e1b15f;
    --cc-dark-danger: #f07d7d;
    --cc-dark-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    --cc-dark-shadow-raised: 0 24px 60px rgba(0, 0, 0, 0.32);

    --bg-base: var(--cc-dark-canvas);
    --bg-panel: var(--cc-dark-surface);
    --bg-panel-soft: var(--cc-dark-surface-soft);
    --text-main: var(--cc-dark-text);
    --text-primary: var(--cc-dark-text);
    --text-muted: var(--cc-dark-muted);
    --text-strong: var(--cc-dark-text);
    --text-accent: var(--cc-dark-teal);
    --border: var(--cc-dark-line);
    --accent: var(--cc-dark-primary);
    --accent-dark: var(--cc-dark-primary-strong);
    --accent-soft: var(--cc-dark-primary-soft);
    --accent-strong: var(--cc-dark-primary-strong);
    --danger: var(--cc-dark-danger);
    --ok: var(--cc-dark-success);
    --warning: var(--cc-dark-warning);
    --shadow: var(--cc-dark-shadow);

    --color-canvas: var(--cc-dark-canvas);
    --color-surface: var(--cc-dark-surface);
    --color-surface-soft: var(--cc-dark-surface-soft);
    --color-surface-strong: var(--cc-dark-surface-raised);
    --color-text: var(--cc-dark-text);
    --color-text-muted: var(--cc-dark-muted);
    --color-border: var(--cc-dark-line);
    --color-border-strong: var(--cc-dark-line-strong);
    --color-primary: var(--cc-dark-primary);
    --color-primary-hover: #8793ff;
    --color-primary-active: var(--cc-dark-primary-strong);
    --color-primary-soft: var(--cc-dark-primary-soft);
    --color-success: var(--cc-dark-success);
    --color-warning: var(--cc-dark-warning);
    --color-danger: var(--cc-dark-danger);
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.2);
    --shadow-md: var(--cc-dark-shadow);
    --shadow-lg: var(--cc-dark-shadow-raised);

    --ui-bg: var(--cc-dark-canvas);
    --ui-bg-warm: var(--cc-dark-canvas-soft);
    --ui-surface: var(--cc-dark-surface);
    --ui-surface-solid: var(--cc-dark-surface-raised);
    --ui-surface-soft: var(--cc-dark-surface-soft);
    --ui-surface-hover: var(--cc-dark-surface-hover);
    --ui-ink: var(--cc-dark-text);
    --ui-ink-soft: var(--cc-dark-text-soft);
    --ui-muted: var(--cc-dark-muted);
    --ui-muted-strong: #b8c5d3;
    --ui-line: var(--cc-dark-line);
    --ui-line-strong: var(--cc-dark-line-strong);
    --ui-primary: var(--cc-dark-primary);
    --ui-primary-strong: var(--cc-dark-primary-strong);
    --ui-primary-soft: var(--cc-dark-primary-soft);
    --ui-danger: var(--cc-dark-danger);
    --ui-danger-strong: #ffaaaa;
    --ui-danger-soft: rgba(240, 125, 125, 0.14);
    --ui-warning: var(--cc-dark-warning);
    --ui-warning-soft: rgba(225, 177, 95, 0.14);

    --clean-ink: var(--cc-dark-text);
    --clean-ink-soft: var(--cc-dark-text-soft);
    --clean-muted: var(--cc-dark-muted);
    --clean-bg: var(--cc-dark-canvas);
    --clean-bg-warm: var(--cc-dark-canvas-soft);
    --clean-surface: var(--cc-dark-surface);
    --clean-surface-soft: var(--cc-dark-surface-soft);
    --clean-line: var(--cc-dark-line);
    --clean-line-strong: var(--cc-dark-line-strong);
    --clean-primary: var(--cc-dark-primary);
    --clean-primary-strong: var(--cc-dark-primary-strong);
    --clean-primary-soft: var(--cc-dark-primary-soft);
    --clean-success: var(--cc-dark-success);
    --clean-success-soft: rgba(98, 207, 154, 0.14);
    --clean-danger: var(--cc-dark-danger);
    --clean-danger-soft: rgba(240, 125, 125, 0.14);
    --clean-warning: var(--cc-dark-warning);
    --clean-warning-soft: rgba(225, 177, 95, 0.14);

    --cc-control-border: var(--cc-dark-line);
    --cc-control-border-strong: var(--cc-dark-line-strong);
    --cc-control-bg: #111f2c;
    --cc-control-bg-soft: #0d1924;
    --cc-control-bg-hover: #182938;
    --cc-control-ink: var(--cc-dark-text-soft);
    --cc-control-muted: var(--cc-dark-muted);
    --cc-control-primary: var(--cc-dark-primary);
    --cc-control-primary-strong: var(--cc-dark-primary-strong);
    --cc-control-focus: 0 0 0 3px rgba(119, 132, 255, 0.2);
    --cc-control-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);

    margin: 0;
    background:
        radial-gradient(900px 600px at 82% -10%, rgba(90, 105, 223, 0.12), transparent 62%),
        radial-gradient(760px 520px at -8% 38%, rgba(53, 143, 134, 0.1), transparent 64%),
        linear-gradient(145deg, var(--cc-dark-canvas) 0%, #09131d 48%, #071018 100%);
    color: var(--cc-dark-text);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics)::before {
    background-image:
        linear-gradient(rgba(139, 166, 191, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 166, 191, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.45;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .ambient-bg .orb {
    filter: blur(100px);
    opacity: 0.13;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .ambient-bg .orb-a {
    background: #4058d2;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .ambient-bg .orb-b {
    background: #237a75;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .ambient-bg .orb-c {
    background: #273e64;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar {
    height: var(--topbar-height);
    border-bottom: 1px solid rgba(139, 166, 191, 0.16);
    background: rgba(8, 17, 26, 0.9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar-inner {
    min-height: var(--topbar-height);
    padding-inline: 6px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .brand {
    min-width: 0;
    border-radius: 14px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .brand:focus-visible {
    outline: 3px solid rgba(119, 132, 255, 0.3);
    outline-offset: 4px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .brand-logo-main {
    height: clamp(34px, 2.1vw, 42px);
    max-width: min(250px, 42vw);
    filter: brightness(1.28) saturate(1.08);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions {
    gap: 8px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .top-actions > .badge,
    .top-actions > .role-pill,
    .top-nav a,
    .top-nav .nav-link-button
) {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(139, 166, 191, 0.16);
    border-radius: 11px;
    background: rgba(17, 30, 43, 0.72);
    color: var(--cc-dark-text-soft);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions > .badge {
    border-color: rgba(119, 132, 255, 0.28);
    background: rgba(119, 132, 255, 0.1);
    color: #b9c0ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions > .role-pill {
    color: var(--cc-dark-muted);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .top-nav a:hover,
    .top-nav .nav-link-button:hover,
    .top-nav a:focus-visible,
    .top-nav .nav-link-button:focus-visible
) {
    border-color: rgba(119, 132, 255, 0.4);
    background: rgba(119, 132, 255, 0.13);
    color: #ffffff;
    outline: none;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .danger-link:hover {
    border-color: rgba(240, 125, 125, 0.34);
    background: rgba(240, 125, 125, 0.11);
    color: #ffb0b0;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .auth-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    margin-top: var(--topbar-height);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics).sidebar-collapsed .auth-layout {
    grid-template-columns: 84px minmax(0, 1fr);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-sidebar {
    top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
    border-right: 1px solid rgba(139, 166, 191, 0.16);
    background:
        linear-gradient(180deg, rgba(13, 26, 38, 0.98), rgba(9, 20, 30, 0.98)),
        radial-gradient(circle at 50% 0%, rgba(119, 132, 255, 0.1), transparent 30%);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-nav {
    gap: 5px;
    padding: 58px 10px max(28px, env(safe-area-inset-bottom)) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-section-label {
    margin: 16px 12px 6px;
    color: #718499;
    font-size: 0.66rem;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link {
    position: relative;
    min-height: 48px;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #adbdcc;
    font-size: 0.88rem;
    font-weight: 750;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link::before {
    content: "";
    position: absolute;
    inset: 9px auto 9px -1px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: transparent;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link-icon {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(139, 166, 191, 0.18);
    border-radius: 10px;
    background: rgba(16, 29, 41, 0.86);
    color: #76cfc5;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link:hover {
    border-color: rgba(139, 166, 191, 0.18);
    background: rgba(25, 42, 57, 0.72);
    color: #eef6ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link:hover .sidebar-link-icon {
    border-color: rgba(84, 202, 186, 0.32);
    background: rgba(84, 202, 186, 0.1);
    color: #a7eee5;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link.is-active {
    border-color: rgba(119, 132, 255, 0.34);
    background:
        linear-gradient(90deg, rgba(84, 202, 186, 0.15), rgba(119, 132, 255, 0.12)),
        rgba(21, 36, 50, 0.82);
    color: #f5f8ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link.is-active::before {
    background: linear-gradient(180deg, var(--cc-dark-teal), var(--cc-dark-primary));
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link.is-active .sidebar-link-icon {
    border-color: rgba(84, 202, 186, 0.42);
    background: rgba(84, 202, 186, 0.13);
    color: #b8f5ed;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-collapse-btn {
    border-color: rgba(139, 166, 191, 0.22) !important;
    background: rgba(14, 27, 39, 0.92) !important;
    color: var(--cc-dark-muted) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-collapse-icon {
    border-color: rgba(119, 132, 255, 0.3) !important;
    background: rgba(119, 132, 255, 0.12) !important;
    color: #c1c6ff !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-collapse-btn:hover,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-collapse-btn:focus-visible {
    border-color: rgba(119, 132, 255, 0.42) !important;
    background: rgba(119, 132, 255, 0.1) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .shell-nav-toggle {
    border-color: rgba(139, 166, 191, 0.24);
    background: rgba(17, 30, 43, 0.9);
    color: #c2c9ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-backdrop {
    background: rgba(3, 8, 13, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-main-scroll {
    padding: 0 var(--content-gutter) clamp(24px, 3vw, 42px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .layout-page-container {
    gap: clamp(16px, 1.4vw, 24px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-header {
    margin: 0;
    padding: clamp(22px, 2.4vw, 36px) 0 clamp(4px, 0.6vw, 10px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-title {
    color: var(--cc-dark-text);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.65rem, 1.25rem + 1.35vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-subtitle {
    max-width: 860px;
    margin-top: 8px;
    color: var(--cc-dark-muted);
    font-size: 0.94rem;
    font-weight: 550;
    line-height: 1.55;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .panel,
    .overview-zone-kpi,
    .overview-zone-sources,
    .overview-work-card,
    .overview-run-grid > .panel,
    .table-wrap,
    .history-table-block,
    .history-table-wrap,
    .scan-table-wrap,
    .products-table-section,
    .competitor-analysis-panel,
    .competitor-analysis-table-wrap,
    .settings-page .table-wrap,
    .admin-user-card,
    .admin-user-section,
    .billing-center-card,
    .settings-card
) {
    border-color: var(--cc-dark-line) !important;
    background: var(--cc-dark-surface) !important;
    color: var(--cc-dark-text-soft);
    box-shadow: var(--cc-dark-shadow) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .panel,
    .overview-zone-kpi,
    .overview-zone-sources,
    .overview-work-card
) {
    border-radius: 18px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    h1,
    h2,
    h3,
    h4,
    .panel h1,
    .panel h2,
    .panel h3,
    .item-title,
    .source-name,
    .source-preview-title,
    .summary-value,
    .insight-value,
    .stat-value
) {
    color: var(--cc-dark-text);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .muted,
    .tiny-note,
    .small,
    .insight-meta,
    .summary-meta,
    .source-preview-url,
    .source-url,
    .scan-filter-hint,
    .scan-pagination-meta
) {
    color: var(--cc-dark-muted);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .overview-summary-label,
    .insight-label,
    .summary-label,
    .stat-label,
    .scan-item-col-label,
    .scan-item-kpi-label,
    th
) {
    color: #b3c1d0;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-v386-shell {
    gap: clamp(18px, 1.7vw, 28px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-v386-shell .panel,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-zone-kpi {
    border-color: var(--cc-dark-line) !important;
    background: var(--cc-dark-surface) !important;
    box-shadow: var(--cc-dark-shadow) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387 {
    gap: 18px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid {
    gap: 10px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .overview-summary-stat,
    .overview-v386-shell .insight-card,
    .overview-status-list li,
    .overview-source-item,
    .source-preview-item,
    .feed-slot,
    .summary-card,
    .stat-card,
    .cabinet-card,
    .cabinet-kpi
) {
    border-color: rgba(139, 166, 191, 0.18) !important;
    background: var(--cc-dark-surface-soft) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .overview-summary-stat:hover,
    .overview-v386-shell .insight-card:hover,
    .overview-source-item:hover
) {
    border-color: rgba(119, 132, 255, 0.32) !important;
    background: var(--cc-dark-surface-raised) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid .overview-summary-stat:nth-child(2) {
    border-color: rgba(84, 202, 186, 0.26) !important;
    background:
        linear-gradient(145deg, rgba(84, 202, 186, 0.1), transparent 58%),
        var(--cc-dark-surface-soft) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid .overview-summary-stat:nth-child(3) {
    border-color: rgba(119, 132, 255, 0.26) !important;
    background:
        linear-gradient(145deg, rgba(119, 132, 255, 0.1), transparent 58%),
        var(--cc-dark-surface-soft) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat {
    position: relative;
    overflow: hidden;
    border-color: rgba(119, 132, 255, 0.34) !important;
    background:
        radial-gradient(520px 180px at 0% 0%, rgba(119, 132, 255, 0.16), transparent 66%),
        linear-gradient(135deg, rgba(84, 202, 186, 0.07), transparent 58%),
        var(--cc-dark-surface-raised) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--cc-dark-primary), var(--cc-dark-teal));
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat-head b {
    border-color: rgba(119, 132, 255, 0.38);
    background: rgba(119, 132, 255, 0.13);
    color: #c4c9ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat > strong {
    color: #ffffff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-kpi-grid .insight-card-primary {
    border-color: rgba(84, 202, 186, 0.25) !important;
    background:
        linear-gradient(145deg, rgba(84, 202, 186, 0.1), transparent 62%),
        var(--cc-dark-surface-soft) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-kpi-grid .insight-card-warning {
    border-color: rgba(225, 177, 95, 0.28) !important;
    background:
        linear-gradient(145deg, rgba(225, 177, 95, 0.1), transparent 62%),
        var(--cc-dark-surface-soft) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-kpi-grid .insight-card-ok {
    border-color: rgba(98, 207, 154, 0.26) !important;
    background:
        linear-gradient(145deg, rgba(98, 207, 154, 0.1), transparent 62%),
        var(--cc-dark-surface-soft) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .kpi-delta-neutral,
    .overview-source-meta,
    .overview-source-slot,
    .overview-sources-count
) {
    color: var(--cc-dark-subtle);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .kpi-delta-up {
    color: #efbf72;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .kpi-delta-down {
    color: #75d9a9;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-source-status {
    color: #78dccf;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-source-item.is-empty {
    border-color: rgba(139, 166, 191, 0.16) !important;
    background: rgba(12, 23, 33, 0.78) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea,
    .custom-select-trigger,
    .role-select
) {
    border-color: var(--cc-dark-line) !important;
    background: #101e2b !important;
    color: var(--cc-dark-text-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea,
    .custom-select-trigger,
    .role-select
):hover {
    border-color: rgba(139, 166, 191, 0.32) !important;
    background: #142534 !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea
):focus,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .custom-select.is-open .custom-select-trigger,
    .custom-select-trigger:focus-visible,
    .role-select:focus-visible
) {
    border-color: rgba(119, 132, 255, 0.66) !important;
    background: #172938 !important;
    box-shadow: 0 0 0 3px rgba(119, 132, 255, 0.2) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(input, textarea)::placeholder {
    color: #6f8296 !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) select option {
    background: #12202d;
    color: var(--cc-dark-text-soft);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .custom-select-menu {
    border-color: var(--cc-dark-line) !important;
    background: #142330 !important;
    box-shadow: var(--cc-dark-shadow-raised) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .custom-select-option {
    color: var(--cc-dark-text-soft) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .custom-select-option:hover,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .custom-select-option:focus-visible {
    background: rgba(119, 132, 255, 0.12) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .custom-select-option.is-selected {
    background: rgba(119, 132, 255, 0.16) !important;
    color: #d9dcff !important;
    box-shadow: inset 3px 0 0 var(--cc-dark-primary) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .overview-kpi-scan-form,
    .competitor-analysis-form,
    .feed-scan-launch-form,
    .scan-filter-form .filter-mode-shell,
    .scan-filter-flags,
    .audit-filter-bar,
    .billing-inner-tabs
) {
    border-color: rgba(139, 166, 191, 0.16) !important;
    background: rgba(12, 24, 35, 0.82) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn, .action-pill) {
    border-color: rgba(139, 166, 191, 0.22) !important;
    background: #142330 !important;
    color: #d9e3ed !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn:hover, .action-pill:hover) {
    border-color: rgba(119, 132, 255, 0.46) !important;
    background: #1a2c3b !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn-primary) {
    border-color: rgba(132, 144, 255, 0.7) !important;
    background: linear-gradient(135deg, #6877f5, #5967df) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(58, 70, 196, 0.24) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn-primary:hover) {
    border-color: rgba(157, 166, 255, 0.84) !important;
    background: linear-gradient(135deg, #7d89ff, #6471e8) !important;
    box-shadow: 0 16px 32px rgba(58, 70, 196, 0.3) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn-secondary, .btn-action, .action-pill) {
    background: #132330 !important;
    color: #c7d2ff !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn-accent-soft, .action-pill-info-primary) {
    border-color: rgba(84, 202, 186, 0.3) !important;
    background: rgba(84, 202, 186, 0.12) !important;
    color: #9ce8df !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn-warning-soft) {
    border-color: rgba(225, 177, 95, 0.32) !important;
    background: rgba(225, 177, 95, 0.12) !important;
    color: #efc77f !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(.btn-danger-soft) {
    border-color: rgba(240, 125, 125, 0.32) !important;
    background: rgba(240, 125, 125, 0.11) !important;
    color: #ffaaaa !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .btn:focus-visible,
    .action-pill:focus-visible,
    .filter-preset-btn:focus-visible,
    .scan-action-btn:focus-visible
) {
    outline: none !important;
    border-color: rgba(145, 155, 255, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(119, 132, 255, 0.22) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .badge,
    .status-chip,
    .risk-chip,
    .availability-chip,
    .kpi-delta,
    .notification-tag,
    .tariff-badge,
    .scan-item-tag,
    .products-item-tag,
    .scan-item-kpi-chip,
    .products-item-kpi-chip,
    .item-meta-chip,
    .product-detail-meta-chip,
    .product-stock-chip,
    .model-analysis-status-chip,
    .model-analysis-status-option
) {
    border-color: rgba(119, 132, 255, 0.28) !important;
    background: rgba(119, 132, 255, 0.11) !important;
    color: #c4c9ff !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .status-failed,
    .status-cancelled,
    .risk-high,
    .tone-danger,
    .stock-out,
    .alert.error
) {
    border-color: rgba(240, 125, 125, 0.34) !important;
    background: rgba(240, 125, 125, 0.12) !important;
    color: #ffaaaa !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .status-warning,
    .tone-warn,
    .risk-medium,
    .alert.warning
) {
    border-color: rgba(225, 177, 95, 0.34) !important;
    background: rgba(225, 177, 95, 0.12) !important;
    color: #efc77f !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .status-completed,
    .status-success,
    .tone-ok,
    .risk-low,
    .stock-in,
    .alert.success
) {
    border-color: rgba(98, 207, 154, 0.34) !important;
    background: rgba(98, 207, 154, 0.12) !important;
    color: #8de2b5 !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    table,
    .dashboard-scan-table,
    .usage-table,
    .admin-users-table,
    .mobile-friendly-table
) {
    color: var(--cc-dark-text-soft);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) th {
    border-bottom-color: rgba(139, 166, 191, 0.18) !important;
    background: #13212d !important;
    color: #aebdcb !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) td {
    border-bottom-color: rgba(139, 166, 191, 0.11) !important;
    color: #d2dce7;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) tbody tr:hover td {
    background: rgba(119, 132, 255, 0.075) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .table-link,
    .back-link,
    .auth-links a,
    .cc-page-breadcrumbs a
) {
    color: #9fa8ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-panel {
    border-color: var(--cc-dark-line) !important;
    background:
        radial-gradient(720px 320px at 0% 100%, rgba(84, 202, 186, 0.09), transparent 65%),
        var(--cc-dark-surface) !important;
    box-shadow: var(--cc-dark-shadow) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-player-card {
    border-color: rgba(139, 166, 191, 0.2);
    background: #0c1721;
    box-shadow: none;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-video-shell {
    border-color: rgba(139, 166, 191, 0.2);
    background: #050b11;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-step-copy strong,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-player-head strong,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-lesson-head strong {
    color: var(--cc-dark-text);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-step-copy em,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-note,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-player-head span,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-slide p {
    color: var(--cc-dark-muted);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-carousel-btn {
    border-color: rgba(139, 166, 191, 0.22);
    background: #142330;
    color: #c4c9ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-carousel-btn:hover,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-carousel-btn:focus-visible {
    border-color: rgba(84, 202, 186, 0.42);
    background: #1a2c3a;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-kicker,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-lesson-head span {
    border-color: rgba(84, 202, 186, 0.3);
    background: rgba(84, 202, 186, 0.12);
    color: #9ce8df;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-training-step-index {
    border-color: rgba(84, 202, 186, 0.28);
    background: rgba(84, 202, 186, 0.11);
    color: #9ce8df;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-link-card,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-link-card--chat,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-link-card--support {
    border-color: rgba(139, 166, 191, 0.19);
    background: #0e1a25;
    box-shadow: none;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-link-card:hover {
    border-color: rgba(84, 202, 186, 0.34);
    background: #142531;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-link-copy strong,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-links-head h3 {
    color: var(--cc-dark-text);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-link-copy span,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-links-head p {
    color: var(--cc-dark-muted);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .telegram-link-copy em {
    color: #8edcf4;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) ::-webkit-scrollbar-track {
    background: rgba(8, 17, 26, 0.45);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) ::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(139, 166, 191, 0.34);
    background-clip: padding-box;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) ::selection {
    background: rgba(119, 132, 255, 0.34);
    color: #ffffff;
}

@media (min-width: 1440px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .auth-layout {
        grid-template-columns: 294px minmax(0, 1fr);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics).sidebar-collapsed .auth-layout {
        grid-template-columns: 84px minmax(0, 1fr);
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .auth-layout {
        grid-template-columns: 258px minmax(0, 1fr);
    }
}

@media (max-width: 1279px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .auth-layout {
        display: block;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        width: min(330px, 88vw);
        transform: translateX(-102%);
        z-index: 130;
        box-shadow: 24px 0 56px rgba(0, 0, 0, 0.42);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics).sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-nav {
        padding-top: 14px !important;
    }
}

@media (max-width: 1023px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) {
        --topbar-height: 64px;
        --content-gutter: 14px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar-inner {
        flex-wrap: nowrap;
        gap: 10px;
        padding-block: 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .brand-logo-main {
        height: 34px;
        max-width: min(220px, 36vw);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions {
        width: auto;
        margin-left: auto;
        padding: 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions > .badge,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions > .role-pill {
        display: none;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-header {
        padding-top: 22px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) {
        --topbar-height: 60px;
        --content-gutter: 10px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar-inner {
        gap: 8px;
        padding-inline: 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .shell-nav-toggle {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .brand-logo-main {
        height: 31px;
        max-width: min(176px, 42vw);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav {
        gap: 6px;
        flex-wrap: nowrap;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav a,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .nav-link-button {
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        border-radius: 10px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav a span,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .nav-link-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .inline-icon {
        width: 18px;
        height: 18px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-main-scroll {
        padding-inline: var(--content-gutter);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-title {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-subtitle {
        font-size: 0.86rem;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
        .panel,
        .overview-zone-kpi,
        .overview-zone-sources,
        .overview-work-card
    ) {
        border-radius: 15px;
        padding: 14px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-kpi-grid,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-source-list,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-actions-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat {
        grid-column: auto;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-stat {
        min-height: 0;
        padding: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) *,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) *::before,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* -------------------------------------------------------------------------- */
/* v1.468.1 - dark geometry parity with the light Cross Checker workspace      */
/* This layer changes no Prom Analytics styles and keeps theme differences     */
/* limited to color, contrast, borders and elevation.                          */
/* -------------------------------------------------------------------------- */

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) {
    --topbar-height: 94px;
    --content-gutter: clamp(12px, 1.4vw, 26px);
    --radius-sm: 18px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 34px;
    --ui-font-ui: "Manrope", "Segoe UI", sans-serif;
    --ui-font-display: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    --ui-text-xs: 0.72rem;
    --ui-text-sm: 0.82rem;
    --ui-text-md: 0.94rem;
    --ui-text-base: 1rem;
    --ui-text-lg: 1.14rem;
    --ui-title-sm: clamp(1.45rem, 1.05rem + 1.1vw, 2rem);
    --ui-title-md: clamp(2rem, 1.2rem + 2.1vw, 3.15rem);
    font-family: var(--ui-font-ui);
    line-height: 1.55;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    h1,
    h2,
    h3,
    h4,
    .cc-page-title,
    .panel-title,
    .insight-value
) {
    font-family: var(--ui-font-display);
    letter-spacing: -0.045em;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .cc-page-title,
    .panel h1
) {
    font-size: var(--ui-title-md);
    line-height: 0.98;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .panel h2,
    .settings-section h2,
    .history-table-head h3
) {
    font-size: var(--ui-title-sm);
    line-height: 1.08;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .cc-page-subtitle,
    .insight-meta,
    .scan-filter-hint,
    .scan-pagination-meta
) {
    font-size: var(--ui-text-md);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar {
    inset: 12px clamp(10px, 1.2vw, 22px) auto clamp(10px, 1.2vw, 22px);
    height: 70px;
    border: 1px solid rgba(139, 166, 191, 0.18);
    border-radius: 30px;
    background: rgba(12, 24, 35, 0.88);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(119, 132, 255, 0.055), transparent 48%, rgba(84, 202, 186, 0.04)),
        radial-gradient(circle at 95% 50%, rgba(119, 132, 255, 0.08), transparent 24%);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar-inner {
    position: relative;
    z-index: 1;
    min-height: 68px;
    padding-inline: clamp(12px, 1.3vw, 22px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .brand-logo-main {
    height: clamp(38px, 2.6vw, 50px) !important;
    max-width: min(320px, 42vw) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions {
    gap: 10px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .top-actions > .badge,
    .top-actions > .role-pill,
    .top-nav a,
    .top-nav .nav-link-button
) {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .auth-layout {
    grid-template-columns: minmax(218px, 244px) minmax(0, 1fr);
    gap: clamp(12px, 1.15vw, 20px);
    margin-top: var(--topbar-height);
    padding-right: clamp(10px, 1.2vw, 20px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics).sidebar-collapsed .auth-layout {
    grid-template-columns: 100px minmax(0, 1fr);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-sidebar {
    position: sticky;
    top: calc(var(--topbar-height) + 10px);
    left: auto;
    width: auto;
    height: calc(100vh - var(--topbar-height) - 24px);
    margin: 0 0 14px clamp(10px, 1.2vw, 20px);
    padding-top: 12px;
    border: 1px solid rgba(139, 166, 191, 0.18);
    border-radius: 34px;
    transform: none;
    z-index: auto;
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-sidebar-head {
    padding: 20px 14px 8px !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-nav {
    gap: 9px;
    padding: 2px 14px 32px !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link {
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.94rem;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link::before,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat::before {
    content: none;
    display: none;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 15px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-collapse-btn {
    min-height: 56px !important;
    padding: 10px 12px !important;
    border-radius: 22px !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-collapse-icon {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 15px !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-main-scroll {
    padding: 0 0 clamp(22px, 2vw, 36px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .layout-page-container {
    gap: clamp(16px, 1.35vw, 24px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-header {
    position: relative;
    margin: 0 0 clamp(16px, 1.8vw, 26px);
    padding: clamp(20px, 2vw, 32px);
    border: 1px solid rgba(139, 166, 191, 0.18);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(16, 28, 40, 0.96), rgba(13, 25, 36, 0.94)),
        radial-gradient(circle at 92% 12%, rgba(119, 132, 255, 0.16), transparent 34%);
    box-shadow: var(--cc-dark-shadow);
    overflow: hidden;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 230px;
    height: 230px;
    border-radius: 999px;
    background: rgba(119, 132, 255, 0.1);
    filter: blur(6px);
    pointer-events: none;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-header-main,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-breadcrumbs {
    position: relative;
    z-index: 1;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-title {
    font-size: clamp(2rem, 1.35rem + 2.1vw, 3.55rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-subtitle {
    max-width: 760px;
    margin-top: 4px;
    font-size: clamp(0.96rem, 0.88rem + 0.28vw, 1.08rem);
    line-height: 1.45;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .panel,
    .overview-zone-kpi,
    .overview-zone-sources,
    .overview-work-card,
    .overview-run-grid > .panel,
    .table-wrap,
    .history-table-block,
    .history-table-wrap,
    .scan-table-wrap,
    .products-table-section,
    .competitor-analysis-panel,
    .competitor-analysis-table-wrap,
    .settings-page .table-wrap,
    .admin-user-card,
    .admin-user-section,
    .billing-center-card,
    .settings-card
) {
    border-radius: 30px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .panel,
    .overview-zone-kpi,
    .overview-zone-sources,
    .overview-work-card,
    .overview-run-grid > .panel
) {
    padding: clamp(18px, 1.8vw, 30px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-zone-summary.panel {
    border-radius: 34px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387 {
    gap: 16px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid {
    gap: clamp(12px, 1vw, 18px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .overview-summary-stat,
    .overview-v386-shell .insight-card,
    .overview-source-item,
    .overview-status-list li,
    .main-task-panel .source-preview-item,
    .product-overview-aside-grid .insight-card
) {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid .overview-summary-stat {
    min-height: 104px;
    padding: clamp(16px, 1.3vw, 22px);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-label {
    font-size: 0.72rem;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .small {
    font-size: 0.84rem;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-copy > .muted,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-stat .muted.small {
    line-height: 1.45;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat > .muted {
    line-height: 1.32;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-stat.overview-payment-stat > .muted.small {
    line-height: 1.32;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-stat > strong,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .insight-value,
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-status-list li strong {
    font-family: var(--ui-font-display);
    letter-spacing: -0.035em;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-stat > strong {
    font-size: clamp(1.15rem, 0.98rem + 0.65vw, 1.65rem);
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    .custom-select-trigger,
    .role-select
) {
    min-height: 50px;
    border-radius: 999px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) textarea {
    min-height: 50px;
    border-radius: 22px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .btn,
    .scan-action-btn,
    .filter-preset-btn,
    .notification-action-btn,
    .day-action-btn,
    .action-pill
) {
    min-height: 46px;
    border-radius: 999px;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .alert {
    border-radius: 22px;
}

@media (max-width: 1280px) and (min-width: 1025px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .auth-layout {
        display: grid;
        grid-template-columns: minmax(202px, 226px) minmax(0, 1fr);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-sidebar {
        position: sticky;
        top: calc(var(--topbar-height) + 10px);
        left: auto;
        width: auto;
        height: calc(100vh - var(--topbar-height) - 24px);
        margin: 0 0 14px clamp(10px, 1.2vw, 20px);
        transform: none;
        z-index: auto;
    }
}

@media (max-width: 1024px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) {
        --topbar-height: 84px;
        --content-gutter: clamp(12px, 1.4vw, 26px);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar {
        inset: 8px 8px auto;
        height: 66px;
        border-radius: 24px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions > .badge,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions > .role-pill {
        display: inline-flex;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .auth-layout {
        display: block;
        padding-right: 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 10px;
        width: min(330px, calc(100vw - 20px));
        height: calc(100vh - var(--topbar-height) - 12px);
        margin: 0;
        padding-top: 12px;
        border-radius: 28px;
        transform: translateX(calc(-100% - 18px));
        z-index: 130;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics).sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-backdrop {
        inset: var(--topbar-height) 0 0 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .app-main-scroll {
        padding: 0 10px clamp(22px, 2vw, 36px);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-header {
        padding-top: clamp(20px, 2vw, 32px);
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .shell-nav-toggle {
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        border-radius: 18px !important;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .brand-logo-main {
        height: 38px !important;
        max-width: 168px !important;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-zone-summary.panel {
        border-radius: 34px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
        .overview-summary-stat,
        .overview-v386-shell .insight-card,
        .overview-source-item,
        .overview-status-list li
    ) {
        border-radius: 28px;
    }
}

@media (max-width: 768px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) {
        --topbar-height: 76px;
        --content-gutter: 10px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar {
        height: 60px;
        border-radius: 22px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar-inner {
        min-height: 58px;
        gap: 8px;
        padding-inline: 9px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions {
        width: auto;
        padding-bottom: 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-actions > .role-pill {
        display: none;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav {
        gap: 6px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav a,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .nav-link-button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.82rem;
        border-radius: 999px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav a span,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .nav-link-button span {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-kpi-grid,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-source-list,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-actions-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-v1387-grid .overview-summary-stat {
        min-height: 0;
        padding: 16px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="password"],
        input[type="url"],
        input[type="search"],
        input[type="date"],
        select,
        textarea
    ) {
        min-height: 46px;
    }
}

@media (max-width: 520px) {
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .topbar-inner {
        min-height: 58px;
        padding: 8px 9px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .layout-page-container {
        gap: 12px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-header {
        padding: 16px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
        .panel,
        .overview-zone-kpi,
        .overview-zone-sources,
        .overview-work-card,
        .overview-run-grid > .panel
    ) {
        padding: 16px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .cc-page-title {
        font-size: clamp(1.74rem, 12vw, 2.35rem);
        line-height: 0.98;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-nav {
        padding-bottom: 32px !important;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .sidebar-link {
        border-radius: 20px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat > strong {
        font-size: 1.15rem !important;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-summary-stat.overview-payment-stat > .muted.small {
        line-height: 1.32;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .overview-payment-stat .btn {
        min-height: 42px !important;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav a,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .nav-link-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav a span,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .nav-link-button span {
        display: none;
    }

    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav a,
    html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .top-nav .nav-link-button {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding-inline: 0;
    }
}

/* Final cascade guard for the feed source workspace. */
body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slots-form {
    display: grid;
    gap: 14px;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 8px !important;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
    .feed-slot-primary-actions,
    .feed-slot-secondary-actions
) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

@media (max-width: 900px) {
    body.shell-auth:not(.shell-prom-analytics) #feeds-management .inline-fields {
        grid-template-columns: 1fr !important;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
        .feed-slot-primary-actions,
        .feed-slot-secondary-actions
    ) {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-form {
        gap: 12px;
        padding: 14px !important;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management .feed-slot-header {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: stretch !important;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
        .feed-slot-primary-actions,
        .feed-slot-secondary-actions
    ) {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.shell-auth:not(.shell-prom-analytics) #feeds-management :where(
        .feed-slot-header,
        .feed-slot-primary-actions,
        .feed-slot-secondary-actions
    ) > .btn {
        width: 100%;
    }
}

/* Dark surface completion: these components contain hard-coded light fills. */
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .scan-history-card {
    border-color: rgba(139, 166, 191, 0.2) !important;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(119, 132, 255, 0.08), transparent 72%),
        linear-gradient(145deg, #111f2c, #0e1a25) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .scan-history-card:hover {
    border-color: rgba(119, 132, 255, 0.38) !important;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(119, 132, 255, 0.12), transparent 72%),
        linear-gradient(145deg, #142433, #101e2a) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .scan-history-time {
    color: #9fa8ff;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .scan-history-title,
    .scan-history-stat strong
) {
    color: var(--cc-dark-text) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .scan-history-stat small,
    .scan-status-note
) {
    color: var(--cc-dark-muted) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .settings-tab-btn {
    border-color: rgba(139, 166, 191, 0.2) !important;
    background: #13212d !important;
    color: var(--cc-dark-text-soft) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .settings-tab-btn small {
    color: var(--cc-dark-muted) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .settings-tab-btn:hover,
    .settings-tab-btn:focus-visible
) {
    border-color: rgba(119, 132, 255, 0.4) !important;
    background: #192a39 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .settings-tab-btn.is-active {
    border-color: rgba(135, 146, 255, 0.56) !important;
    background:
        radial-gradient(190px 100px at 100% 0%, rgba(119, 132, 255, 0.22), transparent 72%),
        linear-gradient(145deg, rgba(42, 53, 94, 0.96), rgba(22, 35, 50, 0.98)) !important;
    color: #cbd0ff !important;
    box-shadow: 0 16px 34px rgba(20, 28, 78, 0.24) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .settings-tab-btn.is-active small {
    color: #b9c2df !important;
}

/* Dark billing completion: replace legacy white billing cards in Settings. */
html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-overview-card,
    .billing-center-card,
    .billing-status-board,
    .billing-checkout-hero > div:first-child,
    .billing-checkout-summary,
    .billing-pricing-card
) {
    border-color: rgba(139, 166, 191, 0.2) !important;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(119, 132, 255, 0.08), transparent 70%),
        linear-gradient(145deg, #111f2c, #0e1a25) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-status-board.is-ready,
    .billing-status-board.is-requested,
    .billing-status-board.is-paid,
    .billing-pricing-card.is-selected
) {
    border-color: rgba(135, 146, 255, 0.5) !important;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(119, 132, 255, 0.16), transparent 70%),
        linear-gradient(145deg, #17243d, #101e2a) !important;
    box-shadow: inset 0 0 0 1px rgba(119, 132, 255, 0.12), 0 18px 42px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-overview-stats span,
    .billing-invoice-meta-grid span,
    .billing-plan-limit-grid span,
    .billing-status-facts span,
    .billing-status-limits span,
    .billing-pricing-features li,
    .billing-create-note,
    .billing-create-plan,
    .billing-create-plan li,
    .billing-requisites-box,
    .billing-empty-state,
    .billing-center-card-head > small,
    .billing-status-actions
) {
    border-color: rgba(139, 166, 191, 0.18) !important;
    background: rgba(18, 33, 45, 0.82) !important;
    color: var(--cc-dark-text-soft) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-plan-details,
    .billing-invoice-details,
    .billing-admin-request,
    .billing-admin-row
) {
    border-color: rgba(139, 166, 191, 0.18) !important;
    background: #101d29 !important;
    color: var(--cc-dark-text-soft) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-plan-details[open],
    .billing-invoice-details[open],
    .billing-plan-details.is-selected
) {
    border-color: rgba(135, 146, 255, 0.42) !important;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(119, 132, 255, 0.12), transparent 72%),
        #111f2c !important;
    box-shadow: inset 0 0 0 1px rgba(119, 132, 255, 0.1) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-inner-tabs {
    border-color: rgba(139, 166, 191, 0.18) !important;
    background: rgba(10, 21, 31, 0.82) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-inner-tabs button {
    color: var(--cc-dark-muted) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-inner-tabs button:hover,
    .billing-inner-tabs button:focus-visible
) {
    border-color: rgba(119, 132, 255, 0.36) !important;
    background: #182938 !important;
    color: var(--cc-dark-text) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-inner-tabs button.is-active {
    border-color: rgba(135, 146, 255, 0.62) !important;
    background: linear-gradient(135deg, #7784ff, #6673ed) !important;
    color: var(--cc-dark-text) !important;
    box-shadow: 0 14px 28px rgba(62, 73, 200, 0.24) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-admin-table {
    border-color: rgba(139, 166, 191, 0.18) !important;
    background: #0d1924 !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-admin-table-head {
    background: #132330 !important;
    color: var(--cc-dark-muted) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-status-pill {
    border-color: rgba(119, 132, 255, 0.3) !important;
    background: rgba(119, 132, 255, 0.12) !important;
    color: #cbd0ff !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-status-pill.is-void {
    border-color: rgba(240, 125, 125, 0.34) !important;
    background: rgba(240, 125, 125, 0.12) !important;
    color: #ffaaaa !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-status-copy h3,
    .billing-overview-main strong,
    .billing-center-card-head h3,
    .billing-overview-stats strong,
    .billing-invoice-meta-grid strong,
    .billing-plan-limit-grid strong,
    .billing-status-facts strong,
    .billing-status-limits strong,
    .billing-plan-details summary strong,
    .billing-invoice-details summary strong,
    .billing-checkout-hero h3,
    .billing-checkout-summary strong,
    .billing-pricing-card h4,
    .billing-pricing-features b,
    .billing-admin-request strong,
    .billing-admin-request b,
    .billing-admin-row strong,
    .billing-empty-state strong,
    .billing-requisites-box pre
) {
    color: var(--cc-dark-text) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-status-copy span,
    .billing-status-copy p,
    .billing-overview-main span,
    .billing-overview-main small,
    .billing-center-card-head span,
    .billing-center-card-head > small,
    .billing-overview-stats em,
    .billing-invoice-meta-grid em,
    .billing-plan-limit-grid em,
    .billing-status-facts em,
    .billing-status-limits em,
    .billing-plan-details summary small,
    .billing-invoice-details summary small,
    .billing-plan-details-body p,
    .billing-checkout-hero span,
    .billing-checkout-hero p,
    .billing-checkout-summary span,
    .billing-checkout-summary small,
    .billing-pricing-card-topline > span,
    .billing-pricing-card p,
    .billing-pricing-action small,
    .billing-pricing-features em,
    .billing-pricing-features small,
    .billing-plan-limit-grid small,
    .billing-empty-state span,
    .billing-invoice-note,
    .billing-status-actions span,
    .billing-admin-request em,
    .billing-admin-request small,
    .billing-admin-row small,
    .billing-requisites-box > span
) {
    color: var(--cc-dark-muted) !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) :where(
    .billing-plan-details summary b,
    .billing-invoice-details summary b,
    .billing-pricing-card.is-selected h4
) {
    color: #9fa8ff !important;
}

html[data-theme="dark"] body.shell-auth:not(.shell-prom-analytics) .billing-plan-badges b {
    border-color: rgba(84, 202, 186, 0.32) !important;
    background: rgba(84, 202, 186, 0.12) !important;
    color: #9ce8df !important;
}

/* Prom Analytics modern Lean workspace.
   The page follows one operational flow: source, execution, evidence. */
body.shell-prom-analytics .prom-search-workspace.prom-search-workspace-lean {
    --prom-modern-accent: #4f5fe7;
    --prom-modern-accent-hover: #3f4fd2;
    --prom-modern-text: #111827;
    --prom-modern-muted: #667085;
    --prom-modern-border: #e3e7ef;
    --prom-modern-soft: #f6f8fb;
    --prom-modern-success: #087f6f;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 16px;
    align-items: start;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-lean-canvas-rail {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 1;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 12px 16px;
    border: 1px solid var(--prom-modern-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-lean-canvas-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-lean-canvas-title span {
    color: var(--prom-modern-accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-lean-canvas-title strong {
    color: var(--prom-modern-text);
    font-size: 0.94rem;
    font-weight: 700;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-lean-canvas-steps {
    display: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-launch-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 300px;
    min-width: 0;
    padding: 3px;
    border: 1px solid var(--prom-modern-border);
    border-radius: 7px;
    background: #f3f5f9;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-launch-mode-switch button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 5px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-launch-mode-switch button[aria-pressed="true"] {
    background: #fff;
    color: var(--prom-modern-accent);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-command,
body.shell-prom-analytics .prom-search-workspace-lean > .prom-category-analysis-command {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    padding: 22px;
}

body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-status {
    position: static;
    display: grid;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-self: start;
    gap: 14px;
    width: 100%;
    height: max-content;
    padding: 20px;
    overflow: visible;
}

body.shell-prom-analytics .prom-search-workspace-lean > :is(
    .prom-search-command,
    .prom-category-analysis-command,
    .prom-search-status
),
body.shell-prom-analytics .prom-search-workspace-lean .prom-history-unified > .prom-search-history,
body.shell-prom-analytics .prom-search-workspace-lean .prom-history-single > .prom-search-history {
    border: 1px solid var(--prom-modern-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-panel-head {
    align-items: flex-start;
    margin-bottom: 18px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-panel-head > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--prom-modern-accent);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-panel-head > div::before {
    display: none;
    content: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-panel-head h2 {
    color: var(--prom-modern-text);
    font-size: clamp(1.18rem, 1.7vw, 1.48rem);
    font-weight: 800;
    line-height: 1.18;
}

body.shell-prom-analytics .prom-search-workspace-lean .badge {
    border-color: #dfe3ea;
    background: #f7f8fa;
    color: #667085;
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-main-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-main-input span,
body.shell-prom-analytics .prom-search-workspace-lean .prom-category-select-field span {
    color: #667085;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-main-input input,
body.shell-prom-analytics .prom-search-workspace-lean .prom-category-select-field select {
    min-height: 48px;
    border: 1px solid #d8dee9;
    border-radius: 7px;
    background: #fff;
    color: var(--prom-modern-text);
    font-size: 0.92rem;
    font-weight: 650;
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-main-input input:focus,
body.shell-prom-analytics .prom-search-workspace-lean .prom-category-select-field select:focus {
    border-color: var(--prom-modern-accent);
    box-shadow: 0 0 0 3px rgba(79, 95, 231, 0.12);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-command .prom-parser-submit-row {
    align-items: center;
    justify-content: flex-end;
    min-width: max-content;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-command .prom-parser-submit-row .btn,
body.shell-prom-analytics .prom-search-workspace-lean .prom-category-analysis-actions .btn {
    min-height: 48px;
    border-radius: 7px;
}

body.shell-prom-analytics .prom-search-workspace-lean .btn-primary {
    border-color: var(--prom-modern-accent);
    background: var(--prom-modern-accent);
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .btn-primary:hover {
    border-color: var(--prom-modern-accent-hover);
    background: var(--prom-modern-accent-hover);
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-controls {
    grid-template-columns: minmax(280px, 1fr) minmax(210px, 0.42fr);
    gap: 10px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-selection-plan {
    gap: 0;
    padding: 0;
    border: 1px solid var(--prom-modern-border);
    border-radius: 7px;
    background: var(--prom-modern-soft);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-selection-plan span {
    min-height: 64px;
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-selection-plan span + span {
    border-left: 1px solid var(--prom-modern-border);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-check-card {
    border-color: var(--prom-modern-border);
    border-radius: 7px;
    background: var(--prom-modern-soft);
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-category-cascade-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-category-selected-path {
    padding: 10px 12px;
    border-color: var(--prom-modern-border);
    border-radius: 7px;
    background: var(--prom-modern-soft);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-category-selected-path strong {
    color: var(--prom-modern-accent);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-category-analysis-actions {
    grid-template-columns: minmax(220px, 0.42fr) minmax(220px, 0.58fr);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-panel-head,
body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-search-progress-card,
body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-search-job-state,
body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-job-controls,
body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-job-control-message {
    grid-column: 1;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-panel-head {
    margin-bottom: 0;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-progress-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--prom-modern-border);
    border-radius: 7px;
    background: var(--prom-modern-soft);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-progress-orb,
body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) .prom-progress-orb {
    width: 68px;
    min-width: 68px;
    box-shadow: inset 0 0 0 1px rgba(79, 95, 231, 0.14);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-progress-orb::before,
body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status:not([data-prom-job-status]) .prom-progress-orb::before {
    inset: 7px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-progress-orb span {
    font-size: 1rem;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-progress-card.is-running .prom-progress-orb {
    animation: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-job-state {
    gap: 8px;
    padding-top: 2px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-job-state p {
    font-size: 0.8rem;
    line-height: 1.4;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-job-counters {
    gap: 5px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-job-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 12px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-job-control-btn {
    min-height: 38px;
    border-color: var(--prom-modern-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-job-control-primary {
    border-color: var(--prom-modern-accent);
    background: var(--prom-modern-accent);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-job-control-danger {
    border-color: #fecaca;
    background: #fff;
    color: #d92d20;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-job-control-link {
    color: var(--prom-modern-success);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-duo {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-duo .prom-search-history {
    grid-column: 1;
    min-width: 0;
    padding: 20px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-toolbar {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--prom-modern-border);
    border-radius: 7px;
    background: #f3f5f9;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-toolbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 750;
    text-decoration: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-toolbar a span {
    color: #98a2b3;
    font-variant-numeric: tabular-nums;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-toolbar a.is-active {
    background: #fff;
    color: var(--prom-modern-text);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-size {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 42px;
    padding: 4px;
    border: 1px solid var(--prom-modern-border);
    border-radius: 7px;
    background: #fff;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-size > span {
    padding: 0 7px;
    color: #667085;
    font-size: 0.7rem;
    font-weight: 750;
    white-space: nowrap;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-size a {
    display: inline-grid;
    min-width: 36px;
    height: 32px;
    place-items: center;
    border-radius: 5px;
    color: #667085;
    font-size: 0.73rem;
    font-weight: 800;
    text-decoration: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-size a:hover {
    background: #f3f5f9;
    color: var(--prom-modern-text);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-size a.is-active {
    background: var(--prom-modern-accent);
    color: #fff;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-table-head {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) repeat(3, minmax(80px, 110px)) minmax(180px, 210px);
    gap: 12px;
    align-items: center;
    padding: 0 14px 8px;
    border-bottom: 1px solid var(--prom-modern-border);
    color: #98a2b3;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-list {
    display: grid;
    gap: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-item {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(276px, 330px) minmax(180px, 210px);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid var(--prom-modern-border);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-item[hidden] {
    display: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-item:hover {
    border-color: var(--prom-modern-border);
    background: #fafbfc;
    box-shadow: none;
    transform: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-item.is-current {
    border-color: var(--prom-modern-border);
    background: #f7f8ff;
    box-shadow: inset 3px 0 0 var(--prom-modern-accent);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-main {
    gap: 5px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-status,
body.shell-prom-analytics .prom-search-workspace-lean .prom-history-kind {
    width: fit-content;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-status {
    background: #eef0ff;
    color: var(--prom-modern-accent);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-kind {
    background: #f2f4f7;
    color: #667085;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-main h3 {
    color: var(--prom-modern-text);
    font-size: 0.92rem;
    font-weight: 750;
    white-space: nowrap;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-main p {
    color: var(--prom-modern-muted);
    font-size: 0.73rem;
    font-weight: 600;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-snapshot-id {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    color: #98a2b3;
    font-size: 0.66rem;
    font-weight: 700;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-snapshot-id em {
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid #d8dee9;
    border-radius: 50%;
    color: var(--prom-modern-accent);
    font-style: normal;
    font-size: 0.62rem;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 0;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-metrics span {
    min-height: 46px;
    padding: 5px 12px;
    border: 0;
    border-left: 1px solid var(--prom-modern-border);
    border-radius: 0;
    background: transparent;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-metrics em {
    color: #98a2b3;
    font-size: 0.6rem;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-metrics strong {
    color: var(--prom-modern-text);
    font-size: 0.94rem;
    font-variant-numeric: tabular-nums;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-actions .btn {
    min-width: 146px;
    min-height: 36px;
    border-color: #d8dee9;
    border-radius: 6px;
    background: #fff;
    color: var(--prom-modern-accent);
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-delete-button {
    width: 36px;
    height: 36px;
    border-color: #d8dee9;
    border-radius: 6px;
    background: #fff;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 12px 14px 0;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-pagination-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 650;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-pagination-summary strong {
    color: var(--prom-modern-text);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-pagination-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

body.shell-prom-analytics .prom-search-workspace-lean :is(.prom-history-page-link, .prom-history-page-arrow) {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--prom-modern-border);
    border-radius: 6px;
    background: #fff;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

body.shell-prom-analytics .prom-search-workspace-lean :is(.prom-history-page-link, .prom-history-page-arrow):hover {
    border-color: #c7ccff;
    background: #f7f8ff;
    color: var(--prom-modern-accent);
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-link.is-active {
    border-color: var(--prom-modern-accent);
    background: var(--prom-modern-accent);
    color: #fff;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-arrow svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-arrow.is-disabled {
    pointer-events: none;
    opacity: 0.38;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-gap {
    display: inline-grid;
    width: 24px;
    place-items: center;
    color: #98a2b3;
    font-size: 0.8rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-search-results,
body.shell-prom-analytics .prom-search-workspace-lean .prom-search-categories {
    grid-column: 1 / -1;
    grid-row: auto;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-result-summary-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-result-summary-actions .btn {
    min-height: 34px;
    border-color: #d8dee9;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-products-summary .prom-query-snapshot-strip.prom-search-history-item {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(100px, 0.3fr));
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

body.shell-prom-analytics .prom-search-workspace-lean .prom-products-summary .prom-query-snapshot-strip.prom-search-history-item:hover {
    border: 0;
    background: transparent;
}

body.shell-prom-analytics .prom-search-workspace-lean.is-status-hidden {
    grid-template-columns: minmax(0, 1fr);
}

body.shell-prom-analytics .prom-search-workspace-lean.is-status-hidden > :is(
    .prom-search-command,
    .prom-category-analysis-command
) {
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    body.shell-prom-analytics .prom-search-workspace.prom-search-workspace-lean {
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-command,
    body.shell-prom-analytics .prom-search-workspace-lean > .prom-category-analysis-command,
    body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-status {
        grid-column: 1;
    }

    body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-status {
        grid-row: 3;
        grid-template-columns: minmax(190px, 0.35fr) minmax(320px, 0.65fr);
        align-items: center;
    }

    body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-status[data-prom-job-status] {
        grid-template-columns: minmax(220px, 0.42fr) minmax(300px, 0.58fr);
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-panel-head {
        grid-column: 1;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-search-progress-card {
        grid-column: 2;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-search-job-state,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-controls,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status[data-prom-job-status] > .prom-job-control-message {
        grid-column: 1 / -1;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-duo {
        grid-row: 4;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-table-head {
        display: none;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-item {
        grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.72fr);
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    body.shell-prom-analytics .prom-search-workspace.prom-search-workspace-lean {
        gap: 12px;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-lean-canvas-rail {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-launch-mode-switch {
        width: 100%;
    }

    body.shell-prom-analytics .prom-search-workspace-lean > :is(
        .prom-search-command,
        .prom-category-analysis-command,
        .prom-search-status
    ),
    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-duo .prom-search-history {
        padding: 16px;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-main-form,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-controls,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-category-cascade-grid,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-category-analysis-actions,
    body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-status,
    body.shell-prom-analytics .prom-search-workspace-lean > .prom-search-status[data-prom-job-status] {
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-command .prom-parser-submit-row {
        justify-content: stretch;
        min-width: 0;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-command .prom-parser-submit-row .btn {
        width: 100%;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-selection-plan {
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-selection-plan span + span {
        border-top: 1px solid var(--prom-modern-border);
        border-left: 0;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-panel-head,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-search-progress-card,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-search-job-state,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-job-controls,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-status > .prom-job-control-message {
        grid-column: 1;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-panel-head {
        display: grid;
        gap: 12px;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-toolbar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-toolbar a {
        justify-content: center;
        min-width: 0;
        padding-inline: 6px;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-page-size {
        justify-self: start;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-main h3 {
        white-space: normal;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-metrics,
    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-actions {
        grid-column: 1;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-metrics span:first-child {
        border-left: 0;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-search-history-actions .btn {
        flex: 1 1 180px;
        min-width: 0;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-pagination {
        align-items: stretch;
        flex-direction: column;
        padding-inline: 0;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-history-pagination-actions {
        justify-content: flex-start;
        max-width: 100%;
        padding-bottom: 2px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-category-selected-path {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-category-selected-path strong {
        width: 100%;
        padding-left: 34px;
        white-space: normal;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-result-summary-actions {
        width: 100%;
        justify-content: space-between;
    }

    body.shell-prom-analytics .prom-search-workspace-lean .prom-products-summary .prom-query-snapshot-strip.prom-search-history-item {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Prom Analytics unified UI system.
   Search and product inventory share one operational visual language. */
body.shell-prom-analytics {
    --pa-accent: #4f5fe7;
    --pa-accent-hover: #3e4dcc;
    --pa-accent-soft: #f2f4ff;
    --pa-text: #111827;
    --pa-muted: #667085;
    --pa-subtle: #98a2b3;
    --pa-border: #dfe4ec;
    --pa-border-strong: #cfd6e2;
    --pa-surface: #ffffff;
    --pa-surface-muted: #f7f9fc;
    --pa-success: #087f6f;
    --pa-danger: #d92d20;
    --pa-control-height: 44px;
    --pa-control-height-sm: 36px;
    --pa-radius: 8px;
    --pa-section-gap: 16px;
}

body.shell-prom-analytics .cc-page-header.prom-analytics-page-header,
body.shell-prom-analytics .prom-analytics-page.prom-unified-ui {
    width: min(100%, 1600px);
    margin-inline: auto;
}

body.shell-prom-analytics .cc-page-header.prom-analytics-page-header {
    min-height: 0;
    padding: 18px 20px;
    border: 1px solid var(--pa-border);
    border-radius: var(--pa-radius);
    background: var(--pa-surface);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

body.shell-prom-analytics .prom-analytics-page-header .cc-page-title {
    color: var(--pa-text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.08;
}

body.shell-prom-analytics .prom-analytics-page-header .cc-page-subtitle {
    max-width: 760px;
    color: var(--pa-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

body.shell-prom-analytics .prom-analytics-header-action {
    min-height: var(--pa-control-height-sm);
    padding: 0 12px;
    border: 1px solid var(--pa-accent);
    border-radius: 7px;
    background: var(--pa-accent);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: none;
    white-space: nowrap;
}

body.shell-prom-analytics .prom-analytics-header-action:hover {
    border-color: var(--pa-accent-hover);
    background: var(--pa-accent-hover);
    color: #fff;
    transform: none;
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui {
    gap: var(--pa-section-gap);
    color: var(--pa-text);
}

body.shell-prom-analytics .prom-unified-ui .prom-workspace {
    gap: var(--pa-section-gap);
}

body.shell-prom-analytics .prom-unified-ui .prom-panel.prom-section,
body.shell-prom-analytics .prom-unified-ui .prom-lean-canvas-rail,
body.shell-prom-analytics .prom-unified-ui .prom-products-pagination {
    border: 1px solid var(--pa-border);
    border-radius: var(--pa-radius);
    background: var(--pa-surface);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.045);
}

body.shell-prom-analytics .prom-unified-ui .prom-panel-head,
body.shell-prom-analytics .prom-unified-ui .prom-products-filter-head {
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-panel-head > div > span,
    .prom-products-filter-head > div > span
) {
    display: block;
    margin: 0 0 5px;
    color: var(--pa-accent);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-panel-head h2,
    .prom-products-filter-head h2
) {
    margin: 0;
    color: var(--pa-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

body.shell-prom-analytics .prom-unified-ui .badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--pa-border);
    border-radius: 999px;
    background: var(--pa-surface-muted);
    color: var(--pa-muted);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    white-space: nowrap;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-field,
    .prom-search-main-input,
    .prom-category-select-field
) {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-field > span,
    .prom-search-main-input > span,
    .prom-category-select-field > span
) {
    color: var(--pa-muted);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-field > input,
    .prom-field > select,
    .prom-search-main-input > input,
    .prom-category-select-field > select,
    .prom-products-range-group input,
    .prom-products-page-jump select
) {
    width: 100%;
    min-width: 0;
    height: var(--pa-control-height);
    min-height: var(--pa-control-height);
    padding: 0 12px;
    border: 1px solid var(--pa-border-strong);
    border-radius: 7px;
    background-color: var(--pa-surface);
    color: var(--pa-text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-field > input,
    .prom-search-main-input > input,
    .prom-products-range-group input
)::placeholder {
    color: var(--pa-subtle);
    opacity: 1;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-field > input,
    .prom-field > select,
    .prom-search-main-input > input,
    .prom-category-select-field > select,
    .prom-products-range-group input,
    .prom-products-page-jump select
):focus-visible {
    border-color: var(--pa-accent);
    outline: 3px solid rgba(79, 95, 231, 0.14);
    outline-offset: 1px;
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .btn {
    min-height: var(--pa-control-height);
    padding: 0 16px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .btn-sm {
    min-height: var(--pa-control-height-sm);
    padding-inline: 12px;
    font-size: 0.74rem;
}

body.shell-prom-analytics .prom-unified-ui .btn-primary {
    border-color: var(--pa-accent);
    background: var(--pa-accent);
    color: #fff;
}

body.shell-prom-analytics .prom-unified-ui .btn-primary:hover {
    border-color: var(--pa-accent-hover);
    background: var(--pa-accent-hover);
    transform: none;
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .btn-secondary {
    border-color: var(--pa-border-strong);
    background: var(--pa-surface);
    color: var(--pa-accent);
}

body.shell-prom-analytics .prom-unified-ui .btn-secondary:hover {
    border-color: #b9c1ef;
    background: var(--pa-accent-soft);
    color: var(--pa-accent-hover);
    transform: none;
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-parser-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.shell-prom-analytics .prom-unified-ui .prom-parser-metrics span {
    min-height: 70px;
    padding: 12px;
    border: 1px solid var(--pa-border);
    border-radius: 7px;
    background: var(--pa-surface-muted);
}

body.shell-prom-analytics .prom-unified-ui .prom-parser-metrics em {
    color: var(--pa-muted);
    font-size: 0.66rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-unified-ui .prom-parser-metrics strong {
    color: var(--pa-text);
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Search workspace */
body.shell-prom-analytics .prom-unified-ui .prom-workspace-search.prom-search-workspace-lean {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: var(--pa-section-gap);
}

body.shell-prom-analytics .prom-unified-ui .prom-search-workspace-lean .prom-lean-canvas-rail {
    min-height: 64px;
    padding: 12px 16px;
}

body.shell-prom-analytics .prom-unified-ui .prom-search-workspace-lean > :is(
    .prom-search-command,
    .prom-category-analysis-command
) {
    padding: 20px;
}

body.shell-prom-analytics .prom-unified-ui .prom-search-workspace-lean > .prom-search-status {
    gap: 12px;
    padding: 20px;
}

body.shell-prom-analytics .prom-unified-ui .prom-launch-mode-switch {
    border-color: var(--pa-border);
    border-radius: 7px;
    background: var(--pa-surface-muted);
}

body.shell-prom-analytics .prom-unified-ui .prom-launch-mode-switch button {
    min-height: var(--pa-control-height-sm);
    border-radius: 5px;
    color: var(--pa-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-unified-ui .prom-launch-mode-switch button[aria-pressed="true"] {
    background: var(--pa-surface);
    color: var(--pa-accent);
}

body.shell-prom-analytics .prom-unified-ui .prom-search-main-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

body.shell-prom-analytics .prom-unified-ui .prom-search-command .prom-parser-submit-row {
    min-width: max-content;
    align-items: center;
    justify-content: flex-end;
}

body.shell-prom-analytics .prom-unified-ui .prom-search-controls {
    grid-template-columns: minmax(280px, 1fr) minmax(210px, 0.42fr);
    gap: 10px;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-search-selection-plan,
    .prom-check-card,
    .prom-category-selected-path,
    .prom-search-progress-card
) {
    border-color: var(--pa-border);
    border-radius: 7px;
    background: var(--pa-surface-muted);
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-category-cascade-grid {
    gap: 10px;
}

body.shell-prom-analytics .prom-unified-ui .prom-category-selected-path {
    min-height: var(--pa-control-height);
    padding: 9px 12px;
}

body.shell-prom-analytics .prom-unified-ui .prom-category-analysis-actions {
    gap: 10px;
}

body.shell-prom-analytics .prom-unified-ui .prom-search-progress-card {
    min-height: 96px;
}

body.shell-prom-analytics .prom-unified-ui .prom-job-control-btn {
    min-height: 38px;
    border-color: var(--pa-border-strong);
    border-radius: 6px;
    background: var(--pa-surface);
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-job-control-primary {
    border-color: var(--pa-accent);
    background: var(--pa-accent);
}

body.shell-prom-analytics .prom-unified-ui .prom-job-control-danger {
    border-color: #fecaca;
    background: #fff;
    color: var(--pa-danger);
}

body.shell-prom-analytics .prom-unified-ui .prom-history-duo .prom-search-history {
    padding: 20px;
}

body.shell-prom-analytics .prom-unified-ui .prom-history-toolbar,
body.shell-prom-analytics .prom-unified-ui .prom-history-page-size {
    border-color: var(--pa-border);
    background: var(--pa-surface-muted);
}

body.shell-prom-analytics .prom-unified-ui .prom-search-history-item {
    border-color: var(--pa-border);
    background: var(--pa-surface);
}

body.shell-prom-analytics .prom-unified-ui .prom-search-history-item:hover {
    background: #fafbfc;
}

body.shell-prom-analytics .prom-unified-ui .prom-search-history-actions .btn,
body.shell-prom-analytics .prom-unified-ui .prom-search-history-delete-button {
    border-color: var(--pa-border-strong);
    background: var(--pa-surface);
}

/* Product inventory */
body.shell-prom-analytics .prom-unified-ui .prom-workspace-products {
    display: grid;
    gap: var(--pa-section-gap);
}

body.shell-prom-analytics .prom-unified-ui .prom-workspace-products > .prom-section {
    padding: 20px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-summary {
    gap: 12px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-panel,
body.shell-prom-analytics .prom-unified-ui .prom-products-filter-form {
    gap: 16px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pa-border);
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    gap: 0;
    min-width: 300px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats > div {
    min-width: 0;
    padding: 0 14px;
    border-left: 1px solid var(--pa-border);
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats dt {
    color: var(--pa-subtle);
    font-size: 0.64rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats dd {
    color: var(--pa-text);
    font-size: 1rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-search {
    grid-template-columns: minmax(300px, 1.55fr) minmax(240px, 0.75fr);
    gap: 10px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-category-cascade {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

body.shell-prom-analytics .prom-unified-ui .prom-products-category-add {
    min-height: var(--pa-control-height-sm);
    padding-inline: 12px;
    border-color: var(--pa-accent);
    border-radius: 6px;
    background: var(--pa-accent);
    font-size: 0.72rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-category-add:not(:disabled):hover {
    border-color: var(--pa-accent-hover);
    background: var(--pa-accent-hover);
}

body.shell-prom-analytics .prom-unified-ui .prom-products-category-chip {
    min-height: 32px;
    border-color: #cfd5ff;
    border-radius: 6px;
    background: var(--pa-accent-soft);
    color: var(--pa-accent-hover);
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-section {
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--pa-border);
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-section-head h3 {
    color: var(--pa-text);
    font-size: 0.88rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-range-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-products-range-group,
    .prom-products-choice-group
) {
    padding: 12px;
    border-color: var(--pa-border);
    border-radius: 7px;
    background: var(--pa-surface-muted);
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-products-range-group legend,
    .prom-products-choice-group legend
) {
    color: var(--pa-text);
    font-size: 0.74rem;
    font-weight: 800;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-range-group label > span {
    color: var(--pa-muted);
    font-size: 0.66rem;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-choice-grid,
body.shell-prom-analytics .prom-unified-ui .prom-products-choice-grid.is-sort {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-choice-options {
    gap: 6px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-choice-options label > span {
    min-height: var(--pa-control-height-sm);
    padding: 7px 10px;
    border-color: var(--pa-border-strong);
    border-radius: 6px;
    background: var(--pa-surface);
    color: var(--pa-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-choice-options input:checked + span {
    border-color: #bcc4ff;
    background: var(--pa-accent-soft);
    color: var(--pa-accent-hover);
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-choice-options input:focus-visible + span {
    outline: 3px solid rgba(79, 95, 231, 0.16);
    outline-offset: 1px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-filter-actions {
    gap: 8px;
    padding-top: 16px;
    border-top-color: var(--pa-border);
}

body.shell-prom-analytics .prom-unified-ui .prom-products-pagination {
    grid-template-columns: minmax(160px, 1fr) auto minmax(0, 1fr);
    min-height: 68px;
    padding: 12px 16px;
}

body.shell-prom-analytics .prom-unified-ui :is(
    .prom-products-page-link,
    .prom-products-page-jump-button
) {
    width: var(--pa-control-height-sm);
    min-width: var(--pa-control-height-sm);
    height: var(--pa-control-height-sm);
    border-radius: 6px;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-page-jump select {
    height: var(--pa-control-height-sm);
    min-height: var(--pa-control-height-sm);
}

body.shell-prom-analytics .prom-unified-ui .prom-products-page-link {
    border-color: var(--pa-border-strong);
    background: var(--pa-surface);
    color: var(--pa-muted);
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-page-link:hover {
    border-color: #bcc4ff;
    background: var(--pa-accent-soft);
    color: var(--pa-accent);
    transform: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-page-link.is-active,
body.shell-prom-analytics .prom-unified-ui .prom-products-page-jump-button {
    border-color: var(--pa-accent);
    background: var(--pa-accent);
    color: #fff;
    box-shadow: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-products-page-jump-button:hover {
    background: var(--pa-accent-hover);
    transform: none;
}

body.shell-prom-analytics .prom-unified-ui .prom-product-card {
    border-color: var(--pa-border);
    border-radius: var(--pa-radius);
    background: var(--pa-surface);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
}

body.shell-prom-analytics .prom-unified-ui .prom-product-card .btn {
    min-height: 38px;
}

@media (max-width: 1180px) {
    body.shell-prom-analytics .prom-unified-ui .prom-workspace-search.prom-search-workspace-lean {
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-head {
        display: grid;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats {
        min-width: 0;
        width: 100%;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats > div:first-child {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 900px) {
    body.shell-prom-analytics .prom-unified-ui .prom-parser-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-search {
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-pagination {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-page-jump,
    body.shell-prom-analytics .prom-unified-ui .prom-products-pagination-actions {
        justify-self: stretch;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    body.shell-prom-analytics .cc-page-header.prom-analytics-page-header {
        padding: 16px;
    }

    body.shell-prom-analytics .prom-analytics-page-header .cc-page-title {
        font-size: 1.65rem;
    }

    body.shell-prom-analytics .prom-analytics-page-header .cc-page-subtitle {
        font-size: 0.84rem;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-workspace-products > .prom-section,
    body.shell-prom-analytics .prom-unified-ui .prom-search-workspace-lean > :is(
        .prom-search-command,
        .prom-category-analysis-command,
        .prom-search-status
    ),
    body.shell-prom-analytics .prom-unified-ui .prom-history-duo .prom-search-history {
        padding: 16px;
    }

    body.shell-prom-analytics .prom-unified-ui :is(
        .prom-panel-head,
        .prom-products-filter-head
    ) {
        display: grid;
        margin-bottom: 16px;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-search-main-form,
    body.shell-prom-analytics .prom-unified-ui .prom-search-controls,
    body.shell-prom-analytics .prom-unified-ui .prom-category-analysis-actions,
    body.shell-prom-analytics .prom-unified-ui .prom-products-range-grid,
    body.shell-prom-analytics .prom-unified-ui .prom-products-choice-grid,
    body.shell-prom-analytics .prom-unified-ui .prom-products-choice-grid.is-sort {
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-unified-ui .prom-search-command .prom-parser-submit-row {
        min-width: 0;
        justify-content: stretch;
    }

    body.shell-prom-analytics .prom-unified-ui :is(
        .prom-search-command .prom-parser-submit-row .btn,
        .prom-category-analysis-actions .btn,
        .prom-products-filter-actions .btn
    ) {
        width: 100%;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-category-selection {
        align-items: flex-start;
        flex-direction: column;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-category-selection > strong {
        white-space: normal;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-pagination-actions {
        max-width: 100%;
        padding-bottom: 2px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }
}

@media (max-width: 520px) {
    body.shell-prom-analytics .prom-unified-ui .prom-parser-metrics,
    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats > div {
        padding: 8px 0;
        border-top: 1px solid var(--pa-border);
        border-left: 0;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-filter-stats > div:first-child {
        border-top: 0;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-page-jump {
        grid-template-columns: minmax(0, 1fr) 72px 36px;
    }

    body.shell-prom-analytics .prom-unified-ui .prom-products-page-jump label {
        white-space: normal;
    }
}

html[data-theme="dark"] body.shell-prom-analytics {
    --pa-text: #f3f4f6;
    --pa-muted: #aeb6c5;
    --pa-subtle: #8993a5;
    --pa-border: #343b49;
    --pa-border-strong: #475063;
    --pa-surface: #171b24;
    --pa-surface-muted: #202631;
    --pa-accent-soft: #252b52;
}

html[data-theme="dark"] body.shell-prom-analytics :is(
    .cc-page-header.prom-analytics-page-header,
    .prom-unified-ui .prom-panel.prom-section,
    .prom-unified-ui .prom-lean-canvas-rail,
    .prom-unified-ui .prom-products-pagination,
    .prom-unified-ui .prom-product-card
) {
    background: var(--pa-surface);
}

/* Prom Analytics access discovery: visible project switcher with an accessible locked state. */
body.prom-access-modal-open {
    overflow: hidden;
}

.project-switcher-option.is-locked {
    appearance: none;
    font: inherit;
    cursor: pointer;
    color: color-mix(in srgb, var(--text-main), var(--text-muted) 32%);
    border-color: rgba(100, 116, 139, 0.14);
    background: rgba(255, 255, 255, 0.28);
}

.project-switcher-option.is-locked:hover,
.project-switcher-option.is-locked:focus-visible {
    color: #4148c8;
    border-color: rgba(83, 92, 226, 0.28);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(66, 72, 174, 0.1);
}

.project-switcher-lock {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prom-access-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.prom-access-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.prom-access-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(6px);
    cursor: default;
}

.prom-access-modal-panel {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #14172f;
    box-shadow: 0 28px 80px rgba(24, 31, 71, 0.26);
    transform: translateY(8px) scale(0.985);
    transition: transform 180ms ease;
}

.prom-access-modal.is-open .prom-access-modal-panel {
    transform: translateY(0) scale(1);
}

.prom-access-modal-panel:focus {
    outline: none;
}

.prom-access-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #dfe3ee;
    border-radius: 8px;
    background: #f7f8fc;
    color: #626b7e;
    cursor: pointer;
}

.prom-access-modal-close:hover,
.prom-access-modal-close:focus-visible {
    border-color: #aeb5ff;
    background: #eef0ff;
    color: #4148c8;
}

.prom-access-modal-close:focus-visible,
.prom-access-modal-actions :focus-visible {
    outline: 3px solid rgba(83, 92, 226, 0.24);
    outline-offset: 2px;
}

.prom-access-modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.prom-access-modal-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-right: 38px;
}

.prom-access-modal-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #cfd3ff;
    border-radius: 8px;
    color: #5057dc;
    background: #f0f1ff;
}

.prom-access-modal-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prom-access-modal-heading h2 {
    margin: 1px 0 6px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.prom-access-modal-heading p,
.prom-access-reason {
    margin: 0;
    color: #687184;
    font-size: 0.88rem;
    line-height: 1.55;
}

.prom-access-current-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    padding: 13px 14px;
    border: 1px solid #e1e4ee;
    border-radius: 8px;
    background: #f8f9fc;
}

.prom-access-current-plan > span {
    color: #737c8f;
    font-size: 0.74rem;
    font-weight: 700;
}

.prom-access-current-plan strong {
    font-size: 0.88rem;
    font-weight: 800;
}

.prom-access-current-plan em {
    padding: 4px 8px;
    border-radius: 999px;
    color: #a03f4c;
    background: #fff0f2;
    font-size: 0.67rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.prom-access-current-plan em.is-active {
    color: #187558;
    background: #e8f8f1;
}

.prom-access-reason {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 3px solid #7177ea;
    color: #4f586b;
}

.prom-access-available,
.prom-access-empty {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e6e8ef;
}

.prom-access-available-head,
.prom-access-empty {
    display: grid;
    gap: 4px;
}

.prom-access-available-head strong,
.prom-access-empty strong {
    font-size: 0.84rem;
    font-weight: 800;
}

.prom-access-available-head span,
.prom-access-empty span {
    color: #7a8292;
    font-size: 0.76rem;
    line-height: 1.45;
}

.prom-access-available ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.prom-access-available li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dfe2eb;
    border-radius: 8px;
    background: #ffffff;
    color: #2f3748;
    font-size: 0.82rem;
    font-weight: 800;
}

.prom-access-available li svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #248264;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prom-access-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.prom-access-modal-actions .btn {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 0.8rem;
}

html[data-theme="dark"] .project-switcher-option.is-locked {
    color: #9aa5b7;
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.24);
}

html[data-theme="dark"] .project-switcher-option.is-locked:hover,
html[data-theme="dark"] .project-switcher-option.is-locked:focus-visible {
    color: #e5e8ff;
    border-color: rgba(142, 150, 255, 0.34);
    background: rgba(30, 41, 59, 0.9);
}

html[data-theme="dark"] .prom-access-modal-panel {
    border-color: #343b52;
    background: #121722;
    color: #f4f6fb;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

html[data-theme="dark"] .prom-access-modal-close {
    border-color: #343c4e;
    background: #1c2330;
    color: #aeb7c7;
}

html[data-theme="dark"] .prom-access-modal-close:hover,
html[data-theme="dark"] .prom-access-modal-close:focus-visible {
    border-color: #626bc8;
    background: #252c4d;
    color: #eef0ff;
}

html[data-theme="dark"] .prom-access-modal-icon {
    border-color: #444d8b;
    color: #b8beff;
    background: #252b4d;
}

html[data-theme="dark"] .prom-access-modal-heading p,
html[data-theme="dark"] .prom-access-available-head span,
html[data-theme="dark"] .prom-access-empty span {
    color: #a8b1c1;
}

html[data-theme="dark"] .prom-access-current-plan {
    border-color: #333b49;
    background: #1a202a;
}

html[data-theme="dark"] .prom-access-current-plan > span {
    color: #9ea8ba;
}

html[data-theme="dark"] .prom-access-reason {
    color: #c6cddd;
    border-left-color: #8e96ff;
}

html[data-theme="dark"] .prom-access-available,
html[data-theme="dark"] .prom-access-empty {
    border-top-color: #303746;
}

html[data-theme="dark"] .prom-access-available li {
    border-color: #333b49;
    background: #181e28;
    color: #e7eaf1;
}

@media (max-width: 980px) {
    body.shell-auth {
        --topbar-height: 136px;
    }

    body.shell-auth .topbar,
    html:not([data-theme="dark"]) body.shell-auth .topbar {
        height: 124px !important;
    }

    body.shell-auth .topbar-inner-projects,
    html:not([data-theme="dark"]) body.shell-auth .topbar-inner-projects {
        min-height: 112px !important;
        flex-wrap: wrap !important;
        align-content: center;
    }

    body.shell-auth .topbar-inner-projects .project-switcher {
        order: 4;
        flex: 0 0 100%;
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .prom-access-modal {
        align-items: end;
        padding: 10px;
    }

    .prom-access-modal-panel {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 20px 16px 16px;
    }

    .prom-access-modal-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding-right: 30px;
    }

    .prom-access-modal-icon {
        width: 42px;
        height: 42px;
    }

    .prom-access-modal-heading h2 {
        font-size: 1.14rem;
    }

    .prom-access-current-plan {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .prom-access-current-plan > span {
        grid-column: 1 / -1;
    }

    .prom-access-modal-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .prom-access-modal-actions .btn {
        width: 100%;
    }

    .project-switcher-track {
        width: 100%;
    }

    .project-switcher-option {
        flex: 1 1 0;
        justify-content: center;
        padding-inline: 8px;
    }

    .project-switcher-name {
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prom-access-modal,
    .prom-access-modal-panel {
        transition: none;
    }
}

/* Logging & Monitoring admin users: robust collapsed rows */
.admin-monitoring-panel .admin-users-list {
    gap: 12px !important;
}

.admin-monitoring-panel .admin-user-card {
    overflow: hidden;
}

.admin-monitoring-panel .admin-user-card:not([open]) {
    min-height: 104px;
}

.admin-monitoring-panel .admin-user-card-head {
    display: grid !important;
    grid-template-columns: 54px minmax(260px, 1fr) minmax(520px, 1.25fr) 44px !important;
    gap: 16px !important;
    align-items: center !important;
    min-height: 96px;
    padding: 16px 18px !important;
}

.admin-monitoring-panel .admin-user-main {
    min-width: 0;
}

.admin-monitoring-panel .admin-user-title {
    min-width: 0;
    flex-wrap: wrap;
}

.admin-monitoring-panel .admin-user-status-strip {
    grid-template-columns: repeat(4, minmax(118px, 1fr)) !important;
    align-items: stretch;
    min-width: 0;
}

.admin-monitoring-panel .admin-user-status-strip > span {
    min-height: 58px;
    align-content: center;
    overflow: hidden;
}

.admin-monitoring-panel .admin-user-status-strip :where(em, strong) {
    max-width: 100%;
}

.admin-monitoring-panel .admin-user-toggle-icon {
    justify-self: end;
}

@media (max-width: 1500px) {
    .admin-monitoring-panel .admin-user-card:not([open]) {
        min-height: 176px;
    }

    .admin-monitoring-panel .admin-user-card-head {
        grid-template-columns: 54px minmax(0, 1fr) 44px !important;
        align-items: start !important;
    }

    .admin-monitoring-panel .admin-user-status-strip {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(128px, 1fr)) !important;
    }

    .admin-monitoring-panel .admin-user-toggle-icon {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 980px) {
    .admin-monitoring-panel .admin-user-card:not([open]) {
        min-height: 234px;
    }

    .admin-monitoring-panel .admin-user-card-head {
        grid-template-columns: 46px minmax(0, 1fr) 40px !important;
        min-height: 0;
        padding: 14px !important;
    }

    .admin-monitoring-panel .admin-user-avatar {
        inline-size: 46px !important;
        block-size: 46px !important;
    }

    .admin-monitoring-panel .admin-user-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .admin-monitoring-panel .admin-user-card:not([open]) {
        min-height: 370px;
    }

    .admin-monitoring-panel .admin-user-status-strip {
        grid-template-columns: 1fr !important;
    }
}

/* v1.475.1 - keep SEO Telegram support cards inside their grid */
.cc-seo-landing .telegram-links,
.cc-seo-landing .telegram-links-grid,
.cc-seo-landing .telegram-link-card,
.cc-seo-landing .telegram-link-copy,
.cc-seo-landing .telegram-link-copy :where(strong, span, em),
.cc-home-v3 .telegram-links,
.cc-home-v3 .telegram-links-grid,
.cc-home-v3 .telegram-link-card,
.cc-home-v3 .telegram-link-copy,
.cc-home-v3 .telegram-link-copy :where(strong, span, em) {
    min-width: 0;
    max-width: 100%;
}

.cc-seo-landing .telegram-link-card,
.cc-home-v3 .telegram-link-card {
    overflow: hidden;
}

.cc-seo-landing .telegram-link-card::after,
.cc-home-v3 .telegram-link-card::after {
    right: 8px;
    bottom: 6px;
    width: 56px;
    height: 56px;
}

.cc-seo-landing .telegram-link-copy :where(strong, span, em),
.cc-home-v3 .telegram-link-copy :where(strong, span, em) {
    overflow-wrap: anywhere;
}

/* v1.475.4 - align support/trust row with full-width homepage sections */
.cc-home-v3 .cc-trust-grid {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 20px !important;
}

.cc-home-v3 .cc-trust-grid > .cc-trust-card,
.cc-home-v3 .cc-trust-grid > .cc-support-card {
    width: 100% !important;
    min-width: 0 !important;
}

.cc-home-v3 .cc-support-card .cc-support-copy > .cc-icon {
    display: none !important;
}

.cc-home-v3 .cc-support-card .telegram-links {
    margin-top: 22px !important;
    gap: 12px !important;
}

.cc-home-v3 .cc-support-card .telegram-links-grid {
    gap: 12px !important;
}

.cc-home-v3 .cc-support-card .telegram-link-card {
    min-height: 108px !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    border-radius: 8px !important;
}

.cc-home-v3 .cc-support-card .telegram-link-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
}

.cc-home-v3 .cc-support-card .telegram-link-copy {
    gap: 4px !important;
}

@media (max-width: 920px) {
    .cc-home-v3 .cc-trust-grid {
        grid-template-columns: 1fr !important;
    }
}

/* v1.475.2 - minimal tariff benefit markers */
.cc-home-v3 .cc-tariff-list li {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 12px !important;
}

.cc-home-v3 .cc-tariff-check {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1.5px solid rgba(11, 24, 58, 0.72);
    border-radius: 999px;
    background: #ffffff;
    color: #0b183a;
    box-shadow: 0 8px 18px rgba(20, 31, 75, 0.06);
}

.cc-home-v3 .cc-tariff-check svg {
    width: 17px;
    height: 17px;
}

.cc-home-v3 .cc-tariff-check path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-home-v3 .cc-tariff-list small a {
    color: var(--cc-brand);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cc-home-v3 .cc-tariff-list small a:hover,
.cc-home-v3 .cc-tariff-list small a:focus-visible {
    color: var(--cc-brand-strong);
}

/* v1.475.3 - pricing cards closer to compact SaaS reference */
.cc-home-v3 .cc-tariffs > .cc-section-head {
    justify-items: center !important;
    max-width: 820px !important;
    margin-inline: auto !important;
    text-align: center !important;
}

.cc-home-v3 .cc-tariffs > .cc-section-head p {
    max-width: 680px !important;
    margin-top: 12px !important;
    color: #5d6576 !important;
    font-size: 1rem !important;
    font-weight: 550 !important;
    line-height: 1.55 !important;
}

.cc-home-v3 .cc-tariff-grid {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    gap: 20px !important;
}

.cc-home-v3 .cc-tariff-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 100% !important;
    padding: 24px 20px 20px !important;
    border: 2px solid rgba(83, 92, 226, 0.18) !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.cc-home-v3 .cc-tariff-card-free {
    order: 1 !important;
}

.cc-home-v3 .cc-tariff-card.is-featured {
    order: 2 !important;
    border-color: #1683f5 !important;
    background: #ffffff !important;
    box-shadow: 0 18px 40px rgba(22, 131, 245, 0.09) !important;
}

.cc-home-v3 .cc-tariff-card:not(.cc-tariff-card-free):not(.is-featured) {
    order: 3 !important;
}

.cc-home-v3 .cc-tariff-card header {
    display: block !important;
    margin: 0 0 22px !important;
}

.cc-home-v3 .cc-tariff-title {
    display: block !important;
}

.cc-home-v3 .cc-tariff-title h3 {
    margin: 0 !important;
    color: #001b3d !important;
    font-size: 1.45rem !important;
    font-weight: 850 !important;
    line-height: 1.12 !important;
}

.cc-home-v3 .cc-tariff-title span {
    position: absolute !important;
    top: 0 !important;
    right: 24px !important;
    max-width: calc(100% - 48px) !important;
    border: 0 !important;
    border-radius: 0 0 4px 4px !important;
    padding: 6px 9px !important;
    background: #1677e8 !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.cc-home-v3 .cc-tariff-card header p {
    min-height: 42px !important;
    margin: 12px 0 18px !important;
    color: #5d6576 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

.cc-home-v3 .cc-tariff-card header strong {
    display: flex !important;
    align-items: flex-end !important;
    gap: 8px !important;
    color: #001b3d !important;
    font-family: "Manrope", system-ui, sans-serif !important;
    font-size: clamp(2.45rem, 3.2vw, 3.2rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.94 !important;
}

.cc-home-v3 .cc-tariff-card header strong span {
    font: inherit !important;
}

.cc-home-v3 .cc-tariff-card header strong em {
    margin-bottom: 7px !important;
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    font-style: normal !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

.cc-home-v3 .cc-tariff-list {
    display: grid !important;
    align-content: start !important;
    grid-auto-rows: auto !important;
    flex: 0 0 auto !important;
    gap: 12px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

.cc-home-v3 .cc-tariff-list li {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: start !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.cc-home-v3 .cc-tariff-check {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    border: 0 !important;
    background: #eaf2ff !important;
    color: #5d8fff !important;
    box-shadow: none !important;
}

.cc-home-v3 .cc-tariff-check svg {
    width: 13px !important;
    height: 13px !important;
}

.cc-home-v3 .cc-tariff-check path {
    stroke-width: 2.7 !important;
}

.cc-home-v3 .cc-tariff-list b {
    display: block !important;
    color: #001b3d !important;
    font-size: 0.98rem !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
}

.cc-home-v3 .cc-tariff-count {
    color: #5d6576 !important;
    font-weight: 850 !important;
}

.cc-home-v3 .cc-tariff-feature {
    color: #001b3d !important;
    text-decoration-line: underline !important;
    text-decoration-style: dotted !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

.cc-home-v3 .cc-tariff-list small {
    display: block !important;
    margin-top: 4px !important;
    color: #6a7284 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.36 !important;
}

.cc-home-v3 .cc-tariff-list small a {
    color: #001b3d !important;
    font-weight: 850 !important;
    text-decoration-line: underline !important;
    text-decoration-style: dotted !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

.cc-home-v3 .cc-tariff-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    margin-top: auto !important;
    border: 1px solid #1677e8 !important;
    border-radius: 2px !important;
    background: #1677e8 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 0.98rem !important;
    font-weight: 750 !important;
}

.cc-home-v3 .cc-tariff-cta:hover,
.cc-home-v3 .cc-tariff-cta:focus-visible {
    background: #086ddf !important;
    border-color: #086ddf !important;
    transform: none !important;
}

@media (max-width: 1180px) {
    .cc-home-v3 .cc-tariff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
    }
}

@media (max-width: 860px) {
    .cc-home-v3 .cc-tariff-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 520px) {
    .cc-home-v3 .cc-tariff-card {
        padding: 22px 18px 18px !important;
    }

    .cc-home-v3 .cc-tariff-title span {
        right: 18px !important;
        max-width: calc(100% - 36px) !important;
    }
}

/* v1.475.5 - hero demo video modal */
.cc-home-v3 .cc-demo-trigger,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v3 .cc-demo-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 178px !important;
    border: 1px solid #111827 !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.cc-home-v3 .cc-demo-trigger:hover,
.cc-home-v3 .cc-demo-trigger:focus-visible,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v3 .cc-demo-trigger:hover,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v3 .cc-demo-trigger:focus-visible {
    border-color: var(--cc-brand) !important;
    background: #ffffff !important;
    color: var(--cc-brand) !important;
    box-shadow: none !important;
    transform: none !important;
}

.cc-demo-trigger-icon {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid currentColor;
}

body.cc-demo-modal-open {
    overflow: hidden;
}

.cc-demo-video-modal[hidden] {
    display: none !important;
}

.cc-demo-video-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 34px);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.cc-demo-video-modal.is-open {
    opacity: 1;
}

.cc-demo-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 29, 0.58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cc-demo-video-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: calc(100dvh - 36px);
    display: grid;
    padding: clamp(10px, 1.4vw, 16px);
    border: 1px solid rgba(224, 229, 255, 0.72);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(8, 16, 48, 0.28);
}

.cc-demo-video-close {
    position: absolute;
    top: clamp(8px, 1vw, 14px);
    right: clamp(8px, 1vw, 14px);
    z-index: 3;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(208, 216, 255, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(18, 28, 72, 0.12);
    cursor: pointer;
}

.cc-demo-video-close span {
    position: absolute;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: #17203f;
}

.cc-demo-video-close span:first-child {
    transform: rotate(45deg);
}

.cc-demo-video-close span:last-child {
    transform: rotate(-45deg);
}

.cc-demo-video-close:hover,
.cc-demo-video-close:focus-visible {
    outline: none;
    border-color: rgba(83, 92, 226, 0.45);
    box-shadow: 0 14px 30px rgba(18, 28, 72, 0.16);
}

.cc-demo-video-shell {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #05070d;
}

.cc-demo-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #05070d;
    object-fit: contain;
}

.cc-demo-video-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: clamp(62px, 6vw, 82px);
    height: clamp(62px, 6vw, 82px);
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--cc-brand, #535ce2);
    box-shadow: 0 18px 45px rgba(10, 15, 35, 0.24);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cc-demo-video-play span {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: clamp(12px, 1.35vw, 15px) solid transparent;
    border-bottom: clamp(12px, 1.35vw, 15px) solid transparent;
    border-left: clamp(17px, 1.8vw, 22px) solid currentColor;
}

.cc-demo-video-play:hover,
.cc-demo-video-play:focus-visible {
    outline: none;
    box-shadow: 0 22px 56px rgba(10, 15, 35, 0.3);
    transform: translate(-50%, -50%) scale(1.04);
}

.cc-demo-video-shell.is-playing .cc-demo-video-play {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 760px) {
    .cc-home-v3 .cc-demo-trigger {
        min-width: 0 !important;
    }

    .cc-demo-video-modal {
        padding: 10px;
    }

    .cc-demo-video-dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 8px;
        border-radius: 10px;
    }

    .cc-demo-video-close {
        width: 34px;
        height: 34px;
    }

    .cc-demo-video-shell {
        border-radius: 7px;
    }
}

/* v1.475.6 - pure white public homepage background */
html:not([data-theme="dark"]),
html:not([data-theme="dark"]) body.shell-guest-nav,
html:not([data-theme="dark"]) body.shell-guest-nav .page,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v2,
html:not([data-theme="dark"]) body.shell-guest-nav .cc-home-v3 {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

/* v1.475.7 - readable mobile report metric cards */
@media (max-width: 760px) {
    .cc-home-v3 .cc-signal-grid {
        gap: 14px !important;
    }

    .cc-home-v3 .cc-signal-grid article {
        min-height: 150px !important;
        gap: 12px !important;
        padding: 22px 18px 20px !important;
    }

    .cc-home-v3 .cc-signal-grid h3 {
        font-size: 1.12rem !important;
        font-weight: 820 !important;
        line-height: 1.22 !important;
    }

    .cc-home-v3 .cc-signal-grid p {
        font-size: 1rem !important;
        font-weight: 560 !important;
        line-height: 1.5 !important;
    }
}

/* v1.475.8 - dashboard KPI filter and action plan alignment */
body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form {
    grid-template-columns: max-content minmax(320px, 1fr) auto auto !important;
    align-items: center !important;
    column-gap: 10px !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form label {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 42px !important;
    line-height: 1 !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form select,
body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form .custom-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    align-self: center !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form .custom-select-trigger,
body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form select,
body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form .btn {
    min-height: 42px !important;
    height: 42px !important;
    align-self: center !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-action-card {
    grid-template-columns: 158px minmax(0, 1fr) 76px 154px !important;
    align-items: center !important;
    gap: 14px !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-action-priority {
    justify-self: end !important;
    justify-content: center !important;
    text-align: center !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-action-copy {
    align-self: center !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-action-metric {
    width: 76px !important;
    min-width: 76px !important;
    justify-self: end !important;
    justify-items: center !important;
    text-align: center !important;
}

body.shell-auth:not(.shell-prom-analytics) .overview-action-cta {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
}

@media (max-width: 1100px) {
    body.shell-auth:not(.shell-prom-analytics) .overview-action-card {
        grid-template-columns: 138px minmax(0, 1fr) 68px 138px !important;
        gap: 12px !important;
    }

    body.shell-auth:not(.shell-prom-analytics) .overview-action-metric {
        width: 68px !important;
        min-width: 68px !important;
    }

    body.shell-auth:not(.shell-prom-analytics) .overview-action-cta {
        white-space: normal !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 980px) {
    body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form .btn,
    body.shell-auth:not(.shell-prom-analytics) .overview-kpi-scan-form a {
        width: 100% !important;
    }
}

@media (max-width: 820px) {
    body.shell-auth:not(.shell-prom-analytics) .overview-action-card {
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
    }

    body.shell-auth:not(.shell-prom-analytics) .overview-action-priority,
    body.shell-auth:not(.shell-prom-analytics) .overview-action-copy {
        grid-column: 1 / -1 !important;
        justify-self: start !important;
    }

    body.shell-auth:not(.shell-prom-analytics) .overview-action-metric {
        width: auto !important;
        min-width: 0 !important;
        justify-self: start !important;
        justify-items: start !important;
        text-align: left !important;
    }

body.shell-auth:not(.shell-prom-analytics) .overview-action-cta {
    width: 100% !important;
}
}

/* v1.476 - local Material Symbols and article-style SEO pages */
.cc-material-icon {
    flex: 0 0 auto;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    text-rendering: optimizeLegibility;
}

.cc-home-v3 .cc-icon {
    display: inline-grid !important;
    place-items: center !important;
}

.cc-home-v3 .cc-icon .cc-material-icon {
    color: currentColor;
    font-size: 26px;
    line-height: 1;
}

.cc-home-v3 .cc-tariff-check.material-symbols-rounded {
    display: inline-grid !important;
    place-items: center !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 20;
}

.cc-seo-article {
    --article-ink: #111936;
    --article-muted: #56617a;
    --article-soft: #f7f9fc;
    --article-border: rgba(17, 25, 54, 0.12);
    --article-brand: #4052d6;
    --article-green: #168b78;
    --article-amber: #b77c12;
    --article-red: #cf3e4a;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(30px, 5vw, 66px) 0 clamp(52px, 7vw, 90px);
    color: var(--article-ink);
    overflow-x: clip;
}

.cc-seo-article .cc-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.cc-article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 clamp(28px, 4vw, 46px);
    color: #7a8295;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

.cc-article-breadcrumbs a {
    color: var(--article-brand);
    text-decoration: none;
}

.cc-article-breadcrumbs a:hover,
.cc-article-breadcrumbs a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cc-article-breadcrumbs [aria-current="page"] {
    color: var(--article-muted);
    overflow-wrap: anywhere;
}

.cc-article-header {
    max-width: 890px;
    padding-bottom: clamp(34px, 5vw, 58px);
}

.cc-article-meta {
    margin: 0 0 16px;
    color: #6b7489;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.4;
}

.cc-article-header h1 {
    margin: 0;
    color: var(--article-ink);
    font-size: clamp(2.15rem, 5vw, 4.9rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
}

.cc-article-lead {
    max-width: 820px;
    margin: clamp(18px, 2.4vw, 26px) 0 0;
    color: #46516b;
    font-size: clamp(1.04rem, 0.98rem + 0.25vw, 1.22rem);
    font-weight: 560;
    line-height: 1.68;
}

.cc-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(22px, 3vw, 32px);
}

.cc-article-btn {
    display: inline-flex !important;
    gap: 9px !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    min-width: 0 !important;
}

.cc-article-btn-icon {
    font-size: 20px;
}

.cc-article-layout {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 74px);
    align-items: start;
}

.cc-article-toc {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 8px;
    padding: 16px 0 16px 16px;
    border-left: 2px solid var(--article-border);
}

.cc-article-toc strong {
    margin-bottom: 4px;
    color: var(--article-ink);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.2;
}

.cc-article-toc a {
    color: var(--article-muted);
    font-size: 0.9rem;
    font-weight: 680;
    line-height: 1.35;
    text-decoration: none;
}

.cc-article-toc a:hover,
.cc-article-toc a:focus-visible {
    color: var(--article-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cc-article-main {
    min-width: 0;
}

.cc-article-section {
    padding: clamp(30px, 4.2vw, 52px) 0;
    border-top: 1px solid var(--article-border);
}

.cc-article-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.cc-article-section h2,
.cc-article-cta h2 {
    max-width: 820px;
    margin: 0;
    color: var(--article-ink);
    font-size: clamp(1.55rem, 1.28rem + 1vw, 2.35rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: 0;
    text-wrap: balance;
}

.cc-article-section > p,
.cc-article-cta p {
    max-width: 790px;
    margin: 14px 0 0;
    color: var(--article-muted);
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.68;
}

.cc-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cc-article-tags > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(64, 82, 214, 0.14);
    border-radius: 8px;
    background: #ffffff;
    color: #303a56;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cc-article-tags .cc-material-icon {
    color: var(--article-brand);
    font-size: 18px;
}

.cc-article-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.cc-article-fact-grid article,
.cc-article-card-list article,
.cc-article-signal-list article,
.cc-article-hub-group {
    border: 1px solid var(--article-border);
    border-radius: 8px;
    background: #ffffff;
}

.cc-article-fact-grid article {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: clamp(18px, 2vw, 24px);
}

.cc-article-fact-grid h3,
.cc-article-card-list h3,
.cc-article-signal-list h3,
.cc-article-hub-group h3 {
    margin: 0;
    color: var(--article-ink);
    font-size: 1.06rem;
    font-weight: 840;
    line-height: 1.22;
}

.cc-article-fact-grid p,
.cc-article-card-list p,
.cc-article-signal-list p {
    margin: 7px 0 0;
    color: var(--article-muted);
    font-size: 0.95rem;
    font-weight: 540;
    line-height: 1.58;
}

.cc-article-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(64, 82, 214, 0.14);
    border-radius: 8px;
    background: #f3f5ff;
    color: var(--article-brand);
}

.cc-article-icon .cc-material-icon {
    font-size: 25px;
}

.cc-article-icon--positions,
.cc-article-icon--scan,
.cc-article-icon--top25,
.cc-article-icon--orders {
    border-color: rgba(22, 139, 120, 0.18);
    background: #eefaf7;
    color: var(--article-green);
}

.cc-article-icon--actions,
.cc-article-icon--map,
.cc-article-icon--cpa,
.cc-article-icon--rating {
    border-color: rgba(183, 124, 18, 0.2);
    background: #fff8ea;
    color: var(--article-amber);
}

.cc-article-icon--growth,
.cc-article-icon--revenue,
.cc-article-icon--potential {
    border-color: rgba(207, 62, 74, 0.16);
    background: #fff1f2;
    color: var(--article-red);
}

.cc-article-card-list,
.cc-article-signal-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.cc-article-card-list article,
.cc-article-signal-list article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: clamp(16px, 2vw, 22px);
}

.cc-article-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.cc-article-hub-group {
    display: grid;
    gap: 16px;
    padding: clamp(17px, 2vw, 22px);
}

.cc-article-hub-group header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.cc-article-link-list,
.cc-article-related {
    display: grid;
    gap: 8px;
}

.cc-article-link-list a,
.cc-article-related a {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(64, 82, 214, 0.12);
    border-radius: 8px;
    background: var(--article-soft);
    color: #303a56;
    font-size: 0.92rem;
    font-weight: 760;
    line-height: 1.25;
    text-decoration: none;
}

.cc-article-link-list a:hover,
.cc-article-link-list a:focus-visible,
.cc-article-related a:hover,
.cc-article-related a:focus-visible {
    border-color: rgba(64, 82, 214, 0.28);
    background: #ffffff;
    color: var(--article-brand);
}

.cc-article-link-list .cc-material-icon,
.cc-article-related .cc-material-icon {
    color: currentColor;
    font-size: 20px;
}

.cc-article-steps {
    display: grid;
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid var(--article-border);
}

.cc-article-steps article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--article-border);
}

.cc-article-steps span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #111936;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 850;
}

.cc-article-steps h3 {
    margin: 0;
    color: var(--article-ink);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.25;
}

.cc-article-steps p {
    margin: 8px 0 0;
    color: var(--article-muted);
    font-size: 0.96rem;
    font-weight: 540;
    line-height: 1.62;
}

.cc-article-data-note {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--article-border);
    border-radius: 8px;
    background: #fbfcff;
}

.cc-article-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.cc-article-note-grid h3 {
    margin: 0 0 10px;
    color: var(--article-ink);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
}

.cc-article-note-grid ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--article-muted);
    font-size: 0.95rem;
    font-weight: 540;
    line-height: 1.55;
}

.cc-article-soft-note {
    margin-top: 22px !important;
    padding-top: 18px;
    border-top: 1px solid var(--article-border);
}

.cc-article-faq {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.cc-article-faq details {
    border: 1px solid var(--article-border);
    border-radius: 8px;
    background: #ffffff;
}

.cc-article-faq summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    color: var(--article-ink);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 820;
    line-height: 1.35;
}

.cc-article-faq summary::-webkit-details-marker {
    display: none;
}

.cc-article-faq summary .cc-material-icon {
    color: var(--article-brand);
    font-size: 22px;
    transition: transform 160ms ease;
}

.cc-article-faq details[open] summary .cc-material-icon {
    transform: rotate(90deg);
}

.cc-article-faq p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--article-muted);
    font-size: 0.96rem;
    font-weight: 540;
    line-height: 1.6;
}

.cc-article-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.cc-article-cta {
    display: grid;
    gap: 18px;
    margin-top: clamp(34px, 5vw, 56px);
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(64, 82, 214, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.cc-article-cta .cc-article-actions {
    margin-top: 0;
}

@media (max-width: 980px) {
    .cc-seo-article {
        width: min(100% - 28px, 760px);
    }

    .cc-article-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cc-article-toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
        border: 1px solid var(--article-border);
        border-radius: 8px;
        background: #ffffff;
    }

    .cc-article-toc strong {
        grid-column: 1 / -1;
    }

    .cc-article-hub-grid,
    .cc-article-related {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .cc-seo-article {
        width: min(100% - 24px, 560px);
        padding-top: 24px;
    }

    .cc-article-header h1 {
        font-size: clamp(2rem, 12vw, 3.25rem);
        line-height: 1.05;
    }

    .cc-article-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cc-article-btn {
        width: 100% !important;
    }

    .cc-article-toc,
    .cc-article-fact-grid,
    .cc-article-note-grid {
        grid-template-columns: 1fr;
    }

    .cc-article-card-list article,
    .cc-article-signal-list article,
    .cc-article-hub-group header,
    .cc-article-steps article {
        grid-template-columns: 1fr;
    }

    .cc-article-data-note,
    .cc-article-cta {
        padding: 18px;
    }

    .cc-article-tags {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Cross Checker app spacing system */
body.shell-auth:not(.shell-prom-analytics) {
    --cc-app-page-gap: clamp(18px, 1.2vw, 24px);
    --cc-app-section-gap: clamp(12px, 0.9vw, 16px);
    --cc-app-header-lift: 0px;
    --cc-app-header-padding: clamp(18px, 1.55vw, 28px);
    --cc-app-panel-padding: clamp(16px, 1.45vw, 26px);
}

body.shell-auth:not(.shell-prom-analytics) .layout-page-container {
    gap: var(--cc-app-page-gap) !important;
}

body.shell-auth:not(.shell-prom-analytics) .layout-page-container > .cc-page-header:first-child {
    margin-top: var(--cc-app-header-lift) !important;
}

body.shell-auth:not(.shell-prom-analytics) .cc-page-header {
    margin-bottom: 0 !important;
    padding: var(--cc-app-header-padding) !important;
}

body.shell-auth:not(.shell-prom-analytics) .layout-page-container > .cc-page-header + * {
    margin-top: 0 !important;
}

body.shell-auth:not(.shell-prom-analytics) :is(
    .layout-card-group,
    .settings-page,
    .partners-page,
    .admin-billing-page,
    .admin-pages-page,
    .stability-shell,
    .monitoring-shell,
    .ip-control-page,
    .prom-health-shell
) {
    gap: var(--cc-app-page-gap);
}

body.shell-auth:not(.shell-prom-analytics) :is(
    .panel.layout-section,
    .overview-zone-kpi,
    .overview-zone-sources,
    .overview-work-card
) {
    padding: var(--cc-app-panel-padding);
}

body.shell-auth:not(.shell-prom-analytics) .panel.layout-section > .panel-head:first-child {
    margin-bottom: var(--cc-app-section-gap);
}

body.shell-auth:not(.shell-prom-analytics) :is(
    .products-page-shell,
    .competitor-analysis-shell,
    .position-analysis-form-card,
    .position-history-section,
    .feed-policy-panel,
    .feed-scan-launch-panel
) {
    gap: var(--cc-app-section-gap);
}

body.shell-auth:not(.shell-prom-analytics) .competitor-analysis-shell > .panel-head:first-child {
    margin-bottom: 0;
}

body.shell-auth:not(.shell-prom-analytics) .position-history-section {
    margin-top: 0;
}

@media (max-width: 768px) {
    body.shell-auth:not(.shell-prom-analytics) {
        --cc-app-page-gap: 12px;
        --cc-app-section-gap: 10px;
        --cc-app-header-lift: 8px;
        --cc-app-header-padding: 16px;
        --cc-app-panel-padding: 16px;
    }
}

/* Collapsed sidebar spacing guard */
body.shell-auth {
    --cc-sidebar-collapsed-column: 88px;
    --cc-sidebar-collapsed-gap: 10px;
    --cc-sidebar-collapsed-inset: 10px;
}

body.shell-auth.sidebar-collapsed .auth-layout {
    grid-template-columns: var(--cc-sidebar-collapsed-column) minmax(0, 1fr) !important;
    column-gap: var(--cc-sidebar-collapsed-gap) !important;
    gap: var(--cc-sidebar-collapsed-gap) !important;
    padding-right: var(--cc-sidebar-collapsed-inset) !important;
}

body.shell-auth.sidebar-collapsed .app-sidebar {
    margin: 0 0 14px var(--cc-sidebar-collapsed-inset) !important;
    box-shadow: none !important;
}

body.shell-auth.sidebar-collapsed .app-sidebar > .app-sidebar-head {
    padding-left: var(--cc-sidebar-collapsed-inset) !important;
    padding-right: var(--cc-sidebar-collapsed-inset) !important;
}

body.shell-auth.sidebar-collapsed .app-sidebar > .sidebar-nav,
body.shell-auth.sidebar-collapsed .sidebar-nav {
    padding-left: var(--cc-sidebar-collapsed-inset) !important;
    padding-right: var(--cc-sidebar-collapsed-inset) !important;
}
