: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: #5d5b55;
    --border: rgba(65, 55, 33, 0.16);
    --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;
}

* {
    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-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);
}

.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 .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;
}

.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-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 .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-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;
}

.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-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;
    width: 48%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(83, 92, 226, 0.2), #535ce2, rgba(73, 176, 165, 0.95));
    animation: page-transition-loader-bar 1.05s ease-in-out infinite;
}

.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);
    }
}

.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-prominent {
    margin-top: 2px;
    font-size: 0.94rem;
}

.auth-links-prominent a {
    color: #535ce2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.auth-links-prominent 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-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-prominent 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;
}

.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-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"] .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 {
    display: grid;
    gap: 10px;
}

.product-detail-header-zone .cc-page-header {
    margin-bottom: 0;
}

.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 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.product-detail-header-actions .badge {
    text-transform: none;
    letter-spacing: 0.01em;
}

.product-detail-header-meta {
    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-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;
}

.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"] .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-header-actions {
        width: 100%;
    }

    .product-detail-header-actions .btn {
        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-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;
}

.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-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-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;
    }
}

/* -------------------------------------------------------------------------- */
/* 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-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-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-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);
}

.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;
}

.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;
}

.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(3, minmax(150px, 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-explain {
    margin: 0;
    color: #4d6269;
    font-size: 0.86rem;
    line-height: 1.45;
}

.competitor-top-products {
    display: grid;
    gap: 10px;
}

.competitor-top-products h4 {
    margin: 0;
    font-size: 0.92rem;
    color: #183840;
}

.competitor-top-products-list {
    display: grid;
    gap: 7px;
}

.competitor-top-product-row {
    display: grid;
    grid-template-columns: 34px minmax(260px, 1fr) minmax(92px, auto) minmax(116px, auto);
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    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-title {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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-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));
    }

    .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(3, minmax(0, 1fr));
    }

    .competitor-top-product-row {
        grid-template-columns: 34px 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-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;
    }

    .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-category-breakdown-grid {
        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 minmax(0, 1fr) minmax(96px, auto);
    }

    .competitor-top-product-action {
        grid-column: 2;
        justify-self: start;
    }

    .competitor-top-product-row strong {
        grid-column: 3;
        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-history-head {
        flex-direction: column;
    }

    .competitor-analysis-history-actions,
    .competitor-analysis-history-actions .inline-form,
    .competitor-analysis-history-actions .btn {
        width: 100%;
    }

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

    .competitor-store-stats-head {
        flex-direction: column;
    }

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

    .competitor-top-product-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .competitor-top-product-title {
        white-space: normal;
    }

    .competitor-top-product-period,
    .competitor-top-product-action,
    .competitor-top-product-row strong {
        grid-column: 2 / -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"] .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-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-product-row {
    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-store-stats-grid b {
    color: #9bb4c7;
}

html[data-theme="dark"] .competitor-store-stats-explain {
    color: #b7cad8;
}

/* Dashboard operations board: sources, priorities, launch and export health */
.overview-zone-sources,
.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-sources-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 93, 86, 0.12);
}

.overview-sources-head 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-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-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-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"] .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-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"] .main-task-panel label {
    color: #d3e1eb;
}

@media (max-width: 1200px) {
    .overview-opportunity-grid,
    .overview-run-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .overview-sources-head,
    .overview-run-head {
        align-items: stretch;
    }

    .overview-sources-head-actions,
    .overview-sources-head-actions .btn,
    .overview-run-head .badge {
        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;
    }

    .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-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-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-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-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=20260507-logo2") center / 24px 24px 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.prom,
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: #303663;
    --ui-muted: #7d83a9;
    --ui-muted-strong: #666d9a;
    --ui-line: rgba(136, 140, 213, 0.18);
    --ui-line-strong: rgba(104, 112, 243, 0.34);
    --ui-primary: #6870f3;
    --ui-primary-strong: #535ce2;
    --ui-primary-soft: rgba(104, 112, 243, 0.12);
    --ui-danger: #eb6460;
    --ui-danger-strong: #d8524e;
    --ui-danger-soft: rgba(235, 100, 96, 0.12);
    --ui-warning: #c38432;
    --ui-warning-soft: rgba(195, 132, 50, 0.14);
    --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(.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) !important;
    border-radius: 999px !important;
    background: var(--ui-surface-hover) !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(235, 100, 96, 0.24) !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(195, 132, 50, 0.24) !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(5, minmax(0, 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: #7d83a9;
    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;
}

@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);
}

@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: flex;
        gap: 8px;
        margin-inline: -4px;
        padding: 2px 4px 8px;
        overflow-x: auto;
        scrollbar-gutter: auto;
        scroll-snap-type: x proximity;
    }

    .settings-tab-btn {
        min-width: min(172px, 72vw);
        min-height: 58px;
        padding: 10px 12px;
        border-radius: 18px;
        scroll-snap-align: start;
    }

    .settings-tab-btn span {
        font-size: 0.88rem;
    }

    .settings-tab-btn small {
        font-size: 0.68rem;
    }
}

@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.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-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-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;
    }
}

/* 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;
    }
}
