/*
 * Client dashboard feature stylesheet
 * Shared dashboard tokens and reusable primitives: dashboard_design_system.css
 * 01 Foundation | 02 Header | 03 Left column | 04 Shared pages | 05 Authentication
 * 06 Themes & banners | 07 Documents | 08 Reports | 09 Transitions | 10 Dashboard
 * 11 Listings | 12 Heatmaps | 13 Notifications
 */

/* ==================== 01. Foundation, variables and shared controls ==================== */

html.cd-theme-document {
    min-height: 100%;
    color-scheme: dark;
    background: var(--cd-bg);
}

html.cd-theme-document *,
.cd-theme-scope,
.cd-theme-scope * {
    box-sizing: border-box;
}

html.cd-theme-document body,
.cd-theme-scope {
    color: var(--cd-text);
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

html.cd-theme-document body {
    min-height: 100vh;
    margin: 0;
}

html.cd-theme-document a,
.cd-theme-scope a {
    color: inherit;
    text-decoration: none;
}

html.cd-theme-document button,
html.cd-theme-document input,
html.cd-theme-document select,
.cd-theme-scope button,
.cd-theme-scope input,
.cd-theme-scope select {
    font: inherit;
}

html.cd-theme-document button,
html.cd-theme-document a,
html.cd-theme-document input,
html.cd-theme-document select,
html.cd-theme-document summary,
.cd-theme-scope button,
.cd-theme-scope a,
.cd-theme-scope input,
.cd-theme-scope select,
.cd-theme-scope summary {
    -webkit-tap-highlight-color: transparent;
}

/* Legacy CRM framework isolation. Restore the Bootstrap/client-dashboard baseline
 * inside the design boundary before component-specific rules apply. */
:where(html.cd-theme-document, .cd-theme-scope) img {
    max-width: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

:where(html.cd-theme-document, .cd-theme-scope) .alert {
    padding: .75rem 1.25rem;
}

:where(html.cd-theme-document, .cd-theme-scope) .card {
    border-radius: .2308rem;
}

:where(html.cd-theme-document, .cd-theme-scope) .card-header {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

:where(html.cd-theme-document, .cd-theme-scope) .card-header a:not(.btn) {
    color: inherit;
}

:where(html.cd-theme-document, .cd-theme-scope) .card-header > span > i,
:where(html.cd-theme-document, .cd-theme-scope) .card-header > i {
    margin-right: 0;
    color: inherit;
}

:where(html.cd-theme-document, .cd-theme-scope) .card-body {
    padding: 1.25rem;
}

:where(html.cd-theme-document, .cd-theme-scope) .table {
    font-size: inherit;
    line-height: inherit;
    border-right: 0;
    border-left: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .table tbody {
    font-weight: inherit;
}

:where(html.cd-theme-document, .cd-theme-scope) .table > thead {
    background-color: transparent;
}

:where(html.cd-theme-document, .cd-theme-scope) .table thead td {
    min-width: auto;
    font-weight: inherit;
}

:where(html.cd-theme-document, .cd-theme-scope) .table thead > tr > td,
:where(html.cd-theme-document, .cd-theme-scope) .table tbody > tr > td {
    vertical-align: top;
}

:where(html.cd-theme-document, .cd-theme-scope) .table-responsive {
    margin-bottom: 0;
    cursor: auto;
}

:where(html.cd-theme-document, .cd-theme-scope) .form-control {
    font-size: .8125rem;
    line-height: 1.4;
}

:where(html.cd-theme-document, .cd-theme-scope) .form-control:hover:not(.is-invalid):not(.is-valid) {
    border-color: #ced4da;
    box-shadow: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .col-form-label {
    font-weight: 400;
    text-align: inherit;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group > select.form-control {
    height: calc(1.4em + 1.077rem + 2px);
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group > .form-control:not(.h-auto) {
    min-height: 42px;
}

:where(html.cd-theme-document, .cd-theme-scope) input[type="radio"]:not(.form-check-input),
:where(html.cd-theme-document, .cd-theme-scope) input[type="checkbox"]:not(.form-check-input) {
    position: static;
    width: auto;
    height: auto;
    appearance: auto;
    -webkit-appearance: auto;
    border: initial;
    border-radius: initial;
    background: initial;
}

:where(html.cd-theme-document, .cd-theme-scope) .form-check-input[type="radio"],
:where(html.cd-theme-document, .cd-theme-scope) .form-check-input[type="checkbox"] {
    position: absolute;
    top: auto;
    width: auto;
    height: auto;
    margin-top: .3rem;
    margin-left: -1.25rem;
    appearance: auto;
    -webkit-appearance: auto;
    border: initial;
    border-radius: initial;
    background: initial;
}

:where(html.cd-theme-document, .cd-theme-scope) .form-check-inline .form-check-input[type="radio"],
:where(html.cd-theme-document, .cd-theme-scope) .form-check-inline .form-check-input[type="checkbox"] {
    position: static;
    margin-top: 0;
    margin-right: .3125rem;
    margin-left: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) input[type="radio"]::before,
:where(html.cd-theme-document, .cd-theme-scope) input[type="radio"]::after,
:where(html.cd-theme-document, .cd-theme-scope) input[type="checkbox"]::before,
:where(html.cd-theme-document, .cd-theme-scope) input[type="checkbox"]::after,
:where(html.cd-theme-document, .cd-theme-scope) input[type="radio"]:checked::before,
:where(html.cd-theme-document, .cd-theme-scope) input[type="radio"]:checked::after,
:where(html.cd-theme-document, .cd-theme-scope) input[type="checkbox"]:checked::before,
:where(html.cd-theme-document, .cd-theme-scope) input[type="checkbox"]:checked::after {
    display: none;
    content: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .btn-outline-secondary:not(:disabled):not(.disabled):active,
:where(html.cd-theme-document, .cd-theme-scope) .btn-outline-secondary:not(:disabled):not(.disabled).active,
:where(html.cd-theme-document, .cd-theme-scope) .show > .btn-outline-secondary.dropdown-toggle {
    border-color: rgba(116, 91, 205, 0.48);
    color: #ffffff;
    background: linear-gradient(105deg, #7657ca, #4b71cb 48%, #2f93c6);
    box-shadow: 0 7px 18px rgba(29, 45, 103, 0.18);
}

:where(html.cd-theme-document, .cd-theme-scope) .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 21px;
    padding: 3px 7px;
    border: 1px solid rgba(116, 174, 205, 0.18);
    color: #c9dce7;
    background: linear-gradient(110deg, rgba(111, 143, 166, 0.14), rgba(73, 112, 139, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 5px 12px rgba(0, 8, 20, 0.07);
    font-size: 10.5px;
    font-weight: 760;
    letter-spacing: 0.035em;
    line-height: 1.1;
    text-transform: uppercase;
    vertical-align: middle;
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-primary {
    color: #dcefff !important;
    border-color: rgba(77, 169, 255, 0.3);
    background: linear-gradient(110deg, rgba(71, 116, 207, 0.22), rgba(45, 143, 207, 0.18));
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-secondary {
    color: #d0dde6 !important;
    border-color: rgba(139, 162, 181, 0.22);
    background: linear-gradient(110deg, rgba(116, 139, 158, 0.16), rgba(88, 113, 133, 0.12));
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-success {
    color: #baf8ef !important;
    border-color: rgba(45, 189, 187, 0.34);
    background: linear-gradient(110deg, rgba(45, 189, 187, 0.2), rgba(38, 145, 160, 0.14));
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-danger {
    color: #ffe0e7 !important;
    border-color: rgba(235, 87, 116, 0.32);
    background: linear-gradient(110deg, rgba(203, 58, 87, 0.21), rgba(156, 52, 86, 0.16));
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-warning {
    color: #ffe8ba !important;
    border-color: rgba(232, 173, 64, 0.32);
    background: linear-gradient(110deg, rgba(211, 143, 34, 0.2), rgba(158, 112, 43, 0.14));
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-info {
    color: #d6f5ff !important;
    border-color: rgba(75, 190, 225, 0.3);
    background: linear-gradient(110deg, rgba(47, 156, 192, 0.2), rgba(61, 123, 183, 0.14));
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-light {
    color: #d3e5ee !important;
    border-color: rgba(148, 185, 207, 0.2);
    background: linear-gradient(110deg, rgba(223, 242, 249, 0.1), rgba(167, 205, 220, 0.06));
}

:where(html.cd-theme-document, .cd-theme-scope) .badge-dark {
    color: #edf8fc !important;
    border-color: rgba(122, 159, 184, 0.2);
    background: linear-gradient(110deg, rgba(3, 16, 29, 0.68), rgba(11, 35, 51, 0.58));
}

html[data-theme="light"].cd-theme-document .badge,
html[data-theme="light"] .cd-theme-scope .badge {
    color: #4b6b80;
    border-color: rgba(68, 113, 143, 0.15);
    background: linear-gradient(110deg, #eef6f9, #e6f1f5);
    box-shadow: inset 0 1px 0 #ffffff, 0 6px 14px rgba(50, 87, 111, 0.07);
}

html[data-theme="light"].cd-theme-document .badge-primary,
html[data-theme="light"] .cd-theme-scope .badge-primary {
    color: #235f91 !important;
    border-color: rgba(45, 135, 200, 0.19);
    background: #e7f2fb;
}

html[data-theme="light"].cd-theme-document .badge-secondary,
html[data-theme="light"] .cd-theme-scope .badge-secondary {
    color: #536a7a !important;
    border-color: rgba(94, 121, 140, 0.16);
    background: #edf3f6;
}

html[data-theme="light"].cd-theme-document .badge-success,
html[data-theme="light"] .cd-theme-scope .badge-success {
    color: #126e6b !important;
    border-color: rgba(37, 157, 159, 0.23);
    background: linear-gradient(110deg, #e2f8f5, #e8f5f6);
}

html[data-theme="light"].cd-theme-document .badge-danger,
html[data-theme="light"] .cd-theme-scope .badge-danger {
    color: #9b3349 !important;
    border-color: rgba(212, 73, 101, 0.2);
    background: #fff0f3;
}

html[data-theme="light"].cd-theme-document .badge-warning,
html[data-theme="light"] .cd-theme-scope .badge-warning {
    color: #8b601d !important;
    border-color: rgba(199, 137, 41, 0.22);
    background: #fff7e7;
}

html[data-theme="light"].cd-theme-document .badge-info,
html[data-theme="light"] .cd-theme-scope .badge-info {
    color: #286d88 !important;
    border-color: rgba(58, 153, 187, 0.2);
    background: #eaf7fb;
}

html[data-theme="light"].cd-theme-document .badge-light,
html[data-theme="light"] .cd-theme-scope .badge-light {
    color: #5d7688 !important;
    border-color: rgba(81, 120, 146, 0.14);
    background: #f4f9fb;
}

html[data-theme="light"].cd-theme-document .badge-dark,
html[data-theme="light"] .cd-theme-scope .badge-dark {
    color: #eaf6fb !important;
    border-color: rgba(24, 51, 69, 0.12);
    background: #29485c;
}

:where(html.cd-theme-document, .cd-theme-scope) .badge[style*="background-color"]:empty,
:where(html.cd-theme-document, .cd-theme-scope) .cd-team-color-swatch:empty {
    display: inline-flex;
}

:where(html.cd-theme-document, .cd-theme-scope) .badge[style*="background-color"] {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    background-image: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 10px rgba(0, 8, 20, 0.1);
    text-shadow: 0 1px 2px rgba(0, 7, 18, 0.45);
}

.cd-team-name-with-color {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.cd-team-name-with-color .cd-team-color-swatch {
    width: 22px;
    min-width: 22px;
    height: 12px;
    min-height: 12px;
    padding: 0;
    margin: 0 !important;
}

.cd-team-tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 8px;
}

.cd-team-tag-list .badge {
    margin: 0 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .btn i {
    margin-right: 0;
}

html.cd-theme-document #navigation.theme-design-section {
    display: block;
    padding: 0;
    border-bottom: 0;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .cd-audit-admin-report .audit-ai-signal-list {
    display: grid;
    gap: 14px;
}

:where(html.cd-theme-document, .cd-theme-scope) .cd-audit-admin-report .audit-ai-signal {
    border-style: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .cd-audit-admin-report .audit-ai-signal-header {
    display: block;
    justify-content: initial;
}

:where(html.cd-theme-document, .cd-theme-scope) .cd-audit-admin-report .audit-ai-signal-content {
    display: block;
    grid-template-columns: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .cd-audit-admin-report .audit-ai-signal-content > div {
    border-right: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .cd-audit-admin-report .audit-ai-signal-content small {
    display: inline;
    text-transform: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .cd-audit-admin-report .audit-ai-signal-content p {
    margin: 0 0 1rem;
}

@media (max-width: 767.98px) {
    :where(html.cd-theme-document, .cd-theme-scope) .dropdown .dropdown-menu {
        width: auto;
        max-width: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    :where(html.cd-theme-document, .cd-theme-scope) button,
    :where(html.cd-theme-document, .cd-theme-scope) .btn {
        min-width: 0;
        min-height: 0;
    }
}

/* ==================== 02. Header and top navigation ==================== */

.cd-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    border-bottom: 1px solid var(--cd-border);
    backdrop-filter: blur(18px);
}

.cd-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.cd-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.cd-account-button,
.cd-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--cd-border);
    color: var(--cd-text);
}

.cd-account-button {
    padding: 0 14px;
}

.cd-account-button:hover,
.cd-icon-button:hover {
    transform: translateY(-1px);
}

#supreme-user-switch-wrapper > .dropdown-menu {
    min-width: 240px;
}

#supreme-user-switch-wrapper .supreme-user-switch-option {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

#supreme-user-switch-wrapper .supreme-user-switch-option > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#supreme-user-switch-wrapper .supreme-user-switch-option .badge {
    position: static;
    max-width: 100%;
    margin: 0;
    padding: 5px 8px;
    line-height: 1;
    transform: none;
    white-space: nowrap;
}

.cd-account-button:active,
.cd-icon-button:active,
.cd-button:active,
.cd-nav-item:active {
    transform: translateY(1px) scale(0.99);
}

.cd-account-button:focus,
.cd-icon-button:focus,
.cd-button:focus,
.cd-nav-item:focus,
.cd-theme-option:focus,
.cd-menu-toggle:focus,
.cd-theme-switcher > summary:focus {
    outline: 0;
}

.cd-account-button:focus-visible,
.cd-icon-button:focus-visible,
.cd-button:focus-visible,
.cd-nav-item:focus-visible,
.cd-theme-option:focus-visible,
.cd-theme-switcher > summary:focus-visible,
.cd-field input:focus-visible,
.cd-field select:focus-visible,
.cd-policy summary:focus-visible {
    outline: 2px solid var(--cd-accent);
    outline-offset: 3px;
}

/* ==================== 03. Left column and primary navigation ==================== */

.cd-app-shell {
    display: grid;
    grid-template-columns: var(--cd-sidebar-width) minmax(0, 1fr);
}

.cd-sidebar {
    position: fixed;
    z-index: 40;
    bottom: 0;
    left: 0;
    width: var(--cd-sidebar-width);
    padding: 22px 16px;
    border-right: 1px solid var(--cd-border);
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    backdrop-filter: blur(18px);
}

.cd-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 15px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.cd-nav-item i {
    width: 20px;
    text-align: center;
    transition: color 140ms ease, transform 140ms ease;
}

.cd-nav-item:hover {
    color: var(--cd-text);
}

.cd-nav-item:hover i {
    transform: translateX(1px);
}

.cd-nav-item.is-active {
    color: #eafdff;
}

.cd-logout-form {
    margin-top: auto;
}

.cd-nav-button {
    border: 1px solid rgba(255, 113, 137, 0.12);
    color: #eab8c1;
}

.cd-nav-button i {
    color: #d98899;
}

#column-left.cd-sidebar .cd-nav {
    min-height: 0;
    gap: 18px;
}

#column-left.cd-sidebar #menu,
#column-left.cd-sidebar #menu ul,
#column-left.cd-sidebar #menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#column-left.cd-sidebar #menu {
    width: calc(100% + 16px);
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    margin-right: -16px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(116, 91, 205, 0.78) transparent;
}

#column-left.cd-sidebar #menu::-webkit-scrollbar {
    width: 0.5px;
}

#column-left.cd-sidebar #menu::-webkit-scrollbar-track {
    background: transparent;
}

#column-left.cd-sidebar #menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(130, 88, 200, 0.92), rgba(45, 189, 187, 0.82));
}

#column-left.cd-sidebar #menu li {
    min-width: 0;
}

#column-left.cd-sidebar #menu .cd-nav-item {
    color: #c6d8e6;
    text-shadow: 0 1px 3px rgba(0, 5, 14, 0.72), 0 0 8px rgba(9, 42, 66, 0.34);
}

#column-left.cd-sidebar #menu .cd-nav-item:hover,
#column-left.cd-sidebar #menu .cd-nav-item.is-active {
    color: #f0f9ff;
}

html[data-theme="light"] #column-left.cd-sidebar #menu .cd-nav-item {
    color: #47677d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] #column-left.cd-sidebar #menu .cd-nav-item:hover,
html[data-theme="light"] #column-left.cd-sidebar #menu .cd-nav-item.is-active {
    color: #153f61;
}

#column-left.cd-sidebar .cd-logout-form {
    padding-top: 6px;
}

#column-left.cd-sidebar #menu .cd-nav-item.parent {
    padding-right: 21px;
}

#column-left.cd-sidebar #menu .cd-nav-item.parent::after {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    align-self: center;
    margin: 0 10px 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: #8eb4c9;
    content: "";
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform 180ms ease, color 180ms ease;
}

#column-left.cd-sidebar #menu .cd-nav-item.parent.collapsed::after {
    transform: rotate(-45deg);
}

#column-left.cd-sidebar #menu .cd-nav-item.parent:hover::after,
#column-left.cd-sidebar #menu .cd-nav-item.parent.is-active::after {
    color: #d9f1fb;
}

html[data-theme="light"] #column-left.cd-sidebar #menu .cd-nav-item.parent::after {
    color: #527c95;
}

html[data-theme="light"] #column-left.cd-sidebar #menu .cd-nav-item.parent:hover::after,
html[data-theme="light"] #column-left.cd-sidebar #menu .cd-nav-item.parent.is-active::after {
    color: #174d6d;
}

#column-left.cd-sidebar #menu ul {
    margin: 5px 0 3px 18px;
    padding: 5px 0 5px 8px;
    border-left: 1px solid rgba(107, 171, 215, 0.18);
}

#column-left.cd-sidebar #menu ul ul {
    margin-left: 12px;
    padding-left: 7px;
    border-left-color: rgba(130, 88, 200, 0.2);
}

#column-left.cd-sidebar #menu ul ul ul {
    margin-left: 9px;
    padding-left: 6px;
    border-left-color: rgba(45, 189, 187, 0.18);
}

#column-left.cd-sidebar #menu > li > ul > li > .cd-nav-item {
    min-height: 42px;
    gap: 9px;
    padding-right: 11px;
    padding-left: 11px;
    color: #d7e8f1;
    font-size: 13.25px;
    font-weight: 400;
    letter-spacing: 0.025em;
}

#column-left.cd-sidebar #menu > li > ul > li > ul > li > .cd-nav-item {
    min-height: 40px;
    padding-right: 10px;
    padding-left: 10px;
    color: #e2eef4;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
}

#column-left.cd-sidebar #menu > li > ul > li > ul > li > ul > li > .cd-nav-item {
    min-height: 38px;
    padding-right: 9px;
    padding-left: 9px;
    color: #e7f2f7;
    font-size: 12.75px;
    font-weight: 400;
    letter-spacing: 0.035em;
}

#column-left.cd-sidebar #menu ul .cd-nav-item > i {
    width: 18px;
    font-size: 13px;
}

html[data-theme="light"] #column-left.cd-sidebar #menu > li > ul > li > .cd-nav-item {
    color: #41677f;
}

html[data-theme="light"] #column-left.cd-sidebar #menu > li > ul > li > ul > li > .cd-nav-item {
    color: #365f78;
}

html[data-theme="light"] #column-left.cd-sidebar #menu > li > ul > li > ul > li > ul > li > .cd-nav-item {
    color: #315973;
}

#column-left.cd-sidebar #menu ul .cd-nav-item.is-active {
    color: #eafdff;
}

html[data-theme="light"] #column-left.cd-sidebar #menu ul .cd-nav-item.is-active {
    color: #153f61;
}

@media (min-width: 768px) {
    html.cd-sidebar-collapsed #column-left.cd-sidebar #menu {
        width: calc(100% + 11px);
        margin-right: -11px;
        padding-right: 11px;
    }

    html.cd-sidebar-collapsed #column-left.cd-sidebar #menu ul {
        display: none !important;
    }

    html.cd-sidebar-collapsed #column-left.cd-sidebar #menu .cd-nav-item.parent::after {
        display: none;
    }
}

/* ==================== 04. Main content and shared page shell ==================== */

.cd-main {
    grid-column: 2;
    min-width: 0;
    padding: 42px clamp(24px, 4vw, 62px) 64px;
}

.cd-page-heading {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    animation: cd-rise-in 320ms ease both;
}

.cd-page-heading p,
.cd-auth-heading p {
    max-width: 680px;
    margin: 0;
}

.cd-card {
    animation: cd-rise-in 360ms 45ms ease both;
}

.cd-placeholder-card {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 13px;
    padding: 40px;
    color: var(--cd-muted);
    text-align: center;
}

.cd-placeholder-card i {
    color: var(--cd-accent);
    font-size: 26px;
}

.cd-placeholder-card strong {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #d9f4ff;
    background: linear-gradient(100deg, #e9f7ff 0%, #9bccef 46%, #ad92ea 100%);
    background-clip: text;
    box-shadow: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    backdrop-filter: none;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.cd-form-section {
    margin-bottom: 22px;
}

.cd-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
}

.cd-section-heading h2,
.cd-department-list h3 {
    margin: 0;
    letter-spacing: -0.02em;
}

.cd-section-heading h2 {
    font-size: 20px;
}

.cd-department-list h3 {
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--cd-muted);
}

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

.cd-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-field > span {
    font-size: 13px;
    font-weight: 700;
}

.cd-field input,
.cd-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--cd-border);
    color: var(--cd-text);
}

.cd-field input:not([readonly]):focus,
.cd-field select:not(:disabled):focus {
    outline: none;
}

.cd-field input[readonly],
.cd-field select:disabled {
    color: #9db0c0;
    cursor: default;
    opacity: 0.85;
}

.cd-field-full {
    grid-column: 1 / -1;
}

.cd-field-error {
    color: #ff9aaa;
    font-size: 12px;
}

.cd-department-list {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--cd-border);
}

.cd-department-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 16px;
    border-bottom: 1px solid rgba(159, 187, 214, 0.09);
}

.cd-department-row:last-child {
    border-bottom: 0;
}

.cd-department-name {
    min-height: 46px;
    display: flex;
    align-items: center;
    color: var(--cd-text);
    font-weight: 720;
}

.cd-check-field {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #c9d6df;
}

.cd-check-field input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cd-accent-strong);
}

.cd-policy {
    margin-top: 20px;
    border-top: 1px solid var(--cd-border);
    color: var(--cd-muted);
}

.cd-policy summary {
    padding: 16px 0 0;
    color: var(--cd-accent);
    font-weight: 700;
    cursor: pointer;
}

.cd-policy > div {
    padding: 15px 0 0;
}

.cd-form-actions {
    display: flex;
}

.cd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid transparent;
    cursor: pointer;
}

.cd-button-primary:hover {
    transform: translateY(-2px);
}

.cd-button-primary:hover i,
.cd-button.is-danger:not(:disabled):hover i,
.cd-button.is-danger:not(:disabled):focus-visible i {
    transform: translateX(2px);
}

.cd-button i {
    transition: transform 150ms ease;
}

.cd-button-secondary {
    color: var(--cd-text);
    border-color: var(--cd-border);
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .cd-button-secondary {
    color: #31566f;
    border-color: rgba(61, 105, 134, 0.18);
    background: rgba(240, 248, 252, 0.94);
    box-shadow: 0 8px 20px rgba(43, 74, 97, 0.08);
}

html[data-theme="light"] .cd-button-secondary:hover,
html[data-theme="light"] .cd-button-secondary:focus-visible {
    color: #17384e;
    border-color: rgba(39, 170, 225, 0.32);
    background: #ffffff;
}

.cd-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--cd-border);
    animation: cd-rise-in 260ms ease both;
}

.cd-alert > i,
.cd-alert > .fa,
.cd-alert > .fa-solid,
.cd-alert > .fa-regular {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    line-height: 1;
}

.cd-alert-danger {
    color: #ffd7de;
    border-color: rgba(255, 113, 137, 0.28);
    background: rgba(255, 113, 137, 0.09);
}

.cd-alert-success {
    color: #d7ffeb;
    border-color: rgba(112, 229, 174, 0.27);
    background: rgba(112, 229, 174, 0.08);
}

.cd-alert-primary {
    color: #dce8ff;
    border-color: rgba(91, 111, 216, 0.3);
    background: linear-gradient(105deg, rgba(91, 111, 216, 0.18), rgba(64, 116, 211, 0.08));
    box-shadow: inset 3px 0 0 rgba(111, 92, 216, 0.82);
}

.cd-alert-secondary {
    color: #dbe7ee;
    border-color: rgba(139, 164, 180, 0.24);
    background: linear-gradient(105deg, rgba(139, 164, 180, 0.13), rgba(105, 132, 149, 0.06));
    box-shadow: inset 3px 0 0 rgba(139, 164, 180, 0.64);
}

.cd-alert-warning {
    color: #ffe8b4;
    border-color: rgba(230, 169, 71, 0.3);
    background: linear-gradient(105deg, rgba(230, 169, 71, 0.17), rgba(255, 204, 104, 0.07));
    box-shadow: inset 3px 0 0 rgba(230, 169, 71, 0.82);
}

.cd-alert-info {
    color: #d5f1ff;
    border-color: rgba(55, 160, 213, 0.28);
    background: linear-gradient(105deg, rgba(55, 160, 213, 0.16), rgba(53, 190, 190, 0.07));
    box-shadow: inset 3px 0 0 rgba(55, 160, 213, 0.8);
}

.cd-alert-light {
    color: #e8f2f8;
    border-color: rgba(218, 235, 244, 0.2);
    background: rgba(236, 247, 252, 0.08);
    box-shadow: inset 3px 0 0 rgba(218, 235, 244, 0.5);
}

.cd-alert-dark {
    color: #f1f6fa;
    border-color: rgba(7, 20, 34, 0.5);
    background: rgba(2, 12, 24, 0.72);
    box-shadow: inset 3px 0 0 rgba(74, 102, 124, 0.82);
}

.cd-alert-primary i,
.cd-alert-primary strong,
.cd-alert-primary span,
.cd-alert-primary a,
.cd-alert-secondary i,
.cd-alert-secondary strong,
.cd-alert-secondary span,
.cd-alert-secondary a,
.cd-alert-warning i,
.cd-alert-warning strong,
.cd-alert-warning span,
.cd-alert-warning a,
.cd-alert-info i,
.cd-alert-info strong,
.cd-alert-info span,
.cd-alert-info a,
.cd-alert-light i,
.cd-alert-light strong,
.cd-alert-light span,
.cd-alert-light a,
.cd-alert-dark i,
.cd-alert-dark strong,
.cd-alert-dark span,
.cd-alert-dark a {
    color: inherit;
}

html[data-theme="light"] .cd-alert-primary {
    color: #3e4f9d;
    border-color: rgba(91, 111, 216, 0.22);
    background: linear-gradient(105deg, rgba(91, 111, 216, 0.12), rgba(77, 135, 218, 0.05));
    box-shadow: inset 3px 0 0 rgba(91, 111, 216, 0.7);
}

html[data-theme="light"] .cd-alert-secondary {
    color: #516977;
    border-color: rgba(105, 132, 149, 0.2);
    background: linear-gradient(105deg, rgba(135, 160, 176, 0.12), rgba(111, 138, 154, 0.05));
    box-shadow: inset 3px 0 0 rgba(105, 132, 149, 0.62);
}

html[data-theme="light"] .cd-alert-warning {
    color: #765417;
    border-color: rgba(196, 137, 38, 0.24);
    background: linear-gradient(105deg, rgba(230, 169, 71, 0.16), rgba(255, 213, 120, 0.08));
    box-shadow: inset 3px 0 0 rgba(196, 137, 38, 0.76);
}

html[data-theme="light"] .cd-alert-info {
    color: #22617e;
    border-color: rgba(42, 137, 183, 0.22);
    background: linear-gradient(105deg, rgba(55, 160, 213, 0.13), rgba(53, 190, 190, 0.06));
    box-shadow: inset 3px 0 0 rgba(42, 137, 183, 0.72);
}

html[data-theme="light"] .cd-alert-light {
    color: #496272;
    border-color: rgba(86, 121, 143, 0.14);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 3px 0 0 rgba(117, 154, 176, 0.5);
}

html[data-theme="light"] .cd-alert-dark {
    color: #eef5f8;
    border-color: rgba(23, 52, 70, 0.24);
    background: linear-gradient(105deg, rgba(31, 61, 80, 0.94), rgba(19, 45, 64, 0.9));
    box-shadow: inset 3px 0 0 rgba(73, 119, 148, 0.86);
}

.cd-account-notice div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cd-account-notice span {
    color: #eab9c2;
}

.cd-readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--cd-border);
    font-size: 12px;
    font-weight: 750;
}

/* ==================== 05. Authentication and overlays ==================== */

.cd-auth-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

.cd-auth-body::before,
.cd-auth-body::after {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    content: "";
}

.cd-auth-body::before {
    top: -15rem;
    left: -10rem;
    background: #49d4f4;
}

.cd-auth-brand {
    display: flex;
    align-items: center;
}

.cd-auth-card {
    padding: clamp(25px, 6vw, 42px);
    animation: cd-rise-in 340ms ease both;
}

.cd-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.cd-auth-card .cd-button {
    width: 100%;
    margin-top: 3px;
}

.cd-auth-link {
    display: block;
    margin-top: 21px;
    font-weight: 700;
    text-align: center;
}

.cd-overlay {
    position: fixed;
    z-index: 35;
    inset: var(--cd-topbar-height) 0 0;
    display: none;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(3px);
}

@keyframes cd-rise-in {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

html.cd-theme-document::view-transition-old(root),
html.cd-theme-document::view-transition-new(root) {
    animation-duration: 180ms;
    animation-timing-function: ease-out;
}

.cd-pwa-refresh-button.is-refreshing i {
    animation: cd-pwa-refresh-spin 0.8s linear infinite;
}

@keyframes cd-pwa-refresh-spin {
    to { transform: rotate(360deg); }
}

.cd-profile-switch-dropdown {
    position: relative;
}

.cd-profile-switch-dropdown > summary {
    list-style: none;
}

.cd-profile-switch-dropdown > summary::-webkit-details-marker {
    display: none;
}

.cd-profile-switch-dropdown[open] > summary {
    border-color: rgba(45, 189, 187, 0.42);
    background: linear-gradient(145deg, rgba(20, 115, 230, 0.14), rgba(45, 189, 187, 0.08));
}

.cd-profile-switch-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    min-width: 280px;
    max-width: min(380px, calc(100vw - 20px));
    max-height: 420px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(106, 177, 221, 0.2);
    border-radius: 18px;
    background: rgba(5, 24, 40, 0.98);
    box-shadow: 0 28px 70px rgba(0, 9, 25, 0.42);
}

.cd-profile-switch-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    color: var(--cd-text) !important;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    white-space: normal;
    text-align: left;
    cursor: pointer;
}

.cd-profile-switch-option:hover,
.cd-profile-switch-option:focus {
    color: var(--cd-text) !important;
    background: linear-gradient(90deg, rgba(20, 115, 230, 0.16), rgba(45, 189, 187, 0.08));
    outline: 0;
}

.cd-profile-switch-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105, 183, 231, 0.15);
    border-radius: 9px;
    color: var(--cd-accent);
    background: rgba(255, 255, 255, 0.035);
}

.cd-profile-switch-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.cd-profile-switch-badges {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cd-profile-switch-option.is-current,
.cd-profile-switch-option[aria-disabled="true"] {
    opacity: 0.72;
    cursor: default;
}

html[data-theme="light"] .cd-profile-switch-menu {
    border-color: rgba(37, 101, 142, 0.16);
    background: rgba(248, 252, 255, 0.99);
    box-shadow: 0 22px 55px rgba(28, 67, 94, 0.18);
}

@media (max-width: 720px) {
    .cd-profile-switch-menu {
        position: fixed;
        top: calc(var(--cd-topbar-height, 66px) + 8px);
        right: 8px;
        left: 8px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: calc(100dvh - var(--cd-topbar-height, 66px) - 16px);
        margin: 0 auto;
    }
}

@media (max-width: 960px) {
    html.cd-theme-document .cd-menu-toggle {
        display: inline-flex;
    }

    html.cd-theme-document .cd-app-shell {
        display: block;
    }

    html.cd-theme-document .cd-sidebar {
        transform: translateX(-102%);
        transition: transform 190ms ease;
        box-shadow: 18px 0 50px rgba(0, 0, 0, 0.28);
    }

    html.cd-theme-document.cd-menu-open .cd-sidebar,
    html.cd-theme-document .cd-menu-open .cd-sidebar {
        transform: translateX(0);
    }

    html.cd-theme-document.cd-menu-open .cd-overlay,
    html.cd-theme-document .cd-menu-open .cd-overlay {
        display: block;
    }

    html.cd-theme-document .cd-main {
        width: 100%;
        padding-top: 34px;
    }
}

@media (max-width: 767px) {
    body.cd-body #container.cd-app-shell {
        display: block;
    }

    body.cd-body #column-left.cd-sidebar {
        width: var(--cd-sidebar-width);
        padding: 22px 16px;
        transform: translateX(-102%);
        transition: transform 190ms ease;
        box-shadow: 18px 0 50px rgba(0, 0, 0, 0.28);
    }

    body.cd-body.cd-menu-open #column-left.cd-sidebar {
        transform: translateX(0);
    }

    body.cd-body.cd-menu-open .cd-overlay {
        display: block;
    }
}

@media (max-width: 720px) {

    .cd-topbar {
        gap: 10px;
        padding: 0 14px;
    }

    .cd-account-button span {
        display: none;
    }

    .cd-account-button {
        width: 42px;
        padding: 0;
    }

    .cd-main {
        padding: 27px 16px 48px;
    }

    .cd-page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .cd-form-grid,
    .cd-department-row {
        grid-template-columns: 1fr;
    }

    .cd-department-row {
        gap: 11px;
    }

    .cd-department-name {
        min-height: auto;
    }

    .cd-form-section {
        padding: 20px 16px;
        border-radius: 17px;
    }

    .cd-auth-body {
        align-items: start;
        padding: 18px 14px;
    }

    .cd-auth-shell {
        margin-top: 7vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.cd-theme-document *,
    html.cd-theme-document *::before,
    html.cd-theme-document *::after,
    .cd-theme-scope,
    .cd-theme-scope *,
    .cd-theme-scope *::before,
    .cd-theme-scope *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 06. Themes, page banners and visual refinements ==================== */
html.cd-theme-document body,
body.cd-body {
    position: relative;
    isolation: isolate;
}

html.cd-theme-document body::before,
html.cd-theme-document body::after,
body.cd-body::before,
body.cd-body::after {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
}

html.cd-theme-document body::before,
body.cd-body::before {
    z-index: -2;
    background-image:
        linear-gradient(rgba(118, 181, 223, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 181, 223, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
}

html.cd-theme-document body::after,
body.cd-body::after {
    z-index: -1;
    background:
        radial-gradient(circle at 28% 40%, rgba(77, 169, 255, 0.055), transparent 20rem),
        radial-gradient(circle at 70% 28%, rgba(45, 188, 187, 0.045), transparent 18rem);
}

.cd-topbar {
    border-bottom-color: rgba(101, 167, 211, 0.18);
}

.cd-topbar::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 2%, rgba(77, 169, 255, 0.52) 28%, rgba(45, 188, 187, 0.38) 72%, transparent 98%);
    content: "";
    opacity: 0.75;
}

.cd-account-button,
.cd-icon-button {
    border-color: rgba(119, 174, 211, 0.17);
}

.cd-account-button:hover,
.cd-icon-button:hover {
    border-color: rgba(77, 169, 255, 0.4);
}

.cd-sidebar {
    border-right-color: rgba(107, 171, 215, 0.16);
}

.cd-nav {
    z-index: 1;
}

.cd-nav-item {
    color: #9eb5c8;
}

.cd-nav-item:hover {
    border-color: rgba(111, 175, 218, 0.15);
    background: linear-gradient(90deg, rgba(77, 169, 255, 0.075), rgba(45, 188, 187, 0.025));
}

.cd-nav-item.is-active {
    border-color: rgba(77, 169, 255, 0.29);
}

.cd-main::before {
    position: absolute;
    z-index: -1;
    top: 22px;
    right: clamp(18px, 5vw, 90px);
    width: clamp(220px, 26vw, 390px);
    height: clamp(220px, 26vw, 390px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 188, 187, 0.075), rgba(77, 169, 255, 0.035) 42%, transparent 70%);
    content: "";
    filter: blur(2px);
}

.cd-page-heading {
    position: relative;
    border: 1px solid transparent;
}

.cd-page-heading::before {
    position: absolute;
    z-index: -1;
    content: "";
}

.cd-page-heading::after {
    position: absolute;
    z-index: -1;
    background-image: repeating-linear-gradient(90deg, rgba(118, 190, 233, 0.08) 0, rgba(118, 190, 233, 0.08) 1px, transparent 1px, transparent 18px);
    content: "";
}

.cd-page-heading h1,
.cd-auth-heading h1 {
    color: #f8fbff;
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

.cd-page-heading p,
.cd-auth-heading p {
    color: #98afc2;
}

.cd-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    backdrop-filter: blur(18px);
}

.cd-dashboard-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cd-dashboard-grid {
    position: absolute;
    right: -8%;
    bottom: -25%;
    left: -8%;
    height: 74%;
    transform: perspective(500px) rotateX(61deg);
    transform-origin: bottom;
    background-image:
        linear-gradient(rgba(77, 169, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 188, 187, 0.11) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 91%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 91%);
}

.cd-dashboard-core::before,
.cd-dashboard-core::after {
    position: absolute;
    inset: -18px;
    border: 1px solid rgba(77, 169, 255, 0.15);
    border-radius: 50%;
    content: "";
}

.cd-dashboard-core::after {
    inset: -36px;
    border-color: rgba(45, 188, 187, 0.11);
}

.cd-dashboard-beam {
    position: absolute;
    top: 50%;
    width: min(72vw, 860px);
    height: 1px;
    transform: translate(-50%, -50%) rotate(-8deg);
    background: linear-gradient(90deg, transparent, rgba(77, 169, 255, 0.5), rgba(45, 188, 187, 0.4), transparent);
    box-shadow: 0 0 20px rgba(77, 169, 255, 0.16);
}

.cd-dashboard-node {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(171, 224, 255, 0.58);
    border-radius: 50%;
}

.cd-dashboard-node-one {
    top: 24%;
    left: 22%;
}

.cd-dashboard-node-two {
    top: 68%;
    right: 19%;
}

.cd-dashboard-node-three {
    right: 31%;
    bottom: 17%;
    width: 6px;
    height: 6px;
}

.cd-placeholder-card {
    isolation: isolate;
    min-height: 330px;
}

.cd-placeholder-card::before,
.cd-placeholder-card::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(77, 169, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.cd-placeholder-card::before {
    width: 210px;
    height: 210px;
    box-shadow: 0 0 0 34px rgba(77, 169, 255, 0.018), 0 0 0 68px rgba(45, 188, 187, 0.014);
}

.cd-placeholder-card::after {
    width: 105px;
    height: 105px;
    background: radial-gradient(circle, rgba(77, 169, 255, 0.16), rgba(45, 188, 187, 0.035) 60%, transparent 72%);
}


.cd-form-section::before {
    position: absolute;
    top: 0;
    left: clamp(24px, 4vw, 52px);
    width: min(230px, 35%);
    height: 1px;
    background: linear-gradient(90deg, rgba(77, 169, 255, 0.8), rgba(45, 188, 187, 0.35), transparent);
    content: "";
}


.cd-field > span {
    color: #b6c9d8;
}

.cd-field input,
.cd-field select {
    border-color: rgba(121, 174, 210, 0.17);
    background: linear-gradient(145deg, rgba(2, 13, 23, 0.62), rgba(7, 24, 38, 0.52));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.cd-field input:not([readonly]):hover,
.cd-field select:not(:disabled):hover {
    border-color: rgba(77, 169, 255, 0.36);
}

.cd-field input:not([readonly]):focus,
.cd-field select:not(:disabled):focus {
    border-color: var(--cd-accent);
    background: rgba(4, 18, 31, 0.82);
    box-shadow: 0 0 0 4px rgba(77, 169, 255, 0.1), 0 12px 30px rgba(0, 8, 20, 0.16);
}

.cd-field input[readonly],
.cd-field select:disabled {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.009));
}

.cd-department-row {
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid rgba(121, 174, 210, 0.1);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.009));
}

.cd-button-primary,
.cd-button-secondary,
.cd-button.is-danger {
    position: relative;
    overflow: hidden;
}

.cd-button-primary::before,
.cd-button-secondary::before,
.cd-button.is-danger::before {
    position: absolute;
    top: -80%;
    left: -50%;
    width: 32%;
    height: 260%;
    transform: rotate(22deg);
    background: rgba(255, 255, 255, 0.34);
    content: "";
    transition: left 300ms ease;
}

.cd-button-primary:hover::before,
.cd-button-secondary:not(:disabled):hover::before,
.cd-button-secondary:not(:disabled):focus-visible::before,
.cd-button.is-danger:not(:disabled):hover::before,
.cd-button.is-danger:not(:disabled):focus-visible::before {
    left: 125%;
}

.cd-readonly-badge {
    border-color: rgba(45, 188, 187, 0.19);
    color: #9fc8ca;
    background: rgba(45, 188, 187, 0.06);
}

.cd-auth-body::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    filter: none;
    -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 82%);
}

.cd-auth-body::after {
    right: -13rem;
    bottom: -16rem;
    width: 35rem;
    height: 35rem;
    border: 1px solid rgba(45, 188, 187, 0.1);
    background: radial-gradient(circle, rgba(45, 188, 187, 0.16), transparent 67%);
    box-shadow: 0 0 0 48px rgba(45, 188, 187, 0.02), 0 0 0 96px rgba(77, 169, 255, 0.014);
    filter: blur(0);
    opacity: 1;
}

.cd-auth-brand {
    letter-spacing: -0.015em;
}

.cd-auth-card {
    position: relative;
}

.cd-auth-card::before {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.cd-auth-card::after {
    position: absolute;
    top: 0;
    content: "";
}

.cd-auth-card > * {
    position: relative;
    z-index: 1;
}

.cd-auth-link {
    transition: color 150ms ease, text-shadow 150ms ease;
}

.cd-auth-link:hover {
    text-shadow: 0 0 20px rgba(77, 169, 255, 0.28);
}

@media (max-width: 960px) {
    .cd-page-heading {
        padding: 26px 24px;
    }
}

@media (max-width: 720px) {
    html.cd-theme-document body::before {
        background-size: 42px 42px;
    }

    .cd-page-heading::before {
        top: -170px;
        right: -145px;
    }

    .cd-page-heading::after {
        right: -34px;
        bottom: 9px;
    }

    .cd-placeholder-card {
        min-height: 300px;
    }

}
html.cd-theme-document body {
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at 9% -5%, rgba(44, 142, 238, 0.34), transparent 34rem),
        radial-gradient(ellipse at 93% 2%, rgba(45, 188, 187, 0.24), transparent 31rem),
        radial-gradient(ellipse at 72% 96%, rgba(20, 115, 230, 0.16), transparent 38rem),
        linear-gradient(143deg, #03101d 0%, #061a2b 45%, #041421 72%, #03101b 100%);
}

html.cd-theme-document h1,
html.cd-theme-document h2,
html.cd-theme-document h3,
.cd-theme-scope h1,
.cd-theme-scope h2,
.cd-theme-scope h3,
.cd-brand,
.cd-nav-item,
.cd-button,
.cd-readonly-badge,
.cd-auth-brand {
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.cd-topbar {
    height: 78px;
    padding-right: clamp(18px, 3vw, 22px);
    padding-left: clamp(18px, 3vw, 22px);
}

.cd-brand {
    min-width: 0;
}

.cd-brand-logo {
    display: block;
    object-fit: contain;
}

.cd-brand-logo-icon {
    width: 38px;
    height: 38px;
    display: none;
}

.cd-sidebar {
    top: 78px;
}

.cd-nav-item {
    min-height: 50px;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.cd-nav-item.is-active {
    background:
        linear-gradient(105deg, rgba(77, 169, 255, 0.22), rgba(45, 188, 187, 0.085)) padding-box,
        linear-gradient(125deg, rgba(91, 184, 255, 0.52), rgba(45, 188, 187, 0.16), transparent 75%) border-box;
    box-shadow: 0 15px 34px rgba(0, 33, 73, 0.25), inset 3px 0 0 var(--cd-primary-bright);
}

.cd-app-shell {
    padding-top: 78px;
}

.cd-page-heading h1,
.cd-auth-heading h1 {
    font-family: "Sora", "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.cd-card {
    border-radius: 36px 36px 36px 14px;
    box-shadow: var(--cd-shadow);
}

.cd-form-section {
    padding: clamp(26px, 3.4vw, 40px);
}

.cd-form-section::after {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 48px;
    height: 28px;
    border: 0;
    border-right: 1px solid rgba(111, 179, 220, 0.22);
    border-bottom: 1px solid rgba(118, 93, 206, 0.24);
    border-radius: 0 0 13px 0;
    background: radial-gradient(circle at 100% 100%, rgba(112, 93, 212, 0.12), transparent 68%);
    content: "";
    opacity: 0.72;
    pointer-events: none;
}

html[data-theme="light"] .cd-form-section::after {
    border-right-color: rgba(53, 131, 176, 0.18);
    border-bottom-color: rgba(100, 83, 190, 0.18);
    background: radial-gradient(circle at 100% 100%, rgba(103, 86, 196, 0.08), transparent 68%);
}


.cd-field input,
.cd-field select,
.cd-radio-group label {
    border-radius: 15px 15px 15px 7px;
}

.cd-button {
    min-height: 48px;
    padding-right: 22px;
    padding-left: 22px;
    letter-spacing: -0.015em;
}

.cd-form-actions {
    z-index: 2;
}

.cd-form-actions::before,
.cd-form-actions::after {
    position: absolute;
    width: 24px;
    height: 24px;
    content: "";
    pointer-events: none;
}

.cd-form-actions::before {
    top: 14px;
    left: -24px;
    border-bottom-right-radius: 24px;
    box-shadow: 8px 8px 0 8px #04111e;
}

.cd-form-actions::after {
    top: -24px;
    right: 0;
    border-bottom-right-radius: 24px;
    box-shadow: 8px 8px 0 8px #04111e;
}

.cd-dashboard-base {
    min-height: clamp(440px, 61vh, 660px);
    border-radius: 46px 46px 46px 16px;
    background:
        radial-gradient(circle at 78% 40%, rgba(45, 188, 187, 0.14), transparent 26rem) padding-box,
        radial-gradient(circle at 28% 70%, rgba(77, 169, 255, 0.17), transparent 27rem) padding-box,
        linear-gradient(142deg, rgba(7, 29, 48, 0.98), rgba(3, 17, 30, 0.95)) padding-box,
        linear-gradient(130deg, rgba(99, 192, 255, 0.5), rgba(45, 188, 187, 0.2), rgba(151, 198, 228, 0.055)) border-box;
    box-shadow: 0 42px 110px rgba(0, 12, 31, 0.46), 0 20px 48px rgba(20, 115, 230, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-dashboard-map {
    background-image:
        linear-gradient(90deg, rgba(4, 20, 34, 0.82) 0%, rgba(4, 20, 34, 0.2) 36%, rgba(4, 20, 34, 0.04) 72%),
        linear-gradient(180deg, rgba(4, 20, 34, 0.28), rgba(4, 20, 34, 0.58)),
        url("../javascript/libraries/regantis-assets@2026-07-31/files/images/map2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cd-dashboard-grid {
    opacity: 0.6;
}

.cd-dashboard-beam {
    left: 42%;
}

.cd-placeholder-card {
    border-radius: 46px 46px 46px 16px;
}

.cd-auth-shell {
    width: min(100%, 520px);
    display: flex;
    flex-flow: column;
}

.cd-auth-brand {
    gap: 14px;
    color: #aebfcd;
    font-size: 13px;
    font-weight: 600;
}

.cd-auth-card-centered {
    text-align: center;
}

.cd-auth-card-centered .cd-button {
    margin-top: 18px;
}

.cd-alert,
.cd-readonly-badge {
    border-radius: 20px 20px 20px 8px;
}

@media (max-width: 960px) {
    :root {
        --cd-topbar-height: 72px;
    }

    .cd-topbar {
        height: 72px;
    }

    .cd-sidebar {
        top: 72px;
    }

    .cd-app-shell {
        padding-top: 72px;
    }

    .cd-dashboard-map {
        right: -9%;
        width: 92%;
        opacity: 0.58;
    }

    .cd-dashboard-core {
        left: 40%;
    }
}

@media (max-width: 720px) {
    :root {
        --cd-topbar-height: 66px;
    }

    .cd-topbar {
        height: var(--cd-topbar-height);
    }

    .cd-sidebar {
        top: var(--cd-topbar-height);
    }

    .cd-app-shell {
        padding-top: var(--cd-topbar-height);
    }

    .cd-brand-logo-full {
        display: none;
    }

    .cd-page-heading,
    .cd-card,
    .cd-dashboard-base,
    .cd-placeholder-card,
    .cd-auth-card {
        border-radius: 28px 28px 28px 12px;
    }

    .cd-dashboard-base {
        min-height: 430px;
    }

    .cd-dashboard-map {
        opacity: 0.48;
    }

    .cd-dashboard-core {
        left: 50%;
        top: 43%;
    }

    .cd-form-actions {
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .cd-form-actions::before,
    .cd-form-actions::after {
        display: none;
    }

    .cd-form-actions .cd-button {
        width: 100%;
    }
}
html.cd-theme-document[data-theme="dark"] {
    color-scheme: dark;
}

html.cd-theme-document[data-theme="light"] {
    color-scheme: light;
}

html.cd-theme-document body,
.cd-topbar,
.cd-sidebar,
.cd-card,
.cd-page-heading,
.cd-account-button,
.cd-icon-button,
.cd-field input,
.cd-field select,
.cd-radio-group label,
.cd-theme-menu {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html.cd-theme-document h1,
html.cd-theme-document h2,
html.cd-theme-document h3,
.cd-theme-scope h1,
.cd-theme-scope h2,
.cd-theme-scope h3,
.cd-brand,
.cd-nav-item,
.cd-readonly-badge,
.cd-auth-brand {
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.cd-button {
    font-weight: 800;
}

.cd-brand {
    gap: 0;
}

.cd-brand-logo-full {
    width: 172px;
    height: 46px;
}

.cd-brand-logo-light {
    display: none;
}

html[data-theme="light"] .cd-brand-logo-dark {
    display: none;
}

html[data-theme="light"] .cd-brand-logo-light {
    display: block;
}

.cd-form-actions {
    position: static;
    width: 100%;
    margin-top: 30px;
    margin-left: 0;
    padding: 0;
    justify-content: flex-end;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cd-form-actions::before,
.cd-form-actions::after {
    display: none;
}

.cd-page-heading h1 {
    margin: 0 0 12px;
}

.cd-page-heading p {
    line-height: 1.7;
}

.cd-page-heading-actions {
    margin-left: auto;
}

.cd-page-heading-accent {
    position: absolute;
    z-index: 2;
    right: 54px;
    bottom: 34px;
    width: 170px;
    height: 54px;
    border: 1px solid rgba(92, 187, 249, 0.17);
    border-radius: 999px 999px 999px 18px;
    background: linear-gradient(90deg, rgba(20, 115, 230, 0.15), rgba(45, 189, 187, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cd-dashboard-heading::before {
    box-shadow: 0 0 0 48px rgba(77, 169, 255, 0.03), 0 0 0 94px rgba(45, 189, 187, 0.016);
}

.cd-page-heading-visual {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: clamp(28px, 7vw, 110px);
    width: clamp(190px, 24vw, 340px);
    height: clamp(150px, 18vw, 250px);
    transform: translateY(-50%);
    pointer-events: none;
}

.cd-theme-switcher {
    position: relative;
}

.cd-theme-switcher > summary {
    list-style: none;
}

.cd-theme-switcher > summary::-webkit-details-marker {
    display: none;
}

.cd-theme-switcher[open] > summary {
    border-color: rgba(45, 189, 187, 0.42);
    background: linear-gradient(145deg, rgba(20, 115, 230, 0.14), rgba(45, 189, 187, 0.08));
}

.cd-theme-switcher.is-saving {
    pointer-events: none;
    opacity: 0.72;
}

.cd-theme-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 12px);
    right: 0;
    width: 190px;
    padding: 8px;
    border: 1px solid rgba(106, 177, 221, 0.2);
    border-radius: 22px 22px 22px 10px;
    background: rgba(5, 24, 40, 0.96);
    box-shadow: 0 28px 70px rgba(0, 9, 25, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    animation: cd-theme-menu-in 150ms ease both;
}

.cd-theme-option {
    width: 100%;
    min-height: 45px;
    display: grid;
    grid-template-columns: 32px 1fr 18px;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 0;
    border-radius: 14px 14px 14px 6px;
    color: var(--cd-muted);
    background: transparent;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.cd-theme-option:hover {
    color: var(--cd-text);
    background: linear-gradient(90deg, rgba(20, 115, 230, 0.11), rgba(45, 189, 187, 0.06));
}

.cd-theme-option[aria-checked="true"] {
    color: var(--cd-text);
    background: linear-gradient(90deg, rgba(20, 115, 230, 0.17), rgba(45, 189, 187, 0.09));
}

.cd-theme-option-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105, 183, 231, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.cd-theme-check {
    color: var(--cd-theme-teal);
    opacity: 0;
}

.cd-theme-option[aria-checked="true"] .cd-theme-check {
    opacity: 1;
}

.cd-dashboard-emblem {
    position: absolute;
    top: 50%;
    left: 31%;
    width: 330px;
    height: 330px;
    transform: translate(-50%, -50%);
}

.cd-dashboard-emblem-ring,
.cd-dashboard-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cd-dashboard-emblem-ring {
    border: 2px solid rgba(45, 189, 187, 0.68);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(45, 189, 187, 0.22), inset 0 0 22px rgba(45, 189, 187, 0.08);
}

.cd-dashboard-emblem-ring::before,
.cd-dashboard-emblem-ring::after {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #2dbdbb;
    box-shadow: 0 0 20px rgba(45, 189, 187, 0.85);
    content: "";
}

.cd-dashboard-emblem-ring::before {
    top: -7px;
    left: 50%;
}

.cd-dashboard-emblem-ring::after {
    right: -7px;
    bottom: 42%;
}

.cd-dashboard-emblem-ring-one {
    width: 162px;
    height: 162px;
    animation: cd-regantis-ring-spin 13s linear infinite;
}

.cd-dashboard-emblem-ring-two {
    width: 232px;
    height: 232px;
    border-color: rgba(45, 189, 187, 0.46);
    animation: cd-regantis-ring-spin-reverse 18s linear infinite;
}

.cd-dashboard-emblem-ring-three {
    width: 314px;
    height: 314px;
    border-color: rgba(45, 189, 187, 0.28);
    animation: cd-regantis-ring-spin-pulse 19s linear infinite;
}

.cd-dashboard-emblem-ring-one::before,
.cd-dashboard-emblem-ring-three::before {
    transform: translateX(-50%);
}

.cd-dashboard-emblem-ring-one::after,
.cd-dashboard-emblem-ring-three::after {
    top: 50%;
    right: -7px;
    bottom: auto;
    transform: translateY(-50%);
}

.cd-dashboard-core {
    z-index: 5;
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    animation: none;
}

.cd-dashboard-core::before,
.cd-dashboard-core::after {
    display: none;
}

.cd-dashboard-core img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 220, 112, 0.86)) drop-shadow(0 0 28px rgba(45, 189, 187, 0.54));
    animation: cd-regantis-logo-spin 11s linear infinite;
}

.cd-dashboard-node {
    background: var(--cd-theme-teal);
    box-shadow: 0 0 0 8px rgba(45, 189, 187, 0.07), 0 0 24px rgba(45, 189, 187, 0.72);
    animation: cd-regantis-node 2.7s ease-in-out infinite;
}

.cd-dashboard-node-two {
    background: var(--cd-theme-yellow);
    box-shadow: 0 0 0 8px rgba(253, 184, 22, 0.07), 0 0 24px rgba(253, 184, 22, 0.62);
    animation-delay: -0.8s;
}

.cd-dashboard-node-three {
    animation-delay: -1.5s;
}

.cd-auth-brand {
    justify-content: center;
}

.cd-auth-heading {
    margin-bottom: 30px;
    text-align: center;
}

.cd-auth-heading p {
    margin-right: auto;
    margin-left: auto;
    line-height: 1.7;
}

html.cd-theme-document[data-theme="light"] body:not(.cd-auth-body) {
    color: var(--cd-text);
}

html.cd-theme-document[data-theme="light"] body::before,
html[data-theme="light"] body.cd-body::before {
    background-image:
        linear-gradient(rgba(39, 105, 145, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 105, 145, 0.055) 1px, transparent 1px);
}

html[data-theme="light"] .cd-topbar {
    border-bottom-color: rgba(35, 103, 145, 0.13);
}

html[data-theme="light"] .cd-sidebar {
    border-right-color: rgba(35, 103, 145, 0.12);
}

html[data-theme="light"] .cd-nav-item {
    color: #637f92;
}

html[data-theme="light"] .cd-nav-item:hover {
    color: #17384e;
    border-color: rgba(20, 115, 230, 0.13);
    background: linear-gradient(90deg, rgba(20, 115, 230, 0.08), rgba(45, 189, 187, 0.04));
}

html[data-theme="light"] .cd-nav-item.is-active {
    color: #113954;
    border-color: rgba(20, 115, 230, 0.21);
    background: linear-gradient(100deg, rgba(20, 115, 230, 0.14), rgba(45, 189, 187, 0.07));
    box-shadow: 0 15px 34px rgba(45, 101, 137, 0.1), inset 3px 0 0 var(--cd-primary);
}

html[data-theme="light"] .cd-account-button,
html[data-theme="light"] .cd-icon-button {
    color: #17384e;
    border-color: rgba(45, 101, 137, 0.13);
}

html[data-theme="light"] .cd-page-heading h1,
html[data-theme="light"] .cd-auth-heading h1 {
    text-shadow: none;
}

html[data-theme="light"] .cd-card {
    box-shadow: var(--cd-shadow);
}

html[data-theme="light"] .cd-dashboard-base {
    background:
        radial-gradient(circle at 78% 40%, rgba(45, 189, 187, 0.1), transparent 26rem) padding-box,
        radial-gradient(circle at 28% 70%, rgba(20, 115, 230, 0.1), transparent 27rem) padding-box,
        linear-gradient(142deg, rgba(250, 254, 255, 0.98), rgba(232, 244, 250, 0.94)) padding-box,
        linear-gradient(130deg, rgba(20, 115, 230, 0.3), rgba(45, 189, 187, 0.16), rgba(151, 198, 228, 0.05)) border-box;
    box-shadow: 0 42px 110px rgba(42, 91, 121, 0.14), 0 20px 48px rgba(20, 115, 230, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .cd-dashboard-map {
    background-image:
        linear-gradient(90deg, rgba(239, 248, 252, 0.9) 0%, rgba(239, 248, 252, 0.22) 38%, rgba(239, 248, 252, 0.04) 72%),
        linear-gradient(180deg, rgba(239, 248, 252, 0.12), rgba(229, 242, 248, 0.5)),
        url("../javascript/libraries/regantis-assets@2026-07-31/files/images/map2.png");
    box-shadow:none!important;
}

html[data-theme="light"] .cd-field > span,
html[data-theme="light"] .cd-check-field,
html[data-theme="light"] .cd-department-name {
    color: #314f62;
}

html[data-theme="light"] .cd-field input,
html[data-theme="light"] .cd-field select,
html[data-theme="light"] .cd-radio-group label {
    color: #17384e;
    border-color: rgba(38, 104, 145, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .cd-field input[readonly],
html[data-theme="light"] .cd-field select:disabled {
    color: #70889a;
    background: rgba(233, 243, 248, 0.8);
}

html[data-theme="light"] .cd-theme-menu {
    border-color: rgba(35, 103, 145, 0.14);
    background: rgba(250, 254, 255, 0.97);
    box-shadow: 0 28px 70px rgba(42, 91, 121, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .cd-theme-option-icon {
    background: rgba(20, 115, 230, 0.05);
}

html[data-theme="light"] .cd-readonly-badge {
    color: #5e788a;
    background: rgba(255, 255, 255, 0.62);
}

@keyframes cd-theme-menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cd-regantis-ring-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes cd-regantis-ring-spin-reverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes cd-regantis-ring-spin-pulse {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.96); opacity: 0.62; }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.04); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(0.96); opacity: 0.62; }
}

@keyframes cd-regantis-logo-spin {
    from {
        transform: rotate(0deg) scale(0.96);
    }
    50% {
        transform: rotate(180deg) scale(1.06);
    }
    to {
        transform: rotate(360deg) scale(0.96);
    }
}

@keyframes cd-regantis-node {
    0%, 100% {
        transform: scale(0.78);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

@media (max-width: 960px) {
    .cd-page-heading-copy {
        max-width: 66%;
    }

    .cd-page-heading-visual {
        right: 24px;
        width: 260px;
    }

    .cd-dashboard-emblem {
        left: 40%;
    }
}

@media (max-width: 720px) {
    .cd-brand-logo-full,
    html[data-theme="light"] .cd-brand-logo-light {
        display: none;
    }

    .cd-brand-logo-icon {
        display: block;
        width: 42px;
        height: 42px;
    }

    .cd-page-heading-copy {
        max-width: 100%;
    }

    .cd-page-heading-visual,
    .cd-page-heading-accent {
        opacity: 0.26;
    }

    .cd-page-heading-visual {
        right: -62px;
        width: 220px;
    }

    .cd-page-heading-actions {
        position: absolute;
    }

    .cd-dashboard-emblem {
        top: 43%;
        left: 50%;
        width: 270px;
        height: 270px;
    }

    .cd-dashboard-emblem-ring-one {
        width: 136px;
        height: 136px;
    }

    .cd-dashboard-emblem-ring-two {
        width: 194px;
        height: 194px;
    }

    .cd-dashboard-emblem-ring-three {
        width: 258px;
        height: 258px;
    }

    .cd-dashboard-core {
        width: 78px;
        height: 78px;
    }

    .cd-dashboard-core img {
        width: 68px;
        height: 68px;
    }

    .cd-form-actions {
        margin-top: 24px;
    }

    .cd-theme-menu {
        position: fixed;
        top: calc(var(--cd-topbar-height) - 2px);
        right: 12px;
        width: min(210px, calc(100vw - 24px));
    }

    .cd-auth-brand-logo {
        width: 168px;
        height: 46px;
    }
}

.cd-topbar {
    overflow: visible;
}
:root {
    --cd-nav-indicator-y: 0px;
    --cd-nav-indicator-height: 50px;
    --cd-nav-indicator-opacity: 0;
}

html.cd-theme-document body:not(.cd-auth-body),
body.cd-body:not(.cd-auth-body) {
    background:
        radial-gradient(ellipse at 4% -8%, rgba(130, 88, 200, 0.19), transparent 33rem),
        radial-gradient(ellipse at 48% -18%, rgba(44, 132, 200, 0.19), transparent 40rem),
        radial-gradient(ellipse at 101% 18%, rgba(45, 189, 187, 0.14), transparent 32rem),
        linear-gradient(143deg, #040e1a 0%, #07182a 48%, #04101d 100%);
}

.cd-button,
button.cd-button,
a.cd-button,
input.cd-button {
    border-radius: 999px !important;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif !important;
}

.cd-button-primary {
    border-color: transparent;
    background:
        linear-gradient(104deg, #8258c8 0%, #496fc9 38%, #2c84c8 70%, #2dbdbb 116%) padding-box,
        linear-gradient(104deg, rgba(184, 143, 255, 0.9), rgba(82, 187, 255, 0.78), rgba(45, 189, 187, 0.6)) border-box;
    box-shadow: 0 16px 38px rgba(70, 94, 191, 0.28), 0 8px 24px rgba(44, 132, 200, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.cd-button-primary:hover {
    box-shadow: 0 20px 46px rgba(100, 78, 190, 0.34), 0 10px 28px rgba(44, 132, 200, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cd-topbar {
    background:
        radial-gradient(circle at 22% -190%, rgba(130, 88, 200, 0.35), transparent 28rem),
        radial-gradient(circle at 78% -170%, rgba(44, 132, 200, 0.35), transparent 30rem),
        linear-gradient(100deg, rgba(3, 15, 29, 0.96), rgba(6, 28, 47, 0.92));
    box-shadow: 0 18px 54px rgba(0, 8, 23, 0.34), 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.cd-sidebar {
    background:
        radial-gradient(circle at -24% 5%, rgba(130, 88, 200, 0.2), transparent 20rem),
        radial-gradient(circle at 118% 42%, rgba(44, 132, 200, 0.18), transparent 19rem),
        radial-gradient(circle at 120% 92%, rgba(45, 189, 187, 0.14), transparent 18rem),
        linear-gradient(180deg, rgba(5, 21, 38, 0.96), rgba(3, 15, 28, 0.94));
    box-shadow: 18px 0 58px rgba(0, 8, 24, 0.18);
}

.cd-nav {
    --cd-nav-indicator-x: 4px;
    --cd-nav-indicator-y: 0px;
    --cd-nav-indicator-width: calc(100% - 4px);
    --cd-nav-indicator-height: 50px;
    --cd-nav-indicator-opacity: 0;
    position: relative;
    isolation: isolate;
}

.cd-nav::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: var(--cd-nav-indicator-width);
    height: var(--cd-nav-indicator-height);
    transform: translate3d(var(--cd-nav-indicator-x), var(--cd-nav-indicator-y), 0);
    border: 1px solid transparent;
    background:
        linear-gradient(105deg, rgba(130, 88, 200, 0.23), rgba(44, 132, 200, 0.22) 58%, rgba(45, 189, 187, 0.1)) padding-box,
        linear-gradient(125deg, rgba(159, 116, 229, 0.65), rgba(76, 162, 227, 0.5), rgba(45, 189, 187, 0.22)) border-box;
    box-shadow: 0 16px 36px rgba(25, 26, 74, 0.3), inset 3px 0 0 #5ba7e0, inset 0 1px 0 rgba(255, 255, 255, 0.08);
    content: "";
    opacity: var(--cd-nav-indicator-opacity);
    pointer-events: none;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), height 220ms ease, opacity 140ms ease;
    will-change: transform, height;
}

.cd-nav.is-indicator-instant::before {
    transition: none;
}

.cd-nav-item,
.cd-logout-form {
    position: relative;
    z-index: 1;
}

.cd-nav.has-moving-indicator .cd-nav-item.is-active {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.cd-page-heading::before {
    border-color: rgba(108, 164, 220, 0.14);
}

.cd-page-heading::after {
    opacity: 1;
}

.cd-page-heading-copy {
    max-width: min(720px, 62%);
}

.cd-page-heading h1 {
    max-width: 820px;
    text-wrap: balance;
}

.cd-page-heading-media-icon {
    font-size: 18px;
}

.cd-dashboard-heading::after {
    border-color: rgba(116, 180, 227, 0.1);
}

.cd-card {
    background:
        radial-gradient(circle at 3% -8%, rgba(130, 88, 200, 0.08), transparent 23rem) padding-box,
        radial-gradient(circle at 96% 0%, rgba(44, 132, 200, 0.08), transparent 22rem) padding-box,
        linear-gradient(145deg, rgba(10, 29, 48, 0.93), rgba(6, 21, 37, 0.9)) padding-box,
        linear-gradient(128deg, rgba(130, 88, 200, 0.26), rgba(44, 132, 200, 0.3), rgba(45, 189, 187, 0.12)) border-box;
}

html[data-theme="light"] .cd-sidebar {
    box-shadow: 18px 0 54px rgba(53, 78, 111, 0.07);
}

html[data-theme="light"] .cd-page-heading h1,
html[data-theme="light"] .cd-dashboard-heading h1 {
    color: #102f48;
}

html[data-theme="light"] .cd-card {
    background:
        radial-gradient(circle at 3% -8%, rgba(130, 88, 200, 0.05), transparent 23rem) padding-box,
        radial-gradient(circle at 96% 0%, rgba(44, 132, 200, 0.06), transparent 22rem) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(239, 247, 252, 0.93)) padding-box,
        linear-gradient(128deg, rgba(130, 88, 200, 0.2), rgba(44, 132, 200, 0.23), rgba(45, 189, 187, 0.11)) border-box;
}

@media (max-width: 1080px) {

    .cd-dashboard-heading h1 {
        font-size: clamp(30px, 4vw, 38px);
    }

    .cd-page-heading-with-media {
        padding-right: clamp(250px, 36vw, 390px);
    }

    .cd-page-heading-media {
        width: clamp(210px, 31vw, 330px);
    }

    .cd-page-heading-actions {
        right: clamp(235px, 34vw, 360px);
    }
}

@media (max-width: 820px) {
    .cd-dashboard-heading {
        align-content: start;
    }

    .cd-dashboard-heading .cd-page-heading-copy {
        max-width: 100%;
    }

    .cd-page-heading-with-media {
        min-height: 360px;
        align-items: flex-start;
        padding-right: clamp(28px, 6vw, 48px);
        padding-bottom: 182px;
    }

    .cd-page-heading-with-media .cd-page-heading-copy {
        max-width: 100%;
    }

    .cd-page-heading-media {
        top: auto;
        right: 22px;
        bottom: 22px;
        left: 22px;
        width: auto;
        height: 142px;
    }

    .cd-page-heading-actions {
        right: 34px;
        bottom: 184px;
    }
}

@media (max-width: 720px) {

    .cd-page-heading-with-media {
        min-height: 350px;
        padding-bottom: 170px;
    }

    .cd-page-heading-media {
        right: 18px;
        bottom: 18px;
        left: 18px;
        height: 132px;
    }

    .cd-page-heading-actions {
        right: 25px;
        bottom: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-nav::before {
        transition: none !important;
    }
}

:root {
    --cd-transition-bg: #04101d;
}

.cd-nav::after {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    transform: translate3d(calc(var(--cd-nav-indicator-x) + var(--cd-nav-indicator-width) - 19px), calc(var(--cd-nav-indicator-y) + (var(--cd-nav-indicator-height) - 6px) / 2), 0);
    border-radius: 50%;
    background: var(--cd-regantis-teal);
    box-shadow: 0 0 16px rgba(45, 189, 187, 0.82);
    opacity: var(--cd-nav-indicator-opacity);
    pointer-events: none;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 140ms ease;
    will-change: transform;
}

.cd-nav.is-indicator-instant::after {
    transition: none;
}

html[data-theme="light"] {
    --cd-transition-bg: #edf3fb;
}

html[data-theme="light"] .cd-nav.has-moving-indicator .cd-nav-item.is-active {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html.cd-theme-document::view-transition {
    background: var(--cd-transition-bg);
}


.cd-main {
    position: relative;
    isolation: isolate;
}

::view-transition-group(cd-topbar),
::view-transition-group(cd-sidebar) {
    z-index: 20;
    animation: none !important;
}

::view-transition-group(cd-topbar) {
    z-index: 30;
}

::view-transition-old(cd-topbar),
::view-transition-new(cd-topbar),
::view-transition-old(cd-sidebar),
::view-transition-new(cd-sidebar) {
    animation: none !important;
    opacity: 1;
    mix-blend-mode: normal;
}

::view-transition-group(cd-main) {
    z-index: 1;
    overflow: hidden;
    animation-duration: 320ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    clip-path: inset(0);
}

::view-transition-image-pair(cd-main) {
    overflow: hidden;
    isolation: isolate;
}

::view-transition-old(cd-main) {
    animation: 120ms ease-in both cd-main-refined-out;
    mix-blend-mode: normal;
}

::view-transition-new(cd-main) {
    animation: 300ms 35ms cubic-bezier(0.22, 1, 0.36, 1) both cd-main-refined-in;
    mix-blend-mode: normal;
}

@keyframes cd-main-refined-out {
    to {
        transform: translateY(-3px);
        opacity: 0;
    }
}

@keyframes cd-main-refined-in {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cd-page-heading {
    min-height: 250px;
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(40px, 5vw, 68px);
    border-radius: 64px 64px 64px 20px;
    background:
        radial-gradient(circle at 7% -28%, rgba(130, 88, 200, 0.38), transparent 29rem) padding-box,
        radial-gradient(circle at 60% -42%, rgba(44, 132, 200, 0.38), transparent 34rem) padding-box,
        radial-gradient(circle at 101% 100%, rgba(45, 189, 187, 0.18), transparent 25rem) padding-box,
        linear-gradient(126deg, rgba(9, 29, 51, 0.99), rgba(4, 19, 35, 0.97)) padding-box,
        linear-gradient(118deg, rgba(153, 102, 224, 0.66), rgba(57, 145, 214, 0.57), rgba(45, 189, 187, 0.25)) border-box;
    box-shadow: 0 42px 105px rgba(0, 7, 27, 0.34), 0 18px 48px rgba(76, 75, 171, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cd-page-heading::before {
    top: -235px;
    right: -90px;
    width: 530px;
    height: 530px;
    border: 1px solid rgba(126, 186, 230, 0.13);
    border-radius: 46% 54% 61% 39% / 48% 42% 58% 52%;
    background: radial-gradient(circle at 38% 40%, rgba(130, 88, 200, 0.29), rgba(44, 132, 200, 0.15) 42%, rgba(45, 189, 187, 0.06) 61%, transparent 73%);
    box-shadow: 0 0 0 52px rgba(130, 88, 200, 0.024), 0 0 0 104px rgba(44, 132, 200, 0.016);
}

.cd-page-heading::after {
    right: 30%;
    bottom: -74px;
    width: 270px;
    height: 160px;
    transform: rotate(-7deg);
    border: 1px solid rgba(105, 175, 226, 0.13);
    border-radius: 999px 999px 999px 38px;
    background: linear-gradient(116deg, rgba(130, 88, 200, 0.1), rgba(44, 132, 200, 0.11), rgba(45, 189, 187, 0.045));
}

.cd-page-heading-copy {
    position: relative;
    z-index: 4;
}

.cd-page-heading-copy::after {
    width: 72px;
    height: 5px;
    display: block;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8258c8, #2c84c8 62%, #2dbdbb);
    box-shadow: 0 8px 24px rgba(69, 111, 200, 0.28);
    content: "";
}

.cd-page-heading h1 {
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.cd-page-heading p {
    max-width: 680px;
    margin-top: 18px;
    color: #afc2d3;
    font-size: clamp(15px, 1.35vw, 18px);
}

.cd-page-heading-with-media {
    grid-template-columns: minmax(0, 1fr) clamp(250px, 32vw, 440px);
    grid-template-rows: auto auto;
    gap: 20px clamp(34px, 5vw, 76px);
    padding-right: clamp(34px, 4vw, 58px);
}

.cd-page-heading-with-media .cd-page-heading-copy {
    grid-column: 1;
    grid-row: 1;
}

.cd-page-heading-actions {
    right: auto;
    bottom: auto;
    grid-column: 1;
    grid-row: 2;
    margin: 0;
}

.cd-page-heading-media {
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    padding: 12px;
}

.cd-page-heading-media img {
    border-radius: 39px 39px 39px 12px;
    transform: scale(1.035);
}

.cd-page-heading-media-overlay {
    border-radius: 39px 39px 39px 12px;
}

.cd-dashboard-heading {
    grid-template-rows: 1fr;
}

.cd-dashboard-heading .cd-page-heading-copy::after {
    width: 96px;
    margin-top: 30px;
}

.cd-dashboard-map {
    overflow: hidden;
    transform: rotate(1.2deg);
}

.cd-dashboard-map::before {
    position: absolute;
    inset: clamp(14px, 1.7vw, 24px);
    border-radius: 40px 40px 40px 12px;
    background-image:
        linear-gradient(90deg, rgba(4, 20, 34, 0.48) 0%, rgba(4, 20, 34, 0.08) 38%, rgba(4, 20, 34, 0.02) 78%),
        linear-gradient(180deg, rgba(4, 20, 34, 0.08), rgba(4, 20, 34, 0.35)),
        url("../javascript/libraries/regantis-assets@2026-07-31/files/images/map2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    filter: saturate(1.55) contrast(1.14);
    opacity: 0.96;
}

.cd-dashboard-map::after {
    position: absolute;
    inset: clamp(14px, 1.7vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 40px 40px 40px 12px;
    background: linear-gradient(120deg, rgba(130, 88, 200, 0.12), rgba(44, 132, 200, 0.04) 52%, rgba(45, 189, 187, 0.08));
    content: "";
    pointer-events: none;
}

html[data-theme="light"] .cd-page-heading p,
html[data-theme="light"] .cd-dashboard-heading p {
    color: #587488;
}

html[data-theme="light"] .cd-page-heading-media,
html[data-theme="light"] .cd-dashboard-map {
    box-shadow: 0 30px 72px rgba(49, 74, 111, 0.18), 0 14px 34px rgba(68, 111, 174, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

@media (max-width: 1080px) {

    .cd-page-heading-with-media {
        grid-template-columns: minmax(0, 1fr) clamp(230px, 34vw, 350px);
    }
}

@media (max-width: 820px) {
    .cd-page-heading-with-media,
    .cd-dashboard-heading {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .cd-page-heading-with-media .cd-page-heading-copy,
.cd-page-heading-actions,
.cd-page-heading-media {
        grid-column: 1;
    }

    .cd-page-heading-with-media .cd-page-heading-copy {
        grid-row: 1;
    }

    .cd-page-heading-actions {
        grid-row: 2;
    }

    .cd-page-heading-media {
        grid-row: 3;
    }
}

@media (max-width: 720px) {
    .cd-page-heading {
        min-height: 0;
        padding: 36px 24px 24px;
        border-radius: 42px 42px 42px 14px;
    }

    .cd-page-heading:not(.cd-page-banner) h1 {
        font-size: clamp(27px, 5vw, 33px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .cd-page-heading-media {
        padding: 9px;
        transform: none;
    }

    .cd-page-heading-media img,
    .cd-page-heading-media-overlay {
        border-radius: 26px 26px 26px 9px;
    }

    .cd-dashboard-map {
        padding: 10px;
        border-radius: 36px 36px 36px 12px;
    }

    .cd-dashboard-map::before,
    .cd-dashboard-map::after {
        inset: 10px;
        border-radius: 27px 27px 27px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.cd-theme-document::view-transition-old(root),
    html.cd-theme-document::view-transition-new(root),
    ::view-transition-old(cd-topbar),
    ::view-transition-new(cd-topbar),
    ::view-transition-old(cd-sidebar),
    ::view-transition-new(cd-sidebar),
    ::view-transition-old(cd-main),
    ::view-transition-new(cd-main) {
        animation: none !important;
    }
}

/* Cross-document snapshots caused bright seams around the fixed chrome.
   Keep navigation stable and animate only the newly loaded content. */
.cd-topbar,
.cd-sidebar,
.cd-brand,
.cd-main {
    view-transition-name: none !important;
}

.cd-main {
    animation: cd-main-page-enter 340ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: 50% 20%;
}

@keyframes cd-main-page-enter {
    from {
        transform: translate3d(0, 12px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.cd-theme-switcher {
    order: 2;
}

.cd-account-button {
    order: 3;
}


.cd-dashboard-heading::before {
    filter: blur(1px);
}

.cd-dashboard-heading::after {
    left: 4%;
}

.cd-dashboard-heading .cd-page-heading-copy {
    position: relative;
    z-index: 5;
    max-width: 840px;
}

.cd-dashboard-heading p {
    margin-top: 28px;
}


.cd-dashboard-grid {
    z-index: 1;
}

.cd-dashboard-beam {
    z-index: 2;
}

.cd-dashboard-emblem {
    z-index: 3;
}

.cd-dashboard-node {
    z-index: 4;
}

html.cd-theme-document[data-theme="light"] body:not(.cd-auth-body),
html[data-theme="light"] body.cd-body:not(.cd-auth-body) {
    background:
        radial-gradient(ellipse at 2% -12%, rgba(130, 88, 200, 0.19), transparent 34rem),
        radial-gradient(ellipse at 48% -20%, rgba(44, 132, 200, 0.24), transparent 43rem),
        radial-gradient(ellipse at 101% 22%, rgba(45, 189, 187, 0.14), transparent 34rem),
        linear-gradient(143deg, #f8fbff 0%, #eef6fb 48%, #f5f9fd 100%);
}

html[data-theme="light"] .cd-topbar {
    background:
        radial-gradient(circle at 18% -180%, rgba(130, 88, 200, 0.2), transparent 26rem),
        radial-gradient(circle at 70% -180%, rgba(44, 132, 200, 0.22), transparent 29rem),
        linear-gradient(100deg, rgba(252, 254, 255, 0.97), rgba(238, 248, 253, 0.95));
    box-shadow: 0 18px 54px rgba(47, 72, 107, 0.13), inset 0 -1px 0 rgba(97, 131, 165, 0.09);
}

html[data-theme="light"] .cd-sidebar {
    background:
        radial-gradient(circle at -25% 5%, rgba(130, 88, 200, 0.15), transparent 21rem),
        radial-gradient(circle at 115% 38%, rgba(44, 132, 200, 0.18), transparent 21rem),
        radial-gradient(circle at 118% 94%, rgba(45, 189, 187, 0.12), transparent 19rem),
        linear-gradient(180deg, rgba(250, 253, 255, 0.97), rgba(237, 247, 252, 0.96));
}

html[data-theme="light"] .cd-page-heading,
html[data-theme="light"] .cd-dashboard-heading {
    background:
        radial-gradient(circle at 5% -24%, rgba(130, 88, 200, 0.24), transparent 30rem) padding-box,
        radial-gradient(circle at 59% -40%, rgba(44, 132, 200, 0.23), transparent 36rem) padding-box,
        radial-gradient(circle at 100% 100%, rgba(45, 189, 187, 0.12), transparent 26rem) padding-box,
        linear-gradient(128deg, rgba(255, 255, 255, 0.995), rgba(233, 245, 252, 0.98)) padding-box,
        linear-gradient(118deg, rgba(130, 88, 200, 0.48), rgba(44, 132, 200, 0.45), rgba(45, 189, 187, 0.22)) border-box;
    box-shadow: 0 42px 102px rgba(48, 71, 108, 0.16), 0 18px 44px rgba(104, 75, 166, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.99);
}

/* map2.png is a pale line illustration; invert/tint it on light backgrounds. */

html[data-theme="light"] .cd-dashboard-map::before {
    background-image: url("../javascript/libraries/regantis-assets@2026-07-31/files/images/map2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: invert(1) sepia(0.82) saturate(3.4) hue-rotate(154deg) brightness(0.72) contrast(1.45);
    mix-blend-mode: multiply;
    opacity: 0.82;
}

html[data-theme="light"] .cd-dashboard-map::after {
    border-color: rgba(32, 101, 151, 0.14);
    background: linear-gradient(120deg, rgba(130, 88, 200, 0.1), rgba(44, 132, 200, 0.025) 54%, rgba(45, 189, 187, 0.07));
}

.cd-logout-form .cd-nav-button {
    border-color: rgba(255, 91, 118, 0.28);
    background: linear-gradient(105deg, rgba(214, 54, 84, 0.18), rgba(255, 91, 118, 0.08));
    box-shadow: inset 3px 0 0 rgba(255, 91, 118, 0.82);
}

html[data-theme="light"] .cd-logout-form .cd-nav-button {
    border-color: rgba(196, 48, 78, 0.22);
    background: linear-gradient(105deg, rgba(232, 71, 102, 0.12), rgba(255, 105, 132, 0.055));
    box-shadow: inset 3px 0 0 rgba(211, 55, 86, 0.72);
}

.cd-auth-body .cd-button-primary,
.cd-auth-body .cd-button-primary:hover,
.cd-auth-body .cd-button-primary:focus,
.cd-auth-body .cd-button-primary:active,
.cd-auth-body .cd-button-primary i {
    color: #ffffff !important;
}

@media (max-width: 820px) {
    .cd-dashboard-heading {
        grid-template-rows: auto minmax(250px, 1fr);
    }
}

@media (max-width: 720px) {

    .cd-dashboard-heading p {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-main {
        animation: none !important;
    }
}

.cd-main {
    width: 100%;
    max-width: none;
    margin-right: 0;
}


.cd-dashboard-heading {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(30px, 5vw, 80px);
}

.cd-dashboard-heading::before {
    position: absolute;
    z-index: -2;
    top: -48%;
    right: 15%;
    width: min(52vw, 720px);
    height: min(52vw, 720px);
    border: 1px solid rgba(151, 202, 237, 0.12);
    border-radius: 45% 55% 64% 36% / 42% 38% 62% 58%;
    background: radial-gradient(circle at 38% 40%, rgba(130, 88, 200, 0.32), rgba(44, 132, 200, 0.14) 44%, rgba(45, 189, 187, 0.06) 64%, transparent 74%);
}

.cd-dashboard-heading::after {
    position: absolute;
    z-index: -2;
    right: -10%;
    bottom: -54%;
    width: 58%;
    height: 82%;
    transform: rotate(-8deg);
    border: 1px solid rgba(113, 181, 225, 0.14);
    border-radius: 999px 999px 999px 70px;
    background: linear-gradient(118deg, rgba(130, 88, 200, 0.12), rgba(44, 132, 200, 0.09), rgba(45, 189, 187, 0.04));
}

.cd-dashboard-heading h1 {
    text-wrap: balance;
}

.cd-dashboard-map {
    position: absolute;
    z-index: 0 !important;
    top: 8%;
    right: 3%;
    width: min(72%, 970px);
    height: 84%;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 0.78;
    -webkit-mask-image: none;
    mask-image: none;
}

.cd-dashboard-map::before,
.cd-dashboard-map::after {
    display: none;
}

html[data-theme="light"] .cd-dashboard-map {
    background: none;
    filter: brightness(0.31) contrast(1.22);
    mix-blend-mode: normal;
    opacity: 0.72;
}

.cd-page-heading-with-media:not(.cd-dashboard-heading) {
    position: relative;
    isolation: isolate;
    min-height: clamp(250px, 25vw, 340px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
    grid-template-areas:
        "copy media"
        "actions media";
    align-items: center;
    gap: 20px clamp(30px, 5vw, 76px);
    padding: clamp(38px, 5vw, 68px);
    overflow: hidden;
    border-radius: 62px 62px 62px 20px;
}

.cd-page-heading-with-media:not(.cd-dashboard-heading)::before {
    top: -62%;
    right: 22%;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(130, 88, 200, 0.25), rgba(44, 132, 200, 0.1) 48%, transparent 70%);
}

.cd-page-heading-with-media:not(.cd-dashboard-heading)::after {
    right: -8%;
    bottom: -58%;
    width: 48%;
    height: 90%;
    transform: rotate(-9deg);
    border: 1px solid rgba(127, 192, 231, 0.14);
    border-radius: 999px 999px 999px 58px;
    background: linear-gradient(120deg, rgba(130, 88, 200, 0.08), rgba(44, 132, 200, 0.07), rgba(45, 189, 187, 0.03));
}

.cd-page-heading-with-media .cd-page-heading-copy {
    grid-area: copy;
    position: relative;
    z-index: 3;
    align-self: end;
    max-width: 760px;
}

.cd-page-heading-with-media .cd-page-heading-copy::after {
    width: 124px;
    height: 6px;
    display: block;
    margin-top: 25px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8258c8, #2c84c8 62%, #2dbdbb);
    box-shadow: 0 8px 24px rgba(58, 115, 196, 0.26);
    content: "";
}

.cd-page-heading-with-media h1 {
    margin: 0;
    font-size: clamp(44px, 5.4vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.cd-page-heading-with-media p {
    max-width: 660px;
    margin-top: 18px;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.7;
}

.cd-page-heading-actions {
    grid-area: actions;
    position: relative;
    z-index: 4;
    align-self: start;
    justify-self: start;
}

.cd-page-heading-media {
    grid-area: media;
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(132, 194, 232, 0.2);
    border-radius: 48px 48px 48px 14px;
    transform: rotate(1.4deg);
    background: rgba(5, 24, 42, 0.55);
    box-shadow: 0 28px 68px rgba(0, 10, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cd-page-heading-media::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(126deg, rgba(130, 88, 200, 0.21), rgba(44, 132, 200, 0.04) 48%, rgba(45, 189, 187, 0.15));
    content: "";
    pointer-events: none;
}

.cd-page-heading-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.05);
    opacity: 0.9;
}

.cd-page-heading-media-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 16, 29, 0.02), rgba(3, 15, 28, 0.5));
    pointer-events: none;
}

.cd-page-heading-media-icon {
    position: absolute;
    z-index: 4;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px 18px 18px 7px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(130, 88, 200, 0.94), rgba(44, 132, 200, 0.94), rgba(45, 189, 187, 0.9));
    box-shadow: 0 16px 34px rgba(16, 39, 102, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.cd-page-heading-account .cd-page-heading-media img {
    object-position: 54% center;
}

.cd-page-heading-seo-report .cd-page-heading-media img,
.cd-page-heading-audit .cd-page-heading-media img {
    object-position: center;
}

.cd-page-heading-task-report .cd-page-heading-media img {
    object-position: 58% center;
}

.cd-page-heading-contract .cd-page-heading-media img {
    object-position: 62% center;
}

.cd-page-heading-offer .cd-page-heading-media img {
    object-position: center 45%;
}

html[data-theme="light"] .cd-dashboard-heading {
    background:
        radial-gradient(circle at 11% -20%, rgba(130, 88, 200, 0.23), transparent 31rem) padding-box,
        radial-gradient(circle at 58% -42%, rgba(44, 132, 200, 0.25), transparent 39rem) padding-box,
        radial-gradient(circle at 105% 98%, rgba(45, 189, 187, 0.14), transparent 28rem) padding-box,
        linear-gradient(126deg, rgba(255, 255, 255, 0.995), rgba(231, 244, 252, 0.985)) padding-box,
        linear-gradient(118deg, rgba(130, 88, 200, 0.5), rgba(44, 132, 200, 0.48), rgba(45, 189, 187, 0.24)) border-box;
    box-shadow: 0 40px 96px rgba(48, 70, 106, 0.16), 0 17px 43px rgba(101, 76, 165, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .cd-dashboard-heading h1 {
    color: #09233a;
    text-shadow: none;
}

html[data-theme="light"] .cd-dashboard-heading p {
    color: #557489;
}

html[data-theme="light"] .cd-page-heading-media {
    border-color: rgba(59, 130, 180, 0.18);
    background: rgba(224, 241, 250, 0.8);
    box-shadow: 0 25px 62px rgba(52, 77, 110, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .cd-page-heading-media img {
    filter: saturate(1.08) contrast(1.04);
    opacity: 0.92;
}

html[data-theme="light"] .cd-page-heading-media-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(20, 72, 105, 0.23));
}

@media (max-width: 1080px) {
    .cd-dashboard-heading {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 38%);
        padding: clamp(42px, 5vw, 66px);
    }

    .cd-page-heading-with-media:not(.cd-dashboard-heading) {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 36%);
    }
}

@media (max-width: 820px) {
    .cd-dashboard-heading {
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: 24px;
    }

    .cd-page-heading-with-media:not(.cd-dashboard-heading) {
        min-height: 410px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "actions"
            "media";
        grid-template-rows: auto auto minmax(180px, 1fr);
        padding: 32px 26px 24px;
    }

    .cd-page-heading-media {
        min-height: 180px;
        transform: none;
    }
}

@media (max-width: 720px) {

    .cd-dashboard-heading {
        min-height: 300px;
        grid-template-columns: 1fr;
        grid-template-rows: auto 130px;
        padding: 32px 20px 22px;
        border-radius: 28px 28px 28px 12px;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(26px, 5vw, 31px);
    }

    .cd-dashboard-map {
        top: 13%;
        right: 1%;
        width: 83%;
        height: 74%;
    }

    .cd-page-heading-with-media:not(.cd-dashboard-heading) {
        min-height: 380px;
        padding: 28px 18px 20px;
        border-radius: 28px 28px 28px 12px;
    }

    .cd-page-heading-with-media h1 {
        font-size: clamp(27px, 5.5vw, 34px);
    }

    .cd-page-heading-media {
        min-height: 160px;
        border-radius: 24px 24px 24px 10px;
    }
}

.cd-nav::after {
    display: none !important;
    content: none !important;
}

.cd-dashboard-heading {
    --cd-motion-x: 0px;
    --cd-motion-y: 0px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    border-radius: 26px;
    background: #152b61;
    box-shadow: 0 34px 90px rgba(0, 7, 24, 0.34);
}

.cd-dashboard-heading::before,
.cd-dashboard-heading::after {
    display: none !important;
    content: none !important;
}

.cd-dashboard-hero-image,
.cd-dashboard-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cd-dashboard-hero-image {
    z-index: 0;
    object-fit: cover;
    object-position: center;
    transform: translate3d(var(--cd-motion-x), var(--cd-motion-y), 0) scale(1.075);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.cd-dashboard-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 13, 31, 0.9) 0%, rgba(6, 20, 49, 0.78) 42%, rgba(12, 27, 63, 0.36) 72%, rgba(8, 22, 51, 0.28) 100%),
        linear-gradient(180deg, rgba(4, 15, 35, 0.08), rgba(3, 13, 31, 0.38));
    pointer-events: none;
}

.cd-dashboard-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(48px, 7vw, 112px);
}

.cd-dashboard-banner-copy {
    position: relative;
    z-index: 3;
}

.cd-dashboard-heading h1 {
    margin: 0 0 22px;
    color: #ffffff !important;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.055em;
    text-shadow: 0 18px 50px rgba(0, 7, 28, 0.36);
}

.cd-dashboard-heading p {
    margin: 0 0 38px;
    color: rgba(255, 255, 255, 0.86) !important;
    text-shadow: 0 8px 24px rgba(0, 8, 28, 0.28);
}

.cd-button.cd-dashboard-hero-button {
    position: relative;
    min-height: 65px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
    padding: 13px 20px 13px 24px;
    border: 1px solid transparent;
    border-radius: 15px !important;
    color: #f7fbff !important;
    background:
        linear-gradient(104deg, #8258c8 0%, #496fc9 38%, #2c84c8 70%, #2dbdbb 116%) padding-box,
        linear-gradient(104deg, rgba(184, 143, 255, 0.9), rgba(82, 187, 255, 0.78), rgba(45, 189, 187, 0.6)) border-box;
    box-shadow: 0 16px 38px rgba(70, 94, 191, 0.28), 0 8px 24px rgba(44, 132, 200, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    font-weight: 700;
    transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.cd-button.cd-dashboard-hero-button:hover {
    color: #ffffff !important;
    box-shadow: 0 20px 46px rgba(100, 78, 190, 0.34), 0 10px 28px rgba(44, 132, 200, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

html[data-theme="light"] .cd-button.cd-dashboard-hero-button {
    border-color: rgba(255, 255, 255, 0.7);
    color: #12273a !important;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 8, 30, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .cd-button.cd-dashboard-hero-button:hover {
    color: #0b2234 !important;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(0, 8, 30, 0.3), inset 0 1px 0 #ffffff;
}

.cd-dashboard-hero-button:active {
    transform: translateY(1px) scale(0.99);
}

.cd-dashboard-hero-button-arrow {
    position: relative;
    width: 16px;
    height: 18px;
    display: block;
    overflow: hidden;
}

.cd-dashboard-hero-button-arrow i {
    position: absolute;
    top: 1px;
    left: 2px;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cd-dashboard-hero-button-arrow i + i {
    transform: translateY(-26px);
}

.cd-dashboard-hero-button:hover .cd-dashboard-hero-button-arrow i:first-child {
    transform: translateY(26px);
}

.cd-dashboard-hero-button:hover .cd-dashboard-hero-button-arrow i + i {
    transform: translateY(0);
}

.cd-dashboard-scroll-tab {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 750;
    transition: color 200ms ease, background 200ms ease;
}

.cd-dashboard-scroll-tab i {
    font-size: 12px;
}

.cd-dashboard-base {
    scroll-margin-top: calc(var(--cd-topbar-height) + 22px);
}

.cd-page-heading.cd-page-banner {
    --cd-motion-x: 0px;
    --cd-motion-y: 0px;
    align-items: center;
    justify-content: center;
}

.cd-page-heading.cd-page-banner::before,
.cd-page-heading.cd-page-banner::after {
    display: none !important;
    content: none !important;
}

.cd-page-banner-overlay {
    width: 100%;
    height: 100%;
}

.cd-page-banner-content h1 {
    color: #ffffff !important;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    text-shadow: 0 18px 46px rgba(0, 7, 28, 0.38);
    text-wrap: balance;
}

.cd-page-banner-content p {
    color: rgba(255, 255, 255, 0.86) !important;
    text-shadow: 0 8px 24px rgba(0, 8, 28, 0.3);
}

@media (max-width: 992px) {
    .cd-dashboard-heading {
        min-height: 310px;
        padding: 42px 0 38px;
    }

    .cd-dashboard-hero-inner {
        padding: 0 clamp(24px, 5vw, 48px);
    }
}

@media (max-width: 768px) {
    .cd-dashboard-heading {
        min-height: 290px;
        padding: 36px 0 32px;
        border-radius: 22px;
    }

    .cd-dashboard-hero-inner {
        padding: 0 22px;
    }

    .cd-dashboard-scroll-tab {
        display: none;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(26px, 5vw, 31px);
    }
}

@media (max-width: 576px) {

    .cd-dashboard-heading {
        min-height: 250px;
        padding: 30px 0 28px;
        border-radius: 18px;
    }

    .cd-dashboard-hero-inner {
        padding: 0 18px;
    }

    .cd-dashboard-heading h1 {
        margin-bottom: 12px;
        font-size: clamp(24px, 6vw, 28px);
    }

    .cd-dashboard-heading p {
        margin-bottom: 18px;
    }

    .cd-dashboard-hero-button {
        min-height: 46px;
        padding: 8px 14px 8px 16px;
    }

    .cd-page-heading.cd-page-banner {
        padding: 92px 20px 150px;
        border-radius: 22px;
    }

    .cd-page-banner-content h1 {
        line-height: 1.14;
    }

    .cd-page-banner-content p {
        margin-top: 18px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-dashboard-hero-image,
.cd-dashboard-hero-button,
.cd-dashboard-hero-button-arrow i {
        transition: none !important;
    }
}
.cd-button-primary,
button.cd-button-primary,
a.cd-button-primary,
input.cd-button-primary {
    color: #f7fbff !important;
}

.cd-button-primary:hover,
button.cd-button-primary:hover,
a.cd-button-primary:hover,
input.cd-button-primary:hover {
    color: #ffffff !important;
}

.cd-nav::before,
.cd-nav-item.is-active,
.cd-nav.has-moving-indicator .cd-nav-item.is-active {
    border-radius: 20px;
}

.cd-nav-item i {
    color: #a7c7db;
}

.cd-nav-item:hover i {
    color: #83e4ff;
}

.cd-nav-item.is-active i,
.cd-nav.has-moving-indicator .cd-nav-item.is-active i {
    color: #d8f4ff;
    text-shadow: 0 0 18px rgba(94, 196, 255, 0.58);
}

html[data-theme="light"] .cd-nav-item i {
    color: #476d88;
}

html[data-theme="light"] .cd-nav-item:hover i {
    color: #116fb6;
}

html[data-theme="light"] .cd-nav-item.is-active i,
html[data-theme="light"] .cd-nav.has-moving-indicator .cd-nav-item.is-active i {
    color: #075f9f;
    text-shadow: 0 0 16px rgba(20, 115, 230, 0.18);
}

html[data-theme="light"] .cd-nav::before {
    border-top-color: rgba(255, 255, 255, 0.98);
    border-right-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(81, 143, 183, 0.18);
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72)) padding-box;
}

.cd-dashboard-hero-canvas {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.cd-dashboard-heading.is-distortion-ready .cd-dashboard-hero-canvas {
    opacity: 1;
}

.cd-dashboard-heading.is-distortion-ready .cd-dashboard-hero-image {
    opacity: 0;
}

.cd-dashboard-heading[data-cd-hero-distortion] .cd-dashboard-hero-image {
    pointer-events: none;
    transition: opacity 220ms ease;
}


.cd-auth-brand-logo {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 14px rgba(63, 164, 229, 0.12));
}

.cd-password-card {
    margin-top: 26px;
}

.cd-password-card .cd-section-heading {
    align-items: center;
}


.cd-password-card .cd-section-heading p {
    margin: 5px 0 0;
    color: var(--cd-muted);
    line-height: 1.55;
}

.cd-password-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}


@media (max-width: 1024px), (pointer: coarse) {
    .cd-dashboard-hero-canvas {
        display: none;
    }

    .cd-dashboard-heading.is-distortion-ready .cd-dashboard-hero-image {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .cd-password-actions .cd-button {
        width: 100%;
    }

    .cd-auth-brand {
        padding: 11px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-dashboard-hero-canvas {
        display: none;
    }

    .cd-dashboard-heading.is-distortion-ready .cd-dashboard-hero-image {
        opacity: 1;
    }
}

html[data-theme="light"] .cd-alert-danger.cd-account-notice {
    border-color: rgba(196, 48, 78, 0.22);
    color: #a72d48;
    background: linear-gradient(105deg, rgba(232, 71, 102, 0.12), rgba(255, 105, 132, 0.055));
    box-shadow: inset 3px 0 0 rgba(211, 55, 86, 0.72);
}

html[data-theme="light"] .cd-alert-danger.cd-account-notice i,
html[data-theme="light"] .cd-alert-danger.cd-account-notice strong,
html[data-theme="light"] .cd-alert-danger.cd-account-notice span {
    color: #a72d48;
}

html[data-theme="light"] .cd-field input:not([readonly]):focus,
html[data-theme="light"] .cd-field select:not(:disabled):focus {
    border-color: #1473e6;
    color: #17384e;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 4px rgba(20, 115, 230, 0.11), 0 12px 30px rgba(42, 91, 121, 0.12);
}
html[data-theme="light"] .cd-alert-success {
    color: #176342;
    border-color: rgba(30, 139, 91, 0.24);
    background: linear-gradient(105deg, rgba(48, 181, 121, 0.14), rgba(101, 218, 162, 0.07));
    box-shadow: inset 3px 0 0 rgba(30, 139, 91, 0.76);
}

html[data-theme="light"] .cd-alert-success i,
html[data-theme="light"] .cd-alert-success strong,
html[data-theme="light"] .cd-alert-success span,
html[data-theme="light"] .cd-alert-success a {
    color: #176342;
}

html[data-theme="light"] .cd-placeholder-card strong {
    color: #17384e;
    background: linear-gradient(100deg, #173d57 0%, #2878a8 50%, #7056b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cd-page-heading.cd-page-banner {
    --cd-page-banner-breadcrumb-width: clamp(300px, 30vw, 420px);
    --cd-page-banner-actions-width: clamp(250px, 24vw, 340px);
    --cd-page-banner-notch-height: 54px;
}

html[data-theme="light"] .cd-page-banner-surface {
    filter: drop-shadow(0 16px 27px rgba(42, 91, 121, 0.18));
}

.cd-page-banner-surface .cd-page-banner-overlay {
    border-radius: inherit;
}

@media (max-width: 992px) {
    .cd-page-heading.cd-page-banner {
        --cd-page-banner-breadcrumb-width: clamp(260px, 37vw, 350px);
        --cd-page-banner-actions-width: clamp(210px, 27vw, 280px);
        --cd-page-banner-notch-height: 50px;
        min-height: 150px;
        height: 150px;
        padding: 0;
    }

    .cd-page-banner-surface {
        border-radius: 20px;
        clip-path: polygon(
            22px 0,
            100% 0,
            100% calc(100% - var(--cd-page-banner-notch-height)),
            calc(100% - var(--cd-page-banner-actions-width)) calc(100% - var(--cd-page-banner-notch-height)),
            calc(100% - var(--cd-page-banner-actions-width) - 16px) 100%,
            calc(var(--cd-page-banner-breadcrumb-width) + 16px) 100%,
            var(--cd-page-banner-breadcrumb-width) calc(100% - var(--cd-page-banner-notch-height)),
            0 calc(100% - var(--cd-page-banner-notch-height)),
            0 22px
        );
    }

    .cd-page-banner-content {
        padding: 15px clamp(105px, 14vw, 160px) 42px;
    }

    .cd-page-banner-content h1 {
        font-size: clamp(30px, 4.8vw, 42px);
    }
}

@media (max-width: 768px) {
    .cd-page-heading.cd-page-banner {
        --cd-page-banner-breadcrumb-width: 220px;
        --cd-page-banner-actions-width: 170px;
        --cd-page-banner-notch-height: 47px;
        min-height: 144px;
        height: 144px;
        padding: 0;
        border-radius: 0;
    }

    .cd-page-banner-surface {
        border-radius: 18px;
        clip-path: polygon(
            18px 0,
            100% 0,
            100% calc(100% - var(--cd-page-banner-notch-height)),
            calc(100% - var(--cd-page-banner-actions-width)) calc(100% - var(--cd-page-banner-notch-height)),
            calc(100% - var(--cd-page-banner-actions-width) - 14px) 100%,
            calc(var(--cd-page-banner-breadcrumb-width) + 14px) 100%,
            var(--cd-page-banner-breadcrumb-width) calc(100% - var(--cd-page-banner-notch-height)),
            0 calc(100% - var(--cd-page-banner-notch-height)),
            0 18px
        );
    }

    .cd-page-banner-content {
        padding: 13px 70px 39px;
    }

    .cd-page-banner-content h1 {
        font-size: clamp(27px, 6.8vw, 36px);
    }

    .cd-page-banner-content p {
        display: none;
    }

    .cd-page-banner-actions {
        padding: 0 12px;
    }
}

@media (max-width: 576px) {
    .cd-page-heading.cd-page-banner {
        --cd-page-banner-breadcrumb-width: min(220px, calc(100% - 70px));
        --cd-page-banner-actions-width: 0px;
        --cd-page-banner-notch-height: 45px;
        min-height: 136px;
        height: 136px;
    }

    .cd-page-banner-surface {
        clip-path: polygon(
            16px 0,
            100% 0,
            100% 100%,
            calc(var(--cd-page-banner-breadcrumb-width) + 14px) 100%,
            var(--cd-page-banner-breadcrumb-width) calc(100% - var(--cd-page-banner-notch-height)),
            0 calc(100% - var(--cd-page-banner-notch-height)),
            0 16px
        );
    }

    .cd-page-banner-content {
        padding: 12px 24px 37px;
    }

    .cd-page-banner-content h1 {
        font-size: clamp(25px, 8vw, 32px);
    }

    .cd-page-banner-actions {
        display: none;
    }
}

/* ==================== 07. Documents, offers, contracts and shared viewers ==================== */

.cd-document-view-button {
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(88, 164, 221, 0.25);
    background: rgba(44, 132, 200, 0.12);
    color: #b8ddf7;
}

.cd-document-view-button:hover {
    border-color: rgba(45, 189, 187, 0.48);
    background: rgba(45, 189, 187, 0.16);
    color: #efffff;
    transform: translateY(-2px);
}

.cd-document-empty-state {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    color: #91a9bd;
    text-align: center;
}

.cd-document-empty-state p {
    margin: 0;
}

.cd-document-empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(88, 164, 221, 0.2);
    border-radius: 24px;
    background: rgba(44, 132, 200, 0.08);
    color: #7ebbe7;
    font-size: 27px;
}

.cd-document-view-shell .cd-page-heading.cd-page-banner {
    --cd-page-banner-actions-width: clamp(318px, 29vw, 372px);
}

.cd-document-banner-content {
    min-width: 0;
}

.cd-document-banner-content h1 {
    max-width: min(700px, calc(100% - 40px));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-document-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: rgba(235, 245, 252, 0.72);
    font-size: 12px;
}

.cd-document-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cd-document-view-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.cd-icon-button {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border: 1px solid rgba(120, 164, 197, 0.2);
    border-radius: 13px;
    color: #d7e8f4;
    font-size: 14px;
    cursor: pointer;
}

.cd-icon-button:hover,
.cd-icon-button:focus-visible {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.cd-icon-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.cd-document-back-button {
    margin-right: 3px;
}

.cd-document-notice {
    position: sticky;
    z-index: 12;
    top: calc(var(--cd-topbar-height, 74px) + 12px);
    margin: -2px 0 18px;
    padding: 13px 17px;
    border: 1px solid rgba(113, 174, 219, 0.28);
    border-radius: 14px;
    background: rgba(8, 31, 50, 0.96);
    box-shadow: 0 14px 34px rgba(0, 8, 22, 0.2);
    color: #d7e9f5;
    font-size: 13px;
}

.cd-document-notice.is-success {
    border-color: rgba(45, 189, 187, 0.44);
    color: #cafff4;
}

.cd-document-notice.is-danger {
    border-color: rgba(239, 100, 122, 0.44);
    color: #ffd3da;
}

.cd-document-view-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(115, 154, 185, 0.15);
    border-radius: 26px;
    background: rgba(6, 21, 37, 0.72);
    box-shadow: 0 28px 70px rgba(0, 7, 22, 0.23);
}

.cd-document-view-card .row {
    margin: 0;
}

.cd-document-view-card .document-editor-column {
    padding: 0;
}

.cd-document-view-card .document-editor-card,
.cd-document-view-card .document-editor-card-body {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cd-document-view-card .document-editor-container {
    border: 0;
    border-radius: 0;
}

.cd-document-view-card .document-editor-statusbar {
    border-radius: 0 0 25px 25px;
}

html.cd-theme-document body.cd-document-fullscreen-active {
    overflow: hidden;
}

.cd-document-view-shell.is-fullscreen {
    position: fixed;
    z-index: 10050;
    inset: 0;
    background: #04101d;
}

.cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner {
    position: fixed;
    z-index: 10052;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: rgba(5, 20, 35, 0.98);
    box-shadow: 0 10px 32px rgba(0, 6, 18, 0.28);
}

.cd-document-view-shell.is-fullscreen .cd-page-banner-surface {
    display: none;
}

.cd-document-view-shell.is-fullscreen .cd-document-view-actions {
    width: auto;
    height: 40px;
}

.cd-document-view-shell.is-fullscreen .cd-document-view-card {
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 18px;
}

html[data-theme="light"] .cd-document-view-button {
    border-color: rgba(44, 132, 200, 0.18);
    background: rgba(44, 132, 200, 0.08);
    color: #17384e;
}

html[data-theme="light"] .cd-document-empty-state {
    color: #5f788b;
}

html[data-theme="light"] .cd-document-empty-icon {
    border-color: rgba(44, 132, 200, 0.16);
    background: rgba(44, 132, 200, 0.07);
    color: #287caf;
}

html[data-theme="light"] .cd-document-notice {
    border-color: rgba(50, 112, 153, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(44, 79, 106, 0.13);
    color: #284b63;
}

html[data-theme="light"] .cd-document-notice.is-success {
    border-color: rgba(20, 132, 105, 0.3);
    color: #0c654f;
}

html[data-theme="light"] .cd-document-notice.is-danger {
    border-color: rgba(190, 55, 79, 0.28);
    color: #9f2940;
}

html[data-theme="light"] .cd-document-view-card {
    border-color: rgba(69, 104, 131, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 26px 64px rgba(46, 79, 103, 0.14);
}

html[data-theme="light"] .cd-document-view-shell.is-fullscreen {
    background: #edf5fa;
}

html[data-theme="light"] .cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner {
    background: rgba(244, 249, 253, 0.98);
}

@media (max-width: 991px) {
    .cd-document-view-shell .cd-page-heading.cd-page-banner {
        --cd-page-banner-actions-width: 316px;
    }

    .cd-icon-button {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
        border-radius: 12px;
    }
}

@media (max-width: 767px) {
    .cd-document-view-shell .cd-page-heading.cd-page-banner {
        --cd-page-banner-actions-width: 0px;
        margin-bottom: 58px;
    }

    .cd-document-view-actions {
        position: absolute;
        right: 0;
        bottom: -50px;
        width: auto;
        height: 44px;
        display: flex !important;
        padding: 0;
    }

    .cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {

    .cd-document-view-actions {
        gap: 4px;
    }

    .cd-icon-button {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .cd-document-back-button {
        display: none;
    }
}
html.cd-theme-document,
html.cd-theme-document body:not(.cd-auth-body),
body.cd-body:not(.cd-auth-body) {
    height: 100%;
}

html.cd-theme-document body:not(.cd-auth-body),
body.cd-body:not(.cd-auth-body) {
    overflow: hidden;
}

.cd-app-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.cd-main {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#container.cd-app-shell {
    grid-template-rows: minmax(0, 1fr) auto;
}

#container.cd-app-shell > #content {
    position: relative;
    isolation: isolate;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

html.cd-theme-switching #container.cd-app-shell > #content {
    height: var(--cd-theme-switch-viewport-height, 100vh);
    max-height: var(--cd-theme-switch-viewport-height, 100vh);
    overflow: hidden !important;
    contain: layout paint;
    overscroll-behavior: none;
}

#container.cd-app-shell > #footer {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    color: var(--cd-muted);
    background: transparent;
}

#container.cd-app-shell > #footer a {
    color: var(--cd-muted) !important;
}

.cd-nav-item,
.cd-nav-item.is-active,
.cd-nav.has-moving-indicator .cd-nav-item.is-active {
    border-radius: 16px;
}

.cd-account-button,
.cd-icon-button {
    min-height: 42px;
    border-width: 1px;
    border-style: solid;
    border-top-color: rgba(120, 190, 234, 0.24);
    border-right-color: rgba(120, 190, 234, 0.24);
    border-bottom-color: rgba(2, 10, 24, 0.58);
    border-left-color: rgba(2, 10, 24, 0.58);
    border-radius: 16px;
    background: linear-gradient(105deg, rgba(17, 47, 73, 0.9), rgba(15, 56, 82, 0.86) 58%, rgba(13, 63, 71, 0.78)) padding-box;
    box-shadow: 0 14px 30px rgba(0, 7, 22, 0.22), inset 3px 0 0 #2d87c8, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cd-account-button:hover,
.cd-icon-button:hover {
    border-top-color: rgba(148, 211, 249, 0.38);
    border-right-color: rgba(148, 211, 249, 0.38);
    border-bottom-color: rgba(8, 21, 40, 0.72);
    border-left-color: rgba(8, 21, 40, 0.72);
    background: linear-gradient(105deg, rgba(22, 61, 92, 0.96), rgba(19, 71, 101, 0.92) 58%, rgba(16, 77, 84, 0.84)) padding-box;
    box-shadow: 0 17px 36px rgba(0, 7, 22, 0.28), inset 3px 0 0 #4da9ff, inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .cd-account-button,
html[data-theme="light"] .cd-icon-button {
    border-top-color: rgba(255, 255, 255, 0.98);
    border-right-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(81, 143, 183, 0.18);
    border-left-color: rgba(81, 143, 183, 0.18);
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72)) padding-box;
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.12), inset 3px 0 0 #2d87c8, inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-account-button:hover,
html[data-theme="light"] .cd-icon-button:hover {
    border-bottom-color: rgba(69, 127, 166, 0.24);
    border-left-color: rgba(69, 127, 166, 0.24);
    background: linear-gradient(105deg, rgba(220, 237, 250, 0.94), rgba(232, 247, 253, 0.96) 58%, rgba(226, 249, 245, 0.9)) padding-box;
    box-shadow: 0 19px 39px rgba(47, 91, 124, 0.16), inset 3px 0 0 #1473e6, inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-form-section::before {
    display: none;
}

.cd-section-heading .cd-readonly-badge {
    margin-left: auto;
}

.cd-page-heading.cd-page-banner {
    --cd-page-banner-actions-space: 0px;
    position: relative;
    min-height: 118px;
    height: 118px;
    display: block;
    margin-bottom: 28px;
    padding: 0;
    overflow: visible;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-page-banner-surface {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 24px;
    clip-path: none;
    background:
        radial-gradient(circle at 84% 20%, rgba(104, 75, 184, 0.28), transparent 17rem) padding-box,
        radial-gradient(circle at 96% 110%, rgba(45, 189, 187, 0.2), transparent 16rem) padding-box,
        linear-gradient(112deg, rgba(11, 35, 61, 0.98), rgba(7, 27, 48, 0.97) 58%, rgba(7, 39, 51, 0.96)) padding-box,
        linear-gradient(118deg, rgba(112, 190, 241, 0.4), rgba(91, 97, 190, 0.28), rgba(45, 189, 187, 0.18)) border-box;
    box-shadow: 0 22px 54px rgba(0, 7, 24, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    filter: none;
}

.cd-page-banner-surface::before,
.cd-page-banner-surface::after {
    position: absolute;
    z-index: 1;
    display: block;
    content: "";
    pointer-events: none;
}

.cd-page-banner-surface::before {
    top: -72px;
    right: clamp(70px, 12vw, 180px);
    width: 280px;
    height: 210px;
    border: 1px solid rgba(111, 199, 246, 0.18);
    border-radius: 48% 52% 43% 57% / 58% 42% 58% 42%;
    background: linear-gradient(135deg, rgba(77, 169, 255, 0.12), rgba(130, 88, 200, 0.09), rgba(45, 189, 187, 0.06));
    box-shadow: 0 0 0 26px rgba(77, 169, 255, 0.025), 0 0 0 52px rgba(130, 88, 200, 0.018);
    transform: rotate(-12deg);
}

.cd-page-banner-surface::after {
    top: 50%;
    right: 38px;
    width: 82px;
    height: 82px;
    border: 14px solid rgba(45, 189, 187, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(45, 189, 187, 0.12), inset 0 0 26px rgba(77, 169, 255, 0.08);
    transform: translateY(-50%);
}

.cd-page-banner-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(4, 17, 32, 0.24), transparent 54%),
        linear-gradient(112deg, transparent 64%, rgba(45, 189, 187, 0.05));
    pointer-events: none;
}

.cd-page-banner-overlay::before,
.cd-page-banner-overlay::after {
    position: absolute;
    display: block;
    border-radius: 999px;
    content: "";
}

.cd-page-banner-overlay::before {
    top: 24px;
    right: clamp(150px, 20vw, 300px);
    width: 116px;
    height: 8px;
    background: linear-gradient(90deg, rgba(77, 169, 255, 0.74), rgba(45, 189, 187, 0.22), transparent);
    box-shadow: 0 0 18px rgba(77, 169, 255, 0.18);
}

.cd-page-banner-overlay::after {
    right: clamp(116px, 16vw, 230px);
    bottom: 23px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(253, 184, 22, 0.3);
    background: radial-gradient(circle, rgba(253, 184, 22, 0.22), rgba(253, 184, 22, 0.03) 58%, transparent 62%);
    box-shadow: 0 0 25px rgba(253, 184, 22, 0.1);
}

.cd-page-banner-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px clamp(24px, 3.5vw, 48px);
    text-align: left;
}

.cd-page-heading-has-actions .cd-page-banner-content {
    padding-right: calc(var(--cd-page-banner-actions-space, 0px) + clamp(24px, 3.5vw, 48px));
}

.cd-page-banner-content h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(25px, 2.25vw, 28px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.cd-page-banner-content p {
    max-width: 680px;
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.cd-page-banner-actions {
    position: absolute;
    z-index: 6;
    top: 50%;
    right: clamp(18px, 2.4vw, 32px);
    bottom: auto;
    width: auto;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

.cd-document-banner-meta {
    margin-top: 8px;
}

html[data-theme="light"] .cd-page-banner-surface::before {
    border-color: rgba(44, 132, 200, 0.14);
    background: linear-gradient(135deg, rgba(44, 132, 200, 0.09), rgba(130, 88, 200, 0.07), rgba(45, 189, 187, 0.06));
}

html[data-theme="light"] .cd-page-banner-surface::after {
    border-color: rgba(45, 189, 187, 0.13);
}

html[data-theme="light"] .cd-page-banner-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 54%),
        linear-gradient(112deg, transparent 64%, rgba(45, 189, 187, 0.035));
}

html[data-theme="light"] .cd-page-banner-content h1 {
    color: #15364e;
}

html[data-theme="light"] .cd-document-banner-meta {
    color: #607b8f;
}

.cd-auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.cd-auth-brand {
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-bottom: 24px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.cd-auth-brand-logo {
    width: 154px;
    height: 42px;
    object-fit: contain;
}

.cd-auth-brand-logo-light {
    display: none;
}

html[data-theme="light"] .cd-auth-brand-logo-dark {
    display: none;
}

html[data-theme="light"] .cd-auth-brand-logo-light {
    display: block;
}

.cd-auth-emblem {
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    left: auto;
    pointer-events: none;
    transform-origin: center;
}

.cd-auth-emblem .cd-dashboard-core img {
    filter: drop-shadow(0 0 12px rgba(255, 220, 112, 0.74)) drop-shadow(0 0 28px rgba(77, 169, 255, 0.44));
}

html[data-theme="light"] .cd-auth-card {
    border-color: transparent;
}

html[data-theme="light"] .cd-auth-heading h1,
html[data-theme="light"] .cd-auth-card-centered h1 {
    color: #15364e;
}

html[data-theme="light"] .cd-auth-heading p,
html[data-theme="light"] .cd-auth-card-centered p {
    color: #607b8f;
}

@media (max-width: 960px) {
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions {
        --cd-page-banner-actions-space: 340px;
    }
}

@media (max-width: 767px) {
    .cd-page-heading.cd-page-banner {
        min-height: 104px;
        height: 104px;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions {
        margin-bottom: 78px;
    }

    .cd-page-banner-surface {
        border-radius: 20px;
    }

    .cd-page-banner-content {
        padding: 20px 118px 20px 22px;
    }

    .cd-page-heading-has-actions .cd-page-banner-content {
        padding-right: 22px;
    }

    .cd-page-banner-content h1 {
        font-size: clamp(24px, 6vw, 28px);
    }

    .cd-page-banner-content p,
    .cd-document-banner-meta {
        display: none;
    }

    .cd-page-banner-surface::before {
        right: -20px;
    }

    .cd-page-banner-surface::after {
        right: 24px;
        width: 66px;
        height: 66px;
        border-width: 11px;
    }

    .cd-page-banner-overlay::before,
    .cd-page-banner-overlay::after {
        display: none;
    }

    .cd-page-heading-has-actions .cd-page-banner-surface::before,
    .cd-page-heading-has-actions .cd-page-banner-surface::after {
        opacity: 0.48;
    }

    .cd-page-heading-has-actions .cd-page-banner-actions {
        top: auto;
        right: 0;
        bottom: -58px;
        transform: none;
    }
}

@media (max-width: 576px) {

    .cd-page-banner-content {
        padding-right: 96px;
        padding-left: 20px;
    }

    .cd-page-heading-has-actions .cd-page-banner-content {
        padding-right: 20px;
    }

    .cd-section-heading {
        flex-wrap: wrap;
    }

    .cd-section-heading .cd-readonly-badge {
        width: 100%;
        margin: 10px 0 0;
        justify-content: center;
    }

    .cd-auth-body {
        padding: 22px 16px;
    }

    .cd-auth-card {
        border-radius: 24px;
    }
}
html[data-theme="light"] .cd-page-heading.cd-page-banner .cd-page-banner-content h1 {
    color: #15364e !important;
    text-shadow: none;
}

.cd-topbar-actions .cd-account-button,
.cd-topbar-actions .cd-icon-button {
    border-left-color: rgba(120, 190, 234, 0.07);
    box-shadow: 0 16px 34px rgba(0, 7, 22, 0.28), inset 1px 0 0 rgba(77, 169, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cd-topbar-actions .cd-account-button:hover,
.cd-topbar-actions .cd-icon-button:hover {
    border-left-color: rgba(148, 211, 249, 0.1);
    box-shadow: 0 19px 40px rgba(0, 7, 22, 0.34), inset 1px 0 0 rgba(111, 190, 255, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.cd-topbar-actions a.cd-account-button:hover,
.cd-topbar-actions a.cd-account-button:focus-visible,
a.cd-account-button.header-profile-item:hover,
a.cd-account-button.header-profile-item:focus-visible {
    color: var(--cd-text);
    text-decoration: none;
}

html[data-theme="light"] .cd-topbar-actions .cd-account-button,
html[data-theme="light"] .cd-topbar-actions .cd-icon-button {
    border-left-color: rgba(81, 143, 183, 0.045);
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.15), inset 1px 0 0 rgba(45, 135, 200, 0.32), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-topbar-actions .cd-account-button:hover,
html[data-theme="light"] .cd-topbar-actions .cd-icon-button:hover {
    border-left-color: rgba(69, 127, 166, 0.065);
    box-shadow: 0 20px 40px rgba(47, 91, 124, 0.19), inset 1px 0 0 rgba(20, 115, 230, 0.42), inset 0 1px 0 #ffffff;
}

.cd-page-heading.cd-page-banner.cd-page-heading-has-actions {
    --cd-page-banner-actions-space: clamp(170px, 17vw, 220px);
}

.cd-document-banner-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cd-document-banner-copy {
    min-width: 0;
}

.cd-document-banner-title-row .cd-document-back-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    margin: 0;
    border-color: rgba(144, 196, 233, 0.2);
    background: rgba(5, 24, 43, 0.48);
    box-shadow: 0 12px 25px rgba(0, 7, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cd-document-banner-title-row .cd-document-back-button:hover,
.cd-document-banner-title-row .cd-document-back-button:focus-visible {
    background: rgba(30, 80, 126, 0.7);
}

html[data-theme="light"] .cd-document-banner-title-row .cd-document-back-button {
    border-color: rgba(60, 104, 137, 0.14);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 25px rgba(46, 79, 103, 0.12), inset 0 1px 0 #ffffff;
    color: #173d58;
}

.cd-document-name-cell,
.cd-document-data-cell {
    min-width: 0;
    display: flex;
    align-items: center;
}

.cd-document-name-cell {
    gap: 12px;
}

.cd-document-data-cell {
    gap: 9px;
}

.cd-document-data-cell > i {
    flex: 0 0 auto;
    color: #668aa4;
    font-size: 14px;
}

.cd-document-data-cell > span,
.cd-document-data-cell time {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="light"] .cd-document-data-cell > i {
    color: #7890a2;
}

.cd-pdf-viewer {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-pdf-stage {
    position: relative;
    min-height: 760px;
    height: max(760px, calc(100vh - 272px));
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.cd-pdf-frame-shell {
    height: 100%;
    transition: width 180ms ease;
}

html[data-theme="dark"] .cd-pdf-viewer,
html[data-theme="dark"] .cd-pdf-stage,
html[data-theme="dark"] .cd-pdf-frame-shell {
    background: #061523 !important;
}

.cd-pdf-frame-shell.is-zoomed-out {
    margin-right: auto;
    margin-left: auto;
}

.cd-pdf-loading {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 24px;
    font-size: 13px;
    text-align: center;
}

.cd-pdf-loading[hidden],
.cd-icon-button[hidden] {
    display: none !important;
}

.cd-pdf-statusbar {
    position: relative;
    min-height: 43px;
    height: 43px;
    display: flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 15px;
    border-top: 1px solid rgba(118, 156, 185, 0.15);
    border-radius: 0 0 25px 25px;
    background: rgba(5, 20, 34, 0.98);
    color: #8fa7ba;
    font-size: 13px;
}

.cd-pdf-statusbar .document-editor-statusbar-left,
.cd-pdf-statusbar .document-editor-statusbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-pdf-statusbar .document-editor-statusbar-left > span + span {
    position: relative;
    padding-left: 11px;
}

.cd-pdf-statusbar .document-editor-statusbar-left > span + span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: 0.55;
    transform: translateY(-50%);
}

.cd-pdf-statusbar .document-editor-statusbar-zoom-button,
.cd-pdf-statusbar .document-editor-statusbar-fit,
.cd-pdf-statusbar .document-editor-statusbar-mobile-fit {
    min-width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid rgba(116, 158, 191, 0.17);
    border-radius: 9px;
    background: rgba(20, 47, 69, 0.54);
    color: #b5c9d8;
    font: inherit;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.cd-pdf-statusbar .document-editor-statusbar-zoom-button:hover,
.cd-pdf-statusbar .document-editor-statusbar-fit:hover,
.cd-pdf-statusbar .document-editor-statusbar-mobile-fit:hover {
    border-color: rgba(77, 169, 255, 0.36);
    background: rgba(32, 79, 112, 0.7);
    color: #ffffff;
}

.cd-pdf-statusbar .document-editor-statusbar-zoom-button:disabled {
    cursor: default;
    opacity: 0.38;
}

.cd-pdf-statusbar .document-editor-statusbar-zoom-slider {
    width: 112px;
    accent-color: #6b7fe8;
}

.cd-pdf-statusbar .document-editor-statusbar-zoom-percent,
.cd-pdf-statusbar .document-editor-statusbar-mobile-zoom-percent {
    min-width: 38px;
    color: #c7d8e5;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.cd-pdf-statusbar .document-editor-statusbar-mobile-zoom-percent,
.cd-pdf-statusbar .document-editor-statusbar-mobile-fit {
    display: none;
}

html[data-theme="light"] .cd-pdf-viewer,
html[data-theme="light"] .cd-pdf-stage {
    background: #ffffff !important;
}

html[data-theme="light"] .cd-pdf-statusbar {
    border-color: rgba(66, 102, 130, 0.13);
    background: rgba(248, 252, 255, 0.98);
    color: #6f8697;
}

html[data-theme="light"] .cd-pdf-statusbar .document-editor-statusbar-zoom-button,
html[data-theme="light"] .cd-pdf-statusbar .document-editor-statusbar-fit,
html[data-theme="light"] .cd-pdf-statusbar .document-editor-statusbar-mobile-fit {
    border-color: rgba(64, 104, 135, 0.14);
    background: rgba(227, 239, 247, 0.72);
    color: #365b74;
}

html[data-theme="light"] .cd-pdf-statusbar .document-editor-statusbar-zoom-percent,
html[data-theme="light"] .cd-pdf-statusbar .document-editor-statusbar-mobile-zoom-percent {
    color: #284b63;
}

.cd-auth-card::before {
    border-color: rgba(147, 89, 220, 0.16);
}

.cd-auth-card .cd-button-primary {
    border-color: rgba(158, 105, 229, 0.45);
    background: linear-gradient(105deg, #8e55d8, #5b68df 52%, #377fe8);
    box-shadow: 0 16px 34px rgba(69, 71, 198, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cd-auth-card .cd-button-primary:hover,
.cd-auth-card .cd-button-primary:focus-visible {
    background: linear-gradient(105deg, #9c63e2, #6677e8 52%, #438cf0);
    box-shadow: 0 20px 40px rgba(69, 71, 198, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cd-auth-card .cd-field input:focus {
    border-color: rgba(114, 102, 225, 0.76);
    box-shadow: 0 0 0 4px rgba(101, 89, 218, 0.12);
}

.cd-auth-link,
.cd-auth-link:hover {
    color: #a987f0;
}

.cd-auth-emblem {
    width: 380px;
    height: 380px;
    opacity: 0.15;
    transform: translate(28%, -31%) scale(5.4);
    filter: saturate(1.05) hue-rotate(16deg);
}

.cd-auth-emblem .cd-dashboard-emblem-ring {
    border-color: rgba(128, 99, 224, 0.34);
    box-shadow: 0 0 22px rgba(95, 96, 224, 0.18), inset 0 0 22px rgba(92, 125, 237, 0.08);
}

.cd-auth-emblem .cd-dashboard-emblem-ring::before,
.cd-auth-emblem .cd-dashboard-emblem-ring::after {
    background: #7f6be2;
    box-shadow: 0 0 20px rgba(92, 106, 230, 0.76);
}

html[data-theme="light"] .cd-auth-card::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(227, 232, 255, 0.9), transparent);
}

html[data-theme="light"] .cd-auth-card .cd-button-primary {
    color: #ffffff;
}

html[data-theme="light"] .cd-auth-link,
html[data-theme="light"] .cd-auth-link:hover {
    color: #6a50bd;
}

html[data-theme="light"] .cd-auth-emblem {
    opacity: 0.09;
}

@media (max-width: 767px) {
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions {
        --cd-page-banner-actions-space: 0px;
    }

    .cd-document-banner-title-row {
        gap: 11px;
    }

    .cd-document-banner-title-row .cd-document-back-button {
        width: 38px;
        height: 38px;
        display: inline-grid;
        flex-basis: 38px;
    }

    .cd-pdf-stage {
        min-height: 640px;
        height: max(640px, calc(100vh - 248px));
    }

    .cd-auth-emblem {
        transform: translate(36%, -38%) scale(3.8);
        opacity: 0.12;
    }
}

@media (max-width: 640px) {

    .cd-document-name-cell {
        align-items: flex-start;
    }

    .cd-document-data-cell > span,
    .cd-document-data-cell time {
        white-space: normal;
    }

    .cd-pdf-frame-shell {
        min-width: 360px;
    }

    .cd-pdf-statusbar {
        height: 45px;
        min-height: 45px;
        padding: 0 10px;
    }

    .cd-pdf-statusbar .document-editor-statusbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .cd-pdf-statusbar .document-editor-statusbar-right {
        position: absolute;
        right: 10px;
    }

    .cd-pdf-statusbar .document-editor-statusbar-right .document-editor-statusbar-zoom-slider,
    .cd-pdf-statusbar .document-editor-statusbar-right .document-editor-statusbar-zoom-percent,
    .cd-pdf-statusbar .document-editor-statusbar-right .document-editor-statusbar-fit {
        display: none;
    }

    .cd-pdf-statusbar .document-editor-statusbar-mobile-zoom-percent,
    .cd-pdf-statusbar .document-editor-statusbar-mobile-fit {
        display: inline-grid;
    }

    .cd-pdf-statusbar .document-editor-statusbar-left {
        padding-right: 72px;
    }
}

/* ==================== 08. Reports, SEO, audit and task report interfaces ==================== */
.cd-report-page {
    padding-bottom: 48px;
}

.cd-report-banner-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cd-report-banner-copy h1 {
    min-width: 0;
    margin: 0;
}

.cd-report-banner-period {
    min-height: 34px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(132, 218, 241, 0.2);
    border-radius: 999px;
    color: #bdd2e2;
    background: rgba(4, 20, 33, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.cd-report-banner-period i {
    color: #75d8ef;
}

.cd-report-page-actions {
    gap: 9px;
}

.cd-report-page-actions .cd-report-download-button {
    white-space: nowrap;
}

.cd-report-page-actions .cd-report-download-button span {
    font-size: 12px;
    font-weight: 780;
}

.cd-report-page-actions .cd-profile-banner-add {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto;
    gap: 8px;
    padding: 0 14px;
    white-space: nowrap;
}

.cd-report-page-actions .cd-profile-banner-add span {
    display: inline;
}

.cd-report-workspace {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-color: rgba(119, 199, 225, 0.16);
}

.cd-report-workspace::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 219, 247, 0.56), rgba(82, 199, 201, 0.24), transparent);
    content: "";
    pointer-events: none;
}

.cd-report-toolbar,
.cd-report-tabs,
.cd-report-content,
.cd-report-empty-state {
    position: relative;
    z-index: 1;
}

.cd-report-toolbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(126, 178, 207, 0.13);
}

.cd-report-toolbar-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.cd-report-toolbar-icon,
.cd-report-section-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(105, 217, 242, 0.24);
    color: #74d8ef;
    background: linear-gradient(145deg, rgba(71, 190, 220, 0.13), rgba(42, 142, 173, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 8, 18, 0.16);
}

.cd-report-toolbar-icon {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    font-size: 15px;
}

.cd-report-toolbar-copy > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.cd-report-toolbar-copy strong {
    color: #eef8fc;
    font-size: 14px;
    font-weight: 800;
}

.cd-report-toolbar-copy span:not(.cd-report-toolbar-icon) {
    color: var(--cd-muted);
    font-size: 12px;
}

.cd-report-month-form {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.cd-report-month-form > label {
    margin: 0;
    color: #9eb4c5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cd-report-month-select-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    color: #6bd4ec;
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.cd-report-month-select-wrap select {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 39px;
    border: 1px solid rgba(109, 184, 213, 0.22);
    border-radius: 14px;
    outline: 0;
    color: #eaf6fb;
    background-color: rgba(5, 20, 32, 0.72);
    box-shadow: 0 12px 28px rgba(0, 7, 16, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    cursor: pointer;
    font-size: 13px;
    font-weight: 740;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    appearance: none;
}

.cd-report-month-select-wrap::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #76bfd4;
    border-bottom: 2px solid #76bfd4;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.cd-report-month-select-wrap select:hover,
.cd-report-month-select-wrap select:focus {
    border-color: rgba(101, 213, 239, 0.48);
    background-color: rgba(8, 27, 41, 0.9);
    box-shadow: 0 14px 32px rgba(0, 7, 16, 0.24), 0 0 0 3px rgba(72, 187, 216, 0.08);
}

.cd-report-month-select-wrap option {
    color: #eaf6fb;
    background: #0c1d2a;
}

.cd-report-tabs,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs {
    align-items: center;
    overflow-x: auto;
    scrollbar-width: thin;
}

.cd-report-tab,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link {
    flex: 0 0 auto;
    gap: 9px;
    font-size: 12px;
}

.cd-report-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #58778b;
    box-shadow: 0 0 0 4px rgba(88, 119, 139, 0.08);
}

.cd-report-tab.is-active .cd-report-tab-dot {
    background: #69daf1;
    box-shadow: 0 0 0 4px rgba(105, 218, 241, 0.11), 0 0 15px rgba(105, 218, 241, 0.46);
}

.cd-report-content {
    display: grid;
    gap: 18px;
    padding: 22px 24px 26px;
}

.cd-report-section {
    overflow: hidden;
    border: 1px solid rgba(121, 177, 205, 0.13);
    border-radius: 18px;
}

.cd-report-section-heading {
    margin: 0;
    padding: 13px 16px;
    background: linear-gradient(110deg, rgba(24, 51, 68, 0.45), rgba(12, 31, 44, 0.2));
}

.cd-report-section-heading > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.cd-report-section-heading h2 {
    margin: 0;
    color: #eaf6fb;
    font-size: 14px;
    font-weight: 820;
    letter-spacing: -0.01em;
}

.cd-report-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 12px;
}

.cd-report-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cd-report-data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    color: #d7e7f0;
}

.cd-report-data-table th,
.cd-report-data-table td {
    padding: 13px 15px;
    border-right: 1px solid rgba(122, 174, 200, 0.08);
    border-bottom: 1px solid rgba(122, 174, 200, 0.085);
    text-align: left;
    vertical-align: middle;
}

.cd-report-data-table th:last-child,
.cd-report-data-table td:last-child {
    border-right: 0;
}

.cd-report-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.cd-report-data-table thead th,
.cd-listing-table-admin thead th {
    white-space: nowrap;
}

.cd-report-data-table tbody td:first-child {
    color: #edf7fb;
    font-weight: 750;
}

.cd-report-keyword-context-row td {
    padding-top: 16px;
    padding-bottom: 16px;
    color: #e8f6fb;
    background: linear-gradient(90deg, rgba(59, 168, 199, 0.13), rgba(54, 143, 172, 0.035));
}

.cd-report-keyword-context-row strong {
    display: block;
    font-size: 13px;
}

.cd-report-keyword-context-row span {
    display: block;
    margin-top: 3px;
    color: #93adbd;
    font-weight: 500;
}

.cd-report-keyword-group-row td {
    color: #8edcf0;
    background: rgba(26, 62, 79, 0.34);
    font-weight: 820;
    letter-spacing: 0.03em;
}

.cd-report-keyword-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cd-report-keyword-name.is-positive {
    color: #8fe4bb;
}

.cd-report-keyword-name i {
    color: #ffd476;
}

.cd-report-keyword-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cd-report-keyword-statuses span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(125, 170, 196, 0.14);
    border-radius: 999px;
    color: #a9bdca;
    background: rgba(255, 255, 255, 0.025);
    font-weight: 820;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cd-report-keyword-statuses .is-new {
    border-color: rgba(106, 213, 239, 0.22);
    color: #8de0f2;
    background: rgba(58, 168, 198, 0.09);
}

.cd-report-keyword-statuses .is-up {
    border-color: rgba(104, 222, 166, 0.22);
    color: #8ee2b8;
    background: rgba(55, 170, 119, 0.09);
}

.cd-report-keyword-statuses .is-favorite {
    border-color: rgba(255, 204, 104, 0.22);
    color: #f2ca78;
    background: rgba(195, 144, 44, 0.08);
}

.cd-report-section-empty {
    padding: 25px 18px;
    color: #839bab;
    font-size: 12px;
    text-align: center;
}

.cd-report-empty-state {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 24px;
    color: #8da4b5;
    text-align: center;
}

.cd-report-empty-state > span {
    width: 66px;
    height: 66px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 17px;
    border: 1px solid rgba(113, 196, 219, 0.18);
    border-radius: 22px;
    color: #6fd2e9;
    background: linear-gradient(145deg, rgba(54, 162, 191, 0.11), rgba(30, 91, 115, 0.035));
    box-shadow: 0 18px 40px rgba(0, 8, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 23px;
}

.cd-report-empty-state strong {
    color: #e5f2f7;
    font-size: 15px;
    font-weight: 820;
}

.cd-report-empty-state p {
    margin: 5px 0 0;
    color: #8097a8;
    font-size: 12px;
}

.cd-report-export-content {
    overflow: hidden;
    padding: 24px;
    color: #d8e5ec;
    background: rgba(4, 17, 27, 0.24);
    overflow-wrap: anywhere;
}

.cd-report-export-content > :first-child {
    margin-top: 0 !important;
}

.cd-report-export-content > :last-child {
    margin-bottom: 0 !important;
}

.cd-report-export-content h1,
.cd-report-export-content h2,
.cd-report-export-content h3,
.cd-report-export-content h4,
.cd-report-export-content h5,
.cd-report-export-content h6 {
    color: #eef8fc !important;
    line-height: 1.3;
}

.cd-report-export-content p,
.cd-report-export-content li,
.cd-report-export-content div,
.cd-report-export-content span {
    max-width: 100%;
}

.cd-report-export-content a {
    color: #78d9ef !important;
    text-decoration: underline;
    text-decoration-color: rgba(120, 217, 239, 0.35);
    text-underline-offset: 3px;
}

.cd-report-export-content img,
.cd-report-export-content svg,
.cd-report-export-content canvas {
    max-width: 100% !important;
    height: auto !important;
}

.cd-report-export-content table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0 !important;
    border-collapse: collapse !important;
    color: #d9e7ee !important;
    background: transparent !important;
    table-layout: auto;
}

.cd-report-export-content th,
.cd-report-export-content td {
    min-width: 0 !important;
    padding: 10px 11px !important;
    border: 1px solid rgba(123, 175, 201, 0.14) !important;
    color: inherit !important;
    background: rgba(8, 27, 40, 0.38) !important;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.cd-report-export-content th {
    color: #9cc0d2 !important;
    background: rgba(20, 48, 65, 0.72) !important;
    letter-spacing: 0.03em;
}

.cd-report-export-content tr:nth-child(even) td {
    background: rgba(13, 34, 48, 0.42) !important;
}

.cd-report-export-content [style*="page-break"] {
    break-after: auto !important;
    page-break-after: auto !important;
}

.cd-report-export-content [width] {
    max-width: 100% !important;
}

.cd-report-audit-content,
.cd-report-task-content {
    overflow-x: auto;
}

.cd-report-competitor-content {
    padding: 18px;
}

html[data-theme="light"] .cd-report-banner-period {
    border-color: rgba(71, 127, 165, 0.17);
    color: #42627a;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-report-banner-period i {
    color: #297fae;
}

html[data-theme="light"] .cd-report-workspace {
    border-color: rgba(64, 111, 145, 0.13);
}

html[data-theme="light"] .cd-report-workspace::before {
    background: linear-gradient(90deg, transparent, rgba(49, 139, 181, 0.34), rgba(49, 169, 163, 0.17), transparent);
}

html[data-theme="light"] .cd-report-toolbar {
    border-bottom-color: rgba(64, 105, 134, 0.11);
}

html[data-theme="light"] .cd-report-toolbar-icon,
html[data-theme="light"] .cd-report-section-icon {
    border-color: rgba(45, 132, 169, 0.16);
    color: #2a83ad;
    background: linear-gradient(145deg, rgba(201, 232, 244, 0.78), rgba(224, 243, 247, 0.52));
    box-shadow: inset 0 1px 0 #ffffff, 0 10px 22px rgba(61, 104, 132, 0.08);
}

html[data-theme="light"] .cd-report-toolbar-copy strong,
html[data-theme="light"] .cd-report-section-heading h2 {
    color: #28495f;
}

html[data-theme="light"] .cd-report-toolbar-copy span:not(.cd-report-toolbar-icon),
html[data-theme="light"] .cd-report-month-form > label {
    color: #6a8293;
}

html[data-theme="light"] .cd-report-month-select-wrap > i {
    color: #2e84ab;
}

html[data-theme="light"] .cd-report-month-select-wrap select {
    border-color: rgba(62, 112, 145, 0.15);
    color: #294b61;
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 26px rgba(49, 84, 107, 0.08), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-report-month-select-wrap select:hover,
html[data-theme="light"] .cd-report-month-select-wrap select:focus {
    border-color: rgba(43, 131, 169, 0.34);
    background-color: #ffffff;
    box-shadow: 0 14px 30px rgba(49, 84, 107, 0.11), 0 0 0 3px rgba(43, 131, 169, 0.07);
}

html[data-theme="light"] .cd-report-month-select-wrap option {
    color: #294b61;
    background: #ffffff;
}

html[data-theme="light"] .cd-report-tabs,
html[data-theme="light"].cd-theme-document .nav.nav-tabs,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs {
    border-bottom-color: rgba(63, 103, 132, 0.1);
}

html[data-theme="light"] .cd-report-tab,
html[data-theme="light"].cd-theme-document .nav.nav-tabs .nav-link,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link {
    border-color: rgba(63, 103, 132, 0.11);
    background: rgba(234, 244, 249, 0.58);
}

html[data-theme="light"] .cd-report-tab-dot {
    background: #8ba5b5;
}

html[data-theme="light"] .cd-report-tab.is-active .cd-report-tab-dot {
    background: #2f92bb;
    box-shadow: 0 0 0 4px rgba(47, 146, 187, 0.1);
}

html[data-theme="light"] .cd-report-section-heading {
    border-bottom-color: rgba(64, 106, 135, 0.1);
    background: linear-gradient(110deg, rgba(225, 240, 247, 0.68), rgba(244, 249, 251, 0.5));
}

html[data-theme="light"] .cd-report-data-table {
    color: #456477;
}

html[data-theme="light"] .cd-report-data-table th,
html[data-theme="light"] .cd-report-data-table td,
html[data-theme="light"] .cd-listing-table-admin thead th {
    border-right-color: rgba(64, 106, 135, 0.08);
    border-bottom-color: rgba(64, 106, 135, 0.09);
}

html[data-theme="light"] .cd-report-data-table tbody td:first-child {
    color: #294e65;
}

html[data-theme="light"] .cd-report-keyword-context-row td {
    color: #2c5268;
    background: linear-gradient(90deg, rgba(200, 231, 242, 0.72), rgba(231, 244, 247, 0.38));
}

html[data-theme="light"] .cd-report-keyword-context-row span {
    color: #718999;
}

html[data-theme="light"] .cd-report-keyword-group-row td {
    color: #2e7d9f;
    background: rgba(218, 237, 244, 0.7);
}

html[data-theme="light"] .cd-report-keyword-statuses span {
    border-color: rgba(65, 106, 134, 0.12);
    color: #6a8190;
    background: rgba(235, 244, 248, 0.72);
}

html[data-theme="light"] .cd-report-section-empty,
html[data-theme="light"] .cd-report-empty-state,
html[data-theme="light"] .cd-report-empty-state p {
    color: #718898;
}

html[data-theme="light"] .cd-report-empty-state > span {
    border-color: rgba(48, 136, 173, 0.15);
    color: #318aae;
    background: linear-gradient(145deg, rgba(205, 234, 245, 0.76), rgba(231, 244, 247, 0.56));
    box-shadow: 0 17px 36px rgba(61, 99, 123, 0.09), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-report-empty-state strong {
    color: #31556b;
}

html[data-theme="light"] .cd-report-export-content {
    color: #456373;
    background: rgba(249, 252, 253, 0.72);
}

html[data-theme="light"] .cd-report-export-content h1,
html[data-theme="light"] .cd-report-export-content h2,
html[data-theme="light"] .cd-report-export-content h3,
html[data-theme="light"] .cd-report-export-content h4,
html[data-theme="light"] .cd-report-export-content h5,
html[data-theme="light"] .cd-report-export-content h6 {
    color: #284d63 !important;
}

html[data-theme="light"] .cd-report-export-content a {
    color: #277da5 !important;
}

html[data-theme="light"] .cd-report-export-content table {
    color: #426071 !important;
}

html[data-theme="light"] .cd-report-export-content th,
html[data-theme="light"] .cd-report-export-content td {
    border-color: rgba(63, 104, 132, 0.13) !important;
    background: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="light"] .cd-report-export-content th {
    color: #58788b !important;
    background: rgba(222, 237, 244, 0.86) !important;
}

html[data-theme="light"] .cd-report-export-content tr:nth-child(even) td {
    background: rgba(239, 247, 250, 0.84) !important;
}

@media (max-width: 980px) {

    .cd-report-page-actions .cd-report-download-button span {
        display: none;
    }

    .cd-report-page-actions .cd-report-download-button {
        width: 42px;
        padding: 0;
    }

    .cd-report-page-actions .cd-profile-banner-add {
        width: auto !important;
        min-width: 0 !important;
        padding: 0 12px;
    }

    .cd-report-page-actions .cd-profile-banner-add span {
        display: inline;
    }

    .cd-report-toolbar {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report,
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-audit,
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-task-report {
        --cd-page-banner-actions-space: 0px;
    }

    .cd-report-banner-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .cd-report-banner-period {
        min-height: 29px;
        padding: 0 10px;
    }

    .cd-report-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 17px;
        padding: 18px;
    }

    .cd-report-month-form {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .cd-report-month-select-wrap {
        width: 100%;
        min-width: 0;
    }

    .cd-report-tabs {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cd-report-content,
    .cd-report-export-content {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .cd-report-toolbar-copy span:not(.cd-report-toolbar-icon) {
        display: none;
    }

    .cd-report-tab {
        max-width: 250px;
    }

    .cd-report-tab span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cd-report-content {
        gap: 13px;
        padding: 12px;
    }

    .cd-report-section {
        border-radius: 15px;
    }

    .cd-report-section-heading {
        min-height: 57px;
        padding: 10px 12px;
    }

    .cd-report-export-content,
    .cd-report-competitor-content {
        padding: 13px;
    }

    .cd-report-export-content table {
        min-width: 620px;
    }

    .cd-report-empty-state {
        min-height: 280px;
    }
}
.cd-page-banner-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cd-page-banner-title h1 {
    min-width: 0;
}

.cd-page-banner-title-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-grid;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(129, 174, 232, 0.28);
    border-radius: 16px;
    color: #e8f4ff;
    background:
        radial-gradient(circle at 76% 18%, rgba(130, 88, 200, 0.55), transparent 58%),
        linear-gradient(145deg, rgba(84, 69, 186, 0.84), rgba(44, 132, 200, 0.78));
    box-shadow: 0 16px 34px rgba(0, 10, 30, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

.cd-page-banner-title-icon::before {
    position: absolute;
    top: -22px;
    left: -26px;
    width: 46px;
    height: 78px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    content: "";
    transform: rotate(34deg);
}

.cd-page-banner-title-icon i {
    position: relative;
    z-index: 1;
}

html[data-theme="light"] .cd-page-banner-title-icon {
    border-color: rgba(83, 102, 178, 0.2);
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 18%, rgba(142, 91, 205, 0.72), transparent 58%),
        linear-gradient(145deg, #6655bb, #3689c7);
    box-shadow: 0 14px 30px rgba(64, 79, 145, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report,
.cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-audit,
.cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-task-report {
    --cd-page-banner-actions-space: 128px;
}

.cd-report-page-actions .cd-report-download-button {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: visible;
    padding: 0;
}

.cd-report-page-actions .cd-report-download-button.cd-profile-banner-add {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    gap: 8px;
    padding: 0 14px;
    white-space: nowrap;
}

.cd-report-page-actions .cd-report-download-button::before {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: 230px;
    padding: 7px 10px;
    border: 1px solid rgba(116, 168, 210, 0.18);
    border-radius: 9px;
    color: #e9f5fc;
    background: rgba(5, 18, 31, 0.96);
    box-shadow: 0 12px 30px rgba(0, 7, 18, 0.28);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px) scale(0.97);
    transform-origin: right bottom;
    transition: opacity 140ms ease, transform 140ms ease;
}

.cd-report-page-actions .cd-report-download-button:hover::before,
.cd-report-page-actions .cd-report-download-button:focus-visible::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

html[data-theme="light"] .cd-report-page-actions .cd-report-download-button::before {
    border-color: rgba(53, 92, 127, 0.14);
    color: #193a52;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(38, 66, 89, 0.18);
}

.cd-report-page-actions .cd-report-download-button.is-loading {
    border-color: rgba(111, 109, 225, 0.5);
    color: #ffffff;
    background: linear-gradient(145deg, rgba(105, 76, 196, 0.86), rgba(44, 132, 200, 0.84));
    cursor: wait;
    pointer-events: none;
}

.cd-report-page-actions .cd-report-download-button.is-loading::after {
    position: absolute;
    overflow: hidden;
    background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.24) 48%, transparent 74%);
    content: "";
    animation: cd-download-button-shine 1.05s linear infinite;
    pointer-events: none;
}

.cd-report-month-select-wrap::after {
    display: none;
}

.cd-report-month-select-wrap > .cd-report-month-chevron {
    color: #79bdd2;
    font-size: 12px;
    transition: color 150ms ease, transform 150ms ease;
}

.cd-report-month-select-wrap:hover > .cd-report-month-chevron {
    color: #a4e7f5;
    transform: translateY(-50%) rotate(180deg);
}

.cd-report-month-input,
.cd-report-month-select-wrap .flatpickr-input,
.cd-report-month-select-wrap .form-control {
    width: 100%;
    height: 46px;
    padding: 0 40px;
    border: 1px solid rgba(109, 184, 213, 0.22);
    border-radius: 14px;
    outline: 0;
    color: #eaf6fb;
    background: rgba(5, 20, 32, 0.72);
    box-shadow: 0 12px 28px rgba(0, 7, 16, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 740;
    line-height: 46px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.cd-report-month-input:hover,
.cd-report-month-input:focus,
.cd-report-month-select-wrap .flatpickr-input:hover,
.cd-report-month-select-wrap .flatpickr-input:focus,
.cd-report-month-select-wrap .form-control:hover,
.cd-report-month-select-wrap .form-control:focus {
    border-color: rgba(101, 213, 239, 0.48);
    background: rgba(8, 27, 41, 0.9);
    box-shadow: 0 14px 32px rgba(0, 7, 16, 0.24), 0 0 0 3px rgba(72, 187, 216, 0.08);
    transform: translateY(-1px);
}

html[data-theme="light"] .cd-report-month-input,
html[data-theme="light"] .cd-report-month-select-wrap .flatpickr-input,
html[data-theme="light"] .cd-report-month-select-wrap .form-control {
    border-color: rgba(67, 113, 148, 0.17);
    color: #294c64;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(46, 79, 103, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-report-month-input:hover,
html[data-theme="light"] .cd-report-month-input:focus,
html[data-theme="light"] .cd-report-month-select-wrap .flatpickr-input:hover,
html[data-theme="light"] .cd-report-month-select-wrap .flatpickr-input:focus,
html[data-theme="light"] .cd-report-month-select-wrap .form-control:hover,
html[data-theme="light"] .cd-report-month-select-wrap .form-control:focus {
    border-color: rgba(65, 128, 180, 0.36);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(46, 79, 103, 0.13), 0 0 0 3px rgba(82, 142, 190, 0.08);
}

.cd-report-month-select-wrap > .flatpickr-calendar {
    z-index: 1300 !important;
}

.cd-dashboard-module-task.is-month-picker-open {
    z-index: 20;
}

.cd-dashboard-module-task > .flatpickr-calendar {
    z-index: 40 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar {
    z-index: 1300 !important;
    overflow: hidden;
    border: 1px solid rgba(107, 176, 207, 0.2) !important;
    border-radius: 18px !important;
    background: #0a1e2e !important;
    box-shadow: 0 24px 60px rgba(0, 7, 18, 0.38) !important;
    font-family: inherit !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar::before,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar::after {
    display: none !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-months {
    padding: 8px 7px 0;
    background: linear-gradient(110deg, rgba(95, 69, 180, 0.16), rgba(39, 127, 177, 0.11));
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month input.cur-year,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-next-month {
    color: #eaf7fc !important;
    fill: #eaf7fc !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-months {
    gap: 4px;
    margin: 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month {
    width: calc(33.333% - 4px);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 9px 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #bad0de;
    background: rgba(255, 255, 255, 0.025);
    font-size: 13px;
    font-weight: 700;
    transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month:not(.flatpickr-disabled):hover,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month:not(.flatpickr-disabled):focus {
    border-color: rgba(105, 208, 233, 0.25);
    color: #ffffff;
    background: rgba(64, 151, 190, 0.16);
    transform: translateY(-1px);
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.selected,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.startRange,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.endRange {
    border-color: rgba(157, 150, 245, 0.44) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #7155bf, #3189c6) !important;
    box-shadow: 0 10px 22px rgba(56, 77, 169, 0.28) !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled:hover,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled:focus {
    border-color: transparent !important;
    color: rgba(159, 181, 196, 0.28) !important;
    background: rgba(255, 255, 255, 0.012) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar {
    border-color: rgba(61, 105, 137, 0.16) !important;
    background: #f8fcff !important;
    box-shadow: 0 24px 60px rgba(44, 74, 97, 0.22) !important;
}

html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-months, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-months {
    background: linear-gradient(110deg, rgba(109, 76, 187, 0.1), rgba(49, 137, 198, 0.08));
}

html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-current-month, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-current-month,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-current-month input.cur-year, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-current-month input.cur-year,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-months .flatpickr-prev-month, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-months .flatpickr-next-month, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-next-month {
    color: #27485e !important;
    fill: #27485e !important;
}

html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-monthSelect-month, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month {
    border-color: rgba(60, 104, 135, 0.06);
    color: #45677d;
    background: rgba(255, 255, 255, 0.72);
}

html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-monthSelect-month:not(.flatpickr-disabled):hover, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month:not(.flatpickr-disabled):hover,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-monthSelect-month:not(.flatpickr-disabled):focus, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month:not(.flatpickr-disabled):focus {
    border-color: rgba(66, 127, 175, 0.2);
    color: #173d58;
    background: #ffffff;
}

html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled:hover, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled:hover,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled:focus, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled:focus {
    color: rgba(75, 101, 118, 0.3) !important;
    background: rgba(220, 232, 239, 0.36) !important;
}

.cd-pdf-viewer,
.cd-pdf-stage,
.cd-pdf-frame-shell {
    background: #ffffff;
}

.cd-pdf-frame-shell {
    padding: 0 !important;
}

.cd-report-data-table {
    font-size: 15px;
    line-height: 1.5;
}

.cd-report-keyword-context-row span,
.cd-report-keyword-group-row td {
    font-size: 14px;
}

.cd-report-keyword-name i,
.cd-report-keyword-statuses span {
    font-size: 12px;
}

.cd-report-export-content {
    font-size: 16px;
    line-height: 1.65;
}

.cd-report-export-content table,
.cd-report-export-content table font,
.cd-report-export-content table p,
.cd-report-export-content table span,
.cd-report-export-content th,
.cd-report-export-content td {
    font-size: 16px !important;
    line-height: 1.55 !important;
}

.cd-report-export-content th {
    font-weight: 820 !important;
}

.cd-task-report-stats {
    display: grid;
    gap: 14px;
}

.cd-task-report-stat {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(107, 180, 211, 0.15);
    border-radius: 19px;
}

.cd-task-report-stat::after {
    position: absolute;
    border: 1px solid rgba(98, 198, 223, 0.1);
    border-radius: 50%;
    content: "";
}

.cd-representative-icon {
    position: relative;
    z-index: 2;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    display: inline-grid;
    flex: 0 0 48px;
    place-items: center;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid rgba(132, 210, 231, 0.28);
    border-radius: 16px;
    color: #effcff;
    background: linear-gradient(145deg, rgba(105, 76, 190, 0.94), rgba(43, 129, 180, 0.92) 62%, rgba(36, 151, 158, 0.9));
    box-shadow: 0 7px 17px rgba(2, 8, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
    transition: color 220ms ease, border-color 220ms ease, background 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cd-representative-icon > i {
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 1em;
    line-height: 1 !important;
    vertical-align: middle;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cd-representative-icon > i::before {
    display: block;
    margin: 0;
    line-height: 1 !important;
}

html[data-theme="light"] .cd-representative-icon {
    border-color: rgba(255, 255, 255, 0.8);
    color: #4f3d9f;
    background: linear-gradient(145deg, #ffffff, #e5edff);
    box-shadow: 0 6px 16px rgba(45, 50, 116, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="dark"] .cd-representative-icon {
    border-color: rgba(132, 210, 231, 0.28);
    color: #effcff;
    background: linear-gradient(145deg, rgba(105, 76, 190, 0.94), rgba(43, 129, 180, 0.92) 62%, rgba(36, 151, 158, 0.9));
    box-shadow: 0 7px 17px rgba(2, 8, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cd-representative-icon:hover,
.cd-representative-icon:focus-visible,
.cd-task-report-stat:hover .cd-representative-icon,
.cd-dashboard-overview-metric:hover .cd-representative-icon,
.cd-dashboard-audit-stat-card:hover .cd-representative-icon,
.cd-dashboard-grid-layout-task .cd-dashboard-task-total:hover .cd-representative-icon,
.cd-dashboard-grid-layout-task .cd-dashboard-task-stat:hover .cd-representative-icon,
html[data-theme="light"] .cd-representative-icon:hover,
html[data-theme="light"] .cd-representative-icon:focus-visible,
html[data-theme="dark"] .cd-representative-icon:hover,
html[data-theme="dark"] .cd-representative-icon:focus-visible {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(192, 149, 247, 0.34), transparent 12rem),
        radial-gradient(circle at 0 100%, rgba(70, 197, 221, 0.2), transparent 11rem),
        linear-gradient(145deg, #684fb6, #3788bd 64%, #2b9eab);
    box-shadow: 0 8px 19px rgba(25, 20, 75, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.21);
    outline: none;
    transform: scale(1.045);
}

.cd-representative-icon:hover > i,
.cd-representative-icon:focus-visible > i,
.cd-task-report-stat:hover .cd-representative-icon > i,
.cd-dashboard-overview-metric:hover .cd-representative-icon > i,
.cd-dashboard-audit-stat-card:hover .cd-representative-icon > i,
.cd-dashboard-grid-layout-task .cd-dashboard-task-total:hover .cd-representative-icon > i,
.cd-dashboard-grid-layout-task .cd-dashboard-task-stat:hover .cd-representative-icon > i {
    color: #ffffff;
    transform: scale(1.06);
}

.cd-task-report-stat > div {
    display: grid;
}

.cd-task-report-stat > div > span {
    color: #91acbd;
    font-weight: 760;
}

.cd-task-report-stat > div > strong {
    color: #f0f9fc;
    font-weight: 820;
    letter-spacing: -0.025em;
}

html[data-theme="light"] .cd-task-report-stat > div > span {
    color: #627e90;
}

html[data-theme="light"] .cd-task-report-stat > div > strong {
    color: #19384e;
}

.cd-icon-button,
.cd-account-button,
.cd-nav-item,
.cd-nav-button,
.cd-report-tab,
.cd-theme-option,
.cd-pdf-statusbar button {
    will-change: transform;
}

.cd-icon-button:active,
.cd-account-button:active,
.cd-nav-item:active,
.cd-nav-button:active,
.cd-report-tab:active,
.cd-theme-option:active,
.cd-pdf-statusbar button:active {
    transform: translateY(0) scale(0.96);
}

@keyframes cd-download-button-shine {
    from {
        transform: translateX(-115%);
    }
    to {
        transform: translateX(115%);
    }
}

@keyframes cd-heading-icon-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(-1.5deg);
    }
}

@keyframes cd-task-stat-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cd-page-banner-title-icon {
        animation: cd-heading-icon-float 4.8s ease-in-out infinite;
    }

    .cd-icon-button > i,
.cd-account-button > i,
.cd-icon-button > i,
.cd-nav-item > i,
.cd-report-tab > i,
.cd-theme-option > i,
.cd-pdf-statusbar button > i {
        transition: transform 170ms ease;
    }

    .cd-icon-button:hover > i,
.cd-account-button:hover > i,
.cd-icon-button:hover > i,
.cd-nav-item:hover > i,
.cd-report-tab:hover > i,
.cd-theme-option:hover > i,
.cd-pdf-statusbar button:hover > i {
        transform: scale(1.08) rotate(-3deg);
    }

    .cd-task-report-stat {
        animation: cd-task-stat-enter 480ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    .cd-task-report-stat:nth-child(2) {
        animation-delay: 70ms;
    }

    .cd-task-report-stat:nth-child(3) {
        animation-delay: 140ms;
    }

    .cd-task-report-stat:nth-child(4) {
        animation-delay: 210ms;
    }
}

@media (max-width: 1100px) {
    .cd-task-report-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report,
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-audit,
    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-task-report {
        --cd-page-banner-actions-space: 116px;
    }
}

@media (max-width: 767px) {
    .cd-page-banner-title {
        gap: 11px;
    }

    .cd-page-banner-title-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 14px;
        font-size: 16px;
    }

    .cd-report-banner-period {
        font-size: 12px;
    }

    .cd-report-page-actions .cd-report-download-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-representative-icon,
    .cd-representative-icon > i,
    .cd-page-banner-title-icon,
    .cd-task-report-stat,
    .cd-report-page-actions .cd-report-download-button.is-loading::after {
        animation: none !important;
    }
}
html[data-theme="light"] .cd-page-banner-content p {
    color: #58758a !important;
    text-shadow: none;
}

html[data-theme="light"] body.cd-auth-body::before {
    opacity: 0.78;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.98), transparent 24rem),
        radial-gradient(circle at 86% 12%, rgba(209, 229, 246, 0.68), transparent 30rem),
        radial-gradient(circle at 78% 92%, rgba(218, 244, 240, 0.52), transparent 32rem),
        linear-gradient(rgba(73, 127, 161, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 127, 161, 0.035) 1px, transparent 1px);
    background-size: auto, auto, auto, 46px 46px, 46px 46px;
    filter: none;
}

.cd-pdf-viewer,
.cd-pdf-stage,
.cd-pdf-frame-shell,
.cd-pdf-pages,
.cd-pdf-page,
.cd-pdf-page-canvas {
    background: #ffffff !important;
}

.cd-pdf-stage,
.cd-pdf-frame-shell,
.cd-pdf-pages {
    padding: 0 !important;
}

.cd-pdf-stage {
    align-items: flex-start;
    overflow: auto;
    background-image: none !important;
}

.cd-pdf-frame-shell {
    width: max-content !important;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 !important;
    border: 0 !important;
}

.cd-pdf-pages {
    width: max-content;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 0;
}

.cd-pdf-page {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(37, 74, 99, 0.1);
    box-shadow: 0 12px 30px rgba(18, 43, 61, 0.12);
    transition: width 160ms ease, box-shadow 160ms ease;
}

.cd-pdf-page:first-child {
    margin-top: 0;
}

.cd-pdf-page:last-child {
    margin-bottom: 0;
}

.cd-pdf-page-canvas {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
}

.cd-report-download-spinner,
.cd-document-button-spinner {
    display: inline-block;
    animation: cd-interface-spinner 720ms linear infinite !important;
    transform-origin: 50% 50%;
}

.cd-report-page-actions .cd-report-download-button.is-loading > .cd-report-download-spinner,
.cd-icon-button > .cd-document-button-spinner {
    transform: rotate(0deg);
}

@keyframes cd-interface-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month {
    align-items: center;
    justify-content: center;
}

html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-current-month input.cur-year, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-current-month input.cur-year {
    border-color: rgba(66, 116, 151, 0.13);
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-next-month {
    top: 7px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121, 151, 222, 0.14);
    border-radius: 11px;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover {
    border-color: rgba(119, 112, 228, 0.35);
    background: rgba(109, 91, 214, 0.12);
    transform: translateY(-1px);
}

.cd-task-report-stats {
    position: relative;
    z-index: 3;
    margin: 4px 0 22px;
    filter: drop-shadow(0 18px 28px rgba(0, 8, 20, 0.13));
}

.cd-task-report-stat {
    border-color: rgba(114, 176, 214, 0.18);
    background:
        radial-gradient(circle at 106% -12%, rgba(91, 104, 229, 0.2), transparent 10rem),
        radial-gradient(circle at -8% 114%, rgba(43, 185, 188, 0.12), transparent 10rem),
        linear-gradient(145deg, rgba(12, 34, 50, 0.98), rgba(6, 22, 35, 0.98));
    box-shadow: 0 18px 42px rgba(0, 8, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-task-report-stat::before {
    top: -36px;
    right: -30px;
}

.cd-task-report-stat::after {
    right: -22px;
    bottom: -34px;
    width: 104px;
    height: 104px;
    border-color: rgba(88, 198, 220, 0.13);
    box-shadow: 0 0 0 18px rgba(88, 198, 220, 0.025), 0 0 0 36px rgba(110, 94, 220, 0.018);
}

.cd-task-report-stat-decoration {
    position: absolute;
    z-index: -1;
    display: block;
    pointer-events: none;
}

.cd-task-report-stat-decoration-one {
    top: 14px;
    right: 18px;
    width: 54px;
    height: 1px;
    background: linear-gradient(90deg, rgba(167, 137, 240, 0.68), transparent);
    box-shadow: 0 0 14px rgba(125, 112, 235, 0.25);
}

.cd-task-report-stat-decoration-two {
    top: 24px;
    right: 22px;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(116, 210, 229, 0.48);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(116, 210, 229, 0.045), 0 0 16px rgba(116, 210, 229, 0.18);
}

html[data-theme="light"] .cd-task-report-stat {
    border-color: rgba(65, 105, 137, 0.14);
    background:
        radial-gradient(circle at 106% -12%, rgba(112, 91, 213, 0.12), transparent 10rem),
        radial-gradient(circle at -8% 114%, rgba(45, 178, 180, 0.1), transparent 10rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(237, 246, 251, 0.98));
    box-shadow: 0 18px 38px rgba(41, 72, 97, 0.12), inset 0 1px 0 #ffffff;
}

.cd-main table,
.cd-main table th,
.cd-main table td,
.cd-main table p,
.cd-main table span,
.cd-main table strong,
.cd-main table a,
.cd-main table small,
.cd-main table div,
.cd-main table li {
    line-height: 1.5;
}

.cd-main table i {
    font-size: 1em;
}

.cd-main table th {
    letter-spacing: 0.025em;
}

.cd-card:not(.cd-dashboard-base),
.cd-form-section,
.cd-report-workspace,
.cd-placeholder-card,
.cd-password-card {
    border: 1px solid transparent;
    background:
        radial-gradient(circle at 96% -10%, rgba(92, 84, 211, 0.085), transparent 21rem) padding-box,
        radial-gradient(circle at -5% 110%, rgba(44, 180, 184, 0.055), transparent 18rem) padding-box,
        linear-gradient(145deg, rgba(9, 27, 42, 0.97), rgba(5, 20, 33, 0.96)) padding-box,
        linear-gradient(126deg, rgba(120, 103, 226, 0.22), rgba(72, 151, 205, 0.18), rgba(45, 189, 187, 0.1)) border-box;
    box-shadow: 0 22px 52px rgba(0, 8, 19, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .cd-card:not(.cd-dashboard-base),
html[data-theme="light"] .cd-form-section,
html[data-theme="light"] .cd-report-workspace,
html[data-theme="light"] .cd-placeholder-card,
html[data-theme="light"] .cd-password-card {
    background:
        radial-gradient(circle at 96% -10%, rgba(107, 82, 201, 0.085), transparent 21rem) padding-box,
        radial-gradient(circle at -5% 110%, rgba(44, 180, 184, 0.06), transparent 18rem) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 247, 251, 0.98)) padding-box,
        linear-gradient(126deg, rgba(115, 93, 210, 0.2), rgba(63, 137, 187, 0.2), rgba(45, 175, 178, 0.1)) border-box;
    box-shadow: 0 22px 48px rgba(42, 75, 100, 0.11), inset 0 1px 0 #ffffff;
}

.cd-section-heading,
.cd-report-section-heading {
    position: relative;
    min-height: 54px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(100, 163, 196, 0.12);
}

.cd-section-heading::after,
.cd-report-section-heading::after {
    position: absolute;
    left: 0;
    width: min(150px, 36%);
    content: "";
}

.cd-report-section-icon {
    border: 1px solid rgba(137, 124, 231, 0.22);
    color: #9e91ec;
    background: linear-gradient(145deg, rgba(116, 90, 204, 0.18), rgba(44, 136, 191, 0.12));
    box-shadow: 0 10px 24px rgba(0, 7, 18, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .cd-report-section-icon {
    border-color: rgba(100, 78, 190, 0.16);
    color: #684fc1;
    background: linear-gradient(145deg, rgba(237, 229, 255, 0.94), rgba(222, 242, 250, 0.92));
    box-shadow: 0 10px 22px rgba(51, 79, 108, 0.1), inset 0 1px 0 #ffffff;
}

.cd-report-section,
.cd-report-table-wrap {
    border-color: rgba(94, 153, 188, 0.14);
    background: rgba(4, 18, 30, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

html[data-theme="light"] .cd-report-section,
html[data-theme="light"] .cd-report-table-wrap {
    border-color: rgba(56, 99, 129, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 #ffffff;
}

.cd-report-data-table thead th,
.cd-report-export-content table thead th {
    background:
        linear-gradient(90deg, rgba(101, 78, 194, 0.15), rgba(43, 132, 187, 0.1)),
        rgba(9, 29, 44, 0.94);
}

html[data-theme="light"] .cd-report-data-table thead th,
html[data-theme="light"] .cd-report-export-content table thead th {
    color: #294b63 !important;
    background:
        linear-gradient(90deg, rgba(111, 83, 201, 0.08), rgba(44, 137, 190, 0.065)),
        #eef6fa;
}

.cd-report-data-table tbody tr,
.cd-report-export-content table tbody tr {
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.cd-report-data-table tbody tr:hover,
.cd-report-export-content table tbody tr:hover {
    background: rgba(77, 141, 193, 0.07);
}

html[data-theme="light"] .cd-report-data-table tbody tr:hover,
html[data-theme="light"] .cd-report-export-content table tbody tr:hover {
    background: rgba(69, 137, 183, 0.065);
}

.cd-report-toolbar {
    border: 1px solid rgba(115, 150, 212, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(110, 81, 205, 0.12), transparent 14rem),
        linear-gradient(110deg, rgba(11, 34, 50, 0.92), rgba(7, 24, 38, 0.9));
    box-shadow: 0 15px 32px rgba(0, 8, 18, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .cd-report-toolbar {
    border-color: rgba(61, 101, 131, 0.11);
    background:
        radial-gradient(circle at 100% 0%, rgba(111, 81, 203, 0.08), transparent 14rem),
        linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 250, 0.96));
    box-shadow: 0 15px 30px rgba(45, 77, 101, 0.09), inset 0 1px 0 #ffffff;
}

.cd-alert,
.cd-button,
.cd-icon-button,
.cd-account-button,
.cd-report-tab,
.cd-nav-item,
.cd-field input,
.cd-field select {
    transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.cd-button:hover,
.cd-icon-button:hover,
.cd-account-button:hover {
    transform: translateY(-2px);
}

.cd-field input:not([readonly]):hover,
.cd-field select:not(:disabled):hover {
    box-shadow: 0 10px 22px rgba(0, 8, 20, 0.1);
}

html[data-theme="light"] .cd-field input:not([readonly]):hover,
html[data-theme="light"] .cd-field select:not(:disabled):hover {
    box-shadow: 0 10px 22px rgba(54, 87, 111, 0.09);
}

@media (prefers-reduced-motion: no-preference) {
    .cd-card:not(.cd-dashboard-base),
.cd-report-section,
.cd-form-section {
        animation: cd-interface-panel-enter 420ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    .cd-report-section:nth-child(2),
    .cd-form-section:nth-child(2) {
        animation-delay: 60ms;
    }

    .cd-report-section:nth-child(3),
    .cd-form-section:nth-child(3) {
        animation-delay: 110ms;
    }
}

@keyframes cd-interface-panel-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .cd-pdf-pages {
        gap: 10px;
    }

    .cd-task-report-stats {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-report-download-spinner,
.cd-document-button-spinner,
.cd-card:not(.cd-dashboard-base),
.cd-report-section,
.cd-form-section {
        animation: none !important;
    }
}

.cd-pdf-loading,
html[data-theme="light"] .cd-pdf-loading {
    background: rgba(255, 255, 255, 0.98);
    color: #31536a;
}

.cd-pdf-loading.is-error,
html[data-theme="light"] .cd-pdf-loading.is-error {
    color: #a92d48;
}

.cd-pdf-pages {
    box-sizing: border-box;
    padding: 28px 0 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month {
    left: 12.5%;
    width: 75%;
    height: 34px;
    display: block;
    padding-top: 7px;
    color: inherit;
    font-size: 135%;
    font-weight: 300;
    line-height: inherit;
    text-align: center;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month .numInputWrapper {
    width: 7ch;
    margin-left: 0.5ch;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month input.cur-year,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-current-month input.cur-year, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-current-month input.cur-year {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0 0 0 0.5ch;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-weight: 300;
    line-height: inherit;
    cursor: text;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month input.cur-year:focus,
html:where(.cd-theme-document)[data-theme="light"] .flatpickr-calendar .flatpickr-current-month input.cur-year:focus, html[data-theme="light"] :where(.cd-theme-scope) .flatpickr-calendar .flatpickr-current-month input.cur-year:focus {
    outline: 0;
    background: transparent;
    box-shadow: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month .numInputWrapper span.arrowUp,
:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar .flatpickr-current-month .numInputWrapper span.arrowDown {
    right: -2px;
    width: 16px;
    border: 0;
}

.cd-report-page > .cd-task-report-stats {
    z-index: 4;
    margin: 0 8px 22px;
    filter: drop-shadow(0 20px 34px rgba(0, 8, 20, 0.16));
}

.cd-report-workspace-audit {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-report-workspace-audit::before {
    display: none;
}

.cd-report-workspace-audit .cd-report-toolbar,
.cd-report-workspace-audit .cd-report-tabs,
.cd-report-workspace-audit .cd-report-empty-state {
    position: relative;
    z-index: 2;
}

.cd-report-workspace-audit .cd-report-empty-state {
    margin-top: 18px;
    border: 1px solid rgba(110, 164, 198, 0.14);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(9, 28, 43, 0.98), rgba(5, 20, 33, 0.97));
    box-shadow: 0 22px 50px rgba(0, 8, 19, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .cd-report-workspace-audit .cd-report-empty-state {
    border-color: rgba(57, 102, 133, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 247, 251, 0.98));
    box-shadow: 0 22px 46px rgba(43, 76, 101, 0.11), inset 0 1px 0 #ffffff;
}

.cd-audit-report-workspace-content {
    padding: 22px 0 0;
}

.cd-report-audit-content {
    overflow: visible;
    padding: 0;
    background: transparent;
}

.cd-audit-report-card span:not(.cd-audit-report-card-icon):not(.cd-audit-report-card-decoration) {
    line-height: 1.65;
}

.cd-audit-report-card > p:not(.cd-audit-report-card-title) {
    margin: 0 0 12px;
}

@media (max-width: 767px) {
    .cd-pdf-pages {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .cd-report-page > .cd-task-report-stats {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .cd-audit-report-workspace-content {
        padding-top: 16px;
    }
}
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-card {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d9f99d;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fee7 0%, #ffffff 58%, #f0f9ff 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 20px;
    margin-bottom: 15px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-card::after {
    position: absolute;
    top: -95px;
    right: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, .13) 0%, rgba(56, 189, 248, 0) 70%);
    content: "";
    pointer-events: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-circle {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: conic-gradient(#f59e0b 0 65%, #e5e7eb 65% 100%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-circle-success {
    background: conic-gradient(#22c55e 0 85%, #e5e7eb 85% 100%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-circle-warning {
    background: conic-gradient(#f59e0b 0 65%, #e5e7eb 65% 100%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-circle-danger {
    background: conic-gradient(#ef4444 0 40%, #e5e7eb 40% 100%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-circle > div {
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9), 0 7px 18px rgba(15, 23, 42, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-circle strong {
    font-size: 44px;
    line-height: 1;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-circle span {
    font-size: 16px;
    color: #4f4f4f;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4d7c0f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-title {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 6px 0 7px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-title span {
    color: #4f4f4f;
    font-size: 13px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-title strong {
    color: #1e293b;
    font-size: 22px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-content p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.55;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 9px;
    font-size: 12px;
    color: #4b5563;
    background: rgba(255, 255, 255, .82);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-preview {
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 54%, #f0f9ff 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-preview .audit-report-block-title {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(203, 213, 225, .8);
    background: rgba(255, 255, 255, .58);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: #0369a1;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-heading-copy,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-title-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-heading-copy > strong,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-heading-copy > h4 {
    color: #1e293b;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-section-kicker-danger {
    color: #b91c1c;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-section-kicker-warning {
    color: #b45309;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-section-kicker-success {
    color: #047857;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-section-kicker-info {
    color: #0369a1;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-preview .audit-report-block-title strong {
    color: #1e293b;
    font-size: 14px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-preview .audit-report-block-title small {
    color: #64748b;
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    align-items: start;
    gap: 12px;
    padding: 14px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-card {
    height: 100%;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 10px;
    background: rgba(255, 255, 255, .86);
    text-align: center;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-mobile img {
    max-height: 400px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-desktop img {
    height: 400px;
    width:auto;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-card,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendations-overview,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-overview {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 58%, #f0f9ff 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-card::after,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendations-overview::after,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-overview::after {
    position: absolute;
    top: -80px;
    right: -65px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, .11) 0%, rgba(56, 189, 248, 0) 70%);
    content: "";
    pointer-events: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-critical {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff7f7 0%, #ffffff 58%, #fff1f2 100%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-important {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 58%, #fff7ed 100%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-optional,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendations-overview {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 58%, #ecfeff 100%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-card-header,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-block-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(203, 213, 225, .8);
    background: rgba(255, 255, 255, .58);
    font-size: 13px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-card-header span,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-block-title span {
    min-width: 26px;
    height: 24px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #f3f4f6;
    font-weight: 700;
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-card-header-actions,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-block-title-actions {
    flex-shrink: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendations-export-btn {
    width: 28px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendations-export-btn.disabled,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendations-export-btn:disabled {
    pointer-events: none;
    opacity: .65;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-critical .audit-report-priority-card-header {
    color: #991b1b;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-important .audit-report-priority-card-header {
    color: #92400e;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-optional .audit-report-priority-card-header {
    color: #047857;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list {
    position: relative;
    z-index: 1;
    max-height: 270px;
    margin: 0;
    overflow: auto;
    padding: 12px 14px 12px 32px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list li {
    margin-bottom: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 9px;
    background: rgba(255, 255, 255, .78);
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list li:last-child {
    margin-bottom: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list strong,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation-overview-item strong {
    display: block;
    color: #111827;
    line-height: 1.35;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list div,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation-overview-item div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 3px;
    color: #4f4f4f;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list .audit-report-estimated-time-long,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation-overview-item .audit-report-estimated-time-long {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list .audit-report-estimated-time-long em,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation-overview-item .audit-report-estimated-time-long em {
    margin-left: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-list em,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation-overview-item em {
    color: #4f4f4f;
    font-style: normal;
    font-weight: 700;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-empty {
    position: relative;
    z-index: 1;
    margin: 12px 14px;
    padding: 12px;
    border: 1px dashed rgba(148, 163, 184, .55);
    border-radius: 9px;
    background: rgba(255, 255, 255, .7);
    color: #64748b;
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation-list-overview {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 325px;
    overflow: auto;
    padding: 12px 14px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation-overview-item {
    padding: 10px;
    border: 1px solid rgba(187, 247, 208, .95);
    border-radius: 9px;
    background: rgba(255, 255, 255, .78);
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-overview .table-responsive {
    position: relative;
    z-index: 1;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-table {
    background: rgba(255, 255, 255, .78);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-table th,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-table td {
    padding: .55rem .65rem;
    border-color: #e2e8f0 !important;
    vertical-align: middle;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-table th {
    background: rgba(248, 250, 252, .92);
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-table tbody tr:hover {
    background: rgba(240, 249, 255, .65);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-score-table td:first-child {
    font-weight: 600;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 7px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-table-score {
    min-width: auto;
    font-size: 15px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-badges .badge {
    font-size: 12px;
    font-weight: 600;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-clean-section {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #047857;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-main-col {
    display: flex;
    flex-wrap: wrap;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary {
    flex-wrap: wrap;
    flex: 1;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card {
    position: relative;
    overflow: hidden;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card::before {
    position: absolute;
    top: 0;
    content: "";
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card strong {
    display: block;
    line-height: 1;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-executive-summary {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-category-tabs .btn {
    white-space: nowrap;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-ai-scope-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: -2px 0 10px;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-ai-scope-note i {
    margin-top: 2px;
    color: #0ea5e9;
}


:where(html.cd-theme-document, .cd-theme-scope) .audit-report-section-heading:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card {
    border-left-width: 4px;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.07),0 4px 6px -2px rgba(0,0,0,.05);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-accordion-toggle {
    cursor: pointer;
    user-select: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-accordion-toggle:focus {
    outline: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card.is-collapsed .audit-report-card-header {
    border-bottom-color: transparent;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card.is-collapsed .audit-report-card-body {
    display: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-toggle-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f4f4f;
    font-size: 12px;
    transition: transform .2s ease;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card.is-open .audit-report-card-toggle-icon {
    transform: rotate(180deg);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-title {
    flex: 1;
    min-width: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-title strong {
    display: block;
    font-size: 15px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-title small {
    display: block;
    color: #4f4f4f;
    margin-top: 2px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score {
    min-width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 6px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-success { color: #22c55e; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-warning { color: #f59e0b; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-danger { color: #ef4444; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-info { color: #0ea5e9; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-bar {
    height: 6px;
    border-radius: 20px;
    background: #e5e7eb;
    margin-top: 7px;
    overflow: hidden;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-bar span {
    display: block;
    height: 100%;
    border-radius: 20px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-bar-success { background: #22c55e; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-bar-warning { background: #f59e0b; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-bar-danger { background: #ef4444; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-score-bar-info { background: #0ea5e9; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-card-body {
    padding: 14px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-working-label {
    color: #dc3545;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-description {
    font-size: 13px;
    margin-bottom: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 6px 14px;
    margin-bottom: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-detail {
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-detail span {
    color: #4f4f4f;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-detail strong {
    font-weight: 600;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 12px 0 6px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-problem,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation {
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 7px;
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-problem {
    background: #fff5f5;
    border: 1px solid #ffd1d1;
    word-break: break-all;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-recommendation {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    word-break: break-all;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 5px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-badge-critical { background: #dc3545; color: #fff; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-badge-important { background: #f59e0b; color: #111827; }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-badge-optional { background: #e5e7eb; color: #374151; }

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-empty {
    text-align: center;
    color: #4f4f4f;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-empty > i {
    display: block;
    width: max-content;
    margin-right: auto !important;
    margin-left: auto !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-filter-button {
    cursor: pointer;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-filter-button .badge {
    background-color: #fff;
    color: #000;
    border-radius: 6px;
    padding: 2px 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-block {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 10px;
    margin-bottom: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #374151;
    margin-bottom: 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-grid,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-grid,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 7px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-item,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-card,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-mini-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    min-width: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-item strong,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-card span,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-mini-grid span {
    display: block;
    font-size: 12px;
    color: #4f4f4f;
    line-height: 1.25;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-item span,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-mini-grid strong {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #111827;
    font-weight: 700;
    overflow-wrap: anywhere;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-item i {
    flex-shrink: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-danger {
    border-color: #fecaca;
    background: #fff5f5;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-mini-note {
    border-radius: 8px;
    background: #fff;
    border: 1px dashed #d1d5db;
    padding: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #4b5563;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-serp-preview {
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-serp-domain {
    color: #202124;
    font-size: 12px;
    font-weight: 600;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-serp-url {
    color: #5f6368;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-serp-title {
    color: #1a0dab;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 5px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-serp-description {
    color: #4d5156;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 3px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-line {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 7px 8px;
    font-size: 12px;
    min-width: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-line span {
    flex: 1;
    color: #374151;
    min-width: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-line strong {
    color: #111827;
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-list {
    display: grid;
    gap: 6px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-row {
    display: grid;
    grid-template-columns: 34px 36px 92px 1fr;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 7px 8px;
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-row span,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-row strong {
    font-weight: 800;
    color: #111827;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-row em {
    font-style: normal;
    font-weight: 700;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-row small {
    color: #6b7280;
    overflow-wrap: anywhere;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-success em {
    color: #15803d;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-warning em {
    color: #b45309;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-danger em {
    color: #b91c1c;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-heading-status-muted em {
    color: #6b7280;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-small-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    max-height: 180px;
    overflow: auto;
    margin-top: 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-small-list div {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding: 6px 8px;
    font-size: 12px;
    color: #374151;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-small-list div:last-child {
    border-bottom: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-small-list span {
    flex-shrink: 0;
    max-width: 45px;
    font-weight: 800;
    color: #3b82f6;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-card strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    color: #111827;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-danger {
    border-color: #fecaca;
    background: #fff5f5;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-info,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-muted {
    border-color: #dbeafe;
    background: #eff6ff;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-table-wrap {
    border-radius: 8px;
    overflow: hidden;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-table {
    background: #fff;
    font-size: 12px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-table th {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-table td,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-table th {
    vertical-align: middle;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-row-success td {
    background: #f0fdf4;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-row-warning td,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-row-important td,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-row-open td {
    background: #fffbeb;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-row-danger td,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-row-critical td {
    background: #fff5f5;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-url-cell {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-list {
    display: grid;
    gap: 7px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item strong {
    display: block;
    font-size: 12px;
    color: #111827;
    line-height: 1.35;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item span,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item em {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-style: normal;
    padding: 2px 7px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item .audit-rich-lighthouse-status-success {
    background: #f0fdf4;
    color: #15803d;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item .audit-rich-lighthouse-status-warning {
    background: #fffbeb;
    color: #b45309;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-item .audit-rich-lighthouse-status-danger {
    background: #fef2f2;
    color: #b91c1c;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-lighthouse-description {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 575px) {
    :where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-grid,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-grid,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-mini-grid,
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-list {
        grid-template-columns: 1fr;
    }
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-external-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    background: #eff6ff;
    padding: 9px 10px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-external-card span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-external-card strong {
    display: block;
    color: #111827;
    font-size: 14px;
    margin-top: 2px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-external-card small {
    color: #4b5563;
    font-size: 12px;
    text-align: right;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-metric-card small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-reputation .audit-rich-check-item span {
    word-break: break-word;
}

@media (max-width: 575px) {
    :where(html.cd-theme-document, .cd-theme-scope) .audit-rich-external-card {
        align-items: flex-start;
        flex-direction: column;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-rich-external-card small {
        text-align: left;
    }
}

.cd-nav-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.cd-nav-item::after {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 5px;
    bottom: 0;
    left: -1px;
    border-radius: 20px;
    background: linear-gradient(110deg, rgba(133, 97, 213, 0.16), rgba(65, 153, 205, 0.15) 58%, rgba(62, 190, 178, 0.12));
    content: "";
    opacity: 0;
    transform: translateX(-28%) scale(0.94);
    transition: opacity 220ms ease, transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cd-nav-item > i,
.cd-nav-item > span {
    position: relative;
    z-index: 1;
}

.cd-nav-item:hover {
    text-decoration: none !important;
    transform: translateX(5px) translateY(-1px);
    box-shadow: 0 15px 30px rgba(0, 8, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cd-nav-item:focus,
.cd-nav-item:active {
    text-decoration: none !important;
}

.cd-nav-item:hover::after {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.cd-nav-item:hover > i {
    transform: translateX(2px) rotate(-5deg) scale(1.1);
}

.cd-nav-item:hover > span {
    transform: translateX(2px);
}

html[data-theme="light"] .cd-nav-item:hover {
    box-shadow: 0 16px 30px rgba(47, 91, 124, 0.13), inset 0 1px 0 #ffffff;
}

.cd-report-workspace-seo-report,
.cd-report-workspace-audit {
    overflow: visible;
}

.cd-seo-report-interface {
    display: grid;
    gap: 20px;
    padding-top: 20px;
}

.cd-seo-report-tabs {
    position: relative;
    z-index: 3;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(118, 157, 184, 0.16);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(9, 28, 43, 0.96), rgba(6, 21, 34, 0.94));
    box-shadow: 0 18px 42px rgba(0, 8, 19, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cd-seo-report-tab {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #91a9b8;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.cd-seo-report-tab:hover {
    color: #ffffff;
    border-color: rgba(116, 176, 210, 0.18);
    background: rgba(78, 142, 181, 0.1);
    transform: translateY(-2px);
}

.cd-seo-report-panels,
.cd-seo-report-panel {
    min-width: 0;
}

.cd-seo-report-panel[hidden],
.cd-seo-competitor-panel[hidden] {
    display: none !important;
}

.cd-seo-report-panel.is-active {
    animation: cd-report-panel-enter 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cd-seo-report-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(108, 161, 194, 0.16);
    border-radius: 20px;
    color: #dbe8ef;
    background: radial-gradient(circle at 100% 0, rgba(116, 83, 197, 0.13), transparent 20rem), linear-gradient(145deg, rgba(9, 29, 44, 0.98), rgba(5, 20, 33, 0.97));
    box-shadow: 0 20px 46px rgba(0, 8, 19, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cd-seo-report-card::before {
    position: absolute;
    top: 0;
    left: 24px;
    width: min(220px, 38%);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8a6bd3, #438bc0 62%, transparent);
    content: "";
}

.cd-seo-report-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.cd-seo-report-card-header > p {
    max-width: 520px;
    margin: 0 0 0 auto;
    color: #8fa8b7;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
}

.cd-seo-report-card-header span,
.cd-seo-competitor-heading span {
    display: block;
    color: #7f9aaa;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cd-seo-report-card-header h2,
.cd-seo-competitor-heading h3 {
    margin: 2px 0 0;
    color: #f0f7fa;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.25;
}

.cd-seo-competitor-location + .cd-seo-competitor-location {
    margin-top: 18px;
}

.cd-seo-competitor-tabs {
    display: flex;
    gap: 9px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.cd-seo-competitor-tab {
    padding: 10px 13px;
    border: 1px solid rgba(111, 157, 185, 0.16);
    color: #9bb0bc;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cd-seo-competitor-tab strong,
.cd-seo-competitor-tab span {
    display: block;
}

.cd-seo-competitor-tab strong {
    color: #eef7fa;
    font-size: 16px;
}

.cd-seo-competitor-tab span {
    margin-top: 2px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-seo-competitor-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(135, 110, 215, 0.34);
}

.cd-seo-competitor-tab.is-positive strong,
.cd-seo-competitor-heading strong.is-positive { color: #74d8af; }
.cd-seo-competitor-tab.is-negative strong,
.cd-seo-competitor-heading strong.is-negative { color: #ff8f9e; }

.cd-seo-competitor-panel.is-active {
    animation: cd-report-panel-enter 280ms ease both;
}

.cd-seo-metric-grid {
    display: grid;
    margin-bottom: 16px;
}

.cd-seo-metric-grid > div {
    min-width: 0;
    border: 1px solid rgba(106, 158, 189, 0.14);
}

.cd-seo-metric-grid span {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.cd-seo-metric-grid strong {
    display: block;
    color: #f0f8fb;
}

.cd-seo-metric-grid > .is-success strong { color: #76d9b0; }
.cd-seo-metric-grid > .is-danger strong { color: #ff8f9f; }
.cd-seo-metric-grid > .is-warning strong { color: #f3c36b; }

.cd-seo-competitor-layout,
.cd-seo-opportunity-grid {
    display: grid;
    gap: 14px;
}

.cd-seo-opportunity-grid {
    margin-top: 14px;
}

.cd-seo-competitor-subcard {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(111, 160, 190, 0.13);
    border-radius: 15px;
    background: rgba(2, 14, 24, 0.3);
}

.cd-seo-competitor-subcard h3 {
    margin: 0 0 13px;
    color: #e8f3f8;
    font-size: 15px;
}

.cd-seo-competitor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.cd-seo-competitor-heading > strong {
    padding: 7px 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 15px;
}

.cd-seo-range-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #d9e9f1;
    background: rgba(83, 140, 176, 0.14);
    font-size: 12px;
    font-weight: 750;
}

html[data-theme="light"] .cd-seo-report-tabs {
    border-color: rgba(81, 143, 183, 0.16);
    background: linear-gradient(105deg, rgba(235, 245, 251, 0.96), rgba(244, 250, 252, 0.98) 58%, rgba(235, 248, 246, 0.96));
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-report-tab { color: #58758a; }
html[data-theme="light"] .cd-seo-report-tab:hover { color: #17384e; background: rgba(91, 145, 181, 0.09); }

html[data-theme="light"] .cd-seo-report-card {
    color: #38566a;
    border-color: rgba(67, 118, 150, 0.13);
    background: radial-gradient(circle at 100% 0, rgba(128, 97, 208, 0.09), transparent 20rem), linear-gradient(145deg, #ffffff, #eef7fb);
    box-shadow: 0 20px 42px rgba(41, 74, 99, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-report-card-header h2,
html[data-theme="light"] .cd-seo-competitor-heading h3,
html[data-theme="light"] .cd-seo-competitor-tab strong,
html[data-theme="light"] .cd-seo-metric-grid strong,
html[data-theme="light"] .cd-seo-competitor-subcard h3 { color: #17384e; }

html[data-theme="light"] .cd-seo-report-card-header > p,
html[data-theme="light"] .cd-seo-report-card-header span,
html[data-theme="light"] .cd-seo-competitor-heading span,
html[data-theme="light"] .cd-seo-metric-grid span { color: #617e91; }

html[data-theme="light"] .cd-seo-competitor-tab,
html[data-theme="light"] .cd-seo-metric-grid > div,
html[data-theme="light"] .cd-seo-competitor-subcard {
    border-color: rgba(73, 123, 153, 0.12);
    background: rgba(255, 255, 255, 0.68);
}

/* Keep the native audit report hierarchy while adapting its surfaces to the dashboard. */
.cd-audit-admin-report {
    margin: 0;
    color: #dbe8ef;
}

.cd-audit-admin-report > [class*="col-"] {
    margin-bottom: 14px;
}

.cd-audit-admin-report .card,
.cd-audit-admin-report .audit-report-top-card,
.cd-audit-admin-report .audit-report-priority-card,
.cd-audit-admin-report .audit-report-card {
    border-color: rgba(101, 155, 188, 0.17);
    color: #dbe8ef;
    background-color: rgba(7, 24, 37, 0.97);
}

.cd-audit-admin-report .card-header,
.cd-audit-admin-report .audit-report-card-header,
.cd-audit-admin-report .audit-report-priority-card-header {
    color: #edf6fa;
    border-bottom-color: rgba(111, 159, 188, 0.13);
    background: rgba(255, 255, 255, 0.025);
}

.cd-audit-admin-report .text-muted,
.cd-audit-admin-report small,
.cd-audit-admin-report .audit-report-description { color: #91a7b4 !important; }

.cd-audit-admin-report .audit-report-filter-tabs,
.cd-audit-admin-report #audit-report-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    border: 0;
}

.cd-audit-admin-report .audit-report-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(107, 158, 188, 0.16);
    border-radius: 12px;
    color: #94aab7;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cd-audit-admin-report .audit-report-filter-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.cd-audit-admin-report .audit-report-filter-button.active {
    color: #ffffff;
    border-color: rgba(151, 125, 226, 0.38);
    background: linear-gradient(115deg, rgba(109, 76, 187, 0.9), rgba(46, 126, 171, 0.9));
}

.cd-audit-admin-report .audit-report-card-header {
    cursor: pointer;
}

.cd-audit-admin-report .audit-report-card.is-collapsed .audit-report-card-body {
    display: none;
}

.cd-audit-admin-report .audit-report-card:not(.is-collapsed) .audit-report-card-toggle-icon {
    transform: rotate(180deg);
}

.cd-audit-admin-report .audit-report-card-toggle-icon {
    transition: transform 220ms ease;
}

.cd-audit-admin-report .audit-report-category-section[hidden] {
    display: none !important;
}

.cd-audit-admin-report .audit-report-problem {
    color: #ffd7dc;
    border-color: rgba(231, 92, 113, 0.3);
    background: rgba(145, 39, 59, 0.17);
}

.cd-audit-admin-report .audit-report-recommendation,
.cd-audit-admin-report .audit-report-clean-section {
    color: #d7f5e6;
    border-color: rgba(76, 190, 135, 0.28);
    background: rgba(35, 125, 83, 0.15);
}

.cd-audit-admin-report .audit-rich-block,
.cd-audit-admin-report .audit-rich-check-item,
.cd-audit-admin-report .audit-rich-metric-card,
.cd-audit-admin-report .audit-rich-mini-grid > div,
.cd-audit-admin-report .audit-rich-external-card {
    border-color: rgba(108, 157, 187, 0.15);
    color: #d8e7ef;
    background: rgba(255, 255, 255, 0.025);
}

.cd-audit-admin-report table {
    color: inherit;
    background: rgba(2, 14, 24, 0.26);
}

.cd-audit-admin-report table th {
    color: #dbeaf1;
    background: rgba(69, 121, 154, 0.12);
}

.cd-audit-admin-report table td,
.cd-audit-admin-report table th {
    border-color: rgba(105, 154, 183, 0.13);
    font-size: clamp(12px, 0.82vw, 14px);
}

html[data-theme="light"] .cd-audit-admin-report { color: #365569; }
html[data-theme="light"] .cd-audit-admin-report .card,
html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-card,
html[data-theme="light"] .cd-audit-admin-report .audit-report-card {
    color: #365569;
    background-color: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .cd-audit-admin-report .card-header,
html[data-theme="light"] .cd-audit-admin-report .audit-report-card-header,
html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-card-header {
    color: #17384e;
    border-bottom-color: rgba(63, 111, 141, 0.1);
    background: rgba(239, 247, 251, 0.82);
}

html[data-theme="light"] .cd-audit-admin-report .text-muted,
html[data-theme="light"] .cd-audit-admin-report small,
html[data-theme="light"] .cd-audit-admin-report .audit-report-description { color: #627e90 !important; }

html[data-theme="light"] .cd-audit-admin-report .audit-report-filter-button {
    color: #58758a;
    border-color: rgba(64, 112, 142, 0.12);
    background: rgba(240, 247, 251, 0.9);
}
html[data-theme="light"] .cd-audit-admin-report .audit-report-problem { color: #8a2c3c; background: #fff3f5; }
html[data-theme="light"] .cd-audit-admin-report .audit-report-recommendation,
html[data-theme="light"] .cd-audit-admin-report .audit-report-clean-section { color: #256448; background: #effbf4; }
html[data-theme="light"] .cd-audit-admin-report .audit-rich-block,
html[data-theme="light"] .cd-audit-admin-report .audit-rich-check-item,
html[data-theme="light"] .cd-audit-admin-report .audit-rich-metric-card,
html[data-theme="light"] .cd-audit-admin-report .audit-rich-mini-grid > div,
html[data-theme="light"] .cd-audit-admin-report .audit-rich-external-card { color: #365569; background: #f7fbfd; }
html[data-theme="light"] .cd-audit-admin-report table { background: #ffffff; }
html[data-theme="light"] .cd-audit-admin-report table th { color: #17384e; background: #edf6fa; }

@keyframes cd-report-panel-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 800px) {
    .cd-seo-report-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cd-seo-competitor-layout { grid-template-columns: 1fr; }
    .cd-seo-report-card-header { align-items: flex-start; flex-wrap: wrap; }
    .cd-seo-report-card-header > p { width: 100%; max-width: none; margin-left: 0; text-align: left; }
}

@media (max-width: 560px) {
    .cd-seo-report-tabs { grid-template-columns: 1fr; }
    .cd-seo-report-tab { justify-content: flex-start; }
    .cd-seo-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cd-seo-report-card { padding: 17px; border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .cd-nav-item,
    .cd-nav-item::after,
    .cd-nav-item > i,
    .cd-nav-item > span,
    .cd-seo-report-tab,
    .cd-seo-competitor-tab,
    .cd-seo-report-panel,
    .cd-seo-competitor-panel { animation: none !important; transition: none !important; }
}

.cd-report-workspace-seo {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-report-workspace-seo::before {
    display: none;
}

.cd-report-workspace-seo .cd-report-toolbar,
.cd-report-workspace-seo .cd-report-tabs,
.cd-report-workspace-seo .cd-report-empty-state {
    position: relative;
    z-index: 2;
}

/* Scoped layout utilities required by the CRM audit report structure. */
.cd-audit-admin-report.row {
    display: flex;
    flex-wrap: wrap;
    margin: -7px;
}

.cd-audit-admin-report > [class*="col-"] {
    width: 100%;
    min-width: 0;
    padding: 7px;
}

.cd-audit-admin-report .card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.cd-audit-admin-report .card-body { flex: 1 1 auto; }
.cd-audit-admin-report .d-flex { display: flex !important; }
.cd-audit-admin-report .flex-wrap { flex-wrap: wrap !important; }
.cd-audit-admin-report .flex-column { flex-direction: column !important; }
.cd-audit-admin-report .align-items-start { align-items: flex-start !important; }
.cd-audit-admin-report .justify-content-between { justify-content: space-between !important; }
.cd-audit-admin-report .text-left { text-align: left !important; }
.cd-audit-admin-report .text-center { text-align: center !important; }
.cd-audit-admin-report .text-danger { color: #ef7184 !important; }
.cd-audit-admin-report .text-warning { color: #e6b24f !important; }
.cd-audit-admin-report .text-success { color: #4fc58d !important; }
.cd-audit-admin-report .text-secondary { color: #8198a7 !important; }
.cd-audit-admin-report .small,
.cd-audit-admin-report small { font-size: 12px !important; }
.cd-audit-admin-report .w-100 { width: 100% !important; }
.cd-audit-admin-report .mb-0 { margin-bottom: 0 !important; }
.cd-audit-admin-report .mb-1 { margin-bottom: 4px !important; }
.cd-audit-admin-report .mb-2 { margin-bottom: 8px !important; }
.cd-audit-admin-report .mb-3 { margin-bottom: 14px !important; }
.cd-audit-admin-report .mt-1 { margin-top: 4px !important; }
.cd-audit-admin-report .mt-2 { margin-top: 8px !important; }
.cd-audit-admin-report .mt-3 { margin-top: 14px !important; }
.cd-audit-admin-report .ml-2 { margin-left: 8px !important; }
.cd-audit-admin-report .p-2 { padding: 10px !important; }
.cd-audit-admin-report .p-3 { padding: 16px !important; }
.cd-audit-admin-report .p-4 { padding: 22px !important; }
.cd-audit-admin-report .border { border: 1px solid rgba(105, 154, 183, 0.17) !important; }
.cd-audit-admin-report .nav { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.cd-audit-admin-report .nav-item { display: block; }
.cd-audit-admin-report .nav-link { text-decoration: none; }
.cd-audit-admin-report .table-responsive { width: 100%; overflow-x: auto; }
.cd-audit-admin-report .table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cd-audit-admin-report .table th,
.cd-audit-admin-report .table td { padding: 10px 12px; text-align: left; vertical-align: middle; }
.cd-audit-admin-report .table-bordered th,
.cd-audit-admin-report .table-bordered td { border-right: 1px solid rgba(105, 154, 183, 0.13); border-bottom: 1px solid rgba(105, 154, 183, 0.13); }
.cd-audit-admin-report .table-sm th,
.cd-audit-admin-report .table-sm td { padding: 8px 10px; }

html[data-theme="light"] .cd-audit-admin-report .text-danger { color: #b43d52 !important; }
html[data-theme="light"] .cd-audit-admin-report .text-warning { color: #9a6a10 !important; }
html[data-theme="light"] .cd-audit-admin-report .text-success { color: #277b55 !important; }

@media (min-width: 1200px) {
    .cd-audit-admin-report > .col-xl { width: auto; flex: 1 1 0; }
    .cd-audit-admin-report > .col-xl-6 { width: 50%; }
    .cd-audit-admin-report > .col-xl-7 { width: 58.333333%; }
}

@media (min-width: 768px) {
    .cd-audit-admin-report .mt-md-0 { margin-top: 0 !important; }
}

.cd-seo-keyword-center { text-align: center !important; }
.cd-seo-keyword-center > .fa-star { color: #708998; font-size: 16px; }
.cd-seo-keyword-center > .fa-star.is-favorite { color: #e9b84f; filter: drop-shadow(0 0 7px rgba(233, 184, 79, 0.3)); }
.cd-seo-favorite-toggle {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #708998;
    background: transparent;
    cursor: pointer;
    isolation: isolate;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.cd-seo-favorite-toggle::before {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(233, 184, 79, 0.28) 0%, rgba(233, 184, 79, 0.08) 55%, transparent 72%);
    opacity: 0;
    transform: scale(0.3);
}
.cd-seo-favorite-toggle .fa-star {
    font-size: 17px;
    transform-origin: center;
    transition: color 180ms ease, filter 180ms ease, transform 180ms ease;
}
.cd-seo-favorite-toggle:hover,
.cd-seo-favorite-toggle:focus-visible {
    color: #d7a83f;
    background: rgba(233, 184, 79, 0.1);
    outline: none;
    transform: translateY(-1px);
}
.cd-seo-favorite-toggle.is-favorite {
    color: #e9b84f;
}
.cd-seo-favorite-toggle.is-favorite .fa-star {
    filter: drop-shadow(0 0 8px rgba(233, 184, 79, 0.42));
}
.cd-seo-favorite-toggle.is-loading {
    cursor: wait;
    opacity: 0.68;
}
.cd-seo-favorite-toggle.is-activating::before {
    animation: cd-seo-favorite-burst 500ms ease-out;
}
.cd-seo-favorite-toggle.is-activating .fa-star {
    animation: cd-seo-favorite-enable 500ms cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.cd-seo-favorite-toggle.is-deactivating .fa-star {
    animation: cd-seo-favorite-disable 360ms ease-out;
}
.cd-seo-favorite-toggle.is-error {
    animation: cd-seo-favorite-error 360ms ease-in-out;
}
@keyframes cd-seo-favorite-burst {
    0% { opacity: 0; transform: scale(0.3); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.65); }
}
@keyframes cd-seo-favorite-enable {
    0% { transform: scale(0.72) rotate(-18deg); }
    55% { transform: scale(1.34) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}
@keyframes cd-seo-favorite-disable {
    0% { transform: scale(1) rotate(0); }
    45% { transform: scale(0.72) rotate(-10deg); }
    100% { transform: scale(1) rotate(0); }
}
@keyframes cd-seo-favorite-error {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-3px); }
    65% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .cd-seo-favorite-toggle,
    .cd-seo-favorite-toggle::before,
    .cd-seo-favorite-toggle .fa-star {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
.cd-seo-location-count,
.cd-seo-evolution {
    display: inline-flex;
    min-width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 9px;
    color: #cbdde6;
    background: rgba(80, 137, 170, 0.13);
    font-size: 12px;
    font-weight: 800;
}
.cd-seo-evolution.is-new { color: #c9b7f3; background: rgba(132, 95, 210, 0.15); }
.cd-seo-evolution.is-up { color: #77dbb2; background: rgba(60, 176, 116, 0.15); }
.cd-seo-evolution.is-down { color: #ff93a2; background: rgba(221, 70, 95, 0.16); }
.cd-seo-result-link {
    transition: transform 170ms ease, color 170ms ease, border-color 170ms ease, background 170ms ease;
}
.cd-seo-result-link:hover { transform: translateY(-2px); }
html[data-theme="light"] .cd-seo-location-count,
html[data-theme="light"] .cd-seo-evolution { color: #405f72; background: #eaf3f7; }
html[data-theme="light"] .cd-seo-evolution.is-up { color: #267751; background: #e7f7ef; }
html[data-theme="light"] .cd-seo-evolution.is-down { color: #a83a4d; background: #fff0f3; }
html[data-theme="light"] .cd-seo-evolution.is-new { color: #65469e; background: #f1ebfb; }

/* ---------- 08.1 Report navigation, module states and interaction refinements ---------- */
html[data-theme="dark"] .cd-report-task-content font,
html[data-theme="dark"] .cd-report-task-content font[color],
html[data-theme="dark"] .cd-report-task-content [style*="color: #374151"],
html[data-theme="dark"] .cd-report-task-content [style*="color:#374151"] {
    color: #dce9f1 !important;
}

html[data-theme="dark"] .cd-main table,
html[data-theme="dark"] .cd-report-table-wrap,
html[data-theme="dark"] .cd-report-export-content table {
    border-color: rgba(104, 190, 225, 0.25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 38px rgba(0, 6, 17, 0.13);
}

html[data-theme="dark"] .cd-main table th,
html[data-theme="dark"] .cd-main table td,
html[data-theme="dark"] .cd-report-export-content th,
html[data-theme="dark"] .cd-report-export-content td,
html[data-theme="dark"] .cd-audit-admin-report .table-bordered th,
html[data-theme="dark"] .cd-audit-admin-report .table-bordered td {
    border-color: rgba(108, 190, 222, 0.22) !important;
}

html[data-theme="dark"] .cd-main table thead th {
    box-shadow: inset 0 -1px 0 rgba(112, 209, 237, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cd-section-heading,
.cd-report-section-heading {
    isolation: isolate;
    overflow: visible;
}

.cd-report-toolbar {
    isolation: isolate;
    overflow: hidden;
}

.cd-section-heading::before,
.cd-report-section-heading::before {
    position: absolute;
    z-index: 0;
    top: 17px;
    right: 10px;
    width: 5px;
    height: 5px;
    border: 0;
    border-radius: 50%;
    background: #8f71dd;
    box-shadow: -12px 0 0 rgba(77, 151, 205, 0.72), -24px 0 0 rgba(45, 188, 187, 0.58);
    content: "";
    opacity: 0.72;
    pointer-events: none;
}

.cd-report-toolbar::before {
    position: absolute;
    z-index: -1;
    top: -42px;
    right: -28px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(139, 119, 229, 0.13);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(118, 92, 215, 0.12), transparent 66%);
    box-shadow: 0 0 0 24px rgba(54, 149, 195, 0.025), 0 0 0 48px rgba(53, 185, 181, 0.018);
    content: "";
    pointer-events: none;
}

.cd-section-heading > *,
.cd-report-section-heading > *,
.cd-report-toolbar > * {
    position: relative;
    z-index: 1;
}

.cd-section-heading::after,
.cd-report-section-heading::after {
    z-index: 1;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8f6fe4, #4b9bd0 58%, rgba(58, 197, 188, 0.4), transparent);
    box-shadow: 0 0 18px rgba(91, 112, 221, 0.28);
}

.cd-report-toolbar {
    position: relative;
}

.cd-report-toolbar::after {
    position: absolute;
    right: 20px;
    bottom: 9px;
    width: 76px;
    height: 5px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, rgba(143, 111, 228, 0.55) 0 6px, transparent 6px 12px);
    content: "";
    opacity: 0.45;
    pointer-events: none;
}

html[data-theme="light"] .cd-section-heading::before,
html[data-theme="light"] .cd-report-section-heading::before {
    background: #765bbd;
    box-shadow: -12px 0 0 rgba(52, 132, 182, 0.58), -24px 0 0 rgba(35, 157, 161, 0.48);
}

html[data-theme="light"] .cd-report-toolbar::before {
    border-color: rgba(109, 83, 199, 0.1);
    background: radial-gradient(circle, rgba(159, 126, 226, 0.12), transparent 66%);
}

.cd-sidebar {
    overflow: hidden;
}

.cd-sidebar::before,
.cd-sidebar::after {
    position: absolute;
    z-index: 0;
    right: -104px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.cd-sidebar::before {
    top: 56%;
    border: 1px solid rgba(105, 175, 214, 0.09);
    background: radial-gradient(circle at 38% 38%, rgba(107, 81, 205, 0.14), rgba(47, 143, 190, 0.06) 42%, transparent 68%);
    box-shadow: 0 0 0 34px rgba(60, 169, 190, 0.018), 0 0 0 68px rgba(125, 92, 211, 0.012);
}

.cd-sidebar::after {
    top: 72%;
    right: 46px;
    width: 94px;
    height: 94px;
    border: 1px dashed rgba(97, 194, 214, 0.13);
    background: linear-gradient(135deg, rgba(118, 87, 211, 0.04), transparent);
    transform: rotate(22deg);
}

html[data-theme="light"] .cd-sidebar::before {
    border-color: rgba(70, 132, 170, 0.08);
    background: radial-gradient(circle at 38% 38%, rgba(151, 120, 220, 0.11), rgba(68, 157, 190, 0.07) 42%, transparent 68%);
}

html[data-theme="light"] .cd-sidebar::after {
    border-color: rgba(75, 146, 180, 0.12);
}

html[data-theme="light"] .cd-alert-danger {
    border-color: rgba(181, 59, 83, 0.28) !important;
    color: #782336 !important;
    background: linear-gradient(110deg, rgba(255, 239, 243, 0.98), rgba(255, 247, 249, 0.98)) !important;
    box-shadow: 0 12px 28px rgba(126, 42, 59, 0.09), inset 3px 0 0 #c84d66;
}

html[data-theme="light"] .cd-alert-danger i,
html[data-theme="light"] .cd-alert-danger strong,
html[data-theme="light"] .cd-alert-danger span,
html[data-theme="light"] .cd-alert-danger p {
    color: inherit !important;
}

.cd-logout-form .cd-nav-button,
.cd-logout-form .cd-nav-button i,
.cd-logout-form .cd-nav-button span {
    color: #f07388 !important;
}

html[data-theme="light"] .cd-logout-form .cd-nav-button,
html[data-theme="light"] .cd-logout-form .cd-nav-button i,
html[data-theme="light"] .cd-logout-form .cd-nav-button span {
    color: #b83d55 !important;
}

.cd-task-report-stat {
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, background 220ms ease, box-shadow 260ms ease, color 220ms ease;
}

.cd-task-report-stat:hover {
    z-index: 2;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(192, 149, 247, 0.34), transparent 12rem),
        radial-gradient(circle at 0 100%, rgba(70, 197, 221, 0.2), transparent 11rem),
        linear-gradient(145deg, #684fb6, #3788bd 64%, #2b9eab);
}

.cd-task-report-stat:hover::after,
.cd-task-report-stat:hover .cd-task-report-stat-decoration {
    border-color: rgba(255, 255, 255, 0.34) !important;
    background-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.045) !important;
}

.cd-task-report-stat:hover span,
.cd-task-report-stat:hover strong {
    color: #ffffff !important;
}

.cd-document-view-shell.is-fullscreen .cd-document-view-actions {
    min-height: 48px;
    align-items: center;
    margin-left: auto;
    padding: 3px 0;
    overflow: visible;
}

.cd-document-view-shell.is-fullscreen .cd-icon-button {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
}

.cd-seo-keyword-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.cd-seo-keyword-stat {
    min-height: 104px;
}

.cd-seo-keyword-search {
    position: relative;
    width: min(360px, 100%);
    flex: 0 1 360px;
}

.cd-seo-keyword-search > i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #718c9e;
    transform: translateY(-50%);
}

.cd-seo-keyword-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 44px 0 40px;
    border: 1px solid rgba(104, 164, 195, 0.18);
    border-radius: 13px;
    outline: 0;
    color: #e8f4f9;
    background: rgba(3, 16, 27, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-seo-keyword-search input:focus {
    border-color: rgba(120, 104, 222, 0.5);
    box-shadow: 0 0 0 4px rgba(111, 85, 210, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cd-seo-keyword-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #8fa6b5;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
    transition: opacity 160ms ease, transform 180ms ease, color 160ms ease, background 160ms ease;
}

.cd-seo-keyword-search button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.cd-seo-keyword-search button:hover {
    color: #ffffff;
    background: rgba(124, 94, 216, 0.18);
}

.cd-seo-keyword-locations {
    display: grid;
    gap: 18px;
}

.cd-seo-keyword-location {
    overflow: hidden;
    border: 1px solid rgba(100, 163, 196, 0.17);
    border-radius: 20px;
    background: rgba(6, 22, 34, 0.88);
    box-shadow: 0 20px 42px rgba(0, 8, 18, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-seo-keyword-location-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(105, 164, 193, 0.13);
    background:
        radial-gradient(circle at 96% 0%, rgba(127, 91, 215, 0.16), transparent 14rem),
        linear-gradient(115deg, rgba(18, 43, 59, 0.72), rgba(9, 27, 41, 0.58));
}

.cd-seo-keyword-location-heading > div {
    min-width: 0;
    flex: 1;
}

.cd-seo-keyword-location-heading > div > span,
.cd-seo-keyword-location-heading h2,
.cd-seo-keyword-location-heading p {
    margin: 0;
}

.cd-seo-keyword-location-heading > div > span {
    color: #7f9bad;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cd-seo-keyword-location-heading h2 {
    margin-top: 2px;
    color: #f0f8fb;
    font-family: "Sora", sans-serif;
    font-size: 17px;
}

.cd-seo-keyword-location-heading p {
    margin-top: 5px;
    color: #8ca5b4;
    font-size: 13px;
}

.cd-seo-keyword-location-heading > strong {
    min-width: 44px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(138, 116, 226, 0.28);
    border-radius: 12px;
    color: #d8cfff;
    background: rgba(111, 82, 202, 0.13);
    font-size: 15px;
}

.cd-seo-keyword-page-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(100, 161, 190, 0.11);
}

.cd-seo-keyword-page-tab {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid rgba(101, 162, 193, 0.14);
    border-radius: 12px;
    color: #8fa7b5;
    background: rgba(255, 255, 255, 0.022);
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cd-seo-keyword-page-tab strong {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #a9c4d2;
    font-size: 12px;
}

.cd-seo-keyword-page-tab:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.cd-seo-keyword-page-tab.is-active {
    color: #ffffff;
    border-color: rgba(151, 122, 231, 0.4);
    background: linear-gradient(115deg, rgba(105, 76, 190, 0.82), rgba(48, 131, 177, 0.82));
    box-shadow: 0 12px 26px rgba(24, 18, 67, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cd-seo-keyword-page-tab.is-active strong {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.cd-seo-keyword-page-panel[hidden],
.cd-seo-competitor-location[hidden] {
    display: none !important;
}

.cd-seo-keyword-search-empty {
    margin-top: 14px;
    border: 1px dashed rgba(114, 170, 198, 0.2);
    border-radius: 16px;
}

.cd-seo-location-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 14px;
}

.cd-seo-location-tab {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(104, 165, 196, 0.18);
    border-radius: 18px;
    color: #dbe9f0;
    background:
        linear-gradient(105deg, rgba(7, 24, 38, 0.88), rgba(15, 45, 63, 0.68)),
        url("../image/client_dashboard/world_map.svg") calc(80% + (var(--cd-location-offset, 0px))) center / 270px auto no-repeat;
    box-shadow: 0 17px 38px rgba(0, 8, 19, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    text-align: left;
    transition: transform 220ms ease, border-color 200ms ease, box-shadow 220ms ease, color 200ms ease;
}

.cd-seo-location-tab::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(127, 101, 218, 0.14);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 18px rgba(64, 169, 191, 0.025);
}

.cd-seo-location-tab:hover {
    border-color: rgba(144, 117, 228, 0.36);
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(0, 8, 24, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.cd-seo-location-tab.is-active {
    border-color: rgba(170, 145, 239, 0.5);
    color: #ffffff;
    background:
        linear-gradient(105deg, rgba(87, 61, 165, 0.86), rgba(42, 127, 175, 0.72)),
        url("../image/client_dashboard/world_map.svg") calc(80% + (var(--cd-location-offset, 0px))) center / 270px auto no-repeat;
    box-shadow: 0 22px 50px rgba(35, 25, 93, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cd-seo-location-tab > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.cd-seo-location-tab small,
.cd-seo-location-tab strong {
    display: block;
}

.cd-seo-location-tab small {
    color: #85a0b1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cd-seo-location-tab strong {
    margin-top: 3px;
    color: inherit;
    font-family: "Sora", sans-serif;
}

.cd-seo-location-tab em {
    position: relative;
    z-index: 1;
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #c9dce6;
    background: rgba(255, 255, 255, 0.07);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.cd-seo-location-tab.is-active small,
.cd-seo-location-tab.is-active em {
    color: #ffffff;
}

.cd-seo-competitor-tabs {
    padding: 12px;
    border: 1px solid rgba(104, 164, 194, 0.14);
    border-radius: 16px;
    background: rgba(3, 17, 28, 0.38);
}

.cd-seo-competitor-tab {
    min-width: 150px;
    border-radius: 12px;
}

html[data-theme="light"] .cd-seo-keyword-location {
    border-color: rgba(66, 116, 148, 0.13);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 38px rgba(45, 77, 101, 0.09), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-keyword-location-heading {
    border-bottom-color: rgba(62, 111, 141, 0.1);
    background:
        radial-gradient(circle at 96% 0%, rgba(151, 119, 220, 0.12), transparent 14rem),
        linear-gradient(115deg, rgba(235, 245, 250, 0.96), rgba(248, 251, 253, 0.95));
}

html[data-theme="light"] .cd-seo-keyword-location-heading h2 {
    color: #17384e;
}

html[data-theme="light"] .cd-seo-keyword-location-heading > div > span,
html[data-theme="light"] .cd-seo-keyword-location-heading p {
    color: #607c8f;
}

html[data-theme="light"] .cd-seo-keyword-search input {
    color: #17384e;
    border-color: rgba(64, 111, 141, 0.15);
    background: #ffffff;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-keyword-page-tabs {
    border-bottom-color: rgba(61, 108, 138, 0.1);
}

html[data-theme="light"] .cd-seo-keyword-page-tab {
    color: #59768a;
    border-color: rgba(67, 116, 146, 0.12);
    background: rgba(239, 247, 251, 0.88);
}

html[data-theme="light"] .cd-seo-location-tab {
    color: #17384e;
    border-color: rgba(65, 112, 143, 0.14);
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.88), rgba(230, 242, 248, 0.76)),
        url("../image/client_dashboard/world_map.svg") calc(80% + (var(--cd-location-offset, 0px))) center / 270px auto no-repeat;
    box-shadow: 0 17px 36px rgba(45, 78, 102, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-location-tab small {
    color: #637f91;
}

html[data-theme="light"] .cd-seo-competitor-tabs {
    border-color: rgba(66, 113, 143, 0.12);
    background: rgba(239, 247, 251, 0.84);
}

.cd-audit-admin-report {
    align-items: stretch;
}

.cd-audit-admin-report .card,
.cd-audit-admin-report .audit-report-top-card,
.cd-audit-admin-report .audit-report-priority-card,
.cd-audit-admin-report .audit-report-card,
.cd-audit-admin-report .audit-report-screenshot-preview,
.cd-audit-admin-report .audit-report-category-score-overview,
.cd-audit-admin-report .audit-report-recommendations-overview {
    overflow: hidden;
    border: 1px solid rgba(104, 171, 203, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(8, 27, 41, 0.98), rgba(5, 20, 32, 0.97));
    box-shadow: 0 18px 42px rgba(0, 7, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cd-audit-admin-report .card-body,
.cd-audit-admin-report .audit-report-card-body {
    color: #d9e8f0;
    background: transparent;
}

.cd-audit-admin-report .audit-report-card-title,
.cd-audit-admin-report .audit-report-block-title strong,
.cd-audit-admin-report .audit-report-priority-card-header strong,
.cd-audit-admin-report .audit-rich-block-title,
.cd-audit-admin-report .audit-report-summary-card strong,
.cd-audit-admin-report .audit-report-progress-summary-metric strong {
    color: #f0f7fa;
}

.cd-audit-admin-report .audit-report-block-title {
    border-bottom-color: rgba(115, 183, 214, 0.2);
    color: #eaf5fa;
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 94, 218, 0.13), transparent 13rem),
        linear-gradient(110deg, rgba(18, 47, 67, 0.92), rgba(10, 34, 51, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cd-audit-admin-report .audit-report-block-title .audit-report-card-heading-copy > strong,
.cd-audit-admin-report .audit-report-block-title .audit-report-screenshot-title-copy > strong {
    color: #f3fbff;
}

.cd-audit-admin-report .audit-report-block-title .audit-report-section-kicker {
    color: #75d9e8;
}

.cd-audit-admin-report .audit-report-block-title-actions > span {
    color: #dff4fb;
    background: rgba(102, 190, 219, 0.13);
    box-shadow: inset 0 0 0 1px rgba(112, 202, 231, 0.13);
}

.cd-audit-admin-report .audit-report-summary-card,
.cd-audit-admin-report .audit-report-progress-summary-card,
.cd-audit-admin-report .audit-report-recommendation-overview-item,
.cd-audit-admin-report .audit-report-category-score-table,
.cd-audit-admin-report .audit-report-detail,
.cd-audit-admin-report .audit-report-details {
    border-color: rgba(107, 172, 203, 0.18);
    color: #d7e6ee;
    background: rgba(255, 255, 255, 0.035);
}

.cd-audit-admin-report .audit-report-priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cd-audit-admin-report .audit-report-priority-list li {
    border-color: rgba(105, 168, 198, 0.14);
    color: #d8e7ee;
}

.cd-audit-admin-report .audit-report-screenshot-card {
    border-color: transparent;
}

.cd-audit-admin-report .audit-report-screenshot-card img {
    display: block;
    width: 100%;
    height: auto;
}

.cd-audit-admin-report .audit-report-card-header:hover {
    background: linear-gradient(100deg, rgba(111, 80, 199, 0.12), rgba(49, 139, 184, 0.08));
}

.cd-audit-admin-report .audit-report-card-header:focus-visible {
    outline: 2px solid #8d72e4;
    outline-offset: -2px;
}

.cd-audit-admin-report .audit-report-description,
.cd-audit-admin-report .audit-report-subtitle,
.cd-audit-admin-report .audit-report-progress-summary-description,
.cd-audit-admin-report .audit-rich-lighthouse-description,
.cd-audit-admin-report .audit-rich-mini-note,
.cd-audit-admin-report .audit-report-estimated-time span {
    color: #96aebb !important;
}

html[data-theme="light"] .cd-audit-admin-report .card,
html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-card,
html[data-theme="light"] .cd-audit-admin-report .audit-report-card,
html[data-theme="light"] .cd-audit-admin-report .audit-report-screenshot-preview,
html[data-theme="light"] .cd-audit-admin-report .audit-report-category-score-overview,
html[data-theme="light"] .cd-audit-admin-report .audit-report-recommendations-overview {
    border-color: rgba(61, 111, 142, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(241, 248, 251, 0.98));
    box-shadow: 0 18px 38px rgba(45, 77, 101, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .card-body,
html[data-theme="light"] .cd-audit-admin-report .audit-report-card-body,
html[data-theme="light"] .cd-audit-admin-report .audit-report-summary-card,
html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-card,
html[data-theme="light"] .cd-audit-admin-report .audit-report-recommendation-overview-item,
html[data-theme="light"] .cd-audit-admin-report .audit-report-category-score-table,
html[data-theme="light"] .cd-audit-admin-report .audit-report-detail,
html[data-theme="light"] .cd-audit-admin-report .audit-report-details {
    color: #36586d;
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-card-title,
html[data-theme="light"] .cd-audit-admin-report .audit-report-block-title strong,
html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-card-header strong,
html[data-theme="light"] .cd-audit-admin-report .audit-rich-block-title,
html[data-theme="light"] .cd-audit-admin-report .audit-report-summary-card strong,
html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-metric strong {
    color: #17384e;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-block-title {
    border-bottom-color: rgba(65, 108, 137, 0.14);
    color: #294c63;
    background:
        radial-gradient(circle at 100% 0%, rgba(119, 88, 211, 0.07), transparent 13rem),
        linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 250, 0.96));
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-block-title .audit-report-card-heading-copy > strong,
html[data-theme="light"] .cd-audit-admin-report .audit-report-block-title .audit-report-screenshot-title-copy > strong {
    color: #294c63;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-block-title .audit-report-section-kicker {
    color: #176f9b;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-block-title-actions > span {
    color: #31576e;
    background: rgba(54, 137, 181, 0.09);
    box-shadow: inset 0 0 0 1px rgba(54, 137, 181, 0.09);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-description,
html[data-theme="light"] .cd-audit-admin-report .audit-report-subtitle,
html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-description,
html[data-theme="light"] .cd-audit-admin-report .audit-rich-lighthouse-description,
html[data-theme="light"] .cd-audit-admin-report .audit-rich-mini-note,
html[data-theme="light"] .cd-audit-admin-report .audit-report-estimated-time span {
    color: #607d8f !important;
}

@media (max-width: 1100px) {
    .cd-seo-keyword-stats {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .cd-audit-admin-report .audit-report-priority-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    .cd-seo-keyword-search {
        width: 100%;
        flex-basis: auto;
    }

    .cd-seo-location-tab {
        min-width: 220px;
    }

    .cd-document-view-shell.is-fullscreen {
        padding: 82px 10px 10px;
    }

    .cd-document-view-shell.is-fullscreen .cd-document-view-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 6px;
    }
}

@media (max-width: 560px) {
    .cd-seo-keyword-stats {
        grid-template-columns: 1fr;
    }

    .cd-seo-keyword-location-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cd-seo-keyword-location-heading > strong {
        margin-left: 60px;
    }
}

.cd-audit-admin-report .audit-report-top-card {
    border-color: rgba(158, 128, 235, 0.34);
}

.cd-audit-admin-report .audit-report-top-card .text-muted,
.cd-audit-admin-report .audit-report-top-card small,
.cd-audit-admin-report .audit-report-top-card .audit-report-description,
.cd-audit-admin-report .audit-report-top-card strong,
.cd-audit-admin-report .audit-report-top-card span {
    color: inherit !important;
}

.cd-audit-admin-report .audit-report-priority-critical {
    border-color: rgba(226, 85, 111, 0.3);
    background: linear-gradient(145deg, rgba(72, 26, 42, 0.95), rgba(20, 25, 38, 0.96));
}

.cd-audit-admin-report .audit-report-priority-important {
    border-color: rgba(226, 171, 75, 0.28);
    background: linear-gradient(145deg, rgba(69, 50, 24, 0.94), rgba(20, 28, 39, 0.96));
}

.cd-audit-admin-report .audit-report-priority-optional {
    border-color: rgba(67, 186, 130, 0.28);
    background: linear-gradient(145deg, rgba(24, 61, 49, 0.94), rgba(18, 28, 39, 0.96));
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-critical {
    border-color: rgba(190, 61, 86, 0.18);
    background: linear-gradient(145deg, #fff5f7, #ffffff);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-important {
    border-color: rgba(174, 123, 36, 0.18);
    background: linear-gradient(145deg, #fffaf0, #ffffff);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-optional {
    border-color: rgba(42, 139, 91, 0.18);
    background: linear-gradient(145deg, #f2fcf7, #ffffff);
}
:root {
    --cd-sidebar-compact-width: 84px;
}

html.cd-theme-document:not([data-theme-design-storage-key]) {
    --cd-sidebar-compact-width: 72px;
}

.cd-menu-toggle {
    display: inline-flex;
    flex: 0 0 42px;
}

.cd-app-shell,
.cd-sidebar,
.cd-main,
.cd-nav-item,
.cd-nav-item > span,
.cd-nav-item > i,
.cd-sidebar-cosmos {
    transition:
        width 360ms cubic-bezier(0.16, 1, 0.3, 1),
        grid-template-columns 360ms cubic-bezier(0.16, 1, 0.3, 1),
        padding 360ms cubic-bezier(0.16, 1, 0.3, 1),
        gap 280ms ease,
        opacity 220ms ease,
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.cd-sidebar-collapsed .cd-app-shell {
    grid-template-columns: var(--cd-sidebar-compact-width) minmax(0, 1fr);
}

html.cd-sidebar-collapsed .cd-sidebar {
    width: var(--cd-sidebar-compact-width);
    padding-right: 11px;
    padding-left: 11px;
}

html.cd-sidebar-collapsed .cd-nav-item {
    position: relative;
    justify-content: center;
    gap: 0;
    overflow: visible;
    padding-right: 0;
    padding-left: 0;
}

html.cd-sidebar-collapsed .cd-nav-item > span:not(.badge) {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-8px);
    white-space: nowrap;
}

html.cd-sidebar-collapsed .cd-nav-item > i {
    width: 24px;
    font-size: 17px;
}

html.cd-sidebar-collapsed .cd-nav::before {
    right: 0;
    left: 0;
}

html.cd-sidebar-collapsed .cd-sidebar-cosmos {
    right: -11px;
    left: -11px;
    opacity: 0.72;
    transform: scale(0.82) translateY(18px);
}

.cd-sidebar {
    isolation: isolate;
}

.cd-sidebar .cd-nav {
    position: relative;
    z-index: 3;
}

.cd-sidebar-cosmos {
    position: absolute;
    z-index: 1;
    top: 54%;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.92;
}

.cd-sidebar-cosmos::before {
    position: absolute;
    right: -74px;
    bottom: -78px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(119, 101, 220, 0.17);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 28px rgba(70, 166, 201, 0.035),
        0 0 0 64px rgba(129, 91, 210, 0.025);
}

.cd-sidebar-cosmos::after {
    position: absolute;
    right: -30px;
    bottom: 18px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    content: "";
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px),
        radial-gradient(circle at 62% 64%, rgba(66, 199, 218, 0.24), transparent 44%),
        linear-gradient(145deg, rgba(107, 76, 191, 0.34), rgba(35, 113, 163, 0.12));
    filter: blur(0.2px);
    box-shadow: -28px -18px 58px rgba(93, 73, 193, 0.12);
}

.cd-sidebar-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #dff8ff;
    box-shadow: 0 0 9px rgba(122, 224, 255, 0.92);
    animation: cd-sidebar-star-pulse 2.8s ease-in-out infinite;
}

.cd-sidebar-star-one { top: 12%; left: 18%; }
.cd-sidebar-star-two { top: 29%; right: 22%; animation-delay: -0.9s; }
.cd-sidebar-star-three { top: 46%; left: 42%; animation-delay: -1.7s; }

.cd-sidebar-planet {
    position: absolute;
    border-radius: 50%;
}

.cd-sidebar-planet-one {
    top: 12%;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(180, 145, 239, 0.3);
    background: radial-gradient(circle at 34% 28%, #d8c4ff, #7658bd 58%, #263c67 100%);
    box-shadow: 0 12px 32px rgba(73, 52, 147, 0.28);
}

.cd-sidebar-planet-one::after {
    position: absolute;
    top: 15px;
    left: -8px;
    width: 50px;
    height: 8px;
    border: 1px solid rgba(140, 215, 235, 0.38);
    border-radius: 50%;
    content: "";
    transform: rotate(-14deg);
}

.cd-sidebar-planet-two {
    right: 86px;
    bottom: 18px;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, #62d6e4, #28749d);
    box-shadow: 0 0 20px rgba(62, 194, 214, 0.34);
}

.cd-sidebar-orbit {
    position: absolute;
    right: 18px;
    bottom: 26px;
    width: 190px;
    height: 94px;
    border: 1px solid rgba(132, 108, 221, 0.16);
    border-radius: 50%;
    transform: rotate(-24deg);
}

.cd-sidebar-rocket {
    position: absolute;
    z-index: 2;
    place-items: center;
    color: #ffffff;
}

.cd-sidebar-rocket i {
    transform: rotate(38deg);
}

.cd-sidebar-rocket-trail {
    position: absolute;
}

html[data-theme="light"] .cd-sidebar-cosmos {
    opacity: 0.72;
}

html[data-theme="light"] .cd-sidebar-rocket {
    border-color: rgba(255, 255, 255, 0.9);
}

@keyframes cd-sidebar-star-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.35); }
}

/* Keep fullscreen document actions in the fixed banner flow. */
.cd-document-view-shell.is-fullscreen {
    padding-top: 82px;
}

.cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
}

.cd-document-view-shell.is-fullscreen .cd-page-banner-actions.cd-document-view-actions {
    position: static !important;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    transform: none !important;
}

.cd-task-report-stat,
.cd-seo-report-tab {
    isolation: isolate;
    overflow: hidden;
}

.cd-task-report-stat::before,
.cd-seo-report-tab::before {
    position: absolute;
    z-index: 0;
    inset: -28% -18%;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    content: "";
    opacity: 0;
    background: radial-gradient(circle at 78% 24%, rgba(132, 111, 222, 0.18), rgba(57, 145, 190, 0.08) 38%, transparent 70%);
    transform: translate3d(8px, 4px, 0) scale(0.98);
    transition: opacity 240ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cd-task-report-stat:hover::before,
.cd-seo-report-tab:hover::before,
.cd-seo-report-tab.is-active::before {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.cd-task-report-stat > *,
.cd-seo-report-tab > * {
    position: relative;
    z-index: 1;
}

.cd-task-report-stat:hover {
    border-color: rgba(112, 177, 213, 0.26);
    box-shadow: 0 18px 38px rgba(0, 8, 20, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.075);
    transform: translateY(-2px);
}

.cd-seo-report-tab {
    position: relative;
    transition: transform 220ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.cd-seo-report-tab.is-active {
    color: #ffffff;
    border-color: rgba(169, 144, 238, 0.36);
    background: linear-gradient(115deg, rgba(111, 78, 191, 0.92), rgba(48, 126, 174, 0.94) 68%, rgba(37, 152, 157, 0.9));
    box-shadow: 0 12px 25px rgba(20, 25, 69, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.cd-report-workspace-seo,
.cd-report-workspace-seo-report,
.cd-seo-report-interface,
.cd-seo-report-panels,
.cd-seo-report-panel {
    overflow: visible !important;
}

.cd-report-workspace-seo > .cd-report-tabs,
.cd-report-workspace-audit > .cd-report-tabs {
    margin-bottom: 14px;
}

.cd-seo-location-tabs,
.cd-seo-keyword-page-tabs {
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 100, 215, 0.72) rgba(81, 132, 162, 0.09);
}

.cd-seo-location-tabs::-webkit-scrollbar,
.cd-seo-keyword-page-tabs::-webkit-scrollbar {
    height: 8px;
}

.cd-seo-location-tabs::-webkit-scrollbar-track,
.cd-seo-keyword-page-tabs::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(74, 127, 157, 0.08);
}

.cd-seo-location-tabs::-webkit-scrollbar-thumb,
.cd-seo-keyword-page-tabs::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(90deg, #7659bd, #398dbc, #2d9ea8) padding-box;
}

.cd-seo-location-tab {
    scroll-snap-align: start;
}

.cd-seo-location-tabs {
    scroll-snap-type: x proximity;
}

.cd-seo-keyword-location[hidden],
.cd-seo-competitor-location[hidden] {
    display: none !important;
}

.cd-seo-keyword-heading-actions {
    display: flex;
    flex: 0 1 min(430px, 45%);
    gap: 12px;
    margin-left: auto;
}

.cd-seo-keyword-location-total {
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(138, 116, 226, 0.28);
    border-radius: 12px;
    color: #d8cfff;
    background: rgba(111, 82, 202, 0.13);
    font-size: 15px;
}

html[data-theme="light"] .cd-seo-keyword-location-total {
    color: #694db2;
    border-color: rgba(110, 83, 190, 0.2);
    background: rgba(111, 82, 202, 0.08);
}

@property --audit-score-progress {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

.cd-audit-admin-report .audit-report-top-card {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 250px;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 52px);
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(126, 106, 218, 0.34);
    border-radius: 24px;
    color: #eaf6fb;
    background:
        radial-gradient(circle at 82% 12%, rgba(139, 97, 222, 0.24), transparent 20rem),
        radial-gradient(circle at 12% 110%, rgba(47, 179, 194, 0.17), transparent 18rem),
        linear-gradient(132deg, rgba(12, 30, 47, 0.98), rgba(10, 26, 43, 0.98) 58%, rgba(15, 39, 55, 0.98));
    box-shadow: 0 28px 70px rgba(0, 6, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cd-audit-admin-report .audit-report-top-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
        radial-gradient(circle at 74% 34%, rgba(159, 228, 244, 0.48) 0 1px, transparent 2px),
        radial-gradient(circle at 88% 72%, rgba(211, 180, 255, 0.54) 0 1px, transparent 2px),
        radial-gradient(circle at 42% 82%, rgba(255, 255, 255, 0.38) 0 1px, transparent 2px);
    background-size: 170px 150px, 230px 190px, 190px 210px, 280px 220px;
    opacity: 0.52;
}

.cd-audit-admin-report .audit-report-top-card::after {
    position: absolute;
    z-index: -1;
    right: -48px;
    bottom: -72px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(167, 137, 235, 0.2);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 34px rgba(68, 171, 198, 0.035), 0 0 0 72px rgba(131, 92, 210, 0.025);
}

.cd-audit-admin-report .audit-report-score-circle {
    --audit-score-progress: 0%;
    border: 0;
}

.cd-audit-admin-report .audit-report-score-circle::before {
    border: 1px dashed rgba(185, 213, 228, 0.17);
}

.cd-audit-admin-report .audit-report-score-circle > div {
    place-items: center;
    align-content: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

@keyframes cd-audit-score-load {
    from { --audit-score-progress: 0%; transform: scale(0.86) rotate(-8deg); opacity: 0; }
    to { --audit-score-progress: var(--audit-score); transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes cd-audit-orbit-spin {
    to { transform: rotate(360deg); }
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-top-card {
    color: #17384e;
    border-color: rgba(91, 79, 177, 0.2);
    background:
        radial-gradient(circle at 82% 12%, rgba(151, 119, 220, 0.14), transparent 20rem),
        radial-gradient(circle at 12% 110%, rgba(56, 183, 190, 0.1), transparent 18rem),
        linear-gradient(132deg, #ffffff, #eef7fb 58%, #edf8f7);
    box-shadow: 0 28px 62px rgba(49, 72, 103, 0.13), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle {
    background:
        radial-gradient(circle at center, #f9fcfe 0 57%, transparent 58%),
        conic-gradient(var(--audit-score-color, #7c61cc) var(--audit-score-progress), rgba(79, 125, 153, 0.13) 0);
    box-shadow: 0 22px 44px rgba(65, 70, 126, 0.16), inset 0 0 0 1px #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle > div {
    border-color: rgba(70, 117, 147, 0.13);
}

.cd-audit-admin-report .audit-report-screenshot-grid {
    align-items: center;
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.65fr);
    gap: 28px;
}

.cd-audit-admin-report .audit-report-screenshot-card {
    position: relative;
    overflow: visible;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

.cd-audit-admin-report .audit-report-screenshot-desktop {
    margin-bottom: 28px;
    padding: 18px 18px 26px;
    border: 8px solid #122737;
    border-radius: 18px;
    background: #071723 !important;
    box-shadow: 0 24px 58px rgba(0, 5, 18, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cd-audit-admin-report .audit-report-screenshot-desktop::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4da9c3;
    content: "";
    box-shadow: 0 0 8px rgba(77, 193, 216, 0.72);
    transform: translateX(-50%);
}

.cd-audit-admin-report .audit-report-screenshot-desktop::after {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 116px;
    height: 22px;
    border-radius: 4px 4px 14px 14px;
    background: linear-gradient(180deg, #1a3446, #0d2231);
    content: "";
    box-shadow: 0 8px 18px rgba(0, 5, 16, 0.24);
    clip-path: polygon(39% 0, 61% 0, 68% 55%, 100% 72%, 100% 100%, 0 100%, 0 72%, 32% 55%);
    transform: translateX(-50%);
}

.cd-audit-admin-report .audit-report-screenshot-mobile {
    width: min(100%, 300px);
    margin: 0 auto;
    padding: 24px 9px 20px;
    border: 9px solid #122737;
    border-radius: 34px;
    background: #071723 !important;
    box-shadow: 0 24px 54px rgba(0, 5, 18, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cd-audit-admin-report .audit-report-screenshot-mobile::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 54px;
    height: 7px;
    border-radius: 999px;
    background: #06131d;
    content: "";
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateX(-50%);
}

.cd-audit-admin-report .audit-report-screenshot-card img {
    overflow: hidden;
    border-radius: 7px;
    background: #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-screenshot-desktop,
html[data-theme="light"] .cd-audit-admin-report .audit-report-screenshot-mobile {
    border-color: #d7e5ed;
    background: #eef5f8 !important;
    box-shadow: 0 24px 54px rgba(44, 70, 91, 0.16), inset 0 0 0 1px #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-screenshot-desktop::after {
    background: linear-gradient(180deg, #d7e4eb, #b6cbd7);
}

.cd-audit-admin-report .audit-report-priority-card-header,
.cd-audit-admin-report .audit-report-card-header.audit-report-card-accordion-toggle {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom-color: rgba(156, 187, 205, 0.18);
    background:
        radial-gradient(circle at 94% 0%, rgba(151, 116, 231, 0.18), transparent 13rem),
        linear-gradient(110deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cd-audit-admin-report .audit-report-priority-card-header::after,
.cd-audit-admin-report .audit-report-card-header.audit-report-card-accordion-toggle::after {
    position: absolute;
    z-index: -1;
    right: -32px;
    bottom: -48px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(157, 127, 230, 0.18);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 18px rgba(58, 172, 195, 0.035);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-card-header,
html[data-theme="light"] .cd-audit-admin-report .audit-report-card-header.audit-report-card-accordion-toggle {
    border-bottom-color: rgba(61, 110, 140, 0.12);
    background:
        radial-gradient(circle at 94% 0%, rgba(151, 116, 231, 0.1), transparent 13rem),
        linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 250, 0.92));
    box-shadow: inset 0 1px 0 #ffffff;
}

@media (max-width: 960px) {
    html.cd-theme-document.cd-sidebar-collapsed .cd-app-shell {
        display: block;
    }

    html.cd-theme-document.cd-sidebar-collapsed .cd-sidebar {
        width: var(--cd-sidebar-width);
        padding: 22px 16px;
    }

    html.cd-theme-document.cd-sidebar-collapsed .cd-nav-item {
        justify-content: flex-start;
        gap: 13px;
        padding: 0 15px;
    }

    html.cd-theme-document.cd-sidebar-collapsed .cd-nav-item > span:not(.badge) {
        width: auto;
        opacity: 1;
        transform: none;
    }

    .cd-audit-admin-report .audit-report-top-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .cd-audit-admin-report .audit-report-top-meta {
        justify-content: center;
    }

    .cd-audit-admin-report .audit-report-screenshot-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    html.cd-sidebar-collapsed body.cd-body #column-left.cd-sidebar {
        width: var(--cd-sidebar-width);
        padding-right: 16px;
        padding-left: 16px;
    }

    html.cd-sidebar-collapsed body.cd-body #column-left.cd-sidebar .cd-nav-item {
        justify-content: flex-start;
        gap: 13px;
        padding-right: 15px;
        padding-left: 15px;
    }

    html.cd-sidebar-collapsed body.cd-body #column-left.cd-sidebar .cd-nav-item > span:not(.badge) {
        width: auto;
        overflow: visible;
        opacity: 1;
        transform: none;
    }

    html.cd-sidebar-collapsed body.cd-body #column-left.cd-sidebar .cd-nav-item > i {
        width: 20px;
        font-size: inherit;
    }

    html.cd-sidebar-collapsed body.cd-body #column-left.cd-sidebar .cd-sidebar-cosmos {
        right: 0;
        left: 0;
        opacity: 0.92;
        transform: none;
    }
}

@media (max-width: 760px) {
    .cd-document-view-shell.is-fullscreen {
        padding-top: 76px;
    }

    .cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner {
        min-height: 62px;
        height: 62px;
        padding: 7px 10px;
    }

    .cd-document-view-shell.is-fullscreen .cd-page-banner-actions.cd-document-view-actions {
        min-height: 42px;
        gap: 6px;
    }

    .cd-seo-keyword-location-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cd-seo-keyword-heading-actions {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
        margin-left: 0;
    }

    .cd-seo-keyword-heading-actions .cd-seo-keyword-search {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-sidebar-star,
    .cd-sidebar-rocket,
    .cd-audit-admin-report .audit-report-score-circle,
    .cd-audit-admin-report .audit-report-score-circle::before,
    .cd-seo-report-tab.is-active i {
        animation: none !important;
    }

    .cd-audit-admin-report .audit-report-score-circle {
        --audit-score-progress: var(--audit-score);
    }
}

.cd-audit-admin-report .audit-report-top-card::after {
    top: auto;
    left: auto;
}

.cd-audit-admin-report .audit-report-top-card .audit-report-top-kicker,
.cd-audit-admin-report .audit-report-top-card .audit-report-top-title span,
.cd-audit-admin-report .audit-report-top-card .audit-report-top-title strong,
.cd-audit-admin-report .audit-report-top-card .audit-report-top-content p {
    color: inherit !important;
}

.cd-audit-admin-report .audit-report-top-card .audit-report-top-content p {
    max-width: 760px;
    opacity: 0.78;
}

.cd-audit-admin-report .audit-report-top-card .audit-report-top-meta {
    flex-direction: row;
}

.cd-audit-admin-report .audit-report-top-card .audit-report-top-meta span {
    color: #d9eaf2 !important;
    border-color: rgba(175, 207, 222, 0.16);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-top-card .audit-report-top-meta span {
    color: #365a70 !important;
    border-color: rgba(64, 111, 141, 0.13);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 #ffffff;
}

.cd-audit-admin-report .audit-report-screenshot-preview {
    overflow: visible;
}

.cd-audit-admin-report .audit-report-screenshot-grid {
    padding-bottom: 42px;
}
.cd-logout-form .cd-nav-button {
    isolation: isolate;
    overflow: hidden;
}

.cd-logout-form .cd-nav-button::before {
    position: absolute;
    z-index: 0;
    inset: -40% auto -40% -55%;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    content: "";
    opacity: 0;
    transform: skewX(-20deg);
    transition: left 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.cd-logout-form .cd-nav-button:hover,
.cd-logout-form .cd-nav-button:focus-visible,
html[data-theme="light"] .cd-logout-form .cd-nav-button:hover,
html[data-theme="light"] .cd-logout-form .cd-nav-button:focus-visible {
    color: #ffffff !important;
    border-color: rgba(255, 147, 164, 0.64);
    background: linear-gradient(115deg, #c23f5d, #8d396e 56%, #4f65a8);
    box-shadow: 0 16px 34px rgba(111, 27, 62, 0.34), inset 3px 0 0 rgba(255, 255, 255, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.cd-logout-form .cd-nav-button:hover::before,
.cd-logout-form .cd-nav-button:focus-visible::before {
    left: 118%;
    opacity: 1;
}

.cd-logout-form .cd-nav-button:hover > i,
.cd-logout-form .cd-nav-button:hover > span,
.cd-logout-form .cd-nav-button:focus-visible > i,
.cd-logout-form .cd-nav-button:focus-visible > span,
html[data-theme="light"] .cd-logout-form .cd-nav-button:hover > i,
html[data-theme="light"] .cd-logout-form .cd-nav-button:hover > span,
html[data-theme="light"] .cd-logout-form .cd-nav-button:focus-visible > i,
html[data-theme="light"] .cd-logout-form .cd-nav-button:focus-visible > span {
    color: #ffffff !important;
}

.cd-logout-form .cd-nav-button:hover > i,
.cd-logout-form .cd-nav-button:focus-visible > i {
    animation: cd-logout-icon-kick 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cd-logout-icon-kick {
    0% { transform: translateX(0) scale(1); }
    38% { transform: translateX(8px) scale(1.18); opacity: 0; }
    39% { transform: translateX(-8px) scale(0.92); opacity: 0; }
    100% { transform: translateX(0) scale(1.08); opacity: 1; }
}

.cd-audit-admin-report .audit-report-grid {
    align-items: stretch;
}

.cd-audit-admin-report .audit-report-grid > .audit-report-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-audit-admin-report .audit-report-grid > .audit-report-card:not(.is-collapsed) {
    height: 100%;
    align-self: stretch;
}

.cd-audit-admin-report .audit-report-grid > .audit-report-card.is-collapsed {
    height: auto;
    align-self: start;
}

.cd-audit-admin-report .audit-report-card-body {
    height: 100%;
    flex: 1 1 auto;
}

.cd-audit-admin-report .audit-report-screenshot-heading {
    border-bottom: 1px solid rgba(133, 178, 202, 0.16);
    color: #eaf6fb;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 102, 222, 0.2), transparent 12rem),
        linear-gradient(110deg, rgba(15, 42, 59, 0.98), rgba(7, 27, 42, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cd-audit-admin-report .audit-report-screenshot-heading strong {
    color: #f3fbff !important;
}

.cd-audit-admin-report .audit-report-screenshot-heading small {
    color: #9db7c7 !important;
}

.cd-audit-admin-report .audit-report-screenshot-heading .audit-report-section-kicker {
    color: #74d5e5;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-screenshot-heading {
    border-bottom-color: rgba(62, 111, 141, 0.13);
    color: #203f53;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 102, 222, 0.1), transparent 12rem),
        linear-gradient(110deg, #ffffff, #eef7fa);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-screenshot-heading strong {
    color: #203f53 !important;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-screenshot-heading small {
    color: #617e90 !important;
}

.cd-audit-admin-report .audit-report-screenshot-grid {
    padding-top: 28px;
}

.cd-report-page > .cd-task-report-stats {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.cd-report-task-content {
    padding: clamp(18px, 2.4vw, 30px);
}

html[data-theme="light"] .cd-seo-location-tab.is-active {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    border-color: rgba(114, 211, 229, 0.62);
    background:
        linear-gradient(115deg, rgba(102, 72, 188, 0.91), rgba(48, 130, 179, 0.88) 62%, rgba(39, 157, 167, 0.88)),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat;
    box-shadow: 0 18px 34px rgba(58, 75, 148, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .cd-seo-location-tab.is-active::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat;
    content: "";
    opacity: 0.58;
    filter: brightness(1.55) contrast(1.12);
    mix-blend-mode: screen;
}

.cd-seo-location-tab > * {
    position: relative;
    z-index: 1;
}

html[data-theme="light"] .cd-seo-keyword-page-tab.is-active {
    color: #ffffff !important;
    border-color: rgba(122, 214, 229, 0.64);
    background: linear-gradient(115deg, #7656c5, #3988bb 64%, #2d9fab);
    box-shadow: 0 12px 26px rgba(56, 74, 143, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.cd-seo-keyword-page-tab strong {
    border: 1px solid rgba(159, 139, 230, 0.34);
    background: rgba(121, 91, 204, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .cd-seo-keyword-page-tab strong {
    color: #4d5189;
    border-color: rgba(92, 91, 167, 0.26);
    background: #e4e0f5;
}

html[data-theme="light"] .cd-seo-keyword-page-tab.is-active strong {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(21, 40, 84, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 12px rgba(19, 36, 80, 0.16);
}

.cd-sidebar-planet-three {
    left: -28px;
    bottom: 86px;
    width: 66px;
    height: 66px;
    opacity: 0.34;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
        radial-gradient(circle at 38% 34%, #6fd6df, #4865a4 52%, #302854 100%);
    box-shadow: 0 0 36px rgba(76, 154, 190, 0.22);
    filter: blur(0.15px);
}

.cd-sidebar-rocket::before {
    bottom: -8px;
}

.cd-sidebar-rocket::after {
    position: absolute;
    z-index: 0;
    left: -20px;
    bottom: -18px;
    width: 38px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(114, 231, 248, 0.58), rgba(125, 93, 220, 0.18), transparent 78%);
    content: "";
    filter: blur(4px);
    transform: rotate(24deg);
    animation: cd-sidebar-exhaust-glow 820ms ease-in-out infinite alternate;
}

@keyframes cd-sidebar-exhaust-glow {
    from { opacity: 0.38; transform: rotate(24deg) scaleY(0.82); }
    to { opacity: 0.72; transform: rotate(21deg) scaleY(1.16); }
}

.cd-icon-button.cd-menu-toggle,
.cd-icon-button.cd-document-view-button,
.cd-icon-button {
    border-top-color: rgba(120, 190, 234, 0.24);
    border-right-color: rgba(120, 190, 234, 0.24);
    border-bottom-color: rgba(2, 10, 24, 0.58);
    border-left-color: rgba(2, 10, 24, 0.58);
    background: linear-gradient(105deg, rgba(17, 47, 73, 0.9), rgba(15, 56, 82, 0.86) 58%, rgba(13, 63, 71, 0.78)) padding-box;
    box-shadow: 0 14px 30px rgba(0, 7, 22, 0.22), inset 3px 0 0 #2d87c8, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cd-icon-button.cd-menu-toggle:hover,
.cd-icon-button.cd-menu-toggle:focus-visible,
.cd-icon-button.cd-document-view-button:hover,
.cd-icon-button.cd-document-view-button:focus-visible,
.cd-icon-button:hover,
.cd-icon-button:focus-visible {
    border-top-color: rgba(148, 211, 249, 0.38);
    border-right-color: rgba(148, 211, 249, 0.38);
    border-bottom-color: rgba(8, 21, 40, 0.72);
    border-left-color: rgba(8, 21, 40, 0.72);
    background: linear-gradient(105deg, rgba(22, 61, 92, 0.96), rgba(19, 71, 101, 0.92) 58%, rgba(16, 77, 84, 0.84)) padding-box;
    box-shadow: 0 17px 36px rgba(0, 7, 22, 0.28), inset 3px 0 0 #4da9ff, inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .cd-icon-button.cd-menu-toggle,
html[data-theme="light"] .cd-icon-button.cd-document-view-button,
html[data-theme="light"] .cd-icon-button {
    border-top-color: rgba(255, 255, 255, 0.98);
    border-right-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(81, 143, 183, 0.18);
    border-left-color: rgba(81, 143, 183, 0.18);
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72)) padding-box;
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.12), inset 3px 0 0 #2d87c8, inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-icon-button.cd-menu-toggle:hover,
html[data-theme="light"] .cd-icon-button.cd-menu-toggle:focus-visible,
html[data-theme="light"] .cd-icon-button.cd-document-view-button:hover,
html[data-theme="light"] .cd-icon-button.cd-document-view-button:focus-visible,
html[data-theme="light"] .cd-icon-button:hover,
html[data-theme="light"] .cd-icon-button:focus-visible {
    border-top-color: rgba(255, 255, 255, 1);
    border-right-color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(69, 127, 166, 0.24);
    border-left-color: rgba(69, 127, 166, 0.24);
    background: linear-gradient(105deg, rgba(220, 237, 250, 0.94), rgba(232, 247, 253, 0.96) 58%, rgba(226, 249, 245, 0.9)) padding-box;
    box-shadow: 0 19px 39px rgba(47, 91, 124, 0.16), inset 3px 0 0 #1473e6, inset 0 1px 0 #ffffff;
}

html.cd-sidebar-collapsed .cd-nav-item:hover,
html.cd-sidebar-collapsed .cd-nav-item:focus-visible {
    transform: translateY(-1px);
}

html.cd-sidebar-collapsed .cd-nav-item:hover > i,
html.cd-sidebar-collapsed .cd-nav-item:focus-visible > i {
    transform: scale(1.2);
}

html.cd-sidebar-collapsed .cd-nav-item:hover > span:not(.badge),
html.cd-sidebar-collapsed .cd-nav-item:focus-visible > span:not(.badge) {
    transform: none;
}

.cd-report-page-actions .cd-report-download-button.is-loading {
    overflow: hidden;
}

.cd-report-page-actions .cd-report-download-button.is-loading::after {
    inset: 0;
    border-radius: inherit;
}

.cd-report-page-actions .cd-report-download-button.is-loading::before {
    opacity: 0 !important;
}

.cd-report-workspace-client_report {
    overflow: visible;
}

.cd-client-report-name {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-client-report-name strong,
.cd-client-report-name small {
    display: block;
}

.cd-client-report-name strong {
    color: #eaf5fa;
    font-size: 14px;
}

.cd-client-report-name small {
    margin-top: 4px;
    color: #809bac;
    font-size: 11px;
}

.cd-client-report-download-button,
.cd-client-report-file-group summary,
.cd-client-report-file-empty {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 750;
}

.cd-client-report-download-button {
    min-width: 112px;
    padding: 0 14px;
    font-size: 12px;
}

.cd-client-report-download-button.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.cd-client-report-file-group {
    position: relative;
    width: 118px;
}

.cd-client-report-file-group[open] {
    z-index: 40;
}

.cd-client-report-file-group summary {
    width: 100%;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid rgba(111, 179, 204, 0.18);
    color: #dcebf2;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 3px 0 0 #528caf;
    cursor: pointer;
    list-style: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.cd-client-report-file-group summary::-webkit-details-marker { display: none; }
.cd-client-report-file-group summary > span { display: inline-flex; align-items: center; gap: 8px; }
.cd-client-report-file-group summary > i { font-size: 9px; transition: transform 180ms ease; }
.cd-client-report-file-group[open] summary > i { transform: rotate(180deg); }
.cd-client-report-file-group[open] summary,
.cd-client-report-file-group summary:hover {
    border-color: rgba(116, 213, 229, 0.42);
    background: rgba(77, 151, 184, 0.13);
    transform: translateY(-1px);
}

.cd-client-report-file-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, 76vw);
    padding: 8px;
    border: 1px solid rgba(111, 179, 204, 0.18);
    border-radius: 14px;
    background: #0a2132;
    box-shadow: 0 22px 48px rgba(0, 7, 18, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-client-report-file-menu a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #dcebf2;
    font-size: 12px;
    transition: color 170ms ease, background 170ms ease, transform 170ms ease;
}

.cd-client-report-file-menu a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-client-report-file-menu a:hover {
    color: #ffffff;
    background: rgba(87, 177, 202, 0.13);
    transform: translateX(2px);
}

.cd-client-report-file-empty {
    justify-content: flex-start;
    color: #728c9c;
}

html[data-theme="light"] .cd-client-report-name strong { color: #203f53; }
html[data-theme="light"] .cd-client-report-name small { color: #6b8798; }
html[data-theme="light"] .cd-client-report-file-group summary {
    color: #355a70;
    border-color: rgba(56, 113, 144, 0.16);
    background: #f1f7fa;
}

html[data-theme="light"] .cd-client-report-file-menu {
    border-color: rgba(57, 104, 134, 0.14);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(44, 77, 101, 0.16), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-client-report-file-menu a { color: #35566b; }
html[data-theme="light"] .cd-client-report-file-menu a:hover { color: #1d465d; background: #edf6f9; }
html[data-theme="light"] .cd-client-report-file-empty { color: #718b9a; }
html[data-theme="light"] .cd-client-report-download-button.is-disabled {
    color: #8296a2;
    border-color: rgba(68, 110, 137, 0.12);
    background: #f1f5f7;
}

@media (max-width: 860px) {

    .cd-client-report-file-menu {
        right: auto;
        left: 0;
    }
}

@media (max-width: 520px) {
    .cd-client-report-name { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cd-sidebar-rocket,
    .cd-sidebar-rocket::before,
    .cd-sidebar-rocket::after,
    .cd-sidebar-rocket-trail,
    .cd-logout-form .cd-nav-button:hover > i,
    .cd-logout-form .cd-nav-button:focus-visible > i {
        animation: none !important;
    }
}
html[data-theme="light"] .cd-page-banner-surface {
    border-color: rgba(64, 105, 134, 0.11);
    background:
        radial-gradient(circle at 84% 20%, rgba(130, 88, 200, 0.11), transparent 17rem) padding-box,
        radial-gradient(circle at 96% 110%, rgba(45, 189, 187, 0.1), transparent 16rem) padding-box,
        linear-gradient(112deg, rgba(255, 255, 255, 0.99), rgba(237, 247, 252, 0.98) 58%, rgba(232, 248, 247, 0.97)) padding-box;
    box-shadow: 0 20px 46px rgba(47, 91, 124, 0.11), inset 0 1px 0 #ffffff;
}

.cd-report-toolbar {
    min-height: 74px;
    justify-content: flex-end;
    padding-top: 14px;
    padding-bottom: 14px;
}

.cd-report-tabs,
html[data-theme="light"] .cd-report-tabs {
    border-bottom: 0;
}

.cd-seo-location-tab {
    min-width: 280px;
    min-height: 78px;
    gap: 10px;
    padding: 14px 16px 14px 18px;
}

.cd-seo-location-tab small {
    display: none !important;
}

.cd-seo-location-tab-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex: 1;
    align-items: center;
}

.cd-seo-location-tab strong {
    width: 100%;
    margin: 0;
    overflow: visible;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cd-seo-competitor-tab.is-active,
.cd-seo-competitor-tab.is-positive.is-active,
html[data-theme="light"] .cd-seo-competitor-tab.is-active,
html[data-theme="light"] .cd-seo-competitor-tab.is-positive.is-active {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    border-color: rgba(114, 211, 229, 0.58);
    background:
        linear-gradient(115deg, rgba(102, 72, 188, 0.94), rgba(48, 130, 179, 0.91) 62%, rgba(39, 157, 167, 0.9)),
        url("../image/client_dashboard/world_map.svg") 88% center / 190px auto no-repeat;
    box-shadow: 0 15px 32px rgba(42, 47, 112, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

.cd-seo-competitor-tab.is-active strong,
.cd-seo-competitor-tab.is-positive.is-active strong,
.cd-seo-competitor-tab.is-active span,
html[data-theme="light"] .cd-seo-competitor-tab.is-active strong,
html[data-theme="light"] .cd-seo-competitor-tab.is-positive.is-active strong,
html[data-theme="light"] .cd-seo-competitor-tab.is-active span {
    color: #ffffff !important;
    text-shadow: 0 1px 12px rgba(10, 29, 65, 0.28);
}

.cd-seo-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
}

.cd-seo-metric-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cd-seo-metric-grid > div {
    position: relative;
    isolation: isolate;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 16px;
    border-color: rgba(114, 176, 214, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 106% -12%, rgba(91, 104, 229, 0.2), transparent 9rem),
        radial-gradient(circle at -8% 114%, rgba(43, 185, 188, 0.12), transparent 9rem),
        linear-gradient(145deg, rgba(12, 34, 50, 0.98), rgba(6, 22, 35, 0.98));
    box-shadow: 0 16px 36px rgba(0, 8, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 200ms ease;
}

.cd-seo-metric-grid > div::before {
    position: absolute;
    z-index: -1;
    top: -38px;
    right: -32px;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(145, 126, 232, 0.16);
    border-radius: 38% 62% 52% 48%;
    content: "";
    transform: rotate(24deg);
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.cd-seo-metric-grid > div::after {
    position: absolute;
    z-index: -1;
    top: 16px;
    right: 18px;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, rgba(167, 137, 240, 0.72), transparent);
    box-shadow: 0 0 14px rgba(125, 112, 235, 0.25);
    content: "";
}

.cd-seo-metric-grid > div:hover {
    border-color: rgba(118, 169, 235, 0.36);
    box-shadow: 0 22px 46px rgba(0, 8, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.cd-seo-metric-grid > div:hover::before {
    border-color: rgba(151, 126, 232, 0.3);
    transform: rotate(36deg) scale(1.06);
}

.cd-seo-metric-grid span {
    min-height: 0;
    color: #91a9b8;
    line-height: 1.35;
}

.cd-seo-metric-grid strong {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-family: "Sora", sans-serif;
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1;
}

html[data-theme="light"] .cd-seo-metric-grid > div {
    border-color: rgba(65, 105, 137, 0.14);
    background:
        radial-gradient(circle at 106% -12%, rgba(112, 91, 213, 0.12), transparent 9rem),
        radial-gradient(circle at -8% 114%, rgba(45, 178, 180, 0.1), transparent 9rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(237, 246, 251, 0.98));
    box-shadow: 0 16px 34px rgba(41, 72, 97, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-metric-grid > div:hover {
    border-color: rgba(100, 111, 198, 0.26);
    box-shadow: 0 22px 44px rgba(44, 69, 112, 0.16), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-metric-grid span {
    color: #617d8f;
}

html[data-theme="light"] .cd-seo-metric-grid strong {
    color: #203f53;
}

.cd-seo-subcard-heading,
.cd-seo-signal-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.cd-seo-subcard-heading > span,
.cd-seo-signal-card-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(115, 188, 211, 0.2);
    border-radius: 11px;
    color: #79d6e6;
    background: rgba(61, 147, 181, 0.12);
}

.cd-seo-subcard-heading h3,
.cd-seo-signal-card-heading h3 {
    flex: 1;
    margin: 0;
}

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

.cd-seo-distribution-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cd-seo-distribution-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(106, 160, 190, 0.13);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(12, 31, 45, 0.72), rgba(5, 20, 32, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cd-seo-distribution-card:hover {
    border-color: rgba(119, 190, 216, 0.3);
    box-shadow: 0 14px 28px rgba(0, 8, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    transform: translateY(-2px);
}

.cd-seo-distribution-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cd-seo-distribution-comparison {
    display: grid;
    gap: 10px;
}

.cd-seo-distribution-side > span,
.cd-seo-distribution-counts > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.cd-seo-distribution-side small,
.cd-seo-distribution-counts small,
.cd-seo-signal-positions small {
    color: #819cab;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cd-seo-distribution-side strong,
.cd-seo-distribution-counts strong {
    color: #eff8fb;
    font-size: 15px;
}

.cd-seo-distribution-side em {
    float: right;
    margin-top: -20px;
    color: #9bb3c1;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.cd-seo-distribution-side > div {
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.cd-seo-distribution-side > div > i {
    width: min(var(--cd-seo-share, 0%), 100%);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #7657c3, #4a94c4);
    box-shadow: 0 0 12px rgba(105, 94, 214, 0.28);
}

.cd-seo-distribution-side.is-competitor > div > i {
    background: linear-gradient(90deg, #cf5572, #e29464);
    box-shadow: 0 0 12px rgba(207, 85, 114, 0.24);
}

.cd-seo-distribution-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cd-seo-distribution-counts > span {
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(91, 104, 207, 0.1);
}

.cd-seo-distribution-counts > .is-competitor {
    background: rgba(207, 85, 114, 0.1);
}

.cd-seo-opportunity-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.cd-seo-signal-card {
    --cd-seo-signal-accent: 126, 101, 218;
    --cd-seo-signal-secondary: 72, 153, 201;
    position: relative;
    isolation: isolate;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
}

.cd-seo-signal-card.is-risk {
    --cd-seo-signal-accent: 222, 81, 107;
    --cd-seo-signal-secondary: 225, 145, 89;
}

.cd-seo-signal-card.is-win {
    --cd-seo-signal-accent: 56, 188, 128;
    --cd-seo-signal-secondary: 57, 178, 181;
}

.cd-seo-signal-card::before {
    position: absolute;
    z-index: -1;
    top: 10px;
    right: 10px;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(var(--cd-seo-signal-secondary), 0.2);
    border-radius: 50%;
    background:
        radial-gradient(circle at 31% 34%, rgba(253, 184, 22, 0.78) 0 2px, transparent 2.7px),
        radial-gradient(circle at 69% 29%, rgba(255, 255, 255, 0.74) 0 1.4px, transparent 2px),
        radial-gradient(circle at 58% 70%, rgba(var(--cd-seo-signal-secondary), 0.72) 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 50% 50%, rgba(var(--cd-seo-signal-accent), 0.2), rgba(var(--cd-seo-signal-accent), 0.055) 47%, transparent 68%);
    box-shadow:
        0 0 34px rgba(var(--cd-seo-signal-accent), 0.16),
        inset 0 0 26px rgba(var(--cd-seo-signal-secondary), 0.09);
    content: "";
    opacity: 0.92;
    transform: rotate(-18deg);
}

.cd-seo-signal-card-heading > strong {
    min-width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(139, 117, 222, 0.24);
    border-radius: 10px;
    color: #d5cafa;
    background: rgba(106, 80, 192, 0.14);
    font-size: 12px;
}

.cd-seo-signal-card.is-risk .cd-seo-signal-card-icon {
    color: #ff9aa8;
    border-color: rgba(220, 76, 101, 0.24);
    background: rgba(220, 76, 101, 0.12);
}

.cd-seo-signal-card.is-win .cd-seo-signal-card-icon {
    color: #82dfb5;
    border-color: rgba(60, 178, 119, 0.24);
    background: rgba(60, 178, 119, 0.12);
}

.cd-seo-signal-list {
    display: grid;
    gap: 8px;
}

.cd-seo-signal-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(108, 158, 188, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.026);
    transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.cd-seo-signal-item:hover {
    border-color: rgba(119, 190, 216, 0.24);
    background: rgba(74, 145, 178, 0.075);
    transform: translateX(3px);
}

.cd-seo-signal-index {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #cabdf2;
    background: rgba(112, 84, 198, 0.15);
    font-size: 11px;
    font-weight: 850;
}

.cd-seo-signal-keyword {
    min-width: 0;
}

.cd-seo-signal-keyword strong,
.cd-seo-signal-keyword span {
    display: block;
}

.cd-seo-signal-keyword strong {
    overflow: hidden;
    color: #eaf5fa;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-seo-signal-keyword span {
    margin-top: 3px;
    color: #8ca6b5;
    font-size: 10px;
}

.cd-seo-signal-positions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cd-seo-signal-positions > span {
    min-width: 42px;
    text-align: center;
}

.cd-seo-signal-positions small,
.cd-seo-signal-positions strong {
    display: block;
}

.cd-seo-signal-positions strong {
    margin-top: 2px;
    color: #eef7fa;
    font-size: 13px;
}

.cd-seo-signal-positions > i {
    color: #607f91;
    font-size: 10px;
}

html[data-theme="light"] .cd-seo-distribution-card,
html[data-theme="light"] .cd-seo-signal-item {
    border-color: rgba(61, 108, 138, 0.11);
    background: rgba(246, 250, 252, 0.92);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-distribution-card:hover,
html[data-theme="light"] .cd-seo-signal-item:hover {
    border-color: rgba(54, 130, 162, 0.22);
    background: #ffffff;
}

html[data-theme="light"] .cd-seo-subcard-heading > span,
html[data-theme="light"] .cd-seo-signal-card-icon {
    color: #2d84a6;
    border-color: rgba(54, 132, 164, 0.17);
    background: #e8f4f8;
}

html[data-theme="light"] .cd-seo-distribution-side small,
html[data-theme="light"] .cd-seo-distribution-counts small,
html[data-theme="light"] .cd-seo-signal-positions small {
    color: #6d8797;
}

html[data-theme="light"] .cd-seo-distribution-side strong,
html[data-theme="light"] .cd-seo-distribution-counts strong,
html[data-theme="light"] .cd-seo-signal-keyword strong,
html[data-theme="light"] .cd-seo-signal-positions strong {
    color: #203f53;
}

html[data-theme="light"] .cd-seo-distribution-side em,
html[data-theme="light"] .cd-seo-signal-keyword span {
    color: #6f8999;
}

html[data-theme="light"] .cd-seo-distribution-side > div {
    background: rgba(55, 102, 132, 0.09);
}

html[data-theme="light"] .cd-seo-signal-card-heading > strong {
    color: #684eae;
    border-color: rgba(104, 78, 174, 0.18);
    background: #eee9f8;
}

html[data-theme="light"] .cd-seo-signal-card.is-risk .cd-seo-signal-card-icon {
    color: #b53f55;
    border-color: rgba(181, 63, 85, 0.16);
    background: #fff0f3;
}

html[data-theme="light"] .cd-seo-signal-card.is-win .cd-seo-signal-card-icon {
    color: #287a54;
    border-color: rgba(40, 122, 84, 0.16);
    background: #eaf8f1;
}
.cd-report-keywords-table th:nth-child(3),
.cd-report-keywords-table td:nth-child(3) { width: 9%; }
.cd-report-keywords-table th:nth-child(4),
.cd-report-keywords-table td:nth-child(4) { width: 10%; }
.cd-report-keywords-table th:nth-child(5),
.cd-report-keywords-table td:nth-child(5) { width: 11%; }
.cd-report-keywords-table th:nth-child(6),
.cd-report-keywords-table td:nth-child(6) { width: 19%; }

.cd-report-keywords-table th:nth-child(n + 2),
.cd-report-keywords-table td:nth-child(n + 2) {
    text-align: center;
}

.cd-report-keywords-table .cd-report-keyword-group-row td {
    width: auto;
    text-align: left !important;
}

.cd-report-keywords-table .cd-report-keyword-name {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.cd-seo-range-badge {
    border: 1px solid rgba(91, 157, 191, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .cd-seo-range-badge {
    color: #2d5870;
    border-color: rgba(54, 121, 153, 0.2);
    background: #e4f1f6;
    box-shadow: inset 0 1px 0 #ffffff;
}

@media (max-width: 1180px) {
    .cd-seo-opportunity-grid {
        grid-template-columns: 1fr;
    }
}

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

    .cd-seo-distribution-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .cd-report-toolbar {
        min-height: 68px;
        align-items: stretch;
        padding: 12px;
    }

    .cd-report-month-form,
    .cd-report-month-select-wrap {
        width: 100%;
    }

    .cd-seo-location-tab {
        min-width: min(280px, 84vw);
    }

    .cd-seo-metric-grid-compact {
        grid-template-columns: 1fr;
    }

    .cd-seo-signal-item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .cd-seo-signal-positions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

/* ==================== 09. Sidebar motion, authentication and page transitions ==================== */
.cd-sidebar-rocket {
    right: auto;
    bottom: 78px;
    left: 50%;
    width: 112px;
    height: 154px;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translate3d(-50%, 0, 0);
    animation: cd-sidebar-rocket-corporate-flight 4.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

html[data-theme="light"] .cd-sidebar-rocket {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.cd-sidebar-rocket .cd-rocket-svg,
html[data-theme="light"] .cd-sidebar-rocket .cd-rocket-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    transform: none;
}

.cd-sidebar-rocket::before {
    position: absolute;
    z-index: 1;
    top: 78%;
    left: 37%;
    width: 18px;
    height: 99px;
    border-radius: 999px 999px 70% 70%;
    background: linear-gradient(180deg, rgba(255, 247, 177, 0.96) 0%, rgba(255, 154, 73, 0.9) 28%, rgba(238, 77, 177, 0.58) 66%, rgba(238, 77, 177, 0) 100%);
    content: "";
    filter: blur(0.6px);
    transform: rotate(24deg) scaleY(0.92);
    transform-origin: 50% 0;
    animation: cd-sidebar-rocket-stripe-pulse 760ms ease-in-out infinite alternate;
}

.cd-sidebar-rocket::after {
    display: none;
}

.cd-sidebar-rocket-trail {
    right: auto;
    bottom: 16px;
    left: calc(65% - 39px);
    width: 10px;
    height: 124px;
    border-radius: 999px;
    opacity: 0.52;
    background: linear-gradient(180deg, rgba(255, 151, 72, 0.54) 0%, rgba(236, 81, 181, 0.28) 48%, rgba(117, 92, 219, 0) 100%);
    box-shadow: none;
    filter: blur(2px);
    transform: rotate(24deg);
    transform-origin: 50% 0;
    animation: cd-sidebar-rocket-trail-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes cd-sidebar-rocket-corporate-flight {
    0%, 100% {
        transform: translate3d(-50%, 0, 0) rotate(-1deg);
    }
    50% {
        transform: translate3d(calc(-50% + 3px), -10px, 0) rotate(1deg);
    }
}

@keyframes cd-sidebar-rocket-stripe-pulse {
    from {
        opacity: 0.72;
        transform: rotate(24deg) scale(0.9, 0.84);
    }
    to {
        opacity: 1;
        transform: rotate(24deg) scale(1.04, 1.08);
    }
}

@keyframes cd-sidebar-rocket-trail-pulse {
    from {
        opacity: 0.28;
        transform: rotate(24deg) scaleY(0.88);
    }
    to {
        opacity: 0.56;
        transform: rotate(24deg) scaleY(1.05);
    }
}

@media (max-height: 760px) {
    .cd-sidebar-rocket {
        bottom: 62px;
        width: 96px;
        height: 132px;
    }

    .cd-sidebar-rocket-trail {
        bottom: 20px;
        left: calc(50% - 34px);
        height: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-sidebar-rocket,
    .cd-sidebar-rocket::before,
    .cd-sidebar-rocket-trail {
        animation: none !important;
    }
}
html[data-theme="light"] .cd-seo-location-tab.is-active small,
html[data-theme="light"] .cd-seo-location-tab.is-active strong,
html[data-theme="light"] .cd-seo-location-tab.is-active em {
    color: #ffffff !important;
    text-shadow:
        0 1px 2px rgba(5, 19, 43, 0.92),
        0 0 10px rgba(9, 30, 65, 0.7),
        0 2px 18px rgba(8, 24, 55, 0.58);
}

html[data-theme="light"] .cd-seo-location-tab.is-active strong {
    font-weight: 850;
}

html[data-theme="light"] .cd-seo-location-tab.is-active em {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(7, 24, 55, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 14px rgba(8, 20, 48, 0.18);
    backdrop-filter: blur(5px);
}

.cd-seo-location-tabs.cd-seo-keyword-location-tabs {
    padding-top: 12px;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-card-header-actions > span,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-block-title-actions > span {
    color: #edf8fc !important;
    border: 1px solid rgba(132, 190, 216, 0.2);
    background: rgba(13, 45, 64, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 6px 16px rgba(0, 7, 18, 0.17);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-recommendations-export-btn.btn-light {
    color: #eaf7fc;
    border-color: rgba(132, 190, 216, 0.2);
    background: rgba(13, 45, 64, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-recommendations-export-btn.btn-light:hover,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-recommendations-export-btn.btn-light:focus {
    color: #ffffff;
    border-color: rgba(92, 199, 221, 0.42);
    background: rgba(23, 75, 96, 0.96);
}

.cd-audit-admin-report .audit-report-detail {
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid rgba(107, 158, 187, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-card-body {
    color: #d7e6ee;
    background: linear-gradient(145deg, rgba(5, 20, 32, 0.68), rgba(8, 28, 42, 0.5));
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-detail span,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-item strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-card span,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-mini-grid span,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-card-title small,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-line span,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-description {
    color: #9fb7c5 !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-detail strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-item span,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-mini-grid strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-line strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-block-title,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-card-title strong {
    color: #edf7fb !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-block,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-item,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-card,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-mini-grid > div,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-line,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-mini-note {
    border-color: rgba(112, 165, 194, 0.16);
    background: rgba(10, 34, 49, 0.7);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-mini-note {
    color: #aec3ce;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-list li {
    border-color: rgba(112, 165, 194, 0.18);
    background: linear-gradient(145deg, rgba(9, 35, 51, 0.9), rgba(7, 27, 41, 0.8));
    box-shadow: inset 0 1px 0 rgba(198, 231, 245, 0.035);
    color: #d8e7ee;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-list strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-recommendation-overview-item strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-serp-domain,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-heading-status-row span,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-heading-status-row strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-card strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-item strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-external-card strong,
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-header strong {
    color: #edf7fb !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-list div,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-list em,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-recommendation-overview-item div,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-recommendation-overview-item em,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-empty,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-serp-url,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-serp-description,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-heading-status-row small,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-small-list div,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-table th,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-external-card span,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-external-card small,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-card small,
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-header span,
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-content small,
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-content p {
    color: #9fb7c5 !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-serp-preview,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-heading-status-row,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-small-list,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-table,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-item,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-external-card,
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal,
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-header {
    border-color: rgba(112, 165, 194, 0.17);
    background: rgba(8, 30, 45, 0.82);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-serp-title {
    color: #a8c7fa !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-item span,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-item em {
    background: rgba(148, 163, 184, 0.14);
    color: #dbeaf1 !important;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-empty {
    border-color: rgba(112, 165, 194, 0.28);
    background: rgba(8, 30, 45, 0.76);
    color: #c4d9e4 !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-status {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-item .audit-rich-lighthouse-status-success {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.22);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-item .audit-rich-lighthouse-status-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d !important;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-lighthouse-item .audit-rich-lighthouse-status-danger {
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af !important;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.22);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-content > div,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-small-list div,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-table td,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-table th {
    border-color: rgba(112, 165, 194, 0.14) !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-problem {
    color: #f1cbd5;
    border-color: rgba(225, 92, 119, 0.28);
    background: rgba(112, 31, 49, 0.3);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-recommendation {
    color: #cce9da;
    border-color: rgba(69, 177, 125, 0.26);
    background: rgba(25, 94, 64, 0.28);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-success,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-success,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-heading-status-success,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-row-success td {
    border-color: rgba(67, 184, 126, 0.25);
    background: rgba(24, 91, 62, 0.3);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-warning,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-warning,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-heading-status-warning,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-row-warning td,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-row-important td,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-row-open td {
    border-color: rgba(224, 169, 71, 0.25);
    background: rgba(102, 72, 25, 0.31);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-danger,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-danger,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-heading-status-danger,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-row-danger td,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-row-critical td {
    border-color: rgba(225, 92, 119, 0.25);
    background: rgba(112, 31, 49, 0.3);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-info,
html[data-theme="dark"] .cd-audit-admin-report .audit-rich-metric-muted {
    border-color: rgba(76, 157, 205, 0.24);
    background: rgba(27, 75, 105, 0.3);
}

html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-pass .audit-ai-signal-status span { color: #72d99f !important; }
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-warn .audit-ai-signal-status span { color: #f0c36d !important; }
html[data-theme="dark"] .cd-audit-admin-report .audit-ai-signal-fail .audit-ai-signal-status span { color: #f18b9f !important; }

html[data-theme="dark"] .cd-audit-admin-report .audit-report-card-toggle-icon,
html[data-theme="dark"] .cd-audit-admin-report .audit-report-empty {
    color: #9fb8c7;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-filter-button.nav-link.active,
html[data-theme="light"] .cd-audit-admin-report .audit-report-filter-button.active {
    color: #ffffff !important;
    border-color: rgba(106, 86, 201, 0.36) !important;
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa) !important;
    box-shadow: 0 12px 26px rgba(61, 76, 151, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card:nth-child(-n/**/+2) {
    min-width: 0;
    max-width: none;
    min-height: 126px;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px 18px;
    border: 1px solid rgba(110, 164, 193, 0.16);
    border-radius: 17px;
    color: #eaf5fa;
    background:
        radial-gradient(circle at 92% 0%, rgba(127, 93, 216, 0.15), transparent 8rem),
        linear-gradient(145deg, rgba(11, 35, 51, 0.96), rgba(7, 25, 39, 0.96));
    box-shadow: 0 16px 34px rgba(0, 7, 18, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card::before {
    right: 15%;
    left: 15%;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #7d5bce, #3e92c7 58%, #35aaa9);
    box-shadow: 0 0 16px rgba(84, 134, 214, 0.28);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card::after {
    position: absolute;
    right: -28px;
    bottom: -36px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(124, 104, 218, 0.13);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 16px rgba(54, 154, 192, 0.025);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card:nth-child(2)::before { background: linear-gradient(90deg, #3e92c7, #35aaa9); }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card:nth-child(3)::before { background: linear-gradient(90deg, #35aaa9, #42b77f); }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card:nth-child(4)::before { background: linear-gradient(90deg, #e0a84c, #d77c55); }
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card:nth-child(5)::before { background: linear-gradient(90deg, #d95c78, #9258c8); }

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card:hover {
    border-color: rgba(101, 198, 217, 0.28);
    box-shadow: 0 20px 42px rgba(0, 7, 18, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card strong {
    color: #f3fbff;
    font-family: "Sora", sans-serif;
    font-size: clamp(25px, 2.2vw, 34px);
    letter-spacing: -0.04em;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary-card span {
    max-width: 150px;
    margin-top: 10px;
    color: #9bb4c2;
    line-height: 1.35;
}

html:where(.cd-theme-document)[data-theme="light"] .audit-report-summary-card, html[data-theme="light"] :where(.cd-theme-scope) .audit-report-summary-card,
html:where(.cd-theme-document)[data-theme="light"] .audit-report-summary-card:nth-child(-n/**/+2), html[data-theme="light"] :where(.cd-theme-scope) .audit-report-summary-card:nth-child(-n/**/+2) {
    color: #294b61;
    border-color: rgba(62, 111, 142, 0.12);
    background:
        radial-gradient(circle at 92% 0%, rgba(130, 96, 213, 0.09), transparent 8rem),
        linear-gradient(145deg, #ffffff, #eef7fa);
    box-shadow: 0 16px 32px rgba(44, 78, 103, 0.1), inset 0 1px 0 #ffffff;
}

html:where(.cd-theme-document)[data-theme="light"] .audit-report-summary-card strong, html[data-theme="light"] :where(.cd-theme-scope) .audit-report-summary-card strong { color: #17384e; }
html:where(.cd-theme-document)[data-theme="light"] .audit-report-summary-card span, html[data-theme="light"] :where(.cd-theme-scope) .audit-report-summary-card span { color: #627e90; }

html[data-theme="light"] .cd-icon-button,
html[data-theme="light"] .cd-icon-button.cd-report-download-button {
    border-top-color: rgba(255, 255, 255, 0.98);
    border-right-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(81, 143, 183, 0.18);
    color: #173d58;
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72)) padding-box;
}

html[data-theme="light"] .cd-icon-button:hover,
html[data-theme="light"] .cd-icon-button:focus-visible,
html[data-theme="light"] .cd-icon-button.cd-report-download-button:hover,
html[data-theme="light"] .cd-icon-button.cd-report-download-button:focus-visible {
    color: #145f92;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-bottom-color: rgba(69, 127, 166, 0.24);
    border-left-color: rgba(69, 127, 166, 0.24);
    background: linear-gradient(105deg, rgba(220, 237, 250, 0.94), rgba(232, 247, 253, 0.96) 58%, rgba(226, 249, 245, 0.9)) padding-box;
    box-shadow: 0 19px 39px rgba(47, 91, 124, 0.16), inset 3px 0 0 #1473e6, inset 0 1px 0 #ffffff;
}

.cd-report-data-table thead th,
.cd-listing-table-admin thead th {
    position: relative;
    padding: 6px 12px;
    border-top: 1px solid rgba(144, 198, 223, 0.16);
    border-right: 1px solid rgba(122, 174, 200, 0.08);
    border-bottom: 1px solid rgba(106, 177, 207, 0.22);
    color: #dff2f8;
    background:
        radial-gradient(circle at 92% -80%, rgba(133, 91, 216, 0.3), transparent 10rem),
        linear-gradient(110deg, rgba(17, 50, 72, 0.98), rgba(10, 37, 55, 0.98) 58%, rgba(10, 49, 59, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), inset 0 -1px 0 rgba(0, 8, 20, 0.28);
    font-size: 12px !important;
    font-weight: 850;
    letter-spacing: 0.055em;
    line-height: 1.5;
    text-transform: uppercase;
}

.cd-report-data-table thead th:first-child,
.cd-listing-table-admin thead th:first-child {
    box-shadow: inset 3px 0 0 #4299d0, inset 0 1px 0 rgba(255, 255, 255, 0.055), inset 0 -1px 0 rgba(0, 8, 20, 0.28);
}

.cd-report-data-table thead th:last-child,
.cd-listing-table-admin thead th:last-child {
    border-right: 0;
}

.cd-listing-table-admin thead th:first-child,
.cd-listing-table-admin thead th:last-child {
    border-radius: 0;
}

html[data-theme="light"] .cd-report-data-table thead th,
html[data-theme="light"] .cd-listing-table-admin thead th {
    color: #294b63 !important;
    border-top-color: #ffffff;
    border-bottom-color: rgba(68, 126, 159, 0.16);
    background:
        radial-gradient(circle at 92% -80%, rgba(132, 96, 214, 0.13), transparent 10rem),
        linear-gradient(110deg, #f8fcfe, #e8f3f8 58%, #e8f7f4);
    box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(64, 115, 146, 0.1);
}

html[data-theme="light"] .cd-report-data-table thead th:first-child,
html[data-theme="light"] .cd-listing-table-admin thead th:first-child {
    box-shadow: inset 3px 0 0 #2d87c8, inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(64, 115, 146, 0.1);
}

.cd-report-tab-dot {
    display: none !important;
}

.cd-report-tabs,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(111, 171, 202, 0.15);
    border-radius: 17px;
    background: linear-gradient(105deg, rgba(13, 39, 59, 0.92), rgba(11, 45, 65, 0.88) 58%, rgba(10, 53, 59, 0.82));
    box-shadow: 0 14px 30px rgba(0, 7, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-item {
    margin: 0;
}

:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs::-webkit-scrollbar-track {
    background: transparent;
}

:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(112, 82, 199, 0.62), rgba(55, 148, 188, 0.66), rgba(44, 163, 169, 0.62));
}

.cd-form-page .nav.nav-tabs,
.cd-modal .nav.nav-tabs {
    margin-bottom: 16px;
}

.cd-report-tab,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #9bb3c1;
    background: transparent;
    box-shadow: none;
    font-weight: 780;
    white-space: nowrap;
}

.cd-report-tab:hover,
.cd-report-tab:focus-visible,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link:hover,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link:focus-visible {
    color: #eef9fc;
    border-color: rgba(116, 183, 210, 0.16);
    background: rgba(78, 145, 178, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.cd-report-tab.is-active,
.cd-report-tab.is-active:hover,
.cd-report-tab.is-active:focus-visible,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link.active,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link.active:hover,
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link.active:focus-visible {
    color: #ffffff;
    border-color: rgba(128, 211, 226, 0.46);
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa);
    box-shadow: 0 12px 26px rgba(45, 58, 133, 0.28), inset 3px 0 0 rgba(255, 255, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .cd-report-tabs,
html[data-theme="light"].cd-theme-document .nav.nav-tabs,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs {
    border-color: rgba(81, 143, 183, 0.18);
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72));
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-report-tab,
html[data-theme="light"].cd-theme-document .nav.nav-tabs .nav-link,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link {
    color: #58758a;
}

html[data-theme="light"] .cd-report-tab:hover,
html[data-theme="light"] .cd-report-tab:focus-visible,
html[data-theme="light"].cd-theme-document .nav.nav-tabs .nav-link:hover,
html[data-theme="light"].cd-theme-document .nav.nav-tabs .nav-link:focus-visible,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link:hover,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link:focus-visible {
    color: #17384e;
    border-color: rgba(81, 143, 183, 0.14);
    background: rgba(255, 255, 255, 0.48);
}

html[data-theme="light"] .cd-report-tab.is-active,
html[data-theme="light"] .cd-report-tab.is-active:hover,
html[data-theme="light"] .cd-report-tab.is-active:focus-visible,
html[data-theme="light"].cd-theme-document .nav.nav-tabs .nav-link.active,
html[data-theme="light"].cd-theme-document .nav.nav-tabs .nav-link.active:hover,
html[data-theme="light"].cd-theme-document .nav.nav-tabs .nav-link.active:focus-visible,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link.active,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link.active:hover,
html[data-theme="light"] :where(body.cd-body, .cd-theme-scope) .nav.nav-tabs .nav-link.active:focus-visible {
    color: #ffffff;
    border-color: rgba(100, 196, 218, 0.52);
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa);
    box-shadow: 0 12px 26px rgba(61, 76, 151, 0.22), inset 3px 0 0 rgba(255, 255, 255, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cd-document-tabs {
    margin: 0 0 14px;
    padding-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.cd-document-tab {
    min-width: 190px;
    max-width: min(360px, 70vw);
    flex: 0 0 auto;
}

.cd-document-tab .cd-seo-location-tab-copy {
    min-width: 0;
}

.cd-document-tab strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-report-task-content font,
.cd-report-task-content [color] {
    color: inherit !important;
}

.cd-report-task-content thead,
.cd-report-task-content thead strong,
.cd-report-task-content thead font {
    color: inherit !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .flatpickr-calendar {
    transform-origin: top right;
}

@view-transition {
    navigation: auto;
}

/* Cross-document navigation keeps only the rocket animated. The dashboard
   chrome and page content switch immediately so they never flash or fade. */
.cd-topbar,
.cd-sidebar,
.cd-main,
.cd-auth-shell {
    view-transition-name: none !important;
}

html.cd-theme-document::view-transition-group(root) {
    animation: none !important;
}

html.cd-theme-document::view-transition-old(root),
html.cd-theme-document::view-transition-new(root) {
    opacity: 1 !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
    mix-blend-mode: normal !important;
}

.cd-auth-body {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.cd-auth-shell {
    position: relative;
    z-index: 4;
}

.cd-auth-rocket-scene {
    position: fixed;
    z-index: 1;
    bottom: -76px;
    left: -42px;
    width: 310px;
    height: 390px;
    overflow: visible;
    pointer-events: none;
}

.cd-auth-rocket-scene::before {
    position: absolute;
    z-index: 0;
    right: 6px;
    bottom: 10px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 165, 209, 0.19), rgba(117, 78, 197, 0.09) 46%, transparent 72%);
    content: "";
    filter: blur(9px);
    animation: cd-auth-rocket-glow 4.6s ease-in-out infinite alternate;
}

.cd-auth-rocket-scene::after {
    position: absolute;
    z-index: 0;
    right: -58px;
    bottom: -34px;
    width: 270px;
    height: 160px;
    border: 1px solid rgba(106, 190, 218, 0.13);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 24px rgba(117, 83, 202, 0.025), 0 0 0 58px rgba(58, 166, 198, 0.018);
    transform: rotate(-24deg);
}

.cd-auth-rocket {
    position: absolute;
    z-index: 2;
    bottom: 54px;
    left: 66px;
    width: 142px;
    height: 202px;
    display: block;
    animation: cd-auth-rocket-ascent-illusion 7.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.cd-auth-rocket .cd-rocket-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cd-auth-rocket::before {
    position: absolute;
    z-index: 1;
    top: 78%;
    left: 37%;
    width: 20px;
    height: 122px;
    border-radius: 999px 999px 72% 72%;
    background: linear-gradient(180deg, rgba(255, 249, 186, 0.98), rgba(255, 153, 72, 0.88) 30%, rgba(234, 76, 178, 0.55) 68%, transparent);
    content: "";
    filter: blur(0.8px);
    transform: rotate(24deg);
    transform-origin: 50% 0;
    animation: cd-auth-rocket-fire 820ms ease-in-out infinite alternate;
}

::view-transition-group(cd-client-dashboard-rocket) {
    z-index: 100000;
    animation-duration: 1050ms;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-image-pair(cd-client-dashboard-rocket) {
    isolation: isolate;
}

::view-transition-old(cd-client-dashboard-rocket),
::view-transition-new(cd-client-dashboard-rocket) {
    animation: none;
}

@keyframes cd-auth-rocket-ascent-illusion {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    28% { transform: translate3d(8px, -12px, 0) rotate(0.6deg); }
    58% { transform: translate3d(17px, -25px, 0) rotate(1.5deg); }
    78% { transform: translate3d(10px, -15px, 0) rotate(0.4deg); }
}

@keyframes cd-auth-rocket-fire {
    from { opacity: 0.7; transform: rotate(24deg) scale(0.9, 0.86); }
    to { opacity: 1; transform: rotate(24deg) scale(1.05, 1.1); }
}

@keyframes cd-auth-rocket-glow {
    from { opacity: 0.62; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1180px) {
    .cd-audit-admin-report .audit-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-auth-rocket-scene {
        bottom: -92px;
        left: -72px;
        transform: scale(0.78);
        transform-origin: bottom left;
        opacity: 0.8;
    }
}

@media (max-width: 460px) {
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary {
        grid-template-columns: 1fr;
    }

    .cd-auth-rocket-scene {
        opacity: 0.48;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-auth-rocket,
    .cd-auth-rocket::before,
    .cd-auth-rocket-scene::before {
        animation: none !important;
    }

    ::view-transition-group(cd-client-dashboard-rocket) {
        animation-duration: 1ms !important;
    }
}
.cd-sidebar-rocket,
.cd-auth-rocket,
.cd-sidebar-rocket .cd-rocket-svg,
.cd-auth-rocket .cd-rocket-svg {
    background: transparent !important;
}

.cd-sidebar-rocket {
    transform-origin: 50% 100%;
}

::view-transition-group(cd-client-dashboard-rocket),
::view-transition-image-pair(cd-client-dashboard-rocket),
::view-transition-old(cd-client-dashboard-rocket),
::view-transition-new(cd-client-dashboard-rocket) {
    overflow: visible !important;
}

@media (prefers-reduced-motion: reduce) {
    .cd-sidebar-rocket {
        transition: none !important;
    }
}

.cd-sidebar-rocket .cd-rocket-svg,
.cd-auth-rocket .cd-rocket-svg {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.cd-auth-rocket .cd-rocket-svg,
html[data-theme="light"] .cd-auth-rocket .cd-rocket-svg {
    filter: none !important;
}

html:active-view-transition .cd-auth-rocket,
html:active-view-transition .cd-sidebar-rocket,
html:active-view-transition .cd-auth-rocket .cd-rocket-svg,
html:active-view-transition .cd-sidebar-rocket .cd-rocket-svg {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

::view-transition-group(cd-client-dashboard-rocket),
::view-transition-image-pair(cd-client-dashboard-rocket),
::view-transition-old(cd-client-dashboard-rocket),
::view-transition-new(cd-client-dashboard-rocket) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

::view-transition-old(cd-client-dashboard-rocket),
::view-transition-new(cd-client-dashboard-rocket) {
    object-fit: contain;
    mix-blend-mode: normal !important;
}
.cd-sidebar-rocket-stage {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--cd-sidebar-width);
    overflow: visible;
    pointer-events: none;
    transform: translate3d(-50%, 0, 0) scale(1);
    transform-origin: 50% 100%;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    will-change: transform;
}

#column-left.cd-sidebar .cd-sidebar-rocket-stage {
    opacity: 0.35;
}

body.cd-auth-body .cd-auth-rocket {
    opacity: 1;
}

.cd-sidebar-rocket-stage .cd-sidebar-rocket,
.cd-sidebar-rocket-stage .cd-sidebar-rocket-trail,
.cd-sidebar-rocket-stage .cd-sidebar-rocket::before {
    backface-visibility: hidden;
}

.cd-sidebar-rocket {
    scale: 1;
    transition: none;
}

html.cd-sidebar-collapsed .cd-sidebar-rocket {
    scale: 1;
}

html.cd-sidebar-collapsed .cd-sidebar-rocket-stage {
    transform: translate3d(-50%, 0, 0) scale(0.7);
}

.cd-auth-rocket .cd-rocket-svg,
.cd-sidebar-rocket .cd-rocket-svg {
    image-rendering: auto;
}

@media (prefers-reduced-motion: reduce) {
    .cd-sidebar-rocket-stage {
        transition: none !important;
    }
}
.cd-sidebar-rocket,
.cd-auth-rocket,
.cd-sidebar-rocket .cd-rocket-svg,
.cd-auth-rocket .cd-rocket-svg,
.cd-rocket-flight-clone,
.cd-rocket-flight-clone .cd-rocket-svg {
    view-transition-name: none !important;
}

html.cd-rocket-departing .cd-sidebar-rocket,
html.cd-rocket-departing .cd-sidebar-rocket::before,
html.cd-rocket-departing .cd-sidebar-rocket::after,
html.cd-rocket-departing .cd-sidebar-rocket-trail,
html.cd-rocket-departing .cd-auth-rocket,
html.cd-rocket-departing .cd-auth-rocket::before,
html.cd-rocket-arrival-pending .cd-sidebar-rocket:not(.cd-rocket-flight-clone),
html.cd-rocket-arrival-pending .cd-sidebar-rocket:not(.cd-rocket-flight-clone)::before,
html.cd-rocket-arrival-pending .cd-sidebar-rocket:not(.cd-rocket-flight-clone)::after,
html.cd-rocket-arrival-pending .cd-sidebar-rocket-trail,
html.cd-rocket-arrival-pending .cd-auth-rocket:not(.cd-rocket-flight-clone),
html.cd-rocket-arrival-pending .cd-auth-rocket:not(.cd-rocket-flight-clone)::before {
    animation-play-state: paused !important;
}

html.cd-rocket-arrival-pending .cd-sidebar-rocket:not(.cd-rocket-flight-clone),
html.cd-rocket-arrival-pending .cd-sidebar-rocket-trail,
html.cd-rocket-arrival-pending .cd-auth-rocket:not(.cd-rocket-flight-clone) {
    visibility: hidden !important;
}

.cd-rocket-flight-clone {
    position: fixed !important;
    z-index: 2147483000 !important;
    top: 0;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
    pointer-events: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    transform-origin: 0 0 !important;
    scale: 1 !important;
    will-change: left, top, width, height;
}

.cd-rocket-flight-clone::before,
.cd-rocket-flight-clone::after {
    animation: none !important;
}

.cd-rocket-flight-clone .cd-rocket-svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    visibility: visible !important;
    background: transparent !important;
    animation: none !important;
    transform: none !important;
}

.cd-rocket-flight-clone.is-flying {
    transition:
        left 820ms cubic-bezier(0.16, 1, 0.3, 1),
        top 820ms cubic-bezier(0.16, 1, 0.3, 1),
        width 820ms cubic-bezier(0.16, 1, 0.3, 1),
        height 820ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
    .cd-rocket-flight-clone.is-flying {
        transition-duration: 1ms !important;
    }
}
.cd-icon-button.cd-menu-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin-left: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(106, 180, 221, 0.24);
    border-radius: 13px;
    color: #dff5ff;
    background:
        radial-gradient(circle at 82% 18%, rgba(116, 91, 205, 0.18), transparent 54%),
        linear-gradient(145deg, rgba(15, 48, 75, 0.94), rgba(12, 42, 67, 0.9));
    transition: border-color 180ms ease, background 180ms ease, box-shadow 220ms ease, transform 180ms ease;
}

html.cd-sidebar-collapsed .cd-menu-toggle {
    margin-left: 0;
}

.cd-icon-button.cd-menu-toggle:hover,
.cd-icon-button.cd-menu-toggle:focus-visible {
    border-color: rgba(132, 207, 236, 0.42);
    background:
        radial-gradient(circle at 82% 18%, rgba(126, 96, 218, 0.24), transparent 54%),
        linear-gradient(145deg, rgba(20, 59, 89, 0.98), rgba(14, 53, 78, 0.94));
    box-shadow: 0 15px 30px rgba(0, 8, 22, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.cd-menu-toggle-glyph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.cd-menu-toggle-glyph-desktop {
    font-size: 14px;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.cd-menu-toggle.is-collapsed .cd-menu-toggle-glyph-desktop {
    transform: rotate(180deg);
}

.cd-menu-toggle-glyph-mobile {
    display: none;
}

html[data-theme="light"] .cd-icon-button.cd-menu-toggle {
    color: #3e6897;
    border-color: rgba(81, 143, 183, 0.18);
    background:
        radial-gradient(circle at 82% 18%, rgba(120, 91, 208, 0.12), transparent 54%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(225, 241, 249, 0.94));
}

html[data-theme="light"] .cd-icon-button.cd-menu-toggle:hover,
html[data-theme="light"] .cd-icon-button.cd-menu-toggle:focus-visible {
    color: #53449f;
    border-color: rgba(99, 120, 194, 0.28);
    background:
        radial-gradient(circle at 82% 18%, rgba(120, 91, 208, 0.17), transparent 54%),
        linear-gradient(145deg, #ffffff, #e4f2f8);
    box-shadow: 0 15px 30px rgba(47, 78, 114, 0.15), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-keyword-page-tab strong {
    width: auto;
    min-width: 32px;
    padding-right: 8px;
    padding-left: 8px;
    box-sizing: border-box;
}

.cd-main.cd-report-page {
    scrollbar-width: thin;
}

.cd-auth-body {
    background:
        radial-gradient(circle at 16% 10%, rgba(111, 77, 197, 0.3), transparent 25rem),
        radial-gradient(circle at 82% 18%, rgba(47, 139, 194, 0.23), transparent 30rem),
        radial-gradient(circle at 72% 88%, rgba(42, 164, 168, 0.16), transparent 28rem),
        linear-gradient(145deg, #030915 0%, #071426 48%, #04101d 100%);
}

.cd-auth-body::before {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(115, 205, 235, 0.54) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(172, 139, 238, 0.44) 0 1px, transparent 1.5px);
    background-position: 0 0, 33px 47px, 71px 19px;
    background-size: 84px 84px, 126px 126px, 164px 164px;
    opacity: 0.38;
    mask-image: radial-gradient(circle at center, #000 12%, transparent 90%);
}

.cd-auth-galaxy {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cd-auth-galaxy-orbit {
    position: absolute;
    border: 1px solid rgba(120, 179, 220, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(112, 79, 199, 0.018), 0 0 0 58px rgba(42, 153, 170, 0.012);
}

.cd-auth-galaxy-orbit-one {
    top: -260px;
    right: auto;
    left: 8%;
    width: 420px;
    height: 420px;
    transform: rotate(-18deg);
}

.cd-auth-galaxy-orbit-two {
    right: 24%;
    bottom: -240px;
    width: 560px;
    height: 560px;
    border-color: rgba(133, 102, 215, 0.1);
}

.cd-auth-galaxy-planet {
    position: absolute;
    border: 1px solid rgba(168, 143, 231, 0.24);
    border-radius: 50%;
}

.cd-auth-galaxy-planet::after {
    position: absolute;
    border: 2px solid rgba(134, 203, 225, 0.28);
    border-radius: 50%;
    content: "";
    transform: rotate(-16deg);
}

.cd-auth-galaxy-star {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #dffaff;
    box-shadow: 0 0 14px rgba(130, 220, 238, 0.82);
}

.cd-auth-galaxy-star::before,
.cd-auth-galaxy-star::after {
    position: absolute;
    top: 50%;
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(219, 250, 255, 0.78), transparent);
    content: "";
    transform: translate(-50%, -50%);
}

.cd-auth-galaxy-star::before {
    width: 34px;
    height: 1px;
}

.cd-auth-galaxy-star::after {
    width: 1px;
    height: 34px;
}

.cd-auth-galaxy-star-two { top: 68%; right: 18%; transform: scale(0.72); }
.cd-auth-galaxy-star-three { top: 39%; right: 35%; transform: scale(0.5); }

.cd-auth-card {
    isolation: isolate;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 32px 32px 32px 12px;
    background:
        radial-gradient(circle at 96% 2%, rgba(122, 91, 211, 0.23), transparent 19rem) padding-box,
        radial-gradient(circle at 2% 100%, rgba(39, 151, 168, 0.15), transparent 18rem) padding-box,
        linear-gradient(145deg, rgba(9, 25, 45, 0.94), rgba(5, 17, 32, 0.92)) padding-box,
        linear-gradient(126deg, rgba(153, 123, 226, 0.48), rgba(66, 151, 204, 0.38), rgba(47, 179, 181, 0.17)) border-box;
    box-shadow: 0 38px 100px rgba(0, 5, 18, 0.5), 0 16px 44px rgba(46, 69, 164, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
}

.cd-auth-card::before {
    top: -164px;
    right: -124px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(144, 119, 221, 0.15);
    background: radial-gradient(circle at 42% 42%, rgba(100, 85, 209, 0.2), rgba(46, 140, 188, 0.06) 48%, transparent 70%);
    box-shadow: 0 0 0 36px rgba(88, 116, 211, 0.018), 0 0 0 74px rgba(42, 158, 172, 0.012);
}

.cd-auth-card::after {
    left: 32px;
    width: 210px;
    height: 1px;
    background: linear-gradient(90deg, #8e6fda, #4b9fc7 58%, transparent);
}

.cd-auth-card-orbit {
    position: absolute;
    z-index: 0;
    right: -82px;
    bottom: -118px;
    width: 244px;
    height: 244px;
    border: 1px solid rgba(100, 190, 208, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(108, 77, 196, 0.022), 0 0 0 48px rgba(45, 151, 173, 0.014);
}

.cd-auth-card-spark {
    position: absolute;
    z-index: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(225, 250, 255, 0.9);
    box-shadow: 0 0 12px rgba(121, 213, 232, 0.76);
}

.cd-auth-card-spark-one { top: 30px; right: 42px; }
.cd-auth-card-spark-two { right: 116px; bottom: 38px; }

.cd-auth-card > *:not(.cd-auth-card-orbit):not(.cd-auth-card-spark) {
    position: relative;
    z-index: 2;
}

html[data-theme="light"] .cd-auth-body {
    background:
        radial-gradient(circle at 14% 8%, rgba(203, 220, 247, 0.74), transparent 28rem),
        radial-gradient(circle at 84% 18%, rgba(218, 232, 250, 0.68), transparent 32rem),
        radial-gradient(circle at 72% 90%, rgba(211, 242, 240, 0.54), transparent 30rem),
        linear-gradient(145deg, #fbfdff 0%, #eef5fb 50%, #f7fbfc 100%);
}

html[data-theme="light"] .cd-auth-card {
    background:
        radial-gradient(circle at 96% 2%, rgba(122, 91, 211, 0.12), transparent 19rem) padding-box,
        radial-gradient(circle at 2% 100%, rgba(39, 151, 168, 0.09), transparent 18rem) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(241, 247, 252, 0.96)) padding-box,
        linear-gradient(126deg, rgba(127, 94, 204, 0.3), rgba(62, 143, 190, 0.28), rgba(44, 169, 173, 0.12)) border-box;
    box-shadow: 0 34px 86px rgba(67, 80, 132, 0.16), 0 14px 34px rgba(61, 104, 150, 0.08), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-auth-galaxy-orbit {
    border-color: rgba(87, 135, 177, 0.12);
}

html[data-theme="light"] .cd-auth-galaxy-star {
    background: #6888b5;
    box-shadow: 0 0 12px rgba(79, 132, 181, 0.36);
}

.cd-audit-admin-report .audit-report-progress-summary-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: clamp(19px, 2.6vw, 28px);
    border: 1px solid transparent;
    border-radius: 24px 24px 24px 9px;
    color: #d9ebf6;
    background:
        radial-gradient(circle at 96% 0%, rgba(128, 91, 209, 0.24), transparent 19rem) padding-box,
        radial-gradient(circle at 0% 100%, rgba(43, 157, 170, 0.13), transparent 17rem) padding-box,
        linear-gradient(145deg, rgba(10, 30, 49, 0.94), rgba(5, 19, 34, 0.92)) padding-box,
        linear-gradient(126deg, rgba(137, 105, 217, 0.4), rgba(60, 146, 196, 0.34), rgba(45, 174, 178, 0.15)) border-box;
    box-shadow: 0 24px 54px rgba(0, 7, 20, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-audit-admin-report .audit-report-progress-summary-card::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.4px),
        radial-gradient(circle, rgba(102, 208, 226, 0.24) 0 1px, transparent 1.5px);
    background-position: 0 0, 37px 24px;
    background-size: 86px 86px, 132px 132px;
    content: "";
    opacity: 0.24;
    mask-image: linear-gradient(90deg, transparent 10%, #000 72%, transparent);
    pointer-events: none;
}

.cd-audit-admin-report .audit-report-progress-summary-body {
    position: relative;
    z-index: 2;
}

.cd-audit-admin-report .audit-report-progress-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.cd-audit-admin-report .audit-report-progress-summary-header h4 {
    margin: 7px 0 0;
    color: #f4fbff;
    font-family: "Sora", sans-serif;
    font-size: clamp(18px, 2.1vw, 24px);
    letter-spacing: -0.025em;
}

.cd-audit-admin-report .audit-report-progress-summary-period {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #88a9bc;
    font-size: 12px;
    font-weight: 650;
}

.cd-audit-admin-report .audit-report-progress-summary-period i {
    color: #71c6d5;
}

.cd-audit-admin-report .audit-report-progress-summary-status {
    max-width: 340px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(114, 199, 220, 0.2);
    border-radius: 12px 12px 12px 4px;
    color: #bce8f0;
    background: linear-gradient(115deg, rgba(102, 75, 192, 0.15), rgba(42, 140, 175, 0.13));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.cd-audit-admin-report .audit-report-progress-summary-status i {
    flex: 0 0 auto;
    color: #79d4df;
}

.cd-audit-admin-report .audit-report-progress-summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 11px;
    margin-top: 18px;
}

.cd-audit-admin-report .audit-report-progress-summary-metric {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 14px;
    border: 1px solid rgba(100, 172, 205, 0.14);
    border-radius: 16px 16px 16px 6px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 190ms ease, background 190ms ease, box-shadow 220ms ease, transform 190ms ease;
}

.cd-audit-admin-report .audit-report-progress-summary-metric::before {
    position: absolute;
    top: 0;
    left: 14px;
    width: 58px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8062d4, #3f9bc2, transparent);
    content: "";
}

.cd-audit-admin-report .audit-report-progress-summary-metric:hover {
    border-color: rgba(108, 189, 215, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.03));
    box-shadow: 0 12px 26px rgba(0, 7, 19, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.cd-audit-admin-report .audit-report-progress-summary-metric span,
.cd-audit-admin-report .audit-report-progress-summary-metric small,
.cd-audit-admin-report .audit-report-progress-summary-metric em {
    display: block;
}

.cd-audit-admin-report .audit-report-progress-summary-metric span {
    min-height: 34px;
    color: #86a6b9;
    font-size: 11px;
    font-weight: 720;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.cd-audit-admin-report .audit-report-progress-summary-metric strong {
    display: block;
    margin-top: 7px;
    color: #f4fbff;
    font-family: "Sora", sans-serif;
    font-size: 24px;
    line-height: 1.15;
}

.cd-audit-admin-report .audit-report-progress-summary-metric small {
    margin-top: 6px;
    color: #7293a7;
    font-size: 11px;
}

.cd-audit-admin-report .audit-report-progress-summary-metric em {
    width: max-content;
    max-width: 100%;
    margin-top: 9px;
    padding: 4px 8px;
    border: 1px solid rgba(108, 174, 205, 0.14);
    border-radius: 999px;
    color: #a7c6d6;
    background: rgba(69, 135, 169, 0.08);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.cd-audit-admin-report .audit-report-progress-summary-metric em.text-success,
.cd-audit-admin-report .audit-report-progress-summary-metric strong.text-success {
    color: #66d7b3 !important;
}

.cd-audit-admin-report .audit-report-progress-summary-metric em.text-danger,
.cd-audit-admin-report .audit-report-progress-summary-metric strong.text-danger {
    color: #ff8da3 !important;
}

.cd-audit-admin-report .audit-report-progress-summary-metric.is-resolved::before {
    background: linear-gradient(90deg, #4dc99f, #56c9c7, transparent);
}

.cd-audit-admin-report .audit-report-progress-summary-metric.is-new::before {
    background: linear-gradient(90deg, #ed718d, #bc6dc9, transparent);
}

.cd-audit-admin-report .audit-report-progress-summary-description {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 15px 0 0;
    padding: 11px 13px;
    border: 1px solid rgba(102, 177, 208, 0.12);
    border-radius: 12px;
    color: #8fabbc;
    background: rgba(58, 124, 158, 0.055);
    font-size: 12px;
    line-height: 1.55;
}

.cd-audit-admin-report .audit-report-progress-summary-description i {
    margin-top: 3px;
    color: #65bfce;
}

.cd-audit-admin-report .audit-report-progress-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(116, 94, 209, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.cd-audit-admin-report .audit-report-progress-orbit-one {
    top: -108px;
    right: -70px;
    width: 228px;
    height: 228px;
    box-shadow: 0 0 0 28px rgba(48, 141, 181, 0.018), 0 0 0 56px rgba(40, 161, 168, 0.012);
}

.cd-audit-admin-report .audit-report-progress-orbit-two {
    right: 20%;
    bottom: -112px;
    width: 178px;
    height: 178px;
    border-color: rgba(53, 172, 181, 0.08);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-card {
    color: #46677c;
    background:
        radial-gradient(circle at 96% 0%, rgba(128, 91, 209, 0.12), transparent 19rem) padding-box,
        radial-gradient(circle at 0% 100%, rgba(43, 157, 170, 0.08), transparent 17rem) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(238, 247, 251, 0.97)) padding-box,
        linear-gradient(126deg, rgba(125, 94, 203, 0.25), rgba(55, 138, 187, 0.24), rgba(45, 166, 171, 0.11)) border-box;
    box-shadow: 0 22px 48px rgba(42, 75, 100, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-header h4,
html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-metric strong {
    color: #213f55;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-period,
html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-metric span,
html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-description {
    color: #627f92;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-status {
    color: #496d82;
    border-color: rgba(84, 145, 178, 0.16);
    background: linear-gradient(115deg, rgba(114, 86, 198, 0.08), rgba(49, 143, 174, 0.08));
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-metric {
    border-color: rgba(76, 132, 163, 0.13);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-metric:hover {
    border-color: rgba(83, 147, 179, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 11px 24px rgba(47, 91, 124, 0.09), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-metric small {
    color: #8199a8;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-progress-summary-metric em {
    color: #58758a;
    border-color: rgba(75, 132, 164, 0.12);
    background: rgba(79, 139, 171, 0.07);
}

@media (max-width: 960px) {
    .cd-menu-toggle-glyph-desktop {
        display: none;
    }

    .cd-menu-toggle-glyph-mobile {
        display: block;
    }

    .cd-menu-toggle-glyph-mobile > span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 2px;
        margin-top: -1px;
        margin-left: -9px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 160ms ease;
    }

    .cd-menu-toggle-glyph-mobile > span:nth-child(1) { transform: translateY(-6px); }
    .cd-menu-toggle-glyph-mobile > span:nth-child(2) { transform: translateY(0); }
    .cd-menu-toggle-glyph-mobile > span:nth-child(3) { transform: translateY(6px); }

    .cd-menu-toggle.is-open .cd-menu-toggle-glyph-mobile > span:nth-child(1) {
        transform: rotate(45deg);
    }

    .cd-menu-toggle.is-open .cd-menu-toggle-glyph-mobile > span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.35);
    }

    .cd-menu-toggle.is-open .cd-menu-toggle-glyph-mobile > span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .cd-audit-admin-report .audit-report-progress-summary-header {
        flex-direction: column;
    }

    .cd-audit-admin-report .audit-report-progress-summary-status {
        max-width: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body.cd-body .cd-menu-toggle-glyph-desktop {
        display: grid;
        place-items: center;
    }

    body.cd-body .cd-menu-toggle-glyph-desktop > i {
        display: block;
        line-height: 1;
    }

    body.cd-body .cd-menu-toggle-glyph-mobile {
        display: none;
    }
}

@media (max-width: 620px) {

    .cd-auth-galaxy-star-two,
    .cd-auth-galaxy-orbit-two {
        display: none;
    }

    .cd-audit-admin-report .audit-report-progress-summary-metrics {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-icon-button.cd-menu-toggle,
    .cd-menu-toggle-glyph-desktop,
    .cd-menu-toggle-glyph-mobile > span,
    .cd-task-report-stat,
    .cd-task-report-stat::before,
    .cd-seo-report-tab,
    .cd-seo-report-tab::before,
    .cd-audit-admin-report .audit-report-progress-summary-metric {
        transition: none !important;
    }
}
.cd-page-background-emblem {
    z-index: 0;
}

.cd-app-shell {
    position: relative;
    z-index: 1;
}

.cd-report-navigation {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    border-bottom: 1px solid rgba(126, 178, 207, 0.13);
    background: linear-gradient(110deg, rgba(18, 41, 58, 0.68), rgba(10, 28, 42, 0.4));
}

.cd-report-tabs-scroll {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 3px 5px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 174, 207, 0.48) transparent;
}

.cd-report-tabs-scroll::-webkit-scrollbar {
    height: 5px;
}

.cd-report-tabs-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cd-report-tabs-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(112, 82, 199, 0.68), rgba(55, 148, 188, 0.7), rgba(44, 163, 169, 0.68));
}

.cd-report-navigation .cd-report-tabs {
    width: max-content;
    min-width: max-content;
    flex-wrap: nowrap;
}

.cd-report-navigation .cd-report-month-form {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 4px;
}

html[data-theme="light"] .cd-report-navigation {
    border-bottom-color: rgba(64, 105, 134, 0.11);
    background: linear-gradient(110deg, rgba(228, 241, 248, 0.74), rgba(244, 250, 252, 0.56));
}

html[data-theme="light"] .cd-report-tabs-scroll {
    scrollbar-color: rgba(62, 135, 170, 0.48) transparent;
}

.cd-seo-distribution-value {
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.cd-seo-distribution-side .cd-seo-distribution-value strong,
.cd-seo-distribution-side .cd-seo-distribution-value em {
    position: static;
    float: none;
    margin: 0;
    white-space: nowrap;
}

.cd-seo-distribution-side .cd-seo-distribution-value em {
    color: #9bb3c1;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.cd-seo-opportunity-grid {
    align-items: stretch;
}

.cd-seo-signal-card-icon {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.cd-seo-signal-card-icon i {
    display: block;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    opacity: 1;
    visibility: visible;
}

.cd-seo-signal-list {
    flex: 1 1 auto;
    align-content: start;
}

html[data-theme="light"] .cd-seo-distribution-side .cd-seo-distribution-value em {
    color: #6f8999;
}

@media (max-width: 760px) {
    .cd-report-navigation {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .cd-report-tabs-scroll {
        width: 100%;
    }

    .cd-report-navigation .cd-report-month-form,
    .cd-report-navigation .cd-report-month-select-wrap {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
}
.cd-icon-button,
.cd-icon-button.cd-menu-toggle,
.cd-topbar-actions .cd-icon-button {
    border-left-color: rgba(120, 190, 234, 0.07);
    box-shadow: 0 16px 34px rgba(0, 7, 22, 0.28), inset 1px 0 0 rgba(77, 169, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

html[data-theme="light"] .cd-icon-button,
html[data-theme="light"] .cd-icon-button.cd-menu-toggle,
html[data-theme="light"] .cd-topbar-actions .cd-icon-button,
html[data-theme="light"] .cd-icon-button.cd-report-download-button {
    border-left-color: rgba(81, 143, 183, 0.045);
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.15), inset 1px 0 0 rgba(45, 135, 200, 0.32), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-nav::before {
    border-left-color: rgba(81, 143, 183, 0.045);
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.15), inset 1px 0 0 rgba(45, 135, 200, 0.32), inset 0 1px 0 #ffffff;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-screenshot-preview {
    margin-bottom: 0;
}

html[data-theme="light"] .cd-task-report-stat:hover {
    color: #ffffff;
    border-color: rgba(126, 102, 211, 0.34);
    background:
        radial-gradient(circle at 100% 0%, rgba(192, 149, 247, 0.34), transparent 12rem),
        radial-gradient(circle at 0 100%, rgba(70, 197, 221, 0.2), transparent 11rem),
        linear-gradient(145deg, #684fb6, #3788bd 64%, #2b9eab);
    box-shadow: 0 20px 42px rgba(56, 70, 145, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .cd-task-report-stat:hover span,
html[data-theme="light"] .cd-task-report-stat:hover strong {
    color: #ffffff !important;
}

.cd-main {
    scrollbar-width: thin;
}

.cd-auth-galaxy-planet {
    top: 19%;
    right: auto;
    left: 18%;
    width: 92px;
    height: 92px;
}

.cd-auth-galaxy-planet::after {
    top: 38px;
    left: -27px;
    width: 145px;
    height: 24px;
}

.cd-report-tabs-scroll > .cd-report-tabs {
    width: 100%;
    min-width: max-content;
}

[data-cd-seo-report][data-cd-seo-sidebar-transition] .cd-seo-report-panels {
    position: relative;
    min-height: var(--cd-seo-sidebar-transition-height, 420px);
    contain: layout paint;
}

[data-cd-seo-report][data-cd-seo-sidebar-transition] .cd-seo-report-panel.is-active {
    display: none !important;
}

[data-cd-seo-report][data-cd-seo-sidebar-transition] .cd-seo-report-panels::after {
    position: absolute;
    inset: 0;
    min-height: var(--cd-seo-sidebar-transition-height, 420px);
    border: 1px solid rgba(108, 174, 211, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)) 24px 24px / min(42%, 420px) 24px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)) 24px 64px / calc(100% - 48px) 108px no-repeat,
        linear-gradient(90deg, rgba(108, 83, 202, 0.1), rgba(53, 142, 187, 0.08), rgba(45, 163, 169, 0.06)),
        linear-gradient(145deg, rgba(10, 31, 47, 0.98), rgba(6, 22, 35, 0.98));
    box-shadow: 0 18px 42px rgba(0, 8, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    content: "";
    pointer-events: none;
}

html[data-theme="light"] [data-cd-seo-report][data-cd-seo-sidebar-transition] .cd-seo-report-panels::after {
    border-color: rgba(65, 111, 141, 0.12);
    background:
        linear-gradient(90deg, rgba(68, 121, 153, 0.055), rgba(68, 121, 153, 0.1), rgba(68, 121, 153, 0.055)) 24px 24px / min(42%, 420px) 24px no-repeat,
        linear-gradient(90deg, rgba(68, 121, 153, 0.04), rgba(68, 121, 153, 0.075), rgba(68, 121, 153, 0.04)) 24px 64px / calc(100% - 48px) 108px no-repeat,
        linear-gradient(90deg, rgba(108, 83, 202, 0.07), rgba(53, 142, 187, 0.06), rgba(45, 163, 169, 0.05)),
        linear-gradient(145deg, #ffffff, #edf6fa);
    box-shadow: 0 18px 38px rgba(44, 78, 103, 0.1), inset 0 1px 0 #ffffff;
}

@media (max-width: 620px) {
    .cd-auth-galaxy-planet {
        top: 11%;
        right: auto;
        left: 8%;
        transform: scale(0.8);
    }
}
html[data-theme="dark"] .cd-audit-admin-report .audit-report-estimated-time em {
    padding: 2px 7px;
    border: 1px solid rgba(112, 190, 217, 0.2);
    border-radius: 999px;
    color: #dff5fc;
    background: rgba(43, 118, 151, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-audit-admin-report .audit-report-category-score-table tbody td {
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-category-score-table tbody tr:hover {
    background: transparent;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-category-score-table tbody tr:hover > td {
    color: #edf9fd;
    background: linear-gradient(100deg, rgba(107, 77, 194, 0.12), rgba(43, 132, 174, 0.12) 58%, rgba(45, 189, 187, 0.07));
    box-shadow: inset 0 1px 0 rgba(126, 201, 224, 0.08), inset 0 -1px 0 rgba(77, 145, 177, 0.08);
}

@media (max-width: 960px) {
    .cd-app-shell {
        z-index: auto;
    }

    .cd-overlay {
        z-index: 60;
    }

    .cd-sidebar,
    .cd-menu-open .cd-sidebar {
        z-index: 70;
    }
}

.cd-main,
.cd-main.cd-report-page {
    scrollbar-color: rgba(112, 91, 199, 0.9) rgba(67, 126, 157, 0.12);
}

.cd-main::-webkit-scrollbar,
.cd-main.cd-report-page::-webkit-scrollbar {
    width: 7px;
}

.cd-main::-webkit-scrollbar-track,
.cd-main.cd-report-page::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(67, 126, 157, 0.1);
}

.cd-main::-webkit-scrollbar-thumb,
.cd-main.cd-report-page::-webkit-scrollbar-thumb {
    min-height: 54px;
    border: 1px solid rgba(8, 24, 39, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(124, 98, 204, 0.94), rgba(57, 143, 188, 0.92) 58%, rgba(45, 158, 168, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 0 1px rgba(93, 177, 206, 0.06);
}

.cd-main::-webkit-scrollbar-thumb:hover,
.cd-main.cd-report-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(137, 111, 216, 0.98), rgba(68, 155, 201, 0.96) 58%, rgba(56, 174, 181, 0.94));
}

html[data-theme="light"] .cd-main,
html[data-theme="light"] .cd-main.cd-report-page {
    scrollbar-color: rgba(84, 111, 148, 0.72) rgba(87, 145, 177, 0.12);
}

html[data-theme="light"] .cd-main::-webkit-scrollbar-track,
html[data-theme="light"] .cd-main.cd-report-page::-webkit-scrollbar-track {
    background: rgba(87, 145, 177, 0.11);
}

html[data-theme="light"] .cd-main::-webkit-scrollbar-thumb,
html[data-theme="light"] .cd-main.cd-report-page::-webkit-scrollbar-thumb {
    border-color: rgba(51, 95, 124, 0.18);
    background: linear-gradient(180deg, rgba(103, 121, 166, 0.82), rgba(57, 137, 178, 0.82) 58%, rgba(45, 148, 159, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 1px 3px rgba(44, 88, 116, 0.12);
}

html[data-theme="light"] .cd-main::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .cd-main.cd-report-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(91, 109, 158, 0.9), rgba(47, 127, 170, 0.9) 58%, rgba(36, 139, 151, 0.88));
}
body.cd-body,
body.cd-body *,
body.cd-auth-body,
body.cd-auth-body * {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(112, 91, 199, 0.9) rgba(67, 126, 157, 0.12) !important;
}

body.cd-body::-webkit-scrollbar,
body.cd-body *::-webkit-scrollbar,
body.cd-auth-body::-webkit-scrollbar,
body.cd-auth-body *::-webkit-scrollbar {
    width: 7px !important;
    height: 7px !important;
}

body.cd-body::-webkit-scrollbar-track,
body.cd-body *::-webkit-scrollbar-track,
body.cd-auth-body::-webkit-scrollbar-track,
body.cd-auth-body *::-webkit-scrollbar-track {
    border-radius: 999px !important;
    background: rgba(67, 126, 157, 0.1) !important;
}

body.cd-body::-webkit-scrollbar-thumb,
body.cd-body *::-webkit-scrollbar-thumb,
body.cd-auth-body::-webkit-scrollbar-thumb,
body.cd-auth-body *::-webkit-scrollbar-thumb {
    min-width: 54px;
    min-height: 54px;
    border: 1px solid rgba(8, 24, 39, 0.2) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(124, 98, 204, 0.94), rgba(57, 143, 188, 0.92) 58%, rgba(45, 158, 168, 0.9)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 0 1px rgba(93, 177, 206, 0.06) !important;
}

body.cd-body::-webkit-scrollbar-thumb:hover,
body.cd-body *::-webkit-scrollbar-thumb:hover,
body.cd-auth-body::-webkit-scrollbar-thumb:hover,
body.cd-auth-body *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(137, 111, 216, 0.98), rgba(68, 155, 201, 0.96) 58%, rgba(56, 174, 181, 0.94)) !important;
}

body.cd-body::-webkit-scrollbar-corner,
body.cd-body *::-webkit-scrollbar-corner,
body.cd-auth-body::-webkit-scrollbar-corner,
body.cd-auth-body *::-webkit-scrollbar-corner {
    background: rgba(67, 126, 157, 0.1) !important;
}

html[data-theme="light"] body.cd-body,
html[data-theme="light"] body.cd-body *,
html[data-theme="light"] body.cd-auth-body,
html[data-theme="light"] body.cd-auth-body * {
    scrollbar-color: rgba(84, 111, 148, 0.72) rgba(87, 145, 177, 0.12) !important;
}

html[data-theme="light"] body.cd-body::-webkit-scrollbar-track,
html[data-theme="light"] body.cd-body *::-webkit-scrollbar-track,
html[data-theme="light"] body.cd-auth-body::-webkit-scrollbar-track,
html[data-theme="light"] body.cd-auth-body *::-webkit-scrollbar-track {
    background: rgba(87, 145, 177, 0.11) !important;
}

html[data-theme="light"] body.cd-body::-webkit-scrollbar-thumb,
html[data-theme="light"] body.cd-body *::-webkit-scrollbar-thumb,
html[data-theme="light"] body.cd-auth-body::-webkit-scrollbar-thumb,
html[data-theme="light"] body.cd-auth-body *::-webkit-scrollbar-thumb {
    border-color: rgba(51, 95, 124, 0.18) !important;
    background: linear-gradient(180deg, rgba(103, 121, 166, 0.82), rgba(57, 137, 178, 0.82) 58%, rgba(45, 148, 159, 0.8)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 1px 3px rgba(44, 88, 116, 0.12) !important;
}

html[data-theme="light"] body.cd-body::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] body.cd-body *::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] body.cd-auth-body::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] body.cd-auth-body *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(91, 109, 158, 0.9), rgba(47, 127, 170, 0.9) 58%, rgba(36, 139, 151, 0.88)) !important;
}

html[data-theme="light"] body.cd-body::-webkit-scrollbar-corner,
html[data-theme="light"] body.cd-body *::-webkit-scrollbar-corner,
html[data-theme="light"] body.cd-auth-body::-webkit-scrollbar-corner,
html[data-theme="light"] body.cd-auth-body *::-webkit-scrollbar-corner {
    background: rgba(87, 145, 177, 0.11) !important;
}

.cd-auth-galaxy-planet {
    border-color: rgba(180, 145, 239, 0.3);
    background: radial-gradient(circle at 34% 28%, #d8c4ff, #7658bd 58%, #263c67 100%);
    box-shadow: 0 12px 32px rgba(73, 52, 147, 0.28);
    opacity: 0.46;
}

.cd-auth-galaxy-planet::after {
    border-color: rgba(140, 215, 235, 0.38);
}

/* ==================== 10. Main dashboard, analytics and charts ==================== */
.cd-dashboard-main {
    padding-bottom: 72px;
}

.cd-dashboard-heading {
    margin-bottom: 24px;
}

.cd-dashboard-hero-inner {
    max-width: 1480px;
    padding-right: clamp(38px, 6vw, 88px);
    padding-left: clamp(38px, 6vw, 88px);
}

.cd-dashboard-heading p {
    line-height: 1.55;
}

.cd-dashboard-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cd-dashboard-hero-stat {
    min-width: 145px;
    display: grid;
    grid-template-columns: 48px auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 14px;
    background: rgba(5, 20, 45, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(12px);
}

.cd-dashboard-hero-stat-icon {
    grid-row: 1 / 3;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #b8efff;
    background: rgba(90, 190, 255, 0.14);
    font-size: 18px;
}

.cd-dashboard-hero-stat-value {
    color: #ffffff;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.cd-dashboard-hero-stat-label {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 650;
    line-height: 1.2;
}

.cd-dashboard-hero-report {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(4, 18, 40, 0.46);
    box-shadow: 0 18px 42px rgba(0, 8, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.cd-dashboard-hero-report-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #e7fbff;
    background: linear-gradient(145deg, rgba(77, 169, 255, 0.48), rgba(45, 188, 187, 0.36));
    box-shadow: 0 10px 24px rgba(31, 142, 205, 0.2);
    font-size: 18px;
}

.cd-dashboard-hero-report-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.cd-dashboard-hero-report-copy small,
.cd-dashboard-hero-report-copy span {
    color: rgba(255, 255, 255, 0.67);
}

.cd-dashboard-hero-report-copy strong {
    margin: 2px 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-hero-report-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 12px;
    color: #11283a;
    background: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 750;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cd-dashboard-hero-report-link:hover {
    color: #0b2234;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 10, 30, 0.2);
    transform: translateY(-2px);
}

.cd-dashboard-content {
    display: grid;
    margin-top: 26px;
}

.cd-dashboard-overview {
    display: flex;
    align-items: stretch;
    padding: clamp(26px, 3vw, 40px);
    border-radius: 30px;
}

.cd-dashboard-overview-heading {
    align-self: flex-start;
}

.cd-dashboard-overview-heading h2,
.cd-dashboard-module-header h2,
.cd-dashboard-panel-heading h3 {
    margin: 0;
    color: var(--cd-text);
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.035em;
}

.cd-dashboard-overview .cd-dashboard-visual {
    z-index: 0;
}

.cd-dashboard-overview .cd-dashboard-map {
    border: 0;
    border-radius: 0;
    background: none;
    filter: saturate(0.95) contrast(1.05);
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 92%, transparent 100%);
}

.cd-dashboard-overview .cd-dashboard-emblem {
    opacity: 0.94;
}

.cd-dashboard-overview .cd-dashboard-core {
    left: 50%;
    width: clamp(90px, 8vw, 126px);
    height: clamp(90px, 8vw, 126px);
}

.cd-dashboard-overview .cd-dashboard-core img {
    width: 46%;
    height: 46%;
}

.cd-dashboard-overview .cd-dashboard-beam {
    left: 36%;
}

.cd-dashboard-overview-metrics {
    position: relative;
    z-index: 6;
    display: grid;
    align-self: center;
    margin-left: auto;
}

.cd-dashboard-overview-metric {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    border: 1px solid rgba(150, 213, 244, 0.17);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(7, 27, 45, 0.83), rgba(9, 31, 48, 0.68));
    box-shadow: 0 18px 42px rgba(0, 8, 24, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(16px);
    transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, box-shadow 190ms ease;
}

.cd-dashboard-overview-metric-icon {
    grid-row: 1 / 4;
    align-self: center;
}

.cd-dashboard-overview-metric-value {
    overflow: hidden;
    color: #ffffff;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-overview-metric-label {
    margin-top: 4px;
    color: rgba(235, 247, 255, 0.88);
    font-weight: 700;
}

.cd-dashboard-overview-metric-meta {
    margin-top: 3px;
    color: var(--cd-muted);
}

.cd-dashboard-module {
    position: relative;
}

.cd-dashboard-module::before {
    position: absolute;
    top: 0;
    height: 2px;
}

.cd-dashboard-module-header,
.cd-dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cd-dashboard-module-header h2 {
    line-height: 1.12;
}

.cd-dashboard-module-action {
    flex: 0 0 auto;
}

.cd-dashboard-grid-layout {
    display: grid;
    gap: 15px;
}

.cd-dashboard-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(137, 193, 224, 0.12);
    border-radius: 20px;
}

.cd-dashboard-score-panel,
.cd-dashboard-task-total,
.cd-dashboard-audit-score-card,
.cd-dashboard-report-status-card {
    min-height: 160px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.cd-dashboard-score-copy,
.cd-dashboard-task-total > div,
.cd-dashboard-audit-score-card > div,
.cd-dashboard-report-status-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-score-copy > span,
.cd-dashboard-task-total small,
.cd-dashboard-audit-score-card small,
.cd-dashboard-report-status-card small,
.cd-dashboard-panel-icon + div > span,
.cd-dashboard-document-panel-header > div > span {
    color: var(--cd-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cd-dashboard-score-copy strong {
    margin-top: 5px;
    color: #ffffff;
}

.cd-dashboard-score-copy small {
    margin-top: 3px;
    color: var(--cd-muted);
}

.cd-dashboard-keyword-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: rgba(125, 184, 216, 0.11);
}

.cd-dashboard-mini-stat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(9, 29, 45, 0.95);
}

.cd-dashboard-mini-stat > span:last-child,
.cd-dashboard-task-stat > div,
.cd-dashboard-audit-stat-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-mini-stat strong,
.cd-dashboard-task-stat strong,
.cd-dashboard-audit-stat-card strong {
    color: #ffffff;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 21px;
    line-height: 1.1;
}

.cd-dashboard-mini-stat small,
.cd-dashboard-task-stat small,
.cd-dashboard-audit-stat-card small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--cd-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-competitor-panel {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-content: center;
    padding: 19px;
}

.cd-dashboard-competitor-panel > div:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-competitor-panel > div:nth-child(2) strong {
    color: #ffffff;
    font-size: 29px;
    line-height: 1.1;
}

.cd-dashboard-competitor-panel > div:nth-child(2) small {
    color: var(--cd-muted);
}

.cd-dashboard-competitor-comparison {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cd-dashboard-competitor-comparison span {
    display: flex;
    flex-direction: column;
    padding: 9px 10px;
    border-radius: 11px;
    background: rgba(126, 190, 220, 0.07);
}

.cd-dashboard-competitor-comparison small {
    color: var(--cd-muted);
}

.cd-dashboard-competitor-comparison strong {
    margin-top: 3px;
    color: #ffffff;
    font-size: 14px;
}

.cd-dashboard-chart-panel,
.cd-dashboard-table-panel,
.cd-dashboard-comparison-panel,
.cd-dashboard-task-projects,
.cd-dashboard-report-list {
    margin-top: 15px;
    padding: 20px;
}

.cd-dashboard-panel-heading {
    margin-bottom: 16px;
}

.cd-dashboard-panel-heading h3 {
    font-size: 19px;
}

.cd-dashboard-line-chart svg {
    width: 100%;
    height: 205px;
    display: block;
    overflow: visible;
}

.cd-dashboard-table-wrap {
    overflow-x: auto;
}

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

.cd-dashboard-table th,
.cd-dashboard-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(139, 190, 218, 0.1);
    text-align: left;
    white-space: nowrap;
}

.cd-dashboard-table th {
    color: var(--cd-muted);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cd-dashboard-table td {
    color: rgba(237, 247, 253, 0.83);
}

.cd-dashboard-table td:first-child {
    min-width: 220px;
    white-space: normal;
}

.cd-dashboard-table-score {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #176b94;
    background: rgba(67, 187, 219, 0.1);
    font-weight: 750;
}

html[data-theme="dark"] .cd-dashboard-table-score {
    color: #55d2e8;
}

.cd-dashboard-audit-score-card strong,
.cd-dashboard-task-total strong,
.cd-dashboard-report-status-card strong {
    margin: 4px 0;
    color: #ffffff;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(27px, 2.6vw, 38px);
    line-height: 1.05;
}

.cd-dashboard-audit-score-card strong span {
    color: var(--cd-muted);
    font-size: 12px;
}

.cd-dashboard-delta {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--cd-muted);
    background: rgba(133, 184, 214, 0.08);
}

:where(html.cd-theme-document, .cd-theme-scope) .is-positive {
    color: var(--cd-success) !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .is-negative {
    color: var(--cd-danger) !important;
}

.cd-dashboard-audit-stat-card,
.cd-dashboard-task-stat {
    min-height: 140px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
}

.cd-dashboard-comparison-summary {
    display: flex;
    gap: 10px;
}

.cd-dashboard-comparison-summary span {
    min-width: 92px;
    display: flex;
    flex-direction: column;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(120, 182, 215, 0.07);
}

.cd-dashboard-comparison-summary small {
    color: var(--cd-muted);
}

.cd-dashboard-comparison-summary strong {
    color: #ffffff;
    font-size: 17px;
}

.cd-dashboard-empty-inline {
    color: var(--cd-muted);
}

.cd-dashboard-audit-rows,
.cd-dashboard-task-rows {
    display: grid;
    gap: 13px;
}

.cd-dashboard-audit-row {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(200px, 1.5fr) 72px;
    gap: 16px;
    align-items: center;
}

.cd-dashboard-audit-row-label {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-audit-row-label strong {
    overflow: hidden;
    color: rgba(244, 250, 254, 0.92);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-audit-row-label span,
.cd-dashboard-task-row small {
    margin-top: 3px;
    color: var(--cd-muted);
}

.cd-dashboard-audit-row-bar,
.cd-dashboard-task-row-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(130, 183, 211, 0.1);
}

.cd-dashboard-audit-row-bar span,
.cd-dashboard-task-row-track span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #2d93da, #45d0d0);
    box-shadow: 0 0 14px rgba(54, 187, 217, 0.2);
}

.cd-dashboard-audit-row-value {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
}

.cd-dashboard-audit-row-value strong {
    color: #ffffff;
    font-size: 17px;
}

.cd-dashboard-audit-row-value small {
    color: var(--cd-muted);
}

.cd-dashboard-task-total > div > span,
.cd-dashboard-report-status-card > div > span {
    color: var(--cd-muted);
    font-size: 10px;
}

.cd-dashboard-task-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2fr auto;
    gap: 14px;
    align-items: center;
}

.cd-dashboard-task-row-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cd-dashboard-task-row-heading strong {
    overflow: hidden;
    color: rgba(244, 250, 254, 0.92);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-task-row-heading span {
    flex: 0 0 auto;
    font-weight: 750;
}

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

.cd-dashboard-report-row {
    min-width: 0;
    display: grid;
    align-items: center;
    border: 1px solid rgba(139, 194, 224, 0.09);
    border-radius: 14px;
    background: rgba(121, 180, 210, 0.045);
}

.cd-dashboard-report-row-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-report-row-copy strong {
    overflow: hidden;
    color: rgba(244, 250, 254, 0.92);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-report-row-copy small {
    margin-top: 3px;
    color: var(--cd-muted);
}

.cd-dashboard-status-pill {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #9cecff;
    background: rgba(65, 183, 219, 0.1);
    font-weight: 800;
    text-transform: uppercase;
}

.cd-dashboard-status-pill.is-sent {
    color: var(--cd-success);
    background: rgba(112, 229, 174, 0.09);
}

.cd-dashboard-document-columns {
    display: grid;
    gap: 15px;
}

.cd-dashboard-document-panel {
    padding: 19px;
}

.cd-dashboard-document-panel-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 38px;
    gap: 13px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 190, 218, 0.1);
}

.cd-dashboard-document-panel-header > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-document-panel-header > div strong {
    color: #ffffff;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 30px;
    line-height: 1.1;
}

.cd-dashboard-document-panel-header > div small {
    color: var(--cd-muted);
}

.cd-dashboard-document-panel-header > a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #9cecff;
    background: rgba(68, 174, 220, 0.1);
    transition: transform 180ms ease, background 180ms ease;
}

.cd-dashboard-document-panel-header > a:hover {
    color: #ffffff;
    background: rgba(68, 174, 220, 0.2);
    transform: translateX(2px);
}

.cd-dashboard-document-list {
    display: grid;
    gap: 3px;
    margin-top: 11px;
}

.cd-dashboard-document-row {
    min-width: 0;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 10px;
    border-radius: 11px;
    transition: background 170ms ease, transform 170ms ease;
}

.cd-dashboard-document-row:hover {
    background: rgba(120, 187, 220, 0.07);
    transform: translateX(2px);
}

.cd-dashboard-document-row > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-document-row strong {
    overflow: hidden;
    color: rgba(244, 250, 254, 0.91);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-document-row small,
.cd-dashboard-document-row time {
    color: var(--cd-muted);
}

.cd-dashboard-document-row time {
    flex: 0 0 auto;
}

html[data-theme="light"] .cd-dashboard-overview-heading h2,
html[data-theme="light"] .cd-dashboard-module-header h2,
html[data-theme="light"] .cd-dashboard-panel-heading h3 {
    color: #173044;
}

html[data-theme="light"] .cd-dashboard-overview {
    background:
        radial-gradient(circle at 78% 40%, rgba(45, 188, 187, 0.12), transparent 26rem) padding-box,
        radial-gradient(circle at 28% 70%, rgba(77, 169, 255, 0.14), transparent 27rem) padding-box,
        linear-gradient(142deg, rgba(250, 253, 255, 0.97), rgba(235, 246, 252, 0.95)) padding-box,
        linear-gradient(130deg, rgba(74, 155, 210, 0.3), rgba(45, 188, 187, 0.16), rgba(151, 198, 228, 0.08)) border-box;
    box-shadow: 0 30px 75px rgba(55, 89, 122, 0.16), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-overview .cd-dashboard-map {
    filter: brightness(0.7) saturate(0.9) contrast(1.05);
    opacity: 0.53;
}

html[data-theme="light"] .cd-dashboard-overview-metric,
html[data-theme="light"] .cd-dashboard-panel {
    border-color: rgba(77, 130, 164, 0.13);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(237, 247, 252, 0.83));
    box-shadow: 0 16px 38px rgba(62, 91, 120, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-overview-metric-value,
html[data-theme="light"] .cd-dashboard-score-copy strong,
html[data-theme="light"] .cd-dashboard-mini-stat strong,
html[data-theme="light"] .cd-dashboard-competitor-panel > div:nth-child(2) strong,
html[data-theme="light"] .cd-dashboard-competitor-comparison strong,
html[data-theme="light"] .cd-dashboard-audit-score-card strong,
html[data-theme="light"] .cd-dashboard-task-total strong,
html[data-theme="light"] .cd-dashboard-report-status-card strong,
html[data-theme="light"] .cd-dashboard-task-stat strong,
html[data-theme="light"] .cd-dashboard-audit-stat-card strong,
html[data-theme="light"] .cd-dashboard-comparison-summary strong,
html[data-theme="light"] .cd-dashboard-audit-row-value strong,
html[data-theme="light"] .cd-dashboard-document-panel-header > div strong {
    color: #173044;
}

html[data-theme="light"] .cd-dashboard-overview-metric-label,
html[data-theme="light"] .cd-dashboard-table td,
html[data-theme="light"] .cd-dashboard-audit-row-label strong,
html[data-theme="light"] .cd-dashboard-task-row-heading strong,
html[data-theme="light"] .cd-dashboard-report-row-copy strong,
html[data-theme="light"] .cd-dashboard-document-row strong {
    color: #29485e;
}

html[data-theme="light"] .cd-dashboard-keyword-panel {
    background: rgba(87, 140, 171, 0.12);
}

html[data-theme="light"] .cd-dashboard-mini-stat {
    background: rgba(249, 253, 255, 0.96);
}

html[data-theme="light"] .cd-dashboard-table th,
html[data-theme="light"] .cd-dashboard-table td,
html[data-theme="light"] .cd-dashboard-document-panel-header {
    border-color: rgba(77, 126, 156, 0.11);
}

@media (max-width: 1240px) {

    .cd-dashboard-competitor-panel {
        min-height: 112px;
    }

    .cd-dashboard-audit-score-card,
    .cd-dashboard-task-total {
        grid-column: span 3;
        min-height: 125px;
    }
}

@media (max-width: 1050px) {
    .cd-dashboard-overview {
        min-height: 610px;
    }

    .cd-dashboard-overview .cd-dashboard-emblem {
        top: 25%;
        left: 19%;
        width: 250px;
        height: 250px;
        transform: translate(-50%, -50%) scale(0.94);
    }

    .cd-dashboard-overview-metrics {
        align-self: flex-end;
    }

    .cd-dashboard-report-status-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {

    .cd-dashboard-hero-inner {
        padding-right: 30px;
        padding-left: 30px;
    }

    .cd-dashboard-hero-report {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .cd-dashboard-hero-stat {
        grid-template-columns: 44px auto;
    }

    .cd-dashboard-hero-report-icon,
    .cd-dashboard-hero-stat-icon {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .cd-dashboard-hero-report-link {
        grid-column: 1 / -1;
    }

    .cd-dashboard-overview {
        padding-top: 28px;
    }

    .cd-dashboard-overview-heading {
        max-width: 100%;
    }

    .cd-dashboard-overview-heading h2 {
        max-width: 100%;
    }

    .cd-dashboard-overview .cd-dashboard-visual {
        height: 300px;
    }

    .cd-dashboard-overview .cd-dashboard-map {
        width: 100%;
    }

    .cd-dashboard-overview .cd-dashboard-emblem {
        top: 53%;
        left: 24%;
        width: 220px;
        height: 220px;
        transform: translate(-50%, -50%) scale(0.82);
    }

    .cd-dashboard-overview-metrics {
        margin-top: 260px;
    }

    .cd-dashboard-grid-layout-task {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-dashboard-competitor-panel,
    .cd-dashboard-audit-score-card,
    .cd-dashboard-task-total {
        grid-column: 1 / -1;
    }

    .cd-dashboard-audit-row {
        grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 1.2fr) 64px;
    }

    .cd-dashboard-task-row {
        grid-template-columns: minmax(150px, 1fr) 1.4fr;
    }

    .cd-dashboard-task-row > small {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .cd-dashboard-main {
        padding-bottom: 46px;
    }

    .cd-dashboard-hero-inner {
        padding-right: 22px;
        padding-left: 22px;
    }

    .cd-dashboard-heading p {
        margin-bottom: 16px;
    }

    .cd-dashboard-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .cd-dashboard-hero-stat-value {
        font-size: 17px;
    }

    .cd-dashboard-hero-stat-label {
        font-size: 8px;
    }

    .cd-dashboard-overview,
    .cd-dashboard-module {
        border-radius: 22px;
    }

    .cd-dashboard-overview {
        padding: 22px 16px 18px;
    }

    .cd-dashboard-overview .cd-dashboard-visual {
        height: 245px;
    }

    .cd-dashboard-overview .cd-dashboard-emblem {
        left: 30%;
        width: 190px;
        height: 190px;
        transform: translate(-50%, -50%) scale(0.7);
    }

    .cd-dashboard-overview-metrics {
        margin-top: 215px;
    }

    .cd-dashboard-overview-metric {
        min-height: 104px;
        padding: 15px;
    }

    .cd-dashboard-module {
        padding: 21px 15px;
    }

    .cd-dashboard-grid-layout-task {
        grid-template-columns: 1fr;
    }

    .cd-dashboard-competitor-panel,
    .cd-dashboard-audit-score-card,
    .cd-dashboard-task-total,
    .cd-dashboard-report-status-card {
        grid-column: auto;
    }

    .cd-dashboard-competitor-panel {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .cd-dashboard-competitor-comparison {
        grid-column: 1 / -1;
    }

    .cd-dashboard-chart-panel,
    .cd-dashboard-table-panel,
    .cd-dashboard-comparison-panel,
    .cd-dashboard-task-projects,
    .cd-dashboard-report-list {
        padding: 15px;
    }

    .cd-dashboard-audit-row {
        grid-template-columns: 1fr 58px;
        gap: 9px;
    }

    .cd-dashboard-audit-row-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .cd-dashboard-audit-row-value {
        grid-column: 2;
        grid-row: 1;
    }

    .cd-dashboard-task-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .cd-dashboard-task-row > small {
        grid-column: auto;
    }

    .cd-dashboard-report-list {
        grid-template-columns: 1fr;
    }

    .cd-dashboard-status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .cd-dashboard-document-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-dashboard-hero-report-link,
    .cd-dashboard-overview-metric,
    .cd-dashboard-document-panel-header > a,
    .cd-dashboard-document-row {
        transition: none !important;
    }
}

.cd-dashboard-banner-copy {
    max-width: 1280px;
}

.cd-dashboard-hero-data-row {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
}

.cd-dashboard-hero-stats {
    margin-bottom: 0;
}

.cd-dashboard-hero-report {
    width: 100%;
    max-width: 610px;
}

.cd-dashboard-hero-module-actions {
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
}

.cd-button.cd-dashboard-hero-module-button {
    min-height: 38px;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(128, 190, 220, 0.2);
    border-radius: 11px;
    color: rgba(240, 250, 255, 0.94);
    background: rgba(7, 29, 47, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.cd-button.cd-dashboard-hero-module-button:hover {
    border-color: rgba(96, 192, 224, 0.4);
    color: #ffffff;
    background: rgba(14, 51, 75, 0.84);
}

html[data-theme="light"] .cd-button.cd-dashboard-hero-module-button {
    border-color: rgba(69, 127, 166, 0.18);
    color: #2b526b;
    background: rgba(247, 252, 254, 0.9);
}

html[data-theme="light"] .cd-button.cd-dashboard-hero-module-button:hover {
    border-color: rgba(44, 132, 200, 0.3);
    color: #173d57;
    background: #ffffff;
}

.cd-dashboard-scroll-tab {
    border: 1px solid transparent;
    color: rgba(239, 249, 255, 0.92);
    background:
        linear-gradient(145deg, rgba(8, 29, 48, 0.84), rgba(5, 20, 36, 0.72)) padding-box,
        linear-gradient(130deg, rgba(118, 99, 219, 0.48), rgba(62, 177, 216, 0.28), rgba(45, 188, 187, 0.18)) border-box;
    box-shadow: 0 16px 34px rgba(0, 7, 22, 0.28), inset 1px 0 0 rgba(112, 91, 199, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.cd-dashboard-scroll-tab:hover {
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(20, 50, 76, 0.92), rgba(8, 34, 51, 0.88)) padding-box,
        linear-gradient(130deg, rgba(146, 114, 238, 0.7), rgba(66, 190, 224, 0.5), rgba(45, 188, 187, 0.36)) border-box;
    box-shadow: 0 20px 40px rgba(0, 7, 22, 0.34), inset 1px 0 0 rgba(139, 111, 232, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cd-dashboard-overview-heading {
    z-index: 8;
    max-width: none;
    gap: 13px;
}

.cd-dashboard-overview-heading-copy {
    min-width: 0;
}

.cd-dashboard-content {
    position: relative;
    isolation: isolate;
}

.cd-dashboard-content::before {
    position: absolute;
    z-index: -1;
    inset: -60px -4vw;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 19%, rgba(110, 81, 205, 0.1), transparent 25rem),
        radial-gradient(circle at 94% 38%, rgba(42, 167, 205, 0.09), transparent 27rem),
        radial-gradient(circle at 28% 79%, rgba(45, 188, 187, 0.07), transparent 24rem);
    content: "";
    filter: blur(2px);
}

.cd-dashboard-module-seo {
    --cd-dashboard-module-accent: 112, 84, 210;
    --cd-dashboard-module-secondary: 55, 162, 211;
}

.cd-dashboard-module-audit {
    --cd-dashboard-module-accent: 57, 130, 201;
    --cd-dashboard-module-secondary: 47, 190, 191;
}

.cd-dashboard-module-task {
    --cd-dashboard-module-accent: 126, 88, 211;
    --cd-dashboard-module-secondary: 44, 177, 196;
}

.cd-dashboard-module-reports {
    --cd-dashboard-module-accent: 196, 91, 160;
    --cd-dashboard-module-secondary: 92, 111, 216;
}

.cd-dashboard-module-documents {
    --cd-dashboard-module-accent: 53, 150, 210;
    --cd-dashboard-module-secondary: 45, 188, 187;
}

.cd-dashboard-module {
    isolation: isolate;
    border-color: rgba(var(--cd-dashboard-module-accent), 0.2);
}

.cd-dashboard-module::before {
    z-index: 1;
    width: 155px;
    background: linear-gradient(90deg, rgba(var(--cd-dashboard-module-accent), 0.98), rgba(var(--cd-dashboard-module-secondary), 0.34), transparent);
    box-shadow: 0 0 22px rgba(var(--cd-dashboard-module-accent), 0.22);
}

.cd-dashboard-module-galaxy {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.cd-dashboard-module-orbit {
    position: absolute;
    border: 1px solid rgba(var(--cd-dashboard-module-accent), 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(var(--cd-dashboard-module-accent), 0.018), 0 0 0 40px rgba(var(--cd-dashboard-module-secondary), 0.012);
    animation: cd-dashboard-module-orbit-drift 9s ease-in-out infinite alternate;
}

.cd-dashboard-module-orbit::after {
    position: absolute;
    left: -4px;
    border-radius: 50%;
    content: "";
}

.cd-dashboard-module-planet {
    position: absolute;
    top: 34px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 29%, rgba(255, 255, 255, 0.72) 0 4%, transparent 8%),
        linear-gradient(145deg, rgba(var(--cd-dashboard-module-accent), 0.94), rgba(var(--cd-dashboard-module-secondary), 0.88));
    box-shadow: 0 0 30px rgba(var(--cd-dashboard-module-accent), 0.35), inset -9px -8px 15px rgba(3, 12, 31, 0.28);
    animation: cd-dashboard-module-planet-float 5.8s ease-in-out infinite;
}

.cd-dashboard-module-planet::after {
    position: absolute;
    top: 17px;
    left: -12px;
    width: 66px;
    height: 10px;
    border: 1px solid rgba(var(--cd-dashboard-module-secondary), 0.33);
    border-radius: 50%;
    content: "";
    transform: rotate(-12deg);
}

.cd-dashboard-module-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #dff8ff;
    box-shadow: 0 0 10px rgba(218, 247, 255, 0.8);
}

.cd-dashboard-module-star::before,
.cd-dashboard-module-star::after {
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgba(220, 249, 255, 0.48);
    content: "";
    transform: translate(-50%, -50%);
}

.cd-dashboard-module-star::before {
    width: 14px;
    height: 1px;
}

.cd-dashboard-module-star::after {
    width: 1px;
    height: 14px;
}

.cd-dashboard-module-star-two {
    top: 104px;
    transform: scale(0.7);
}

@keyframes cd-dashboard-module-orbit-drift {
    from { transform: rotate(-17deg) translate3d(0, 0, 0); }
    to { transform: rotate(-12deg) translate3d(-8px, 4px, 0); }
}

@keyframes cd-dashboard-module-planet-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-4px, 7px, 0); }
}

.cd-dashboard-module-header,
.cd-dashboard-grid-layout,
.cd-dashboard-chart-panel,
.cd-dashboard-table-panel,
.cd-dashboard-comparison-panel,
.cd-dashboard-task-chart-grid,
.cd-dashboard-task-projects,
.cd-dashboard-document-columns {
    position: relative;
    z-index: 2;
}

.cd-dashboard-panel {
    border-color: rgba(var(--cd-dashboard-module-accent), 0.16);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--cd-dashboard-module-accent), 0.12), transparent 13rem),
        linear-gradient(145deg, rgba(15, 39, 58, 0.89), rgba(8, 27, 43, 0.79));
    box-shadow: 0 17px 42px rgba(0, 8, 22, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.cd-dashboard-panel:hover {
    border-color: rgba(var(--cd-dashboard-module-accent), 0.3);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--cd-dashboard-module-accent), 0.18), transparent 14rem),
        linear-gradient(145deg, rgba(18, 47, 69, 0.94), rgba(8, 30, 47, 0.88));
    box-shadow: 0 22px 48px rgba(0, 8, 22, 0.24), 0 0 28px rgba(var(--cd-dashboard-module-accent), 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    transform: translateY(-2px);
}

.cd-dashboard-module-action {
    min-height: 44px;
    border-radius: 13px;
}

.cd-dashboard-chart-canvas {
    position: relative;
    min-width: 0;
}

.cd-dashboard-chart-canvas canvas,
.cd-dashboard-chart-doughnut canvas {
    width: 100% !important;
    height: 100% !important;
}

.cd-dashboard-chart-doughnut {
    position: relative;
}

.cd-dashboard-chart-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    pointer-events: none;
    text-align: center;
}

.cd-dashboard-chart-center strong,
.cd-dashboard-chart-center small {
    display: block;
}

.cd-dashboard-chart-center strong {
    color: #ffffff;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    line-height: 1;
}

.cd-dashboard-chart-center small {
    margin-top: 4px;
    color: var(--cd-muted);
    font-weight: 800;
    text-transform: uppercase;
}

.cd-dashboard-audit-score-chart {
    flex-basis: 116px;
}

.cd-dashboard-task-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 15px;
    margin-top: 15px;
}

.cd-dashboard-report-list {
    margin-top: 0;
    align-content: start;
}

html[data-theme="light"] .cd-dashboard-scroll-tab {
    color: #27465d;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(231, 243, 250, 0.88)) padding-box,
        linear-gradient(130deg, rgba(106, 82, 198, 0.36), rgba(47, 147, 193, 0.24), rgba(42, 157, 156, 0.18)) border-box;
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.15), inset 1px 0 0 rgba(93, 75, 181, 0.55), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-overview-heading {
    border-color: rgba(65, 118, 151, 0.14);
}

html[data-theme="light"] .cd-dashboard-module {
    border-color: rgba(var(--cd-dashboard-module-accent), 0.15);
}

html[data-theme="light"] .cd-dashboard-panel {
    border-color: rgba(var(--cd-dashboard-module-accent), 0.12);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--cd-dashboard-module-accent), 0.075), transparent 13rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 252, 0.91));
    box-shadow: 0 17px 38px rgba(52, 84, 109, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-panel:hover {
    border-color: rgba(var(--cd-dashboard-module-accent), 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--cd-dashboard-module-accent), 0.12), transparent 14rem),
        linear-gradient(145deg, #ffffff, #edf8fc);
    box-shadow: 0 22px 44px rgba(52, 84, 109, 0.14), 0 0 24px rgba(var(--cd-dashboard-module-accent), 0.04), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-chart-center strong {
    color: #173044;
}

@media (min-width: 1280px) {
    .cd-dashboard-hero-data-row {
        grid-template-columns: minmax(520px, 1fr) minmax(390px, 0.78fr);
        display: grid;
        align-items: stretch;
        gap: 14px;
    }

    .cd-dashboard-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .cd-dashboard-hero-stat,
    .cd-dashboard-hero-report {
        min-height: 72px;
    }

    .cd-dashboard-hero-report {
        max-width: none;
    }

    .cd-dashboard-hero-module-actions {
        align-self: center;
    }
}

@media (max-width: 1050px) {
    .cd-dashboard-task-chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {

    .cd-dashboard-overview-heading h2 {
        font-size: clamp(21px, 4.5vw, 28px);
    }

    .cd-dashboard-module-galaxy {
        opacity: 0.48;
    }
}

@media (max-width: 620px) {

    .cd-dashboard-overview-heading {
        border-radius: 15px;
    }

    .cd-dashboard-task-chart-grid {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-dashboard-module-orbit,
    .cd-dashboard-module-planet {
        animation: none !important;
    }
}

.cd-dashboard-audit-score-card > .cd-dashboard-audit-score-chart {
    display: block;
}

.cd-dashboard-chart-center strong,
.cd-dashboard-chart-center small {
    margin: 0;
}

.cd-dashboard-chart-canvas canvas,
.cd-dashboard-chart-doughnut canvas {
    display: block;
}
.cd-dashboard-heading {
    min-height: clamp(255px, 22vw, 320px);
    padding: clamp(32px, 4vw, 48px) 0 clamp(30px, 3.6vw, 44px);
}

.cd-dashboard-heading h1 {
    max-width: 760px;
    margin-bottom: 9px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.06;
}

.cd-dashboard-heading p {
    max-width: 720px;
    margin-bottom: 15px;
    font-size: 14px;
}

.cd-dashboard-scroll-tab {
    top: 50%;
    bottom: auto;
    min-width: 182px;
    padding: 12px 34px;
    border-radius: 0 0 22px 22px;
    font-size: 12px;
    transform: translateY(-50%) rotate(-90deg);
}

.cd-dashboard-scroll-tab:hover {
    transform: translateY(-50%) rotate(-90deg);
}

.cd-dashboard-overview-heading {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

.cd-dashboard-overview-heading-copy {
    position: relative;
    z-index: 2;
    display: block;
}

.cd-dashboard-module {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.cd-dashboard-module::before {
    left: 0;
}

.cd-dashboard-task-comparison-chart,
.cd-dashboard-task-distribution-chart {
    padding: 17px 18px;
}

.cd-dashboard-score-panel,
.cd-dashboard-audit-score-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.cd-dashboard-score-copy,
.cd-dashboard-audit-score-card > div:not(.cd-dashboard-audit-score-chart) {
    width: 100%;
    align-items: center;
    text-align: center;
}

.cd-dashboard-score-copy strong,
.cd-dashboard-audit-score-card strong {
    margin: 3px 0 0;
    font-size: 21px;
}

.cd-dashboard-audit-score-card .cd-dashboard-delta {
    align-self: center;
    margin-top: 6px;
}

.cd-dashboard-audit-stat-card {
    min-height: 145px;
    gap: 15px;
    padding: 19px;
    border-color: rgba(var(--cd-dashboard-module-accent), 0.18);
}

.cd-dashboard-audit-stat-card strong {
    font-size: 29px;
}

.cd-dashboard-audit-stat-card small {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
}

.cd-dashboard-report-status-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.cd-dashboard-report-status-icon {
    position: relative;
    z-index: 2;
}

.cd-dashboard-report-status-copy {
    min-width: 0;
}

.cd-dashboard-report-status-value {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(117, 221, 217, 0.17);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-dashboard-main small,
.cd-dashboard-hero-stat-label,
.cd-dashboard-hero-report-copy small,
.cd-dashboard-hero-report-copy span,
.cd-dashboard-overview-metric-label,
.cd-dashboard-overview-metric-meta,
.cd-dashboard-score-copy > span,
.cd-dashboard-score-copy small,
.cd-dashboard-mini-stat small,
.cd-dashboard-competitor-panel > div:nth-child(2) > span,
.cd-dashboard-competitor-panel > div:nth-child(2) small,
.cd-dashboard-competitor-comparison small,
.cd-dashboard-table th,
.cd-dashboard-audit-score-card small,
.cd-dashboard-delta,
.cd-dashboard-comparison-summary small,
.cd-dashboard-empty-inline,
.cd-dashboard-audit-row-label span,
.cd-dashboard-audit-row-value small,
.cd-dashboard-task-total small,
.cd-dashboard-task-total > div > span,
.cd-dashboard-task-stat small,
.cd-dashboard-task-row small,
.cd-dashboard-task-row-heading span,
.cd-dashboard-report-status-card small,
.cd-dashboard-report-row-copy strong,
.cd-dashboard-report-row-copy small,
.cd-dashboard-status-pill,
.cd-dashboard-document-panel-header > div > span,
.cd-dashboard-document-panel-header > div small,
.cd-dashboard-document-row strong,
.cd-dashboard-document-row small,
.cd-dashboard-document-row time,
.cd-dashboard-chart-center small {
    font-size: 12px;
}

.cd-dashboard-overview-metric-label,
.cd-dashboard-table td,
.cd-dashboard-audit-row-label strong,
.cd-dashboard-task-row-heading strong,
.cd-dashboard-report-row-copy strong,
.cd-dashboard-document-row strong {
    font-size: 14px;
}

.cd-dashboard-chart-center small {
    line-height: 1.15;
}

html[data-theme="light"] .cd-dashboard-overview-heading {
    border: 0;
    background: none;
    box-shadow: none;
}

html[data-theme="light"] .cd-dashboard-module {
    border: 0;
    background: none;
    box-shadow: none;
}

@media (max-width: 1050px) {

    .cd-dashboard-module-galaxy {
        right: 110px;
    }
}

@media (max-width: 820px) {
    .cd-dashboard-heading {
        min-height: 280px;
        padding: 34px 0 32px;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(27px, 4.8vw, 33px);
    }

    .cd-dashboard-module-galaxy {
        right: 80px;
    }
}

@media (max-width: 620px) {
    .cd-dashboard-heading {
        min-height: 250px;
        padding: 30px 0 28px;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(24px, 6vw, 28px);
    }

    .cd-dashboard-scroll-tab {
        top: 50%;
        bottom: auto;
        min-width: 158px;
        padding: 10px 26px;
        transform: translateY(-50%) rotate(-90deg);
    }

    .cd-dashboard-scroll-tab:hover {
        transform: translateY(-50%) rotate(-90deg);
    }

    .cd-dashboard-overview-heading {
        padding: 0 84px 0 0;
    }

    .cd-dashboard-overview-heading h2 {
        font-size: 22px;
    }

    .cd-dashboard-report-status-card {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 14px;
        padding: 17px;
    }

    .cd-dashboard-module-galaxy {
        display: none;
    }
}
.cd-icon-button.cd-document-view-button.cd-dashboard-hero-report-link {
    width: auto;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin-left: auto;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

.cd-icon-button.cd-document-view-button.cd-dashboard-hero-report-link:hover,
.cd-icon-button.cd-document-view-button.cd-dashboard-hero-report-link:focus-visible {
    transform: translateY(-2px);
}

.cd-dashboard-scroll-tab {
    left: -70px;
    border-left: 0;
}

.cd-dashboard-overview {
    min-height: clamp(590px, 50vw, 690px);
}

.cd-dashboard-overview-heading {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(43%, 660px);
    min-height: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding: clamp(34px, 4vw, 50px) clamp(22px, 3vw, 44px) clamp(22px, 3vw, 38px);
    pointer-events: none;
}

.cd-dashboard-overview-heading-copy {
    width: 100%;
    flex: 0 0 auto;
}

.cd-dashboard-overview-heading h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(24px, 2.25vw, 34px);
    line-height: 1.14;
}

.cd-dashboard-module-title {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 13px;
}

.cd-dashboard-module-period {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border: 1px solid rgba(171, 142, 244, 0.18);
    border-radius: 999px;
    color: #d9d0ff;
    background: rgba(126, 88, 211, 0.1);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.1;
}

.cd-dashboard-module {
    overflow: visible;
}

.cd-dashboard-module-header,
.cd-dashboard-panel-heading,
.cd-dashboard-module > *:not(.cd-dashboard-module-galaxy) {
    position: relative;
    z-index: 2;
}

.cd-dashboard-module-galaxy {
    --cd-dashboard-galaxy-offset: 70px;
}

.cd-dashboard-module-planet {
    right: auto;
}

.cd-dashboard-module-planet-two {
    animation-delay: -1.8s;
}

.cd-dashboard-module-planet-three {
    animation-delay: -3.2s;
}

.cd-dashboard-module-planet-two::after,
.cd-dashboard-module-planet-three::after {
    display: none;
}

.cd-dashboard-module-planet.is-hidden {
    display: none;
}

.cd-dashboard-chart-canvas,
.cd-dashboard-line-chart,
.cd-dashboard-audit-comparison-chart,
.cd-dashboard-task-comparison-chart .cd-dashboard-chart-canvas,
.cd-dashboard-task-distribution-chart .cd-dashboard-chart-canvas {
    min-height: 350px;
    height: 350px;
}

.cd-dashboard-audit-comparison-chart {
    margin-bottom: 22px;
}

.cd-dashboard-chart-doughnut,
.cd-dashboard-score-chart,
.cd-dashboard-audit-score-chart {
    width: 250px;
    height: 250px;
    flex: 0 0 250px;
    overflow: visible;
}

.cd-dashboard-score-panel,
.cd-dashboard-audit-score-card {
    min-height: 390px;
    overflow: visible;
    gap: 16px;
    padding: 22px;
}

.cd-dashboard-chart-center strong {
    font-size: 31px;
}

.cd-dashboard-chart-center small {
    max-width: 110px;
    font-size: 13px;
}

.cd-dashboard-score-copy {
    width: 100%;
    gap: 3px;
}

.cd-dashboard-score-copy strong {
    font-size: 24px;
}

.cd-dashboard-audit-score-details {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    text-align: left;
}

.cd-dashboard-audit-score-label {
    color: var(--cd-text);
    font-size: 14px;
    font-weight: 800;
}

.cd-dashboard-audit-score-period {
    color: #d9d0ff;
    font-size: 12px;
    font-weight: 750;
    text-align: right;
}

.cd-dashboard-audit-score-trend {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid rgba(158, 126, 232, 0.14);
    border-radius: 12px;
    background: rgba(126, 88, 211, 0.075);
}

.cd-dashboard-audit-score-trend small {
    color: var(--cd-muted);
    font-size: 12px;
    font-weight: 700;
}

.cd-dashboard-audit-score-card .cd-dashboard-delta {
    margin: 0;
}

.cd-dashboard-report-status-card {
    display: block;
}

.cd-dashboard-report-status-header {
    display: grid;
    gap: 15px;
    align-items: center;
}

.cd-dashboard-report-status-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.cd-dashboard-report-status-copy strong {
    margin: 4px 0 0;
    font-size: clamp(24px, 2.2vw, 33px);
}

.cd-dashboard-report-status-value {
    max-width: 260px;
    padding: 8px 13px;
    border-color: rgba(180, 145, 250, 0.22);
    color: #e3d9ff;
    background: rgba(132, 91, 218, 0.12);
}

.cd-dashboard-report-status-metrics {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.cd-dashboard-report-status-metrics > span {
    display: grid;
    grid-template-columns: 38px auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(154, 126, 224, 0.13);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(126, 88, 211, 0.09), rgba(45, 188, 187, 0.055));
}

.cd-dashboard-report-status-metrics i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #d9d0ff;
    background: rgba(126, 88, 211, 0.12);
}

.cd-dashboard-report-status-metrics strong {
    color: var(--cd-text);
    font-size: 23px;
}

.cd-dashboard-report-status-metrics small {
    color: var(--cd-muted);
    font-size: 12px;
    font-weight: 700;
}

.cd-dashboard-task-row-heading span {
    color: #d9d0ff;
}


html[data-theme="light"] .cd-dashboard-module-period,
html[data-theme="light"] .cd-dashboard-audit-score-period,
html[data-theme="light"] .cd-dashboard-task-row-heading span {
    color: #5d48ad;
    border-color: rgba(93, 72, 173, 0.16);
    background: rgba(93, 72, 173, 0.07);
}

html[data-theme="light"] .cd-dashboard-audit-score-trend,
html[data-theme="light"] .cd-dashboard-report-status-metrics > span {
    border-color: rgba(93, 72, 173, 0.13);
    background: linear-gradient(145deg, rgba(112, 83, 193, 0.07), rgba(45, 160, 166, 0.045));
}

html[data-theme="light"] .cd-dashboard-report-status-value {
    color: #5a419f;
    border-color: rgba(90, 65, 159, 0.16);
    background: rgba(105, 75, 190, 0.075);
}

html[data-theme="light"] .cd-dashboard-report-status-metrics i {
    color: #5d48ad;
    background: rgba(93, 72, 173, 0.09);
}

@media (max-width: 1180px) {

    .cd-dashboard-score-panel,
    .cd-dashboard-audit-score-card {
        grid-column: span 1;
    }
}

@media (max-width: 1050px) {
    .cd-dashboard-overview-heading {
        width: 45%;
        padding-right: 24px;
    }

    .cd-dashboard-overview-metrics {
        width: 55%;
    }

    .cd-dashboard-module-galaxy {
        left: calc(50% + var(--cd-dashboard-galaxy-offset));
    }
}

@media (max-width: 820px) {
    .cd-dashboard-overview {
        min-height: auto;
        display: block;
    }

    .cd-dashboard-overview-heading {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        min-height: 430px;
        margin-bottom: 18px;
        padding: 4px 0 10px;
    }

    .cd-dashboard-overview-metrics {
        width: 100%;
        margin-left: 0;
    }

    .cd-dashboard-chart-canvas,
.cd-dashboard-line-chart,
.cd-dashboard-audit-comparison-chart,
.cd-dashboard-task-comparison-chart .cd-dashboard-chart-canvas,
.cd-dashboard-task-distribution-chart .cd-dashboard-chart-canvas {
        min-height: 310px;
        height: 310px;
    }
}

@media (max-width: 620px) {
    .cd-dashboard-scroll-tab {
        left: -70px;
        border-left: 0;
    }

    .cd-dashboard-overview-heading {
        min-height: 350px;
    }

    .cd-dashboard-chart-canvas,
.cd-dashboard-line-chart,
.cd-dashboard-audit-comparison-chart,
.cd-dashboard-task-comparison-chart .cd-dashboard-chart-canvas,
.cd-dashboard-task-distribution-chart .cd-dashboard-chart-canvas {
        min-height: 270px;
        height: 270px;
    }

    .cd-dashboard-chart-doughnut,
    .cd-dashboard-score-chart,
    .cd-dashboard-audit-score-chart {
        width: 220px;
        height: 220px;
        flex-basis: 220px;
    }

    .cd-dashboard-score-panel,
    .cd-dashboard-audit-score-card {
        min-height: 350px;
    }

    .cd-dashboard-report-status-header {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .cd-dashboard-report-status-value {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
.cd-dashboard-module::before {
    display: none;
    content: none;
}

.cd-dashboard-module-header {
    min-height: 94px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 20px 24px;
    border: 1px solid rgba(142, 117, 222, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 84% 28%, rgba(126, 87, 211, 0.2), transparent 15rem),
        radial-gradient(circle at 98% 120%, rgba(45, 188, 187, 0.14), transparent 17rem),
        linear-gradient(118deg, rgba(19, 35, 57, 0.94), rgba(17, 31, 53, 0.9) 56%, rgba(27, 28, 62, 0.92));
    box-shadow: 0 18px 44px rgba(0, 8, 24, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    isolation: isolate;
}

.cd-dashboard-module-header::before {
    position: absolute;
    z-index: -1;
    top: -76px;
    right: 4%;
    width: 310px;
    height: 210px;
    border: 1px solid rgba(171, 144, 239, 0.14);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(128, 88, 213, 0.11), rgba(45, 188, 187, 0.04));
    box-shadow:
        0 0 0 34px rgba(109, 77, 191, 0.035),
        0 0 0 70px rgba(45, 188, 187, 0.018);
    content: "";
    transform: rotate(-13deg);
}

.cd-dashboard-module-header::after {
    position: absolute;
    z-index: -1;
    right: 18%;
    bottom: 0;
    width: 190px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(157, 122, 238, 0.62), rgba(75, 201, 211, 0.46), transparent);
    content: "";
}

.cd-dashboard-module-galaxy {
    top: 0;
    right: 0;
    left: auto;
    width: min(44%, 470px);
    height: 94px;
    overflow: hidden;
    border-radius: 0 22px 22px 0;
    opacity: 0.82;
    transform: translateX(calc(var(--cd-dashboard-galaxy-offset) * 0.18));
}

.cd-dashboard-module-galaxy::before {
    position: absolute;
    top: -44px;
    right: 36px;
    width: 180px;
    height: 180px;
    border-radius: 46% 54% 58% 42%;
    background: linear-gradient(145deg, rgba(139, 96, 222, 0.22), rgba(49, 183, 194, 0.05));
    filter: blur(0.2px);
    content: "";
    transform: rotate(24deg);
}

.cd-dashboard-module-orbit {
    top: -34px;
    right: 28px;
    left: auto;
    width: 245px;
    height: 138px;
    border-color: rgba(171, 145, 241, 0.2);
    transform: rotate(-12deg);
}

.cd-dashboard-module-orbit::after {
    top: 26px;
    right: 22px;
    width: 8px;
    height: 8px;
    background: #73dedb;
    box-shadow: 0 0 16px rgba(85, 219, 218, 0.82);
}

.cd-dashboard-module-planet-one {
    top: 22px;
    right: 116px;
    left: auto;
    width: 42px;
    height: 42px;
}

.cd-dashboard-module-planet-two {
    top: 59px;
    right: 65px;
    left: auto;
    width: 23px;
    height: 23px;
}

.cd-dashboard-module-planet-three {
    top: 13px;
    right: 28px;
    left: auto;
    width: 17px;
    height: 17px;
}

.cd-dashboard-module-star-one {
    top: 18px;
    right: 205px;
}

.cd-dashboard-module-star-two {
    right: 16px;
    bottom: 14px;
    left: auto;
}

.cd-dashboard-module-title,
.cd-dashboard-module-action {
    position: relative;
    z-index: 2;
}

.cd-dashboard-overview-metrics {
    width: min(55%, 760px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
}

.cd-dashboard-overview-metric {
    min-height: 112px;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 11px;
    padding: 15px;
}

.cd-dashboard-overview-metric:hover,
.cd-dashboard-overview-metric-audit:hover {
    color: var(--cd-text);
    border-color: rgba(169, 126, 248, 0.52);
    background:
        radial-gradient(circle at 100% 0%, rgba(157, 105, 244, 0.32), transparent 12rem),
        linear-gradient(145deg, rgba(60, 40, 103, 0.97), rgba(24, 34, 55, 0.94));
    box-shadow: 0 22px 46px rgba(16, 7, 45, 0.3), 0 0 28px rgba(142, 98, 226, 0.16);
    transform: translateY(-3px);
}

.cd-dashboard-hero-report-link.cd-icon-button {
    width: auto;
    min-width: 142px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border-radius: 13px;
    white-space: nowrap;
}

.cd-dashboard-seo-primary-row,
.cd-dashboard-seo-secondary-row,
.cd-dashboard-audit-layout,
.cd-dashboard-report-layout {
    display: grid;
    gap: 15px;
    align-items: stretch;
}

.cd-dashboard-seo-primary-row {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2.1fr);
}

.cd-dashboard-seo-primary-row.is-score-only {
    grid-template-columns: minmax(300px, 0.9fr);
}

.cd-dashboard-seo-secondary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 15px;
}

.cd-dashboard-seo-secondary-row.is-single {
    grid-template-columns: 1fr;
}

.cd-dashboard-seo-primary-row .cd-dashboard-score-panel,
.cd-dashboard-seo-primary-row .cd-dashboard-traffic-panel,
.cd-dashboard-seo-secondary-row .cd-dashboard-keyword-panel,
.cd-dashboard-seo-secondary-row .cd-dashboard-competitor-panel {
    margin-top: 0;
}

.cd-dashboard-traffic-panel {
    min-width: 0;
    min-height: 390px;
    padding: 20px;
}

.cd-dashboard-traffic-panel .cd-dashboard-line-chart {
    min-height: 320px;
    height: 320px;
}

.cd-dashboard-keyword-panel,
.cd-dashboard-competitor-panel {
    min-height: 190px;
}

.cd-dashboard-competitor-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cd-dashboard-competitor-copy .cd-dashboard-competitor-comparison {
    width: 100%;
    margin-top: 14px;
}

.cd-dashboard-audit-layout {
    grid-template-columns: minmax(300px, 0.9fr) minmax(155px, 0.45fr) minmax(0, 1.9fr);
}

.cd-dashboard-audit-layout .cd-dashboard-audit-score-card,
.cd-dashboard-audit-layout .cd-dashboard-audit-table-panel {
    margin-top: 0;
}

.cd-dashboard-audit-stat-stack {
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cd-dashboard-audit-stat-stack .cd-dashboard-audit-stat-card {
    min-width: 0;
    min-height: 0;
    display: flex;
    gap: 11px;
    padding: 13px;
}

.cd-dashboard-audit-stat-stack .cd-dashboard-audit-stat-card strong {
    font-size: 23px;
}

.cd-dashboard-audit-stat-stack .cd-dashboard-audit-stat-card small {
    margin-top: 3px;
    font-size: 10px;
    white-space: normal;
}

.cd-dashboard-audit-stat-card:hover,
.cd-dashboard-audit-stat-card-danger:hover,
.cd-dashboard-audit-stat-card-warning:hover,
.cd-dashboard-audit-stat-card-issues:hover {
    border-color: rgba(169, 126, 248, 0.52);
    background:
        radial-gradient(circle at 100% 0%, rgba(157, 105, 244, 0.32), transparent 11rem),
        linear-gradient(145deg, rgba(60, 40, 103, 0.97), rgba(24, 34, 55, 0.94));
    box-shadow: 0 20px 42px rgba(16, 7, 45, 0.28), 0 0 25px rgba(142, 98, 226, 0.14);
    transform: translateY(-3px);
}

.cd-dashboard-audit-table-panel {
    min-width: 0;
    padding: 20px;
}

.cd-dashboard-audit-score-period {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border: 1px solid rgba(171, 142, 244, 0.18);
    border-radius: 999px;
    background: rgba(126, 88, 211, 0.1);
}

.cd-dashboard-grid-layout-task {
    grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(145px, 0.75fr));
}

.cd-dashboard-grid-layout-task .cd-dashboard-task-total,
.cd-dashboard-grid-layout-task .cd-dashboard-task-stat {
    min-height: 118px;
    padding: 16px 18px;
}

.cd-dashboard-report-layout {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2.1fr);
}

.cd-dashboard-report-layout.is-status-only {
    grid-template-columns: minmax(300px, 0.9fr);
}

.cd-dashboard-report-layout .cd-dashboard-report-status-card,
.cd-dashboard-report-layout .cd-dashboard-report-list {
    margin-top: 0;
}

.cd-dashboard-report-status-card {
    min-height: 220px;
    padding: 20px;
}

.cd-dashboard-report-status-header {
    grid-template-columns: 48px minmax(0, 1fr);
}

.cd-dashboard-report-status-value {
    grid-column: 1 / -1;
    justify-self: start;
}

.cd-dashboard-report-status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cd-dashboard-report-list {
    min-width: 0;
    padding: 20px;
}

.cd-dashboard-report-rows {
    display: grid;
    gap: 9px;
}

.cd-dashboard-report-row {
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 12px;
}

.cd-dashboard-report-download-button {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
}

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

.cd-dashboard-document-panel-header > a.cd-icon-button {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 13px;
}

.cd-seo-location-tab.cd-document-tab {
    min-height: 56px;
    padding: 8px 13px;
}

.cd-seo-location-tab.cd-document-tab strong {
    font-size: 13px;
    line-height: 1.25;
}

html[data-theme="light"] .cd-dashboard-module-header {
    border-color: rgba(103, 77, 181, 0.13);
    background:
        radial-gradient(circle at 84% 28%, rgba(126, 87, 211, 0.15), transparent 15rem),
        radial-gradient(circle at 98% 120%, rgba(45, 168, 170, 0.11), transparent 17rem),
        linear-gradient(118deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.97) 56%, rgba(239, 237, 250, 0.97));
    box-shadow: 0 18px 40px rgba(61, 57, 123, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-overview-metric:hover,
html[data-theme="light"] .cd-dashboard-overview-metric-audit:hover,
html[data-theme="light"] .cd-dashboard-audit-stat-card:hover,
html[data-theme="light"] .cd-dashboard-audit-stat-card-danger:hover,
html[data-theme="light"] .cd-dashboard-audit-stat-card-warning:hover,
html[data-theme="light"] .cd-dashboard-audit-stat-card-issues:hover,
html[data-theme="light"] .cd-dashboard-grid-layout-task .cd-dashboard-task-stat:hover,
html[data-theme="light"] .cd-dashboard-grid-layout-task .cd-dashboard-task-total:hover {
    color: #26364b;
    border-color: rgba(105, 75, 194, 0.28);
    background:
        radial-gradient(circle at 100% 0%, rgba(126, 84, 214, 0.18), transparent 12rem),
        linear-gradient(145deg, #f7f2ff, #eef7fb);
    box-shadow: 0 22px 42px rgba(73, 55, 135, 0.14), 0 0 24px rgba(105, 78, 194, 0.08);
}

@media (max-width: 1280px) {
    .cd-dashboard-overview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-dashboard-audit-layout {
        grid-template-columns: minmax(290px, 0.9fr) minmax(150px, 0.48fr) minmax(360px, 1.65fr);
    }
}

@media (max-width: 1080px) {
    .cd-dashboard-seo-primary-row,
    .cd-dashboard-report-layout {
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
    }

    .cd-dashboard-audit-layout {
        grid-template-columns: minmax(280px, 1fr) minmax(150px, 0.52fr);
    }

    .cd-dashboard-audit-table-panel {
        grid-column: 1 / -1;
    }

    .cd-dashboard-grid-layout-task {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .cd-dashboard-module-header {
        min-height: 82px;
        padding: 17px 18px;
    }

    .cd-dashboard-module-galaxy {
        width: 58%;
        height: 82px;
    }

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

    .cd-dashboard-seo-primary-row,
    .cd-dashboard-seo-secondary-row,
    .cd-dashboard-audit-layout,
    .cd-dashboard-report-layout,
    .cd-dashboard-document-columns {
        grid-template-columns: 1fr;
    }

    .cd-dashboard-audit-table-panel {
        grid-column: auto;
    }

    .cd-dashboard-audit-stat-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
    }
}

@media (max-width: 620px) {
    .cd-dashboard-overview-metrics,
    .cd-dashboard-audit-stat-stack,
    .cd-dashboard-grid-layout-task {
        grid-template-columns: 1fr;
    }

    .cd-dashboard-module-header {
        flex-direction: column;
    }

    .cd-dashboard-report-status-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-dashboard-report-row {
        grid-template-columns: 42px minmax(0, 1fr) 39px;
    }

    .cd-dashboard-report-row .cd-dashboard-status-pill {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .cd-dashboard-report-download-button {
        grid-column: 3;
        grid-row: 1;
    }
}

.cd-dashboard-hero-report-link.cd-icon-button,
.cd-dashboard-document-panel-header > a.cd-icon-button {
    border: 1px solid rgba(120, 190, 234, 0.24);
    border-bottom-color: rgba(2, 10, 24, 0.58);
    border-left-color: rgba(2, 10, 24, 0.58);
    color: #d7e8f4;
    background: linear-gradient(105deg, rgba(17, 47, 73, 0.9), rgba(15, 56, 82, 0.86) 58%, rgba(13, 63, 71, 0.78)) padding-box;
    box-shadow: 0 14px 30px rgba(0, 7, 22, 0.22), inset 3px 0 0 #2d87c8, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cd-dashboard-hero-report-link.cd-icon-button:hover,
.cd-dashboard-hero-report-link.cd-icon-button:focus-visible,
.cd-dashboard-document-panel-header > a.cd-icon-button:hover,
.cd-dashboard-document-panel-header > a.cd-icon-button:focus-visible {
    border-color: rgba(148, 211, 249, 0.38);
    border-bottom-color: rgba(8, 21, 40, 0.72);
    border-left-color: rgba(8, 21, 40, 0.72);
    color: #ffffff;
    background: linear-gradient(105deg, rgba(22, 61, 92, 0.96), rgba(19, 71, 101, 0.92) 58%, rgba(16, 77, 84, 0.84)) padding-box;
    box-shadow: 0 17px 36px rgba(0, 7, 22, 0.28), inset 3px 0 0 #4da9ff, inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.cd-dashboard-report-list {
    display: block;
}

.cd-dashboard-report-list .cd-dashboard-panel-heading,
.cd-dashboard-report-rows {
    width: 100%;
}

.cd-dashboard-report-status-card > .cd-dashboard-report-status-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: initial;
}

.cd-dashboard-report-layout .cd-dashboard-report-status-card,
.cd-dashboard-report-layout .cd-dashboard-report-list {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}


html[data-theme="light"] .cd-dashboard-hero-report-link.cd-icon-button,
html[data-theme="light"] .cd-dashboard-document-panel-header > a.cd-icon-button {
    border-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(81, 143, 183, 0.18);
    border-left-color: rgba(81, 143, 183, 0.18);
    color: #29475d;
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72)) padding-box;
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.12), inset 3px 0 0 #2d87c8, inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-hero-report-link.cd-icon-button:hover,
html[data-theme="light"] .cd-dashboard-hero-report-link.cd-icon-button:focus-visible,
html[data-theme="light"] .cd-dashboard-document-panel-header > a.cd-icon-button:hover,
html[data-theme="light"] .cd-dashboard-document-panel-header > a.cd-icon-button:focus-visible {
    border-color: #ffffff;
    border-bottom-color: rgba(69, 127, 166, 0.24);
    border-left-color: rgba(69, 127, 166, 0.24);
    color: #17384e;
    background: linear-gradient(105deg, rgba(220, 237, 250, 0.94), rgba(232, 247, 253, 0.96) 58%, rgba(226, 249, 245, 0.9)) padding-box;
}

@media (max-width: 620px) {
    .cd-dashboard-report-status-card > .cd-dashboard-report-status-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cd-dashboard-content {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}

.cd-dashboard-content > .cd-dashboard-module,
.cd-dashboard-module > *:not(.cd-dashboard-module-galaxy),
.cd-dashboard-seo-primary-row,
.cd-dashboard-seo-secondary-row,
.cd-dashboard-audit-layout,
.cd-dashboard-report-layout,
.cd-dashboard-document-columns {
    min-width: 0;
}

@media (max-width: 820px) {
    .cd-dashboard-content > .cd-dashboard-module {
        width: 100%;
    }
}
.cd-main table,
.cd-main table th,
.cd-main table td,
.cd-main table tbody p,
.cd-main table tbody span,
.cd-main table tbody strong,
.cd-main table tbody a,
.cd-main table tbody small,
.cd-main table tbody div,
.cd-main table tbody li,
.cd-main table tfoot p,
.cd-main table tfoot span,
.cd-main table tfoot strong,
.cd-main table tfoot a,
.cd-main table tfoot small,
.cd-main table tfoot div,
.cd-main table tfoot li {
    font-size: 14px !important;
}

.cd-task-report-stat.cd-seo-keyword-stat {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    min-height: 102px;
    padding: 17px 18px;
    text-align: left;
}

.cd-task-report-stat.cd-seo-keyword-stat > div {
    width: 100%;
    align-items: flex-start;
    text-align: left;
}

.cd-task-report-stat.cd-seo-keyword-stat strong,
.cd-task-report-stat.cd-seo-keyword-stat span {
    text-align: left;
}

.cd-seo-keyword-page-tab {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
}

html[data-theme="light"] .cd-seo-report-tab.is-active,
html[data-theme="light"] .cd-seo-report-tab.is-active:hover,
html[data-theme="light"] .cd-seo-report-tab.is-active:focus-visible {
    border-color: rgba(117, 82, 204, 0.56);
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.2), transparent 8rem),
        linear-gradient(115deg, #7652c9, #586ed8 55%, #328cc5);
    box-shadow: 0 16px 32px rgba(83, 73, 176, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-theme="light"] .cd-seo-report-tab.is-active::before,
html[data-theme="light"] .cd-seo-report-tab.is-active:hover::before {
    opacity: 1;
}

.cd-seo-keyword-cluster-scroll {
    max-height: 484px;
    overflow: auto;
    overscroll-behavior: contain;
}

.cd-seo-keyword-cluster-scroll .clusterize-extra-row td {
    padding: 0 !important;
    border: 0 !important;
}

.cd-seo-keyword-cluster-scroll .clusterize-no-data td {
    padding: 36px 18px !important;
    color: var(--cd-muted);
    text-align: center !important;
}

.cd-seo-keyword-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.cd-seo-result-link {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(101, 155, 190, 0.2);
    border-radius: 10px;
    color: #a8c2d5;
    background: rgba(19, 49, 70, 0.64);
    cursor: pointer;
}

.cd-seo-result-link:hover,
.cd-seo-result-link:focus-visible {
    border-color: rgba(130, 103, 218, 0.54);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(116, 77, 204, 0.88), rgba(46, 130, 187, 0.84));
}

.cd-seo-result-link.is-loading i {
    animation: cd-rotate 700ms linear infinite;
}

html[data-theme="light"] .cd-seo-result-link {
    border-color: rgba(64, 111, 143, 0.16);
    color: #315b75;
    background: rgba(228, 240, 247, 0.9);
}

.cd-seo-visibility-card {
    display: grid;
    gap: 16px;
}

.cd-seo-visibility-heading,
.cd-seo-visibility-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cd-seo-visibility-heading > div {
    min-width: 0;
}

.cd-seo-visibility-heading span {
    display: block;
    margin-bottom: 4px;
    color: #8fa9ba;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cd-seo-visibility-heading h3 {
    margin: 0;
    color: #f3f8fb;
    font-size: 19px;
}

.cd-seo-visibility-heading > strong {
    font-size: 25px;
}

.cd-seo-visibility-card.is-positive .cd-seo-visibility-heading > strong,
.cd-seo-visibility-card.is-positive h3 {
    color: #65d7ad;
}

.cd-seo-visibility-card.is-negative .cd-seo-visibility-heading > strong,
.cd-seo-visibility-card.is-negative h3 {
    color: #f17d93;
}

.cd-seo-visibility-values {
    color: #9fb5c4;
}

.cd-seo-visibility-values strong {
    color: #ffffff;
}

.cd-seo-visibility-bar {
    height: 18px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(95, 132, 158, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 5, 16, 0.28);
}

.cd-seo-visibility-bar span {
    min-width: 0;
    transition: width 260ms ease;
}

.cd-seo-visibility-bar .is-us {
    background: linear-gradient(90deg, #4ccf9e, #3aa6be);
}

.cd-seo-visibility-bar .is-competitor {
    background: linear-gradient(90deg, #d19a4b, #e86f88);
}

.cd-seo-winning-pages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.cd-seo-winning-pages-list {
    display: grid;
    gap: 9px;
}

.cd-seo-winning-pages-list article {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 12px;
    border: 1px solid rgba(115, 156, 183, 0.13);
    border-radius: 12px;
    background: rgba(10, 34, 52, 0.42);
}

.cd-seo-winning-pages-list a {
    min-width: 0;
    overflow: hidden;
    color: #c5def0;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-seo-winning-pages-list span {
    color: #8ea8b9;
    white-space: nowrap;
}

.cd-seo-winning-pages-list small {
    grid-column: 1 / -1;
    color: #8199a9;
}

html[data-theme="light"] .cd-seo-visibility-heading h3,
html[data-theme="light"] .cd-seo-visibility-values strong {
    color: #17384e;
}

html[data-theme="light"] .cd-seo-winning-pages-list article {
    border-color: rgba(61, 108, 139, 0.12);
    background: rgba(239, 247, 251, 0.86);
}

html[data-theme="light"] .cd-seo-winning-pages-list a {
    color: #275d7b;
}

.cd-seo-results-modal[hidden] {
    display: none !important;
}

.cd-modal-open {
    overflow: hidden;
}

.cd-seo-results-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
}

.cd-seo-results-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(1, 8, 18, 0.74);
    backdrop-filter: blur(8px);
}

.cd-seo-results-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    border: 1px solid rgba(127, 169, 197, 0.2);
    border-radius: 24px;
    color: #eaf3f8;
    background: linear-gradient(145deg, rgba(10, 31, 49, 0.99), rgba(5, 20, 35, 0.99));
    box-shadow: 0 36px 100px rgba(0, 4, 16, 0.58);
}

.cd-seo-results-modal-dialog > header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(122, 163, 190, 0.14);
    background: rgba(8, 27, 44, 0.96);
}

.cd-seo-results-modal-dialog header span {
    color: #819fb2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cd-seo-results-modal-dialog h2 {
    margin: 3px 0 0;
    font-size: 21px;
}

.cd-seo-results-modal-dialog header button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(124, 164, 190, 0.18);
    border-radius: 12px;
    cursor: pointer;
}

.cd-seo-results-modal-body {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.cd-seo-results-modal-body article {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(118, 159, 186, 0.14);
    border-radius: 14px;
    background: rgba(20, 47, 66, 0.44);
}

.cd-seo-results-modal-body article > span {
    color: #819fb2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cd-seo-results-modal-body strong,
.cd-seo-results-modal-body a {
    overflow-wrap: anywhere;
    color: #ecf5fa;
}

.cd-seo-results-modal-body img {
    max-width: 100%;
    border-radius: 12px;
}

html[data-theme="light"] .cd-seo-results-modal-dialog {
    color: #17384e;
    border-color: rgba(61, 105, 134, 0.16);
    background: #ffffff;
    box-shadow: 0 34px 90px rgba(43, 74, 97, 0.26);
}

html[data-theme="light"] .cd-seo-results-modal-dialog > header {
    border-color: rgba(61, 105, 134, 0.12);
    background: rgba(248, 252, 254, 0.98);
}

html[data-theme="light"] .cd-seo-results-modal-body article {
    border-color: rgba(61, 105, 134, 0.12);
    background: #f2f8fb;
}

html[data-theme="light"] .cd-seo-results-modal-body strong,
html[data-theme="light"] .cd-seo-results-modal-body a {
    color: #17384e;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-priority-card-header-actions,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-block-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-report-priority-card-header-actions .cd-icon-button,
.audit-report-block-title-actions .cd-icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.cd-audit-admin-report .audit-report-score-circle {
    box-shadow: 0 22px 48px rgba(0, 5, 18, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 30px rgba(111, 81, 190, 0.24);
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-ai-scope-note, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-ai-scope-note {
    border-color: rgba(101, 157, 194, 0.24);
    color: #cfe2ee;
    background: linear-gradient(115deg, rgba(22, 55, 79, 0.82), rgba(26, 43, 72, 0.76));
    box-shadow: inset 3px 0 0 #4da9d8, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-ai-scope-note i, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-ai-scope-note i {
    color: #69c8ec;
}

@media (max-width: 991px) {
    .cd-seo-competitor-layout,
    .cd-seo-opportunity-grid,
    .cd-seo-winning-pages-grid,
    .cd-seo-distribution-grid,
    .cd-audit-admin-report .audit-report-grid,
    .cd-audit-admin-report .audit-report-priority-grid,
    .audit-report-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-seo-report-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cd-seo-report-card-header > p {
        width: 100%;
        max-width: none;
        margin-left: 0;
        text-align: left;
    }

    .cd-seo-metric-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions {
        margin-bottom: 18px !important;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.has-visible-actions {
        --cd-page-banner-actions-space: 0px;
        min-height: 164px;
        height: 164px;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.has-visible-actions .cd-page-banner-surface {
        clip-path: none;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.has-visible-actions .cd-page-banner-content {
        padding-right: 22px;
        padding-bottom: 70px;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.has-visible-actions .cd-page-banner-actions {
        top: auto;
        right: 20px;
        bottom: 16px;
        left: 20px;
        width: auto;
        height: 42px;
        justify-content: flex-end;
        padding: 0;
        transform: none;
    }

    .cd-page-heading-task-report.has-visible-actions .cd-report-page-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {

    .cd-task-report-stat:not(.cd-seo-keyword-stat) > div {
        align-items: flex-start;
        text-align: left;
    }

    .cd-seo-keyword-location-heading {
        padding: 16px;
    }

    .cd-seo-keyword-location-heading h2 {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .cd-seo-keyword-cluster-scroll {
        max-height: 484px;
    }

    .cd-pdf-statusbar {
        height: 84px;
        min-height: 84px;
        flex-basis: 84px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 32px 36px;
        gap: 5px;
        padding: 6px 10px;
    }

    .cd-pdf-statusbar .document-editor-statusbar-left {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 8px;
        padding-right: 0;
    }

    .cd-pdf-statusbar .document-editor-statusbar-left > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cd-pdf-statusbar .document-editor-statusbar-left > span + span {
        padding-left: 8px;
        text-align: right;
    }

    .cd-pdf-statusbar .document-editor-statusbar-left > span + span::before {
        display: none;
    }

    .cd-pdf-statusbar .document-editor-statusbar-mobile-zoom-percent,
    .cd-pdf-statusbar .document-editor-statusbar-mobile-fit {
        display: none !important;
    }

    .cd-pdf-statusbar .document-editor-statusbar-right {
        position: static;
        width: 100%;
        display: grid;
        grid-template-columns: 38px 38px 52px 52px;
        justify-content: center;
        gap: 12px;
    }

    .cd-pdf-statusbar .document-editor-statusbar-right .document-editor-statusbar-zoom-slider {
        display: none;
    }

    .cd-pdf-statusbar .document-editor-statusbar-right .document-editor-statusbar-zoom-percent,
    .cd-pdf-statusbar .document-editor-statusbar-right .document-editor-statusbar-fit {
        display: inline-grid;
    }

    .cd-pdf-statusbar .document-editor-statusbar-zoom-button,
    .cd-pdf-statusbar .document-editor-statusbar-fit {
        width: 100%;
        min-width: 0;
    }

    .cd-seo-visibility-heading,
    .cd-seo-visibility-values {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .cd-seo-winning-pages-list article {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-seo-winning-pages-list small {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .cd-task-report-stats,
    .cd-seo-keyword-stats {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-task-report-stat,
    .cd-task-report-stat.cd-seo-keyword-stat {
        min-height: 88px;
    }

    .cd-seo-results-modal {
        padding: 10px;
    }

    .cd-seo-results-modal-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }
}
.cd-dashboard-module-header h2 {
    font-size: clamp(24px, 2.1vw, 27px);
}

.cd-dashboard-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 39px;
    align-items: center;
}

.cd-dashboard-document-row:hover {
    color: var(--cd-text);
}

.cd-dashboard-document-view-button {
    width: 39px;
    height: 39px;
    margin-left: 0;
}

.audit-report-top-card .cd-dashboard-audit-score-chart {
    flex: 0 0 116px;
}

.cd-seo-competitor-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
}

.cd-seo-competitor-layout > * {
    width: 100%;
    min-width: 0;
}

.cd-report-keywords-table {
    table-layout: auto;
}

.cd-report-keywords-table th,
.cd-report-keywords-table td {
    width: auto !important;
}

.cd-report-keywords-table th {
    min-width: 86px;
    overflow: visible;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
}

.cd-report-keywords-table th:first-child,
.cd-report-keywords-table td:first-child {
    width: 54px !important;
    min-width: 54px;
    text-align: center;
}

.cd-report-keywords-table th:nth-child(2),
.cd-report-keywords-table td:nth-child(2) {
    width: 32% !important;
    min-width: 300px;
    text-align: left;
}

.cd-report-keywords-table th:nth-child(3),
.cd-report-keywords-table td:nth-child(3) {
    min-width: 94px;
}

.cd-report-keywords-table th:nth-child(4),
.cd-report-keywords-table td:nth-child(4),
.cd-report-keywords-table th:nth-child(5),
.cd-report-keywords-table td:nth-child(5),
.cd-report-keywords-table th:nth-child(6),
.cd-report-keywords-table td:nth-child(6) {
    min-width: 110px;
}

.cd-report-keywords-table th:nth-child(8),
.cd-report-keywords-table td:nth-child(8) {
    min-width: 76px;
}

.cd-report-keywords-table th:nth-child(n + 3),
.cd-report-keywords-table td:nth-child(n + 3) {
    text-align: center;
}

.cd-seo-results-info-heading,
.cd-seo-results-info-cell {
    padding-right: 8px !important;
    padding-left: 8px !important;
}

.cd-seo-results-info-cell .cd-seo-result-link {
    margin: 0 auto;
}

.cd-task-report-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.cd-task-report-stat {
    min-height: 104px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 14px;
    padding: 17px;
    text-align: left;
}

.cd-task-report-stat > div {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    justify-items: start;
    text-align: left;
}

.cd-task-report-stat > div > span {
    width: 100%;
    overflow: visible;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
}

.cd-task-report-stat > div > strong {
    max-width: 100%;
    font-size: clamp(21px, 1.8vw, 29px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

@media (max-width: 1600px) {
    .cd-audit-admin-report > [class*="col-xl"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .cd-audit-admin-report > [class*="col-xl"]:not(:last-child) {
        margin-bottom: 16px;
    }

    .cd-audit-admin-report .audit-report-top-card,
    .cd-audit-admin-report .audit-report-summary,
    .cd-audit-admin-report .audit-report-screenshot-preview {
        width: 100%;
        max-width: none;
    }

    .cd-audit-admin-report .audit-report-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1439px) {
    .cd-dashboard-hero-data-row {
        width: 100%;
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .cd-dashboard-hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cd-dashboard-hero-report {
        width: 100%;
        max-width: 100%;
    }

    .cd-dashboard-overview {
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 16px;
        padding: 28px;
    }

    .cd-dashboard-overview-heading {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;
        min-height: 104px;
    }

    .cd-dashboard-overview .cd-dashboard-visual {
        inset: auto;
    }

    .cd-dashboard-overview .cd-dashboard-map {
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

    .cd-dashboard-overview-metrics {
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-self: stretch;
        margin: 0;
    }

    .cd-dashboard-overview-metric {
        min-height: 104px;
        padding: 15px;
    }

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

@media (max-width: 991px) {
    .cd-dashboard-overview {
        padding: 22px;
    }

    .cd-dashboard-overview .cd-dashboard-visual {
        height: 230px;
    }

    .cd-dashboard-overview-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .cd-dashboard-overview-metric {
        min-height: 92px;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 10px;
        padding: 12px;
    }

    .cd-dashboard-overview-metric-value {
        font-size: 22px;
    }

    .cd-dashboard-overview-metric-label,
    .cd-dashboard-overview-metric-meta {
        line-height: 1.25;
    }

    .cd-seo-keyword-location-heading {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 16px;
    }

    .cd-seo-keyword-location-heading > div:not(.cd-seo-keyword-heading-actions) {
        min-width: 0;
        display: block;
    }

    .cd-seo-keyword-location-heading h2 {
        margin-top: 3px;
        font-size: clamp(18px, 3vw, 22px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .cd-seo-keyword-location-heading p {
        margin-top: 7px;
        line-height: 1.45;
    }

    .cd-seo-keyword-heading-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        margin-top: 2px;
        padding-top: 12px;
        border-top: 1px solid rgba(108, 166, 197, 0.13);
    }

    .cd-seo-keyword-location-total {
        min-width: 46px;
        height: 42px;
        display: inline-grid;
        place-items: center;
        border-radius: 13px;
    }

    .cd-seo-keyword-search {
        width: 100%;
    }

    .cd-seo-keyword-page-tab,
    .cd-seo-keyword-page-tab span {
        white-space: nowrap;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cd-representative-icon {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
        font-size: 15px;
    }

    .cd-seo-keyword-location-heading,
    .cd-dashboard-competitor-panel,
    .cd-dashboard-report-status-header {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .cd-dashboard-document-panel-header {
        grid-template-columns: 42px minmax(0, 1fr) 38px;
    }

    .cd-dashboard-overview-heading {
        min-height: 88px;
        padding: 0 116px 0 0;
    }

    .cd-dashboard-overview .cd-dashboard-visual {
        height: 175px;
    }

    .cd-dashboard-overview-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-dashboard-overview-metric {
        min-height: 78px;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 11px 13px;
    }

    .cd-dashboard-overview-metric-value {
        font-size: 21px;
    }

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

    .cd-task-report-stats,
    .cd-seo-keyword-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cd-task-report-stat,
    .cd-task-report-stat:not(.cd-seo-keyword-stat) {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
        justify-items: stretch;
        text-align: left;
    }

    .cd-task-report-stat > div > span {
        font-size: 12px;
    }

    .cd-task-report-stat > div > strong {
        font-size: 21px;
    }

    .cd-seo-keyword-heading-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-seo-keyword-location-total {
        justify-self: start;
    }

    .cd-dashboard-document-row {
        grid-template-columns: minmax(0, 1fr) 39px;
        gap: 8px 12px;
    }

    .cd-dashboard-document-row > time {
        grid-column: 1;
        grid-row: 2;
    }

    .cd-dashboard-document-view-button {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }
}

@media (max-width: 520px) {
    .cd-task-report-stats,
    .cd-seo-keyword-stats {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-dashboard-hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-dashboard-overview {
        padding: 18px 14px;
    }

    .cd-dashboard-overview-heading {
        min-height: 78px;
        padding-right: 90px;
    }

    .cd-dashboard-overview .cd-dashboard-visual {
        height: 140px;
    }

    .cd-audit-admin-report .audit-report-summary {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cd-seo-competitor-subcard.cd-seo-visibility-card.is-positive {
    margin-bottom: 18px;
}

.cd-task-report-stat {
    align-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.cd-task-report-stat > div {
    align-content: center;
    gap: 4px;
}

.cd-task-report-stat > div > span,
.cd-task-report-stat > div > strong {
    margin-top: 0;
    margin-bottom: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-content {
    min-width: 0;
    padding-left: clamp(18px, 2vw, 30px);
}

@media (max-width: 1600px) {
    .cd-dashboard-report-status-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cd-dashboard-report-status-metrics > span {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        justify-items: center;
        gap: 5px;
        padding: 12px 8px;
        text-align: center;
    }

    .cd-dashboard-report-status-metrics i {
        grid-row: 1;
    }

    .cd-dashboard-report-status-metrics strong {
        grid-row: 2;
        max-width: 100%;
        line-height: 1.05;
    }

    .cd-dashboard-report-status-metrics small {
        grid-row: 3;
        width: 100%;
        min-width: 0;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1439px) {
    .cd-dashboard-overview-heading {
        padding-right: 0;
    }
}

@media (max-width: 1300px) {
    .cd-dashboard-overview .cd-dashboard-emblem {
        top: 50%;
        left: 50%;
        width: clamp(230px, 34vw, 330px);
        height: clamp(230px, 34vw, 330px);
        opacity: 1;
        filter: drop-shadow(0 20px 34px rgba(54, 38, 128, 0.28));
        transform: translate(-50%, -50%) scale(1.08);
    }

    .cd-dashboard-overview .cd-dashboard-core {
        width: clamp(96px, 12vw, 124px);
        height: clamp(96px, 12vw, 124px);
    }
}

@media (max-width: 991px) {
    .cd-task-report-stat,
    .cd-task-report-stat:not(.cd-seo-keyword-stat) {
        min-height: 88px;
    }
}

@media (max-width: 767px) {
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-top-content {
        padding-left: 0;
    }

    .cd-task-report-stat,
    .cd-task-report-stat:not(.cd-seo-keyword-stat) {
        min-height: 84px;
        padding-top: 11px;
        padding-bottom: 11px;
    }
}

.cd-report-keywords-table {
    min-width: 910px;
}

.cd-report-keywords-table th:nth-child(7),
.cd-report-keywords-table td:nth-child(7) {
    width: 76px !important;
    min-width: 76px;
}

.cd-dashboard-overview .cd-dashboard-visual {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 31%;
    width: clamp(320px, 32vw, 500px);
    height: auto !important;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
}

.cd-dashboard-overview .cd-dashboard-map {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.cd-dashboard-overview .cd-dashboard-emblem {
    top: 57%;
    left: 50%;
    width: 76%;
    height: 76%;
    transform: translate(-50%, -50%);
}

.cd-audit-admin-report > .audit-report-main-col,
.cd-audit-admin-report > .audit-report-main-col + .col-12 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.cd-audit-admin-report > .audit-report-main-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.cd-audit-admin-report > .audit-report-main-col > .audit-report-top-card,
.cd-audit-admin-report > .audit-report-main-col > .audit-report-summary {
    width: 100%;
    min-width: 0;
    max-width: none;
}

@media (max-width: 1439px) {
    .cd-dashboard-overview .cd-dashboard-visual {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: clamp(250px, 42vw, 360px);
        height: auto !important;
        margin: 0 auto;
        transform: none;
    }
}

@media (max-width: 991px) {
    .cd-task-report-stat-decoration {
        display: none !important;
    }

    .cd-task-report-stat,
    .cd-task-report-stat:not(.cd-seo-keyword-stat) {
        align-content: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 520px) {
    .cd-dashboard-overview .cd-dashboard-visual {
        width: min(78vw, 270px);
    }
}

.cd-task-report-stat > .cd-task-report-stat-decoration {
    position: absolute !important;
    z-index: 0;
    margin: 0;
    pointer-events: none;
}

.cd-dashboard-overview .cd-dashboard-visual {
    overflow: visible;
}

.cd-dashboard-overview-metric-value {
    font-size: clamp(19px, 1.7vw, 22px);
}

@media (max-width: 1439px) {
    .cd-dashboard-overview .cd-dashboard-emblem {
        left: 30%;
    }
}
.cd-task-report-stat > .cd-task-report-stat-decoration {
    display: none !important;
}

.cd-seo-report-tab,
.cd-seo-report-tab span {
    white-space: nowrap;
}

.cd-seo-report-tabs {
    grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
    overscroll-behavior-inline: contain;
}

.cd-seo-keyword-location-total {
    min-width: 0;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    white-space: nowrap;
}

.cd-seo-keyword-location-total span {
    color: inherit;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.cd-seo-keyword-location-total b {
    font-size: 15px;
    font-weight: 850;
}

@media (max-width: 1700px) {

    .cd-seo-distribution-grid-compact .cd-seo-distribution-counts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1240px) {
    .cd-dashboard-seo-secondary-row,
    .cd-dashboard-audit-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-dashboard-keyword-panel,
    .cd-dashboard-competitor-panel,
    .cd-dashboard-audit-score-card,
    .cd-dashboard-audit-stat-stack,
    .cd-dashboard-comparison-panel,
    .cd-dashboard-audit-table-panel {
        width: 100%;
        min-width: 0;
        grid-column: 1 / -1 !important;
    }

    .cd-dashboard-competitor-panel {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    .cd-dashboard-competitor-comparison {
        grid-column: 1 / -1;
    }

    .cd-dashboard-audit-stat-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .cd-dashboard-grid-layout-task {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .cd-dashboard-grid-layout-task .cd-dashboard-task-total {
        grid-column: 1 / -1 !important;
    }

    .cd-dashboard-grid-layout-task .cd-dashboard-task-stat {
        width: 100%;
        min-width: 0;
    }

    .cd-seo-competitor-layout,
    .cd-seo-opportunity-grid,
    .cd-seo-winning-pages-grid,
    .cd-audit-admin-report .audit-report-grid,
    .audit-report-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 991px) {

    .cd-client-report-name,
    .cd-client-report-file-group,
    .cd-client-report-download-button,
    .cd-client-report-file-empty {
        max-width: 100%;
    }

    .cd-client-report-file-menu {
        right: auto;
        left: 0;
        width: min(360px, calc(100vw - 72px));
    }

    .cd-audit-admin-report.row {
        margin: 0;
    }

    .cd-audit-admin-report > [class*="col-"] {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .cd-audit-admin-report > [class*="col-"]:last-child {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .cd-dashboard-grid-layout-task {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .cd-page-heading-offer.has-visible-actions,
    .cd-page-heading-contract.has-visible-actions {
        min-height: 164px;
        height: 164px;
        margin-bottom: 18px !important;
    }

    .cd-page-heading-offer.has-visible-actions .cd-page-banner-surface,
    .cd-page-heading-contract.has-visible-actions .cd-page-banner-surface {
        clip-path: none;
    }

    .cd-page-heading-offer.has-visible-actions .cd-page-banner-content,
    .cd-page-heading-contract.has-visible-actions .cd-page-banner-content {
        padding-right: 22px;
        padding-bottom: 70px;
    }

    .cd-page-heading-offer.has-visible-actions .cd-document-view-actions,
    .cd-page-heading-contract.has-visible-actions .cd-document-view-actions {
        position: absolute;
        top: auto;
        right: 20px;
        bottom: 16px;
        left: 20px;
        width: auto;
        height: 42px;
        display: flex !important;
        justify-content: flex-start;
        gap: 7px;
        padding: 0;
        transform: none;
    }
}

@media (max-width: 620px) {
    .cd-dashboard-grid-layout-task,
    .cd-dashboard-audit-stat-stack {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-warning, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-warning {
    color: #ffe1a1 !important;
    text-shadow: 0 0 16px rgba(255, 188, 66, 0.38);
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-success, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-success {
    color: #a8f2cf !important;
    text-shadow: 0 0 16px rgba(69, 219, 148, 0.34);
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-warning i, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-warning i,
html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-success i, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-success i {
    color: inherit !important;
}

.cd-auth-heading h1 {
    margin: 0 0 12px;
    font-size: clamp(27px, 5vw, 32px);
    line-height: 1.06;
}

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

    .cd-seo-distribution-grid-compact .cd-seo-distribution-card,
    .cd-seo-distribution-grid-compact .cd-seo-distribution-counts,
    .cd-seo-distribution-grid-compact .cd-seo-distribution-counts > span,
    .cd-seo-distribution-grid-compact .cd-seo-distribution-counts small,
    .cd-seo-distribution-grid-compact .cd-seo-distribution-counts strong {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 1240px) {
    .cd-dashboard-seo-secondary-row,
    .cd-dashboard-audit-layout,
    .cd-dashboard-grid-layout-task {
        width: 100%;
    }

    .cd-dashboard-keyword-panel,
    .cd-dashboard-competitor-panel,
    .cd-dashboard-audit-score-card,
    .cd-dashboard-audit-stat-stack,
    .cd-dashboard-comparison-panel,
    .cd-dashboard-audit-table-panel {
        max-width: 100%;
    }

    .cd-dashboard-grid-layout-task {
        grid-auto-flow: row;
    }

    .cd-dashboard-grid-layout-task .cd-dashboard-task-total,
    .cd-dashboard-grid-layout-task .cd-dashboard-task-stat {
        max-width: none;
    }

    .cd-seo-opportunity-grid > *,
    .cd-seo-winning-pages-grid > *,
    .audit-report-grid > * {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 991px) {
    .cd-seo-distribution-grid-compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-audit-admin-report > [class*="col-"] {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    .cd-audit-admin-report > .audit-report-main-col {
        gap: 16px;
        padding-top: 0 !important;
    }

    .cd-audit-admin-report > .audit-report-main-col > .audit-report-top-card,
    .cd-audit-admin-report > .audit-report-main-col > .audit-report-summary {
        margin-top: 0;
        margin-bottom: 0;
    }
    .cd-client-report-name,
.cd-client-report-name > div {
        min-width: 0;
    }

    .cd-client-report-name strong,
    .cd-client-report-name small {
        overflow-wrap: anywhere;
    }
}
html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-danger, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-danger {
    color: #ffc0cb !important;
    text-shadow: 0 0 16px rgba(255, 91, 119, 0.38);
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-danger i, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-danger i {
    color: inherit !important;
}

.cd-dashboard-content {
    gap: 18px;
}

.cd-seo-report-tabs {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
}

.cd-seo-report-tab {
    width: max-content;
    min-width: max-content;
    flex: 0 0 auto;
}

.cd-seo-keyword-heading-actions {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.cd-seo-keyword-location-total {
    width: auto;
    align-self: flex-start;
}

.cd-seo-keyword-heading-actions .cd-seo-keyword-search {
    width: min(340px, 100%);
    flex: 0 1 auto;
}

@media (max-width: 991px) {
    .cd-seo-keyword-heading-actions {
        width: 100%;
        flex: 1 1 100%;
        align-items: stretch;
        margin-left: 0;
    }

    .cd-seo-keyword-location-total {
        align-self: flex-start;
    }

    .cd-seo-keyword-heading-actions .cd-seo-keyword-search {
        width: 100%;
        max-width: none;
    }
}


/* Shared CRM semantic controls */
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) legend {
    width: auto;
    margin: 18px 0 14px;
    padding: 0 0 9px;
    border: 0;
    border-bottom: 1px solid rgba(111, 171, 202, 0.14);
    color: #dff4fb;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 780;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

html[data-theme="light"] :where(.cd-theme-scope) legend,
html[data-theme="light"].cd-theme-document legend {
    border-bottom-color: rgba(69, 127, 166, 0.13);
    color: #21465f;
}

:where(html.cd-theme-document, .cd-theme-scope) .accordion-button {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid rgba(111, 171, 202, 0.15);
    border-radius: 14px;
    color: #d7ebf5;
    background:
        radial-gradient(circle at 92% -70%, rgba(130, 88, 200, 0.16), transparent 10rem),
        linear-gradient(110deg, rgba(13, 40, 60, 0.9), rgba(8, 29, 46, 0.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    font-weight: 760;
    text-decoration: none;
}

:where(html.cd-theme-document, .cd-theme-scope) .accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: .68;
}

:where(html.cd-theme-document, .cd-theme-scope) .accordion-button:hover,
:where(html.cd-theme-document, .cd-theme-scope) .accordion-button:focus-visible,
:where(html.cd-theme-document, .cd-theme-scope) .accordion-button:not(.collapsed) {
    border-color: rgba(108, 191, 221, 0.28);
    color: #f2fbff;
    background:
        radial-gradient(circle at 92% -70%, rgba(130, 88, 200, 0.22), transparent 10rem),
        linear-gradient(110deg, rgba(24, 62, 88, 0.95), rgba(12, 42, 62, 0.96));
    box-shadow: 0 10px 24px rgba(0,8,22,.14), inset 3px 0 0 rgba(111, 99, 211, .64), inset 0 1px 0 rgba(255,255,255,.06);
    text-decoration: none;
}

html[data-theme="light"] :where(.cd-theme-scope) .accordion-button,
html[data-theme="light"].cd-theme-document .accordion-button {
    border-color: rgba(69, 127, 166, 0.14);
    color: #345d75;
    background: linear-gradient(110deg, #f8fcfe, #edf7fb);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] :where(.cd-theme-scope) .accordion-button:hover,
html[data-theme="light"] :where(.cd-theme-scope) .accordion-button:focus-visible,
html[data-theme="light"] :where(.cd-theme-scope) .accordion-button:not(.collapsed),
html[data-theme="light"].cd-theme-document .accordion-button:hover,
html[data-theme="light"].cd-theme-document .accordion-button:focus-visible,
html[data-theme="light"].cd-theme-document .accordion-button:not(.collapsed) {
    border-color: rgba(61, 127, 171, 0.22);
    color: #17384e;
    background: linear-gradient(110deg, #ffffff, #e8f3f8);
    box-shadow: 0 9px 22px rgba(49,86,111,.09), inset 3px 0 0 #7656c5, inset 0 1px 0 #fff;
}

html[data-theme="light"] :where(.cd-theme-scope) .accordion-button::after,
html[data-theme="light"].cd-theme-document .accordion-button::after {
    filter: none;
    opacity: .62;
}

.cd-icon-button.btn-danger,
.cd-icon-button.btn-danger:hover,
.cd-icon-button.btn-danger:focus-visible {
    border-color: rgba(255, 112, 130, 0.4) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #c44360, #a62e4d) !important;
    box-shadow: 0 10px 22px rgba(126, 30, 57, .24), inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.cd-icon-button.btn-warning,
.cd-icon-button.btn-warning:hover,
.cd-icon-button.btn-warning:focus-visible {
    border-color: rgba(247, 194, 75, 0.52) !important;
    color: #2d2108 !important;
    background: linear-gradient(145deg, #ffd56a, #e8a930) !important;
    box-shadow: 0 10px 22px rgba(148, 100, 20, .18), inset 0 1px 0 rgba(255,255,255,.35) !important;
}

.cd-icon-button.btn-success,
.cd-icon-button.btn-success:hover,
.cd-icon-button.btn-success:focus-visible {
    border-color: rgba(143, 154, 232, 0.46) !important;
    color: #ffffff !important;
    background: #5f63bd !important;
    box-shadow: 0 8px 18px rgba(58, 61, 139, .18), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

.cd-icon-button.btn-info,
.cd-icon-button.btn-info:hover,
.cd-icon-button.btn-info:focus-visible {
    border-color: rgba(86, 184, 231, 0.42) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #3c9ed0, #287bb5) !important;
    box-shadow: 0 10px 22px rgba(26, 97, 141, .2), inset 0 1px 0 rgba(255,255,255,.16) !important;
}


.cd-button.btn-danger,
.cd-button.btn-danger:hover,
.cd-button.btn-danger:focus-visible {
    border-color: rgba(255, 112, 130, 0.4) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #c44360, #a62e4d) !important;
}

.cd-button.btn-warning,
.cd-button.btn-warning:hover,
.cd-button.btn-warning:focus-visible {
    border-color: rgba(247, 194, 75, 0.52) !important;
    color: #2d2108 !important;
    background: linear-gradient(145deg, #ffd56a, #e8a930) !important;
}

.cd-button.btn-success,
.cd-button.btn-success:hover,
.cd-button.btn-success:focus-visible {
    border-color: rgba(143, 154, 232, 0.46) !important;
    color: #ffffff !important;
    background: #5f63bd !important;
}

.cd-button.btn-info,
.cd-button.btn-info:hover,
.cd-button.btn-info:focus-visible {
    border-color: rgba(86, 184, 231, 0.42) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #3c9ed0, #287bb5) !important;
}

/* ==================== 11. Listings, offer and contract states ==================== */
.cd-listing-card {
    width: 100%;
    min-width: 0;
    padding: clamp(16px, 2.2vw, 26px);
    overflow: visible;
}

.cd-listing-page {
    min-width: 0;
}

.cd-listing-page .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.cd-listing-page-actions .cd-button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 13px;
    white-space: nowrap;
}

.cd-listing-layout,
.cd-listing-main {
    width: 100%;
    min-width: 0;
}

.cd-listing-card-header {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(111, 165, 198, 0.13);
}

.cd-listing-card-header > span,
.cd-listing-card-title {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cd-text);
    font-family: var(--ds-font-heading);
    font-size: 16px;
    font-weight: 700;
}

.cd-listing-card-header > span > i,
.cd-listing-card-title > i {
    color: #6ab7e8;
}

.cd-listing-card-body {
    min-width: 0;
}

.cd-listing-search {
    width: min(320px, 100%);
    flex: 0 1 320px;
}

.cd-listing-search .form-control,
.cd-filter-panel .form-control {
    border: 1px solid rgba(111, 171, 208, 0.2);
    border-radius: 13px;
    color: #eaf6fb;
    background: rgba(4, 18, 31, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cd-listing-search .input-group-text {
    border: 1px solid rgba(111, 171, 208, 0.2);
    border-left: 0;
    border-radius: 0 13px 13px 0;
    color: #8fc6df;
    background: rgba(10, 32, 49, 0.94);
}

.cd-listing-contact-card {
    padding: 6px 8px;
    border: 1px solid rgba(110, 164, 198, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.cd-listing-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.cd-listing-row-actions .cd-icon-button,
.cd-listing-mini-action {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
}

.cd-listing-table-admin {
    min-width: 760px;
}

.cd-listing-table-admin thead a {
    color: inherit;
    text-decoration: none;
}

.cd-listing-table-admin thead a:hover,
.cd-listing-table-admin thead a:focus-visible {
    color: #d9f4ff;
}

.cd-listing-table-admin thead a.asc::after,
.cd-listing-table-admin thead a.desc::after {
    margin-left: 6px;
    color: #64bde8;
    font-size: 11px;
    font-weight: 800;
}

.cd-listing-table-admin thead a.asc::after {
    content: "\2191";
}

.cd-listing-table-admin thead a.desc::after {
    content: "\2193";
}

.cd-listing-pagination {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(111, 165, 198, 0.13);
}

.cd-listing-pagination > .row {
    align-items: center;
    row-gap: 12px;
}

.cd-listing-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.cd-listing-pagination .page-item {
    margin: 0;
}

.cd-listing-pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid rgba(108, 174, 211, 0.18);
    border-radius: 11px !important;
    color: #b8d6e6;
    background: rgba(7, 26, 42, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
}

.cd-listing-pagination .page-link:hover,
.cd-listing-pagination .page-link:focus-visible {
    border-color: rgba(91, 183, 228, 0.42);
    color: #ffffff;
    background: rgba(29, 92, 132, 0.55);
    box-shadow: 0 9px 22px rgba(0, 9, 22, 0.18), 0 0 0 3px rgba(77, 169, 255, 0.07);
}

.cd-listing-pagination .page-item.active .page-link {
    border-color: rgba(148, 208, 244, 0.35);
    color: #ffffff;
    background: linear-gradient(115deg, rgba(130, 88, 200, 0.94), rgba(44, 132, 200, 0.94), rgba(45, 189, 187, 0.88));
    box-shadow: 0 10px 24px rgba(48, 81, 164, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cd-listing-pagination .page-item.disabled .page-link {
    opacity: 0.48;
    pointer-events: none;
}

.cd-listing-pagination .text-right {
    color: var(--cd-muted);
    font-size: 12px;
    font-weight: 650;
}

.cd-filter-fixed {
    position: fixed !important;
    z-index: 1038;
    top: var(--cd-filter-fixed-top, var(--cd-topbar-height, 78px));
    right: 0;
    bottom: 0;
    left: auto;
    width: min(390px, 100vw);
    max-width: none;
    height: auto;
    max-height: calc(100dvh - var(--cd-filter-fixed-top, var(--cd-topbar-height, 78px)));
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0;
    isolation: isolate;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 162, 205, 0.62) transparent;
}

.cd-filter-panel {
    position: relative;
    min-width: 0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-right: 1px solid transparent;
    border-left: 1px solid transparent;
    border-radius: 0;
    color: #eaf6fb;
    background:
        radial-gradient(circle at 88% 8%, rgba(130, 88, 200, 0.2), transparent 12rem) padding-box,
        radial-gradient(circle at 8% 96%, rgba(45, 189, 187, 0.12), transparent 13rem) padding-box,
        linear-gradient(145deg, rgba(8, 27, 44, 0.985), rgba(4, 17, 30, 0.985)) padding-box,
        linear-gradient(125deg, rgba(133, 103, 222, 0.42), rgba(70, 164, 216, 0.35), rgba(45, 189, 187, 0.2)) border-box;
    box-shadow: 0 28px 80px rgba(0, 5, 18, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
}

.cd-filter-panel::before {
    position: absolute;
    top: -72px;
    right: -52px;
    width: 176px;
    height: 176px;
    border: 1px solid rgba(121, 190, 231, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 23px rgba(130, 88, 200, 0.025), inset 0 0 32px rgba(77, 169, 255, 0.05);
    content: "";
    pointer-events: none;
}

.cd-filter-panel::after {
    position: absolute;
    z-index: 0;
    top: 68px;
    right: -118px;
    width: 390px;
    height: 170px;
    border: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 18% 46%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
        radial-gradient(circle at 31% 58%, rgba(132, 219, 247, 0.72) 0 1px, transparent 1.7px),
        radial-gradient(circle at 46% 37%, rgba(230, 219, 255, 0.68) 0 1.2px, transparent 2px),
        radial-gradient(circle at 61% 62%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.8px),
        radial-gradient(circle at 74% 42%, rgba(113, 205, 232, 0.58) 0 1px, transparent 1.8px),
        radial-gradient(ellipse at 52% 50%, rgba(213, 224, 255, 0.14) 0 8%, rgba(125, 101, 220, 0.16) 20%, rgba(45, 170, 198, 0.11) 40%, transparent 69%);
    box-shadow:
        -74px 22px 78px rgba(102, 78, 204, 0.13),
        -18px -12px 58px rgba(52, 171, 205, 0.08);
    content: "";
    filter: blur(0.15px);
    opacity: 0.88;
    pointer-events: none;
    transform: rotate(-24deg);
}

.cd-filter-panel-header {
    position: relative;
    z-index: 1;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(114, 174, 210, 0.14);
    background:
        radial-gradient(circle at 18% 32%, rgba(255,255,255,.62) 0 1px, transparent 1.5px),
        radial-gradient(circle at 31% 64%, rgba(117,197,236,.72) 0 1px, transparent 1.5px),
        radial-gradient(circle at 45% 38%, rgba(255,255,255,.44) 0 1px, transparent 1.5px),
        linear-gradient(90deg, rgba(83, 69, 171, 0.12), rgba(34, 113, 158, 0.07), transparent 72%);
}

.cd-filter-panel-header > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--ds-font-heading);
    font-size: 15px;
    font-weight: 750;
}

.cd-filter-panel-header > span > i {
    color: #72bee9;
}

.cd-filter-panel-close {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid rgba(122, 187, 226, 0.16);
    border-radius: 10px;
    color: #bcd7e5;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.cd-filter-panel-close:hover,
.cd-filter-panel-close:focus-visible {
    border-color: rgba(114, 199, 239, 0.38);
    color: #ffffff;
    background: rgba(63, 145, 188, 0.15);
}

.cd-filter-panel-body {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
}

.cd-filter-panel .form-group:last-child {
    margin-bottom: 0;
}

.cd-filter-panel .col-form-label {
    color: #98b8ca;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.045em;
}

.cd-filter-panel .form-control {
    min-height: 44px;
    color: #eaf6fb;
}

.cd-filter-panel .form-control:focus {
    border-color: rgba(95, 196, 236, 0.46);
    background: rgba(5, 23, 38, 0.92);
    box-shadow: 0 0 0 3px rgba(77, 169, 255, 0.08);
}

.cd-filter-panel select.form-control option {
    color: #eaf6fb;
    background: #0a1e2e;
}

.cd-filter-panel-footer {
    position: relative;
    z-index: 1;
    padding: 0 18px 18px;
}

.cd-filter-panel-footer .cd-button {
    width: 100%;
}

:where(html.cd-theme-document, .cd-theme-scope) table.sticky-header > thead > tr > th,
:where(html.cd-theme-document, .cd-theme-scope) thead.sticky-header > tr > th {
    top: 0;
}

.cd-listing-sticky-header-wrapper {
    border: 1px solid rgba(111, 165, 198, 0.14);
    border-radius: 16px 16px 0 0;
    background: rgba(7, 25, 40, 0.97);
    box-shadow: 0 14px 34px rgba(0, 8, 20, 0.26);
    backdrop-filter: blur(18px);
}

.cd-listing-sticky-header-wrapper .cd-listing-card-header {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 0;
}

.cd-listing-sticky-table {
    box-shadow: 0 12px 28px rgba(0, 7, 18, 0.2);
}

html[data-theme="light"] .cd-listing-card-header {
    border-bottom-color: rgba(67, 111, 140, 0.12);
}

html[data-theme="light"] .cd-listing-card-header > span,
html[data-theme="light"] .cd-listing-card-title {
    color: #17384e;
}

html[data-theme="light"] .cd-listing-search .form-control,
html[data-theme="light"] .cd-filter-panel .form-control {
    border-color: rgba(67, 113, 148, 0.16);
    color: #294c64;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-listing-search .input-group-text {
    border-color: rgba(67, 113, 148, 0.16);
    color: #45708b;
    background: #edf6fa;
}

html[data-theme="light"] .cd-listing-contact-card {
    border-color: rgba(66, 106, 134, 0.1);
    background: rgba(242, 249, 252, 0.9);
}

html[data-theme="light"] .cd-listing-table-admin thead a:hover,
html[data-theme="light"] .cd-listing-table-admin thead a:focus-visible {
    color: #0d5f8d;
}

html[data-theme="light"] .cd-listing-pagination {
    border-top-color: rgba(67, 111, 140, 0.12);
}

html[data-theme="light"] .cd-listing-pagination .page-link {
    border-color: rgba(66, 113, 147, 0.14);
    color: #345b73;
    background: rgba(248, 252, 254, 0.98);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-listing-pagination .page-link:hover,
html[data-theme="light"] .cd-listing-pagination .page-link:focus-visible {
    border-color: rgba(44, 132, 200, 0.28);
    color: #163e58;
    background: #ffffff;
}

html[data-theme="light"] .cd-filter-panel {
    color: #17384e;
    background:
        radial-gradient(circle at 88% 8%, rgba(130, 88, 200, 0.08), transparent 12rem) padding-box,
        radial-gradient(circle at 8% 96%, rgba(45, 189, 187, 0.07), transparent 13rem) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, 0.995), rgba(239, 248, 252, 0.995)) padding-box,
        linear-gradient(125deg, rgba(133, 103, 222, 0.24), rgba(70, 164, 216, 0.22), rgba(45, 189, 187, 0.13)) border-box;
    box-shadow: 0 28px 70px rgba(45, 76, 100, 0.2), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-filter-panel::after {
    opacity: 0.58;
}

html[data-theme="light"] .cd-filter-panel-header {
    border-bottom-color: rgba(66, 111, 140, 0.11);
    background:
        radial-gradient(circle at 18% 32%, rgba(52,115,154,.36) 0 1px, transparent 1.5px),
        radial-gradient(circle at 31% 64%, rgba(90,151,190,.4) 0 1px, transparent 1.5px),
        radial-gradient(circle at 45% 38%, rgba(52,115,154,.26) 0 1px, transparent 1.5px),
        linear-gradient(90deg, rgba(113, 84, 194, 0.06), rgba(39, 127, 177, 0.045), transparent 72%);
}

html[data-theme="light"] .cd-filter-panel .col-form-label {
    color: #55758a;
}

html[data-theme="light"] .cd-filter-panel .form-control:focus {
    border-color: rgba(44, 132, 200, 0.32);
    background: #ffffff;
}

html[data-theme="light"] .cd-filter-panel select.form-control option {
    color: #294c64;
    background: #ffffff;
}

html[data-theme="light"] .cd-filter-panel-close {
    border-color: rgba(55, 103, 136, 0.14);
    color: #466b82;
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .cd-listing-sticky-header-wrapper {
    border-color: rgba(67, 111, 140, 0.12);
    background: rgba(248, 252, 254, 0.98);
    box-shadow: 0 14px 32px rgba(44, 77, 101, 0.13);
}

.cd-listing-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    border: 1px solid rgba(110, 164, 198, 0.15);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(10, 30, 45, 0.98), rgba(6, 21, 34, 0.97));
    box-shadow: 0 20px 46px rgba(0, 8, 19, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

[data-cd-client-report-history] .cd-listing-table-wrap {
    overflow: visible;
}

.cd-listing-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.cd-listing-table th,
.cd-listing-table td {
    min-width: 0;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(113, 164, 191, 0.12);
    text-align: left;
    vertical-align: middle;
}

.cd-listing-table th {
    height: auto;
    color: #8faaba;
    background:
        linear-gradient(90deg, rgba(101, 78, 194, 0.15), rgba(43, 132, 187, 0.1)),
        rgba(9, 29, 44, 0.94);
    font-size: clamp(12px, 0.82vw, 14px) !important;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.cd-listing-table th:first-child {
    border-radius: 18px 0 0;
}

.cd-listing-table th:last-child {
    border-radius: 0 18px 0 0;
}

.cd-listing-table tbody tr {
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.cd-listing-table tbody tr:hover {
    background: rgba(77, 141, 193, 0.07);
}

.cd-listing-table tbody tr:last-child td {
    border-bottom: 0;
}

.cd-listing-table td {
    position: relative;
}

.cd-listing-table-documents th:first-child {
    width: 38%;
}

.cd-listing-table-documents th:nth-child(2) {
    width: 29%;
}

.cd-listing-table-documents th:nth-child(3) {
    width: 21%;
}

.cd-listing-table-client-reports th:first-child {
    width: 34%;
}

.cd-listing-actions-heading,
.cd-listing-actions-cell {
    width: 90px;
    text-align: right !important;
}

.cd-listing-actions-cell-action-required {
    width: 245px;
    white-space: nowrap;
}

.cd-listing-actions-cell .cd-document-action-required-badge {
    margin-right: 8px;
}

html[data-theme="light"] .cd-listing-table-wrap {
    border-color: rgba(61, 108, 138, 0.12);
    background: linear-gradient(145deg, #ffffff, #f1f8fb);
    box-shadow: 0 20px 42px rgba(44, 77, 101, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-listing-table th,
html[data-theme="light"] .cd-listing-table td {
    border-bottom-color: rgba(59, 105, 135, 0.1);
}

html[data-theme="light"] .cd-listing-table th {
    color: #294b63 !important;
    background:
        linear-gradient(90deg, rgba(111, 83, 201, 0.08), rgba(44, 137, 190, 0.065)),
        #eef6fa;
}

html[data-theme="light"] .cd-listing-table tbody tr:hover {
    background: rgba(69, 137, 183, 0.065);
}

.cd-listing-table-wrap .cd-icon-button[data-tooltip] {
    position: relative;
    overflow: visible;
}

.cd-listing-table-wrap .cd-icon-button[data-tooltip]::before,
.cd-listing-table-wrap .cd-icon-button[data-tooltip]::after {
    position: absolute;
    z-index: 30;
    top: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

.cd-listing-table-wrap .cd-icon-button[data-tooltip]::before {
    right: calc(100% + 10px);
    width: max-content;
    max-width: 220px;
    padding: 7px 10px;
    border: 1px solid rgba(116, 168, 210, 0.18);
    border-radius: 9px;
    color: #e9f5fc;
    background: rgba(5, 18, 31, 0.97);
    box-shadow: 0 12px 30px rgba(0, 7, 18, 0.28);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    transform: translate(5px, -50%) scale(0.97);
    transform-origin: right center;
}

.cd-listing-table-wrap .cd-icon-button[data-tooltip]::after {
    right: calc(100% + 2px);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid rgba(5, 18, 31, 0.97);
    content: "";
    transform: translate(5px, -50%) scale(0.97);
    transform-origin: left center;
}

.cd-listing-table-wrap .cd-icon-button[data-tooltip]:hover::before,
.cd-listing-table-wrap .cd-icon-button[data-tooltip]:hover::after,
.cd-listing-table-wrap .cd-icon-button[data-tooltip]:focus-visible::before,
.cd-listing-table-wrap .cd-icon-button[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

html[data-theme="light"] .cd-listing-table-wrap .cd-icon-button[data-tooltip]::before {
    border-color: rgba(53, 92, 127, 0.14);
    color: #193a52;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(38, 66, 89, 0.18);
}

html[data-theme="light"] .cd-listing-table-wrap .cd-icon-button[data-tooltip]::after {
    border-left-color: rgba(255, 255, 255, 0.98);
}

.cd-dashboard-overview-visuals {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}

.cd-dashboard-overview .cd-dashboard-emblem-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    overflow: visible;
    transform: none;
}

.cd-dashboard-overview .cd-dashboard-map-visual {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: clamp(18px, 3vw, 48px);
    width: min(58%, 820px);
    aspect-ratio: 8 / 5;
    transform: translateY(-50%);
    opacity: 0.84;
}

.cd-dashboard-overview .cd-dashboard-map {
    position: absolute;
    z-index: 0 !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cd-dashboard-overview .cd-dashboard-emblem {
    z-index: 3;
}

.cd-dashboard-map-visual .cd-dashboard-node {
    z-index: 2;
    width: 9px;
    height: 9px;
    right: auto;
    bottom: auto;
    border-color: rgba(255, 229, 153, 0.8);
    background: #fdb816;
    box-shadow: 0 0 0 7px rgba(253, 184, 22, 0.08), 0 0 22px rgba(253, 184, 22, 0.8);
}

.cd-dashboard-map-visual .cd-dashboard-node::after {
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(253, 184, 22, 0.34);
    border-radius: 50%;
    content: "";
    animation: cd-dashboard-map-node-pulse 2.8s ease-out infinite;
}

.cd-dashboard-node-romania {
    top: 34%;
    left: 58%;
}

.cd-dashboard-node-usa {
    top: 37%;
    left: 22%;
    animation-delay: -0.45s;
}

.cd-dashboard-node-brazil {
    top: 64%;
    left: 36%;
    animation-delay: -0.9s;
}

.cd-dashboard-node-south-africa {
    top: 72%;
    left: 54%;
    animation-delay: -1.35s;
}

.cd-dashboard-node-india {
    top: 50%;
    left: 70%;
    animation-delay: -1.8s;
}

.cd-dashboard-node-japan {
    top: 38%;
    left: 86%;
    animation-delay: -2.15s;
}

.cd-dashboard-node-australia {
    top: 73%;
    left: 84%;
    animation-delay: -2.5s;
}

@keyframes cd-dashboard-map-node-pulse {
    0% {
        opacity: 0.9;
        transform: scale(0.55);
    }
    75%,
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

@media (min-width: 1439px) {
    .cd-dashboard-overview .cd-dashboard-emblem {
        left: 25%;
    }
}

@media (max-width: 1438px) {
    .cd-dashboard-overview-visuals {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(230px, 33vw, 330px);
        grid-row: auto;
    }

    .cd-dashboard-overview .cd-dashboard-emblem-visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100% !important;
        margin: 0;
    }

    .cd-dashboard-overview .cd-dashboard-emblem {
        left: 50%;
        top: 30%;
    }

    .cd-dashboard-overview .cd-dashboard-map-visual {
        right: 0;
        width: min(72%, 660px);
        opacity: 0.62;
    }
}

@media (max-width: 991px) {
    .cd-listing-card.cd-admin-listing-card {
        padding: 18px;
        border: 1px solid transparent;
        background: var(--ds-surface-card) !important;
        box-shadow: var(--ds-shadow-card) !important;
    }

    .cd-admin-listing-table-wrap {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border: 1px solid rgba(110, 164, 198, 0.15) !important;
        background: linear-gradient(145deg, rgba(10, 30, 45, 0.98), rgba(6, 21, 34, 0.97)) !important;
        box-shadow: 0 20px 46px rgba(0, 8, 19, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin,
    .cd-admin-listing-table-wrap .cd-listing-table-admin tbody,
    .cd-admin-listing-table-wrap .cd-listing-table-admin tr,
    .cd-admin-listing-table-wrap .cd-listing-table-admin td {
        display: revert;
        width: auto;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin {
        display: table;
        width: 100%;
        min-width: 760px;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin thead {
        display: table-header-group;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin tbody {
        display: table-row-group;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin tr {
        display: table-row;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin td {
        display: table-cell;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(113, 164, 191, 0.12);
        text-align: inherit !important;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin td::before {
        display: none;
    }

    .cd-admin-listing-table-wrap .cd-listing-table-admin .cd-listing-actions-cell {
        width: 90px;
        display: table-cell !important;
        margin: 0;
        padding: 14px 16px !important;
        border-top: 0;
        border-bottom: 1px solid rgba(113, 164, 191, 0.12);
        text-align: right !important;
    }

    html[data-theme="light"] .cd-admin-listing-table-wrap {
        border-color: rgba(61, 108, 138, 0.12) !important;
        background: linear-gradient(145deg, #ffffff, #f1f8fb) !important;
        box-shadow: 0 20px 42px rgba(44, 77, 101, 0.1), inset 0 1px 0 #ffffff !important;
    }

    html[data-theme="light"] .cd-admin-listing-table-wrap .cd-listing-table-admin tr {
        background: transparent;
    }

    .cd-listing-card {
        padding: 0;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-listing-table-wrap {
        max-width: 100%;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .cd-listing-table,
    .cd-listing-table tbody,
    .cd-listing-table tr,
    .cd-listing-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .cd-listing-table thead {
        display: none;
    }

    .cd-listing-table tbody {
        display: grid;
        gap: 12px;
    }

    .cd-listing-table tr {
        position: relative;
        padding: 16px;
        border: 1px solid rgba(120, 157, 187, 0.16);
        border-radius: 18px;
        background: rgba(5, 22, 39, 0.52);
    }

    .cd-listing-table td {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 8px 0;
        border: 0;
        text-align: left !important;
    }

    .cd-listing-table td::before {
        display: block;
        color: var(--cd-text-muted, #90a9bf);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.06em;
        line-height: 1.25;
        text-transform: uppercase;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .cd-listing-table td > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cd-listing-table .cd-listing-actions-cell {
        position: static !important;
        width: 100%;
        display: block !important;
        margin-top: 8px;
        padding: 12px 0 0 !important;
        border-top: 1px solid rgba(115, 160, 190, 0.14);
        transform: none !important;
    }

    .cd-listing-table .cd-listing-actions-cell::before {
        display: block;
        margin: 0 0 8px;
    }

    .cd-listing-table .cd-listing-actions-cell > .cd-document-action-required-badge {
        width: auto;
        max-width: 100%;
    }

    .cd-listing-table .cd-listing-actions-cell > .cd-icon-button {
        width: 39px;
        min-width: 39px;
        max-width: 39px;
    }

    html[data-theme="light"] .cd-listing-table tr {
        border-color: rgba(69, 105, 132, 0.14);
        background: rgba(255, 255, 255, 0.8);
    }

    .cd-dashboard-overview .cd-dashboard-map-visual {
        width: min(86%, 620px);
        opacity: 0.48;
    }
}

/* Main CRM form compatibility */
.cd-form-page {
    display: block;
}

.cd-form-page .cd-page-heading.cd-page-banner.cd-page-heading-has-actions {
    --cd-page-banner-actions-space: clamp(92px, 10vw, 118px);
}

.cd-form-page .cd-form-page-content {
    padding: 0;
}

/* Canonical form content wrapper shared by Client Dashboard and CRM.
 * CRM may add its own later overrides in crm.css; Client Dashboard only loads
 * this file, so the base geometry must live here. */
.cd-main.cd-form-page > .cd-form-page-content.cd-form-page-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cd-main.cd-form-page > .cd-form-page-content.cd-form-page-container > :is(.cd-form-card, .card, form, .row, .tab-content) {
    min-width: 0;
    max-width: 100%;
}

.cd-form-page .cd-form-card {
    overflow: visible;
    padding: 0;
}

.cd-form-card-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 20px;
    border-bottom: 1px solid rgba(112, 177, 210, 0.14);
    color: #dff4fb;
    background: linear-gradient(105deg, rgba(15, 43, 65, 0.72), rgba(9, 34, 53, 0.58));
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.cd-form-card-header i {
    color: #6dd7ee;
}

.cd-form-card-body {
    position: relative;
    padding: clamp(18px, 2.6vw, 30px);
    background:
        radial-gradient(circle at 9% 16%, rgba(255, 255, 255, 0.13) 0 1px, transparent 1.7px),
        radial-gradient(circle at 18% 31%, rgba(93, 193, 227, 0.16) 0 1px, transparent 1.8px),
        radial-gradient(circle at 79% 22%, rgba(195, 176, 244, 0.13) 0 1px, transparent 1.8px),
        radial-gradient(circle at 88% 67%, rgba(76, 191, 204, 0.12) 0 1px, transparent 1.8px),
        radial-gradient(ellipse at 84% 44%, rgba(113, 83, 205, 0.075), transparent 31%),
        linear-gradient(118deg, transparent 49%, rgba(91, 171, 207, 0.035) 56%, rgba(126, 91, 205, 0.045) 62%, transparent 70%);
}

.cd-form-page .cd-form-card form {
    display: block;
}

.cd-form-page .tab-content > .tab-pane {
    padding-top: 18px;
}

.cd-form-page fieldset {
    min-width: 0;
    margin: 0 0 22px;
    padding: 18px 20px 6px;
    border: 1px solid rgba(111, 171, 202, 0.14);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(8, 29, 47, 0.42), rgba(5, 22, 37, 0.28));
}

.cd-form-page fieldset > legend {
    width: auto;
    margin: 14px 0 12px;
    padding: 0;
    border: 0;
    color: #dff4fb;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 780;
    letter-spacing: -0.01em;
}

.cd-form-page .form-group.row {
    align-items: center;
    margin-right: 0;
    margin-left: 0;
    padding: 12px 0;
}

.cd-form-page .form-group.row:last-child {
    border-bottom: 0;
}

.cd-form-page .form-group.row + .form-group.row {
    border-top-color: rgba(111, 171, 202, 0.09);
}

.cd-form-page .col-form-label {
    color: #9fb9c9;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0.02em;
}

.cd-form-page .form-control,
.cd-form-page .input-group-text {
    border-color: rgba(110, 181, 214, 0.2);
    color: #eaf6fb;
    background-color: rgba(4, 20, 34, 0.62);
}

.cd-form-page .form-control {
    border-radius: 13px;
}

.cd-form-page input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.cd-form-page select.form-control {
    min-height: 44px;
}

.cd-form-page .input-group-text {
    color: #73cbe0;
}

.cd-form-page .form-control:focus {
    border-color: rgba(99, 205, 231, 0.5);
    background-color: rgba(7, 27, 43, 0.9);
    box-shadow: 0 0 0 3px rgba(77, 169, 255, 0.08);
}

.cd-form-page .btn:not(.btn-link) {
    border-radius: 12px;
    font-weight: 720;
    box-shadow: none;
}

.cd-form-page .btn-primary {
    border-color: rgba(87, 182, 225, 0.46);
    background: linear-gradient(104deg, #8258c8 0%, #496fc9 38%, #2c84c8 70%, #2dbdbb 116%);
}

.cd-form-page .btn-secondary,
.cd-form-page .btn-light {
    border-color: rgba(111, 171, 202, 0.2);
    color: #dceef7;
    background: rgba(17, 47, 73, 0.72);
}

.cd-form-page .input-group-append .btn,
.cd-form-page .input-group-prepend .btn {
    border-radius: 12px;
}

.cd-form-page .btn-group.btn-group-toggle {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(109, 184, 213, 0.16);
    border-radius: 14px;
    background: rgba(5, 20, 32, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-form-page .btn-group.btn-group-toggle > .btn {
    min-height: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 7px 12px;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: var(--cd-muted);
    background: transparent;
    box-shadow: none !important;
}

.cd-form-page .btn-group.btn-group-toggle > .btn:hover,
.cd-form-page .btn-group.btn-group-toggle > .btn:focus-visible {
    color: var(--cd-text);
    background: rgba(89, 173, 218, 0.07);
}

.cd-form-page .btn-group.btn-group-toggle > .btn.active,
.cd-form-page .btn-group.btn-group-toggle > .btn:not(:disabled):not(.disabled):active {
    border-color: rgba(84, 194, 221, 0.26) !important;
    color: #effcff !important;
    background: linear-gradient(135deg, rgba(86, 80, 188, 0.42), rgba(34, 139, 175, 0.34)) !important;
    box-shadow: 0 7px 16px rgba(0, 8, 22, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

.cd-form-page .btn-group.btn-group-toggle input[type="radio"],
.cd-form-page .btn-group.btn-group-toggle input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none;
}

.cd-form-page .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(111, 165, 198, 0.14);
    border-radius: 16px;
    background: rgba(5, 22, 36, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 161, 203, 0.5) transparent;
}

.cd-form-page .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #d7e7f0;
    background: transparent;
}

.cd-form-page .table th,
.cd-form-page .table td {
    padding: 13px 15px;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(111, 165, 198, 0.11);
    color: inherit;
    vertical-align: middle;
}

.cd-form-page .table thead th {
    position: relative;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(116, 174, 205, 0.18);
    color: #dff2f8;
    background:
        radial-gradient(circle at 86% 18%, rgba(129, 94, 213, 0.16), transparent 8rem),
        linear-gradient(110deg, rgba(16, 48, 70, 0.95), rgba(10, 36, 55, 0.96));
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.cd-form-page .table tbody tr:last-child > * {
    border-bottom: 0;
}

.cd-form-page .table-hover tbody tr:hover {
    color: #eef9fd;
    background: rgba(66, 139, 179, 0.09);
}

.cd-form-page .invalid-tooltip,
.cd-form-page .invalid-feedback {
    color: #ff9aac;
}

.cd-form-image-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    background: rgba(4, 20, 34, 0.7);
}

.cd-form-image-card .img-thumbnail-cont-full {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(4, 20, 34, 0.7);
}

.cd-form-image-card .img-thumbnail-cont-full img {
    max-width: 100%;
    max-height: 100%;
}

.cd-form-image-card .cd-form-image-delete:hover,
.cd-form-image-card .cd-form-image-delete:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 126, 145, 0.48);
    background: linear-gradient(145deg, rgba(187, 52, 80, 0.9), rgba(124, 37, 66, 0.88));
}



.cd-profile-accordion-item {
    border-radius: 16px;
}

.cd-profile-accordion-toggle {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding-right: 16px !important;
    padding-left: 16px !important;
    text-align: left;
}

.cd-profile-accordion-toggle::after {
    flex: 0 0 auto;
    margin-left: 4px !important;
}

.cd-profile-accordion-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(111, 171, 202, 0.16);
    border-radius: 12px;
    color: #cfe9f5;
    background: rgba(12, 39, 58, 0.58);
}

.cd-profile-accordion-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cd-profile-accordion-copy small,
.cd-profile-accordion-copy > span {
    overflow: hidden;
    color: #8fb0c1;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-profile-accordion-copy strong {
    overflow: hidden;
    color: #eef9fd;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-profile-status-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid rgba(111, 171, 202, 0.15);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
}

.cd-profile-status-badge.is-enabled {
    border-color: rgba(74, 196, 143, 0.25);
    color: #9fe2bd;
    background: rgba(35, 112, 79, 0.2);
}

.cd-profile-status-badge.is-disabled {
    border-color: rgba(255, 112, 130, 0.24);
    color: #ffb2bd;
    background: rgba(127, 43, 61, 0.2);
}

.cd-profile-accordion-body {
    margin-top: 8px;
    padding: 14px;
    border: 1px solid rgba(111, 171, 202, 0.13);
    border-radius: 15px;
    background: rgba(6, 24, 39, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.cd-profile-tabs-card {
    min-width: 0;
}

.cd-profile-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.cd-profile-tabs .nav-item {
    flex: 0 0 auto;
}

.cd-profile-tab-content {
    padding-top: 14px;
}

.cd-profile-tab-pane[hidden] {
    display: none !important;
}

.cd-profile-status-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-profile-status-control select {
    min-width: 0;
    flex: 1 1 auto;
}

.cd-profile-row-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(111, 171, 202, 0.12);
}

html[data-theme="light"] .cd-profile-accordion-icon {
    border-color: rgba(69, 127, 166, 0.14);
    color: #345d75;
    background: rgba(234, 245, 250, 0.9);
}

html[data-theme="light"] .cd-profile-accordion-copy small,
html[data-theme="light"] .cd-profile-accordion-copy > span {
    color: #6f8da0;
}

html[data-theme="light"] .cd-profile-accordion-copy strong {
    color: #17384e;
}

html[data-theme="light"] .cd-profile-status-badge.is-enabled {
    border-color: rgba(45, 143, 97, 0.2);
    color: #27784f;
    background: rgba(78, 190, 130, 0.11);
}

html[data-theme="light"] .cd-profile-status-badge.is-disabled {
    border-color: rgba(190, 67, 91, 0.18);
    color: #a33b50;
    background: rgba(219, 86, 111, 0.1);
}

html[data-theme="light"] .cd-profile-accordion-body {
    border-color: rgba(69, 127, 166, 0.12);
    background: rgba(248, 252, 254, 0.92);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-profile-row-footer {
    border-top-color: rgba(69, 127, 166, 0.12);
}

[data-cd-profile-save-actions][hidden] {
    display: none !important;
}

@media (max-width: 575.98px) {
    .cd-profile-accordion-toggle {
        gap: 9px;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .cd-profile-accordion-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .cd-profile-status-badge {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 10px;
    }

    .cd-profile-accordion-body {
        padding: 10px;
    }

    .cd-profile-status-control {
        align-items: stretch;
    }
}

.cd-permission-section {
    margin-top: 8px;
}

.cd-permission-select-all {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 9px 13px;
    border: 1px solid rgba(111, 171, 202, 0.15);
    border-radius: 13px;
    color: #dff4fb;
    background: rgba(12, 39, 58, 0.58);
    font-size: 13px;
    font-weight: 760;
}

.cd-permission-grid {
    margin-right: -6px;
    margin-left: -6px;
    margin-bottom: 14px;
}

.cd-permission-grid > [class*="col-"] {
    display: flex;
    padding-right: 6px;
    padding-left: 6px;
    margin-bottom: 8px;
}

.cd-permission-card {
    width: 100%;
    height: auto !important;
    min-height: 52px;
    max-height: none !important;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin-bottom: 0 !important;
    padding: 10px 12px;
    border: 1px solid rgba(111, 171, 202, 0.14) !important;
    border-radius: 13px !important;
    color: #c9e0eb !important;
    background: rgba(7, 28, 45, 0.56) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    font-size: 12px !important;
    font-weight: 650;
    cursor: pointer;
}

.cd-permission-card:hover {
    border-color: rgba(93, 190, 224, 0.28) !important;
    background: rgba(15, 54, 80, 0.66) !important;
}

.cd-permission-card .form-check-input,
.cd-permission-select-all .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin: 0;
}

.cd-permission-card .label-text {
    display: block;
    min-width: 0;
    margin: 0;
}

.cd-permission-card .label-text:first-letter {
    text-transform: capitalize;
}

.cd-permission-card-group {
    height: auto !important;
    min-height: 52px;
    max-height: none !important;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-self: stretch;
    padding: 0;
    overflow: hidden;
    cursor: default;
}

.cd-permission-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    box-sizing: border-box;
}

.cd-permission-card-main {
    width: auto;
    min-width: 0;
    min-height: 40px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 7px 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.cd-permission-resource-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(111, 171, 202, 0.14);
    border-radius: 9px;
    color: #b9d7e5;
    background: rgba(7, 28, 45, 0.46);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.cd-permission-resource-toggle:hover,
.cd-permission-resource-toggle:focus {
    border-color: rgba(93, 190, 224, 0.32);
    color: #e3f6fc;
    background: rgba(15, 54, 80, 0.7);
    outline: none;
}

.cd-permission-resource-toggle i {
    transition: transform .18s ease;
}

.cd-permission-resource-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.cd-permission-resource-list {
    width: auto;
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    flex: 0 0 auto;
    display: grid;
    align-content: start;
    gap: 5px;
    margin: 0 8px 8px;
    padding: 8px 10px 10px 26px;
    border: 1px solid rgba(111, 171, 202, 0.1);
    border-radius: 10px;
    background: rgba(4, 23, 38, 0.28);
    transition: opacity .18s ease;
}

.cd-permission-resource-list[hidden] {
    display: none !important;
}

.cd-permission-resource-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    padding: 3px 0;
    color: inherit;
    font-size: 11px;
    line-height: 1.35;
    cursor: pointer;
}

.cd-permission-resource-item .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin: 1px 0 0;
}

.cd-permission-card-group.is-module-disabled .cd-permission-resource-list {
    opacity: .42;
}

.cd-log-output {
    min-height: min(58vh, 680px);
    padding: 18px;
    resize: vertical;
    border: 1px solid rgba(103, 190, 226, 0.18) !important;
    border-radius: 16px !important;
    color: #c9f0df !important;
    background: linear-gradient(145deg, rgba(3, 17, 28, 0.96), rgba(4, 26, 38, 0.94)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), inset 0 0 34px rgba(45, 189, 187, 0.035);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre;
}

.cd-cron-command {
    min-height: 44px;
    border-color: rgba(110, 181, 214, 0.2);
    color: #dff4fb;
    background: rgba(4, 20, 34, 0.68);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.cd-cron-instruction-card .input-group-text {
    border-color: rgba(110, 181, 214, 0.2);
    color: #8fcde2;
    background: rgba(11, 38, 58, 0.82);
    font-size: 12px;
    font-weight: 750;
}

.cd-permission-section > legend {
    width: auto;
    margin: 18px 0 12px;
    padding: 0;
    border: 0;
    color: #dff4fb;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 780;
}

.cd-permission-section > hr {
    border-top-color: rgba(111, 171, 202, 0.12);
}

.cd-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    color: var(--cd-muted);
    font-size: 11px;
    font-weight: 650;
}

.cd-breadcrumbs a {
    color: #9fcfe4;
    text-decoration: none;
}

.cd-breadcrumbs a:hover,
.cd-breadcrumbs a:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.cd-breadcrumbs i {
    color: rgba(132, 191, 220, 0.48);
    font-size: 8px;
}

html[data-theme="light"] .cd-form-card-header {
    border-bottom-color: rgba(69, 127, 166, 0.14);
    color: #224963;
    background: linear-gradient(105deg, rgba(228, 241, 249, 0.92), rgba(238, 248, 252, 0.96));
}

html[data-theme="light"] .cd-form-card-header i {
    color: #247db1;
}

html[data-theme="light"] .cd-form-card-body {
    background:
        radial-gradient(circle at 9% 16%, rgba(38, 115, 163, 0.09) 0 1px, transparent 1.7px),
        radial-gradient(circle at 18% 31%, rgba(35, 157, 182, 0.08) 0 1px, transparent 1.8px),
        radial-gradient(circle at 79% 22%, rgba(108, 78, 188, 0.08) 0 1px, transparent 1.8px),
        radial-gradient(ellipse at 84% 44%, rgba(106, 82, 190, 0.045), transparent 31%),
        linear-gradient(118deg, transparent 49%, rgba(56, 138, 177, 0.025) 56%, rgba(105, 82, 189, 0.03) 62%, transparent 70%);
}

html[data-theme="light"] .cd-form-page fieldset {
    border-color: rgba(69, 127, 166, 0.13);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(237, 247, 252, 0.66));
}

html[data-theme="light"] .cd-form-page fieldset > legend {
    color: #21465f;
}

html[data-theme="light"] .cd-form-page .form-group.row {
    border-bottom-color: rgba(69, 127, 166, 0.08);
}

html[data-theme="light"] .cd-form-page .form-group.row + .form-group.row {
    border-top-color: rgba(69, 127, 166, 0.1);
}

html[data-theme="light"] .cd-form-page .col-form-label {
    color: #557489;
}

html[data-theme="light"] .cd-form-page .form-control,
html[data-theme="light"] .cd-form-page .input-group-text {
    border-color: rgba(69, 127, 166, 0.16);
    color: #17384e;
    background-color: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .cd-form-page .form-control:focus {
    border-color: rgba(41, 139, 192, 0.42);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.07);
}

html[data-theme="light"] .cd-form-page .btn-secondary,
html[data-theme="light"] .cd-form-page .btn-light {
    border-color: rgba(69, 127, 166, 0.16);
    color: #315b75;
    background: rgba(242, 249, 252, 0.95);
}

html[data-theme="light"] .cd-form-page .btn-group.btn-group-toggle {
    border-color: rgba(66, 113, 145, 0.15);
    background: rgba(231, 242, 248, 0.78);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-form-page .btn-group.btn-group-toggle > .btn {
    color: #5d7889;
}

html[data-theme="light"] .cd-form-page .btn-group.btn-group-toggle > .btn:hover,
html[data-theme="light"] .cd-form-page .btn-group.btn-group-toggle > .btn:focus-visible {
    color: #244d68;
    background: rgba(41, 132, 184, 0.07);
}

html[data-theme="light"] .cd-form-page .btn-group.btn-group-toggle > .btn.active,
html[data-theme="light"] .cd-form-page .btn-group.btn-group-toggle > .btn:not(:disabled):not(.disabled):active {
    border-color: rgba(58, 125, 171, 0.2) !important;
    color: #244d68 !important;
    background: linear-gradient(145deg, #ffffff, #e4f2f8) !important;
    box-shadow: 0 6px 15px rgba(49, 86, 111, 0.1), inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] .cd-form-page .table-responsive {
    border-color: rgba(69, 127, 166, 0.13);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-form-page .table {
    color: #294f66;
}

html[data-theme="light"] .cd-form-page .table th,
html[data-theme="light"] .cd-form-page .table td {
    border-bottom-color: rgba(69, 127, 166, 0.11);
}

html[data-theme="light"] .cd-form-page .table thead th {
    color: #315b75;
    border-color: rgba(69, 127, 166, 0.14);
    background:
        radial-gradient(circle at 86% 18%, rgba(118, 87, 202, 0.08), transparent 8rem),
        linear-gradient(110deg, #edf7fb, #e5f1f6);
}

html[data-theme="light"] .cd-form-page .table-hover tbody tr:hover {
    color: #17384e;
    background: rgba(48, 137, 181, 0.06);
}

/* Form editor and project-type modal surfaces */
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) {
    overflow: hidden;
    border: 1px solid rgba(110, 181, 214, 0.2) !important;
    border-radius: 14px;
    background: rgba(5, 20, 32, 0.92) !important;
    box-shadow: 0 10px 24px rgba(0, 8, 20, 0.14) !important;
}

.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_top,
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_bottom {
    border-color: rgba(110, 181, 214, 0.16) !important;
    background: linear-gradient(110deg, rgba(15, 44, 64, 0.96), rgba(8, 30, 47, 0.96)) !important;
}

.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolgroup,
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button {
    border-color: rgba(110, 181, 214, 0.16) !important;
    background: rgba(19, 50, 70, 0.82) !important;
    box-shadow: none !important;
}

.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button:hover,
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button:focus,
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_on,
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button:hover,
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button:focus {
    background: rgba(94, 82, 188, 0.34) !important;
}

.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_text,
.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_label {
    color: #d4e7f0 !important;
}

.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_separator {
    background-color: rgba(111, 171, 202, 0.2) !important;
}

.cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_contents {
    border-color: rgba(110, 181, 214, 0.14) !important;
    background: #f4f7f9 !important;
}

.cd-modal-project-type-manager .modal-body > .card {
    overflow: visible;
    border: 1px solid rgba(111, 171, 202, 0.16);
    border-radius: 16px;
    color: #d7e7f0;
    background: linear-gradient(145deg, rgba(10, 34, 52, 0.86), rgba(5, 22, 37, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-modal-project-type-manager .modal-body > .card > .card-body {
    padding: 18px;
}

.cd-modal-project-type-manager .form-control-color {
    width: 74px;
    min-width: 74px;
    height: 44px;
    min-height: 44px;
    padding: 3px !important;
    overflow: hidden;
    border-radius: 12px;
}

.cd-modal-project-type-manager .pickr,
.cd-modal-project-type-manager .pcr-button {
    width: 100% !important;
    height: 100% !important;
    float: none;
}

.cd-modal-project-type-manager .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(111, 165, 198, 0.14);
    border-radius: 14px;
    background: rgba(5, 22, 36, 0.34);
}

.cd-modal-project-type-manager .table {
    margin: 0;
}

html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) {
    border-color: rgba(69, 127, 166, 0.16) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(45, 76, 100, 0.08) !important;
}

html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_top,
html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_bottom {
    border-color: rgba(69, 127, 166, 0.13) !important;
    background: linear-gradient(110deg, #f5fafc, #eaf4f8) !important;
}

html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolgroup,
html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button {
    border-color: rgba(69, 127, 166, 0.13) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button:hover,
html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button:focus,
html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_on,
html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button:hover,
html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button:focus {
    background: #e8f1fb !important;
}

html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_text,
html[data-theme="light"] .cd-form-page .cke_chrome:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_label {
    color: #315b75 !important;
}

html[data-theme="light"] .cd-modal-project-type-manager .modal-body > .card {
    border-color: rgba(69, 127, 166, 0.14);
    color: #294f66;
    background: linear-gradient(145deg, #ffffff, #eef7fa);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-modal-project-type-manager .table-responsive {
    border-color: rgba(69, 127, 166, 0.13);
    background: rgba(255, 255, 255, 0.84);
}


html[data-theme="light"] .cd-permission-select-all {
    border-color: rgba(69, 127, 166, 0.14);
    color: #21465f;
    background: rgba(240, 248, 252, 0.96);
}

html[data-theme="light"] .cd-permission-card {
    border-color: rgba(69, 127, 166, 0.13) !important;
    color: #355970 !important;
    background: rgba(248, 252, 254, 0.96) !important;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-permission-card:hover {
    border-color: rgba(44, 132, 200, 0.24) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-permission-resource-toggle {
    border-color: rgba(69, 127, 166, 0.13);
    color: #55758a;
    background: rgba(242, 248, 251, 0.96);
}

html[data-theme="light"] .cd-permission-resource-toggle:hover,
html[data-theme="light"] .cd-permission-resource-toggle:focus {
    border-color: rgba(44, 132, 200, 0.24);
    color: #21465f;
    background: #ffffff;
}

html[data-theme="light"] .cd-permission-resource-list {
    border-color: rgba(69, 127, 166, 0.1);
    background: rgba(240, 248, 252, 0.72);
}

html[data-theme="light"] .cd-log-output {
    border-color: rgba(69, 127, 166, 0.16) !important;
    color: #244c5d !important;
    background: linear-gradient(145deg, #fbfdfe, #eef7fa) !important;
    box-shadow: inset 0 1px 0 #ffffff, inset 0 0 28px rgba(45, 189, 187, 0.025);
}

html[data-theme="light"] .cd-cron-command {
    border-color: rgba(69, 127, 166, 0.16);
    color: #244c5d;
    background: #ffffff;
}

html[data-theme="light"] .cd-cron-instruction-card .input-group-text {
    border-color: rgba(69, 127, 166, 0.16);
    color: #456e86;
    background: #edf6fa;
}

html[data-theme="light"] .cd-permission-section > legend {
    color: #21465f;
}

html[data-theme="light"] .cd-permission-section > hr {
    border-top-color: rgba(69, 127, 166, 0.1);
}

html[data-theme="light"] .cd-breadcrumbs a {
    color: #426d86;
}

html[data-theme="light"] .cd-breadcrumbs a:hover,
html[data-theme="light"] .cd-breadcrumbs a:focus-visible {
    color: #0d5f8d;
}

@media (max-width: 767px) {
    .cd-form-card-body {
        padding: 16px;
    }

    .cd-form-page fieldset {
        padding: 15px 14px 4px;
    }

    .cd-form-page .form-group.row {
        align-items: stretch;
        gap: 7px;
    }

    .cd-form-page .col-form-label {
        text-align: left;
    }
    .cd-listing-page-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .cd-listing-page-actions .cd-button {
        width: 100%;
        min-width: 0;
        padding: 0 10px;
    }

    .cd-listing-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .cd-listing-search {
        width: 100%;
        flex-basis: auto;
    }

    .cd-filter-fixed {
        top: var(--cd-filter-fixed-top, var(--cd-topbar-height, 66px));
        right: 0;
        bottom: 0;
        left: auto;
        width: min(390px, 100vw);
        height: auto;
        max-height: calc(100dvh - var(--cd-filter-fixed-top, var(--cd-topbar-height, 66px)));
    }

    .cd-listing-pagination > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cd-listing-pagination > .row > div {
        width: 100%;
        text-align: center !important;
    }

    .cd-listing-pagination .pagination {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .cd-dashboard-overview-visuals {
        height: 230px;
    }

    .cd-dashboard-overview .cd-dashboard-map-visual {
        right: -12%;
        width: 104%;
        opacity: 0.38;
    }

    .cd-dashboard-map-visual .cd-dashboard-node {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 5px rgba(253, 184, 22, 0.08), 0 0 18px rgba(253, 184, 22, 0.72);
    }
}
body.cd-document-fullscreen-active .cd-topbar {
    display: none !important;
}

.cd-document-view-shell.is-fullscreen {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 66px 18px 18px;
}

.cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner {
    min-height: 58px;
    height: 58px;
    padding: 8px 18px;
}

.cd-document-view-shell.is-fullscreen .cd-page-banner-actions.cd-document-view-actions {
    height: 42px;
    min-height: 42px;
}

.cd-document-view-shell.is-fullscreen .cd-document-view-card {
    width: min(100%, 1280px);
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
}

.cd-document-view-shell.is-fullscreen .cd-pdf-viewer {
    width: 100%;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    overflow: hidden;
}

.cd-document-view-shell.is-fullscreen .cd-pdf-stage {
    min-height: 0 !important;
    height: auto !important;
    flex: 1 1 auto;
}

.cd-document-view-shell.is-fullscreen .cd-pdf-statusbar {
    position: relative;
    z-index: 5;
    bottom: auto;
    flex-shrink: 0;
}

.cd-dashboard-task-chart-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.cd-dashboard-task-chart-grid.is-single .cd-dashboard-task-comparison-chart {
    width: 100%;
}

.cd-dashboard-overview-metrics .cd-dashboard-overview-metric,
.cd-dashboard-audit-stat-card,
.cd-dashboard-grid-layout-task .cd-dashboard-task-total,
.cd-dashboard-grid-layout-task .cd-dashboard-task-stat {
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, background 220ms ease, box-shadow 260ms ease, color 220ms ease;
}

.cd-dashboard-overview-metrics .cd-dashboard-overview-metric:hover,
.cd-dashboard-audit-stat-card:hover,
.cd-dashboard-grid-layout-task .cd-dashboard-task-total:hover,
.cd-dashboard-grid-layout-task .cd-dashboard-task-stat:hover,
html[data-theme="light"] .cd-dashboard-overview-metrics .cd-dashboard-overview-metric:hover,
html[data-theme="light"] .cd-dashboard-audit-stat-card:hover,
html[data-theme="light"] .cd-dashboard-grid-layout-task .cd-dashboard-task-total:hover,
html[data-theme="light"] .cd-dashboard-grid-layout-task .cd-dashboard-task-stat:hover {
    color: #ffffff;
    border-color: rgba(171, 146, 239, 0.38);
    background:
        radial-gradient(circle at 100% 0%, rgba(192, 149, 247, 0.34), transparent 12rem),
        radial-gradient(circle at 0 100%, rgba(70, 197, 221, 0.2), transparent 11rem),
        linear-gradient(145deg, #684fb6, #3788bd 64%, #2b9eab);
    box-shadow: 0 24px 52px rgba(25, 20, 75, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-5px) scale(1.008);
}

.cd-dashboard-overview-metrics .cd-dashboard-overview-metric:hover *,
.cd-dashboard-audit-stat-card:hover *,
.cd-dashboard-grid-layout-task .cd-dashboard-task-total:hover *,
.cd-dashboard-grid-layout-task .cd-dashboard-task-stat:hover * {
    color: #ffffff !important;
}

@media (min-width: 1440px) {
    .cd-dashboard-overview {
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: stretch;
        gap: 16px;
    }

    .cd-dashboard-overview-heading {
        width: 100%;
        max-width: none;
        grid-column: auto;
        grid-row: auto;
    }

    .cd-dashboard-overview-visuals {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(280px, 24vw, 390px);
        grid-row: auto;
    }

    .cd-dashboard-overview-metrics {
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-self: stretch;
        margin: 0;
    }

    .cd-dashboard-overview-metric {
        min-width: 0;
        align-self: stretch;
    }

    .cd-dashboard-overview-metric-task {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 991px) {
    .cd-document-view-shell.is-fullscreen {
        padding: 62px 10px 10px;
    }

    .cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner {
        min-height: 54px;
        height: 54px;
        padding: 6px 10px;
    }

    .cd-document-view-shell.is-fullscreen .cd-page-banner-actions.cd-document-view-actions {
        width: auto;
        height: 42px;
        min-height: 42px;
        justify-content: flex-end;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report.has-visible-actions {
        --cd-page-banner-actions-space: 132px;
        min-height: 118px;
        height: 118px;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report.has-visible-actions .cd-page-banner-content {
        padding-right: 154px;
        padding-bottom: 0;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report.has-visible-actions .cd-page-banner-actions {
        top: 50%;
        right: 20px;
        bottom: auto;
        left: auto;
        width: auto;
        height: 42px;
        justify-content: flex-end;
        transform: translateY(-50%);
    }
}

@media (max-width: 620px) {
    .cd-dashboard-module-header {
        align-items: stretch;
    }

    .cd-dashboard-module-action {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 44px;
        justify-content: center;
        padding: 0 16px;
    }

    .cd-dashboard-module-action span {
        display: inline;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report.has-visible-actions {
        --cd-page-banner-actions-space: 0px;
        min-height: 164px;
        height: 164px;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report.has-visible-actions .cd-page-banner-content {
        padding-right: 22px;
        padding-bottom: 70px;
    }

    .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.cd-page-heading-seo-report.has-visible-actions .cd-page-banner-actions {
        top: auto;
        right: 20px;
        bottom: 16px;
        left: 20px;
        width: auto;
        transform: none;
    }
}
@media (max-width: 1050px) {
    .cd-dashboard-overview-metric-task,
    .cd-dashboard-report-list {
        grid-column: 1 / -1;
    }
}

.cd-offer-status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.16);
}

.cd-offer-status-copy,
.cd-offer-decision-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-offer-status-label {
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cd-offer-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.cd-offer-status-badge.is-pending {
    background: #d97706;
}

.cd-offer-status-badge.is-approved {
    background: #7c3aed;
}

.cd-offer-status-badge.is-rejected {
    background: #dc2626;
}

.cd-offer-status-badge.is-sent {
    background: #16a34a;
}

/* Shared button modifiers used by offer decisions and modal actions. */
.cd-button.is-approve,
.cd-button.is-reject,
.cd-button.is-danger {
    color: #ffffff !important;
    border-color: transparent;
}

.cd-button.is-approve {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.22);
}

.cd-button.is-reject,
.cd-button.is-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.2);
}

.cd-button.is-approve:hover,
.cd-button.is-approve:focus-visible,
.cd-button.is-reject:hover,
.cd-button.is-reject:focus-visible {
    color: #ffffff !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.cd-button.is-danger:not(:disabled):hover,
.cd-button.is-danger:not(:disabled):focus-visible {
    color: #ffffff !important;
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.cd-button.is-danger:hover,
.cd-button.is-danger:focus-visible,
.cd-button.is-reject:hover,
.cd-button.is-reject:focus-visible {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    box-shadow: 0 15px 32px rgba(220, 38, 38, 0.3);
}

.cd-offer-decision-form .cd-button {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 14px;
}

html[data-theme="light"] .cd-offer-status-panel {
    border-color: rgba(100, 116, 139, 0.2);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .cd-offer-status-label {
    color: #64748b;
}

@media (max-width: 767px) {
    .cd-offer-status-panel,
    .cd-offer-decision-form {
        align-items: stretch;
        flex-direction: column;
    }

    .cd-offer-status-copy {
        justify-content: space-between;
    }

    .cd-offer-decision-form .cd-button {
        width: 100%;
    }
}

.cd-document-name-content {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}

.cd-document-name-content > strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-document-action-required-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.cd-nav-action-required-icon {
    position: absolute !important;
    z-index: 3 !important;
    top: auto;
    right: 9px;
    width: auto !important;
    color: #ff9aaa !important;
    font-size: 18px !important;
    filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.38));
    transform: none !important;
}

.cd-nav-item:hover > .cd-nav-action-required-icon,
.cd-nav-item:focus-visible > .cd-nav-action-required-icon {
    color: #ef4444 !important;
    filter: drop-shadow(0 0 7px rgba(239, 68, 68, 0.45));
    transform: scale(1.08) !important;
}

html[data-theme="light"] .cd-document-action-required-badge {
    border-color: rgba(2, 132, 199, 0.24);
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

html[data-theme="light"] .cd-nav-action-required-icon {
    color: #b91c3c !important;
    filter: drop-shadow(0 0 5px rgba(185, 28, 60, 0.2));
}

html.cd-sidebar-collapsed .cd-nav-action-required-icon {
    top: 6px;
    right: 6px;
    width: auto !important;
    font-size: 12px !important;
}


.cd-contract-sign-button {
    background: linear-gradient(135deg, #27aae1, #2dbcbb);
    color: #fff;
}


/* Project report workspace inside the CRM project form */
.cd-project-form-page #task-report > .cd-project-report-toolbar,
.cd-project-form-page #task-report > .d-flex:first-child {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px !important;
    padding: 12px;
    border: 1px solid rgba(111, 171, 202, 0.14);
    border-radius: 17px;
    background: linear-gradient(110deg, rgba(11, 37, 57, 0.88), rgba(7, 27, 44, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cd-project-form-page #task-report > .cd-project-report-toolbar > .d-flex,
.cd-project-form-page #task-report > .d-flex:first-child > .d-flex {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px !important;
}

.cd-project-form-page #task-report .cd-project-report-action-group,
.cd-project-form-page #task-report .btn-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cd-project-form-page #task-report .cd-project-report-action-group > .btn,
.cd-project-form-page #task-report .btn-group > .cd-icon-button {
    margin: 0 !important;
    border-radius: 12px !important;
}

.cd-project-form-page #task-report .cd-project-report-total {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(111, 171, 202, 0.14);
    border-radius: 12px;
    color: #cfe2ec !important;
    background: rgba(9, 31, 48, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    font-weight: 680;
}

.cd-project-form-page #task-report #search-results-date-container {
    min-width: 220px;
    border-radius: 12px;
    background: transparent !important;
}

.cd-project-form-page #task-report #task-report-results > .card,
.cd-project-form-page #task-report #task-report-results .card {
    border: 1px solid rgba(111, 171, 202, 0.14);
    border-radius: 18px;
    color: var(--cd-muted);
    background: linear-gradient(145deg, rgba(8, 29, 47, 0.72), rgba(5, 22, 37, 0.54));
    box-shadow: 0 16px 38px rgba(0, 7, 22, 0.13), inset 0 1px 0 rgba(255,255,255,.035);
}

.cd-project-form-page #task-report .table-responsive {
    border-radius: 16px;
}

.cd-project-form-page #task-report .table {
    color: var(--cd-muted);
}

.cd-project-form-page #task-report .table thead th {
    color: #dff3fa;
    background: linear-gradient(105deg, rgba(60, 66, 129, 0.82), rgba(34, 99, 134, 0.8) 58%, rgba(27, 113, 116, 0.74));
}

html[data-theme="light"] .cd-project-form-page #task-report > .cd-project-report-toolbar,
html[data-theme="light"] .cd-project-form-page #task-report > .d-flex:first-child {
    border-color: rgba(69, 127, 166, 0.13);
    background: linear-gradient(110deg, rgba(245, 250, 253, 0.98), rgba(232, 244, 249, 0.94));
    box-shadow: 0 12px 28px rgba(49, 86, 111, 0.08), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-project-form-page #task-report .cd-project-report-total {
    border-color: rgba(69, 127, 166, 0.13);
    color: #365d73 !important;
    background: rgba(242, 249, 252, 0.96) !important;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-project-form-page #task-report #task-report-results > .card,
html[data-theme="light"] .cd-project-form-page #task-report #task-report-results .card {
    border-color: rgba(69, 127, 166, 0.13);
    color: #47677a;
    background: linear-gradient(145deg, #ffffff, #edf7fb);
    box-shadow: 0 14px 32px rgba(49, 86, 111, 0.08), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-project-form-page #task-report .table thead th {
    color: #244b62;
    background: linear-gradient(105deg, rgba(218, 229, 247, 0.96), rgba(213, 238, 247, 0.96) 58%, rgba(215, 243, 239, 0.92));
}

@media (max-width: 991px) {
    .cd-project-form-page #task-report > .cd-project-report-toolbar,
    .cd-project-form-page #task-report > .d-flex:first-child {
        align-items: stretch;
        flex-direction: column;
    }

    .cd-project-form-page #task-report > .cd-project-report-toolbar > .d-flex,
    .cd-project-form-page #task-report > .d-flex:first-child > .d-flex {
        width: 100%;
    }
}

/* Bootstrap-compatible universal Regantis modal */

.cd-document-admin-tabs-card {
    margin-bottom: 2px;
    padding: 8px;
    overflow: visible;
}

.cd-document-admin-tabs-card .nav.nav-tabs {
    margin-bottom: 0;
}

.cd-document-settings-panel,
.cd-project-settings-panel {
    margin-top: 14px;
}

.cd-project-report-shell {
    padding-top: 14px;
}

.cd-project-report-loading {
    display: grid;
    place-items: center;
    padding: 24px;
}

.cd-modal-inner-card {
    overflow: hidden;
    border: 1px solid rgba(111, 171, 202, 0.14);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(8, 29, 47, 0.68), rgba(5, 22, 37, 0.52));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.cd-modal-table-wrap {
    overflow: auto;
}

.cd-modal .btn-group.btn-group-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(109, 184, 213, 0.16);
    border-radius: 14px;
    background: rgba(5, 20, 32, 0.44);
}

.cd-modal .btn-group.btn-group-toggle > .btn {
    min-height: 34px;
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: var(--cd-muted);
    background: transparent;
}

.cd-modal .btn-group.btn-group-toggle > .btn.active,
.cd-modal .btn-group.btn-group-toggle > .btn:active {
    border-color: rgba(84, 194, 221, 0.26) !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(86, 80, 188, 0.62), rgba(34, 139, 175, 0.54)) !important;
}

.cd-modal .btn-group.btn-group-toggle input[type="radio"],
.cd-modal .btn-group.btn-group-toggle input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
}

html[data-theme="light"] .cd-modal-inner-card,
html[data-theme="light"] .cd-modal-table-wrap {
    border-color: rgba(69, 127, 166, 0.13);
    background: linear-gradient(145deg, #ffffff, #edf7fb);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-modal .btn-group.btn-group-toggle {
    border-color: rgba(66, 113, 145, 0.15);
    background: rgba(231, 242, 248, 0.78);
}

html[data-theme="light"] .cd-modal .btn-group.btn-group-toggle > .btn.active,
html[data-theme="light"] .cd-modal .btn-group.btn-group-toggle > .btn:active {
    color: #fff !important;
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa) !important;
}

.cd-modal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 760px;
    margin: 24px auto;
}

.cd-modal .modal-dialog.modal-lg {
    max-width: 920px;
}

.cd-modal .modal-dialog.modal-xl {
    max-width: 1180px;
}

.cd-modal.cd-modal-confirm-delete .modal-dialog {
    max-width: 540px;
}

.cd-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(125, 170, 198, 0.2);
    border-radius: 20px;
    color: #eaf3f8;
    background:
        radial-gradient(circle at 92% 0%, rgba(126, 88, 211, 0.14), transparent 15rem),
        radial-gradient(circle at 0% 110%, rgba(45, 188, 187, 0.08), transparent 16rem),
        linear-gradient(145deg, rgba(10, 31, 49, 0.995), rgba(5, 20, 35, 0.995));
    box-shadow: 0 36px 100px rgba(0, 4, 16, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cd-modal .modal-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(122, 163, 190, 0.15);
    background:
        radial-gradient(circle at 16% 30%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.6px),
        radial-gradient(circle at 28% 62%, rgba(115, 197, 236, 0.42) 0 1px, transparent 1.6px),
        linear-gradient(90deg, rgba(88, 68, 173, 0.11), rgba(21, 84, 122, 0.07), rgba(8, 27, 44, 0.96));
}

.cd-modal.cd-modal-confirm-delete .modal-header {
    border-bottom-color: rgba(255, 109, 126, 0.16);
    box-shadow: inset 3px 0 0 rgba(238, 84, 104, 0.72);
}

.cd-modal .modal-title {
    margin: 0;
    color: inherit;
    font-family: var(--ds-font-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cd-modal .modal-header .close {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(124, 164, 190, 0.2);
    border-radius: 11px;
    color: #bed2df;
    background: rgba(23, 51, 70, 0.74);
    box-shadow: none;
    opacity: 1;
    text-shadow: none;
    line-height: 1;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cd-modal .modal-header .close:hover,
.cd-modal .modal-header .close:focus-visible {
    border-color: rgba(45, 188, 187, 0.48);
    color: #ffffff;
    background: rgba(45, 188, 187, 0.18);
    opacity: 1;
    transform: translateY(-1px);
}

.cd-modal .modal-body {
    padding: 22px;
    color: #c5d7e2;
    background: transparent;
}

.cd-modal .modal-body > p:last-child {
    margin-bottom: 0;
}

.cd-modal.cd-modal-confirm-delete .modal-body {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.cd-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px 19px;
    border-top: 1px solid rgba(122, 163, 190, 0.15);
    background: rgba(8, 27, 44, 0.72);
}

.cd-modal .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(120, 172, 205, 0.2);
    border-radius: 999px;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 740;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cd-modal .btn:hover,
.cd-modal .btn:focus-visible {
    box-shadow: none;
    text-decoration: none;
    transform: translateY(-1px);
}

.cd-modal .btn-sm {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
}

.cd-modal .btn-light,
.cd-modal .btn-secondary {
    border-color: rgba(120, 172, 205, 0.18);
    color: #c8dce8;
    background: rgba(29, 56, 74, 0.72);
}

.cd-modal .btn-light:hover,
.cd-modal .btn-light:focus-visible,
.cd-modal .btn-secondary:hover,
.cd-modal .btn-secondary:focus-visible {
    border-color: rgba(99, 190, 222, 0.34);
    color: #ffffff;
    background: rgba(49, 102, 130, 0.5);
}

.cd-modal .btn-primary {
    border-color: rgba(80, 199, 221, 0.34);
    color: #ffffff;
    background: linear-gradient(115deg, #7657ca, #3287c6 56%, #2dbcbb);
}

.cd-modal .btn-danger,
.cd-modal #confirmDeleteButton {
    border-color: rgba(255, 112, 130, 0.32);
    color: #ffffff;
    background: linear-gradient(115deg, #b73f5b, #dc4e63 58%, #c33c51);
}

.cd-modal .btn-danger:hover,
.cd-modal .btn-danger:focus-visible,
.cd-modal #confirmDeleteButton:hover,
.cd-modal #confirmDeleteButton:focus-visible {
    border-color: rgba(255, 144, 157, 0.52);
    color: #ffffff;
    background: linear-gradient(115deg, #c74761, #e65c70 58%, #cf465b);
}

.cd-modal .form-control,
.cd-modal .input-group-text {
    border-color: rgba(109, 184, 213, 0.2);
    color: #eaf6fb;
    background: rgba(5, 20, 32, 0.74) !important;
    box-shadow: none;
}

.cd-modal .form-control:focus {
    border-color: rgba(101, 213, 239, 0.46);
    background: rgba(8, 27, 41, 0.92) !important;
    box-shadow: 0 0 0 3px rgba(72, 187, 216, 0.08);
}

.cd-modal .input-group-text {
    color: #84c6df;
}


.cd-modal .tab-content {
    border-color: rgba(122, 163, 190, 0.15) !important;
    background: rgba(6, 23, 38, 0.46);
}

.cd-modal .table {
    color: #c8dbe6;
}

.cd-modal .table th,
.cd-modal .table td {
    border-color: rgba(122, 163, 190, 0.14);
}

.cd-modal .table thead th {
    color: #91b9cf;
    background: rgba(12, 38, 57, 0.68);
}

.cd-modal .bg-light {
    color: #c8dbe6 !important;
    background: rgba(14, 39, 57, 0.78) !important;
}

html[data-theme="light"] .cd-modal .modal-content {
    border-color: rgba(61, 105, 134, 0.16);
    color: #17384e;
    background:
        radial-gradient(circle at 92% 0%, rgba(126, 88, 211, 0.08), transparent 15rem),
        radial-gradient(circle at 0% 110%, rgba(45, 188, 187, 0.05), transparent 16rem),
        #ffffff;
    box-shadow: 0 34px 90px rgba(43, 74, 97, 0.28), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-modal .modal-header,
html[data-theme="light"] .cd-modal .modal-footer {
    border-color: rgba(61, 105, 134, 0.12);
    background: #f8fcfe;
}

html[data-theme="light"] .cd-modal .modal-body {
    color: #526f82;
}

html[data-theme="light"] .cd-modal .modal-header .close {
    border-color: rgba(61, 105, 134, 0.18);
    color: #45677d;
    background: #eef5f8;
}

html[data-theme="light"] .cd-modal .modal-header .close:hover,
html[data-theme="light"] .cd-modal .modal-header .close:focus-visible {
    border-color: rgba(39, 170, 225, 0.34);
    color: #17384e;
    background: #e6f5fa;
}

html[data-theme="light"] .cd-modal .btn-light,
html[data-theme="light"] .cd-modal .btn-secondary {
    border-color: rgba(61, 105, 134, 0.16);
    color: #45677d;
    background: #edf5f8;
}

html[data-theme="light"] .cd-modal .form-control,
html[data-theme="light"] .cd-modal .input-group-text {
    border-color: rgba(67, 113, 148, 0.16);
    color: #294c64;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-modal .input-group-text {
    background: #edf6fa !important;
}


html[data-theme="light"] .cd-modal .tab-content {
    border-color: rgba(61, 105, 134, 0.13) !important;
    background: #ffffff;
}

html[data-theme="light"] .cd-modal .table {
    color: #294c64;
}

html[data-theme="light"] .cd-modal .table th,
html[data-theme="light"] .cd-modal .table td {
    border-color: rgba(61, 105, 134, 0.12);
}

html[data-theme="light"] .cd-modal .table thead th {
    color: #426b82;
    background: #edf6fa;
}

html[data-theme="light"] .cd-modal .bg-light {
    color: #294c64 !important;
    background: #edf6fa !important;
}

@media (max-width: 767px) {
    .cd-modal .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .cd-modal .modal-header,
    .cd-modal .modal-body,
    .cd-modal .modal-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .cd-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cd-task-admin-page #editTaskModal .modal-footer {
        flex-direction: column;
    }

    .cd-modal .modal-footer .btn {
        width: 100%;
    }
}

html.cd-dashboard-modal-open,
body.cd-dashboard-modal-open {
    overflow: hidden;
}

.cd-dashboard-modal[hidden] {
    display: none !important;
}

.cd-dashboard-modal {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.cd-dashboard-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.cd-dashboard-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(1, 8, 18, 0.76);
    backdrop-filter: blur(7px);
    cursor: default;
}

.cd-dashboard-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(125, 170, 198, 0.2);
    border-radius: 20px;
    color: #eaf3f8;
    background: linear-gradient(145deg, rgba(10, 31, 49, 0.99), rgba(5, 20, 35, 0.99));
    box-shadow: 0 36px 100px rgba(0, 4, 16, 0.62);
    transform: translateY(14px) scale(0.985);
    transition: transform 0.18s ease;
}

.cd-dashboard-modal.is-open .cd-dashboard-modal-dialog {
    transform: translateY(0) scale(1);
}

.cd-dashboard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 0 0 auto;
    padding: 19px 22px;
    border-bottom: 1px solid rgba(122, 163, 190, 0.15);
    background: rgba(8, 27, 44, 0.96);
}

.cd-dashboard-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cd-dashboard-modal-heading h2 {
    margin: 0;
    color: inherit;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.cd-dashboard-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid rgba(45, 188, 187, 0.3);
    border-radius: 12px;
    color: #7ce2dd;
    background: rgba(45, 188, 187, 0.12);
}

.cd-dashboard-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid rgba(124, 164, 190, 0.2);
    border-radius: 12px;
    color: #bed2df;
    background: rgba(23, 51, 70, 0.74);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cd-dashboard-modal-close:hover,
.cd-dashboard-modal-close:focus-visible {
    border-color: rgba(45, 188, 187, 0.48);
    color: #fff;
    background: rgba(45, 188, 187, 0.18);
    transform: translateY(-1px);
}

.cd-dashboard-modal-body {
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
}

.cd-signature-canvas-wrap {
    height: 300px;
    border: 1px solid rgba(39, 170, 225, 0.35);
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 30px rgba(0, 8, 20, 0.18);
    overflow: hidden;
}

.cd-signature-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.cd-signature-instruction {
    margin: 0 0 14px;
    color: #9ab1c0;
    line-height: 1.55;
}

.cd-signature-error {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 119, 136, 0.24);
    border-radius: 9px;
    background: rgba(220, 53, 69, 0.12);
    color: #ff9aaa;
    font-weight: 700;
}

.cd-dashboard-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(122, 163, 190, 0.15);
    background: rgba(8, 27, 44, 0.72);
}

.cd-dashboard-modal-footer .cd-button {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.cd-dashboard-modal-footer .cd-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

html[data-theme="light"] .cd-dashboard-modal-backdrop {
    background: rgba(18, 38, 52, 0.56);
}

html[data-theme="light"] .cd-dashboard-modal-dialog {
    border-color: rgba(61, 105, 134, 0.16);
    color: #17384e;
    background: #fff;
}

html[data-theme="light"] .cd-dashboard-modal-header,
html[data-theme="light"] .cd-dashboard-modal-footer {
    border-color: rgba(61, 105, 134, 0.12);
    background: #f8fcfe;
}

html[data-theme="light"] .cd-dashboard-modal-close {
    border-color: rgba(61, 105, 134, 0.18);
    color: #45677d;
    background: #eef5f8;
}

html[data-theme="light"] .cd-dashboard-modal-close:hover,
html[data-theme="light"] .cd-dashboard-modal-close:focus-visible {
    border-color: rgba(39, 170, 225, 0.34);
    color: #17384e;
    background: #e6f5fa;
}

html[data-theme="light"] .cd-signature-instruction {
    color: #526f82;
}

html[data-theme="light"] .cd-signature-error {
    color: #b42334;
}


@media (max-width: 640px) {
    .cd-dashboard-modal {
        align-items: end;
        padding: 12px;
    }

    .cd-dashboard-modal-dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
        transform: translateY(24px);
    }

    .cd-dashboard-modal-header {
        padding: 16px;
    }

    .cd-dashboard-modal-heading h2 {
        font-size: 18px;
    }

    .cd-dashboard-modal-body {
        padding: 16px;
    }

    .cd-signature-canvas-wrap {
        height: 230px;
    }

    .cd-dashboard-modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 14px 16px 16px;
    }

    .cd-dashboard-modal-footer .cd-button {
        width: 100%;
        padding-inline: 12px;
    }
}

@media (max-width: 420px) {
    .cd-dashboard-modal-footer {
        grid-template-columns: 1fr;
    }

    .cd-signature-canvas-wrap {
        height: 210px;
    }
}
.cd-dashboard-document-columns > .cd-dashboard-document-panel:only-child {
    grid-column: 1 / -1;
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker,
html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-danger, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-danger,
html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-warning, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-warning,
html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-success, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-success,
html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-info, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-info {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-info, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-info {
    color: #6cccf3;
}

html:where(.cd-theme-document)[data-theme="dark"] .audit-report-section-kicker-info i, html[data-theme="dark"] :where(.cd-theme-scope) .audit-report-section-kicker-info i {
    color: inherit !important;
}

.cd-task-report-update-notice {
    align-items: center;
    margin: 0 0 18px;
}

.cd-task-report-update-notice > i {
    flex: 0 0 auto;
}

.cd-task-report-update-notice > span {
    line-height: 1.5;
}

.cd-dashboard-prompter-notices {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.cd-dashboard-prompter-notice {
    margin: 0;
}

.cd-dashboard-prompter-notice > span {
    white-space: pre-line;
}

.cd-task-report-tag-interface {
    padding-top: 18px;
}

.cd-task-report-tag-tabs {
    margin-bottom: 4px;
}

.cd-task-report-tag-tab {
    width: max-content;
    min-width: max-content;
    flex: 0 0 auto;
}

@media (max-width: 960px) {
    html.cd-theme-document,
    html.cd-theme-document body:not(.cd-auth-body) {
        height: auto;
        min-height: 100%;
    }

    html.cd-theme-document body:not(.cd-auth-body) {
        overflow-x: hidden;
        overflow-y: auto;
    }

    html.cd-theme-document .cd-app-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    html.cd-theme-document .cd-main {
        height: auto;
        min-height: calc(100dvh - var(--cd-topbar-height));
        overflow: visible;
        overscroll-behavior: auto;
        scrollbar-gutter: auto;
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 767px) {
    body.cd-body:not(.cd-auth-body) {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.cd-body #container.cd-app-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    body.cd-body #container.cd-app-shell > #content {
        width: 100%;
        height: auto;
        min-height: calc(100dvh - var(--cd-topbar-height));
        overflow: visible;
        overscroll-behavior: auto;
        scrollbar-gutter: auto;
    }

    body.cd-body #container.cd-app-shell > #footer {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .cd-main {
        padding-bottom: calc(48px + env(safe-area-inset-bottom));
    }
}

.cd-document-view-shell.is-fullscreen .cd-document-tabs {
    height: 70px;
    min-height: 70px;
    display: flex;
    flex: 0 0 70px;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 0;
}

.cd-document-view-shell.is-fullscreen .cd-document-tab {
    height: 56px;
    min-height: 56px;
    align-self: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.cd-document-view-shell.is-fullscreen .cd-document-view-card .document-editor-statusbar {
    border-radius: 0;
}


/* ==================== 12. Heatmaps ==================== */

.cd-heatmap-page {
    gap: 18px;
}

.cd-heatmap-navigation {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    overflow: visible;
}

.cd-heatmap-navigation .cd-report-tabs-scroll {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
}

.cd-heatmap-navigation .cd-report-tabs {
    min-width: max-content;
    padding: 7px;
    border: 1px solid rgba(111, 171, 202, 0.15);
    border-radius: 17px;
    overflow: visible;
    background: linear-gradient(105deg, rgba(13, 39, 59, 0.92), rgba(11, 45, 65, 0.88) 58%, rgba(10, 53, 59, 0.82));
    box-shadow: 0 14px 30px rgba(0, 7, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cd-heatmap-date-range {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding-left: 14px;
}


.cd-heatmap-date-range .form-control {
    min-width: 0;
    height: 42px;
    flex: 1 1 auto;
    padding: 0;
    border: 0;
    color: var(--cd-text);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.cd-heatmap-date-range .form-control:focus {
    outline: 0;
    box-shadow: none;
}

.cd-heatmap-date-reset {
    width: 43px;
    height: 42px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-left: 1px solid rgba(102, 191, 218, 0.16);
    border-radius: 0 13px 13px 0;
    color: #9cc5d4;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.cd-heatmap-date-reset:hover {
    color: #ffffff;
    background: rgba(103, 221, 255, 0.1);
}

.cd-heatmap-report-content {
    min-width: 0;
    padding: 18px;
    overflow: hidden;
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar {
    margin: 0 0 18px !important;
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons {
    min-width: 280px;
    margin-left: auto !important;
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar #input-report-heatmap-page {
    min-width: 210px;
}

.cd-heatmap-report-content .heatmap-report-card {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(104, 171, 204, 0.14) !important;
    border-radius: 16px !important;
    color: var(--cd-text);
}

.cd-heatmap-report-content .heatmap-report-sidebar-card,
.cd-heatmap-report-content .heatmap-report-visible-type-card,
.cd-heatmap-report-content .heatmap-report-summary-card,
.cd-heatmap-report-content .heatmap-elements-table-view {
    border-color: rgba(106, 171, 202, 0.16);
    color: var(--cd-text);
}

.cd-heatmap-report-content .heatmap-report-summary-card-label,
.cd-heatmap-report-content .text-muted,
.cd-heatmap-report-content small {
    color: var(--cd-muted) !important;
}

.cd-heatmap-report-content .form-control,
.cd-heatmap-report-content .btn-light,
.cd-heatmap-report-content .dropdown-menu {
    border-color: rgba(109, 184, 213, 0.22);
    color: #eaf6fb;
    background-color: #0c1d2a;
}

.cd-heatmap-report-content .btn-light:hover,
.cd-heatmap-report-content .btn-light:focus,
.cd-heatmap-report-content .dropdown-item:hover,
.cd-heatmap-report-content .dropdown-item:focus {
    color: #ffffff;
    background-color: #173349;
}

.cd-heatmap-report-content .table {
    color: var(--cd-text);
}

.cd-heatmap-report-content .table th,
.cd-heatmap-report-content .table td {
    border-color: rgba(106, 171, 202, 0.14);
}

html[data-theme="light"] .cd-heatmap-navigation .cd-report-tabs {
    border-color: rgba(81, 143, 183, 0.18);
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72));
    box-shadow: 0 16px 34px rgba(47, 91, 124, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-date-range .form-control {
    color: #24465d;
}

html[data-theme="light"] .cd-heatmap-date-reset {
    border-left-color: rgba(56, 111, 143, 0.14);
    color: #52758a;
    background: rgba(33, 104, 145, 0.035);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-card,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-sidebar-card,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-visible-type-card,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-summary-card,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table-view {
    border-color: rgba(55, 102, 132, 0.13) !important;
    color: #24465d;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-summary-card-label,
html[data-theme="light"] .cd-heatmap-report-content .text-muted,
html[data-theme="light"] .cd-heatmap-report-content small {
    color: #688295 !important;
}

html[data-theme="light"] .cd-heatmap-report-content .form-control,
html[data-theme="light"] .cd-heatmap-report-content .btn-light,
html[data-theme="light"] .cd-heatmap-report-content .dropdown-menu {
    border-color: rgba(55, 102, 132, 0.16);
    color: #294b63;
    background-color: #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .btn-light:hover,
html[data-theme="light"] .cd-heatmap-report-content .btn-light:focus,
html[data-theme="light"] .cd-heatmap-report-content .dropdown-item:hover,
html[data-theme="light"] .cd-heatmap-report-content .dropdown-item:focus {
    color: #17384d;
    background-color: #eaf5fa;
}


.cd-heatmap-report-content .cd-heatmap-report-toolbar .heatmap-device-type-buttons,
.cd-heatmap-report-content .heatmap-report-type-buttons,
.cd-heatmap-report-content .heatmap-screenshot-nav-group {
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(111, 171, 202, 0.16);
    border-radius: 14px;
    background: linear-gradient(105deg, rgba(13, 39, 59, 0.94), rgba(11, 45, 65, 0.9) 58%, rgba(10, 53, 59, 0.84));
    box-shadow: 0 12px 26px rgba(0, 7, 22, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cd-heatmap-report-content .heatmap-device-type-buttons .btn,
.cd-heatmap-report-content .heatmap-report-type-buttons .btn,
.cd-heatmap-report-content .heatmap-screenshot-nav-group .btn,
.cd-heatmap-report-content .heatmap-report-view-mode-button,
.cd-heatmap-report-content .heatmap-table-add-metric-button {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 10px !important;
    color: #a9c5d4;
    background: transparent;
    box-shadow: none;
    font-weight: 700;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cd-heatmap-report-content .heatmap-device-type-buttons .btn:hover,
.cd-heatmap-report-content .heatmap-report-type-buttons .btn:hover,
.cd-heatmap-report-content .heatmap-screenshot-nav-group .btn:hover,
.cd-heatmap-report-content .heatmap-report-view-mode-button:hover,
.cd-heatmap-report-content .heatmap-table-add-metric-button:hover {
    color: #f3fbff;
    border-color: rgba(116, 183, 210, 0.18);
    background: rgba(78, 145, 178, 0.12);
    transform: translateY(-1px);
}

.cd-heatmap-report-content .button-report-device-type.active,
.cd-heatmap-report-content .button-report-device-type.bg-secondary,
.cd-heatmap-report-content .button-report-heatmap-type.active,
.cd-heatmap-report-content .button-report-heatmap-type.bg-secondary,
.cd-heatmap-report-content .heatmap-report-view-mode-option.active,
.cd-heatmap-report-content .heatmap-report-menu-button-active {
    color: #ffffff !important;
    border-color: rgba(128, 211, 226, 0.46) !important;
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa) !important;
    box-shadow: 0 10px 22px rgba(45, 58, 133, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons .input-group {
    min-height: 46px;
    overflow: hidden;
    border: 1px solid rgba(109, 184, 213, 0.2);
    border-radius: 13px;
    background: rgba(8, 27, 41, 0.88) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons .input-group .form-control,
.cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons .input-group .btn {
    height: 44px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons .input-group .btn {
    min-width: 44px;
    color: #78d8e8;
    border-left: 1px solid rgba(109, 184, 213, 0.14);
}

.cd-heatmap-report-content .heatmap-report-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, 0.09), transparent 24rem),
        radial-gradient(circle at 0 100%, rgba(46, 158, 170, 0.07), transparent 22rem),
        linear-gradient(145deg, rgba(10, 31, 47, 0.9), rgba(5, 20, 33, 0.84));
    box-shadow: 0 18px 42px rgba(0, 8, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-heatmap-report-content #heatmap-click-stage-top-bar {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(106, 171, 202, 0.13);
}

.cd-heatmap-report-content .heatmap-report-sidebar-card {
    padding: 12px;
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, 0.1), transparent 14rem),
        linear-gradient(145deg, rgba(14, 39, 57, 0.96), rgba(8, 27, 42, 0.92));
    box-shadow: 0 14px 30px rgba(0, 7, 22, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-heatmap-report-content .heatmap-report-visible-type-card,
.cd-heatmap-report-content .heatmap-report-summary-card {
    border: 1px solid rgba(109, 184, 213, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.cd-heatmap-report-content .heatmap-report-visible-type-title,
.cd-heatmap-report-content .heatmap-report-summary-card strong,
.cd-heatmap-report-content .heatmap-report-summary-card span,
.cd-heatmap-report-content .heatmap-report-info-section-title,
.cd-heatmap-report-content .heatmap-elements-table,
.cd-heatmap-report-content .heatmap-elements-table th,
.cd-heatmap-report-content .heatmap-elements-table td {
    color: var(--cd-text) !important;
}

.cd-heatmap-report-content .heatmap-report-visible-type-subtitle,
.cd-heatmap-report-content .heatmap-report-summary-card-label,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-main small {
    color: var(--cd-muted) !important;
}

.cd-heatmap-report-content .heatmap-report-menu-button {
    min-height: 44px;
    border-color: rgba(109, 184, 213, 0.13);
    border-radius: 11px;
    color: #bed3df;
    background: rgba(255, 255, 255, 0.035);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cd-heatmap-report-content .heatmap-report-menu-button:hover,
.cd-heatmap-report-content .heatmap-report-menu-button:focus {
    color: #ffffff;
    border-color: rgba(116, 183, 210, 0.22);
    background: rgba(78, 145, 178, 0.13);
    transform: translateX(2px);
}

.cd-heatmap-report-content .heatmap-report-menu-button i,
.cd-heatmap-report-content .heatmap-report-menu-info-link,
.cd-heatmap-report-content .heatmap-report-summary-info {
    color: #86dfff;
}

.cd-heatmap-report-content .heatmap-report-menu-info-link:hover,
.cd-heatmap-report-content .heatmap-report-menu-info-link:focus {
    color: #9ce9f3;
    text-decoration: none;
}

.cd-heatmap-report-content .heatmap-report-view-mode-menu,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-menu,
.cd-heatmap-report-content .heatmap-table-metric-dropdown-menu {
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 7, 22, 0.28);
}

.cd-heatmap-report-content .heatmap-report-view-mode-option,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-item,
.cd-heatmap-report-content .heatmap-table-metric-option {
    border-radius: 9px;
}

.cd-heatmap-report-content .heatmap-screenshot-dropdown-item:hover,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-item.active {
    border-color: rgba(116, 183, 210, 0.2);
    background: rgba(78, 145, 178, 0.13);
}

.cd-heatmap-report-content .heatmap-screenshot-dropdown-main,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-main span {
    color: #dcebf2;
}

.cd-heatmap-report-content .heatmap-elements-table-view {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(8, 27, 41, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cd-heatmap-report-content .heatmap-elements-table-wrap {
    border-color: rgba(109, 184, 213, 0.15);
    border-radius: 14px;
}

.cd-heatmap-report-content .heatmap-elements-table {
    background: transparent;
}

.cd-heatmap-report-content .heatmap-elements-table-metric {
    color: #d7e8ef;
    border-color: rgba(109, 184, 213, 0.16);
    background: rgba(78, 145, 178, 0.1);
}

.cd-heatmap-report-content .heatmap-elements-table-metric-remove {
    color: #88cfe0;
}

.cd-heatmap-report-content .heatmap-table-metric-option,
.cd-heatmap-report-content .heatmap-table-metric-option:hover {
    color: #c8dae5;
    background: transparent;
}

.cd-heatmap-report-content .heatmap-table-metric-option:hover {
    background: rgba(78, 145, 178, 0.13);
}

.cd-heatmap-report-content .heatmap-table-metric-option.active,
.cd-heatmap-report-content .heatmap-table-metric-option.active:hover {
    color: #86dfff;
    background: rgba(78, 145, 178, 0.24);
}

.cd-heatmap-report-content .heatmap-report-summary-row {
    border-bottom-color: rgba(109, 184, 213, 0.13);
}

.cd-heatmap-report-content .heatmap-elements-table thead th {
    border-bottom-color: rgba(109, 184, 213, 0.18);
    background: linear-gradient(105deg, rgba(22, 54, 76, 0.96), rgba(16, 62, 78, 0.9));
}

.cd-heatmap-report-content .heatmap-elements-table tbody tr:hover {
    background: rgba(78, 145, 178, 0.08);
}

.cd-heatmap-report-content .heatmap-click-loading,
.cd-heatmap-report-content .heatmap-report-view-loading-overlay,
.cd-heatmap-report-content #heatmap-click-report-no-screenshot {
    color: var(--cd-muted);
    background: rgba(8, 27, 41, 0.94);
}

html[data-theme="light"] .cd-heatmap-report-content .cd-heatmap-report-toolbar .heatmap-device-type-buttons,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-type-buttons,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-nav-group {
    border-color: rgba(81, 143, 183, 0.18);
    background: linear-gradient(105deg, rgba(209, 229, 246, 0.78), rgba(223, 241, 250, 0.86) 58%, rgba(218, 244, 240, 0.72));
    box-shadow: 0 12px 26px rgba(47, 91, 124, 0.09), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons .btn,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-type-buttons .btn,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-nav-group .btn,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-view-mode-button,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-add-metric-button {
    color: #58758a;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons .btn:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-type-buttons .btn:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-nav-group .btn:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-view-mode-button:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-add-metric-button:hover {
    color: #17384e;
    border-color: rgba(81, 143, 183, 0.14);
    background: rgba(255, 255, 255, 0.52);
}

html[data-theme="light"] .cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons .input-group {
    border-color: rgba(55, 102, 132, 0.16);
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, 0.055), transparent 24rem),
        radial-gradient(circle at 0 100%, rgba(46, 158, 170, 0.05), transparent 22rem),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(47, 91, 124, 0.09), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-sidebar-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, 0.065), transparent 14rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 251, 0.94));
    box-shadow: 0 14px 30px rgba(47, 91, 124, 0.09), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-visible-type-card,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-summary-card,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-menu-button {
    border-color: rgba(55, 102, 132, 0.12);
    background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-visible-type-title,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-summary-card strong,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-summary-card span,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-info-section-title,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table th,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table td {
    color: #24465d !important;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-menu-button {
    color: #355a70;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-menu-button:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-menu-button:focus {
    color: #17384d;
    border-color: rgba(81, 143, 183, 0.15);
    background: #eaf5fa;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-dropdown-main,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-dropdown-main span {
    color: #294b63;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table-view {
    background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table-wrap {
    border-color: rgba(55, 102, 132, 0.13);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table-metric {
    color: #355a70;
    border-color: rgba(55, 102, 132, 0.13);
    background: rgba(33, 104, 145, 0.06);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table-metric-remove {
    color: #52758a;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-metric-option,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-metric-option:hover {
    color: #355a70;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-metric-option:hover {
    background: #eaf5fa;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-metric-option.active,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-metric-option.active:hover {
    color: #214f68;
    background: #d8edf6;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-elements-table thead th {
    background: linear-gradient(105deg, #f8fcfe, #e8f3f8 58%, #e8f7f4);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-click-loading,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-view-loading-overlay,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-click-report-no-screenshot {
    background: #f4f9fb;
}

@media (max-width: 991px) {
    .cd-heatmap-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .cd-heatmap-date-range {
        width: 100%;
        min-width: 0;
    }

    .cd-heatmap-report-content .cd-heatmap-report-toolbar {
        align-items: stretch !important;
        flex-direction: column;
    }

    .cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }
}

@media (max-width: 640px) {
    .cd-heatmap-report-content {
        padding: 12px;
    }

    .cd-heatmap-report-content .heatmap-device-type-buttons,
    .cd-heatmap-report-content .heatmap-report-type-buttons {
        width: 100%;
        overflow-x: auto;
    }

    .cd-heatmap-report-content .heatmap-device-type-buttons .btn,
    .cd-heatmap-report-content .heatmap-report-type-buttons .btn {
        flex: 1 0 auto;
    }

    .cd-heatmap-report-content #heatmap-click-stage-top-bar {
        align-items: stretch !important;
        flex-direction: column;
        gap: 12px;
    }
}


/* Heatmap controls without Bootstrap dependency. */
.cd-card.cd-heatmap-report-content {
    margin-top: 22px;
}

.cd-heatmap-report-content,
.cd-heatmap-report-content * {
    box-sizing: border-box;
}

.cd-heatmap-report-content button,
.cd-heatmap-report-content a {
    font: inherit;
}

.cd-heatmap-report-content button:focus,
.cd-heatmap-report-content button:focus-visible,
.cd-heatmap-report-content a:focus,
.cd-heatmap-report-content a:focus-visible {
    outline: none;
}

.cd-heatmap-report-content a:hover,
.cd-heatmap-report-content a:focus {
    text-decoration: none;
}

.cd-heatmap-report-content .d-none {
    display: none !important;
}

.cd-heatmap-report-content .d-flex {
    display: flex !important;
}

.cd-heatmap-report-content .align-items-center {
    align-items: center !important;
}

.cd-heatmap-report-content .align-items-start {
    align-items: center !important;
}

.cd-heatmap-report-content .justify-content-between {
    justify-content: space-between !important;
}

.cd-heatmap-report-content .justify-content-center {
    justify-content: center !important;
}

.cd-heatmap-report-content .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.cd-heatmap-report-content .col-12,
.cd-heatmap-report-content .col-lg-9,
.cd-heatmap-report-content .col-lg-3 {
    position: relative;
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

.cd-heatmap-report-content .btn,
.cd-heatmap-report-content .dropdown-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(109, 184, 213, 0.22);
    border-radius: 10px;
    color: #dcebf2;
    background: #0c1d2a;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
}

.cd-heatmap-report-content .btn-sm,
.cd-heatmap-report-content .btn-group-sm > .btn {
    min-height: 38px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
}

.cd-heatmap-report-content .btn:disabled,
.cd-heatmap-report-content .btn.disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.cd-heatmap-report-content .btn-primary,
.cd-heatmap-report-content .btn-success {
    border-color: rgba(143, 154, 232, .46);
    color: #ffffff;
    background: #5f63bd;
}

.cd-heatmap-report-content .btn-outline-secondary {
    color: #a9c5d4;
    background: transparent;
}

.cd-heatmap-report-content .btn-group,
.cd-heatmap-report-content .input-group {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.cd-heatmap-report-content .btn-group {
    vertical-align: middle;
}

.cd-heatmap-report-content .input-group {
    width: 100%;
}

.cd-heatmap-report-content .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(109, 184, 213, 0.22);
    border-radius: 10px;
    color: #eaf6fb;
    background: #0c1d2a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.cd-heatmap-report-content textarea.form-control {
    min-height: 120px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.cd-heatmap-report-content .form-control:focus {
    border-color: rgba(111, 193, 222, 0.55);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 127, 169, 0.14);
}

.cd-heatmap-report-content .dropdown {
    position: relative;
}

.cd-heatmap-report-content .dropdown-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 1200;
    display: none;
    min-width: 180px;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(109, 184, 213, 0.22);
    border-radius: 12px;
    color: #dcebf2;
    background: #0c1d2a;
}

.cd-heatmap-report-content .dropdown-menu-right {
    right: 0;
    left: auto;
}

.cd-heatmap-report-content .dropdown.show > .dropdown-menu,
.cd-heatmap-report-content .dropdown-menu.show {
    display: block;
}

.cd-heatmap-report-content .dropdown-item {
    width: 100%;
    min-height: 38px;
    justify-content: flex-start;
    margin: 0;
    border-color: transparent;
    background: transparent;
    text-align: left;
    white-space: normal;
}

.cd-heatmap-report-content .card {
    position: relative;
    min-width: 0;
}

.cd-heatmap-report-content .card-body {
    padding: 18px;
}

.cd-heatmap-report-content .table-responsive {
    width: 100%;
    overflow-x: auto;
}

.cd-heatmap-report-content .table {
    width: 100%;
    border-collapse: collapse;
}

.cd-heatmap-report-content .table th,
.cd-heatmap-report-content .table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(106, 171, 202, 0.14);
    text-align: left;
    vertical-align: middle;
}

.cd-heatmap-report-content .alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(109, 184, 213, 0.2);
    border-radius: 10px;
    color: var(--cd-text);
    background: rgba(39, 127, 169, 0.12);
}

.cd-heatmap-report-content .alert-danger {
    border-color: rgba(255, 83, 119, 0.28);
    color: #ffd9e1;
    background: rgba(185, 28, 60, 0.16);
}

.cd-heatmap-report-content .alert-warning {
    border-color: rgba(240, 183, 70, 0.3);
    background: rgba(240, 183, 70, 0.13);
}

.cd-heatmap-report-content .alert-success {
    border-color: rgba(45, 188, 187, 0.3);
    background: rgba(45, 188, 187, 0.13);
}

.cd-heatmap-report-content .form-group {
    margin-bottom: 16px;
}

.cd-heatmap-report-content .form-text {
    display: block;
    margin-top: 6px;
}

.cd-heatmap-report-content .modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
}

.cd-heatmap-report-content .spinner-border {
    width: 32px;
    height: 32px;
    display: inline-block;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cdHeatmapSpinner 0.72s linear infinite;
}

@keyframes cdHeatmapSpinner {
    to {
        transform: rotate(360deg);
    }
}

.cd-heatmap-report-content .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cd-heatmap-report-content .text-center {
    text-align: center !important;
}

.cd-heatmap-report-content .text-white {
    color: #ffffff !important;
}

.cd-heatmap-report-content .text-primary {
    color: #67ddff !important;
}

.cd-heatmap-report-content .fw-bold {
    font-weight: 800 !important;
}

.cd-heatmap-report-content .fs-7 {
    font-size: 13px !important;
}

.cd-heatmap-report-content .opacity-1 {
    opacity: 1 !important;
}

.cd-heatmap-report-content .flex-1 {
    flex: 1 1 auto !important;
}

.cd-heatmap-report-content .w-100 {
    width: 100% !important;
}

.cd-heatmap-report-content .w-auto {
    width: auto !important;
}

.cd-heatmap-report-content .h-auto {
    height: auto !important;
}

.cd-heatmap-report-content .m-0 {
    margin: 0 !important;
}

.cd-heatmap-report-content .ms-3 {
    margin-left: 16px !important;
}

.cd-heatmap-report-content .mt-3 {
    margin-top: 16px !important;
}

.cd-heatmap-report-content .mb-0 {
    margin-bottom: 0 !important;
}

.cd-heatmap-report-content .mb-2 {
    margin-bottom: 8px !important;
}

.cd-heatmap-report-content .mb-3 {
    margin-bottom: 16px !important;
}

.cd-heatmap-report-content .pt-1 {
    padding-top: 4px !important;
}

.cd-heatmap-report-content .pb-1 {
    padding-bottom: 4px !important;
}

.cd-heatmap-report-content .pt-3 {
    padding-top: 16px !important;
}

.cd-heatmap-report-content .pt-5 {
    padding-top: 48px !important;
}

.cd-heatmap-report-content .pb-5 {
    padding-bottom: 48px !important;
}

.cd-heatmap-report-content .ps-2 {
    padding-left: 8px !important;
}

.cd-heatmap-report-content .pe-2 {
    padding-right: 8px !important;
}

.cd-heatmap-report-content .ps-3 {
    padding-left: 16px !important;
}

.cd-heatmap-report-content .pe-3 {
    padding-right: 16px !important;
}

.cd-heatmap-report-content .gap-2 {
    gap: 8px !important;
}

.cd-heatmap-report-content #heatmap-click-stage-top-bar .btn,
.cd-heatmap-report-content .heatmap-report-view-mode-dropdown,
.cd-heatmap-report-content .heatmap-report-view-mode-button {
    height: 42px;
    min-height: 42px;
}

.cd-heatmap-report-content .heatmap-report-view-mode-dropdown {
    display: inline-flex;
    align-items: stretch;
}

.cd-heatmap-report-content .heatmap-report-view-mode-button {
    min-width: 150px;
}

.cd-heatmap-report-content #heatmap-right-buttons .input-group > .btn {
    display: inline-grid;
    place-items: center;
    padding: 0;
    line-height: 1;
}

.cd-heatmap-report-content #heatmap-right-buttons .input-group > .btn i {
    display: block;
    margin: 0;
    line-height: 1;
}

.cd-heatmap-report-content #heatmap-table-csv-download-group {
    margin-right: 10px;
}

.cd-heatmap-report-content .heatmap-table-csv-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    border: 1px solid rgba(104, 184, 216, 0.22);
    border-radius: 12px !important;
    color: #aee8f4;
    background: linear-gradient(145deg, rgba(22, 59, 81, 0.94), rgba(10, 39, 55, 0.96));
    box-shadow: 0 10px 22px rgba(0, 7, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-heatmap-report-content .heatmap-table-csv-button:hover,
.cd-heatmap-report-content .heatmap-table-csv-button:focus {
    color: #ffffff;
    border-color: rgba(128, 211, 226, 0.42);
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa);
}

.cd-heatmap-report-content .heatmap-click-stage,
.cd-heatmap-report-content .heatmap-scroll-wrap,
.cd-heatmap-report-content .heatmap-click-image-wrap,
.cd-heatmap-report-content .heatmap-click-image-wrap-snapshot {
    background-color: rgba(8, 27, 41, 0.86);
}

.cd-heatmap-report-content .heatmap-report-summary-card > .btn-group {
    width: 50%;
    flex: 0 0 50%;
}

.cd-heatmap-report-content .heatmap-report-summary-card > .btn-group > .btn:first-child {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.cd-heatmap-report-content .heatmap-report-summary-card > .btn-group > .btn:last-child {
    width: 34px;
    min-width: 34px;
    flex: 0 0 34px;
    padding: 0 !important;
}

.cd-heatmap-report-content #button-heatmap-report-sidebar-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 !important;
    border: 1px solid rgba(116, 183, 210, 0.22);
    border-radius: 9px !important;
    color: #86dfff;
    background: rgba(39, 127, 169, 0.12);
}

.cd-heatmap-report-content #button-heatmap-report-sidebar-toggle i {
    margin: 0;
    line-height: 1;
}

html[data-theme="light"] .cd-heatmap-report-content #button-heatmap-report-sidebar-toggle {
    border: 1px solid rgba(39, 170, 225, 0.32);
    border-radius: 10px !important;
    color: #176b94;
    background: linear-gradient(135deg, rgba(39, 170, 225, 0.13), rgba(45, 188, 187, 0.12));
    box-shadow: 0 8px 18px rgba(23, 56, 78, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .cd-heatmap-report-content #button-heatmap-report-sidebar-toggle:hover,
html[data-theme="light"] .cd-heatmap-report-content #button-heatmap-report-sidebar-toggle:focus-visible {
    border-color: rgba(39, 170, 225, 0.58);
    color: #176b94;
    background: linear-gradient(135deg, rgba(39, 170, 225, 0.22), rgba(45, 188, 187, 0.2));
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-report-sidebar-column.heatmap-report-sidebar-collapsed #button-heatmap-report-sidebar-toggle {
    border-radius: 8px !important;
}

.cd-heatmap-report-content #heatmap-report-sidebar-column.heatmap-report-sidebar-collapsed .heatmap-report-sidebar-header {
    justify-content: center;
    margin-bottom: 5px;
}

.cd-heatmap-report-content #heatmap-report-sidebar-column.heatmap-report-sidebar-collapsed #button-heatmap-report-sidebar-toggle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 8px !important;
}

.cd-heatmap-report-content .heatmap-device-session-counts,
.cd-heatmap-report-content .heatmap-zoom-controls {
    overflow: hidden;
    border: 1px solid rgba(116, 183, 210, 0.22);
    border-radius: 11px;
    background: rgba(8, 27, 41, 0.94);
    box-shadow: 0 12px 28px rgba(0, 7, 22, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-heatmap-report-content .heatmap-device-session-count {
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #a9c5d4;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    cursor: pointer;
}

.cd-heatmap-report-content .heatmap-device-session-count:hover,
.cd-heatmap-report-content .heatmap-device-session-count:focus {
    color: #ffffff;
    border-color: rgba(116, 183, 210, 0.18);
    background: rgba(78, 145, 178, 0.13);
    outline: none;
}

.cd-heatmap-report-content .heatmap-device-session-count.active,
.cd-heatmap-report-content .heatmap-device-session-count.bg-secondary {
    color: #ffffff !important;
    border-color: rgba(128, 211, 226, 0.42) !important;
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa) !important;
    box-shadow: 0 8px 18px rgba(45, 58, 133, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.cd-heatmap-report-content .heatmap-zoom-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(116, 183, 210, 0.16);
    color: #b9d3df;
    background: transparent;
    cursor: pointer;
}

.cd-heatmap-report-content .heatmap-zoom-button:last-child {
    border-bottom: 0;
}

.cd-heatmap-report-content .heatmap-zoom-button:hover,
.cd-heatmap-report-content .heatmap-zoom-button:focus {
    color: #ffffff;
    background: rgba(78, 145, 178, 0.16);
    outline: none;
}

.cd-heatmap-report-content .heatmap-zoom-button:disabled {
    color: rgba(169, 197, 212, 0.34);
    background: transparent;
}

.cd-heatmap-report-content .heatmap-report-stage-column.heatmap-report-view-loading-active #heatmap-report-view-loading.heatmap-report-view-loading-overlay {
    top: 69px;
    right: 12px;
    bottom: 0;
    left: 12px;
    width: auto;
    height: auto;
    min-height: 800px;
    max-height: none;
    border: 1px solid rgba(109, 184, 213, 0.15);
    border-radius: 14px;
}html[data-theme="light"] .cd-heatmap-report-content .cd-report-data-table {
    color: #355a70;
}

html[data-theme="light"] .cd-heatmap-report-content .btn,
html[data-theme="light"] .cd-heatmap-report-content .dropdown-item,
html[data-theme="light"] .cd-heatmap-report-content .form-control,
html[data-theme="light"] .cd-heatmap-report-content .dropdown-menu {
    border-color: rgba(55, 102, 132, 0.16);
    color: #294b63;
    background: #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .btn-primary,
html[data-theme="light"] .cd-heatmap-report-content .btn-success {
    color: #ffffff;
    background: #5f63bd;
}

html[data-theme="light"] .cd-heatmap-report-content .btn-outline-secondary {
    color: #58758a;
    background: transparent;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-menu-button i,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-menu-info-link,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-summary-info,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons .input-group > .btn {
    color: #176b94;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-click-stage,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-scroll-wrap,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-click-image-wrap,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-click-image-wrap-snapshot {
    background-color: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-session-counts,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-zoom-controls {
    border-color: rgba(55, 102, 132, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(47, 91, 124, 0.14), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-session-count,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-zoom-button {
    color: #526f83;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-session-count:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-session-count:focus,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-zoom-button:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-zoom-button:focus {
    color: #17384e;
    background: #eaf5fa;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-zoom-button {
    border-bottom-color: rgba(55, 102, 132, 0.12);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-csv-button {
    color: #176b94;
    border-color: rgba(55, 102, 132, 0.16);
    background: linear-gradient(145deg, #ffffff, #eef6fa);
    box-shadow: 0 10px 22px rgba(47, 91, 124, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-csv-button:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-table-csv-button:focus {
    color: #ffffff;
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa);
}@media (min-width: 992px) {
    .cd-heatmap-report-content .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .cd-heatmap-report-content .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .cd-heatmap-report-content .mt-lg-0 {
        margin-top: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1300px) {
    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-sidebar-card {
        padding: 8px;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-visible-type-card {
        padding: 9px;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-visible-type-title {
        font-size: 13px;
        line-height: 1.25;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-visible-type-subtitle,
    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-menu-info-link,
    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-summary-card-label {
        font-size: 10px;
        line-height: 1.25;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-menu-button {
        min-height: 38px;
        gap: 7px;
        padding: 8px;
        font-size: 11px;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-menu-button i {
        flex-basis: 16px;
        width: 16px;
        font-size: 12px;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-summary-card {
        gap: 6px;
        padding: 6px 7px;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column .heatmap-report-summary-card .btn {
        min-height: 30px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 11px !important;
    }
}

@media (max-width: 991px) {
    .cd-heatmap-report-content .col-12,
    .cd-heatmap-report-content .col-lg-9,
    .cd-heatmap-report-content .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .cd-heatmap-report-content .heatmap-report-view-left-controls {
        width: 100%;
        align-items: stretch !important;
        flex-direction: column;
    }

    .cd-heatmap-report-content .heatmap-report-view-mode-dropdown,
    .cd-heatmap-report-content .heatmap-report-view-mode-button,
    .cd-heatmap-report-content .heatmap-report-type-buttons {
        width: 100%;
    }

    .cd-heatmap-report-content .heatmap-report-type-buttons {
        display: flex;
        flex-wrap: wrap;
    }

    .cd-heatmap-report-content .heatmap-report-type-buttons .btn {
        min-width: calc(50% - 3px);
        flex: 1 1 calc(50% - 3px);
    }

    .cd-heatmap-report-content .heatmap-report-view-mode-menu {
        width: 100%;
    }

    .cd-heatmap-report-content #heatmap-table-csv-download-group {
        margin-right: 0;
    }
}

.cd-heatmap-report-content .heatmap-report-view-left-controls {
    justify-content: center;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 14px;
    border-color: rgba(111, 191, 221, 0.2);
    background:
        radial-gradient(circle at 85% 18%, rgba(146, 114, 238, 0.18), transparent 8rem),
        radial-gradient(circle at 8% 92%, rgba(45, 188, 187, 0.12), transparent 9rem),
        linear-gradient(145deg, rgba(18, 48, 69, 0.96), rgba(8, 27, 42, 0.94));
    box-shadow: 0 12px 26px rgba(0, 7, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-card::before,
.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-card::before {
    width: 92px;
    height: 42px;
    top: -12px;
    right: -18px;
    border: 1px solid rgba(103, 221, 255, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 13px rgba(118, 86, 197, 0.045),
        -60px 35px 0 -20px rgba(103, 221, 255, 0.7),
        -22px 61px 0 -21px rgba(255, 255, 255, 0.85),
        22px 44px 0 -20px rgba(45, 188, 187, 0.72);
    transform: rotate(-18deg);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-card::after {
    width: 14px;
    height: 14px;
    top: 17px;
    right: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9272ee, #55d2e8);
    box-shadow: 0 0 18px rgba(103, 221, 255, 0.42);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-title,
.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-subtitle {
    position: relative;
    z-index: 1;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-item-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(109, 184, 213, 0.13);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(78, 145, 178, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-item-wrap:hover {
    border-color: rgba(116, 183, 210, 0.25);
    background: linear-gradient(145deg, rgba(78, 145, 178, 0.12), rgba(118, 86, 197, 0.06));
    transform: translateX(2px);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    transform: none;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button:hover,
.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button:focus {
    border: 0;
    background: transparent;
    transform: none;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button.heatmap-report-menu-button-active {
    color: #ffffff !important;
    background: linear-gradient(115deg, rgba(118, 86, 197, 0.92), rgba(60, 136, 188, 0.9) 62%, rgba(46, 158, 170, 0.88)) !important;
    box-shadow: 0 8px 18px rgba(45, 58, 133, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button.heatmap-report-menu-button-active:hover,
.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button.heatmap-report-menu-button-active:focus {
    color: #ffffff;
    background: linear-gradient(115deg, #8363d1, #438fc5 62%, #32acb8) !important;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button > i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(103, 221, 255, 0.16);
    border-radius: 10px;
    color: #86dfff;
    background: linear-gradient(145deg, rgba(39, 127, 169, 0.18), rgba(45, 188, 187, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button.heatmap-report-menu-button-active > i {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.15);
}


.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-info-link {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border: 1px solid rgba(103, 221, 255, 0.13);
    border-radius: 8px;
    color: #86dfff;
    background: rgba(39, 127, 169, 0.09);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

:where(html.cd-theme-document, .cd-theme-scope) .heatmap-report-visible-type-card .heatmap-report-menu-info-link {
    margin-top:12px;
    margin-left:0px;
}

:where(html.cd-theme-document, .cd-theme-scope) .heatmap-report-sidebar-collapsed .heatmap-report-menu-info-link {
    display: none!important;
}

:where(html.cd-theme-document, .cd-theme-scope) .heatmap-report-sidebar-collapsed .heatmap-report-menu-button,
:where(html.cd-theme-document, .cd-theme-scope) .heatmap-report-sidebar-collapsed .heatmap-report-menu-item-wrap {
    padding:0!important;
    border:none!important;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-info-link:hover,
.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-info-link:focus {
    color: #ffffff;
    border-color: rgba(103, 221, 255, 0.28);
    background: rgba(39, 127, 169, 0.2);
    outline: none;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu > .heatmap-report-menu-button-primary {
    min-height: 44px;
    justify-content: center;
    margin-top: 2px;
    border: 1px solid rgba(128, 211, 226, 0.42);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(45, 58, 133, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu > .heatmap-report-menu-button-primary:hover,
.cd-heatmap-report-content #heatmap-report-sidebar-menu > .heatmap-report-menu-button-primary:focus {
    border: 1px solid rgba(128, 211, 226, 0.58);
    transform: none;
}

html[data-theme="dark"] .cd-heatmap-report-content .heatmap-report-refresh-loading {
    border-color: rgba(111, 191, 221, 0.18);
    background: #0b2132;
    color: #c7dce6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .cd-heatmap-report-content .heatmap-report-refresh-loading .spinner-border {
    color: #86dfff !important;
}

.cd-heatmap-report-content .heatmap-report-summary-row .btn-group {
    width: 50%;
}

.cd-heatmap-report-content [data-tooltip] {
    position: relative;
}

.cd-heatmap-report-content [data-tooltip]::before,
.cd-heatmap-report-content [data-tooltip]::after {
    position: absolute;
    z-index: 120;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.cd-heatmap-report-content [data-tooltip]::before {
    content: attr(data-tooltip);
    width: max-content;
    max-width: min(240px, 70vw);
    bottom: calc(100% + 9px);
    left: 50%;
    padding: 8px 10px;
    border: 1px solid rgba(111, 191, 221, 0.2);
    border-radius: 9px;
    color: #eaf6fb;
    background: rgba(5, 20, 34, 0.98);
    box-shadow: 0 12px 28px rgba(0, 7, 22, 0.34);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    transform: translate(-50%, 5px);
}

.cd-heatmap-report-content [data-tooltip]::after {
    content: "";
    bottom: calc(100% + 4px);
    left: 50%;
    border: 5px solid transparent;
    border-top-color: rgba(5, 20, 34, 0.98);
    transform: translate(-50%, 5px);
}

.cd-heatmap-report-content [data-tooltip]:hover::before,
.cd-heatmap-report-content [data-tooltip]:hover::after,
.cd-heatmap-report-content [data-tooltip]:focus::before,
.cd-heatmap-report-content [data-tooltip]:focus::after,
.cd-heatmap-report-content [data-tooltip]:focus-within::before,
.cd-heatmap-report-content [data-tooltip]:focus-within::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.cd-heatmap-report-content #input-report-heatmap-page {
    color-scheme: dark;
}

.cd-heatmap-report-content #input-report-heatmap-page option {
    color: #eaf6fb;
    background: #0c1d2a;
}

.cd-heatmap-date-calendar.flatpickr-calendar {
    border-color: rgba(111, 191, 221, 0.22);
    color: #dcebf2;
    background: #0b2132;
    box-shadow: 0 22px 52px rgba(0, 7, 22, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cd-heatmap-date-calendar .flatpickr-months,
.cd-heatmap-date-calendar .flatpickr-weekdays,
.cd-heatmap-date-calendar .flatpickr-days,
.cd-heatmap-date-calendar .dayContainer {
    background: transparent;
}

.cd-heatmap-date-calendar .flatpickr-month,
.cd-heatmap-date-calendar .flatpickr-current-month,
.cd-heatmap-date-calendar .flatpickr-current-month input.cur-year,
.cd-heatmap-date-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.cd-heatmap-date-calendar span.flatpickr-weekday {
    color: #dcebf2;
}

.cd-heatmap-date-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.cd-heatmap-date-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #0b2132;
}

.cd-heatmap-date-calendar .flatpickr-prev-month svg,
.cd-heatmap-date-calendar .flatpickr-next-month svg {
    fill: #9fc6d8;
}

.cd-heatmap-date-calendar .flatpickr-day {
    color: #c7dce6;
    border-color: transparent;
}

.cd-heatmap-date-calendar .flatpickr-day.prevMonthDay,
.cd-heatmap-date-calendar .flatpickr-day.nextMonthDay {
    color: #58778a;
}

.cd-heatmap-date-calendar .flatpickr-day:hover,
.cd-heatmap-date-calendar .flatpickr-day:focus {
    color: #ffffff;
    border-color: rgba(103, 221, 255, 0.18);
    background: rgba(39, 127, 169, 0.2);
}

.cd-heatmap-date-calendar .flatpickr-day.today {
    border-color: #55d2e8;
}

.cd-heatmap-date-calendar .flatpickr-day.inRange {
    color: #ffffff;
    border-color: rgba(60, 136, 188, 0.28);
    background: rgba(60, 136, 188, 0.24);
    box-shadow: none;
}

.cd-heatmap-date-calendar .flatpickr-day.selected,
.cd-heatmap-date-calendar .flatpickr-day.startRange,
.cd-heatmap-date-calendar .flatpickr-day.endRange,
.cd-heatmap-date-calendar .flatpickr-day.selected:hover,
.cd-heatmap-date-calendar .flatpickr-day.startRange:hover,
.cd-heatmap-date-calendar .flatpickr-day.endRange:hover {
    color: #ffffff;
    border-color: #3c88bc;
    background: linear-gradient(135deg, #7656c5, #3c88bc 62%, #2e9eaa);
}

html[data-theme="light"] .cd-heatmap-report-content #input-report-heatmap-page {
    color-scheme: light;
}

html[data-theme="light"] .cd-heatmap-report-content #input-report-heatmap-page option {
    color: #294b63;
    background: #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-card {
    border-color: rgba(55, 102, 132, 0.16);
    background:
        radial-gradient(circle at 85% 18%, rgba(118, 86, 197, 0.1), transparent 8rem),
        radial-gradient(circle at 8% 92%, rgba(45, 188, 187, 0.08), transparent 9rem),
        linear-gradient(145deg, #ffffff, #eef6fa);
    box-shadow: 0 12px 26px rgba(47, 91, 124, 0.11), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-item-wrap {
    border-color: rgba(55, 102, 132, 0.13);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 245, 250, 0.82));
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-button > i,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-menu-info-link {
    color: #176b94;
    border-color: rgba(23, 107, 148, 0.15);
    background: rgba(23, 107, 148, 0.07);
}


html:where(.cd-theme-document)[data-theme="light"] .heatmap-report-menu-button.heatmap-report-menu-button-primary > i, html[data-theme="light"] :where(.cd-theme-scope) .heatmap-report-menu-button.heatmap-report-menu-button-primary > i {
    color: #fff!important;
}

html[data-theme="light"] .cd-heatmap-report-content [data-tooltip]::before {
    color: #24465d;
    border-color: rgba(55, 102, 132, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(47, 91, 124, 0.2);
}

html[data-theme="light"] .cd-heatmap-report-content [data-tooltip]::after {
    border-top-color: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .cd-heatmap-date-calendar.flatpickr-calendar {
    border-color: rgba(55, 102, 132, 0.16);
    color: #294b63;
    background: #ffffff;
    box-shadow: 0 22px 52px rgba(47, 91, 124, 0.2), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-month,
html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-current-month,
html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-current-month input.cur-year,
html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="light"] .cd-heatmap-date-calendar span.flatpickr-weekday {
    color: #294b63;
}

html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #ffffff;
}

html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-prev-month svg,
html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-next-month svg {
    fill: #52758a;
}

html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-day {
    color: #355a70;
}

html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-day.selected{
    color: #fff;
}

html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-day.prevMonthDay,
html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-day.nextMonthDay {
    color: #9aafbc;
}

html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-day:hover,
html[data-theme="light"] .cd-heatmap-date-calendar .flatpickr-day:focus {
    color: #17384e;
    border-color: rgba(23, 107, 148, 0.14);
    background: #eaf5fa;
}

@media (min-width: 992px) {
    .cd-heatmap-report-content #heatmap-click-report-main-row.heatmap-report-menu-collapsed > .heatmap-report-stage-column {
        flex: 0 0 calc(100% - 74px);
        max-width: calc(100% - 74px);
    }

    .cd-heatmap-report-content #heatmap-click-report-main-row.heatmap-report-menu-collapsed > #heatmap-report-sidebar-column {
        flex: 0 0 74px;
        max-width: 74px;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column.heatmap-report-sidebar-collapsed #heatmap-report-sidebar-menu {
        gap: 5px;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column.heatmap-report-sidebar-collapsed .heatmap-report-menu-item-wrap {
        display: block;
        padding: 2px;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .cd-heatmap-report-content #heatmap-report-sidebar-column.heatmap-report-sidebar-collapsed .heatmap-report-menu-button > i {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}

@media (min-width: 992px) and (max-width: 1300px) {
    .cd-heatmap-report-content #heatmap-click-stage-top-bar {
        align-items: stretch !important;
        flex-direction: column;
        gap: 12px;
    }

    .cd-heatmap-report-content #heatmap-click-stage-top-bar .heatmap-report-view-left-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cd-heatmap-report-content #heatmap-click-stage-top-bar .heatmap-screenshot-nav-group {
        align-self: center;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .cd-heatmap-report-content .heatmap-screenshot-nav-group {
        align-self: center;
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
    }
}

/* ==================== 13. Notifications ==================== */
.cd-notification-bell {
    position: relative;
    width: 42px;
    min-width: 42px;
    padding: 0;
    color: var(--cd-text);
}

.cd-notification-bell > i {
    color: inherit;
    font-size: 17px;
}

.cd-notification-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--cd-bg);
    border-radius: 999px;
    color: #2b0710;
    background: #ff9aaa;
    box-shadow: 0 5px 15px rgba(255, 63, 101, 0.28);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
}

.cd-notifications-card {
    overflow: hidden;
    padding: 0;
}

.cd-notifications-card [hidden] {
    display: none !important;
}

.cd-notifications-list {
    display: flex;
    flex-direction: column;
}

.cd-notification-row {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--cd-border);
    background: rgba(255, 255, 255, 0.012);
    transition: background 160ms ease, border-color 160ms ease;
}

.cd-notification-row:last-child {
    border-bottom: 0;
}

.cd-notification-row:hover {
    background: rgba(103, 221, 255, 0.04);
}

.cd-notification-row.is-unread {
    border-left: 3px solid var(--cd-accent);
    background: linear-gradient(100deg, rgba(103, 221, 255, 0.095), rgba(45, 188, 187, 0.035) 55%, transparent);
}

.cd-notification-row-content {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cd-notification-row-copy {
    min-width: 0;
}

.cd-notification-row-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 7px;
    color: var(--cd-muted);
    font-size: 12px;
    font-weight: 650;
}

.cd-notification-row-content p {
    margin: 0;
    color: var(--cd-text);
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.cd-notification-new-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 8px;
    border: 1px solid rgba(103, 221, 255, 0.25);
    border-radius: 999px;
    color: #bdeffc;
    background: rgba(46, 158, 189, 0.18);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cd-notification-period {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    color: var(--cd-muted);
    font-size: 12px;
    font-weight: 650;
}

.cd-notification-action-button {
    width: max-content;
    min-height: 38px;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 13px;
}

.cd-notifications-empty,
.cd-notifications-loading,
.cd-notifications-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 88px;
    padding: 22px;
    color: var(--cd-muted);
    text-align: center;
}

.cd-notifications-empty {
    min-height: 240px;
    flex-direction: column;
}

.cd-notifications-empty > span {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cd-border);
    border-radius: 18px;
    color: var(--cd-accent);
    background: rgba(103, 221, 255, 0.06);
    font-size: 23px;
}

.cd-notifications-empty p {
    margin: 0;
}

.cd-notifications-loading,
.cd-notifications-end {
    border-top: 1px solid var(--cd-border);
    font-size: 13px;
}

.cd-notifications-sentinel {
    width: 100%;
    height: 1px;
}

html[data-theme="light"] .cd-notification-bell,
html[data-theme="light"] .cd-notification-bell:hover,
html[data-theme="light"] .cd-notification-bell.has-unread {
    color: #17384e;
}

html[data-theme="light"] .cd-notification-badge {
    border-color: #f4f9fb;
    color: #ffffff;
    background: #b91c3c;
    box-shadow: 0 5px 14px rgba(185, 28, 60, 0.26);
}

html[data-theme="light"] .cd-notification-row {
    background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .cd-notification-row:hover {
    background: #f3fafc;
}

html[data-theme="light"] .cd-notification-row.is-unread {
    background: linear-gradient(100deg, rgba(39, 170, 225, 0.11), rgba(45, 188, 187, 0.045) 58%, #ffffff);
}

html[data-theme="light"] .cd-notification-row-content p {
    color: #183747;
}

html[data-theme="light"] .cd-notification-new-badge {
    color: #12637b;
    border-color: rgba(39, 170, 225, 0.22);
    background: rgba(39, 170, 225, 0.09);
}

html[data-theme="light"] .cd-notifications-empty > span {
    color: #147997;
    background: #eef9fb;
}

.cd-topbar-actions .cd-account-button.is-personal-data-required,
html[data-theme="light"] .cd-topbar-actions .cd-account-button.is-personal-data-required {
    color: #ffffff;
    border-color: #b91c3c;
    background: #b91c3c;
    box-shadow: 0 10px 26px rgba(185, 28, 60, 0.28);
}

.cd-topbar-actions .cd-account-button.is-personal-data-required > i,
.cd-topbar-actions .cd-account-button.is-personal-data-required > span,
html[data-theme="light"] .cd-topbar-actions .cd-account-button.is-personal-data-required > i,
html[data-theme="light"] .cd-topbar-actions .cd-account-button.is-personal-data-required > span {
    color: #ffffff;
}

.cd-topbar-actions .cd-account-button.is-personal-data-required:hover,
html[data-theme="light"] .cd-topbar-actions .cd-account-button.is-personal-data-required:hover {
    color: #ffffff;
    border-color: #9f1239;
    background: #9f1239;
}

@media (max-width: 640px) {
    .cd-notification-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 15px;
    }

    .cd-notification-row-content {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .cd-notification-action-button {
        width: 100%;
    }
}


.cd-offer-reject-dialog {
    max-width: 500px;
}

.cd-dashboard-modal-icon.is-danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.34);
}

.cd-offer-reject-modal .cd-dashboard-modal-footer {
    justify-content: space-between;
}

html[data-theme="light"] .cd-dashboard-modal-icon.is-danger {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(185, 28, 28, 0.34);
    box-shadow: 0 8px 22px rgba(185, 28, 28, 0.12);
}

.cd-offer-reject-confirm-text {
    margin: 0;
    color: var(--cd-text, #e5eef7);
    font-size: 16px;
    line-height: 1.65;
}


.cd-button.is-approve.is-celebrating {
    animation: cd-offer-approve-button-pulse 0.7s ease-in-out infinite alternate;
}

.cd-offer-approval-celebration {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, rgba(45, 188, 187, 0.2), transparent 28%),
        radial-gradient(circle at 25% 20%, rgba(39, 170, 225, 0.18), transparent 34%),
        rgba(3, 12, 28, 0.88);
    backdrop-filter: blur(12px);
    transition: opacity 0.28s ease;
}

.cd-offer-approval-celebration.is-active {
    opacity: 1;
}

.cd-offer-approval-stars {
    position: absolute;
    inset: -8%;
    content: "";
    opacity: 0;
    background:
        radial-gradient(circle at 7% 16%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
        radial-gradient(circle at 18% 73%, rgba(118, 98, 218, 0.78) 0 1.2px, transparent 2px),
        radial-gradient(circle at 27% 32%, rgba(255, 255, 255, 0.78) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 38% 88%, rgba(69, 177, 224, 0.72) 0 1.1px, transparent 1.9px),
        radial-gradient(circle at 46% 11%, rgba(255, 255, 255, 0.86) 0 1.1px, transparent 1.8px),
        radial-gradient(circle at 57% 61%, rgba(134, 103, 222, 0.75) 0 1.3px, transparent 2.1px),
        radial-gradient(circle at 64% 26%, rgba(255, 255, 255, 0.8) 0 0.9px, transparent 1.6px),
        radial-gradient(circle at 72% 82%, rgba(53, 184, 192, 0.76) 0 1.2px, transparent 2px),
        radial-gradient(circle at 81% 43%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
        radial-gradient(circle at 91% 18%, rgba(116, 96, 215, 0.76) 0 1.2px, transparent 2px),
        radial-gradient(circle at 94% 71%, rgba(255, 255, 255, 0.76) 0 0.8px, transparent 1.5px),
        radial-gradient(circle at 13% 46%, rgba(49, 169, 218, 0.65) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 34% 54%, rgba(255, 255, 255, 0.7) 0 0.7px, transparent 1.4px),
        radial-gradient(circle at 69% 49%, rgba(255, 255, 255, 0.76) 0 0.8px, transparent 1.5px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.cd-offer-approval-stars::before,
.cd-offer-approval-stars::after {
    display: none;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-stars {
    animation: cd-offer-stars-reveal .45s ease-out forwards, cd-offer-stars-drift 7s linear infinite .45s;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-stars::before {
    animation: cd-offer-stars-layer-one .65s ease-out .08s forwards, cd-offer-stars-drift-layer-one 8.5s linear infinite .73s;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-stars::after {
    animation: cd-offer-stars-layer-two .75s ease-out .16s forwards, cd-offer-stars-drift-layer-two 10s linear infinite .91s;
}

.cd-offer-approval-orbit {
    --cd-offer-orbit-radius: min(36vw, 310px);
    position: absolute;
    width: min(72vw, 620px);
    aspect-ratio: 1;
    border: 1px solid rgba(45, 188, 187, 0.38);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.3) rotate(-150deg);
    box-shadow: 0 0 46px rgba(45, 188, 187, 0.14), inset 0 0 46px rgba(39, 170, 225, 0.08);
}

.cd-offer-approval-orbit::before,
.cd-offer-approval-orbit::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    content: "";
    background: #2dbcbb;
    box-shadow: 0 0 22px rgba(45, 188, 187, .92);
    will-change: transform;
}

.cd-offer-approval-orbit::before {
    --cd-offer-planet-start-angle: -90deg;
}

.cd-offer-approval-orbit::after {
    --cd-offer-planet-start-angle: 0deg;
    background: #27aae1;
    box-shadow: 0 0 22px rgba(39, 170, 225, .92);
}

.cd-offer-approval-orbit.orbit-two {
    --cd-offer-orbit-radius: min(26vw, 220px);
    width: min(52vw, 440px);
    border-color: rgba(39, 170, 225, 0.42);
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-orbit.orbit-one {
    animation: cd-offer-orbit-enter 1s cubic-bezier(.16,1,.28,1) .06s forwards;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-orbit.orbit-two {
    animation: cd-offer-orbit-enter-two .85s cubic-bezier(.16,1,.28,1) .18s forwards;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-orbit.orbit-one::before,
.cd-offer-approval-celebration.is-active .cd-offer-approval-orbit.orbit-one::after {
    animation: cd-offer-planet-orbit 10s linear 1.06s infinite;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-orbit.orbit-two::before,
.cd-offer-approval-celebration.is-active .cd-offer-approval-orbit.orbit-two::after {
    animation: cd-offer-planet-orbit 7s linear 1.03s infinite reverse;
}

.cd-offer-approval-core {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: min(92vw, 560px);
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: scale(.58);
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-core {
    animation: cd-offer-core-zoom .9s cubic-bezier(.16,1.3,.3,1) .22s forwards;
}

.cd-offer-approval-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 28px;
    width: 100%;
    padding: 42px 34px 38px;
    overflow: hidden;
    border: 1px solid rgba(124, 226, 221, 0.34);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(8, 27, 50, .88), rgba(10, 45, 66, .76));
    box-shadow: 0 34px 90px rgba(0, 7, 20, .48), inset 0 1px 0 rgba(255,255,255,.12), 0 0 72px rgba(45,188,187,.13);
    backdrop-filter: blur(18px);
}

.cd-offer-approval-card::before,
.cd-offer-approval-card::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.cd-offer-approval-card::before {
    width: 240px;
    height: 240px;
    top: -150px;
    right: -95px;
    background: radial-gradient(circle, rgba(39,170,225,.34), transparent 68%);
}

.cd-offer-approval-card::after {
    width: 210px;
    height: 210px;
    left: -120px;
    bottom: -145px;
    background: radial-gradient(circle, rgba(45,188,187,.32), transparent 68%);
}

.cd-offer-approval-logo {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 18px;
    opacity: 0;
    transform: translateY(-22px) rotate(-9deg) scale(.72);
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 38px rgba(0,0,0,.24), 0 0 28px rgba(39,170,225,.22);
}

.cd-offer-approval-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-logo {
    animation: cd-offer-logo-drop .72s cubic-bezier(.18,1.4,.32,1) .58s forwards, cd-offer-logo-float 2.3s ease-in-out infinite 1.3s;
}

.cd-offer-approval-check {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border: 2px solid transparent;
    border-radius: 50%;
    color: #fff;
    font-size: 50px;
    opacity: 0;
    transform: scale(.35) rotate(-24deg);
    background:
        linear-gradient(135deg, #8a59d6 0%, #6d5ed7 46%, #4d72d3 100%) padding-box,
        linear-gradient(135deg, rgba(232, 220, 255, 0.96), rgba(161, 124, 228, 0.92) 52%, rgba(93, 182, 225, 0.82)) border-box;
    box-shadow: 0 0 0 0 rgba(116,88,215,.24), 0 24px 70px rgba(0,0,0,.34), 0 0 52px rgba(116,88,215,.42);
}

.cd-offer-approval-check::after {
    position: absolute;
    inset: -15px;
    border: 2px solid rgba(168, 137, 231, 0.5);
    border-radius: inherit;
    content: "";
    opacity: 0;
    transform: scale(.55);
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-check {
    animation: cd-offer-check-pop .72s cubic-bezier(.16,1.5,.34,1) .82s forwards, cd-offer-check-glow 1.4s ease-in-out infinite 1.54s;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-check::after {
    animation: cd-offer-check-wave .9s ease-out 1.02s forwards;
}

.cd-offer-approval-check i {
    transform: scale(.2) rotate(-35deg);
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-check i {
    animation: cd-offer-check-icon .48s cubic-bezier(.2,1.45,.35,1) 1.02s forwards;
}

.cd-offer-approval-core strong {
    position: relative;
    z-index: 1;
    max-width: 470px;
    font-size: 28px;
    letter-spacing: .02em;
    line-height: 1.18;
    opacity: 0;
    transform: translateY(22px);
    text-shadow: 0 0 28px rgba(45, 188, 187, .42);
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-core strong {
    animation: cd-offer-title-rise .62s cubic-bezier(.2,1,.3,1) 1.12s forwards;
}

html[data-theme="light"] .cd-offer-approval-celebration {
    background:
        radial-gradient(circle at 50% 45%, rgba(45, 188, 187, 0.22), transparent 29%),
        radial-gradient(circle at 25% 20%, rgba(39, 170, 225, 0.2), transparent 35%),
        rgba(232, 246, 252, 0.94);
}

html[data-theme="light"] .cd-offer-approval-core {
    color: #17384e;
}

html[data-theme="light"] .cd-offer-approval-card {
    border-color: rgba(39,170,225,.28);
    background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(228,245,247,.92));
    box-shadow: 0 32px 80px rgba(23,56,78,.2), inset 0 1px 0 rgba(255,255,255,.9), 0 0 58px rgba(39,170,225,.12);
}

html[data-theme="light"] .cd-offer-approval-core strong {
    text-shadow: 0 0 26px rgba(39, 170, 225, .28);
}

@keyframes cd-offer-approve-button-pulse {
    from { transform: translateY(0) scale(1); box-shadow: 0 10px 24px rgba(45,188,187,.18); }
    to { transform: translateY(-2px) scale(1.025); box-shadow: 0 16px 38px rgba(45,188,187,.4); }
}

@keyframes cd-offer-stars-reveal {
    to { opacity: 1; }
}

@keyframes cd-offer-stars-layer-one {
    to { opacity: .72; transform: rotate(37deg) scale(.84); }
}

@keyframes cd-offer-stars-layer-two {
    to { opacity: .5; transform: rotate(-24deg) scale(1.1); }
}

@keyframes cd-offer-stars-drift {
    to { transform: translate3d(45px, 32px, 0) rotate(4deg); }
}

@keyframes cd-offer-stars-drift-layer-one {
    from { transform: rotate(37deg) scale(.84); }
    to { transform: translate3d(-34px, 42px, 0) rotate(43deg) scale(.84); }
}

@keyframes cd-offer-stars-drift-layer-two {
    from { transform: rotate(-24deg) scale(1.1); }
    to { transform: translate3d(38px, -28px, 0) rotate(-18deg) scale(1.1); }
}

@keyframes cd-offer-orbit-enter {
    from { transform: scale(.3) rotate(-150deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes cd-offer-orbit-enter-two {
    from { transform: scale(.25) rotate(140deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes cd-offer-planet-orbit {
    from {
        transform: translate(-50%, -50%) rotate(var(--cd-offer-planet-start-angle)) translateX(var(--cd-offer-orbit-radius));
    }
    to {
        transform: translate(-50%, -50%) rotate(calc(var(--cd-offer-planet-start-angle) + 360deg)) translateX(var(--cd-offer-orbit-radius));
    }
}

@keyframes cd-offer-core-zoom {
    0% { opacity: 0; transform: scale(.58); }
    68% { opacity: 1; transform: scale(1.055); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes cd-offer-logo-drop {
    0% { opacity: 0; transform: translateY(-22px) rotate(-9deg) scale(.72); }
    72% { opacity: 1; transform: translateY(3px) rotate(2deg) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes cd-offer-logo-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(1.5deg); }
}

@keyframes cd-offer-check-pop {
    0% { opacity: 0; transform: scale(.35) rotate(-24deg); box-shadow: 0 0 0 0 rgba(45,188,187,.24), 0 24px 70px rgba(0,0,0,.34), 0 0 52px rgba(45,188,187,.42); }
    72% { opacity: 1; transform: scale(1.12) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); box-shadow: 0 0 0 14px rgba(45,188,187,.09), 0 24px 70px rgba(0,0,0,.34), 0 0 52px rgba(45,188,187,.42); }
}

@keyframes cd-offer-check-icon {
    to { transform: scale(1) rotate(0); }
}

@keyframes cd-offer-check-wave {
    0% { opacity: .8; transform: scale(.55); }
    100% { opacity: 0; transform: scale(1.45); }
}

@keyframes cd-offer-check-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

@keyframes cd-offer-title-rise {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .cd-button.is-approve.is-celebrating,
    .cd-offer-approval-stars,
    .cd-offer-approval-stars::before,
    .cd-offer-approval-stars::after,
    .cd-offer-approval-orbit,
    .cd-offer-approval-core,
    .cd-offer-approval-logo,
    .cd-offer-approval-check,
    .cd-offer-approval-check::after,
    .cd-offer-approval-check i,
    .cd-offer-approval-core strong {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==================== 14. Shared component normalization ==================== */

:root {
    --cd-dashboard-module-accent: 92, 111, 216;
    --cd-dashboard-module-secondary: 45, 188, 187;
}

html.cd-theme-document a:hover,
html.cd-theme-document a:focus,
.cd-theme-scope a:hover,
.cd-theme-scope a:focus {
    color: inherit;
    text-decoration: none;
}

html.cd-theme-document button:focus,
html.cd-theme-document button.focus,
html.cd-theme-document .btn:focus,
html.cd-theme-document .btn.focus,
.cd-theme-scope button:focus,
.cd-theme-scope button.focus,
.cd-theme-scope .btn:focus,
.cd-theme-scope .btn.focus {
    outline: 0;
    box-shadow: none;
}

html.cd-theme-document input:focus,
html.cd-theme-document select:focus,
html.cd-theme-document textarea:focus,
html.cd-theme-document .form-control:focus,
.cd-theme-scope input:focus,
.cd-theme-scope select:focus,
.cd-theme-scope textarea:focus,
.cd-theme-scope .form-control:focus {
    outline: 0;
}

html.cd-theme-document .form-control:focus,
.cd-theme-scope .form-control:focus {
    box-shadow: none;
}

.cd-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: rgba(120, 184, 218, 0.22);
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 12px 26px rgba(0, 7, 22, 0.2), inset 1px 0 0 rgba(87, 177, 232, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.cd-icon-button:hover,
.cd-icon-button:focus-visible {
    border-color: rgba(105, 192, 225, 0.34);
    box-shadow: 0 15px 31px rgba(0, 7, 22, 0.24), inset 1px 0 0 rgba(105, 202, 244, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .cd-icon-button {
    color: #315d76;
    border-color: rgba(73, 137, 174, 0.14);
    background: linear-gradient(105deg, rgba(239, 247, 252, 0.98), rgba(232, 246, 251, 0.96) 58%, rgba(232, 249, 246, 0.92)) padding-box;
    box-shadow: 0 11px 24px rgba(52, 91, 118, 0.09), inset 1px 0 0 rgba(99, 183, 230, 0.68), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-icon-button:hover,
html[data-theme="light"] .cd-icon-button:focus-visible {
    color: #214f69;
    border-color: rgba(66, 139, 179, 0.22);
    background: linear-gradient(105deg, rgba(246, 251, 254, 1), rgba(238, 249, 253, 0.99) 58%, rgba(238, 252, 249, 0.97)) padding-box;
    box-shadow: 0 13px 28px rgba(52, 91, 118, 0.11), inset 1px 0 0 rgba(76, 169, 216, 0.76), inset 0 1px 0 #ffffff;
}


:where(html.cd-theme-document, .cd-theme-scope) .text-muted {
    color: #8ca8b9 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .table {
    color: #d2e3ec;
}

:where(html.cd-theme-document, .cd-theme-scope) .table-hover tbody tr:hover {
    color: #edf8fc;
    background-color: rgba(64, 142, 181, 0.09);
}

:where(html.cd-theme-document, .cd-theme-scope) .nav-pills .nav-link.active,
:where(html.cd-theme-document, .cd-theme-scope) .nav-pills .show > .nav-link {
    border-color: rgba(105, 97, 212, 0.28);
    color: #ffffff;
    background: linear-gradient(105deg, #7657ca, #4b71cb 48%, #2f93c6);
    box-shadow: 0 8px 20px rgba(31, 45, 108, 0.18);
}

html[data-theme="light"].cd-theme-document .text-muted,
html[data-theme="light"] .cd-theme-scope .text-muted {
    color: #617f91 !important;
}

html[data-theme="light"].cd-theme-document .table,
html[data-theme="light"] .cd-theme-scope .table {
    color: #294f66;
}

html[data-theme="light"].cd-theme-document .table-hover tbody tr:hover,
html[data-theme="light"] .cd-theme-scope .table-hover tbody tr:hover {
    color: #17384e;
    background-color: rgba(48, 137, 181, 0.06);
}

.cd-icon-button[hidden] {
    display: none !important;
}

.cd-section-heading {
    overflow: visible;
}

.cd-radio-group {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(109, 184, 213, 0.16);
    border-radius: 14px;
    background: rgba(5, 20, 32, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-radio-group label {
    min-width: 74px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--cd-muted);
    background: transparent;
    cursor: pointer;
    font-weight: 720;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cd-radio-group label:hover {
    color: var(--cd-text);
    background: rgba(89, 173, 218, 0.07);
}

.cd-radio-group label:has(input:checked) {
    border-color: rgba(84, 194, 221, 0.26);
    color: #effcff;
    background: linear-gradient(135deg, rgba(86, 80, 188, 0.42), rgba(34, 139, 175, 0.34));
    box-shadow: 0 7px 16px rgba(0, 8, 22, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cd-radio-group input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    max-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none;
}

.cd-radio-group input[type="radio"]:focus + span,
.cd-radio-group input[type="radio"]:focus-visible + span {
    outline: 0;
}

.cd-radio-group label:has(input:disabled) {
    cursor: default;
    opacity: 0.62;
}

html[data-theme="light"] .cd-radio-group {
    border-color: rgba(66, 113, 145, 0.15);
    background: rgba(231, 242, 248, 0.78);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-radio-group label:has(input:checked) {
    border-color: rgba(58, 125, 171, 0.2);
    color: #244d68;
    background: linear-gradient(145deg, #ffffff, #e4f2f8);
    box-shadow: 0 6px 15px rgba(49, 86, 111, 0.1), inset 0 1px 0 #ffffff;
}

.cd-seo-report-card-header .cd-seo-report-card-icon.cd-representative-icon,
.cd-seo-keyword-location-heading .cd-seo-report-card-icon.cd-representative-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    display: inline-grid;
    flex: 0 0 48px;
    place-items: center;
    color: #effcff;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.cd-seo-report-card-header .cd-seo-report-card-icon.cd-representative-icon > i,
.cd-seo-keyword-location-heading .cd-seo-report-card-icon.cd-representative-icon > i {
    display: block;
    margin: 0;
    color: inherit;
    font-size: 1em;
    line-height: 1;
}

html[data-theme="light"] .cd-seo-report-card-header .cd-seo-report-card-icon.cd-representative-icon,
html[data-theme="light"] .cd-seo-keyword-location-heading .cd-seo-report-card-icon.cd-representative-icon {
    color: #4f3d9f;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-ai-scope-note {
    font-size: 14px;
    line-height: 1.55;
}

.cd-report-month-select-wrap {
    position: relative;
    min-width: 238px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cd-report-month-select-wrap > i:first-child,
.cd-report-month-select-wrap > .cd-report-month-chevron {
    position: absolute;
    z-index: 3;
    top: 50%;
    pointer-events: none;
    transform: translateY(-50%);
}

.cd-report-month-select-wrap > i:first-child {
    left: 14px;
}

.cd-report-month-select-wrap > .cd-report-month-chevron {
    right: 15px;
    left: auto;
}

.cd-report-month-input,
.cd-report-month-select-wrap .flatpickr-input,
.cd-report-month-select-wrap .form-control {
    min-width: 0;
    padding-right: 40px;
    padding-left: 40px;
    text-overflow: ellipsis;
}

.cd-dashboard-table-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--cd-dashboard-module-accent), 0.15), transparent 13rem),
        linear-gradient(145deg, rgba(16, 42, 62, 0.95), rgba(8, 29, 45, 0.9));
}

html[data-theme="light"] .cd-dashboard-table-panel {
    border-color: rgba(var(--cd-dashboard-module-accent), 0.15);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--cd-dashboard-module-accent), 0.11), transparent 13rem),
        linear-gradient(145deg, #ffffff, #eaf5fa 76%, #e5f2f7);
    box-shadow: 0 17px 38px rgba(52, 84, 109, 0.11), inset 0 1px 0 #ffffff;
}

.cd-dashboard-delta {
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

html[data-theme="light"] .cd-dashboard-delta.is-positive {
    border: 1px solid rgba(29, 139, 101, 0.18);
    color: #126b50 !important;
    background: rgba(38, 167, 121, 0.11);
}

html[data-theme="light"] .cd-dashboard-status-pill {
    border: 1px solid rgba(38, 130, 176, 0.17);
    color: #1c6285;
    background: rgba(47, 145, 189, 0.11);
}

html[data-theme="light"] .cd-dashboard-status-pill.is-sent {
    border-color: rgba(31, 135, 98, 0.17);
    color: #16664e;
    background: rgba(42, 160, 117, 0.11);
}

html[data-theme="light"] .cd-dashboard-modal-dialog {
    box-shadow: 0 25px 70px rgba(36, 68, 91, 0.19), 0 8px 24px rgba(53, 124, 161, 0.08), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-dashboard-modal-icon:not(.is-danger) {
    border-color: rgba(39, 170, 225, 0.22);
    color: #17678f;
    background: linear-gradient(145deg, rgba(39, 170, 225, 0.12), rgba(45, 188, 187, 0.08));
    box-shadow: 0 6px 16px rgba(36, 99, 132, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.cd-seo-results-modal-dialog header button {
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #c8dce7;
    background: linear-gradient(145deg, rgba(31, 64, 84, 0.9), rgba(17, 43, 61, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cd-seo-results-modal-dialog header button:hover,
.cd-seo-results-modal-dialog header button:focus-visible {
    border-color: rgba(91, 198, 222, 0.38);
    color: #ffffff;
    background: linear-gradient(145deg, rgba(46, 94, 119, 0.95), rgba(25, 67, 86, 0.92));
    box-shadow: 0 8px 18px rgba(0, 8, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

html[data-theme="light"] .cd-seo-results-modal-dialog header button {
    border-color: rgba(64, 117, 149, 0.18);
    color: #315f79;
    background: linear-gradient(145deg, #ffffff, #e9f3f7);
    box-shadow: 0 5px 14px rgba(48, 85, 108, 0.08), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-seo-results-modal-dialog header button:hover,
html[data-theme="light"] .cd-seo-results-modal-dialog header button:focus-visible {
    border-color: rgba(39, 139, 181, 0.3);
    color: #174c68;
    background: linear-gradient(145deg, #ffffff, #dff1f7);
    box-shadow: 0 7px 17px rgba(48, 85, 108, 0.11), inset 0 1px 0 #ffffff;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-subtitle {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 4px;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu .heatmap-report-visible-type-info-link {
    width: auto;
    justify-self: start;
    text-align: left;
}

@media (max-width: 767px) {
    html.cd-theme-document input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    html.cd-theme-document select,
    html.cd-theme-document textarea,
    html.cd-theme-document .form-control:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    .cd-theme-scope input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    .cd-theme-scope select,
    .cd-theme-scope textarea,
    .cd-theme-scope .form-control:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
        font-size: 16px !important;
    }
}

@media (min-width: 768px) {
    .cd-listing-table-wrap {
        overflow-x: visible;
        overflow-y: visible;
    }
}

@media (max-width: 767px) {
    .cd-listing-table-wrap {
        overflow-x: auto;
        overflow-y: hidden;
    }
}

.cd-audit-admin-report .audit-rich-ai-signals {
    padding: 15px;
    border-radius: 16px;
}

.cd-audit-admin-report .audit-rich-ai-signals .audit-rich-block-title {
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.cd-audit-admin-report .audit-ai-signal-list {
    gap: 14px;
}

.cd-audit-admin-report .audit-ai-signal {
    overflow: hidden;
    border-width: 1px 1px 1px 3px;
    border-radius: 13px;
    background: rgba(5, 24, 38, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cd-audit-admin-report .audit-ai-signal-header {
    align-items: flex-start;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(112, 165, 194, 0.14);
    background: rgba(10, 36, 52, 0.76);
}

.cd-audit-admin-report .audit-ai-signal-header > div:first-child {
    flex: 1 1 auto;
    display: grid;
    gap: 4px;
}

.cd-audit-admin-report .audit-ai-signal-header strong {
    font-size: 14px;
    line-height: 1.35;
}

.cd-audit-admin-report .audit-ai-signal-header span {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.5;
}

.cd-audit-admin-report .audit-ai-signal-status {
    min-width: 92px;
    display: grid;
    flex: 0 0 auto;
    gap: 3px;
    text-align: right;
}

.cd-audit-admin-report .audit-ai-signal-status span {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.cd-audit-admin-report .audit-ai-signal-status strong {
    font-size: 14px;
}

.cd-audit-admin-report .audit-ai-signal-content {
    gap: 0;
    background: rgba(3, 18, 29, 0.24);
}

.cd-audit-admin-report .audit-ai-signal-content > div {
    min-width: 0;
    padding: 14px 16px;
    border-right-color: rgba(112, 165, 194, 0.13);
}

.cd-audit-admin-report .audit-ai-signal-content small {
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.055em;
}

.cd-audit-admin-report .audit-ai-signal-content p {
    font-size: 13px;
    line-height: 1.55;
}

html[data-theme="light"] .cd-audit-admin-report .audit-rich-ai-signals {
    border-color: rgba(69, 118, 148, 0.14);
    background: rgba(247, 251, 253, 0.9);
}

html[data-theme="light"] .cd-audit-admin-report .audit-ai-signal {
    border-color: rgba(74, 119, 147, 0.15);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(54, 86, 108, 0.055), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-report .audit-ai-signal-header {
    border-bottom-color: rgba(69, 112, 139, 0.11);
    background: linear-gradient(110deg, rgba(246, 251, 253, 0.98), rgba(238, 247, 250, 0.94));
}

html[data-theme="light"] .cd-audit-admin-report .audit-ai-signal-content {
    background: rgba(248, 252, 253, 0.72);
}

html[data-theme="light"] .cd-audit-admin-report .audit-ai-signal-content > div {
    border-right-color: rgba(69, 112, 139, 0.1) !important;
}

@media (max-width: 767px) {
    .cd-audit-admin-report .audit-rich-ai-signals {
        padding: 12px;
    }

    .cd-audit-admin-report .audit-ai-signal-header {
        gap: 10px;
        padding: 13px 14px;
    }

    .cd-audit-admin-report .audit-ai-signal-status {
        min-width: 0;
        text-align: left;
    }

    .cd-audit-admin-report .audit-ai-signal-content > div {
        padding: 13px 14px;
    }
}

.cd-audit-admin-report .audit-ai-signal-pass {
    border-left-color: #35b979;
}

.cd-audit-admin-report .audit-ai-signal-warn {
    border-left-color: #dba33e;
}

.cd-audit-admin-report .audit-ai-signal-fail {
    border-left-color: #df667c;
}

html[data-theme="light"] .cd-audit-admin-report .audit-ai-signal-pass {
    border-left-color: #2fa76c;
}

html[data-theme="light"] .cd-audit-admin-report .audit-ai-signal-warn {
    border-left-color: #c98b24;
}

html[data-theme="light"] .cd-audit-admin-report .audit-ai-signal-fail {
    border-left-color: #cc5269;
}


/* ==================== 16. Main CRM report/list/form compatibility ==================== */
.cd-client-report-list-shell,
.cd-seo-admin-list-shell {
    width: 100%;
    min-width: 0;
}

.cd-client-report-list-shell > .cd-card,
.cd-seo-admin-list-shell > .cd-card {
    width: 100%;
}

.cd-listing-loading-overlay {
    color: var(--cd-muted);
    background:
        radial-gradient(circle at 84% 14%, rgba(118, 86, 197, .16), transparent 18rem),
        rgba(5, 20, 33, .92) !important;
    backdrop-filter: blur(5px);
}

html[data-theme="light"] .cd-listing-loading-overlay {
    color: #688295;
    background:
        radial-gradient(circle at 84% 14%, rgba(118, 86, 197, .08), transparent 18rem),
        rgba(248, 252, 254, .92) !important;
}

.cd-seo-admin-summary-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    padding: 14px;
    border: 1px solid rgba(109, 173, 205, .13);
    border-radius: 16px;
    background:
        radial-gradient(circle at 96% 0%, rgba(118, 86, 197, .11), transparent 14rem),
        linear-gradient(145deg, rgba(11, 35, 52, .94), rgba(6, 24, 39, .9));
    box-shadow: 0 14px 34px rgba(0, 8, 22, .16), inset 0 1px 0 rgba(255,255,255,.035);
}

.cd-seo-admin-summary-body {
    min-width: 0;
}

.cd-seo-admin-summary-table-wrap {
    overflow-x: auto;
}

.cd-seo-admin-summary-table {
    width: 100%;
    margin: 0;
    color: var(--cd-text);
    border-collapse: separate;
    border-spacing: 0 5px;
}

.cd-seo-admin-summary-table td {
    padding: 8px 9px;
    border: 0;
    color: var(--cd-text);
    vertical-align: middle;
}

.cd-seo-admin-summary-table tbody tr {
    background: rgba(255,255,255,.025);
}

.cd-seo-admin-summary-table tbody tr:hover {
    background: rgba(69, 142, 180, .08);
}

.cd-seo-admin-summary-table .btn-group {
    gap: 5px;
}

.cd-seo-admin-summary-table .btn-group > .btn {
    border-radius: 10px !important;
}

html[data-theme="light"] .cd-seo-admin-summary-card {
    border-color: rgba(69, 127, 166, .13);
    background:
        radial-gradient(circle at 96% 0%, rgba(118, 86, 197, .07), transparent 14rem),
        linear-gradient(145deg, #ffffff, #f2f8fb);
    box-shadow: 0 14px 30px rgba(46, 86, 111, .08), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-seo-admin-summary-table td {
    color: #294b63;
}

html[data-theme="light"] .cd-seo-admin-summary-table tbody tr {
    background: rgba(78, 133, 165, .035);
}

.cd-admin-report-form-page {
    min-width: 0;
    padding-bottom: 28px;
}

.cd-admin-report-form-page > .page-header {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    padding: 19px 22px;
    overflow: hidden;
    border: 1px solid rgba(106, 174, 207, .14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% -45%, rgba(130, 88, 200, .22), transparent 18rem),
        radial-gradient(circle at 8% 130%, rgba(45, 189, 187, .1), transparent 19rem),
        linear-gradient(130deg, rgba(12, 39, 58, .96), rgba(7, 27, 43, .94));
    box-shadow: 0 18px 42px rgba(0, 8, 22, .18), inset 0 1px 0 rgba(255,255,255,.04);
}

.cd-admin-report-form-page > .page-header::after {
    content: "";
    position: absolute;
    top: -38px;
    right: 14%;
    width: 220px;
    height: 110px;
    border: 1px solid rgba(132, 110, 215, .18);
    border-radius: 50%;
    opacity: .62;
    transform: rotate(-11deg);
    pointer-events: none;
}

.cd-admin-report-form-page > .page-header > .container-fluid {
    position: relative;
    z-index: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 16px;
    padding: 0;
}

.cd-admin-report-form-page > .page-header > .container-fluid:has(> :only-child) {
    justify-content: flex-start;
}

.cd-admin-report-form-page > .page-header .float-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.cd-admin-report-form-page > .page-header h1,
.cd-admin-report-form-page > .page-header .page-header-h1-cont {
    order: 1;
    margin: 0;
}

.cd-admin-report-form-page > .page-header h1 {
    color: var(--cd-text);
    font-family: var(--ds-font-heading);
    line-height: 1.15;
}

.cd-admin-report-form-page > .container-fluid,
.cd-seo-admin-form-page > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.cd-admin-report-form-page > .container-fluid > .row > .col-12 > .card.card-body.p-2,
.cd-admin-report-form-page > .container-fluid > .card,
.cd-seo-admin-form-page > .container-fluid > .card {
    border: 1px solid rgba(105, 169, 201, .12);
    border-radius: 17px;
    color: var(--cd-text);
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .08), transparent 18rem),
        linear-gradient(145deg, rgba(11, 35, 52, .92), rgba(6, 24, 39, .88));
    box-shadow: 0 14px 34px rgba(0,8,22,.14), inset 0 1px 0 rgba(255,255,255,.035);
}

.cd-admin-report-form-page .tab-content > .tab-pane > .card.card-body,
.cd-admin-report-form-page .tab-content > .tab-pane.card.card-body,
.cd-seo-admin-form-page .tab-content > .tab-pane {
    color: var(--cd-text);
    border-color: rgba(106, 172, 203, .12) !important;
    background:
        radial-gradient(circle at 96% 0%, rgba(118,86,197,.07), transparent 17rem),
        rgba(6, 24, 39, .83) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-admin-report-form-page .tab-content > .tab-pane,
.cd-seo-admin-form-page .tab-content > .tab-pane {
    padding-top: 18px;
}

.cd-admin-report-form-page .btn-group:not(.dropdown):not(.cd-listing-action-group),
.cd-seo-admin-form-page .btn-group:not(.dropdown) {
    gap: 6px;
}

.cd-admin-report-form-page .btn-group:not(.dropdown) > .btn,
.cd-seo-admin-form-page .btn-group:not(.dropdown) > .btn {
    border-radius: 10px !important;
}

.cd-admin-report-form-page .alert,
.cd-seo-admin-form-page .alert {
    border-radius: 13px;
}

.cd-audit-admin-page #audit-report-container.cd-audit-admin-report {
    margin-top: 0;
}

.cd-audit-admin-page .main-report-check-card,
.cd-audit-admin-page .audit-report-progress-summary-card {
    border-color: rgba(106, 172, 203, .13);
    background: rgba(8, 29, 45, .86);
}

.cd-heatmap-admin-page #tab-pages > .card,
.cd-heatmap-admin-page #tab-reports-history > .card,
.cd-heatmap-admin-page #tab-settings > form > .card {
    border: 1px solid rgba(105, 169, 201, .12) !important;
    border-radius: 17px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .08), transparent 18rem),
        rgba(6, 24, 39, .84) !important;
}

.cd-heatmap-admin-page #heatmap-pages-table,
.cd-seo-admin-form-page .table {
    border-radius: 13px;
}

.cd-seo-admin-form-page .card > .card-body {
    padding: clamp(15px, 2vw, 24px);
}

.cd-seo-admin-form-page .form-control[style*="height: 350px"],
.cd-seo-admin-form-page .form-control[style*="height: 300px"] {
    border-color: rgba(109, 176, 207, .15);
    background: rgba(4, 18, 31, .66);
}

.cd-task-admin-page {
    min-width: 0;
    padding-bottom: 28px;
}

.cd-task-admin-page > .page-header {
    margin-bottom: 18px;
}

.cd-task-admin-page > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.cd-task-admin-page #task-main-user-tabs-config-btn,
.cd-task-admin-page #task-list-settings-open-btn {
    border: 1px solid rgba(108,174,211,.18);
    border-radius: 11px;
    color: #b9d9e9;
    background: rgba(7, 26, 42, .78);
}

.cd-task-admin-page #task-status-tabs-card,
.cd-task-admin-page #task > .card,
.cd-task-admin-page .task-live-update-toast {
    border: 1px solid rgba(105, 169, 201, .12);
    border-radius: 17px;
    color: var(--cd-text);
    background:
        radial-gradient(circle at 100% 0%, rgba(118,86,197,.08), transparent 16rem),
        linear-gradient(145deg, rgba(11,35,52,.93), rgba(6,24,39,.9));
    box-shadow: 0 14px 32px rgba(0,8,22,.14), inset 0 1px 0 rgba(255,255,255,.03);
}

.cd-task-admin-page .tasks-container .card,
.cd-task-admin-page .task-subtask-table,
.cd-task-admin-page .task-list-heading {
    color: var(--cd-text);
}

.cd-task-admin-page .task-subtask-table tbody tr:hover,
.cd-task-modal .table-hover tbody tr:hover {
    color: var(--cd-text);
    background: rgba(78, 145, 178, .08);
}

.cd-task-modal .card,
.cd-task-modal .list-group-item {
    color: var(--cd-text);
    border-color: rgba(107, 170, 201, .13);
    background: rgba(8, 29, 45, .84);
}

.cd-task-modal .btn-link,
.cd-task-modal .text-dark {
    color: #d9ebf4 !important;
    text-decoration: none;
}

.cd-task-modal .bg-white,
.cd-task-admin-page .bg-white {
    color: var(--cd-text) !important;
    background: rgba(5, 20, 33, .72) !important;
}

.cd-task-admin-page .bg-light,
.cd-task-modal .bg-light {
    color: var(--cd-text) !important;
    background: rgba(255,255,255,.035) !important;
}

html[data-theme="light"] .cd-admin-report-form-page > .page-header {
    border-color: rgba(66, 126, 164, .13);
    background:
        radial-gradient(circle at 92% -45%, rgba(118, 86, 197, .1), transparent 18rem),
        radial-gradient(circle at 8% 130%, rgba(45, 189, 187, .07), transparent 19rem),
        linear-gradient(130deg, #ffffff, #edf7fb);
    box-shadow: 0 18px 38px rgba(47, 86, 112, .08), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-admin-report-form-page > .page-header h1 {
    color: #17384e;
}

html[data-theme="light"] .cd-admin-report-form-page > .container-fluid > .row > .col-12 > .card.card-body.p-2,
html[data-theme="light"] .cd-admin-report-form-page > .container-fluid > .card,
html[data-theme="light"] .cd-seo-admin-form-page > .container-fluid > .card,
html[data-theme="light"] .cd-admin-report-form-page .tab-content > .tab-pane > .card.card-body,
html[data-theme="light"] .cd-admin-report-form-page .tab-content > .tab-pane.card.card-body,
html[data-theme="light"] .cd-seo-admin-form-page .tab-content > .tab-pane,
html[data-theme="light"] .cd-heatmap-admin-page #tab-pages > .card,
html[data-theme="light"] .cd-heatmap-admin-page #tab-reports-history > .card,
html[data-theme="light"] .cd-heatmap-admin-page #tab-settings > form > .card,
html[data-theme="light"] .cd-task-admin-page #task-status-tabs-card,
html[data-theme="light"] .cd-task-admin-page #task > .card,
html[data-theme="light"] .cd-task-admin-page .task-live-update-toast,
html[data-theme="light"] .cd-task-modal .card,
html[data-theme="light"] .cd-task-modal .list-group-item {
    color: #294b63;
    border-color: rgba(66, 126, 164, .12) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118,86,197,.055), transparent 16rem),
        linear-gradient(145deg, #ffffff, #f1f8fb) !important;
    box-shadow: 0 12px 28px rgba(48, 86, 111, .07), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-task-modal .btn-link,
html[data-theme="light"] .cd-task-modal .text-dark {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-task-modal .bg-white,
html[data-theme="light"] .cd-task-admin-page .bg-white {
    color: #294b63 !important;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-task-admin-page .bg-light,
html[data-theme="light"] .cd-task-modal .bg-light {
    color: #365a70 !important;
    background: #eef6f9 !important;
}

.cd-document-editor-form-page .cd-form-tabs-card {
    padding: 7px;
}

.cd-document-editor-form-page .cd-form-tabs-card .cd-form-card-body {
    padding: 0;
}

.cd-document-editor-form-page .document-editor-column,
.cd-document-editor-form-page .document-fields-sidebar-column {
    min-width: 0;
}


/* Update 11: report-admin compatibility audit */
/* Untouched report/task form controls inherit the same Regantis form surface. */
.cd-admin-report-form-page .form-control,
.cd-admin-report-form-page .custom-select,
.cd-admin-report-form-page .input-group-text,
.cd-task-admin-page .form-control,
.cd-task-admin-page .custom-select,
.cd-task-admin-page .input-group-text,
.cd-task-modal .form-control,
.cd-task-modal .custom-select,
.cd-task-modal .input-group-text,
#task-filter-fixed .form-control,
#task-filter-fixed .custom-select,
#task-filter-fixed .input-group-text {
    border-color: rgba(107, 174, 207, .18) !important;
    color: #dbeef6 !important;
    background: rgba(3, 18, 31, .74) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-admin-report-form-page .form-control:focus,
.cd-admin-report-form-page .custom-select:focus,
.cd-task-admin-page .form-control:focus,
.cd-task-admin-page .custom-select:focus,
.cd-task-modal .form-control:focus,
.cd-task-modal .custom-select:focus,
#task-filter-fixed .form-control:focus,
#task-filter-fixed .custom-select:focus {
    border-color: rgba(116, 211, 234, .48) !important;
    box-shadow: 0 0 0 3px rgba(77, 169, 255, .08) !important;
}

.cd-admin-report-form-page .form-control::placeholder,
.cd-task-admin-page .form-control::placeholder,
.cd-task-modal .form-control::placeholder,
#task-filter-fixed .form-control::placeholder {
    color: #718fa0;
    opacity: 1;
}

.cd-admin-report-form-page .page-header-h1-cont {
    order: 1;
    min-width: 0;
    flex: 1 1 auto;
    margin-right: auto;
}

.cd-admin-report-form-page > .page-header .float-right {
    order: 2;
    flex: 0 0 auto;
    margin-left: 0;
}

#task-filter-fixed {
    position: fixed;
    top: var(--cd-filter-fixed-top, 78px);
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 1038;
    width: min(360px, 100vw);
    height: auto;
    padding: 0;
    overflow: visible;
}

#task-filter-fixed > .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    border-width: 0 0 0 1px;
    border-style: solid;
    border-color: rgba(113, 183, 211, .17);
    border-radius: 0;
    background:
        radial-gradient(ellipse at 88% 15%, rgba(129, 102, 205, .16), transparent 16rem),
        linear-gradient(180deg, rgba(9, 32, 49, .99), rgba(4, 19, 31, .99));
    box-shadow: -18px 0 42px rgba(0,8,22,.22);
}

#task-filter-fixed .card-header {
    flex: 0 0 auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid rgba(109, 177, 207, .13);
    color: #dff4fb;
    background: transparent;
    font-weight: 760;
}

#task-filter-fixed .close-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 1px solid rgba(111, 181, 211, .18);
    border-radius: 11px;
    color: #a9c8d8;
    background: rgba(255,255,255,.035);
    cursor: pointer;
}

#task-filter-fixed .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    color: var(--cd-text);
    background: transparent;
}

#task-filter-fixed .card-footer {
    flex: 0 0 auto;
    padding: 14px 18px 18px;
    border: 0;
    border-top: 1px solid rgba(109, 177, 207, .12);
    background: rgba(3,16,28,.34);
}

html[data-theme="light"] .cd-admin-report-form-page .form-control,
html[data-theme="light"] .cd-admin-report-form-page .custom-select,
html[data-theme="light"] .cd-admin-report-form-page .input-group-text,
html[data-theme="light"] .cd-task-admin-page .form-control,
html[data-theme="light"] .cd-task-admin-page .custom-select,
html[data-theme="light"] .cd-task-admin-page .input-group-text,
html[data-theme="light"] .cd-task-modal .form-control,
html[data-theme="light"] .cd-task-modal .custom-select,
html[data-theme="light"] .cd-task-modal .input-group-text,
html[data-theme="light"] #task-filter-fixed .form-control,
html[data-theme="light"] #task-filter-fixed .custom-select,
html[data-theme="light"] #task-filter-fixed .input-group-text {
    border-color: rgba(68, 126, 163, .16) !important;
    color: #294b63 !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-admin-report-form-page .form-control::placeholder,
html[data-theme="light"] .cd-task-admin-page .form-control::placeholder,
html[data-theme="light"] .cd-task-modal .form-control::placeholder,
html[data-theme="light"] #task-filter-fixed .form-control::placeholder {
    color: #8196a4;
}

html[data-theme="light"] #task-filter-fixed > .card {
    border-left-color: rgba(68,126,163,.14);
    background:
        radial-gradient(ellipse at 88% 15%, rgba(118,86,197,.075), transparent 16rem),
        linear-gradient(180deg, #ffffff, #f1f8fb);
    box-shadow: -16px 0 34px rgba(47,86,111,.1);
}

html[data-theme="light"] #task-filter-fixed .card-header {
    color: #294b63;
    border-bottom-color: rgba(68,126,163,.11);
}

html[data-theme="light"] #task-filter-fixed .close-filter {
    border-color: rgba(68,126,163,.14);
    background: #f2f8fb;
}

html[data-theme="light"] #task-filter-fixed .card-footer {
    border-top-color: rgba(68,126,163,.11);
    background: rgba(238,247,251,.8);
}

/* Existing Bootstrap button markup inside untouched report/task forms uses the Regantis control geometry. */
.cd-admin-report-form-page .btn:not(.dropdown-item):not(.close),
.cd-task-admin-page .btn:not(.dropdown-item):not(.close),
.cd-seo-admin-summary-card .btn:not(.dropdown-item):not(.close) {
    box-shadow: none;
    font-weight: 690;
    text-decoration: none;
}

.cd-admin-report-form-page .btn:not(.btn-sm):not(.dropdown-item):not(.close),
.cd-task-admin-page .btn:not(.btn-sm):not(.dropdown-item):not(.close) {
    min-height: 40px;
}

.cd-admin-report-form-page .btn-sm,
.cd-task-admin-page .btn-sm,
.cd-seo-admin-summary-card .btn-sm {
    min-height: 32px;
    border-radius: 10px;
}

.cd-admin-report-form-page .btn-light,
.cd-admin-report-form-page .btn-secondary,
.cd-task-admin-page .btn-light,
.cd-task-admin-page .btn-secondary,
.cd-seo-admin-summary-card .btn-light,
.cd-seo-admin-summary-card .btn-secondary {
    border-color: rgba(108, 174, 211, .18);
    color: #cfe7f2;
    background: rgba(8, 29, 46, .78);
}

.cd-admin-report-form-page .btn-light:hover,
.cd-admin-report-form-page .btn-secondary:hover,
.cd-task-admin-page .btn-light:hover,
.cd-task-admin-page .btn-secondary:hover,
.cd-seo-admin-summary-card .btn-light:hover,
.cd-seo-admin-summary-card .btn-secondary:hover {
    border-color: rgba(122, 205, 229, .3);
    color: #fff;
    background: rgba(20, 57, 80, .92);
}

.cd-admin-report-form-page .btn-primary,
.cd-task-admin-page .btn-primary,
.cd-seo-admin-summary-card .btn-primary {
    border-color: rgba(151, 124, 229, .42);
    color: #fff;
    background: linear-gradient(135deg, #7656c5, #4d9fe0);
}

.cd-admin-report-form-page .btn-success,
.cd-task-admin-page .btn-success,
.cd-seo-admin-summary-card .btn-success {
    border-color: rgba(143, 154, 232, .46);
    color: #ffffff;
    background: #5f63bd;
}

.cd-admin-report-form-page .btn-danger,
.cd-task-admin-page .btn-danger,
.cd-seo-admin-summary-card .btn-danger {
    border-color: rgba(255, 112, 130, .4);
    color: #fff;
    background: linear-gradient(145deg, #c44360, #a62e4d);
}

.cd-admin-report-form-page .btn-warning,
.cd-task-admin-page .btn-warning,
.cd-seo-admin-summary-card .btn-warning {
    border-color: rgba(247, 194, 75, .52);
    color: #2d2108;
    background: linear-gradient(145deg, #ffd56a, #e8a930);
}

.cd-admin-report-form-page .btn-info,
.cd-task-admin-page .btn-info,
.cd-seo-admin-summary-card .btn-info {
    border-color: rgba(86, 184, 231, .42);
    color: #fff;
    background: linear-gradient(145deg, #3c9ed0, #287bb5);
}

html[data-theme="light"] .cd-admin-report-form-page .btn-light,
html[data-theme="light"] .cd-admin-report-form-page .btn-secondary,
html[data-theme="light"] .cd-task-admin-page .btn-light,
html[data-theme="light"] .cd-task-admin-page .btn-secondary,
html[data-theme="light"] .cd-seo-admin-summary-card .btn-light,
html[data-theme="light"] .cd-seo-admin-summary-card .btn-secondary {
    border-color: rgba(68, 126, 163, .15);
    color: #355c74;
    background: linear-gradient(145deg, #ffffff, #edf6fa);
}

.cd-client-report-list-shell .client-report-details-row > td {
    padding: 14px !important;
    color: var(--cd-text);
    border-top: 1px solid rgba(107, 174, 207, .12);
    background:
        radial-gradient(circle at 96% 0%, rgba(118, 86, 197, .07), transparent 16rem),
        rgba(4, 18, 31, .62) !important;
}

.cd-client-report-list-shell .client-report-details-module {
    border: 1px solid rgba(107, 174, 207, .14);
    border-radius: 14px;
    color: var(--cd-text);
    background: rgba(8, 29, 45, .86);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-client-report-list-shell .client-report-details-module-title {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(107, 174, 207, .12);
    color: #dff4fb;
    background: linear-gradient(110deg, rgba(20, 54, 77, .92), rgba(10, 35, 53, .92));
}

.cd-client-report-list-shell .client-report-details-module-title > i {
    color: #84d9e8;
}

.cd-client-report-list-shell .client-report-details-module-content {
    padding: 10px;
}

.cd-client-report-list-shell .client-report-mini-empty {
    padding: 10px 6px;
    font-size: 12px;
}

.cd-admin-report-form-page > .page-header .btn,
.cd-task-admin-page > .page-header .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid rgba(108, 174, 211, .2);
    border-radius: 12px;
    color: #d9eef7;
    background: rgba(8, 29, 46, .78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    font-size: 13px;
    font-weight: 720;
    text-decoration: none;
}

.cd-admin-report-form-page > .page-header .btn:hover,
.cd-admin-report-form-page > .page-header .btn:focus-visible,
.cd-task-admin-page > .page-header .btn:hover,
.cd-task-admin-page > .page-header .btn:focus-visible {
    color: #ffffff;
    border-color: rgba(122, 205, 229, .33);
    background: rgba(20, 57, 80, .92);
    text-decoration: none;
}

.cd-admin-report-form-page > .page-header .btn-primary,
.cd-task-admin-page > .page-header .btn-primary {
    color: #fff;
    border-color: rgba(151, 124, 229, .42);
    background: linear-gradient(135deg, #7656c5, #4d9fe0);
    box-shadow: 0 10px 22px rgba(66, 65, 151, .18), inset 0 1px 0 rgba(255,255,255,.16);
}

.cd-admin-report-form-page > .page-header .btn-danger,
.cd-task-admin-page > .page-header .btn-danger {
    color: #fff;
    border-color: rgba(255,112,130,.4);
    background: linear-gradient(145deg, #c44360, #a62e4d);
}

.cd-admin-report-form-page .card,
.cd-task-admin-page .card {
    color: var(--cd-text);
    border-color: rgba(106, 171, 203, .13);
}

.cd-admin-report-form-page .card-header,
.cd-task-admin-page .card-header {
    color: #dff4fb;
    border-bottom-color: rgba(106, 171, 203, .12);
    background: rgba(12, 39, 58, .72);
}

.cd-admin-report-form-page .card-footer,
.cd-task-admin-page .card-footer {
    color: var(--cd-text);
    border-top-color: rgba(106, 171, 203, .12);
    background: rgba(5, 21, 34, .52);
}

.cd-admin-report-form-page .table-responsive,
.cd-task-admin-page .table-responsive {
    border: 1px solid rgba(106, 171, 203, .12);
    border-radius: 14px;
    background: rgba(4, 18, 31, .38);
}

.cd-admin-report-form-page .table,
.cd-task-admin-page .table,
.cd-task-modal .table {
    color: var(--cd-text);
    background: transparent;
}

.cd-admin-report-form-page .table-bordered th,
.cd-admin-report-form-page .table-bordered td,
.cd-task-admin-page .table-bordered th,
.cd-task-admin-page .table-bordered td,
.cd-task-modal .table-bordered th,
.cd-task-modal .table-bordered td {
    border-color: rgba(106, 171, 203, .12);
}

.cd-admin-report-form-page .table thead th,
.cd-task-admin-page .table thead th,
.cd-task-modal .table thead th {
    color: #bcd9e8;
    border-color: rgba(106, 171, 203, .14);
    background: linear-gradient(110deg, rgba(16, 49, 69, .96), rgba(10, 34, 51, .96));
}

.cd-admin-report-form-page .table tbody tr:hover,
.cd-task-admin-page .table tbody tr:hover,
.cd-task-modal .table tbody tr:hover {
    color: var(--cd-text);
    background: rgba(69, 142, 180, .08);
}

.cd-admin-report-form-page .bg-white,
.cd-audit-admin-page .bg-white,
.cd-heatmap-admin-page .bg-white,
.cd-seo-admin-form-page .bg-white {
    color: var(--cd-text) !important;
    background: rgba(4, 18, 31, .58) !important;
}

.cd-admin-report-form-page .text-dark,
.cd-task-admin-page .text-dark,
.cd-task-modal .text-dark {
    color: #dceef6 !important;
}

.cd-admin-report-form-page .dropdown-menu,
.cd-task-admin-page .dropdown-menu,
.cd-task-modal .dropdown-menu {
    color: var(--cd-text);
    border-color: rgba(107, 174, 207, .18);
    background: #0a273a;
    box-shadow: 0 18px 42px rgba(0, 8, 22, .24);
}

.cd-admin-report-form-page .dropdown-item,
.cd-task-admin-page .dropdown-item,
.cd-task-modal .dropdown-item {
    color: #cfe6f1;
}

.cd-admin-report-form-page .dropdown-item:hover,
.cd-admin-report-form-page .dropdown-item:focus,
.cd-task-admin-page .dropdown-item:hover,
.cd-task-admin-page .dropdown-item:focus,
.cd-task-modal .dropdown-item:hover,
.cd-task-modal .dropdown-item:focus {
    color: #ffffff;
    background: rgba(78, 145, 178, .13);
}

.cd-admin-report-form-page .form-text,
.cd-admin-report-form-page small.text-muted,
.cd-task-admin-page .text-muted,
.cd-task-modal .text-muted {
    color: #8fb0c1 !important;
}

.cd-task-admin-page > .page-header {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    padding: 19px 22px;
    overflow: hidden;
    border: 1px solid rgba(106, 174, 207, .14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% -45%, rgba(130, 88, 200, .22), transparent 18rem),
        radial-gradient(circle at 8% 130%, rgba(45, 189, 187, .1), transparent 19rem),
        linear-gradient(130deg, rgba(12, 39, 58, .96), rgba(7, 27, 43, .94));
    box-shadow: 0 18px 42px rgba(0, 8, 22, .18), inset 0 1px 0 rgba(255,255,255,.04);
}

.cd-task-admin-page > .page-header > .container-fluid {
    position: relative;
    z-index: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 16px;
    padding: 0;
}

.cd-task-admin-page > .page-header > .container-fluid:has(> :only-child) {
    justify-content: flex-start;
}

.cd-task-admin-page > .page-header h1 {
    margin: 0;
    color: var(--cd-text);
    font-family: var(--ds-font-heading);
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 760;
    line-height: 1.15;
}

.cd-task-admin-page .task-main-user-meta {
    color: #c9e4ef;
    background: rgba(255,255,255,.055);
}

.cd-task-admin-page > .container-fluid > .card {
    overflow: visible;
    border: 1px solid rgba(106, 171, 203, .13);
    border-radius: 17px;
    color: var(--cd-text);
    background:
        radial-gradient(circle at 94% 0%, rgba(118, 86, 197, .075), transparent 15rem),
        linear-gradient(145deg, rgba(8, 30, 47, .96), rgba(5, 22, 36, .94));
    box-shadow: 0 14px 34px rgba(0, 8, 22, .14), inset 0 1px 0 rgba(255,255,255,.03);
}

.cd-task-admin-page .task-list-heading {
    padding: .5rem .6rem;
    border: 1px solid rgba(106, 171, 203, .12);
    border-radius: 12px;
    color: var(--cd-text);
    background: rgba(65, 128, 163, .075) !important;
}

.cd-task-admin-page .task-list-heading-title,
.cd-task-admin-page .task-card-header {
    color: var(--cd-text);
}

.cd-task-admin-page .task-card {
    overflow: visible;
    border: 1px solid rgba(106, 171, 203, .13);
    border-radius: 15px;
    background:
        radial-gradient(circle at 98% 0%, rgba(118,86,197,.06), transparent 14rem),
        rgba(7, 27, 43, .88);
    box-shadow: 0 10px 28px rgba(0,8,22,.12), inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-task-admin-page .task-card-header {
    border-radius: 15px 15px 0 0;
}

.cd-task-admin-page .task-card .card-body {
    color: var(--cd-text);
    background: transparent;
}

.cd-task-admin-page .task-subtask-group-heading {
    color: #b9d8e7;
    background: rgba(255,255,255,.035) !important;
}

.cd-task-admin-page #search-results-day-container.input-group,
#task-filter-fixed,
.cd-task-admin-page .filter-fixed {
    color: var(--cd-text);
}

.cd-task-admin-page .task-live-update-toast.alert-warning {
    color: #ffe6a1;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-row > td {
    color: #294b63;
    border-top-color: rgba(68, 126, 163, .11);
    background:
        radial-gradient(circle at 96% 0%, rgba(118, 86, 197, .045), transparent 16rem),
        #f5fafc !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-module {
    color: #294b63;
    border-color: rgba(68, 126, 163, .13);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(44,84,108,.05), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-module-title {
    border-bottom-color: rgba(68,126,163,.1);
    background: linear-gradient(110deg, #f6fbfd, #edf6fa);
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-module-title > i {
    color: #2b8cba;
}

html[data-theme="light"] .cd-admin-report-form-page > .page-header .btn,
html[data-theme="light"] .cd-task-admin-page > .page-header .btn {
    color: #355c74;
    border-color: rgba(68,126,163,.15);
    background: linear-gradient(145deg, #ffffff, #edf6fa);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-admin-report-form-page > .page-header .btn-primary,
html[data-theme="light"] .cd-task-admin-page > .page-header .btn-primary {
    color: #fff;
    border-color: rgba(126,100,203,.35);
    background: linear-gradient(135deg, #7656c5, #4d9fe0);
}

html[data-theme="light"] .cd-admin-report-form-page > .page-header .btn-danger,
html[data-theme="light"] .cd-task-admin-page > .page-header .btn-danger {
    color: #fff;
    border-color: rgba(196,67,96,.35);
    background: linear-gradient(145deg, #d65570, #b73a58);
}

html[data-theme="light"] .cd-admin-report-form-page .card-header,
html[data-theme="light"] .cd-task-admin-page .card-header {
    color: #294b63;
    border-bottom-color: rgba(68,126,163,.11);
    background: #f2f8fb;
}

html[data-theme="light"] .cd-admin-report-form-page .card-footer,
html[data-theme="light"] .cd-task-admin-page .card-footer {
    color: #294b63;
    border-top-color: rgba(68,126,163,.11);
    background: #f7fbfd;
}

html[data-theme="light"] .cd-admin-report-form-page .table-responsive,
html[data-theme="light"] .cd-task-admin-page .table-responsive {
    border-color: rgba(68,126,163,.11);
    background: #ffffff;
}

html[data-theme="light"] .cd-admin-report-form-page .table,
html[data-theme="light"] .cd-task-admin-page .table,
html[data-theme="light"] .cd-task-modal .table {
    color: #294b63;
}

html[data-theme="light"] .cd-admin-report-form-page .table thead th,
html[data-theme="light"] .cd-task-admin-page .table thead th,
html[data-theme="light"] .cd-task-modal .table thead th {
    color: #4a6e83;
    border-color: rgba(68,126,163,.11);
    background: linear-gradient(110deg, #f5fafc, #edf6fa);
}

html[data-theme="light"] .cd-admin-report-form-page .table tbody tr:hover,
html[data-theme="light"] .cd-task-admin-page .table tbody tr:hover,
html[data-theme="light"] .cd-task-modal .table tbody tr:hover {
    color: #294b63;
    background: rgba(68,139,181,.055);
}

html[data-theme="light"] .cd-admin-report-form-page .bg-white,
html[data-theme="light"] .cd-audit-admin-page .bg-white,
html[data-theme="light"] .cd-heatmap-admin-page .bg-white,
html[data-theme="light"] .cd-seo-admin-form-page .bg-white {
    color: #294b63 !important;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-admin-report-form-page .text-dark,
html[data-theme="light"] .cd-task-admin-page .text-dark,
html[data-theme="light"] .cd-task-modal .text-dark {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-admin-report-form-page .dropdown-menu,
html[data-theme="light"] .cd-task-admin-page .dropdown-menu,
html[data-theme="light"] .cd-task-modal .dropdown-menu {
    color: #294b63;
    border-color: rgba(68,126,163,.14);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(45,83,108,.11);
}

html[data-theme="light"] .cd-admin-report-form-page .dropdown-item,
html[data-theme="light"] .cd-task-admin-page .dropdown-item,
html[data-theme="light"] .cd-task-modal .dropdown-item {
    color: #355c74;
}

html[data-theme="light"] .cd-admin-report-form-page .dropdown-item:hover,
html[data-theme="light"] .cd-task-admin-page .dropdown-item:hover,
html[data-theme="light"] .cd-task-modal .dropdown-item:hover {
    color: #17384e;
    background: #eef6fa;
}

html[data-theme="light"] .cd-admin-report-form-page .form-text,
html[data-theme="light"] .cd-admin-report-form-page small.text-muted,
html[data-theme="light"] .cd-task-admin-page .text-muted,
html[data-theme="light"] .cd-task-modal .text-muted {
    color: #6a8292 !important;
}

html[data-theme="light"] .cd-task-admin-page > .page-header {
    border-color: rgba(66,126,164,.13);
    background:
        radial-gradient(circle at 92% -45%, rgba(118,86,197,.1), transparent 18rem),
        radial-gradient(circle at 8% 130%, rgba(45,189,187,.07), transparent 19rem),
        linear-gradient(130deg, #ffffff, #edf7fb);
    box-shadow: 0 18px 38px rgba(47,86,112,.08), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-task-admin-page > .page-header h1,
html[data-theme="light"] .cd-task-admin-page .task-list-heading-title,
html[data-theme="light"] .cd-task-admin-page .task-card-header {
    color: #294b63;
}

html[data-theme="light"] .cd-task-admin-page .task-main-user-meta {
    color: #4e7186;
    background: #eef6f9;
}

html[data-theme="light"] .cd-task-admin-page > .container-fluid > .card {
    border-color: rgba(68, 126, 163, .12);
    color: #294b63;
    background:
        radial-gradient(circle at 94% 0%, rgba(118, 86, 197, .045), transparent 15rem),
        linear-gradient(145deg, #ffffff, #f4fafc);
    box-shadow: 0 12px 28px rgba(45, 83, 108, .07), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-task-admin-page .task-list-heading {
    border-color: rgba(68, 126, 163, .11);
    color: #294b63;
    background: #f2f8fa !important;
}

html[data-theme="light"] .cd-task-admin-page .task-card {
    border-color: rgba(68,126,163,.12);
    background:
        radial-gradient(circle at 98% 0%, rgba(118,86,197,.04), transparent 14rem),
        #ffffff;
    box-shadow: 0 9px 24px rgba(45,83,108,.06), inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-task-admin-page .task-subtask-group-heading {
    color: #4d7086;
    background: #f2f8fa !important;
}

/* Remaining legacy report/task surfaces that still carry fixed Bootstrap-era colors. */
.cd-heatmap-admin-page .heatmap-page-config-row > td {
    color: var(--cd-text);
    background: rgba(64, 128, 162, .075) !important;
}

.cd-heatmap-admin-page .heatmap-page-report-screenshots-row > td {
    color: var(--cd-text);
    border-top-color: rgba(106, 171, 203, .1);
    background: rgba(4, 18, 31, .48) !important;
}

.cd-heatmap-admin-page .heatmap-page-report-screenshots-title,
.cd-heatmap-admin-page .heatmap-page-report-screenshot-url {
    color: #dceef6 !important;
}

.cd-heatmap-admin-page .heatmap-page-report-screenshot-option {
    border-color: rgba(106, 171, 203, .14);
    color: var(--cd-text);
    background: rgba(8, 29, 45, .8);
}

.cd-heatmap-admin-page .heatmap-page-report-screenshot-option:hover {
    border-color: rgba(116, 197, 222, .24);
    background: rgba(37, 78, 105, .72);
}

.cd-heatmap-admin-page .heatmap-page-report-screenshot-option small,
.cd-heatmap-admin-page .heatmap-screenshot-drag-handle {
    color: #8fb0c1;
}

.cd-heatmap-admin-page .heatmap-screenshot-sort-placeholder {
    border-color: rgba(92, 184, 225, .5);
    background: rgba(42, 126, 167, .12);
}

.cd-seo-admin-form-page #possible-keywords-textarea {
    caret-color: #dbeef6 !important;
}

.cd-seo-admin-form-page #possible-keywords-textarea-highlight,
.cd-seo-admin-form-page #possible-keywords-textarea-highlight-inner > div {
    color: #cfe6f1 !important;
}

.cd-seo-admin-form-page #possible-keywords-textarea-highlight-inner > div[style*="#dc3545"] {
    color: #ff8da3 !important;
}

.cd-seo-admin-form-page #pages .nav-link.bg-warning.text-white {
    color: #2d2108 !important;
}

.cd-task-admin-page .text-black {
    color: #dceef6 !important;
}

.cd-task-admin-page .task-subtask-text-pre {
    color: var(--cd-text) !important;
}

.cd-task-modal #add-task-subtask-tag-panes pre {
    color: var(--cd-text) !important;
    background: transparent !important;
}

.cd-task-admin-page .task-subtask-group-heading.task-subtask-group-current-day > td {
    color: var(--cd-text);
    background: rgba(45, 189, 187, .08) !important;
}

.cd-task-admin-page .task-subtask-tag-tab-wrap .task-subtask-tag-access-toggle {
    border-color: rgba(107, 174, 207, .16);
    color: #bcd9e8;
    background: rgba(255,255,255,.045);
}

.cd-task-admin-page .task-subtask-tag-tab-wrap a.task-subtask-tag-tab-member-no-access {
    border-color: rgba(223, 102, 126, .22);
    color: #ffd7df !important;
    background: rgba(196, 67, 96, .17) !important;
}

.cd-task-modal .task-note-bubble {
    color: var(--cd-text);
    border-color: rgba(106, 171, 203, .14);
    background: rgba(255,255,255,.045);
}

.cd-task-modal .task-note-own .task-note-bubble {
    border-color: rgba(80, 163, 207, .2);
    background: rgba(47, 126, 173, .13);
}

.cd-task-modal .task-note-meta {
    color: #8fb0c1;
}

.cd-task-modal .task-day-timeline-track {
    border-color: rgba(106, 171, 203, .16);
    background: rgba(4, 18, 31, .62);
}

.cd-task-modal .task-day-timeline-hour-marker {
    background: rgba(150, 197, 219, .14);
}

.cd-task-modal .task-day-timeline-bar {
    border-right-color: rgba(4, 18, 31, .72);
    border-left-color: rgba(4, 18, 31, .72);
}

.cd-task-modal .task-day-timeline-hour-label {
    color: #9bb8c8;
}

.cd-task-modal .bg-warning.text-dark,
.cd-task-admin-page .bg-warning.text-dark {
    color: #2d2108 !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-config-row > td {
    color: #294b63;
    background: #eef6f9 !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-report-screenshots-row > td {
    color: #294b63;
    border-top-color: rgba(68, 126, 163, .1);
    background: #ffffff !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-report-screenshots-title,
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-report-screenshot-url {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-report-screenshot-option {
    border-color: rgba(68, 126, 163, .13);
    color: #294b63;
    background: #ffffff;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-report-screenshot-option:hover {
    border-color: rgba(68, 139, 181, .18);
    background: #f1f7fb;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-report-screenshot-option small,
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-screenshot-drag-handle {
    color: #6a8292;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-screenshot-sort-placeholder {
    border-color: rgba(44, 132, 200, .32);
    background: #eef8fc;
}

html[data-theme="light"] .cd-seo-admin-form-page #possible-keywords-textarea {
    caret-color: #495057 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #possible-keywords-textarea-highlight,
html[data-theme="light"] .cd-seo-admin-form-page #possible-keywords-textarea-highlight-inner > div {
    color: #495057 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #possible-keywords-textarea-highlight-inner > div[style*="#dc3545"] {
    color: #c83d58 !important;
}

html[data-theme="light"] .cd-task-admin-page .text-black {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-task-admin-page .task-subtask-text-pre {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-task-modal #add-task-subtask-tag-panes pre {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-task-admin-page .task-subtask-group-heading.task-subtask-group-current-day > td {
    color: #294b63;
    background: #e9f7f6 !important;
}

html[data-theme="light"] .cd-task-admin-page .task-subtask-tag-tab-wrap .task-subtask-tag-access-toggle {
    border-color: rgba(68, 126, 163, .14);
    color: #4d7086;
    background: #edf5f8;
}

html[data-theme="light"] .cd-task-admin-page .task-subtask-tag-tab-wrap a.task-subtask-tag-tab-member-no-access {
    border-color: rgba(196, 67, 96, .16);
    color: #9c334b !important;
    background: #fff0f3 !important;
}

html[data-theme="light"] .cd-task-modal .task-note-bubble {
    color: #294b63;
    border-color: rgba(68, 126, 163, .12);
    background: #f2f7fa;
}

html[data-theme="light"] .cd-task-modal .task-note-own .task-note-bubble {
    border-color: rgba(49, 137, 189, .14);
    background: #eaf5fb;
}

html[data-theme="light"] .cd-task-modal .task-note-meta {
    color: #6a8292;
}

html[data-theme="light"] .cd-task-modal .task-day-timeline-track {
    border-color: rgba(68, 126, 163, .13);
    background: #f4f9fb;
}

html[data-theme="light"] .cd-task-modal .task-day-timeline-hour-marker {
    background: rgba(68, 126, 163, .12);
}

html[data-theme="light"] .cd-task-modal .task-day-timeline-bar {
    border-right-color: #f4f9fb;
    border-left-color: #f4f9fb;
}

html[data-theme="light"] .cd-task-modal .task-day-timeline-hour-label {
    color: #5d7688;
}

html[data-theme="light"] .cd-task-admin-page .task-live-update-toast.alert-warning {
    color: #795615;
}

/* Task Selectize controls are legacy light-only by default. Keep them theme-aware, including the detached filter panel. */
.cd-task-admin-page .selectize-input,
.cd-task-admin-page .selectize-control.single .selectize-input.input-active,
.cd-task-modal .selectize-input,
.cd-task-modal .selectize-control.single .selectize-input.input-active,
#task-filter-fixed .selectize-input,
#task-filter-fixed .selectize-control.single .selectize-input.input-active {
    min-height: 42px;
    border-color: rgba(107, 174, 207, .18);
    color: #dbeef6;
    background: rgba(3, 18, 31, .74);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-task-admin-page .selectize-input input,
.cd-task-modal .selectize-input input,
#task-filter-fixed .selectize-input input {
    color: #dbeef6 !important;
}

.cd-task-admin-page .selectize-input input::placeholder,
.cd-task-modal .selectize-input input::placeholder,
#task-filter-fixed .selectize-input input::placeholder {
    color: #718fa0;
    opacity: 1;
}

.cd-task-admin-page .selectize-dropdown,
.cd-task-modal .selectize-dropdown,
#task-filter-fixed .selectize-dropdown {
    border-color: rgba(107, 174, 207, .18);
    color: #dbeef6;
    background: #0a2436;
    box-shadow: 0 14px 32px rgba(0,8,22,.25);
}

.cd-task-admin-page .selectize-dropdown .option,
.cd-task-modal .selectize-dropdown .option,
#task-filter-fixed .selectize-dropdown .option {
    color: #cfe5ef;
}

.cd-task-admin-page .selectize-dropdown .active,
.cd-task-modal .selectize-dropdown .active,
#task-filter-fixed .selectize-dropdown .active {
    color: #effbff;
    background: rgba(61, 134, 176, .24);
}

html[data-theme="light"] .cd-task-admin-page .selectize-input,
html[data-theme="light"] .cd-task-admin-page .selectize-control.single .selectize-input.input-active,
html[data-theme="light"] .cd-task-modal .selectize-input,
html[data-theme="light"] .cd-task-modal .selectize-control.single .selectize-input.input-active,
html[data-theme="light"] #task-filter-fixed .selectize-input,
html[data-theme="light"] #task-filter-fixed .selectize-control.single .selectize-input.input-active {
    border-color: rgba(68, 126, 163, .16);
    color: #294b63;
    background: #ffffff;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-task-admin-page .selectize-input input,
html[data-theme="light"] .cd-task-modal .selectize-input input,
html[data-theme="light"] #task-filter-fixed .selectize-input input {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-task-admin-page .selectize-dropdown,
html[data-theme="light"] .cd-task-modal .selectize-dropdown,
html[data-theme="light"] #task-filter-fixed .selectize-dropdown {
    border-color: rgba(68, 126, 163, .14);
    color: #294b63;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(45,83,108,.12);
}

html[data-theme="light"] .cd-task-admin-page .selectize-dropdown .option,
html[data-theme="light"] .cd-task-modal .selectize-dropdown .option,
html[data-theme="light"] #task-filter-fixed .selectize-dropdown .option {
    color: #365a70;
}

html[data-theme="light"] .cd-task-admin-page .selectize-dropdown .active,
html[data-theme="light"] .cd-task-modal .selectize-dropdown .active,
html[data-theme="light"] #task-filter-fixed .selectize-dropdown .active {
    color: #294b63;
    background: #eef6f9;
}

#task-filter-fixed .col-form-label {
    color: #9abaca;
}

#task-filter-fixed .btn-primary {
    border-color: rgba(151, 124, 229, .42);
    color: #fff;
    background: linear-gradient(135deg, #7656c5, #4d9fe0);
}

html[data-theme="light"] #task-filter-fixed .col-form-label {
    color: #55798e;
}

@media (max-width: 767px) {
    .cd-admin-report-form-page > .page-header {
        padding: 15px;
        border-radius: 17px;
    }

    .cd-admin-report-form-page > .page-header > .container-fluid,
    .cd-task-admin-page > .page-header > .container-fluid {
        align-items: stretch;
        flex-direction: column;
    }

    .cd-task-admin-page > .page-header > .container-fluid:has(> :only-child) {
        justify-content: flex-start;
    }

    .cd-admin-report-form-page > .page-header .float-right {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .cd-seo-admin-summary-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .cd-seo-admin-summary-table {
        min-width: 520px;
    }
}

/* Update 13: contrast and runtime-generated component audit */
:where(html.cd-theme-document, .cd-theme-scope) .text-secondary {
    color: #8fb0c1 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .btn-outline-secondary {
    border-color: rgba(126, 183, 211, .32);
    color: #bdd7e3;
    background: transparent;
}

:where(html.cd-theme-document, .cd-theme-scope) .btn-outline-secondary:hover,
:where(html.cd-theme-document, .cd-theme-scope) .btn-outline-secondary:focus-visible {
    border-color: rgba(126, 205, 229, .42);
    color: #ffffff;
    background: rgba(41, 103, 139, .24);
}

:where(html.cd-theme-document, .cd-theme-scope) .btn-outline-secondary.disabled,
:where(html.cd-theme-document, .cd-theme-scope) .btn-outline-secondary:disabled {
    border-color: rgba(126, 183, 211, .17);
    color: #7895a6;
    background: rgba(255,255,255,.025);
    opacity: 1;
}

html[data-theme="light"].cd-theme-document .text-secondary,
html[data-theme="light"] .cd-theme-scope .text-secondary {
    color: #526f82 !important;
}

html[data-theme="light"].cd-theme-document .btn-outline-secondary,
html[data-theme="light"] .cd-theme-scope .btn-outline-secondary {
    border-color: rgba(67, 123, 158, .26);
    color: #4d6c80;
    background: transparent;
}

html[data-theme="light"].cd-theme-document .btn-outline-secondary:hover,
html[data-theme="light"].cd-theme-document .btn-outline-secondary:focus-visible,
html[data-theme="light"] .cd-theme-scope .btn-outline-secondary:hover,
html[data-theme="light"] .cd-theme-scope .btn-outline-secondary:focus-visible {
    border-color: rgba(48, 137, 181, .3);
    color: #17384e;
    background: #edf7fb;
}

html[data-theme="light"].cd-theme-document .btn-outline-secondary.disabled,
html[data-theme="light"].cd-theme-document .btn-outline-secondary:disabled,
html[data-theme="light"] .cd-theme-scope .btn-outline-secondary.disabled,
html[data-theme="light"] .cd-theme-scope .btn-outline-secondary:disabled {
    border-color: rgba(67, 123, 158, .14);
    color: #738a99;
    background: #f5f9fb;
    opacity: 1;
}

.cd-listing-page .alert,
.cd-admin-report-form-page .alert,
.cd-task-admin-page .alert,
.cd-modal .alert {
    border: 1px solid transparent;
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-listing-page .alert-danger,
.cd-admin-report-form-page .alert-danger,
.cd-task-admin-page .alert-danger,
.cd-modal .alert-danger {
    border-color: rgba(226, 92, 119, .28);
    color: #ffd7df;
    background: rgba(196, 67, 96, .16);
}

.cd-listing-page .alert-warning,
.cd-admin-report-form-page .alert-warning,
.cd-task-admin-page .alert-warning,
.cd-modal .alert-warning {
    border-color: rgba(232, 169, 48, .28);
    color: #ffe8b5;
    background: rgba(194, 137, 34, .15);
}

.cd-listing-page .alert-success,
.cd-admin-report-form-page .alert-success,
.cd-task-admin-page .alert-success,
.cd-modal .alert-success {
    border-color: rgba(45, 189, 187, .28);
    color: #c5f6ed;
    background: rgba(35, 143, 136, .15);
}

.cd-listing-page .alert-info,
.cd-admin-report-form-page .alert-info,
.cd-task-admin-page .alert-info,
.cd-modal .alert-info {
    border-color: rgba(76, 164, 211, .3);
    color: #cdeeff;
    background: rgba(44, 125, 171, .16);
}

.cd-listing-page .alert .alert-link,
.cd-admin-report-form-page .alert .alert-link,
.cd-task-admin-page .alert .alert-link,
.cd-modal .alert .alert-link,
.cd-listing-page .alert .close,
.cd-admin-report-form-page .alert .close,
.cd-task-admin-page .alert .close,
.cd-modal .alert .close {
    color: inherit;
}

.cd-admin-report-form-page .list-group-item,
.cd-task-admin-page .list-group-item,
.cd-modal .list-group-item {
    border-color: rgba(106, 171, 203, .14);
    color: #dceef6;
    background: rgba(7, 27, 42, .82);
}

.cd-admin-report-form-page .list-group-item-action:hover,
.cd-admin-report-form-page .list-group-item-action:focus,
.cd-task-admin-page .list-group-item-action:hover,
.cd-task-admin-page .list-group-item-action:focus,
.cd-modal .list-group-item-action:hover,
.cd-modal .list-group-item-action:focus {
    color: #ffffff;
    background: rgba(61, 134, 176, .16);
}

.cd-listing-page .progress,
.cd-admin-report-form-page .progress,
.cd-task-admin-page .progress,
.cd-modal .progress {
    border: 1px solid rgba(106, 171, 203, .12);
    background: rgba(3, 15, 27, .68);
}

.cd-listing-page .progress-bar,
.cd-admin-report-form-page .progress-bar,
.cd-task-admin-page .progress-bar,
.cd-modal .progress-bar {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,.34);
}

html[data-theme="light"] .cd-listing-page .alert-danger,
html[data-theme="light"] .cd-admin-report-form-page .alert-danger,
html[data-theme="light"] .cd-task-admin-page .alert-danger,
html[data-theme="light"] .cd-modal .alert-danger {
    border-color: rgba(185, 54, 80, .16);
    color: #8f2f46;
    background: #fff1f4;
}

html[data-theme="light"] .cd-listing-page .alert-warning,
html[data-theme="light"] .cd-admin-report-form-page .alert-warning,
html[data-theme="light"] .cd-task-admin-page .alert-warning,
html[data-theme="light"] .cd-modal .alert-warning {
    border-color: rgba(170, 116, 25, .16);
    color: #765219;
    background: #fff8e8;
}

html[data-theme="light"] .cd-listing-page .alert-success,
html[data-theme="light"] .cd-admin-report-form-page .alert-success,
html[data-theme="light"] .cd-task-admin-page .alert-success,
html[data-theme="light"] .cd-modal .alert-success {
    border-color: rgba(27, 126, 121, .15);
    color: #176b68;
    background: #eaf8f6;
}

html[data-theme="light"] .cd-listing-page .alert-info,
html[data-theme="light"] .cd-admin-report-form-page .alert-info,
html[data-theme="light"] .cd-task-admin-page .alert-info,
html[data-theme="light"] .cd-modal .alert-info {
    border-color: rgba(39, 113, 158, .15);
    color: #215f84;
    background: #edf8fd;
}

html[data-theme="light"] .cd-admin-report-form-page .list-group-item,
html[data-theme="light"] .cd-task-admin-page .list-group-item,
html[data-theme="light"] .cd-modal .list-group-item {
    border-color: rgba(68, 126, 163, .12);
    color: #294b63;
    background: #ffffff;
}

html[data-theme="light"] .cd-admin-report-form-page .list-group-item-action:hover,
html[data-theme="light"] .cd-admin-report-form-page .list-group-item-action:focus,
html[data-theme="light"] .cd-task-admin-page .list-group-item-action:hover,
html[data-theme="light"] .cd-task-admin-page .list-group-item-action:focus,
html[data-theme="light"] .cd-modal .list-group-item-action:hover,
html[data-theme="light"] .cd-modal .list-group-item-action:focus {
    color: #17384e;
    background: #eef6f9;
}

html[data-theme="light"] .cd-listing-page .progress,
html[data-theme="light"] .cd-admin-report-form-page .progress,
html[data-theme="light"] .cd-task-admin-page .progress,
html[data-theme="light"] .cd-modal .progress {
    border-color: rgba(68, 126, 163, .11);
    background: #edf4f7;
}

/* Bootstrap-generated overlays live under body, outside page scope. */
html.cd-theme-document .tooltip-inner {
    border: 1px solid rgba(112, 186, 216, .2);
    border-radius: 8px;
    color: #eaf6fb;
    background: #0a273a;
    box-shadow: 0 10px 24px rgba(0, 7, 20, .24);
}

html.cd-theme-document .bs-tooltip-top .arrow::before,
html.cd-theme-document .bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: #0a273a;
}

html.cd-theme-document .bs-tooltip-right .arrow::before,
html.cd-theme-document .bs-tooltip-auto[x-placement^="right"] .arrow::before {
    border-right-color: #0a273a;
}

html.cd-theme-document .bs-tooltip-bottom .arrow::before,
html.cd-theme-document .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: #0a273a;
}

html.cd-theme-document .bs-tooltip-left .arrow::before,
html.cd-theme-document .bs-tooltip-auto[x-placement^="left"] .arrow::before {
    border-left-color: #0a273a;
}

html.cd-theme-document .popover {
    border-color: rgba(109, 181, 211, .2);
    color: #dceef6;
    background: #0a273a;
    box-shadow: 0 18px 42px rgba(0, 7, 22, .26);
}

html.cd-theme-document .popover-header {
    border-bottom-color: rgba(109, 181, 211, .16);
    color: #eaf6fb;
    background: #0e3047;
}

html.cd-theme-document .popover-body {
    color: #c5dce8;
}

html[data-theme="light"].cd-theme-document .tooltip-inner {
    border-color: rgba(68, 126, 163, .14);
    color: #17384e;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(45, 83, 108, .14);
}

html[data-theme="light"].cd-theme-document .bs-tooltip-top .arrow::before,
html[data-theme="light"].cd-theme-document .bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: #ffffff;
}

html[data-theme="light"].cd-theme-document .bs-tooltip-right .arrow::before,
html[data-theme="light"].cd-theme-document .bs-tooltip-auto[x-placement^="right"] .arrow::before {
    border-right-color: #ffffff;
}

html[data-theme="light"].cd-theme-document .bs-tooltip-bottom .arrow::before,
html[data-theme="light"].cd-theme-document .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: #ffffff;
}

html[data-theme="light"].cd-theme-document .bs-tooltip-left .arrow::before,
html[data-theme="light"].cd-theme-document .bs-tooltip-auto[x-placement^="left"] .arrow::before {
    border-left-color: #ffffff;
}

html[data-theme="light"].cd-theme-document .popover {
    border-color: rgba(68, 126, 163, .14);
    color: #294b63;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(45, 83, 108, .14);
}

html[data-theme="light"].cd-theme-document .popover-header {
    border-bottom-color: rgba(68, 126, 163, .12);
    color: #17384e;
    background: #eef6f9;
}

html[data-theme="light"].cd-theme-document .popover-body {
    color: #45677d;
}

/* Flatpickr instances used by Contract, Task, SEO and report forms are appended to body. */

html.cd-theme-document .flatpickr-calendar.arrowTop::before {
    border-bottom-color: rgba(109, 181, 211, .2);
}

html.cd-theme-document .flatpickr-calendar.arrowTop::after {
    border-bottom-color: #0a273a;
}

html.cd-theme-document .flatpickr-calendar.arrowBottom::before {
    border-top-color: rgba(109, 181, 211, .2);
}

html.cd-theme-document .flatpickr-calendar.arrowBottom::after {
    border-top-color: #0a273a;
}

html.cd-theme-document .flatpickr-months .flatpickr-month,
html.cd-theme-document .flatpickr-current-month,
html.cd-theme-document .flatpickr-current-month .flatpickr-monthDropdown-months,
html.cd-theme-document .flatpickr-current-month input.cur-year,
html.cd-theme-document .flatpickr-weekday,
html.cd-theme-document span.flatpickr-weekday {
    color: #dceef6;
    background: transparent;
}

html.cd-theme-document .flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #dceef6;
    background: #0a273a;
}

html.cd-theme-document .flatpickr-prev-month,
html.cd-theme-document .flatpickr-next-month {
    color: #8fd9e9;
    fill: #8fd9e9;
}

html.cd-theme-document .flatpickr-prev-month:hover,
html.cd-theme-document .flatpickr-next-month:hover,
html.cd-theme-document .flatpickr-prev-month:hover svg,
html.cd-theme-document .flatpickr-next-month:hover svg {
    color: #ffffff;
    fill: #ffffff;
}

html.cd-theme-document .flatpickr-day {
    color: #cfe6f1;
    border-color: transparent;
}

html.cd-theme-document .flatpickr-day.prevMonthDay,
html.cd-theme-document .flatpickr-day.nextMonthDay,
html.cd-theme-document .flatpickr-day.flatpickr-disabled,
html.cd-theme-document .flatpickr-day.flatpickr-disabled:hover {
    color: #6f8c9d;
}

html.cd-theme-document .flatpickr-day:hover,
html.cd-theme-document .flatpickr-day:focus {
    border-color: rgba(90, 171, 207, .18);
    color: #ffffff;
    background: rgba(61, 134, 176, .2);
}

html.cd-theme-document .flatpickr-day.today {
    border-color: rgba(103, 211, 230, .5);
}

html.cd-theme-document .flatpickr-day.selected,
html.cd-theme-document .flatpickr-day.startRange,
html.cd-theme-document .flatpickr-day.endRange,
html.cd-theme-document .flatpickr-day.selected:hover,
html.cd-theme-document .flatpickr-day.startRange:hover,
html.cd-theme-document .flatpickr-day.endRange:hover {
    border-color: #4a9bd0;
    color: #ffffff;
    background: linear-gradient(135deg, #7656c5, #3a98cf);
}

html.cd-theme-document .flatpickr-time,
html.cd-theme-document .flatpickr-time input,
html.cd-theme-document .flatpickr-time .flatpickr-am-pm {
    border-color: rgba(109, 181, 211, .14);
    color: #dceef6;
    background: #0a273a;
}

html[data-theme="light"].cd-theme-document .flatpickr-calendar.arrowTop::after {
    border-bottom-color: #ffffff;
}

html[data-theme="light"].cd-theme-document .flatpickr-calendar.arrowBottom::after {
    border-top-color: #ffffff;
}

html[data-theme="light"].cd-theme-document .flatpickr-months .flatpickr-month,
html[data-theme="light"].cd-theme-document .flatpickr-current-month,
html[data-theme="light"].cd-theme-document .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="light"].cd-theme-document .flatpickr-current-month input.cur-year,
html[data-theme="light"].cd-theme-document .flatpickr-weekday,
html[data-theme="light"].cd-theme-document span.flatpickr-weekday {
    color: #294b63;
}

html[data-theme="light"].cd-theme-document .flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #294b63;
    background: #ffffff;
}

html[data-theme="light"].cd-theme-document .flatpickr-prev-month,
html[data-theme="light"].cd-theme-document .flatpickr-next-month {
    color: #46738d;
    fill: #46738d;
}

html[data-theme="light"].cd-theme-document .flatpickr-prev-month:hover,
html[data-theme="light"].cd-theme-document .flatpickr-next-month:hover,
html[data-theme="light"].cd-theme-document .flatpickr-prev-month:hover svg,
html[data-theme="light"].cd-theme-document .flatpickr-next-month:hover svg {
    color: #17384e;
    fill: #17384e;
}

html[data-theme="light"].cd-theme-document .flatpickr-day {
    color: #365a70;
}

html[data-theme="light"].cd-theme-document .flatpickr-day:hover,
html[data-theme="light"].cd-theme-document .flatpickr-day:focus {
    border-color: rgba(48, 137, 181, .16);
    color: #17384e;
    background: #edf7fb;
}

html[data-theme="light"].cd-theme-document .flatpickr-day.today {
    border-color: rgba(44, 143, 189, .46);
}

html[data-theme="light"].cd-theme-document .flatpickr-time,
html[data-theme="light"].cd-theme-document .flatpickr-time input,
html[data-theme="light"].cd-theme-document .flatpickr-time .flatpickr-am-pm {
    border-color: rgba(68, 126, 163, .12);
    color: #294b63;
    background: #ffffff;
}

/* Runtime copy feedback is mounted at body level by common.js. */
html.cd-theme-document .copy-toast {
    border: 1px solid rgba(109, 181, 211, .2);
    color: #e7f4fa;
    background:
        radial-gradient(circle at 90% 0%, rgba(118, 86, 197, .12), transparent 9rem),
        #0a273a;
    box-shadow: 0 14px 34px rgba(0, 7, 22, .28), inset 0 1px 0 rgba(255,255,255,.04);
}

html.cd-theme-document .copy-toast.copy-toast-success i {
    color: #67d9b4;
}

html.cd-theme-document .copy-toast.copy-toast-error i {
    color: #ff8da3;
}

html.cd-theme-document .copy-toast.copy-toast-warning i {
    color: #f0c768;
}

html[data-theme="light"].cd-theme-document .copy-toast {
    border-color: rgba(68, 126, 163, .14);
    color: #294b63;
    background:
        radial-gradient(circle at 90% 0%, rgba(118, 86, 197, .055), transparent 9rem),
        #ffffff;
    box-shadow: 0 12px 28px rgba(45, 83, 108, .14), inset 0 1px 0 #ffffff;
}

html[data-theme="light"].cd-theme-document .copy-toast.copy-toast-success i {
    color: #176b68;
}

html[data-theme="light"].cd-theme-document .copy-toast.copy-toast-error i {
    color: #9b3349;
}

html[data-theme="light"].cd-theme-document .copy-toast.copy-toast-warning i {
    color: #7a5718;
}

/* Selected Flatpickr days need a foreground that stays legible across the full gradient. */
html.cd-theme-document .flatpickr-day.selected,
html.cd-theme-document .flatpickr-day.startRange,
html.cd-theme-document .flatpickr-day.endRange,
html.cd-theme-document .flatpickr-day.selected:hover,
html.cd-theme-document .flatpickr-day.startRange:hover,
html.cd-theme-document .flatpickr-day.endRange:hover,
html[data-theme="light"].cd-theme-document .flatpickr-day.selected,
html[data-theme="light"].cd-theme-document .flatpickr-day.startRange,
html[data-theme="light"].cd-theme-document .flatpickr-day.endRange,
html[data-theme="light"].cd-theme-document .flatpickr-day.selected:hover,
html[data-theme="light"].cd-theme-document .flatpickr-day.startRange:hover,
html[data-theme="light"].cd-theme-document .flatpickr-day.endRange:hover {
    border-color: #5d4eb1;
    color: #ffffff;
    background: linear-gradient(135deg, #7656c5, #356e9e);
}

html[data-theme="light"].cd-theme-document .flatpickr-day.prevMonthDay,
html[data-theme="light"].cd-theme-document .flatpickr-day.nextMonthDay,
html[data-theme="light"].cd-theme-document .flatpickr-day.flatpickr-disabled,
html[data-theme="light"].cd-theme-document .flatpickr-day.flatpickr-disabled:hover {
    color: #597486;
}

html.cd-theme-document .flatpickr-day.inRange,
html.cd-theme-document .flatpickr-day.prevMonthDay.inRange,
html.cd-theme-document .flatpickr-day.nextMonthDay.inRange {
    border-color: transparent;
    color: #dceef6;
    background: rgba(58, 122, 157, .24);
    box-shadow: -5px 0 0 rgba(58, 122, 157, .24), 5px 0 0 rgba(58, 122, 157, .24);
}

html[data-theme="light"].cd-theme-document .flatpickr-day.inRange,
html[data-theme="light"].cd-theme-document .flatpickr-day.prevMonthDay.inRange,
html[data-theme="light"].cd-theme-document .flatpickr-day.nextMonthDay.inRange {
    color: #294b63;
    background: #e8f4f8;
    box-shadow: -5px 0 0 #e8f4f8, 5px 0 0 #e8f4f8;
}

/* Pickr color controls are generated inside modal bodies. */
.cd-modal .pcr-app {
    border: 1px solid rgba(109, 181, 211, .2);
    color: #dceef6;
    background: #0b263a;
    box-shadow: 0 18px 42px rgba(0, 7, 22, .3), inset 0 1px 0 rgba(255,255,255,.035);
}

.cd-modal .pcr-app .pcr-interaction input,
.cd-modal .pcr-app .pcr-interaction .pcr-result {
    color: #dceef6;
    background: #061827;
}

.cd-modal .pcr-app .pcr-interaction .pcr-type.active,
.cd-modal .pcr-app .pcr-interaction .pcr-save {
    color: #ffffff;
    background: #356e9e;
}

.cd-modal .pcr-app .pcr-interaction .pcr-clear,
.cd-modal .pcr-app .pcr-interaction .pcr-cancel {
    color: #ffffff;
    background: #b33c52;
}

html[data-theme="light"] .cd-modal .pcr-app {
    border-color: rgba(68, 126, 163, .14);
    color: #294b63;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(45, 83, 108, .16);
}

html[data-theme="light"] .cd-modal .pcr-app .pcr-interaction input,
html[data-theme="light"] .cd-modal .pcr-app .pcr-interaction .pcr-result {
    color: #294b63;
    background: #eef6f9;
}

html[data-theme="light"] .cd-modal .pcr-app .pcr-interaction .pcr-type.active,
html[data-theme="light"] .cd-modal .pcr-app .pcr-interaction .pcr-save {
    color: #ffffff;
    background: #356e9e;
}

html[data-theme="light"] .cd-modal .pcr-app .pcr-interaction .pcr-clear,
html[data-theme="light"] .cd-modal .pcr-app .pcr-interaction .pcr-cancel {
    color: #ffffff;
    background: #b33c52;
}

/* Update 13: SEO list action totals change state dynamically after AJAX/selection updates. */
.cd-seo-admin-summary-card .seo-report-action-total.bg-light {
    border-color: rgba(108, 174, 211, .18) !important;
    color: #bdd7e3 !important;
    background: rgba(8, 29, 46, .78) !important;
}

.cd-seo-admin-summary-card .seo-report-action-group-success .seo-report-action-total {
    border-color: #176b68 !important;
    color: #ffffff !important;
    background: #176b68 !important;
}

.cd-seo-admin-summary-card .seo-report-action-group-error .seo-report-action-total {
    border-color: #b33c52 !important;
    color: #ffffff !important;
    background: #b33c52 !important;
}

html[data-theme="light"] .cd-seo-admin-summary-card .seo-report-action-total.bg-light {
    border-color: rgba(68, 126, 163, .15) !important;
    color: #526f82 !important;
    background: #f4f9fb !important;
}

/* Update 13: remaining audited contrast corrections on legacy report controls. */
:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-success {
    color: #137333;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-warning {
    color: #9a5b00;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-rich-check-danger {
    color: #b42318;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-success {
    color: #72d99f;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-warning {
    color: #f0c36d;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-rich-check-danger {
    color: #f18b9f;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-click-loading,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-view-loading-overlay,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-click-report-no-screenshot {
    color: #526f82;
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu > .heatmap-report-menu-button-primary {
    color: #ffffff;
    background: linear-gradient(115deg, #7656c5, #356e9e 62%, #176b68);
}

.cd-heatmap-report-content #heatmap-report-sidebar-menu > .heatmap-report-menu-button-primary:hover,
.cd-heatmap-report-content #heatmap-report-sidebar-menu > .heatmap-report-menu-button-primary:focus {
    color: #ffffff;
    background: linear-gradient(115deg, #6d4fb7, #2e668f 62%, #1b7776);
}

.cd-task-modal .task-day-timeline-bar {
    background: #356e9e;
}

html[data-theme="light"] #task-filter-fixed .close-filter {
    color: #4d6c80;
}

/* Update 13: dropdown/autocomplete layers used by lists, forms and body-mounted fixed filters. */
.cd-listing-page .dropdown-menu,
.cd-form-page .dropdown-menu,
.cd-filter-fixed .dropdown-menu,
#filter-fixed .dropdown-menu,
.filter-fixed .dropdown-menu {
    border-color: rgba(107, 174, 207, .18);
    color: #dceef6;
    background: #0a273a;
    box-shadow: 0 18px 42px rgba(0, 8, 22, .24);
}

.cd-listing-page .dropdown-item,
.cd-form-page .dropdown-item,
.cd-filter-fixed .dropdown-item,
#filter-fixed .dropdown-item,
.filter-fixed .dropdown-item {
    color: #cfe6f1;
}

.cd-listing-page .dropdown-item:hover,
.cd-listing-page .dropdown-item:focus,
.cd-form-page .dropdown-item:hover,
.cd-form-page .dropdown-item:focus,
.cd-filter-fixed .dropdown-item:hover,
.cd-filter-fixed .dropdown-item:focus,
#filter-fixed .dropdown-item:hover,
#filter-fixed .dropdown-item:focus,
.filter-fixed .dropdown-item:hover,
.filter-fixed .dropdown-item:focus {
    color: #ffffff;
    background: rgba(61, 134, 176, .16);
}

.cd-listing-page .dropdown-item.disabled,
.cd-listing-page .dropdown-item:disabled,
.cd-form-page .dropdown-item.disabled,
.cd-form-page .dropdown-item:disabled,
.cd-filter-fixed .dropdown-item.disabled,
.cd-filter-fixed .dropdown-item:disabled,
#filter-fixed .dropdown-item.disabled,
#filter-fixed .dropdown-item:disabled,
.filter-fixed .dropdown-item.disabled,
.filter-fixed .dropdown-item:disabled {
    color: #7895a6;
    background: transparent;
    opacity: 1;
}

.cd-listing-page .dropdown-header,
.cd-form-page .dropdown-header,
.cd-filter-fixed .dropdown-header,
#filter-fixed .dropdown-header,
.filter-fixed .dropdown-header {
    color: #9bb8c8 !important;
}

.cd-listing-page .dropdown-divider,
.cd-form-page .dropdown-divider,
.cd-filter-fixed .dropdown-divider,
#filter-fixed .dropdown-divider,
.filter-fixed .dropdown-divider,
.cd-listing-page .dropdown-menu .border-bottom {
    border-color: rgba(107, 174, 207, .14) !important;
}

.cd-listing-page .btn-light {
    border-color: rgba(108, 174, 211, .18);
    color: #cfe7f2;
    background: rgba(8, 29, 46, .78);
}

.cd-listing-page .btn-light:hover,
.cd-listing-page .btn-light:focus {
    border-color: rgba(122, 205, 229, .3);
    color: #ffffff;
    background: rgba(20, 57, 80, .92);
}

.cd-listing-page .btn-light.disabled,
.cd-listing-page .btn-light:disabled {
    border-color: rgba(108, 174, 211, .12);
    color: #8fb0c1;
    background: rgba(8, 29, 46, .58);
    opacity: 1;
}

html[data-theme="light"] .cd-listing-page .dropdown-menu,
html[data-theme="light"] .cd-form-page .dropdown-menu,
html[data-theme="light"] .cd-filter-fixed .dropdown-menu,
html[data-theme="light"] #filter-fixed .dropdown-menu,
html[data-theme="light"] .filter-fixed .dropdown-menu {
    border-color: rgba(68, 126, 163, .14);
    color: #294b63;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(45, 83, 108, .11);
}

html[data-theme="light"] .cd-listing-page .dropdown-item,
html[data-theme="light"] .cd-form-page .dropdown-item,
html[data-theme="light"] .cd-filter-fixed .dropdown-item,
html[data-theme="light"] #filter-fixed .dropdown-item,
html[data-theme="light"] .filter-fixed .dropdown-item {
    color: #355c74;
}

html[data-theme="light"] .cd-listing-page .dropdown-item:hover,
html[data-theme="light"] .cd-listing-page .dropdown-item:focus,
html[data-theme="light"] .cd-form-page .dropdown-item:hover,
html[data-theme="light"] .cd-form-page .dropdown-item:focus,
html[data-theme="light"] .cd-filter-fixed .dropdown-item:hover,
html[data-theme="light"] .cd-filter-fixed .dropdown-item:focus,
html[data-theme="light"] #filter-fixed .dropdown-item:hover,
html[data-theme="light"] #filter-fixed .dropdown-item:focus,
html[data-theme="light"] .filter-fixed .dropdown-item:hover,
html[data-theme="light"] .filter-fixed .dropdown-item:focus {
    color: #17384e;
    background: #edf7fb;
}

html[data-theme="light"] .cd-listing-page .dropdown-item.disabled,
html[data-theme="light"] .cd-listing-page .dropdown-item:disabled,
html[data-theme="light"] .cd-form-page .dropdown-item.disabled,
html[data-theme="light"] .cd-form-page .dropdown-item:disabled,
html[data-theme="light"] .cd-filter-fixed .dropdown-item.disabled,
html[data-theme="light"] .cd-filter-fixed .dropdown-item:disabled,
html[data-theme="light"] #filter-fixed .dropdown-item.disabled,
html[data-theme="light"] #filter-fixed .dropdown-item:disabled,
html[data-theme="light"] .filter-fixed .dropdown-item.disabled,
html[data-theme="light"] .filter-fixed .dropdown-item:disabled {
    color: #718797;
}

html[data-theme="light"] .cd-listing-page .dropdown-header,
html[data-theme="light"] .cd-form-page .dropdown-header,
html[data-theme="light"] .cd-filter-fixed .dropdown-header,
html[data-theme="light"] #filter-fixed .dropdown-header,
html[data-theme="light"] .filter-fixed .dropdown-header {
    color: #526f82 !important;
}

html[data-theme="light"] .cd-listing-page .dropdown-divider,
html[data-theme="light"] .cd-form-page .dropdown-divider,
html[data-theme="light"] .cd-filter-fixed .dropdown-divider,
html[data-theme="light"] #filter-fixed .dropdown-divider,
html[data-theme="light"] .filter-fixed .dropdown-divider,
html[data-theme="light"] .cd-listing-page .dropdown-menu .border-bottom {
    border-color: rgba(68, 126, 163, .12) !important;
}

html[data-theme="light"] .cd-listing-page .btn-light {
    border-color: rgba(68, 126, 163, .15);
    color: #355c74;
    background: #f4f9fb;
}

html[data-theme="light"] .cd-listing-page .btn-light:hover,
html[data-theme="light"] .cd-listing-page .btn-light:focus {
    border-color: rgba(48, 137, 181, .24);
    color: #17384e;
    background: #edf7fb;
}

html[data-theme="light"] .cd-listing-page .btn-light.disabled,
html[data-theme="light"] .cd-listing-page .btn-light:disabled {
    border-color: rgba(68, 126, 163, .11);
    color: #60798a;
    background: #f1f6f8;
    opacity: 1;
}

/* Update 14: CRM detail pass */
.cd-main {
    padding-top: 18px !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
}

@media (max-width: 720px) {
    .cd-main {
        padding-top: 18px !important;
        padding-right: 18px !important;
        padding-left: 18px !important;
    }
}

@media (max-width: 576px) {
    .cd-main {
        padding-top: 18px !important;
        padding-right: 18px !important;
        padding-left: 18px !important;
    }
}

html.cd-theme-document .btn,
.cd-theme-scope .btn,
.cd-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

html.cd-theme-document .btn-info,
.cd-theme-scope .btn-info,
.cd-modal .btn-info {
    border-color: rgba(76, 169, 213, .46) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #2b78a9 0%, #245f8c 100%) !important;
    box-shadow: 0 6px 16px rgba(24, 93, 134, .16) !important;
}

html.cd-theme-document .btn-info:hover,
html.cd-theme-document .btn-info:focus,
.cd-theme-scope .btn-info:hover,
.cd-theme-scope .btn-info:focus,
.cd-modal .btn-info:hover,
.cd-modal .btn-info:focus {
    border-color: rgba(94, 191, 228, .62) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #3184b8 0%, #28699a 100%) !important;
    box-shadow: 0 8px 20px rgba(24, 93, 134, .22) !important;
}

html.cd-theme-document .btn-info:active,
.cd-theme-scope .btn-info:active,
.cd-modal .btn-info:active {
    background: linear-gradient(135deg, #256a98 0%, #20567f 100%) !important;
    box-shadow: inset 0 1px 3px rgba(0, 18, 35, .22) !important;
}

:where(html.cd-theme-document, .cd-theme-scope) select.form-control:not([multiple]):not([size]),
:where(html.cd-theme-document, .cd-theme-scope) select.custom-select:not([multiple]),
:where(html.cd-theme-document, .cd-theme-scope) .form-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2397b9ca' d='M1.2 1.1 6 5.9l4.8-4.8L12 2.3 6 8 0 2.3z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px 8px !important;
}

html[data-theme="light"] :where(.cd-theme-scope) select.form-control:not([multiple]):not([size]),
html[data-theme="light"] :where(.cd-theme-scope) select.custom-select:not([multiple]),
html[data-theme="light"] :where(.cd-theme-scope) .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234d7186' d='M1.2 1.1 6 5.9l4.8-4.8L12 2.3 6 8 0 2.3z'/%3E%3C/svg%3E") !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .form-control:hover:not(.is-invalid):not(.is-valid),
:where(html.cd-theme-document, .cd-theme-scope) .custom-select:hover:not(.is-invalid):not(.is-valid) {
    border-color: rgba(99, 205, 231, .5) !important;
}

html[data-theme="light"] .cd-theme-scope .form-control:hover:not(.is-invalid):not(.is-valid),
html[data-theme="light"] .cd-theme-scope .custom-select:hover:not(.is-invalid):not(.is-valid) {
    border-color: rgba(41, 139, 192, .42) !important;
}

.cd-modal .form-control:hover:not(.is-invalid):not(.is-valid),
.cd-modal .custom-select:hover:not(.is-invalid):not(.is-valid) {
    border-color: rgba(101, 213, 239, .46) !important;
}

html[data-theme="light"] .cd-modal .form-control:hover:not(.is-invalid):not(.is-valid),
html[data-theme="light"] .cd-modal .custom-select:hover:not(.is-invalid):not(.is-valid) {
    border-color: rgba(41, 139, 192, .42) !important;
}

.cd-form-page .form-group.row {
    position: relative;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.cd-form-page .form-group.row + .form-group.row {
    border-top: 0 !important;
}

.cd-form-page .form-group.row:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(77, 169, 255, .11) 12%, rgba(110, 204, 225, .2) 46%, rgba(139, 103, 219, .15) 78%, transparent 100%);
}

html[data-theme="light"] .cd-form-page .form-group.row:not(:last-child)::after {
    background: linear-gradient(90deg, transparent 0%, rgba(55, 136, 182, .09) 12%, rgba(45, 151, 188, .2) 46%, rgba(116, 86, 181, .11) 78%, transparent 100%);
}

.cd-listing-sticky-header-wrapper,
#client-list-card-header-fixed-wrapper,
#heatmap-list-card-header-fixed-wrapper,
#audit-list-card-header-fixed-wrapper,
#client-report-list-card-header-fixed-wrapper,
#seo-report-list-card-header-fixed-wrapper,
#project-list-card-header-fixed-wrapper {
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
}

.cd-listing-sticky-header-wrapper .cd-listing-card-header,
#client-list-card-header-fixed-wrapper .cd-listing-card-header {
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .text-muted,
.cd-modal .text-muted {
    font-size: .8125rem !important;
    line-height: 1.45;
}

.cd-modal .table-hover tbody tr:hover,
.cd-modal-table-wrap .table-hover tbody tr:hover {
    color: #e8f5fb !important;
    background: rgba(66, 147, 188, .1) !important;
}

.cd-modal .table-hover tbody tr:hover > th,
.cd-modal .table-hover tbody tr:hover > td,
.cd-modal-table-wrap .table-hover tbody tr:hover > th,
.cd-modal-table-wrap .table-hover tbody tr:hover > td {
    color: inherit !important;
    background-color: transparent !important;
}

html[data-theme="light"] .cd-modal .table-hover tbody tr:hover,
html[data-theme="light"] .cd-modal-table-wrap .table-hover tbody tr:hover {
    color: #17384e !important;
    background: rgba(55, 137, 180, .075) !important;
}

.cd-modal-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 1px solid rgba(105, 171, 204, .14) !important;
    border-radius: 14px !important;
    background: rgba(4, 18, 31, .44) !important;
}

.cd-modal-table-wrap .table {
    width: 100%;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #d7eaf4 !important;
    background: transparent !important;
}

.cd-modal-table-wrap .table thead th {
    padding: 11px 14px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(111, 182, 215, .14) !important;
    border-left: 0 !important;
    color: #9dc7da !important;
    background: linear-gradient(110deg, rgba(20, 62, 85, .84), rgba(30, 42, 75, .82)) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .055em;
    text-transform: uppercase;
    vertical-align: middle;
}

.cd-modal-table-wrap .table tbody td,
.cd-modal-table-wrap .table tbody th {
    padding: 11px 14px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(105, 171, 204, .09) !important;
    border-left: 0 !important;
    color: #d4e7f1 !important;
    background: transparent !important;
    vertical-align: middle;
}

.cd-modal-table-wrap .table tbody tr:last-child > td,
.cd-modal-table-wrap .table tbody tr:last-child > th {
    border-bottom: 0 !important;
}

html[data-theme="light"] .cd-modal-table-wrap {
    border-color: rgba(68, 126, 163, .14) !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-modal-table-wrap .table {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-modal-table-wrap .table thead th {
    border-bottom-color: rgba(68, 126, 163, .13) !important;
    color: #496f86 !important;
    background: linear-gradient(110deg, #edf6fa, #f4f2fb) !important;
}

html[data-theme="light"] .cd-modal-table-wrap .table tbody td,
html[data-theme="light"] .cd-modal-table-wrap .table tbody th {
    border-bottom-color: rgba(68, 126, 163, .09) !important;
    color: #355c74 !important;
}

.cd-listing-card-header .cd-listing-search {
    width: min(340px, 38vw) !important;
    max-width: 100%;
}

.cd-listing-card-header .cd-listing-search > .input-group,
.cd-listing-card-header .input-group.cd-listing-search {
    width: 100% !important;
}

.cd-listing-card-header .cd-listing-search .form-control,
.cd-listing-card-header .input-group.cd-listing-search > .form-control {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-color: rgba(105, 174, 207, .18) !important;
    border-radius: 12px 0 0 12px !important;
    color: #dbeef6 !important;
    background: rgba(3, 18, 31, .74) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-listing-card-header .cd-listing-search .form-control:hover,
.cd-listing-card-header .cd-listing-search .form-control:focus,
.cd-listing-card-header .input-group.cd-listing-search > .form-control:hover,
.cd-listing-card-header .input-group.cd-listing-search > .form-control:focus {
    border-color: rgba(99, 205, 231, .5) !important;
    box-shadow: 0 0 0 3px rgba(77, 169, 255, .07) !important;
}

.cd-listing-card-header .cd-listing-search .input-group-append .input-group-text,
.cd-listing-card-header .input-group.cd-listing-search > .input-group-append .input-group-text {
    width: 43px;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0 !important;
    border-color: rgba(105, 174, 207, .18) !important;
    border-left: 0 !important;
    border-radius: 0 12px 12px 0 !important;
    color: #90bbce !important;
    background: rgba(12, 39, 57, .82) !important;
}

html[data-theme="light"] .cd-listing-card-header .cd-listing-search .form-control,
html[data-theme="light"] .cd-listing-card-header .input-group.cd-listing-search > .form-control {
    border-color: rgba(68, 126, 163, .16) !important;
    color: #294b63 !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
}

html[data-theme="light"] .cd-listing-card-header .cd-listing-search .form-control:hover,
html[data-theme="light"] .cd-listing-card-header .cd-listing-search .form-control:focus,
html[data-theme="light"] .cd-listing-card-header .input-group.cd-listing-search > .form-control:hover,
html[data-theme="light"] .cd-listing-card-header .input-group.cd-listing-search > .form-control:focus {
    border-color: rgba(41, 139, 192, .42) !important;
    box-shadow: 0 0 0 3px rgba(41, 139, 192, .06) !important;
}

html[data-theme="light"] .cd-listing-card-header .cd-listing-search .input-group-append .input-group-text,
html[data-theme="light"] .cd-listing-card-header .input-group.cd-listing-search > .input-group-append .input-group-text {
    border-color: rgba(68, 126, 163, .16) !important;
    color: #55798e !important;
    background: #f1f7fa !important;
}

@media (max-width: 767px) {
    .cd-listing-card-header .cd-listing-search {
        width: 100% !important;
    }
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group:not(.btn-group-toggle):not(.document-editor-toolbar):not(.cd-project-report-action-group):not(.cd-project-report-actions):not(.cd-listing-action-group):not(.cd-listing-row-actions):not(.gap-1):not(.g-1):not(.gap-2):not(.g-2):not(.gap-3):not(.g-3):not(.gap-4):not(.g-4) {
    gap: 0 !important;
}


:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group:not(.btn-group-toggle):not(.document-editor-toolbar):not(.cd-project-report-action-group):not(.cd-project-report-actions):not(.cd-listing-action-group):not(.cd-listing-row-actions):not(.gap-1):not(.g-1):not(.gap-2):not(.g-2):not(.gap-3):not(.g-3):not(.gap-4):not(.g-4) > .btn + .btn {
    margin-left: -1px !important;
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group:not(.btn-group-toggle):not(.document-editor-toolbar):not(.cd-project-report-action-group):not(.cd-project-report-actions):not(.cd-listing-action-group):not(.cd-listing-row-actions):not(.gap-1):not(.g-1):not(.gap-2):not(.g-2):not(.gap-3):not(.g-3):not(.gap-4):not(.g-4) > .btn:first-child:not(:last-child) {
    border-radius: 11px 0 0 11px !important;
}


:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group:not(.btn-group-toggle):not(.document-editor-toolbar):not(.cd-project-report-action-group):not(.cd-project-report-actions):not(.cd-listing-action-group):not(.cd-listing-row-actions):not(.gap-1):not(.g-1):not(.gap-2):not(.g-2):not(.gap-3):not(.g-3):not(.gap-4):not(.g-4) > .btn:only-child {
    border-radius: 11px !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group > .input-group-append > .btn {
    margin-left: -1px !important;
    border-radius: 0 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group > .input-group-append > .btn:last-child {
    border-radius: 0 11px 11px 0 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group > .input-group-append > .btn:only-child {
    border-radius: 0 11px 11px 0 !important;
}

.cd-form-image-card {
    aspect-ratio: 1.45 / 1;
}

.cd-form-image-card::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-top: 1px solid rgba(122, 210, 232, .34);
    border-right: 1px solid rgba(122, 210, 232, .34);
    border-radius: 0 9px 0 0;
    pointer-events: none;
}

.cd-form-image-card::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 9px;
    left: 10px;
    z-index: 1;
    height: 39px;
    border: 1px solid rgba(98, 174, 208, .12);
    border-radius: 11px;
    background: linear-gradient(90deg, rgba(9, 35, 52, .9), rgba(16, 31, 53, .9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    pointer-events: none;
}

.cd-form-image-card > .card-img-top,
.cd-form-image-card > img.card-img-top,
.cd-form-image-card > .img-thumbnail,
.cd-form-image-card .img-thumbnail-cont-full {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    padding: 12px !important;
    object-fit: contain !important;
    border: 1px solid rgba(99, 177, 211, .12) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
        rgba(2, 14, 25, .64) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-form-image-card .card-body,
.cd-form-image-card .cd-form-image-actions {
    right: 14px !important;
    bottom: 11px !important;
    left: 14px !important;
}

.cd-form-image-card .cd-icon-button {
    border-color: rgba(99, 185, 219, .23) !important;
    color: #b9e7f4 !important;
    background: rgba(29, 91, 120, .24) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.cd-form-image-card .cd-icon-button:hover,
.cd-form-image-card .cd-icon-button:focus {
    border-color: rgba(100, 208, 232, .43) !important;
    color: #e8fbff !important;
    background: rgba(43, 127, 160, .34) !important;
    transform: translateY(-1px);
}

.cd-form-image-card .cd-form-image-delete {
    border-color: rgba(226, 91, 119, .25) !important;
    color: #ffb5c4 !important;
    background: rgba(157, 47, 72, .22) !important;
}

.cd-form-image-card .cd-form-image-delete:hover,
.cd-form-image-card .cd-form-image-delete:focus {
    border-color: rgba(239, 103, 130, .45) !important;
    color: #ffe6eb !important;
    background: rgba(177, 53, 80, .34) !important;
}

html[data-theme="light"] .cd-form-image-card {
    border-color: rgba(68, 126, 163, .18) !important;
    background:
        radial-gradient(circle at 88% 8%, rgba(116, 86, 197, .09), transparent 34%),
        radial-gradient(circle at 10% 88%, rgba(45, 155, 171, .07), transparent 38%),
        linear-gradient(145deg, #ffffff, #f3f8fb) !important;
    box-shadow: 0 14px 30px rgba(45, 83, 108, .1), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-form-image-card:hover {
    border-color: rgba(48, 142, 184, .33) !important;
    box-shadow: 0 17px 34px rgba(45, 83, 108, .14), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-form-image-card::before {
    border-color: rgba(50, 139, 177, .27);
}

html[data-theme="light"] .cd-form-image-card::after {
    border-color: rgba(68, 126, 163, .11);
    background: linear-gradient(90deg, rgba(238, 247, 250, .98), rgba(243, 241, 250, .98));
}

html[data-theme="light"] .cd-form-image-card > .card-img-top,
html[data-theme="light"] .cd-form-image-card > img.card-img-top,
html[data-theme="light"] .cd-form-image-card > .img-thumbnail,
html[data-theme="light"] .cd-form-image-card .img-thumbnail-cont-full {
    border-color: rgba(68, 126, 163, .11) !important;
    background: linear-gradient(135deg, #fff, #f4f8fa) !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-form-image-card .cd-icon-button {
    border-color: rgba(50, 139, 177, .18) !important;
    color: #286d8c !important;
    background: #e9f5f9 !important;
}

html[data-theme="light"] .cd-form-image-card .cd-icon-button:hover,
html[data-theme="light"] .cd-form-image-card .cd-icon-button:focus {
    border-color: rgba(43, 133, 173, .3) !important;
    color: #174c66 !important;
    background: #ddf0f6 !important;
}

html[data-theme="light"] .cd-form-image-card .cd-form-image-delete {
    border-color: rgba(190, 67, 92, .17) !important;
    color: #a53b51 !important;
    background: #fff0f3 !important;
}

html[data-theme="light"] .cd-form-image-card .cd-form-image-delete:hover,
html[data-theme="light"] .cd-form-image-card .cd-form-image-delete:focus {
    border-color: rgba(190, 67, 92, .28) !important;
    color: #873044 !important;
    background: #ffe5eb !important;
}

.badge.cd-auto-contrast-badge {
    min-height: 17px !important;
    padding: 2px 5px !important;
    border-color: transparent !important;
    border-radius: 999px !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cd-document-banner-title-row .cd-document-back-button {
    order: -1;
    flex: 0 0 auto;
}

.cd-task-admin-page .task-card .task-card-header {
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-task-admin-page .task-card .task-card-header::before,
.cd-task-admin-page .task-card .task-card-header::after {
    display: none !important;
}

.cd-task-admin-page .task-list-empty-state,
.cd-project-task-workspace #task > .card {
    overflow: hidden;
    border: 1px dashed rgba(91, 176, 215, .2) !important;
    border-radius: 16px !important;
    color: #b8d1dd !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(92, 125, 208, .08), transparent 24rem),
        rgba(6, 24, 38, .62) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-project-task-workspace #task > .card,
.cd-project-task-workspace #task > .card > .w-100 {
    min-height: 240px !important;
}

html[data-theme="light"] .cd-task-admin-page .task-list-empty-state,
html[data-theme="light"] .cd-project-task-workspace #task > .card {
    border-color: rgba(68, 126, 163, .18) !important;
    color: #55778b !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(92, 125, 208, .06), transparent 24rem),
        #f7fbfc !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

.cd-project-report-workspace .cd-project-report-shell {
    color: #d8ebf4;
}

.cd-project-report-workspace .cd-project-report-toolbar {
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 12px;
    border: 1px solid rgba(101, 175, 208, .13);
    border-radius: 15px;
    background: linear-gradient(110deg, rgba(7, 29, 44, .82), rgba(15, 27, 50, .78));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-project-report-workspace .cd-project-report-toolbar > div {
    max-width: 100%;
}

.cd-project-report-workspace .cd-project-report-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px !important;
    margin-left: 0 !important;
}

.cd-project-report-workspace .cd-project-report-action-group {
    gap: 7px !important;
}

.cd-project-report-workspace .cd-project-report-action-group > .btn,
.cd-project-report-workspace .cd-project-report-actions > .btn,
.cd-project-report-workspace .cd-project-report-actions > .cd-icon-button {
    min-height: 38px;
    border-radius: 10px !important;
}

.cd-project-report-workspace .cd-project-report-total {
    min-height: 38px;
    border-color: rgba(105, 174, 207, .14) !important;
    color: #b9d5e2 !important;
    background: rgba(255,255,255,.04) !important;
    font-size: 12px;
    font-weight: 750;
}

.cd-project-report-workspace #search-results-date-container,
.cd-project-report-workspace .task-report-input-group,
.cd-project-report-workspace .task-report-input-group .input-group-prepend {
    background: transparent !important;
}

.cd-project-report-workspace #search-results-date-container {
    min-width: 190px;
    border-radius: 10px;
}

.cd-project-report-workspace #task-report-results > .card,
.cd-project-report-workspace .task-report-maintenance-section,
.cd-project-report-workspace .task-report-grand-total-section {
    border: 1px solid rgba(105, 174, 207, .12) !important;
    border-radius: 15px !important;
    color: #d7e9f2 !important;
    background: rgba(5, 23, 37, .62) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02) !important;
}

.cd-project-report-workspace #task-report-results > .card {
    min-height: 240px !important;
}

.cd-project-report-workspace .task-report-maintenance-section,
.cd-project-report-workspace .task-report-grand-total-section {
    padding: 12px;
}

.cd-project-report-workspace .task-report-maintenance-section > h5,
.cd-project-report-workspace .task-report-grand-total-section > h5 {
    margin: 0 0 10px !important;
    color: #b9d8e6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .035em;
}

.cd-project-report-workspace #task-report-results .table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(105, 174, 207, .11);
    border-radius: 12px;
    background: rgba(3, 17, 29, .42);
}

.cd-project-report-workspace #task-report-results table {
    margin-bottom: 0 !important;
    color: #d5e8f1 !important;
    background: transparent !important;
}

.cd-project-report-workspace #task-report-results table thead th {
    padding: 10px 11px !important;
    border-color: rgba(105, 174, 207, .12) !important;
    color: #95bfd2 !important;
    background: linear-gradient(110deg, rgba(17, 54, 75, .84), rgba(28, 39, 70, .82)) !important;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .045em;
}

.cd-project-report-workspace #task-report-results table tbody td,
.cd-project-report-workspace #task-report-results table tbody th {
    padding: 9px 11px !important;
    border-color: rgba(105, 174, 207, .085) !important;
    color: #d5e8f1 !important;
    background-color: transparent !important;
    vertical-align: middle;
}

.cd-project-report-workspace #task-report-results table tbody tr:hover {
    color: #eef9fd !important;
    background: rgba(66, 147, 188, .09) !important;
}

.cd-project-report-workspace #task-report-results table tbody tr:hover > td,
.cd-project-report-workspace #task-report-results table tbody tr:hover > th {
    color: inherit !important;
    background-color: transparent !important;
}

.cd-project-report-workspace #task-report-results .table-info,
.cd-project-report-workspace #task-report-results .table-secondary,
.cd-project-report-workspace #task-report-results .table-light,
.cd-project-report-workspace #task-report-results .table-warning {
    color: #dceef6 !important;
    background: rgba(72, 130, 164, .1) !important;
}

.cd-project-report-workspace #task-report-results .table-warning {
    background: rgba(193, 136, 47, .11) !important;
}

.cd-project-report-workspace .task-report-task-name,
.cd-project-report-workspace .task-report-subtask-name {
    border-radius: 6px;
    color: #d8ebf4 !important;
}

.cd-project-report-workspace .task-report-task-name:hover,
.cd-project-report-workspace .task-report-subtask-name:hover,
.cd-project-report-workspace .task-report-task-name:focus,
.cd-project-report-workspace .task-report-subtask-name:focus {
    outline: 0;
    background: rgba(77, 169, 255, .07);
    box-shadow: 0 0 0 2px rgba(77, 169, 255, .06);
}

.cd-project-report-workspace .task-report-input-group .form-control,
.cd-project-report-workspace .task-report-input-group .input-group-text {
    min-height: 34px !important;
    border-color: rgba(105, 174, 207, .14) !important;
    color: #d8ebf4 !important;
    background: rgba(4, 20, 33, .66) !important;
}

.cd-project-report-workspace .task-report-input-group .form-control:hover,
.cd-project-report-workspace .task-report-input-group .form-control:focus {
    border-color: rgba(99, 205, 231, .5) !important;
}

html[data-theme="light"] .cd-project-report-workspace .cd-project-report-shell {
    color: #294b63;
}

html[data-theme="light"] .cd-project-report-workspace .cd-project-report-toolbar {
    border-color: rgba(68, 126, 163, .13);
    background: linear-gradient(110deg, #f2f8fb, #f7f5fc);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-project-report-workspace .cd-project-report-total {
    border-color: rgba(68, 126, 163, .14) !important;
    color: #42687f !important;
    background: #f4f9fb !important;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results > .card,
html[data-theme="light"] .cd-project-report-workspace .task-report-maintenance-section,
html[data-theme="light"] .cd-project-report-workspace .task-report-grand-total-section {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #294b63 !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-maintenance-section > h5,
html[data-theme="light"] .cd-project-report-workspace .task-report-grand-total-section > h5 {
    color: #456b82;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results .table-responsive {
    border-color: rgba(68, 126, 163, .11);
    background: #fff;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results table {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results table thead th {
    border-color: rgba(68, 126, 163, .11) !important;
    color: #4d7187 !important;
    background: linear-gradient(110deg, #edf6fa, #f4f2fb) !important;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results table tbody td,
html[data-theme="light"] .cd-project-report-workspace #task-report-results table tbody th {
    border-color: rgba(68, 126, 163, .08) !important;
    color: #355c74 !important;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results table tbody tr:hover {
    color: #17384e !important;
    background: rgba(55, 137, 180, .07) !important;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results .table-info,
html[data-theme="light"] .cd-project-report-workspace #task-report-results .table-secondary,
html[data-theme="light"] .cd-project-report-workspace #task-report-results .table-light,
html[data-theme="light"] .cd-project-report-workspace #task-report-results .table-warning {
    color: #294b63 !important;
    background: #f1f7fa !important;
}

html[data-theme="light"] .cd-project-report-workspace #task-report-results .table-warning {
    background: #fff7e8 !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-task-name,
html[data-theme="light"] .cd-project-report-workspace .task-report-subtask-name {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-input-group .form-control,
html[data-theme="light"] .cd-project-report-workspace .task-report-input-group .input-group-text {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #294b63 !important;
    background: #f7fbfc !important;
}

@media (max-width: 991px) {
    .cd-project-report-workspace .cd-project-report-toolbar {
        align-items: stretch !important;
        flex-direction: column;
    }

    .cd-project-report-workspace .cd-project-report-actions {
        justify-content: flex-start;
    }
}

:where(html.cd-theme-document, .cd-theme-scope) .form-control:focus:not(.is-invalid):not(.is-valid),
:where(html.cd-theme-document, .cd-theme-scope) .custom-select:focus:not(.is-invalid):not(.is-valid) {
    border-color: rgba(99, 205, 231, .5) !important;
}

html[data-theme="light"] .cd-theme-scope .form-control:focus:not(.is-invalid):not(.is-valid),
html[data-theme="light"] .cd-theme-scope .custom-select:focus:not(.is-invalid):not(.is-valid) {
    border-color: rgba(41, 139, 192, .42) !important;
}

.cd-form-page .form-group.row + .form-group.row {
    padding-top: 12px !important;
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.gap-1,
:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.g-1 {
    gap: .25rem !important;
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.gap-2,
:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.g-2 {
    gap: .5rem !important;
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.gap-3,
:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.g-3 {
    gap: 1rem !important;
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.gap-4,
:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.g-4 {
    gap: 1.5rem !important;
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.gap-5,
:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group.g-5 {
    gap: 3rem !important;
}

:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group[class*="gap-"] > .btn,
:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) .btn-group[class*=" g-"] > .btn {
    margin: 0 !important;
    border-radius: 11px !important;
}

.cd-task-admin-page .task-timer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    min-width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid rgba(105, 174, 207, .14) !important;
    border-radius: 9px;
    color: #9dc5d7;
    background: rgba(255,255,255,.035) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.cd-task-admin-page .task-timer-toggle:hover,
.cd-task-admin-page .task-timer-toggle:focus {
    border-color: rgba(100, 199, 226, .32) !important;
    background: rgba(77, 169, 207, .1) !important;
    outline: 0;
    transform: translateY(-1px);
}

.cd-task-admin-page .task-timer-toggle.text-success {
    border-color: rgba(45, 189, 187, .2) !important;
    color: #78ddd7 !important;
}

.cd-task-admin-page .task-timer-toggle.text-danger {
    border-color: rgba(224, 84, 113, .22) !important;
    color: #ff9caf !important;
}

html[data-theme="light"] .cd-task-admin-page .task-timer-toggle {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #52758a;
    background: #f4f9fb !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-task-admin-page .task-timer-toggle.text-success {
    border-color: rgba(26, 137, 132, .16) !important;
    color: #16736f !important;
}

html[data-theme="light"] .cd-task-admin-page .task-timer-toggle.text-danger {
    border-color: rgba(190, 67, 92, .16) !important;
    color: #a13850 !important;
}

/* Update 15: report/detail route audit */
/* Audit report filter counters must remain legible on both normal and active tabs. */
.cd-audit-admin-report #audit-report-filter-tabs .badge-light,
.cd-audit-admin-report .audit-report-filter-tabs .badge-light {
    min-width: 24px;
    padding: 3px 7px !important;
    border: 1px solid rgba(143, 198, 220, .18) !important;
    color: #c9e8f4 !important;
    background: rgba(3, 18, 31, .54) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.cd-audit-admin-report #audit-report-filter-tabs .audit-report-filter-button.active .badge-light,
.cd-audit-admin-report .audit-report-filter-tabs .audit-report-filter-button.active .badge-light {
    border-color: rgba(255,255,255,.2) !important;
    color: #ffffff !important;
    background: rgba(4, 18, 31, .32) !important;
}

html[data-theme="light"] .cd-audit-admin-report #audit-report-filter-tabs .badge-light,
html[data-theme="light"] .cd-audit-admin-report .audit-report-filter-tabs .badge-light {
    border-color: rgba(55, 118, 156, .15) !important;
    color: #355f76 !important;
    background: #e8f2f6 !important;
    box-shadow: inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] .cd-audit-admin-report #audit-report-filter-tabs .audit-report-filter-button.active .badge-light,
html[data-theme="light"] .cd-audit-admin-report .audit-report-filter-tabs .audit-report-filter-button.active .badge-light {
    border-color: rgba(255,255,255,.34) !important;
    color: #ffffff !important;
    background: rgba(32, 55, 92, .36) !important;
    box-shadow: none !important;
}

/* Audit settings uses a form wrapper around its legacy card, unlike the other report tabs. */
.cd-audit-admin-page #tab-settings > form > .card.card-body {
    border: 1px solid rgba(105, 169, 201, .12) !important;
    border-radius: 17px !important;
    color: var(--cd-text) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .08), transparent 18rem),
        linear-gradient(145deg, rgba(10, 32, 49, .94), rgba(5, 21, 35, .9)) !important;
    box-shadow: 0 14px 34px rgba(0,8,22,.14), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

html[data-theme="light"] .cd-audit-admin-page #tab-settings > form > .card.card-body {
    border-color: rgba(66, 126, 164, .12) !important;
    color: #294b63 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118,86,197,.055), transparent 16rem),
        linear-gradient(145deg, #ffffff, #f1f8fb) !important;
    box-shadow: 0 12px 28px rgba(48, 86, 111, .07), inset 0 1px 0 #ffffff !important;
}

/* Audit group manager is dynamically populated and therefore needs the same modal-card/table language. */
#modal-audit-group-manager .modal-body > .card {
    overflow: visible;
    border: 1px solid rgba(105, 174, 207, .14) !important;
    border-radius: 15px !important;
    color: var(--cd-text) !important;
    background: linear-gradient(145deg, rgba(9, 31, 48, .92), rgba(5, 22, 36, .86)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

#modal-audit-group-manager .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(105, 174, 207, .13) !important;
    border-radius: 14px !important;
    background: rgba(4, 18, 31, .42) !important;
}

#modal-audit-group-manager .table {
    margin-bottom: 0 !important;
    color: var(--cd-text) !important;
    background: transparent !important;
}

#modal-audit-group-manager .table thead th {
    border-color: rgba(105, 174, 207, .12) !important;
    color: #9dc7da !important;
    background: linear-gradient(110deg, rgba(20, 62, 85, .84), rgba(30, 42, 75, .82)) !important;
}

#modal-audit-group-manager .table tbody td {
    border-color: rgba(105, 174, 207, .09) !important;
    color: #d4e7f1 !important;
    background: transparent !important;
}

#modal-audit-group-manager .table-hover tbody tr:hover {
    color: #eef9fd !important;
    background: rgba(66, 147, 188, .1) !important;
}

#modal-audit-group-manager .table-hover tbody tr:hover > td,
#modal-audit-group-manager .table-hover tbody tr:hover > th {
    color: inherit !important;
    background-color: transparent !important;
}

html[data-theme="light"] #modal-audit-group-manager .modal-body > .card,
html[data-theme="light"] #modal-audit-group-manager .table-responsive {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #294b63 !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] #modal-audit-group-manager .table thead th {
    border-color: rgba(68, 126, 163, .11) !important;
    color: #496f86 !important;
    background: linear-gradient(110deg, #edf6fa, #f4f2fb) !important;
}

html[data-theme="light"] #modal-audit-group-manager .table tbody td {
    border-color: rgba(68, 126, 163, .09) !important;
    color: #355c74 !important;
}

html[data-theme="light"] #modal-audit-group-manager .table-hover tbody tr:hover {
    color: #17384e !important;
    background: rgba(55, 137, 180, .075) !important;
}

/* Heatmap report toolbar exists without .cd-heatmap-report-toolbar in the admin route. */
.cd-heatmap-report-content > .d-flex.align-items-center.justify-content-between {
    gap: 14px;
    flex-wrap: wrap;
}

.cd-heatmap-report-content .heatmap-device-type-buttons,
.cd-heatmap-report-content .heatmap-report-type-buttons,
.cd-heatmap-report-content .heatmap-screenshot-nav-group {
    gap: 5px !important;
    padding: 5px !important;
    border: 1px solid rgba(111, 171, 202, .16) !important;
    border-radius: 14px !important;
    background: linear-gradient(105deg, rgba(13, 39, 59, .94), rgba(11, 45, 65, .9) 58%, rgba(10, 53, 59, .84)) !important;
    box-shadow: 0 12px 26px rgba(0, 7, 22, .16), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.cd-heatmap-report-content .button-report-device-type,
.cd-heatmap-report-content .button-report-heatmap-type,
.cd-heatmap-report-content .heatmap-screenshot-nav-group > .btn,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-toggle {
    min-height: 36px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: #a9c5d4 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-heatmap-report-content .button-report-device-type:hover,
.cd-heatmap-report-content .button-report-device-type:focus,
.cd-heatmap-report-content .button-report-heatmap-type:hover,
.cd-heatmap-report-content .button-report-heatmap-type:focus,
.cd-heatmap-report-content .heatmap-screenshot-nav-group > .btn:hover,
.cd-heatmap-report-content .heatmap-screenshot-nav-group > .btn:focus,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-toggle:hover,
.cd-heatmap-report-content .heatmap-screenshot-dropdown-toggle:focus {
    border-color: rgba(116, 183, 210, .18) !important;
    color: #f3fbff !important;
    background: rgba(78, 145, 178, .12) !important;
}

.cd-heatmap-report-content .button-report-device-type.active,
.cd-heatmap-report-content .button-report-device-type.bg-secondary,
.cd-heatmap-report-content .button-report-heatmap-type.active,
.cd-heatmap-report-content .button-report-heatmap-type.bg-secondary {
    border-color: rgba(128, 211, 226, .46) !important;
    color: #ffffff !important;
    background: linear-gradient(115deg, #6b50b6, #3478aa 62%, #247f8c) !important;
    box-shadow: 0 8px 18px rgba(37, 52, 113, .24), inset 0 1px 0 rgba(255,255,255,.2) !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group {
    color: #dceef6 !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control {
    height: 42px !important;
    background-color: transparent !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control:hover,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control:focus {
    border: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(99, 205, 231, .28) !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn {
    width: 43px;
    min-width: 43px;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(109, 184, 213, .14) !important;
    border-radius: 0 !important;
    color: #82d8e8 !important;
    background: rgba(255,255,255,.025) !important;
    box-shadow: none !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn:hover,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn:focus {
    color: #ffffff !important;
    background: rgba(55, 132, 168, .18) !important;
}

.cd-heatmap-admin-page #tab-pages > .card,
.cd-heatmap-admin-page #tab-reports-history > .card,
.cd-heatmap-admin-page #tab-settings > form > .card,
.cd-heatmap-report-content > .card.card-body {
    color: var(--cd-text) !important;
}

.cd-heatmap-admin-page .heatmap-page-system-info-modal code {
    padding: 2px 5px;
    border-radius: 6px;
    color: #9ce4f1;
    background: rgba(61, 139, 176, .1);
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-report-type-buttons,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-nav-group {
    border-color: rgba(68, 126, 163, .14) !important;
    background: linear-gradient(105deg, #f2f8fb, #eef5fb 58%, #edf8f6) !important;
    box-shadow: 0 9px 22px rgba(48, 86, 111, .07), inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] .cd-heatmap-report-content .button-report-device-type:not(.active):not(.bg-secondary),
html[data-theme="light"] .cd-heatmap-report-content .button-report-heatmap-type:not(.active):not(.bg-secondary),
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-nav-group > .btn,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-dropdown-toggle {
    color: #52758a !important;
}

html[data-theme="light"] .cd-heatmap-report-content .button-report-device-type:not(.active):not(.bg-secondary):hover,
html[data-theme="light"] .cd-heatmap-report-content .button-report-device-type:not(.active):not(.bg-secondary):focus,
html[data-theme="light"] .cd-heatmap-report-content .button-report-heatmap-type:not(.active):not(.bg-secondary):hover,
html[data-theme="light"] .cd-heatmap-report-content .button-report-heatmap-type:not(.active):not(.bg-secondary):focus,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-nav-group > .btn:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-nav-group > .btn:focus,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-dropdown-toggle:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-screenshot-dropdown-toggle:focus {
    border-color: rgba(68, 139, 181, .17) !important;
    color: #17384e !important;
    background: #e6f2f7 !important;
}

/* Canonical active state for heatmap segmented controls across CRM, theme design and client dashboard. */
html[data-theme="light"] .cd-heatmap-report-content .button-report-device-type.active,
html[data-theme="light"] .cd-heatmap-report-content .button-report-device-type.bg-secondary,
html[data-theme="light"] .cd-heatmap-report-content .button-report-heatmap-type.active,
html[data-theme="light"] .cd-heatmap-report-content .button-report-heatmap-type.bg-secondary {
    border-color: rgba(128, 211, 226, .46) !important;
    color: #ffffff !important;
    background: linear-gradient(115deg, #6b50b6, #3478aa 62%, #247f8c) !important;
    box-shadow: 0 8px 18px rgba(37, 52, 113, .18), inset 0 1px 0 rgba(255,255,255,.2) !important;
}

.cd-heatmap-report-content .button-report-device-type.active > :is(i, span),
.cd-heatmap-report-content .button-report-device-type.bg-secondary > :is(i, span),
.cd-heatmap-report-content .button-report-heatmap-type.active > :is(i, span),
.cd-heatmap-report-content .button-report-heatmap-type.bg-secondary > :is(i, span),
.cd-heatmap-admin-page .button-report-device-type.active > :is(i, span),
.cd-heatmap-admin-page .button-report-device-type.bg-secondary > :is(i, span),
.cd-heatmap-admin-page .button-report-heatmap-type.active > :is(i, span),
.cd-heatmap-admin-page .button-report-heatmap-type.bg-secondary > :is(i, span) {
    color: #ffffff !important;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control {
    color: #294b63 !important;
    background-color: transparent !important;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn {
    border-left-color: rgba(68, 126, 163, .12) !important;
    color: #34779a !important;
    background: #f4f9fb !important;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn:hover,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn:focus {
    color: #174c66 !important;
    background: #e6f2f7 !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-system-info-modal code {
    color: #246b8c;
    background: #e8f4f8;
}

@media (max-width: 991px) {
    .cd-heatmap-report-content > .d-flex.align-items-center.justify-content-between {
        align-items: stretch !important;
        flex-direction: column;
    }

    .cd-heatmap-report-content #heatmap-right-buttons {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* Client Report expanded mini lists inherit a legacy white/black list skin otherwise. */
.cd-client-report-list-shell .client-report-mini-list {
    gap: 5px;
    min-width: 0;
    padding: 2px 0;
    color: var(--cd-text);
    background: transparent !important;
}

.cd-client-report-list-shell .client-report-mini-row {
    min-height: 31px;
    padding: 6px 8px;
    border: 1px solid rgba(105, 174, 207, .09) !important;
    border-radius: 9px;
    color: #d6e9f2;
    background: rgba(255,255,255,.025) !important;
    transition: border-color .16s ease, background-color .16s ease;
}

.cd-client-report-list-shell .client-report-mini-row:hover {
    border-color: rgba(105, 185, 218, .16) !important;
    background: rgba(66, 147, 188, .07) !important;
}

.cd-client-report-list-shell .client-report-mini-row:last-child {
    border-bottom: 1px solid rgba(105, 174, 207, .09) !important;
}

.cd-client-report-list-shell .client-report-mini-name {
    color: #d9edf6 !important;
    font-weight: 650;
    text-decoration: none;
}

.cd-client-report-list-shell a.client-report-mini-name:hover,
.cd-client-report-list-shell a.client-report-mini-name:focus {
    color: #8fe2f0 !important;
    text-decoration: none;
}

.cd-client-report-list-shell .client-report-mini-meta {
    color: #8eabb9 !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-row {
    border-color: rgba(68, 126, 163, .09) !important;
    color: #355c74;
    background: #f8fbfc !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-row:hover {
    border-color: rgba(68, 139, 181, .14) !important;
    background: #eef7fa !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-row:last-child {
    border-bottom-color: rgba(68, 126, 163, .09) !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-name {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-client-report-list-shell a.client-report-mini-name:hover,
html[data-theme="light"] .cd-client-report-list-shell a.client-report-mini-name:focus {
    color: #176f96 !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-meta {
    color: #678395 !important;
}

/* Settings accordions: heading owns the outline; fieldset must not draw a second border. */
.cd-form-page #tab-option.accordion > .accordion-item {
    overflow: visible;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-form-page #tab-option.accordion > .accordion-item + .accordion-item {
    margin-top: 8px !important;
}

.cd-form-page #tab-option.accordion > .accordion-item > .accordion-button {
    margin: 0;
    padding-right: 16px !important;
    padding-left: 16px !important;
    border-radius: 14px !important;
}

.cd-form-page #tab-option.accordion > .accordion-item > .collapse.show > .card-body,
.cd-form-page #tab-option.accordion > .accordion-item > .collapsing > .card-body {
    margin-top: -1px;
    padding: 16px;
    border: 1px solid rgba(111, 171, 202, .13);
    border-top-color: rgba(111, 171, 202, .07);
    border-radius: 0 0 14px 14px;
    color: var(--cd-text);
    background: rgba(5, 22, 36, .55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}


html[data-theme="light"] .cd-form-page #tab-option.accordion > .accordion-item > .collapse.show > .card-body,
html[data-theme="light"] .cd-form-page #tab-option.accordion > .accordion-item > .collapsing > .card-body {
    border-color: rgba(68, 126, 163, .12);
    border-top-color: rgba(68, 126, 163, .06);
    color: #294b63;
    background: #fbfdfe;
    box-shadow: inset 0 1px 0 #ffffff;
}

/* Keep remaining report/task legacy utility surfaces theme-aware in the reviewed routes. */
.cd-audit-admin-page .table-responsive.bg-white,
.cd-heatmap-admin-page .table-responsive.bg-white,
.cd-project-task-workspace .table-responsive.bg-white,
.cd-project-report-workspace .table-responsive.bg-white {
    color: var(--cd-text) !important;
    background: rgba(4, 18, 31, .4) !important;
}

.cd-audit-admin-page .badge-light,
.cd-heatmap-admin-page .badge-light,
.cd-task-admin-page .badge-light,
.cd-project-task-workspace .badge-light,
.cd-project-report-workspace .badge-light {
    border-color: rgba(130, 184, 207, .16) !important;
    color: #c8e0eb !important;
    background: rgba(255,255,255,.055) !important;
}

.cd-task-admin-page .task-card > .card-header,
.cd-project-task-workspace .task-card > .card-header {
    border: 0 !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] .cd-audit-admin-page .table-responsive.bg-white,
html[data-theme="light"] .cd-heatmap-admin-page .table-responsive.bg-white,
html[data-theme="light"] .cd-project-task-workspace .table-responsive.bg-white,
html[data-theme="light"] .cd-project-report-workspace .table-responsive.bg-white {
    color: #294b63 !important;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-audit-admin-page .badge-light,
html[data-theme="light"] .cd-heatmap-admin-page .badge-light,
html[data-theme="light"] .cd-task-admin-page .badge-light,
html[data-theme="light"] .cd-project-task-workspace .badge-light,
html[data-theme="light"] .cd-project-report-workspace .badge-light {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #496f86 !important;
    background: #edf5f8 !important;
}

#modal-audit-group-manager .form-control-color {
    width: 74px;
    min-width: 74px;
    height: 44px;
    min-height: 44px;
    padding: 3px !important;
    overflow: hidden;
    border-radius: 12px;
}

#modal-audit-group-manager .pickr,
#modal-audit-group-manager .pcr-button {
    width: 100% !important;
    height: 100% !important;
    float: none;
}

/* Update 18: production CRM synchronization and final detail states */

/* Auth consistency and Client Dashboard sidebar depth. */
.cd-auth-body .cd-auth-heading h1 {
    text-transform: none;
    letter-spacing: .005em;
}

.cd-sidebar:not(#column-left) .cd-sidebar-rocket-stage {
    opacity: .35;
}

/* Compact semantic badges: still readable, no pill geometry. */
:where(html.cd-theme-document, .cd-theme-scope) .badge {
    border-radius: 7px !important;
}

/* Accordion buttons use their parent card for horizontal spacing. */
:where(html.cd-theme-document, .cd-theme-scope) .accordion-button {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Bootstrap danger red is too dim on Galaxy surfaces. */
html[data-theme="dark"].cd-theme-document .text-danger,
html[data-theme="dark"] .cd-theme-scope .text-danger,
html[data-theme="dark"] .cd-modal .text-danger,
html[data-theme="dark"] .document-editor-fields-panel .text-danger {
    color: #ff8294 !important;
}

/* Bootstrap tooltip popups are body-mounted; keep the popup itself in the Regantis language. */
html.cd-theme-document .tooltip {
    z-index: 1095;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    opacity: 1 !important;
}

html.cd-theme-document .tooltip .tooltip-inner {
    max-width: 300px;
    padding: 8px 11px;
    border: 1px solid rgba(112, 190, 220, .22);
    border-radius: 10px;
    color: #e9f8ff;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .18), transparent 8rem),
        linear-gradient(135deg, rgba(8, 30, 47, .98), rgba(7, 23, 38, .98));
    box-shadow: 0 12px 30px rgba(0, 7, 22, .28), inset 0 1px 0 rgba(255,255,255,.05);
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: .01em;
}

html.cd-theme-document .bs-tooltip-top .arrow::before,
html.cd-theme-document .tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #0a273b;
}
html.cd-theme-document .bs-tooltip-bottom .arrow::before,
html.cd-theme-document .tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #0a273b;
}
html.cd-theme-document .bs-tooltip-left .arrow::before,
html.cd-theme-document .tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #0a273b;
}
html.cd-theme-document .bs-tooltip-right .arrow::before,
html.cd-theme-document .tooltip.bs-tooltip-right .arrow::before {
    border-right-color: #0a273b;
}

html[data-theme="light"].cd-theme-document .tooltip .tooltip-inner {
    border-color: rgba(53, 128, 168, .18);
    color: #23485f;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .07), transparent 8rem),
        linear-gradient(135deg, #fbfdfe, #eef7fa);
    box-shadow: 0 12px 28px rgba(45, 83, 108, .16), inset 0 1px 0 #fff;
}
html[data-theme="light"].cd-theme-document .bs-tooltip-top .arrow::before,
html[data-theme="light"].cd-theme-document .tooltip.bs-tooltip-top .arrow::before { border-top-color: #eef7fa; }
html[data-theme="light"].cd-theme-document .bs-tooltip-bottom .arrow::before,
html[data-theme="light"].cd-theme-document .tooltip.bs-tooltip-bottom .arrow::before { border-bottom-color: #eef7fa; }
html[data-theme="light"].cd-theme-document .bs-tooltip-left .arrow::before,
html[data-theme="light"].cd-theme-document .tooltip.bs-tooltip-left .arrow::before { border-left-color: #eef7fa; }
html[data-theme="light"].cd-theme-document .bs-tooltip-right .arrow::before,
html[data-theme="light"].cd-theme-document .tooltip.bs-tooltip-right .arrow::before { border-right-color: #eef7fa; }

/* Modal headings with icons: enforce a consistent title rhythm even in legacy markup. */
.cd-modal .modal-title,
.cd-document-editor-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cd-modal .modal-title > i:first-child,
.cd-document-editor-modal .modal-title > i:first-child {
    flex: 0 0 auto;
    margin: 0 !important;
    color: var(--cd-accent, #76d9ea);
}

/* Dynamic cron modal: one separator between fields, never Bootstrap light gray. */
#cron-edit-modal #cron-modal-form .form-group.row {
    position: relative;
    margin-bottom: 0;
    padding: 12px 0;
    border: 0 !important;
}

#cron-edit-modal #cron-modal-form .form-group.row + .form-group.row::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(83, 170, 211, .18) 18%, rgba(118, 86, 197, .16) 58%, transparent);
    content: "";
}

html[data-theme="light"] #cron-edit-modal #cron-modal-form .form-group.row + .form-group.row::before {
    background: linear-gradient(90deg, transparent, rgba(57, 135, 176, .16) 18%, rgba(118, 86, 197, .11) 58%, transparent);
}

/* Connected URL Cron action uses input-group geometry. */
.cd-cron-instruction-card .input-group-append > #button-copy.cd-icon-button {
    height: 42px;
    min-height: 42px;
    border-radius: 0 11px 11px 0 !important;
    margin-left: -1px;
}

.cd-cron-instruction-card #input-cron {
    border-radius: 0 !important;
}

/* Listing banner action groups: one joined control, then normal spacing to adjacent actions. */
.cd-page-banner-actions.cd-listing-page-actions {
    gap: 8px;
}

.cd-page-banner-actions .cd-listing-action-group.btn-group {
    gap: 0 !important;
    overflow: visible;
    border-radius: 12px;
}

.cd-page-banner-actions .cd-listing-action-group.btn-group > :first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.cd-page-banner-actions .cd-listing-action-group.btn-group > :last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: -1px !important;
}

.cd-page-banner-actions .cd-listing-action-group.btn-group > :not(:first-child):not(:last-child) {
    border-radius: 0 !important;
    margin-left: -1px !important;
}

/* Standard back action is always the first item of a document/form heading. */
.cd-document-banner-title-row > .cd-document-back-button {
    order: -10;
    flex: 0 0 auto;
    margin: 0 10px 0 0 !important;
}

/* Scrollable checkbox-list form controls. */
.cd-theme-scope .form-control > label.form-check,
.cd-modal .form-control > label.form-check,
.cd-checklist-control > label.form-check {
    display: flex;
    align-items: center;
    min-height: 38px;
    gap: 10px;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--cd-text, #dceef6);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.cd-checklist-control {
    height: 150px !important;
    max-height: 150px;
    padding: 6px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-color: rgba(104, 174, 207, .62) rgba(4, 19, 31, .5);
    scrollbar-width: thin;
}

#modal-client-report-project-tags .cd-checklist-control {
    height: 180px !important;
    max-height: 180px;
}

.cd-theme-scope .form-control > label.form-check:hover,
.cd-modal .form-control > label.form-check:hover,
.cd-checklist-control > label.form-check:hover {
    border-color: rgba(90, 181, 215, .16);
    background: rgba(70, 151, 190, .08);
}

.cd-theme-scope .form-control > label.form-check + label.form-check,
.cd-modal .form-control > label.form-check + label.form-check,
.cd-checklist-control > label.form-check + label.form-check {
    margin-top: 4px;
}

.cd-theme-scope .form-control > label.form-check .form-check-input,
.cd-modal .form-control > label.form-check .form-check-input,
.cd-checklist-control > label.form-check .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin: 0 !important;
}

.cd-theme-scope .form-control > label.form-check strong,
.cd-modal .form-control > label.form-check strong,
.cd-checklist-control > label.form-check strong {
    font-size: 12.5px;
    font-weight: 700;
}

html[data-theme="light"] .cd-theme-scope .form-control > label.form-check,
html[data-theme="light"] .cd-modal .form-control > label.form-check,
html[data-theme="light"] .cd-checklist-control > label.form-check {
    color: #294b63;
}

/* Client Report history + project-tag production states. */
.cd-document-editor-form-page #tab-reports-history {
    overflow: visible;
    padding: 14px !important;
    border: 1px solid rgba(103, 172, 204, .12) !important;
    border-radius: 16px !important;
    color: var(--cd-text);
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .07), transparent 18rem),
        rgba(5, 22, 36, .7) !important;
}

.cd-document-editor-form-page #client-report-history > .table-responsive,
.client-report-history-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(103, 172, 204, .12);
    border-radius: 13px;
    background: rgba(3, 17, 29, .38);
}

.cd-document-editor-form-page #client-report-history .table {
    min-width: 1120px;
    margin: 0;
}

.cd-document-editor-form-page #client-report-history .dropdown-menu {
    border-color: rgba(108, 180, 211, .18);
    color: #dceef6;
    background: #0a2639;
    box-shadow: 0 16px 34px rgba(0,8,22,.28);
}

.cd-document-editor-form-page #client-report-history .dropdown-menu .border-bottom {
    border-color: rgba(108, 180, 211, .12) !important;
}

.cd-document-editor-form-page #client-report-history .dropdown-toggle-split {
    width: 36px;
    min-width: 36px;
    padding: 0 !important;
}

.cd-document-editor-form-page #client-report-history .dropdown-toggle-split::after {
    display: none !important;
}

.cd-document-editor-form-page #client-report-history .dropdown-toggle-split > i {
    margin: 0 !important;
    font-size: 10px;
}

.client-report-project-tags-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 26px;
}

.client-report-project-tags-badges .badge {
    margin: 0 !important;
    min-height: 24px !important;
    padding: 5px 9px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    background-image: linear-gradient(rgba(4, 18, 31, .34), rgba(4, 18, 31, .34)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    line-height: 1.15;
    letter-spacing: .015em;
    text-shadow: 0 1px 1px rgba(0, 8, 22, .22);
}

#modal-report-history-email .modal-dialog {
    max-width: min(1180px, calc(100vw - 32px));
    margin-top: 16px;
    margin-bottom: 16px;
}

#modal-report-history-email .modal-content {
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}

#modal-report-history-email .modal-body {
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
}

#modal-report-history-email .form-group.row {
    margin-right: 0;
    margin-left: 0;
}

#modal-report-history-email #report-history-email-body-preview-frame {
    display: block;
    width: 100% !important;
    height: clamp(360px, 60vh, 670px) !important;
    min-height: 0 !important;
    border: 1px solid rgba(109, 181, 211, .18) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,8,22,.14);
}

html[data-theme="light"] .cd-document-editor-form-page #tab-reports-history {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #294b63;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .05), transparent 18rem),
        #f8fbfc !important;
}

html[data-theme="light"] .cd-document-editor-form-page #client-report-history > .table-responsive,
html[data-theme="light"] .client-report-history-table-wrap {
    border-color: rgba(68, 126, 163, .12);
    background: #fff;
}

html[data-theme="light"] .cd-document-editor-form-page #client-report-history .dropdown-menu {
    border-color: rgba(68, 126, 163, .15);
    color: #294b63;
    background: #fff;
    box-shadow: 0 14px 30px rgba(45,83,108,.14);
}

html[data-theme="light"] .cd-document-editor-form-page #client-report-history .dropdown-menu .border-bottom {
    border-color: rgba(68, 126, 163, .1) !important;
}

/* Keep the floating list header/table exactly on the production card/table bounds. */
.cd-listing-sticky-header-wrapper {
    right: auto !important;
    max-width: none !important;
}

.cd-listing-sticky-table {
    right: auto !important;
    max-width: none !important;
    table-layout: auto;
}

/* Heatmap toolbar: same layout in CRM and Client Dashboard. */
.cd-heatmap-report-content #heatmap-right-buttons {
    margin-left: 12px !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .btn-group,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group {
    flex: 0 1 auto !important;
    width: auto !important;
    margin: 0 !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control {
    min-height: 40px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #dceef6 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .heatmap-toolbar-field-icon {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 0 !important;
    border-left: 1px solid rgba(109, 184, 213, .16) !important;
    border-radius: 0 !important;
    color: #bce6f5 !important;
    background: rgba(67, 143, 179, .1) !important;
}

.cd-heatmap-report-content #input-report-date-range,
.cd-heatmap-page #input-report-date-range {
    padding-right: 14px !important;
    color: #dceef6 !important;
    background: transparent !important;
}
html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control,
html[data-theme="light"] .cd-heatmap-report-content #input-report-date-range,
html[data-theme="light"] .cd-heatmap-page #input-report-date-range {
    color: #294b63 !important;
}
html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .heatmap-toolbar-field-icon {
    border-left-color: rgba(68, 126, 163, .13) !important;
    color: #2e6f92 !important;
    background: #f1f7fa !important;
}

@media (max-width: 1100px) {
    .cd-heatmap-report-content #heatmap-right-buttons {
        width: 100% !important;
        justify-content: flex-start;
        margin: 10px 0 0 !important;
    }
    .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
        flex: 1 1 230px !important;
        max-width: none;
    }
}

/* All Flatpickr popups, including body-mounted Heatmap/SEO calendars. */
html.cd-theme-document .flatpickr-calendar {
    overflow: hidden;
    border: 1px solid rgba(111, 189, 220, .2) !important;
    border-radius: 14px !important;
    color: #dceef6 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .12), transparent 13rem),
        linear-gradient(145deg, #0a2639, #071d2e) !important;
    box-shadow: 0 20px 46px rgba(0, 7, 22, .34), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

html.cd-theme-document .flatpickr-calendar .flatpickr-months,
html.cd-theme-document .flatpickr-calendar .flatpickr-weekdays,
html.cd-theme-document .flatpickr-calendar .flatpickr-days,
html.cd-theme-document .flatpickr-calendar .flatpickr-innerContainer,
html.cd-theme-document .flatpickr-calendar .flatpickr-rContainer {
    border-color: rgba(111, 189, 220, .12) !important;
    background: transparent !important;
}

html.cd-theme-document .flatpickr-calendar .flatpickr-current-month,
html.cd-theme-document .flatpickr-calendar .flatpickr-current-month input,
html.cd-theme-document .flatpickr-calendar .flatpickr-current-month select,
html.cd-theme-document .flatpickr-calendar span.flatpickr-weekday {
    color: #cdeaf5 !important;
}

html.cd-theme-document .flatpickr-calendar .flatpickr-day {
    border-radius: 8px !important;
    color: #c9e3ee !important;
}

html.cd-theme-document .flatpickr-calendar .flatpickr-day:hover,
html.cd-theme-document .flatpickr-calendar .flatpickr-day:focus {
    border-color: rgba(89, 185, 218, .2) !important;
    color: #fff !important;
    background: rgba(65, 154, 194, .16) !important;
}

html.cd-theme-document .flatpickr-calendar .flatpickr-day.today {
    border-color: rgba(94, 202, 219, .52) !important;
    color: #bdf6ff !important;
}

html.cd-theme-document .flatpickr-calendar .flatpickr-day.selected,
html.cd-theme-document .flatpickr-calendar .flatpickr-day.startRange,
html.cd-theme-document .flatpickr-calendar .flatpickr-day.endRange {
    border-color: rgba(123, 103, 205, .58) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #6851ad, #296f9f) !important;
    box-shadow: 0 6px 14px rgba(49, 79, 156, .22);
}

html.cd-theme-document .flatpickr-calendar .flatpickr-day.inRange {
    border-color: transparent !important;
    color: #dff7ff !important;
    background: rgba(52, 128, 165, .18) !important;
    box-shadow: -5px 0 0 rgba(52, 128, 165, .18), 5px 0 0 rgba(52, 128, 165, .18) !important;
}

html[data-theme="light"].cd-theme-document .flatpickr-calendar {
    border-color: rgba(68, 126, 163, .18) !important;
    color: #294b63 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .06), transparent 13rem),
        linear-gradient(145deg, #fff, #f4f9fb) !important;
    box-shadow: 0 18px 38px rgba(45,83,108,.18), inset 0 1px 0 #fff !important;
}

html[data-theme="light"].cd-theme-document .flatpickr-calendar .flatpickr-current-month,
html[data-theme="light"].cd-theme-document .flatpickr-calendar .flatpickr-current-month input,
html[data-theme="light"].cd-theme-document .flatpickr-calendar .flatpickr-current-month select,
html[data-theme="light"].cd-theme-document .flatpickr-calendar span.flatpickr-weekday,
html[data-theme="light"].cd-theme-document .flatpickr-calendar .flatpickr-day {
    color: #355a70 !important;
}

html[data-theme="light"].cd-theme-document .flatpickr-calendar .flatpickr-day:hover,
html[data-theme="light"].cd-theme-document .flatpickr-calendar .flatpickr-day:focus {
    color: #17384e !important;
    background: rgba(61, 139, 180, .09) !important;
}

html[data-theme="light"].cd-theme-document .flatpickr-calendar .flatpickr-day.inRange {
    color: #234d66 !important;
    background: rgba(61, 139, 180, .1) !important;
    box-shadow: -5px 0 0 rgba(61, 139, 180, .1), 5px 0 0 rgba(61, 139, 180, .1) !important;
}

/* Heatmap form tabs/legacy panels/CKEditor surfaces. */
.cd-heatmap-admin-page .tab-content > .tab-pane > .card,
.cd-heatmap-admin-page .tab-content > .tab-pane > .card.card-body,
.cd-heatmap-admin-page #tab-pages .card,
.cd-heatmap-admin-page #tab-reports-history .card,
.cd-heatmap-admin-page #tab-settings .card {
    border-color: rgba(105, 174, 207, .12) !important;
    color: var(--cd-text) !important;
    background: rgba(7, 27, 42, .72) !important;
    box-shadow: none !important;
}

.cd-heatmap-admin-page .cke_chrome,
.cd-heatmap-admin-page .cke_top,
.cd-heatmap-admin-page .cke_bottom {
    border-color: rgba(105, 174, 207, .16) !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .tab-content > .tab-pane > .card,
html[data-theme="light"] .cd-heatmap-admin-page .tab-content > .tab-pane > .card.card-body,
html[data-theme="light"] .cd-heatmap-admin-page #tab-pages .card,
html[data-theme="light"] .cd-heatmap-admin-page #tab-reports-history .card,
html[data-theme="light"] .cd-heatmap-admin-page #tab-settings .card {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #294b63 !important;
    background: #fff !important;
}

/* Audit list score: compact Galaxy status core with preserved semantic color. */
.cd-audit-admin-page .audit-list-score,
.cd-listing-page .audit-list-score {
    --audit-list-score: #62b8de;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 31px;
    padding: 0 7px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--audit-list-score) 42%, transparent) !important;
    border-radius: 9px;
    color: #effbff !important;
    background:
        radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--audit-list-score) 30%, transparent), transparent 50%),
        linear-gradient(135deg, rgba(8, 29, 44, .96), rgba(10, 34, 51, .86));
    box-shadow: 0 7px 18px color-mix(in srgb, var(--audit-list-score) 17%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.cd-audit-admin-page .audit-list-score::before,
.cd-listing-page .audit-list-score::before {
    position: absolute;
    z-index: -1;
    right: -10px;
    bottom: -14px;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--audit-list-score) 40%, transparent);
    border-radius: 50%;
    content: "";
}

.audit-list-score-success { --audit-list-score: #42c69a !important; }
.audit-list-score-warning { --audit-list-score: #e7aa47 !important; }
.audit-list-score-danger { --audit-list-score: #e85f78 !important; }
.audit-list-score-info,
.audit-list-score-primary { --audit-list-score: #58add7 !important; }

html[data-theme="light"] .cd-audit-admin-page .audit-list-score,
html[data-theme="light"] .cd-listing-page .audit-list-score {
    color: #17384e !important;
    background:
        radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--audit-list-score) 16%, transparent), transparent 52%),
        linear-gradient(135deg, #fff, #eef6f9);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--audit-list-score) 12%, transparent), inset 0 1px 0 #fff;
}

/* Audit edit score circle must match Client Dashboard/reference implementation. */
.cd-audit-admin-report .audit-report-score-circle {
    --audit-score-color: #5cb7dc;
    position: relative;
    display: inline-grid !important;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--audit-score-color) 35%, transparent) !important;
    border-radius: 50% !important;
    color: #eefbff !important;
    box-shadow: 0 0 28px color-mix(in srgb, var(--audit-score-color) 22%, transparent), inset 0 0 0 5px rgba(3, 17, 29, .92) !important;
}

.cd-audit-admin-report .audit-report-score-circle::before {
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--audit-score-color) 20%, transparent);
    border-radius: 50%;
    content: "";
}

.cd-audit-admin-report .audit-report-score-circle > div {
    position: relative;
    z-index: 1;
}

.cd-audit-admin-report .audit-report-score-circle strong {
    color: #f5fcff !important;
    line-height: 1;
}

.cd-audit-admin-report .audit-report-score-circle span {
    color: #9fc2d2 !important;
}

.cd-audit-admin-report .audit-report-score-circle-success { --audit-score-color: #42c69a; }
.cd-audit-admin-report .audit-report-score-circle-warning { --audit-score-color: #e4a845; }
.cd-audit-admin-report .audit-report-score-circle-danger { --audit-score-color: #e65d76; }

html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle {
    color: #17384e !important;
    box-shadow: 0 0 22px color-mix(in srgb, var(--audit-score-color) 16%, transparent), inset 0 0 0 5px #fff !important;
}
html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle::before { background: #f9fcfd; }
html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle strong { color: #17384e !important; }
html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle span { color: #698497 !important; }

/* SEO form: never let legacy fixed-width tables force the whole page wider. */
.cd-seo-admin-form-page,
.cd-seo-admin-form-page > .container-fluid,
.cd-seo-admin-form-page > .container-fluid > .card,
.cd-seo-admin-form-page #form-seo-report,
.cd-seo-admin-form-page .tab-content,
.cd-seo-admin-form-page .tab-pane,
.cd-seo-admin-form-page .card,
.cd-seo-admin-form-page .card-body {
    min-width: 0 !important;
    max-width: 100%;
}

.cd-seo-admin-form-page #form-seo-report .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
}

.cd-seo-admin-form-page #form-seo-report table {
    max-width: 100%;
}

.cd-seo-admin-form-page #form-seo-report td[style*="width:500px"],
.cd-seo-admin-form-page #form-seo-report td[style*="width: 500px"] {
    width: auto !important;
    min-width: 280px;
}

.cd-seo-admin-summary-card .text-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.cd-seo-admin-summary-card .text-right > .btn,
.cd-seo-admin-summary-card .text-right > a.btn,
.cd-seo-admin-summary-card .text-right > .btn-group {
    min-width: 122px;
}

.cd-seo-admin-summary-card .text-right > .btn-group > .btn {
    flex: 1 1 auto;
}

/* SEO request log: legacy route, fully themed without changing behavior. */
.cd-seo-log-page > .page-header {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.cd-seo-log-page > .page-header > .container-fluid {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px !important;
    border: 1px solid rgba(103, 174, 207, .13);
    border-radius: 16px;
    background:
        radial-gradient(circle at 95% 0%, rgba(118,86,197,.1), transparent 18rem),
        linear-gradient(135deg, rgba(8,31,48,.94), rgba(6,23,38,.92));
    box-shadow: 0 14px 32px rgba(0,8,22,.13), inset 0 1px 0 rgba(255,255,255,.04);
}

.cd-seo-log-page .page-header .float-right {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cd-seo-log-page .page-header-h1-cont {
    min-width: 0;
}

.cd-seo-log-page .page-header-h1-cont h1 {
    margin: 0 0 4px;
    color: #f1fbff;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    letter-spacing: -.025em;
}

.cd-seo-log-page .page-header-h1-cont > div {
    color: #8fb0c1;
    font-size: 12px;
}

.cd-seo-log-page > .container-fluid {
    min-width: 0;
    padding: 0 !important;
}

.cd-seo-log-page .dashboard-info-card,
.cd-seo-log-page > .container-fluid > .card,
.cd-seo-log-page .row > [class*="col-"] > .card {
    overflow: hidden;
    border: 1px solid rgba(103,174,207,.12) !important;
    border-radius: 14px !important;
    color: #dceef6;
    background: rgba(7,27,42,.74) !important;
    box-shadow: 0 10px 26px rgba(0,8,22,.1) !important;
}

.cd-seo-log-page .card-header {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-bottom: 1px solid rgba(103,174,207,.11) !important;
    color: #cce7f2;
    background: rgba(77,145,178,.08) !important;
    font-weight: 750;
}

.cd-seo-log-page .card-body {
    color: #d5e9f2;
    background: transparent !important;
}

.cd-seo-log-page .dashboard-info-card .card-body > i {
    font-size: 24px;
}

.cd-seo-log-page .dashboard-info-card h2 {
    margin: 0;
    color: #f1fbff;
    font-family: "Sora", sans-serif;
}

.cd-seo-log-page .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(103,174,207,.1);
    border-radius: 11px;
}

.cd-seo-log-page .table {
    margin: 0;
    color: #d5e9f2;
}

.cd-seo-log-page .table thead th,
.cd-seo-log-page .table thead td {
    border-color: rgba(103,174,207,.12) !important;
    color: #a9ccda;
    background: rgba(75,145,178,.09) !important;
}

.cd-seo-log-page .table td,
.cd-seo-log-page .table th {
    border-color: rgba(103,174,207,.09) !important;
}

.cd-seo-log-page .table-hover tbody tr:hover,
.cd-seo-log-page .table-hover tbody tr:hover > td,
.cd-seo-log-page .table-hover tbody tr:hover > th {
    color: #f1fbff !important;
    background: rgba(67,145,180,.11) !important;
}

.cd-seo-log-page #search-results-date-container {
    overflow: hidden;
    border: 1px solid rgba(103,174,207,.16);
    border-radius: 11px;
    background: rgba(5,23,36,.74) !important;
}

.cd-seo-log-page #search-results-date-container .form-control,
.cd-seo-log-page #search-results-date-container .btn {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html[data-theme="light"] .cd-seo-log-page > .page-header > .container-fluid {
    border-color: rgba(68,126,163,.12);
    background:
        radial-gradient(circle at 95% 0%, rgba(118,86,197,.055), transparent 18rem),
        linear-gradient(135deg, #fff, #f3f9fb);
    box-shadow: 0 12px 28px rgba(45,83,108,.1), inset 0 1px 0 #fff;
}
html[data-theme="light"] .cd-seo-log-page .page-header-h1-cont h1,
html[data-theme="light"] .cd-seo-log-page .dashboard-info-card h2 { color: #17384e; }
html[data-theme="light"] .cd-seo-log-page .page-header-h1-cont > div { color: #698497; }
html[data-theme="light"] .cd-seo-log-page .dashboard-info-card,
html[data-theme="light"] .cd-seo-log-page > .container-fluid > .card,
html[data-theme="light"] .cd-seo-log-page .row > [class*="col-"] > .card {
    border-color: rgba(68,126,163,.12) !important;
    color: #294b63;
    background: #fff !important;
}
html[data-theme="light"] .cd-seo-log-page .card-header {
    border-bottom-color: rgba(68,126,163,.1) !important;
    color: #355d75;
    background: #f1f7fa !important;
}
html[data-theme="light"] .cd-seo-log-page .card-body,
html[data-theme="light"] .cd-seo-log-page .table { color: #294b63; }
html[data-theme="light"] .cd-seo-log-page .table thead th,
html[data-theme="light"] .cd-seo-log-page .table thead td {
    border-color: rgba(68,126,163,.1) !important;
    color: #496d82;
    background: #eef6f9 !important;
}
html[data-theme="light"] .cd-seo-log-page .table-hover tbody tr:hover,
html[data-theme="light"] .cd-seo-log-page .table-hover tbody tr:hover > td,
html[data-theme="light"] .cd-seo-log-page .table-hover tbody tr:hover > th {
    color: #17384e !important;
    background: rgba(61,139,180,.07) !important;
}
html[data-theme="light"] .cd-seo-log-page #search-results-date-container {
    border-color: rgba(68,126,163,.14);
    background: #fff !important;
}

@media (max-width: 767px) {
    .cd-seo-log-page > .page-header > .container-fluid {
        align-items: stretch;
        flex-direction: column;
    }
    .cd-seo-log-page .page-header .float-right {
        order: 0;
        flex-wrap: wrap;
    }
    .cd-seo-log-page .page-header-h1-cont {
        order: -1;
    }
}

.cd-page-banner-actions .cd-listing-action-group.btn-group > .cd-button,
.cd-page-banner-actions .cd-listing-action-group.btn-group > .cd-icon-button {
    min-height: 42px;
    height: 42px;
    align-self: stretch;
}

/* Update 18: SEO edit runtime/tab synchronization. */
.cd-seo-admin-form-page #form-seo-report > .tab-content {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.cd-seo-admin-form-page #form-seo-report > .tab-content > .tab-pane {
    min-width: 0;
    margin: 0 !important;
    padding: 18px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--cd-text) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page #form-seo-report > .tab-content > .tab-pane > :first-child {
    margin-top: 0 !important;
}

.cd-seo-admin-form-page #form-seo-report > .tab-content > .tab-pane > legend:first-child {
    margin-top: 0 !important;
}

.cd-seo-admin-form-page #form-seo-report .tab-pane .card,
.cd-seo-admin-form-page #form-seo-report .tab-pane .card.card-body {
    border-color: rgba(105, 174, 207, .12) !important;
    color: var(--cd-text) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .065), transparent 16rem),
        rgba(7, 27, 42, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-seo-admin-form-page #form-seo-report .tab-pane .card-header {
    border-bottom-color: rgba(105, 174, 207, .11) !important;
    color: #cce7f2 !important;
    background: rgba(67, 143, 179, .07) !important;
}

.cd-seo-admin-form-page #form-seo-report .tab-pane .card-body {
    color: var(--cd-text) !important;
    background: transparent !important;
}

/* SEO keyword-check full-screen progress: generated at runtime. */
.cd-seo-admin-form-page #main-report-check-spinner {
    padding: 18px;
    background: rgba(0, 7, 18, .72) !important;
    backdrop-filter: blur(8px);
}

.cd-seo-admin-form-page #main-report-check-spinner .main-report-check-card {
    width: min(760px, 96vw);
    max-height: min(760px, calc(100vh - 36px));
    overflow: hidden;
    border: 1px solid rgba(109, 181, 211, .18) !important;
    border-radius: 16px !important;
    color: #dceef6 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .12), transparent 20rem),
        linear-gradient(145deg, rgba(9, 31, 47, .98), rgba(5, 21, 35, .98)) !important;
    box-shadow: 0 24px 64px rgba(0, 6, 18, .4), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.cd-seo-admin-form-page #main-report-check-spinner .main-report-check-card .card-body {
    max-height: inherit;
    overflow: hidden;
    padding: 20px !important;
    color: inherit !important;
    background: transparent !important;
}

.cd-seo-admin-form-page #main-report-check-progress-title {
    color: #effbff !important;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 15px;
}

.cd-seo-admin-form-page #main-report-check-progress-count {
    color: #9fc0cf !important;
    font-size: 12.5px !important;
}

.cd-seo-admin-form-page #main-report-check-progress-keywords {
    max-height: min(430px, 52vh);
    padding-right: 4px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 162, 192, .72) rgba(3, 17, 29, .4);
}

.cd-seo-admin-form-page .main-report-check-progress-keyword {
    margin: 0 0 7px;
    padding: 9px 10px;
    border: 1px solid rgba(109, 181, 211, .12) !important;
    border-radius: 10px !important;
    color: #dceef6 !important;
    background: rgba(255,255,255,.028) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-seo-admin-form-page .main-report-check-progress-keyword.is-done {
    border-color: rgba(66, 198, 154, .2) !important;
    background: rgba(66, 198, 154, .055) !important;
    opacity: 1;
}

.cd-seo-admin-form-page .main-report-check-progress-keyword-header {
    min-width: 0;
    margin-bottom: 7px;
}

.cd-seo-admin-form-page .main-report-check-progress-keyword-text {
    min-width: 0;
    overflow: hidden;
    color: #e9f7fc !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-seo-admin-form-page .main-report-check-progress-keyword-location {
    min-width: 0;
    overflow: hidden;
    color: #8fb2c2 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-seo-admin-form-page .main-report-check-progress-mini {
    height: 6px;
    border-radius: 999px;
    background: rgba(109, 181, 211, .11) !important;
}

.cd-seo-admin-form-page .main-report-check-progress-mini-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, #327ea5, #5b65ba, #41b7b1) !important;
    box-shadow: 0 0 12px rgba(74, 151, 200, .22);
}

.cd-seo-admin-form-page .main-report-check-placeholder {
    background: linear-gradient(90deg, rgba(255,255,255,.035) 25%, rgba(104,174,204,.11) 50%, rgba(255,255,255,.035) 75%) !important;
    background-size: 200% 100% !important;
}

/* SEO location results are injected after the keyword request. */
.cd-seo-admin-form-page #check-keywords-container {
    min-width: 0;
    clear: both;
    padding-top: 10px;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs {
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 0 9px !important;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0 !important;
    scrollbar-width: thin;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-link {
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(109, 181, 211, .13) !important;
    border-radius: 9px !important;
    color: #a9cad9 !important;
    background: rgba(255,255,255,.025) !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-link:hover,
.cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-link:focus {
    border-color: rgba(109, 181, 211, .24) !important;
    color: #e8f8ff !important;
    background: rgba(67, 145, 178, .08) !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-link.active {
    border-color: rgba(104, 160, 219, .34) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #5d4fa3, #286f9e) !important;
    box-shadow: 0 7px 18px rgba(42, 92, 157, .18);
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent > .tab-pane {
    margin: 0 !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(105, 174, 207, .12);
    border-radius: 12px;
    background: rgba(4, 19, 31, .48);
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table {
    margin: 0;
}

/* Competitor summary: loaded dynamically in the SEO form. */
.cd-seo-admin-form-page .seo-report-competitor-tab-badge {
    min-width: 112px;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 7px 10px !important;
    border-radius: 9px !important;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary {
    min-width: 0;
    padding: 0 !important;
    color: var(--cd-text) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary > .card {
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .13) !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .075), transparent 18rem),
        rgba(7, 27, 42, .76) !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary > .card > .card-header {
    min-height: 45px;
    padding: 10px 13px !important;
    border-bottom: 1px solid rgba(105, 174, 207, .11) !important;
    color: #d7edf6 !important;
    background: rgba(67, 143, 179, .07) !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary > .card > .card-body {
    padding: 14px !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals > .badge {
    min-width: 118px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 7px 9px !important;
    border-radius: 9px !important;
    white-space: normal;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals > .badge > span {
    line-height: 1.05;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .alert.h-100 {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

html[data-theme="light"] .cd-seo-admin-form-page #form-seo-report .tab-pane .card,
html[data-theme="light"] .cd-seo-admin-form-page #form-seo-report .tab-pane .card.card-body,
html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitor-pane-summary > .card {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #294b63 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .045), transparent 16rem),
        #fff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #form-seo-report .tab-pane .card-header,
html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitor-pane-summary > .card > .card-header {
    border-bottom-color: rgba(68, 126, 163, .1) !important;
    color: #355d75 !important;
    background: #f1f7fa !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #main-report-check-spinner {
    background: rgba(32, 53, 68, .36) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #main-report-check-spinner .main-report-check-card {
    border-color: rgba(68, 126, 163, .15) !important;
    color: #294b63 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .055), transparent 20rem),
        linear-gradient(145deg, #fff, #f3f9fb) !important;
    box-shadow: 0 22px 54px rgba(45,83,108,.2), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #main-report-check-progress-title,
html[data-theme="light"] .cd-seo-admin-form-page .main-report-check-progress-keyword-text {
    color: #17384e !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #main-report-check-progress-count,
html[data-theme="light"] .cd-seo-admin-form-page .main-report-check-progress-keyword-location {
    color: #698497 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .main-report-check-progress-keyword {
    border-color: rgba(68, 126, 163, .11) !important;
    color: #294b63 !important;
    background: #f7fbfc !important;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-seo-admin-form-page .main-report-check-progress-keyword.is-done {
    border-color: rgba(42, 137, 111, .18) !important;
    background: rgba(45, 174, 139, .055) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .main-report-check-progress-mini {
    background: rgba(68, 126, 163, .11) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-link {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #557487 !important;
    background: #f8fbfc !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-link:hover,
html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-link:focus {
    border-color: rgba(68, 126, 163, .2) !important;
    color: #17384e !important;
    background: #eef6f9 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table-responsive {
    border-color: rgba(68, 126, 163, .11);
    background: #fff;
}

@media (max-width: 767px) {
    .cd-seo-admin-form-page #form-seo-report > .tab-content > .tab-pane {
        padding-top: 13px !important;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals > .badge,
    .cd-seo-admin-form-page .seo-report-competitor-tab-badge {
        min-width: min(100%, 104px);
        flex: 1 1 104px;
    }

    .cd-seo-admin-form-page #main-report-check-spinner .main-report-check-card .card-body {
        padding: 14px !important;
    }
}

/* Update 19: Task, segmented actions and extension/dashboard synchronization */

/* Dynamic project/team labels keep their source color and use the same crisp compact badge geometry. */
:where(html.cd-theme-document, .cd-theme-scope) .badge.cd-auto-contrast-badge {
    min-height: 22px !important;
    padding: 4px 8px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    background-image: linear-gradient(rgba(4, 18, 31, .24), rgba(4, 18, 31, .24)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10) !important;
    filter: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Administrative list actions are one intentional segmented control. */
.cd-listing-action-group.btn-group {
    display: inline-flex;
    align-items: stretch;
    gap: 0 !important;
    overflow: hidden;
    border-radius: 10px !important;
    vertical-align: middle;
}

.cd-listing-action-group.btn-group > .btn,
.cd-listing-action-group.btn-group > .cd-icon-button {
    min-width: 34px;
    margin: 0 !important;
    border-radius: 0 !important;
}

.cd-listing-action-group.btn-group > :not(:first-child) {
    margin-left: -1px !important;
}

.cd-listing-action-group.btn-group > :first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.cd-listing-action-group.btn-group > :last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

/* Task route no longer has a legacy page header; the content starts directly with its workspace controls. */
.cd-task-admin-page > .container-fluid {
    padding-top: 0 !important;
}

.cd-task-admin-page .task-main-project-name {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 22px;
    margin-right: 10px !important;
    padding-right: 10px;
    border-right: 1px solid rgba(113, 192, 220, .2);
    color: #79d8e9;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: .015em;
}

html[data-theme="light"] .cd-task-admin-page .task-main-project-name {
    border-right-color: rgba(52, 128, 168, .17);
    color: #287aa1;
}

.cd-task-admin-page .task-main-info-title {
    min-width: 0;
    color: #e7f4f9;
    font-weight: 720;
    line-height: 1.3;
}

html[data-theme="light"] .cd-task-admin-page .task-main-info-title {
    color: #244a61;
}

/* Task cards: keep the card silhouette, remove leftover Bootstrap table/card seams. */
.cd-task-admin-page .task-card,
.cd-project-task-workspace .task-card {
    overflow: visible;
    border-radius: 15px !important;
}

.cd-task-admin-page .task-card .card-body,
.cd-project-task-workspace .task-card .card-body {
    border-top: 1px solid rgba(104, 174, 206, .09);
    border-radius: 0 0 15px 15px;
}

html[data-theme="light"] .cd-task-admin-page .task-card .card-body,
html[data-theme="light"] .cd-project-task-workspace .task-card .card-body {
    border-top-color: rgba(68, 126, 163, .08);
}

.cd-task-admin-page .task-subtask-table,
.cd-project-task-workspace .task-subtask-table {
    width: 100%;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-task-admin-page .task-subtask-table > :not(caption) > * > *,
.cd-project-task-workspace .task-subtask-table > :not(caption) > * > * {
    border-right: 0 !important;
    border-left: 0 !important;
}

.cd-task-admin-page .task-subtask-table tbody tr:first-child > td,
.cd-task-admin-page .task-subtask-table tbody tr:first-child > th,
.cd-project-task-workspace .task-subtask-table tbody tr:first-child > td,
.cd-project-task-workspace .task-subtask-table tbody tr:first-child > th {
    border-top-color: rgba(105, 174, 207, .08) !important;
}

/* Task buttons use three predictable heights and one radius system. */
.cd-task-admin-page .btn:not(.close):not(.dropdown-item),
.cd-task-modal .btn:not(.close):not(.dropdown-item),
.cd-project-task-workspace .btn:not(.close):not(.dropdown-item) {
    min-height: 38px;
    border-radius: 10px !important;
}

.cd-task-admin-page .btn.btn-sm:not(.close):not(.dropdown-item),
.cd-task-modal .btn.btn-sm:not(.close):not(.dropdown-item),
.cd-project-task-workspace .btn.btn-sm:not(.close):not(.dropdown-item) {
    min-height: 34px;
    height: 34px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.cd-task-admin-page .btn.btn-lg:not(.close):not(.dropdown-item),
.cd-task-modal .btn.btn-lg:not(.close):not(.dropdown-item),
.cd-project-task-workspace .btn.btn-lg:not(.close):not(.dropdown-item) {
    min-height: 42px;
    height: 42px;
}

.cd-task-admin-page .btn:has(> i:only-child),
.cd-task-modal .btn:has(> i:only-child),
.cd-project-task-workspace .btn:has(> i:only-child) {
    min-width: 38px;
    padding-right: 9px !important;
    padding-left: 9px !important;
}

.cd-task-admin-page .btn-sm:has(> i:only-child),
.cd-task-modal .btn-sm:has(> i:only-child),
.cd-project-task-workspace .btn-sm:has(> i:only-child) {
    min-width: 34px;
    padding-right: 7px !important;
    padding-left: 7px !important;
}

/* Normal Task btn-groups are segmented; explicit gap-* groups remain independent buttons. */
.cd-task-admin-page .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)),
.cd-task-modal .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)),
.cd-project-task-workspace .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) {
    gap: 0 !important;
}

.cd-task-admin-page .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn,
.cd-task-modal .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn,
.cd-project-task-workspace .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn {
    margin: 0 !important;
    border-radius: 0 !important;
}

.cd-task-admin-page .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:not(:first-child),
.cd-task-modal .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:not(:first-child),
.cd-project-task-workspace .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:not(:first-child) {
    margin-left: -1px !important;
}

.cd-task-admin-page .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:first-child,
.cd-task-modal .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:first-child,
.cd-project-task-workspace .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.cd-task-admin-page .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:last-child,
.cd-task-modal .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:last-child,
.cd-project-task-workspace .btn-group:not([class*="gap-"]):not([class*=" g-"]):not(:has(> .input-group)) > .btn:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

/* Bootstrap split toggles lost their visible caret after the dashboard button normalization. */
.cd-task-admin-page .subtask-actions-dropdown-toggle,
.cd-project-task-workspace .subtask-actions-dropdown-toggle {
    width: 32px;
    min-width: 32px !important;
    padding: 0 !important;
    color: #a9cbd9 !important;
}

.cd-task-admin-page .subtask-actions-dropdown-toggle::after,
.cd-project-task-workspace .subtask-actions-dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.cd-task-admin-page .subtask-actions-dropdown-toggle > i,
.cd-project-task-workspace .subtask-actions-dropdown-toggle > i {
    margin: 0 !important;
    font-size: 9px;
    line-height: 1;
}

.cd-task-admin-page .subtask-actions-dropdown-toggle:hover,
.cd-task-admin-page .subtask-actions-dropdown-toggle:focus,
.cd-project-task-workspace .subtask-actions-dropdown-toggle:hover,
.cd-project-task-workspace .subtask-actions-dropdown-toggle:focus {
    color: #eefaff !important;
}

html[data-theme="light"] .cd-task-admin-page .subtask-actions-dropdown-toggle,
html[data-theme="light"] .cd-project-task-workspace .subtask-actions-dropdown-toggle {
    color: #54798e !important;
}

html[data-theme="light"] .cd-task-admin-page .subtask-actions-dropdown-toggle:hover,
html[data-theme="light"] .cd-task-admin-page .subtask-actions-dropdown-toggle:focus,
html[data-theme="light"] .cd-project-task-workspace .subtask-actions-dropdown-toggle:hover,
html[data-theme="light"] .cd-project-task-workspace .subtask-actions-dropdown-toggle:focus {
    color: #17384e !important;
}

/* Main/team-member switcher behaves like a workspace control, not a nested Bootstrap card. */
.cd-task-admin-page > .container-fluid > .card:first-child {
    border-color: rgba(103, 177, 209, .12) !important;
    border-radius: 14px !important;
    background: rgba(5, 22, 36, .5) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-task-admin-page > .container-fluid > .card:first-child > .card-body {
    padding: 6px 8px !important;
}

html[data-theme="light"] .cd-task-admin-page > .container-fluid > .card:first-child {
    border-color: rgba(68, 126, 163, .11) !important;
    background: #f5fafc !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

/* Task settings tabs and all Task modals share one clean modal workspace. */
.cd-task-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(104, 178, 209, .18) !important;
    border-radius: 18px !important;
    color: #dceef6;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .1), transparent 18rem),
        linear-gradient(145deg, rgba(8, 31, 48, .99), rgba(4, 18, 31, .99)) !important;
    box-shadow: 0 26px 70px rgba(0,7,22,.34), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.cd-task-modal .modal-header,
.cd-task-modal .modal-footer {
    border-color: rgba(106, 177, 207, .11) !important;
    background: rgba(255,255,255,.02) !important;
}

.cd-task-modal .modal-header {
    min-height: 58px;
    padding: 14px 17px;
}

.cd-task-modal .modal-body {
    padding: 17px;
}

.cd-task-modal .modal-footer {
    min-height: 62px;
    padding: 12px 17px;
}

.cd-task-modal .modal-title {
    color: #e8f6fb;
    font-weight: 760;
}

.cd-task-modal .close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -4px -4px -4px auto !important;
    padding: 0 !important;
    border: 1px solid rgba(111, 181, 211, .15) !important;
    border-radius: 10px !important;
    color: #aac9d7 !important;
    background: rgba(255,255,255,.035) !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.cd-task-modal .close:hover,
.cd-task-modal .close:focus {
    border-color: rgba(116, 211, 234, .28) !important;
    color: #ffffff !important;
    background: rgba(83, 169, 207, .1) !important;
    outline: 0;
}

.cd-task-modal #task-list-settings-tabs {
    gap: 6px;
    padding: 5px !important;
    border: 1px solid rgba(106, 177, 207, .12) !important;
    border-radius: 12px !important;
    background: rgba(4, 20, 33, .45) !important;
}

.cd-task-modal #task-list-settings-tabs .nav-item {
    margin: 0 !important;
}

.cd-task-modal #task-list-settings-tabs .nav-link {
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
}

.cd-task-modal #task-list-settings-tabs .nav-link.active {
    border-color: rgba(116, 211, 234, .2) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #4d68b8, #6051a5) !important;
}

.cd-task-modal #taskMainUserTabsOrderList .list-group-item,
.cd-task-modal .task-subtask-team-member-row,
.cd-task-modal .task-day-timeline-track,
.cd-task-modal .task-day-timeline-content .badge-light {
    border-color: rgba(105, 174, 207, .12) !important;
}

.cd-task-modal .task-day-timeline-content .badge-light {
    border-radius: 11px !important;
    color: #d8ebf4 !important;
    background: rgba(255,255,255,.045) !important;
}

html[data-theme="light"] .cd-task-modal .modal-content {
    border-color: rgba(68, 126, 163, .14) !important;
    color: #294b63;
    background:
        radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .055), transparent 18rem),
        linear-gradient(145deg, #ffffff, #f1f8fb) !important;
    box-shadow: 0 24px 60px rgba(47,86,111,.16), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-task-modal .modal-header,
html[data-theme="light"] .cd-task-modal .modal-footer {
    border-color: rgba(68, 126, 163, .1) !important;
    background: rgba(241, 248, 251, .72) !important;
}

html[data-theme="light"] .cd-task-modal .modal-title {
    color: #23485f;
}

html[data-theme="light"] .cd-task-modal .close {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #55798e !important;
    background: #f3f8fa !important;
}

html[data-theme="light"] .cd-task-modal #task-list-settings-tabs {
    border-color: rgba(68, 126, 163, .11) !important;
    background: #f3f8fa !important;
}

html[data-theme="light"] .cd-task-modal .task-day-timeline-content .badge-light {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #355c74 !important;
    background: #f4f9fb !important;
}

/* Marketplace extension selector and all AJAX-loaded extension partials. */
.cd-marketplace-extension-page .cd-marketplace-extension-card {
    overflow: visible;
}

.cd-marketplace-extension-page .cd-extension-type-filter .input-group {
    max-width: 560px;
}

.cd-marketplace-extension-page .cd-extension-results {
    margin-top: 18px;
}

.cd-marketplace-extension-page .cd-extension-results > fieldset,
.cd-marketplace-extension-page .cd-extension-results .card {
    min-width: 0;
    color: var(--cd-text);
}

.cd-marketplace-extension-page .cd-extension-results > fieldset > legend {
    margin-bottom: 12px;
}

.cd-marketplace-extension-page .cd-extension-results .table-responsive,
.cd-marketplace-extension-page .cd-extension-results .cd-listing-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(105, 174, 207, .11);
    border-radius: 13px;
    background: rgba(4, 19, 31, .45);
}

.cd-marketplace-extension-page .cd-extension-results table {
    margin-bottom: 0 !important;
    color: #d9ebf4 !important;
}

.cd-marketplace-extension-page .cd-extension-results table thead th,
.cd-marketplace-extension-page .cd-extension-results table thead td {
    border-color: rgba(105, 174, 207, .1) !important;
    color: #b9d7e5 !important;
    background: linear-gradient(110deg, rgba(21, 57, 76, .92), rgba(35, 39, 71, .88)) !important;
    font-weight: 720;
}

.cd-marketplace-extension-page .cd-extension-results table tbody td,
.cd-marketplace-extension-page .cd-extension-results table tbody th {
    border-color: rgba(105, 174, 207, .075) !important;
    color: #d6e9f2 !important;
    background: transparent !important;
}

.cd-marketplace-extension-page .cd-extension-results table tbody tr:hover {
    color: #eefaff !important;
    background: rgba(71, 151, 190, .075) !important;
}

.cd-marketplace-extension-page .cd-extension-results table tbody tr:hover > td,
.cd-marketplace-extension-page .cd-extension-results table tbody tr:hover > th {
    color: inherit !important;
    background: transparent !important;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-type-filter {
    border-color: rgba(68, 126, 163, .11);
    background: #f4f9fb;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results .table-responsive,
html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results .cd-listing-table-wrap {
    border-color: rgba(68, 126, 163, .1);
    background: #ffffff;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results table {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results table thead th,
html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results table thead td {
    border-color: rgba(68, 126, 163, .1) !important;
    color: #456b82 !important;
    background: linear-gradient(110deg, #edf6fa, #f4f2fb) !important;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results table tbody td,
html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results table tbody th {
    border-color: rgba(68, 126, 163, .075) !important;
    color: #355c74 !important;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-results table tbody tr:hover {
    color: #17384e !important;
    background: rgba(55, 137, 180, .06) !important;
}

/* Dashboard extension configuration pages use the normal form page instead of legacy OpenCart cards. */
.cd-dashboard-extension-form-page .cd-form-card {
    max-width: 920px;
}

.cd-dashboard-extension-form-page .cd-page-banner-actions .cd-button {
    min-width: 118px;
}

@media (max-width: 767px) {
    .cd-task-admin-page .task-main-project-name {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cd-task-admin-page .tasks-container > .d-flex:first-child,
    .cd-project-task-workspace .tasks-container > .d-flex:first-child {
        align-items: stretch !important;
        flex-direction: column;
    }

    .cd-task-modal .modal-body {
        padding: 14px;
    }
}

/* Task modal dynamic tables/assignment rows use the same surface after AJAX rendering. */
.cd-task-modal .border-top {
    border-top-color: rgba(105, 174, 207, .11) !important;
}

.cd-task-modal .form-control.p-0:has(> table),
.cd-task-modal #taskSubtaskTeamTabContent .table-responsive {
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .12) !important;
    border-radius: 12px !important;
    background: rgba(4, 20, 33, .45) !important;
    box-shadow: none !important;
}

.cd-task-modal #taskSubtaskTeamTabContent table,
.cd-task-modal .form-control.p-0 > table {
    margin: 0 !important;
    color: #d8ebf4 !important;
    background: transparent !important;
}

.cd-task-modal #taskSubtaskTeamTabContent table thead th,
.cd-task-modal .form-control.p-0 > table thead th {
    border-color: rgba(105, 174, 207, .1) !important;
    color: #b9d7e5 !important;
    background: rgba(51, 91, 112, .12) !important;
}

.cd-task-modal #taskSubtaskTeamTabContent table tbody td,
.cd-task-modal .form-control.p-0 > table tbody td {
    border-color: rgba(105, 174, 207, .075) !important;
    color: #d6e9f2 !important;
    background: transparent !important;
}

.cd-task-modal #taskSubtaskTeamTabContent table tbody tr:hover,
.cd-task-modal .form-control.p-0 > table tbody tr:hover {
    color: #eefaff !important;
    background: rgba(71, 151, 190, .075) !important;
}

.cd-task-modal #taskSubtaskTeamAssignContainer,
.cd-task-modal #taskSubtaskTeamAssignAllContainer {
    border-color: rgba(105, 174, 207, .11) !important;
    background: rgba(255,255,255,.018);
}

.cd-task-admin-page .task-card > .d-flex:first-child > .d-flex:last-child,
.cd-project-task-workspace .task-card > .d-flex:first-child > .d-flex:last-child {
    gap: 10px !important;
}

html[data-theme="light"] .cd-task-modal .border-top {
    border-top-color: rgba(68, 126, 163, .1) !important;
}

html[data-theme="light"] .cd-task-modal .form-control.p-0:has(> table),
html[data-theme="light"] .cd-task-modal #taskSubtaskTeamTabContent .table-responsive {
    border-color: rgba(68, 126, 163, .1) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-task-modal #taskSubtaskTeamTabContent table,
html[data-theme="light"] .cd-task-modal .form-control.p-0 > table {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-task-modal #taskSubtaskTeamTabContent table thead th,
html[data-theme="light"] .cd-task-modal .form-control.p-0 > table thead th {
    border-color: rgba(68, 126, 163, .1) !important;
    color: #456b82 !important;
    background: #eef6f9 !important;
}

html[data-theme="light"] .cd-task-modal #taskSubtaskTeamTabContent table tbody td,
html[data-theme="light"] .cd-task-modal .form-control.p-0 > table tbody td {
    border-color: rgba(68, 126, 163, .075) !important;
    color: #355c74 !important;
}

html[data-theme="light"] .cd-task-modal #taskSubtaskTeamAssignContainer,
html[data-theme="light"] .cd-task-modal #taskSubtaskTeamAssignAllContainer {
    border-color: rgba(68, 126, 163, .1) !important;
    background: rgba(241,248,251,.65);
}

/* Update 20: final cross-route production synchronization. */
.cd-heatmap-admin-page .cd-report-tab-panel-card {
    overflow: visible;
    border-radius: 14px !important;
}

.cd-heatmap-admin-page :is(#tab-pages, #tab-reports-history) > .cd-report-tab-panel-card,
.cd-heatmap-admin-page #tab-settings > form > .cd-report-tab-panel-card {
    padding: 18px !important;
}

.cd-heatmap-report-toolbar {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cd-heatmap-report-toolbar > .heatmap-device-type-buttons {
    flex: 0 0 auto;
    margin: 0;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .heatmap-toolbar-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.cd-heatmap-admin-page .cke_chrome {
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .16) !important;
    border-radius: 11px !important;
    background: rgba(5, 22, 36, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-heatmap-admin-page .cke_top,
.cd-heatmap-admin-page .cke_bottom {
    color: #d4e9f2 !important;
    background: rgba(48, 91, 113, .12) !important;
}

.cd-heatmap-admin-page .cke_contents {
    border-top: 1px solid rgba(105, 174, 207, .1) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .cke_chrome {
    border-color: rgba(68, 126, 163, .14) !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .cke_top,
html[data-theme="light"] .cd-heatmap-admin-page .cke_bottom {
    color: #355d75 !important;
    background: #eef6f9 !important;
}

.cd-audit-admin-report .audit-report-top-card {
    align-items: center;
}

.cd-audit-admin-report .audit-report-score-circle {
    isolation: isolate;
    aspect-ratio: 1;
    box-sizing: border-box;
}

.cd-seo-admin-list-page .cd-listing-main,
.cd-seo-admin-list-page .cd-seo-admin-list-shell,
.cd-seo-admin-list-page .cd-listing-card,
.cd-seo-admin-list-page .cd-listing-card-body,
.cd-seo-admin-list-page #form-seo_report {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
}

.cd-seo-admin-list-page #form-seo_report {
    overflow: hidden;
}

.cd-seo-admin-list-page #form-seo_report > .cd-listing-table-wrap {
    display: block;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.cd-seo-admin-list-page #form-seo_report .cd-listing-table {
    width: max-content;
    min-width: 1180px;
    max-width: none;
}

.cd-seo-admin-summary-card .text-right > .btn-group {
    width: 228px;
    min-width: 228px;
    max-width: 100%;
    display: inline-flex;
}

.cd-seo-admin-summary-card .text-right > .btn-group > .btn,
.cd-seo-admin-summary-card .text-right > .btn-group > div.btn {
    min-width: 0 !important;
}

.cd-seo-admin-summary-card .text-right > .btn-group > :first-child {
    flex: 1 1 auto;
}

.cd-seo-admin-summary-card .text-right > .seo-report-action-group > .seo-report-action-total {
    flex: 0 0 42px;
}

.cd-seo-admin-summary-card .text-right > .btn-group > :last-child {
    flex: 0 0 42px;
}

.cd-seo-admin-summary-card .text-right > .seo-report-action-group > :last-child {
    flex: 1 1 180px;
}

.cd-seo-admin-form-page .cd-seo-form-shell {
    min-width: 0;
    overflow: visible;
}

.cd-seo-admin-form-page #main-page-nav-tabs {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.cd-seo-admin-form-page #main-page-nav-tabs .nav-link {
    white-space: nowrap;
}

.cd-seo-log-page > .cd-seo-log-banner {
    margin-bottom: 14px;
}

.cd-seo-log-page .cd-seo-log-banner-actions {
    flex-wrap: wrap;
}

.cd-seo-log-page .cd-seo-log-download-group {
    display: inline-flex;
    align-items: stretch;
    gap: 0 !important;
}

.cd-seo-log-page .cd-seo-log-download-group > .cd-button {
    border-radius: 11px 0 0 11px !important;
}

.cd-seo-log-page .cd-seo-log-download-group > .dropdown-toggle-split {
    min-width: 38px;
    margin-left: -1px !important;
    border-radius: 0 11px 11px 0 !important;
}

.cd-seo-log-page .cd-seo-log-download-group > .dropdown-toggle-split::after {
    display: none !important;
}

.cd-seo-log-page .cd-seo-log-download-group > .dropdown-toggle-split > i {
    margin: 0 !important;
    font-size: 9px;
}

.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu .dropdown-item:hover,
.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu .dropdown-item:focus,
.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu .dropdown-item.active {
    color: #ffffff !important;
}

.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu .dropdown-item:hover > i,
.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu .dropdown-item:focus > i,
.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu .dropdown-item.active > i {
    color: #ffffff !important;
}

.cd-seo-log-page .cd-seo-log-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.cd-seo-log-page .cd-seo-log-summary-card {
    min-height: 122px;
    padding: 17px 14px 16px;
}

.cd-seo-log-page .cd-seo-log-summary-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border: 1px solid rgba(111, 188, 216, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
}

.cd-seo-log-page .cd-seo-log-summary-card > strong {
    line-height: 1;
}

.cd-seo-log-page .cd-seo-log-summary-card > span {
    margin-top: 8px;
}

html[data-theme="light"] .cd-seo-log-page .cd-seo-log-summary-card > i {
    border-color: rgba(68, 126, 163, .12);
    background: rgba(68, 126, 163, .055);
}

@media (max-width: 767.98px) {
    .cd-seo-log-page .cd-seo-log-summary {
        grid-template-columns: 1fr;
    }
}

.cd-seo-log-page .cd-seo-log-month-control {
    width: 190px;
    min-width: 170px;
}

.cd-seo-log-page .cd-seo-log-table-toolbar {
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.cd-seo-log-page .cd-seo-log-table-toolbar > .nav-tabs {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.cd-seo-log-page .cd-seo-log-table-toolbar .nav-link {
    white-space: nowrap;
}

.cd-seo-log-page .cd-seo-log-search-form {
    flex: 0 1 360px;
    min-width: 260px;
}

.cd-seo-log-page .cd-seo-log-search-form > .btn-group,
.cd-seo-log-page .cd-seo-log-search-form .input-group {
    width: 100%;
    min-width: 0;
}

.cd-seo-log-page .cd-listing-table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-shadow: none;
}

.cd-seo-log-page .cd-listing-table {
    min-width: 980px;
}

@media (max-width: 767px) {
    #modal-report-history-email .modal-dialog {
        max-width: calc(100vw - 16px);
        margin: 8px;
    }

    #modal-report-history-email .modal-content {
        max-height: calc(100dvh - 16px);
    }

    #modal-report-history-email .modal-body {
        padding: 14px;
    }

    #modal-report-history-email #report-history-email-body-preview-frame {
        height: clamp(300px, 52vh, 520px) !important;
    }

    .cd-heatmap-report-toolbar {
        align-items: stretch !important;
        flex-direction: column;
    }

    .cd-heatmap-report-content #heatmap-right-buttons,
    .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .cd-heatmap-report-content #heatmap-right-buttons > .btn-group {
        flex: 1 1 auto !important;
    }

    .cd-seo-admin-summary-card .text-right > .btn-group {
        width: min(228px, 100%);
        min-width: 0;
    }

    .cd-seo-log-page .cd-seo-log-banner-actions,
    .cd-seo-log-page .cd-seo-log-table-toolbar,
    .cd-seo-log-page .cd-seo-log-search-form {
        width: 100%;
    }

    .cd-seo-log-page .cd-seo-log-month-control {
        flex: 1 1 170px;
        width: auto;
    }
}

@media (max-width: 380px) {
    html.cd-theme-document .flatpickr-calendar {
        width: min(307.875px, calc(100vw - 12px)) !important;
        max-width: calc(100vw - 12px) !important;
    }

    html.cd-theme-document .flatpickr-calendar:not(.multiMonth) .flatpickr-innerContainer,
    html.cd-theme-document .flatpickr-calendar:not(.multiMonth) .flatpickr-rContainer,
    html.cd-theme-document .flatpickr-calendar:not(.multiMonth) .flatpickr-days,
    html.cd-theme-document .flatpickr-calendar:not(.multiMonth) .dayContainer,
    html.cd-theme-document .flatpickr-calendar:not(.multiMonth) .flatpickr-weekdays,
    html.cd-theme-document .flatpickr-calendar:not(.multiMonth) .flatpickr-weekdaycontainer {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html.cd-theme-document .flatpickr-calendar:not(.multiMonth) .flatpickr-day {
        flex-basis: 14.285714% !important;
        width: 14.285714% !important;
        max-width: 14.285714% !important;
    }

    html.cd-theme-document .flatpickr-calendar.multiMonth {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
    }

    .cd-page-banner-actions,
    .cd-form-page-actions,
    .cd-listing-page-actions {
        width: 100%;
    }

    .cd-page-banner-actions > .cd-button,
    .cd-page-banner-actions > .btn,
    .cd-page-banner-actions > .btn-group,
    .cd-page-banner-actions > .input-group {
        flex: 1 1 100%;
        max-width: none;
    }

    .cd-task-admin-page .task-main-project-name + .task-main-info-title {
        width: 100%;
        margin-top: 4px;
    }

    .cd-task-admin-page .task-card .card-body,
    .cd-task-modal .modal-body {
        padding: 12px !important;
    }

    .cd-heatmap-report-content #heatmap-right-buttons > .btn-group {
        width: 100% !important;
    }

    .cd-seo-log-page .cd-seo-log-download-group,
    .cd-seo-log-page .cd-seo-log-month-control {
        width: 100%;
    }

    .cd-seo-log-page .cd-seo-log-download-group > .cd-button {
        flex: 1 1 auto;
    }
}


/* The main Task toolbar mixes buttons with a date input, so it stays a spaced control row rather than a segmented button group. */
.cd-task-admin-page .btn-group:has(> #search-results-day-container) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px !important;
}

.cd-task-admin-page .btn-group:has(> #search-results-day-container) > .btn {
    margin: 0 !important;
    border-radius: 10px !important;
}

.cd-task-admin-page .btn-group:has(> #search-results-day-container) > #search-results-day-container {
    min-width: 220px;
    margin: 0 !important;
    border-radius: 10px !important;
}

/* Task navigation families: manager member switcher, status tabs and team-assignment tabs. */
.cd-task-admin-page #task-main-user-tabs,
.cd-task-admin-page #task-status-tabs,
.cd-task-modal #taskSubtaskTeamTabs {
    gap: 5px;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
}

.cd-task-admin-page #task-main-user-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.cd-task-admin-page #task-main-user-tabs .nav-item,
.cd-task-admin-page #task-status-tabs .nav-item,
.cd-task-modal #taskSubtaskTeamTabs .nav-item {
    margin: 0 !important;
}

.cd-task-admin-page #task-main-user-tabs .nav-link,
.cd-task-admin-page #task-status-tabs .nav-link,
.cd-task-modal #taskSubtaskTeamTabs .nav-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 7px 11px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    color: #9fc3d3 !important;
    background: transparent !important;
    white-space: nowrap;
}

.cd-task-admin-page #task-main-user-tabs .nav-link:hover,
.cd-task-admin-page #task-status-tabs .nav-link:hover,
.cd-task-modal #taskSubtaskTeamTabs .nav-link:hover {
    border-color: rgba(107, 183, 214, .12) !important;
    color: #e7f6fb !important;
    background: rgba(72, 151, 190, .065) !important;
}

.cd-task-admin-page #task-main-user-tabs .nav-link.active,
.cd-task-admin-page #task-status-tabs .nav-link.active,
.cd-task-modal #taskSubtaskTeamTabs .nav-link.active {
    border-color: rgba(116, 211, 234, .18) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(70, 108, 181, .9), rgba(91, 77, 161, .9)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 14px rgba(16,32,74,.13) !important;
}

.cd-task-admin-page #task-main-user-tabs .nav-link:focus,
.cd-task-admin-page #task-status-tabs .nav-link:focus,
.cd-task-modal #taskSubtaskTeamTabs .nav-link:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(83, 185, 219, .09) !important;
}

.cd-task-admin-page .btn:hover > i,
.cd-task-admin-page .btn:focus > i,
.cd-task-modal .btn:hover > i,
.cd-task-modal .btn:focus > i,
.cd-project-task-workspace .btn:hover > i,
.cd-project-task-workspace .btn:focus > i {
    color: inherit !important;
}

.cd-task-admin-page .task-card-dropdown-toggle {
    min-width: 38px;
    padding-right: 9px !important;
    padding-left: 9px !important;
}

html[data-theme="light"] .cd-task-admin-page #task-main-user-tabs .nav-link,
html[data-theme="light"] .cd-task-admin-page #task-status-tabs .nav-link,
html[data-theme="light"] .cd-task-modal #taskSubtaskTeamTabs .nav-link {
    color: #587b90 !important;
}

html[data-theme="light"] .cd-task-admin-page #task-main-user-tabs .nav-link:hover,
html[data-theme="light"] .cd-task-admin-page #task-status-tabs .nav-link:hover,
html[data-theme="light"] .cd-task-modal #taskSubtaskTeamTabs .nav-link:hover {
    border-color: rgba(68, 126, 163, .1) !important;
    color: #23485f !important;
    background: #edf6fa !important;
}

html[data-theme="light"] .cd-task-admin-page #task-main-user-tabs .nav-link.active,
html[data-theme="light"] .cd-task-admin-page #task-status-tabs .nav-link.active,
html[data-theme="light"] .cd-task-modal #taskSubtaskTeamTabs .nav-link.active {
    border-color: rgba(81, 112, 186, .15) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #546fb9, #6757aa) !important;
}

/* Update 21: desktop CRM placement contract and shared control geometry.
 * The established CRM desktop structure remains the reference: heading copy starts at the left,
 * contextual actions stay at the right, and wide toolbars do not inflate or wrap.
 */
.cd-theme-scope {
    --cd-admin-control-height: 42px;
    --cd-admin-compact-control-height: 38px;
    --cd-admin-control-radius: 11px;
}

.cd-theme-scope .cd-icon-button:not(.cd-dashboard-hero-report-link),
#header.cd-topbar .cd-icon-button,
#column-left.cd-sidebar .cd-icon-button {
    width: var(--cd-admin-control-height, 42px) !important;
    min-width: var(--cd-admin-control-height, 42px) !important;
    max-width: var(--cd-admin-control-height, 42px) !important;
    height: var(--cd-admin-control-height, 42px) !important;
    min-height: var(--cd-admin-control-height, 42px) !important;
    flex: 0 0 var(--cd-admin-control-height, 42px) !important;
    padding: 0 !important;
}

.cd-theme-scope table .cd-icon-button:not(.cd-dashboard-hero-report-link),
.cd-theme-scope .cd-listing-mini-action {
    width: var(--cd-admin-compact-control-height) !important;
    min-width: var(--cd-admin-compact-control-height) !important;
    max-width: var(--cd-admin-compact-control-height) !important;
    height: var(--cd-admin-compact-control-height) !important;
    min-height: var(--cd-admin-compact-control-height) !important;
    flex: 0 0 var(--cd-admin-compact-control-height) !important;
}

.cd-theme-scope .cd-page-banner-actions > .cd-button,
.cd-theme-scope .cd-page-banner-actions > .btn,
.cd-theme-scope .cd-page-banner-actions .cd-listing-action-group > .cd-button,
.cd-theme-scope .cd-page-banner-actions .cd-listing-action-group > .btn {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    align-items: center;
    justify-content: center;
}

.cd-theme-scope .cd-page-banner-actions > .cd-icon-button,
.cd-theme-scope .cd-page-banner-actions .cd-listing-action-group > .cd-icon-button {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    min-height: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    padding: 0 !important;
}

.cd-theme-scope .cd-listing-row-actions .cd-icon-button,
.cd-theme-scope .cd-listing-table tbody .cd-listing-action-group .cd-icon-button {
    width: var(--cd-admin-compact-control-height) !important;
    min-width: var(--cd-admin-compact-control-height) !important;
    max-width: var(--cd-admin-compact-control-height) !important;
    height: var(--cd-admin-compact-control-height) !important;
    min-height: var(--cd-admin-compact-control-height) !important;
    flex: 0 0 var(--cd-admin-compact-control-height) !important;
    padding: 0 !important;
}

.cd-theme-scope .cd-listing-card-header {
    min-width: 0;
}

.cd-theme-scope .cd-listing-card-header > span,
.cd-theme-scope .cd-listing-card-header > .cd-listing-card-title {
    min-width: 0;
}

@media (min-width: 1200px) {
    .cd-theme-scope .cd-page-heading-has-actions {
        --cd-page-banner-actions-space: 180px;
    }

    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(2)) {
        --cd-page-banner-actions-space: 300px;
    }

    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(3)) {
        --cd-page-banner-actions-space: 410px;
    }

    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(4)) {
        --cd-page-banner-actions-space: 520px;
    }

    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(5)) {
        --cd-page-banner-actions-space: 630px;
    }

    .cd-theme-scope .cd-page-heading-has-actions .cd-page-banner-actions {
        width: auto;
        max-width: calc(100% - 320px);
        flex-wrap: nowrap;
    }

    .cd-theme-scope .cd-listing-card-header {
        flex-wrap: nowrap;
    }

    .cd-theme-scope .cd-listing-card-header .cd-listing-search {
        flex: 0 0 min(340px, 32vw);
    }
}

@media (min-width: 961px) and (max-width: 1199.98px) {
    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(2)) {
        --cd-page-banner-actions-space: 160px;
    }

    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(3)) {
        --cd-page-banner-actions-space: 205px;
    }

    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(4)) {
        --cd-page-banner-actions-space: 250px;
    }

    .cd-theme-scope .cd-page-heading-has-actions:has(.cd-page-banner-actions > :nth-child(5)) {
        --cd-page-banner-actions-space: 300px;
    }

    .cd-theme-scope .cd-page-heading-has-actions .cd-page-banner-actions {
        max-width: calc(100% - 280px);
        flex-wrap: nowrap;
    }
}

/* Task: restore the original left/right desktop toolbar placement with one size. */
.cd-task-admin-page .task-list-toolbar {
    min-width: 0;
    gap: 16px;
}

.cd-task-admin-page .task-list-toolbar-primary,
.cd-task-admin-page .task-list-toolbar-controls {
    min-width: 0;
    align-items: stretch;
}

.cd-task-admin-page .task-list-toolbar-primary {
    flex: 0 0 auto;
    margin-right: 0 !important;
}

.cd-task-admin-page .task-list-toolbar-controls {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    gap: 0 !important;
    margin-left: auto !important;
}

.cd-task-admin-page .task-list-toolbar-primary > .btn,
.cd-task-admin-page .task-list-toolbar-controls > .btn,
.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    margin: 0 !important;
}

.cd-task-admin-page .task-list-toolbar-primary > .btn,
.cd-task-admin-page .task-list-toolbar-controls > .btn {
    flex: 0 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cd-task-admin-page .task-list-toolbar-primary > #quickAddTaskBtn,
.cd-task-admin-page .task-list-toolbar-controls > .task-day-timeline-btn,
.cd-task-admin-page .task-list-toolbar-controls > #filter-fixed-toggle,
.cd-task-admin-page .task-list-toolbar-controls > #task-list-settings-open-btn {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.cd-task-admin-page .task-list-toolbar-controls > .task-list-toolbar-total {
    width: auto !important;
    min-width: max-content !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
    font-size: 13px;
    line-height: 1;
}

.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container {
    width: 220px !important;
    min-width: 190px !important;
    max-width: 220px;
    flex: 0 0 220px !important;
    overflow: hidden;
    border-radius: 0 !important;
}

.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > .form-control,
.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > .btn {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > .form-control {
    min-width: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > #filter-date-reset-today {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cd-task-admin-page .task-list-toolbar-controls > .btn,
.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container,
.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > .form-control,
.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > .btn {
    border-radius: 0 !important;
}

.cd-task-admin-page .task-list-toolbar-controls > :first-child {
    border-radius: var(--cd-admin-control-radius) 0 0 var(--cd-admin-control-radius) !important;
}

.cd-task-admin-page .task-list-toolbar-controls > :last-child {
    border-radius: 0 var(--cd-admin-control-radius) var(--cd-admin-control-radius) 0 !important;
}

.cd-task-admin-page .task-list-toolbar-controls > .btn + .btn,
.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container,
.cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container + .btn {
    margin-left: -1px !important;
}

.cd-task-admin-page .task-list-heading,
html[data-theme="light"] .cd-task-admin-page .task-list-heading {
    padding: .35rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-task-admin-page .task-list-heading-row {
    min-width: 0;
    gap: 9px;
}

.cd-task-admin-page .task-list-heading-row .task-list-heading-drag-handle {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    padding: 0 !important;
    border-radius: 9px !important;
}

.cd-task-admin-page .task-card-heading-row,
.cd-task-admin-page .task-card-heading-main,
.cd-task-admin-page .task-card-heading-actions {
    min-width: 0;
}

.cd-task-admin-page .task-card-heading-main {
    flex: 1 1 auto;
}

.cd-task-admin-page .task-card-heading-actions {
    flex: 0 0 auto;
}

.cd-task-admin-page .task-card-order-controls,
.cd-task-admin-page .task-card-action-group {
    align-items: stretch;
}

.cd-task-admin-page .task-card-order-controls > .btn,
.cd-task-admin-page .task-card-action-group > .btn,
.cd-task-admin-page .task-card-action-group > div.btn {
    width: var(--cd-admin-compact-control-height) !important;
    min-width: var(--cd-admin-compact-control-height) !important;
    max-width: var(--cd-admin-compact-control-height) !important;
    height: var(--cd-admin-compact-control-height) !important;
    min-height: var(--cd-admin-compact-control-height) !important;
    flex: 0 0 var(--cd-admin-compact-control-height) !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* An explicit Bootstrap gap marks independent controls, not a segmented group. */
:where(html.cd-theme-document, .cd-theme-scope, .cd-modal) :is(.btn-group.gap-1, .btn-group.g-1, .btn-group.gap-2, .btn-group.g-2, .btn-group.gap-3, .btn-group.g-3, .btn-group.gap-4, .btn-group.g-4) > :is(.btn, .cd-button, .cd-icon-button) {
    margin-left: 0 !important;
    border-radius: var(--cd-admin-control-radius, 11px) !important;
}

/* Audit: primary action remains left; export/date controls remain right and spaced. */
.cd-audit-admin-page #audit-report-export-buttons {
    min-width: 0;
    margin-left: auto !important;
}

.cd-audit-admin-page #audit-report-export-buttons > .btn {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    min-height: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--cd-admin-control-radius) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cd-audit-admin-page #audit-report-day-container {
    width: 220px;
    flex: auto !important;
    border-radius: var(--cd-admin-control-radius) !important;
}

.cd-audit-admin-page #audit-report-day-container > .form-control,
.cd-audit-admin-page #audit-report-day-container > .btn {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    margin: 0 !important;
}

.cd-audit-admin-page #audit-report-day-container > .form-control {
    min-width: 0;
    border-radius: var(--cd-admin-control-radius) 0 0 var(--cd-admin-control-radius) !important;
}

.cd-audit-admin-page #audit-report-day-container > .btn {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    padding: 0 !important;
    border-radius: 0 var(--cd-admin-control-radius) var(--cd-admin-control-radius) 0 !important;
}

/* Wide report and results toolbars keep the old desktop ordering and widths. */
@media (min-width: 1200px) {
    .cd-project-report-workspace .cd-project-report-toolbar {
        flex-wrap: nowrap;
    }

    .cd-project-report-workspace .cd-project-report-actions {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        margin-left: auto !important;
    }

    .cd-project-report-workspace .cd-project-report-actions > *,
    .cd-audit-admin-page #audit-report-export-buttons > *,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > * {
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }

    .cd-seo-admin-form-page .inner-search-cont-results-page-top {
        flex-wrap: nowrap;
    }
}

.cd-project-report-workspace .cd-project-report-actions > .btn,
.cd-project-report-workspace .cd-project-report-actions > .cd-icon-button,
.cd-project-report-workspace .cd-project-report-actions > .input-group,
.cd-audit-admin-page #audit-report-export-buttons > .btn {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
}

.cd-project-report-workspace .cd-project-report-actions > .cd-icon-button,
.cd-audit-admin-page #audit-report-export-buttons > .cd-icon-button,
.cd-audit-admin-page #audit-report-export-buttons > .btn:not(.audit-report-export-total) {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    padding: 0 !important;
}

.cd-project-report-workspace .cd-project-report-action-group > .btn,
.cd-project-report-workspace .cd-project-report-action-group > .cd-button,
.cd-project-report-workspace .cd-project-report-action-group > .cd-icon-button,
.cd-project-report-workspace .cd-project-report-actions > .btn-group-toggle > .btn,
.cd-project-report-workspace .cd-project-report-actions > .btn-group-toggle > label.btn,
.cd-project-report-workspace .cd-project-report-actions > div > .cd-icon-button {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
}

.cd-project-report-workspace .cd-project-report-action-group > .cd-icon-button,
.cd-project-report-workspace .cd-project-report-actions > div > .cd-icon-button {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    padding: 0 !important;
}

.cd-project-report-workspace .cd-project-report-actions > #search-results-date-container {
    width: 220px;
    min-width: 190px;
    max-width: 220px;
    flex: 0 0 220px !important;
    overflow: hidden;
}

.cd-project-report-workspace .cd-project-report-actions > #search-results-date-container > .form-control,
.cd-project-report-workspace .cd-project-report-actions > #search-results-date-container > .btn,
.cd-project-report-workspace .cd-project-report-actions > #search-results-date-container > .cd-icon-button {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    margin: 0 !important;
}

.cd-project-report-workspace .cd-project-report-actions > #search-results-date-container > .form-control {
    min-width: 0;
    border-radius: var(--cd-admin-control-radius) 0 0 var(--cd-admin-control-radius) !important;
}

.cd-project-report-workspace .cd-project-report-actions > #search-results-date-container > :last-child {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    padding: 0 !important;
    border-radius: 0 var(--cd-admin-control-radius) var(--cd-admin-control-radius) 0 !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top {
    align-items: stretch;
    gap: 8px !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > .btn,
.cd-seo-admin-form-page .inner-search-cont-results-page-top > .btn-group,
.cd-seo-admin-form-page .inner-search-cont-results-page-top > .input-group {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    margin: 0 !important;
    border-radius: var(--cd-admin-control-radius) !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > .btn {
    flex: 0 0 auto !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > .seo-report-export-btn {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    padding: 0 !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > .btn-group > .btn {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > #search-results-date-container,
.cd-seo-admin-form-page .inner-search-cont-results-page-top > #search-results-day-container {
    width: 220px;
    min-width: 190px;
    flex: 0 0 220px !important;
    overflow: hidden;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > :is(#search-results-date-container, #search-results-day-container) > .form-control,
.cd-seo-admin-form-page .inner-search-cont-results-page-top > :is(#search-results-date-container, #search-results-day-container) > .btn {
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    margin: 0 !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > :is(#search-results-date-container, #search-results-day-container) > .form-control {
    min-width: 0;
    border-radius: var(--cd-admin-control-radius) 0 0 var(--cd-admin-control-radius) !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top > :is(#search-results-date-container, #search-results-day-container) > .btn {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    padding: 0 !important;
    border-radius: 0 var(--cd-admin-control-radius) var(--cd-admin-control-radius) 0 !important;
}

.cd-seo-log-page .cd-seo-log-search-form > .btn-group {
    min-width: 0;
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0 !important;
    overflow: hidden;
    border-radius: var(--cd-admin-control-radius);
}

.cd-seo-log-page .cd-seo-log-search-form > .btn-group > .input-group {
    min-width: 0;
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    flex: 1 1 auto;
    margin: 0 !important;
    border-radius: var(--cd-admin-control-radius) 0 0 var(--cd-admin-control-radius) !important;
}

.cd-seo-log-page .cd-seo-log-search-form > .btn-group > .input-group > .form-control {
    min-width: 0;
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    border-radius: var(--cd-admin-control-radius) 0 0 var(--cd-admin-control-radius) !important;
}

.cd-seo-log-page .cd-seo-log-search-form > .btn-group > .btn {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    margin: 0 0 0 -1px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cd-seo-log-page .cd-seo-log-search-form > .btn-group > .btn:last-child {
    border-radius: 0 var(--cd-admin-control-radius) var(--cd-admin-control-radius) 0 !important;
}

/* Form tab bars retain one row on desktop and become intentional scrollers. */
.cd-theme-scope .cd-form-tabs-card > .nav-tabs,
.cd-theme-scope .cd-document-admin-tabs-card > .nav-tabs,
.cd-theme-scope #main-page-nav-tabs,
.cd-theme-scope #locationTabs,
.cd-task-admin-page #task-main-user-tabs,
.cd-task-admin-page #task-status-tabs {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.cd-theme-scope .cd-form-tabs-card > .nav-tabs .nav-link,
.cd-theme-scope .cd-document-admin-tabs-card > .nav-tabs .nav-link,
.cd-theme-scope #main-page-nav-tabs .nav-link,
.cd-theme-scope #locationTabs .nav-link,
.cd-task-admin-page #task-main-user-tabs .nav-link,
.cd-task-admin-page #task-status-tabs .nav-link {
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .cd-task-admin-page .task-list-toolbar {
        align-items: stretch !important;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .cd-task-admin-page .task-list-toolbar-controls {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .cd-project-report-workspace .cd-project-report-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 992px) {
    .cd-seo-admin-form-page .inner-search-cont-results-page-top {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px !important;
    }

    .cd-seo-admin-form-page .inner-search-cont-results-page-top > .btn,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > .btn-group,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > .input-group,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > #search-results-date-container,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > #search-results-day-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }

    .cd-seo-admin-form-page .inner-search-cont-results-page-top > .btn-group,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > .input-group,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > #search-results-date-container,
    .cd-seo-admin-form-page .inner-search-cont-results-page-top > #search-results-day-container {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .cd-task-admin-page .task-card-heading-row {
        align-items: stretch !important;
        flex-wrap: wrap;
    }

    .cd-task-admin-page .task-card-heading-main,
    .cd-task-admin-page .task-card-heading-actions {
        width: 100%;
    }

    .cd-task-admin-page .task-card-heading-actions {
        justify-content: space-between;
        gap: 12px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .cd-task-admin-page .task-list-toolbar-primary {
        width: 100%;
    }

    .cd-task-admin-page .task-list-toolbar-primary > .btn:last-child {
        flex: 1 1 auto !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls {
        gap: 6px !important;
        overflow: visible;
    }

    .cd-task-admin-page .task-list-toolbar-controls > .btn,
    .cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container,
    .cd-task-admin-page .task-list-toolbar-controls > :first-child,
    .cd-task-admin-page .task-list-toolbar-controls > :last-child {
        margin-left: 0 !important;
        border-radius: 10px !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container {
        max-width: none;
        flex: 1 1 100% !important;
    }

    .cd-audit-admin-page .audit-report-toolbar > :not(.audit-check-progress),
    .cd-audit-admin-page #audit-report-export-buttons,
    .cd-audit-admin-page #audit-report-day-container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

    .cd-audit-admin-page #audit-report-export-buttons {
        flex-wrap: wrap;
    }

    .cd-audit-admin-page #audit-report-day-container {
        flex: 1 1 100% !important;
    }
}

/* Update 21 follow-up: canonical component geometry used by the full-theme legend and production routes. */

/* Standalone form accordions own one surface; items and buttons do not draw duplicate outlines. */
.cd-form-page .theme-design-settings-accordion {
    display: grid;
    gap: 0;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .13);
    border-radius: 12px;
    background: rgba(4, 20, 33, .42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-form-page .theme-design-settings-accordion > .accordion-item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-form-page .theme-design-settings-accordion > .accordion-item + .accordion-item {
    border-top: 1px solid rgba(105, 174, 207, .1) !important;
}

.cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button {
    min-height: 44px;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    color: #d8ebf4;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button:hover,
.cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button:focus-visible,
.cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button:not(.collapsed) {
    color: #f2fbff;
    background: linear-gradient(90deg, rgba(56, 135, 171, .1), rgba(118, 86, 197, .06)) !important;
}

html[data-theme="light"] .cd-form-page .theme-design-settings-accordion {
    border-color: rgba(68, 126, 163, .11);
    background: #f4f9fb;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-form-page .theme-design-settings-accordion > .accordion-item + .accordion-item {
    border-top-color: rgba(68, 126, 163, .09) !important;
}

html[data-theme="light"] .cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button {
    color: #355c74;
}

html[data-theme="light"] .cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button:hover,
html[data-theme="light"] .cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button:focus-visible,
html[data-theme="light"] .cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button:not(.collapsed) {
    color: #17384e;
    background: linear-gradient(90deg, rgba(50, 137, 180, .08), rgba(118, 86, 197, .045)) !important;
}

/* Checked checklist rows keep their selected surface until the checkbox is unchecked. */
.cd-theme-scope .form-control > label.form-check:has(.form-check-input:checked),
.cd-modal .form-control > label.form-check:has(.form-check-input:checked),
.cd-checklist-control > label.form-check:has(.form-check-input:checked) {
    border-color: rgba(82, 200, 218, .3) !important;
    color: #effcff !important;
    background: linear-gradient(105deg, rgba(45, 188, 187, .15), rgba(81, 102, 190, .14)) !important;
    box-shadow: inset 3px 0 0 #2dbcbb, inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.cd-checklist-control {
    border: 1px solid rgba(105, 174, 207, .15) !important;
    color: #dceef6 !important;
    background: rgba(4, 20, 33, .68) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-checklist-control .form-check-input {
    accent-color: #2dbcbb;
}

.cd-theme-scope .form-control > label.form-check:focus-within,
.cd-modal .form-control > label.form-check:focus-within,
.cd-checklist-control > label.form-check:focus-within {
    outline: 2px solid rgba(83, 189, 219, .22);
    outline-offset: 1px;
}

html[data-theme="light"] .cd-theme-scope .form-control > label.form-check:has(.form-check-input:checked),
html[data-theme="light"] .cd-modal .form-control > label.form-check:has(.form-check-input:checked),
html[data-theme="light"] .cd-checklist-control > label.form-check:has(.form-check-input:checked) {
    border-color: rgba(43, 151, 169, .24) !important;
    color: #173f55 !important;
    background: linear-gradient(105deg, #e5f7f6, #eef0fb) !important;
    box-shadow: inset 3px 0 0 #2aadae, inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-checklist-control {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #294b63 !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

/* Icon actions appended to inputs use the input-group border and only the final outer radius. */
:where(html.cd-theme-document, .cd-theme-scope) .input-group > .input-group-append > .cd-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 0 0 -1px !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(105, 174, 207, .13) !important;
    border-radius: 0 !important;
    color: #9edeea !important;
    background: rgba(47, 107, 135, .16) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group > .input-group-append > .cd-icon-button:last-child {
    border-top-right-radius: 11px !important;
    border-bottom-right-radius: 11px !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) {
    min-width: 0;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .16);
    border-radius: 11px;
    background: rgba(4, 20, 33, .68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) > .form-control,
:where(html.cd-theme-document, .cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) > .input-group-prepend > .input-group-text {
    min-width: 0;
    min-height: 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #dceef6 !important;
    background: transparent !important;
    box-shadow: none !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) > .form-control:not(textarea),
:where(html.cd-theme-document, .cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) > .input-group-prepend > .input-group-text {
    height: 40px !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) > .input-group-prepend > .input-group-text {
    border-right: 1px solid rgba(105, 174, 207, .12) !important;
    color: #aac9d6 !important;
    background: rgba(47, 107, 135, .09) !important;
}

html[data-theme="light"] :where(.cd-theme-scope) .input-group > .input-group-append > .cd-icon-button,
html[data-theme="light"].cd-theme-document .input-group > .input-group-append > .cd-icon-button {
    border-left-color: rgba(68, 126, 163, .11) !important;
    color: #2e6f92 !important;
    background: #eef6f9 !important;
}

html[data-theme="light"] :where(.cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button),
html[data-theme="light"].cd-theme-document .input-group:has(> .input-group-append > .cd-icon-button) {
    border-color: rgba(68, 126, 163, .13);
    background: #fff;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] :where(.cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) > .form-control,
html[data-theme="light"].cd-theme-document .input-group:has(> .input-group-append > .cd-icon-button) > .form-control {
    color: #294b63 !important;
}

html[data-theme="light"] :where(.cd-theme-scope) .input-group:has(> .input-group-append > .cd-icon-button) > .input-group-prepend > .input-group-text,
html[data-theme="light"].cd-theme-document .input-group:has(> .input-group-append > .cd-icon-button) > .input-group-prepend > .input-group-text {
    border-right-color: rgba(68, 126, 163, .1) !important;
    color: #58798d !important;
    background: #f3f8fa !important;
}

/* Extension filter is one compact input group, without a second decorative wrapper outline. */
.cd-marketplace-extension-page .cd-extension-type-filter {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-marketplace-extension-page .cd-extension-type-filter .input-group {
    min-height: 42px;
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .16);
    border-radius: 11px;
    background: rgba(4, 20, 33, .58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.cd-marketplace-extension-page .cd-extension-type-filter .form-control,
.cd-marketplace-extension-page .cd-extension-type-filter .input-group-text {
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cd-marketplace-extension-page .cd-extension-type-filter .form-control {
    min-width: 0;
    padding-right: 12px !important;
    padding-left: 12px !important;
    color: #dceef6 !important;
    background: transparent !important;
}

.cd-marketplace-extension-page .cd-extension-type-filter .input-group-text {
    padding: 0 13px !important;
    border-left: 1px solid rgba(105, 174, 207, .13) !important;
    color: #9ed6e6 !important;
    background: rgba(48, 103, 129, .1) !important;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-type-filter .input-group {
    border-color: rgba(68, 126, 163, .13);
    background: #fff;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-type-filter .form-control {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-marketplace-extension-page .cd-extension-type-filter .input-group-text {
    border-left-color: rgba(68, 126, 163, .11) !important;
    color: #2f7597 !important;
    background: #eef6f9 !important;
}

/* Heatmap navigation and report toolbar: one outline per control family. */
.cd-heatmap-date-range {
    min-width: min(290px, 100%);
    height: 42px;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(102, 191, 218, .2) !important;
    border-radius: 11px !important;
    background: rgba(5, 20, 32, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.cd-heatmap-date-range > .form-control {
    min-width: 0;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-heatmap-date-range > .cd-heatmap-date-reset {
    width: 41px;
    min-width: 41px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-left: 1px solid rgba(102, 191, 218, .14) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .cd-heatmap-date-range {
    border-color: rgba(56, 111, 143, .16) !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-heatmap-date-range > .cd-heatmap-date-reset {
    border-left-color: rgba(56, 111, 143, .12) !important;
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar {
    min-width: 0;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: 10px !important;
}

.cd-heatmap-report-content .heatmap-device-type-buttons {
    min-width: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(109, 184, 213, .18) !important;
    border-radius: 11px !important;
    background: rgba(6, 24, 39, .7) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.cd-heatmap-report-content .heatmap-device-type-buttons > .btn {
    min-width: 0;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #aac9d6 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.cd-heatmap-report-content .heatmap-device-type-buttons > .btn + .btn {
    border-left: 1px solid rgba(109, 184, 213, .11) !important;
}

.cd-heatmap-report-content .heatmap-device-type-buttons > .btn:hover,
.cd-heatmap-report-content .heatmap-device-type-buttons > .btn:focus {
    color: #fff !important;
    background: rgba(55, 132, 168, .13) !important;
}

.cd-heatmap-report-content .heatmap-device-type-buttons > .btn.active,
.cd-heatmap-report-content .heatmap-device-type-buttons > .btn.bg-secondary {
    color: #fff !important;
    background: linear-gradient(115deg, #6b50b6, #3478aa 62%, #247f8c) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.cd-heatmap-report-content #heatmap-right-buttons {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto !important;
    flex-wrap: nowrap;
    gap: 8px !important;
    margin: 0 0 0 auto !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .btn-group {
    min-height: 42px;
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto !important;
    gap: 0 !important;
    margin: 0 !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .btn-group > .btn {
    min-width: 42px;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 11px !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group {
    width: auto !important;
    min-width: 180px !important;
    max-width: 270px !important;
    min-height: 42px !important;
    flex: 1 1 220px !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(109, 184, 213, .18) !important;
    border-radius: 11px !important;
    background: rgba(5, 25, 39, .78) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons > .input-group {
    min-height: 42px !important;
    flex-wrap: nowrap !important;
    background: rgba(5, 25, 39, .78) !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group:has(> #input-report-date-range) {
    min-width: 240px !important;
    flex-basis: 240px !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .input-group-text,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .heatmap-toolbar-field-icon {
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .form-control {
    width: 1% !important;
    min-width: 0;
    flex: 1 1 auto !important;
    padding-right: 11px !important;
    padding-left: 11px !important;
}

.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .input-group-text,
.cd-heatmap-report-content #heatmap-right-buttons > .input-group > .heatmap-toolbar-field-icon {
    width: 41px;
    min-width: 41px;
    max-width: 41px;
    flex: 0 0 41px !important;
    padding: 0 !important;
    border-left: 1px solid rgba(109, 184, 213, .13) !important;
    color: #82d8e8 !important;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons {
    border-color: rgba(68, 126, 163, .13) !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons > .btn {
    color: #52758a !important;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons > .btn + .btn {
    border-left-color: rgba(68, 126, 163, .1) !important;
}

html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons > .btn:hover,
html[data-theme="light"] .cd-heatmap-report-content .heatmap-device-type-buttons > .btn:focus {
    color: #17384e !important;
    background: #edf6fa !important;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
    border-color: rgba(68, 126, 163, .13) !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-heatmap-report-content .cd-heatmap-report-toolbar #heatmap-right-buttons > .input-group {
    background: #fff !important;
}

html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .btn,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .input-group-text,
html[data-theme="light"] .cd-heatmap-report-content #heatmap-right-buttons > .input-group > .heatmap-toolbar-field-icon {
    border-left-color: rgba(68, 126, 163, .11) !important;
    color: #2e6f92 !important;
    background: #f1f7fa !important;
}

/* Audit score ring uses the real score value and a stable, unclipped inner disc. */
.cd-audit-admin-report .audit-report-score-circle {
    --audit-score: 0%;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 112px !important;
    min-height: 112px !important;
    flex: 0 0 112px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid color-mix(in srgb, var(--audit-score-color) 36%, transparent) !important;
    background: conic-gradient(from -90deg, var(--audit-score-color) 0 var(--audit-score), rgba(111, 153, 178, .16) var(--audit-score) 100%) !important;
    box-shadow: 0 0 30px color-mix(in srgb, var(--audit-score-color) 22%, transparent), inset 0 0 0 7px #061927 !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.cd-audit-admin-report .audit-report-score-circle::before {
    inset: 9px !important;
    border: 1px dashed color-mix(in srgb, var(--audit-score-color) 22%, transparent) !important;
    background: transparent !important;
    animation: cd-audit-orbit-spin 18s linear infinite;
    pointer-events: none;
}

.cd-audit-admin-report .audit-report-score-circle > div {
    width: 78px !important;
    min-width: 78px !important;
    height: 78px !important;
    min-height: 78px !important;
    aspect-ratio: 1;
    display: flex !important;
    border: 1px solid color-mix(in srgb, var(--audit-score-color) 18%, transparent) !important;
    border-radius: 50% !important;
    color: #eefbff !important;
    background: linear-gradient(145deg, #102d40, #071b2b) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 6px 16px rgba(0,7,22,.18) !important;
}

.cd-audit-admin-report .audit-report-score-circle strong {
    font-size: 27px !important;
}

.cd-audit-admin-report .audit-report-score-circle span {
    font-size: 11px !important;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle {
    box-shadow: 0 0 24px color-mix(in srgb, var(--audit-score-color) 17%, transparent), inset 0 0 0 7px #fff !important;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-score-circle > div {
    color: #17384e !important;
    background: linear-gradient(145deg, #fff, #edf6fa) !important;
    box-shadow: inset 0 1px 0 #fff, 0 6px 15px rgba(47,86,111,.1) !important;
}

/* All administrative listing rows use the same joined compact action treatment. */
.cd-listing-row-actions,
.cd-listing-table tbody .cd-listing-action-group.btn-group {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0 !important;
    overflow: hidden;
    border-radius: 10px !important;
    vertical-align: middle;
}

.cd-listing-row-actions > .cd-icon-button,
.cd-listing-table tbody .cd-listing-action-group.btn-group > .cd-icon-button,
.cd-listing-table tbody .cd-listing-action-group.btn-group > .btn {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.cd-listing-row-actions > :not(:first-child),
.cd-listing-table tbody .cd-listing-action-group.btn-group > :not(:first-child) {
    margin-left: -1px !important;
}

.cd-listing-row-actions > :first-child,
.cd-listing-table tbody .cd-listing-action-group.btn-group > :first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.cd-listing-row-actions > :last-child,
.cd-listing-table tbody .cd-listing-action-group.btn-group > :last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.cd-listing-row-actions > :focus-visible,
.cd-listing-table tbody .cd-listing-action-group.btn-group > :focus-visible {
    position: relative;
    z-index: 2;
}

@media (max-width: 1199.98px) {
    .cd-heatmap-report-content .cd-heatmap-report-toolbar {
        align-items: stretch !important;
        flex-wrap: wrap;
    }

    .cd-heatmap-report-content #heatmap-right-buttons {
        width: 100% !important;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0 !important;
    }

    .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
        max-width: none !important;
    }
}

@media (max-width: 767.98px) {
    .cd-heatmap-navigation {
        align-items: stretch;
    }

    .cd-heatmap-date-range,
    .cd-heatmap-report-content .heatmap-device-type-buttons,
    .cd-heatmap-report-content #heatmap-right-buttons,
    .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .cd-heatmap-report-content .heatmap-device-type-buttons > .btn {
        flex: 1 1 0;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
}

@media (max-width: 575.98px) {
    .cd-heatmap-report-content #heatmap-right-buttons > .btn-group {
        width: 100% !important;
    }

    .cd-heatmap-report-content #heatmap-right-buttons > .btn-group > .btn {
        flex: 1 1 auto;
    }
}

/* Send-email modal CKEditor chrome: keep it aligned with themed form editors. */
.send-email-modal-dialog .cke_chrome {
    overflow: hidden !important;
    border: 1px solid rgba(110, 181, 214, .20) !important;
    border-radius: 12px !important;
    background: rgba(5, 20, 32, .92) !important;
    box-shadow: 0 10px 24px rgba(0, 8, 20, .14) !important;
}

.send-email-modal-dialog .cke_inner {
    border: 0 !important;
    background: rgba(5, 20, 32, .92) !important;
}

.send-email-modal-dialog .cke_top,
.send-email-modal-dialog .cke_bottom {
    border-color: rgba(110, 181, 214, .16) !important;
    background: linear-gradient(110deg, rgba(15, 44, 64, .96), rgba(8, 30, 47, .96)) !important;
    box-shadow: none !important;
}

.send-email-modal-dialog .cke_toolgroup,
.send-email-modal-dialog .cke_combo_button {
    border-color: rgba(110, 181, 214, .16) !important;
    background: rgba(19, 50, 70, .82) !important;
    box-shadow: none !important;
}

.send-email-modal-dialog .cke_button:hover,
.send-email-modal-dialog .cke_button:focus,
.send-email-modal-dialog .cke_button_on,
.send-email-modal-dialog .cke_combo_button:hover,
.send-email-modal-dialog .cke_combo_button:focus,
.send-email-modal-dialog .cke_combo_on a.cke_combo_button {
    background: rgba(94, 82, 188, .34) !important;
}

.send-email-modal-dialog .cke_combo_text,
.send-email-modal-dialog .cke_button_label,
.send-email-modal-dialog .cke_combo_open {
    color: #d4e7f0 !important;
}

.send-email-modal-dialog .cke_separator,
.send-email-modal-dialog .cke_toolbar_separator {
    border-color: rgba(111, 171, 202, .20) !important;
    background-color: rgba(111, 171, 202, .20) !important;
}

.send-email-modal-dialog .cke_contents {
    border: 0 !important;
    background: #f4f7f9 !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_chrome {
    border-color: rgba(69, 127, 166, .16) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(45, 76, 100, .08) !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_inner {
    background: #ffffff !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_top,
html[data-theme="light"] .send-email-modal-dialog .cke_bottom {
    border-color: rgba(69, 127, 166, .13) !important;
    background: linear-gradient(110deg, #f5fafc, #eaf4f8) !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_toolgroup,
html[data-theme="light"] .send-email-modal-dialog .cke_combo_button {
    border-color: rgba(69, 127, 166, .13) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_button:hover,
html[data-theme="light"] .send-email-modal-dialog .cke_button:focus,
html[data-theme="light"] .send-email-modal-dialog .cke_button_on,
html[data-theme="light"] .send-email-modal-dialog .cke_combo_button:hover,
html[data-theme="light"] .send-email-modal-dialog .cke_combo_button:focus,
html[data-theme="light"] .send-email-modal-dialog .cke_combo_on a.cke_combo_button {
    background: #e8f1fb !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_combo_text,
html[data-theme="light"] .send-email-modal-dialog .cke_button_label,
html[data-theme="light"] .send-email-modal-dialog .cke_combo_open {
    color: #315b75 !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_separator,
html[data-theme="light"] .send-email-modal-dialog .cke_toolbar_separator {
    border-color: rgba(69, 127, 166, .16) !important;
    background-color: rgba(69, 127, 166, .16) !important;
}

html[data-theme="light"] .send-email-modal-dialog .cke_contents {
    background: #f8fbfc !important;
}

/* Update 28: canonical CRM CKEditor chrome. Uses the heading-settings editor palette; Document Editor stays separate. */
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) {
    --cd-standard-cke-border: rgba(109, 181, 211, .18);
    --cd-standard-cke-border-soft: rgba(109, 181, 211, .14);
    --cd-standard-cke-text: #cce7f2;
    --cd-standard-cke-muted: #a9c6d5;
    --cd-standard-cke-surface: #071d2e;
    --cd-standard-cke-toolbar: #0a2a3f;
    --cd-standard-cke-control: rgba(255, 255, 255, .035);
    --cd-standard-cke-hover: rgba(78, 145, 178, .15);
    width: 100% !important;
    max-width: 100%;
    overflow: hidden !important;
    border: 1px solid var(--cd-standard-cke-border) !important;
    border-radius: 11px !important;
    background: var(--cd-standard-cke-surface) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_inner {
    border: 0 !important;
    background: var(--cd-standard-cke-surface) !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_top,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_bottom {
    border-color: var(--cd-standard-cke-border-soft) !important;
    color: #dceef6 !important;
    background: var(--cd-standard-cke-toolbar) !important;
    box-shadow: none !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolgroup,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button {
    border-color: var(--cd-standard-cke-border-soft) !important;
    border-radius: 7px !important;
    background: var(--cd-standard-cke-control) !important;
    box-shadow: none !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) a.cke_button {
    border-radius: 6px !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button:hover,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button:focus,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_on,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button:hover,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button:focus,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_on a.cke_combo_button {
    background: var(--cd-standard-cke-hover) !important;
    box-shadow: none !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_label,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_text,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_open,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_path_item,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_path_empty {
    color: var(--cd-standard-cke-text) !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_icon {
    filter: brightness(0) saturate(100%) invert(88%) sepia(13%) saturate(646%) hue-rotate(157deg) brightness(103%) contrast(94%) !important;
    opacity: 1;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_disabled .cke_button_icon {
    opacity: .30;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_arrow,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_arrow {
    border-top-color: #cce7f2 !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolbox_collapser .cke_arrow {
    border-top-color: transparent !important;
    border-bottom-color: #cce7f2 !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolbox_collapser_min .cke_arrow {
    border-top-color: #cce7f2 !important;
    border-bottom-color: transparent !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_separator,
html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolbar_separator {
    border-color: var(--cd-standard-cke-border-soft) !important;
    background-color: var(--cd-standard-cke-border-soft) !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_contents {
    border: 0 !important;
    background: #f6f8fa !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_resizer_ltr {
    border-color: transparent #cce7f2 transparent transparent !important;
}

html body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_resizer_rtl {
    border-color: transparent transparent transparent #cce7f2 !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) {
    --cd-standard-cke-border: rgba(68, 126, 163, .15);
    --cd-standard-cke-border-soft: rgba(68, 126, 163, .12);
    --cd-standard-cke-text: #355d75;
    --cd-standard-cke-muted: #5f7f92;
    --cd-standard-cke-surface: #ffffff;
    --cd-standard-cke-toolbar: #eef6fa;
    --cd-standard-cke-control: #ffffff;
    --cd-standard-cke-hover: rgba(68, 139, 181, .09);
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_top,
html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_bottom {
    color: #294b63 !important;
    background: #eef6fa !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolgroup,
html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_button {
    background: #ffffff !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_icon {
    filter: brightness(0) saturate(100%) invert(32%) sepia(11%) saturate(1492%) hue-rotate(159deg) brightness(91%) contrast(90%) !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_button_arrow,
html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo_arrow {
    border-top-color: #355d75 !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolbox_collapser .cke_arrow {
    border-bottom-color: #355d75 !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolbox_collapser_min .cke_arrow {
    border-top-color: #355d75 !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_contents {
    background: #ffffff !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_resizer_ltr {
    border-color: transparent #355d75 transparent transparent !important;
}

html[data-theme="light"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_resizer_rtl {
    border-color: transparent transparent transparent #355d75 !important;
}

/* Update 29: shared UI polish. tool/theme_design remains the reference. */
.cd-listing-page-actions .cd-button.is-danger::before {
    pointer-events: none;
}

.cd-listing-page-actions .cd-button.is-danger:hover::before,
.cd-listing-page-actions .cd-button.is-danger:focus-visible::before {
    left: 125%;
}

.cd-form-image-card {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: min(286px, 100%);
    min-height: 218px;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(91, 176, 215, .2) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 88% 8%, rgba(116, 86, 197, .15), transparent 34%),
        radial-gradient(circle at 10% 88%, rgba(45, 189, 187, .09), transparent 38%),
        linear-gradient(145deg, rgba(7, 28, 43, .98), rgba(6, 20, 35, .96)) !important;
    box-shadow: 0 15px 34px rgba(0, 8, 22, .19), inset 0 1px 0 rgba(255,255,255,.045) !important;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cd-form-image-card:hover {
    border-color: rgba(91, 196, 226, .38) !important;
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(0, 8, 22, .24), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.cd-form-image-card::after {
    display: none !important;
}

.cd-form-image-card .card-img-top,
.cd-form-image-card .img-thumbnail-cont-full {
    box-sizing: border-box;
    width: calc(100% - 24px) !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 180px;
    flex: 1 1 auto;
    margin: 12px 12px 0 !important;
    padding: 14px !important;
    object-fit: contain !important;
    object-position: center;
    border: 1px solid rgba(99, 177, 211, .12) !important;
    border-radius: 13px !important;
    background: rgba(2, 14, 25, .64) !important;
}

.cd-form-image-card .img-thumbnail-cont-full img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.cd-form-image-card .card-body,
.cd-form-image-card .cd-form-image-actions {
    position: relative !important;
    inset: auto !important;
    z-index: 4 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 9px 12px 11px !important;
    overflow: hidden;
    border: 0 !important;
    background: transparent !important;
}

.cd-form-image-card .cd-icon-button {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
}

html[data-theme="light"] .cd-form-image-card .card-img-top,
html[data-theme="light"] .cd-form-image-card .img-thumbnail-cont-full {
    border-color: rgba(68, 126, 163, .12) !important;
    background: linear-gradient(135deg, #f7fafc, #edf3f6) !important;
}

/* Standard CKEditor chrome for every general CRM editor. Document Editor is excluded. */
.cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) {
    width: 100% !important;
    max-width: 100%;
}

.cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_top {
    padding: 8px 10px 4px !important;
}

.cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolbox {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 0;
}

.cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolbar {
    margin: 0 5px 4px 0 !important;
}

.cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_toolgroup,
.cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_combo {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_bottom {
    padding: 5px 10px !important;
}

/* Update 3: listing table density, action spacing, color controls and modal typography. */
.cd-main .cd-report-data-table thead th,
.cd-main .cd-listing-table-admin thead th,
.cd-theme-scope .cd-report-data-table thead th,
.cd-theme-scope .cd-listing-table-admin thead th {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.cd-main .cd-listing-table-admin thead th[style*="width: 1px"],
.cd-theme-scope .cd-listing-table-admin thead th[style*="width: 1px"],
.cd-main .cd-listing-table-admin thead th.cd-listing-select-cell,
.cd-theme-scope .cd-listing-table-admin thead th.cd-listing-select-cell {
    width: 40px !important;
    min-width: 40px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: center !important;
}

.cd-main .cd-listing-table-admin thead th[style*="width: 1px"] > input[type="checkbox"],
.cd-theme-scope .cd-listing-table-admin thead th[style*="width: 1px"] > input[type="checkbox"],
.cd-main .cd-listing-table-admin thead th.cd-listing-select-cell > input[type="checkbox"],
.cd-theme-scope .cd-listing-table-admin thead th.cd-listing-select-cell > input[type="checkbox"] {
    display: block;
    margin: 0 auto;
}

.cd-main .cd-listing-actions-cell .cd-listing-action-group,
.cd-main .cd-listing-actions-cell .cd-listing-row-actions,
.cd-theme-scope .cd-listing-actions-cell .cd-listing-action-group,
.cd-theme-scope .cd-listing-actions-cell .cd-listing-row-actions {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 7px !important;
}

.cd-main .cd-listing-actions-cell .cd-listing-action-group > .btn,
.cd-main .cd-listing-actions-cell .cd-listing-action-group > .cd-icon-button,
.cd-main .cd-listing-actions-cell .cd-listing-row-actions > .btn,
.cd-main .cd-listing-actions-cell .cd-listing-row-actions > .cd-icon-button,
.cd-theme-scope .cd-listing-actions-cell .cd-listing-action-group > .btn,
.cd-theme-scope .cd-listing-actions-cell .cd-listing-action-group > .cd-icon-button,
.cd-theme-scope .cd-listing-actions-cell .cd-listing-row-actions > .btn,
.cd-theme-scope .cd-listing-actions-cell .cd-listing-row-actions > .cd-icon-button {
    margin: 0 !important;
    border-radius: 10px !important;
}

:where(.cd-theme-scope, .cd-modal) .form-control-color:not(:has([id^="document-editor-"])) {
    width: 58px;
    min-width: 58px;
    height: 44px;
    min-height: 44px;
    padding: 4px !important;
    overflow: hidden;
    border: 1px solid rgba(111, 171, 202, .2) !important;
    border-radius: 11px !important;
    background: linear-gradient(145deg, rgba(13, 42, 61, .96), rgba(7, 29, 45, .92)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 8px 18px rgba(0, 10, 24, .16);
}

:where(.cd-theme-scope, .cd-modal) .form-control-color:not(:has([id^="document-editor-"])) .pickr,
:where(.cd-theme-scope, .cd-modal) .form-control-color:not(:has([id^="document-editor-"])) .pcr-button,
:where(.cd-theme-scope, .cd-modal) .form-control-color:not(:has([id^="document-editor-"])) input[type="color"] {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
}

:where(.cd-theme-scope, .cd-modal) .form-control-color:not(:has([id^="document-editor-"])) .pcr-button::before,
:where(.cd-theme-scope, .cd-modal) .form-control-color:not(:has([id^="document-editor-"])) .pcr-button::after {
    border-radius: 7px !important;
}

html[data-theme="light"] :where(.cd-theme-scope, .cd-modal) .form-control-color:not(:has([id^="document-editor-"])) {
    border-color: rgba(68, 126, 163, .18) !important;
    background: linear-gradient(145deg, #ffffff, #eaf4f8) !important;
    box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(44, 78, 101, .1);
}

.cd-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
}


/* CRM UI/UX wave 4: project/task production components aligned with tool/theme_design. */
.cd-project-task-user-tabs-card {
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .13) !important;
    border-radius: 14px !important;
    background: linear-gradient(110deg, rgba(7, 29, 44, .82), rgba(15, 27, 50, .76)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-project-task-user-tabs-card > .card-body {
    padding: 8px !important;
    background: transparent !important;
}

html[data-theme="light"] .cd-project-task-user-tabs-card {
    border-color: rgba(68, 126, 163, .13) !important;
    background: linear-gradient(110deg, #f2f8fb, #f7f5fc) !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

.cd-project-task-workspace .task-list-toolbar #filter-fixed-toggle {
    display: none !important;
}

.cd-task-admin-page .task-card-subtask-entry,
.cd-task-admin-page .task-list-heading-editor,
.cd-project-report-workspace .task-report-add-subtask-editor {
    overflow: hidden;
    align-items: stretch;
    border: 1px solid rgba(105, 174, 207, .16);
    border-radius: 11px !important;
    background: rgba(4, 20, 33, .66) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-task-admin-page .task-card-subtask-entry > .form-control,
.cd-task-admin-page .task-card-subtask-entry > .input-group-prepend,
.cd-task-admin-page .task-card-subtask-entry > .input-group-append,
.cd-task-admin-page .task-list-heading-editor > .form-control,
.cd-task-admin-page .task-list-heading-editor > .input-group-append,
.cd-project-report-workspace .task-report-add-subtask-editor > .form-control,
.cd-project-report-workspace .task-report-add-subtask-editor > .input-group-append {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.cd-task-admin-page .task-card-subtask-entry > .form-control,
.cd-project-report-workspace .task-report-add-subtask-editor > .form-control {
    min-height: 40px !important;
    padding: 8px 11px !important;
    resize: none;
    color: #d8ebf4 !important;
}

.cd-task-admin-page .task-card-subtask-entry > .form-control:not(textarea),
.cd-project-report-workspace .task-report-add-subtask-editor > .form-control {
    height: 40px !important;
}

.cd-task-admin-page .task-card-subtask-entry > .input-group-append,
.cd-task-admin-page .task-list-heading-editor > .input-group-append,
.cd-project-report-workspace .task-report-add-subtask-editor > .input-group-append {
    display: flex;
    align-items: stretch !important;
}

.cd-task-admin-page .task-card-subtask-entry .task-card-add-subtask-btn,
.cd-project-report-workspace .task-report-add-subtask-editor .task-report-add-subtask-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(105, 174, 207, .16) !important;
    border-radius: 0 !important;
}

.cd-project-report-workspace .task-report-add-subtask-editor .task-report-add-subtask-day-select {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 30px 0 10px !important;
    border: 0 !important;
    border-left: 1px solid rgba(105, 174, 207, .16) !important;
    border-radius: 0 !important;
    color: #cfe2ec !important;
    background-color: rgba(255,255,255,.035) !important;
}

.cd-task-admin-page .task-list-heading-editor > .form-control {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    color: #d8ebf4 !important;
}

.cd-task-admin-page .task-list-heading-editor .cd-button {
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 0 !important;
}

.cd-task-admin-page .task-list-heading-editor .cd-button:last-child {
    border-radius: 0 10px 10px 0 !important;
}

html[data-theme="light"] .cd-task-admin-page .task-card-subtask-entry,
html[data-theme="light"] .cd-task-admin-page .task-list-heading-editor,
html[data-theme="light"] .cd-project-report-workspace .task-report-add-subtask-editor {
    border-color: rgba(68, 126, 163, .14);
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-task-admin-page .task-card-subtask-entry > .form-control,
html[data-theme="light"] .cd-task-admin-page .task-list-heading-editor > .form-control,
html[data-theme="light"] .cd-project-report-workspace .task-report-add-subtask-editor > .form-control {
    color: #294b63 !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-add-subtask-editor .task-report-add-subtask-day-select {
    border-left-color: rgba(68, 126, 163, .14) !important;
    color: #355c74 !important;
    background-color: #f5fafc !important;
}

.cd-task-admin-page #taskTimerHistoryModal .task-timer-history-content > .d-flex {
    border-color: rgba(105, 174, 207, .13) !important;
    color: #d8ebf4;
    background: rgba(8, 30, 47, .72);
}

.cd-task-admin-page #taskTimerHistoryModal .task-timer-history-tabs {
    gap: 5px;
    border-bottom-color: rgba(105, 174, 207, .13) !important;
    background: rgba(4, 19, 32, .58);
}

.cd-task-admin-page #taskTimerHistoryModal .task-timer-history-tabs .nav-item {
    margin: 0 !important;
}

.cd-task-admin-page #taskTimerHistoryModal .task-timer-history-tabs .nav-link {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px !important;
    border: 1px solid transparent !important;
    border-radius: 9px 9px 0 0 !important;
    color: #a9c7d6 !important;
    background: transparent !important;
}

.cd-task-admin-page #taskTimerHistoryModal .task-timer-history-tabs .nav-link:hover {
    color: #e7f6fb !important;
    background: rgba(72, 151, 190, .08) !important;
}

.cd-task-admin-page #taskTimerHistoryModal .task-timer-history-tabs .nav-link.active {
    border-color: rgba(101, 175, 208, .16) !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(91, 74, 181, .62), rgba(42, 129, 183, .54)) !important;
}

.cd-task-admin-page #taskTimerHistoryTabContent .table-responsive {
    border: 0 !important;
    background: rgba(3, 17, 29, .34);
}

.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table {
    margin: 0 !important;
    color: #d7e9f2 !important;
    background: transparent !important;
}

.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table th,
.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table td {
    padding: 8px 10px !important;
    border-color: rgba(105, 174, 207, .1) !important;
    color: #d7e9f2 !important;
    background: transparent !important;
    vertical-align: middle;
}

.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table thead th {
    color: #9fc5d7 !important;
    background: rgba(13, 42, 60, .76) !important;
}

.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table :is(.task-timer-history-day-total-row, .task-timer-history-grand-total-row) > td,
.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table :is(.task-timer-history-day-total-row, .task-timer-history-grand-total-row) > th {
    color: #e4f3f9 !important;
    background: linear-gradient(90deg, rgba(31, 73, 100, .82), rgba(51, 48, 105, .68)) !important;
    border-color: rgba(105, 174, 207, .14) !important;
}

.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table .task-timer-history-day-total-row > td {
    font-weight: 700;
}

.cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table .task-timer-history-grand-total-row > td {
    color: #f1fbff !important;
    background: linear-gradient(90deg, rgba(45, 189, 187, .15), rgba(91, 74, 181, .2)) !important;
}

.cd-task-admin-page #taskTimerHistoryTabContent .form-control {
    min-height: 34px !important;
    border-color: rgba(105, 174, 207, .15) !important;
    color: #d8ebf4 !important;
    background: rgba(3, 18, 30, .72) !important;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryModal .task-timer-history-content > .d-flex,
html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryModal .task-timer-history-tabs {
    border-color: rgba(68, 126, 163, .12) !important;
    color: #294b63;
    background: #f5fafc;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryModal .task-timer-history-tabs .nav-link {
    color: #587b90 !important;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .table-responsive,
html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table {
    color: #294b63 !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table th,
html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table td {
    border-color: rgba(68, 126, 163, .09) !important;
    color: #355c74 !important;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table thead th {
    color: #4d7187 !important;
    background: #edf6fa !important;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table :is(.task-timer-history-day-total-row, .task-timer-history-grand-total-row) > td,
html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table :is(.task-timer-history-day-total-row, .task-timer-history-grand-total-row) > th {
    color: #294b63 !important;
    border-color: rgba(68, 126, 163, .12) !important;
    background: linear-gradient(90deg, #edf6fa, #f5f3fb) !important;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .task-timer-history-table .task-timer-history-grand-total-row > td {
    color: #234a61 !important;
    background: linear-gradient(90deg, #e7f7f5, #f0eefb) !important;
}

html[data-theme="light"] .cd-task-admin-page #taskTimerHistoryTabContent .form-control {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #294b63 !important;
    background: #fff !important;
}

.cd-project-report-workspace .cd-project-report-regenerate-button {
    border-color: rgba(134, 117, 218, .24) !important;
    color: #cfc7ff !important;
    background: rgba(106, 81, 185, .16) !important;
}

.cd-project-report-workspace .cd-project-report-regenerate-button:hover,
.cd-project-report-workspace .cd-project-report-regenerate-button:focus {
    border-color: rgba(151, 139, 231, .42) !important;
    color: #fff !important;
    background: rgba(111, 87, 196, .3) !important;
}

.cd-project-report-workspace .task-report-date-filter {
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .16) !important;
    border-radius: var(--cd-admin-control-radius, 11px) !important;
    background: rgba(4, 20, 33, .66) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-project-report-workspace .task-report-date-filter > .form-control,
.cd-project-report-workspace .task-report-date-filter > .cd-icon-button {
    min-height: var(--cd-admin-control-height, 42px) !important;
    height: var(--cd-admin-control-height, 42px) !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #d8ebf4 !important;
    background: transparent !important;
}

.cd-project-report-workspace .task-report-date-filter > .form-control {
    padding: 0 12px !important;
}

.cd-project-report-workspace .task-report-date-filter > .cd-icon-button {
    border-left: 1px solid rgba(105, 174, 207, .14) !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-date-filter {
    border-color: rgba(68, 126, 163, .14) !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-date-filter > .form-control,
html[data-theme="light"] .cd-project-report-workspace .task-report-date-filter > .cd-icon-button {
    color: #294b63 !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-date-filter > .cd-icon-button {
    border-left-color: rgba(68, 126, 163, .13) !important;
}

/* Flatpickr is appended directly under body on normal CRM pages, outside .cd-theme-scope. */
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light {
    z-index: 1300 !important;
    overflow: hidden;
    border: 1px solid rgba(107, 176, 207, .2) !important;
    border-radius: 18px !important;
    background: #0a1e2e !important;
    box-shadow: 0 24px 60px rgba(0, 7, 18, .38) !important;
    font-family: inherit !important;
}

html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light::before,
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light::after {
    display: none !important;
}

html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-months {
    padding: 8px 7px 0;
    background: linear-gradient(110deg, rgba(95, 69, 180, .16), rgba(39, 127, 177, .11));
}

html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-current-month,
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-current-month input.cur-year,
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-prev-month,
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-next-month {
    color: #eaf7fc !important;
    fill: #eaf7fc !important;
}

html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-months {
    gap: 4px;
    margin: 8px;
}

html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month {
    width: calc(33.333% - 4px);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 9px 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #bad0de;
    background: rgba(255,255,255,.025);
    font-size: 13px;
    font-weight: 700;
}

html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month:not(.flatpickr-disabled):hover,
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month:not(.flatpickr-disabled):focus {
    border-color: rgba(105, 208, 233, .25);
    color: #fff;
    background: rgba(64, 151, 190, .16);
}

html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month.selected,
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month.startRange,
html[data-theme] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month.endRange {
    border-color: rgba(157, 150, 245, .44) !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #7155bf, #3189c6) !important;
    box-shadow: 0 10px 22px rgba(56, 77, 169, .28) !important;
}

html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light {
    border-color: rgba(61, 105, 137, .16) !important;
    background: #f8fcff !important;
    box-shadow: 0 24px 60px rgba(44, 74, 97, .22) !important;
}

html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-months {
    background: linear-gradient(110deg, rgba(109, 76, 187, .1), rgba(49, 137, 198, .08));
}

html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-current-month,
html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-current-month input.cur-year,
html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-prev-month,
html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-next-month {
    color: #27485e !important;
    fill: #27485e !important;
}

html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month {
    border-color: rgba(60, 104, 135, .06);
    color: #45677d;
    background: rgba(255,255,255,.72);
}

html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month:not(.flatpickr-disabled):hover,
html[data-theme="light"] body > .flatpickr-calendar.flatpickr-monthSelect-theme-light .flatpickr-monthSelect-month:not(.flatpickr-disabled):focus {
    border-color: rgba(66, 127, 175, .2);
    color: #173d58;
    background: #fff;
}

.cd-project-report-workspace .task-report-input-group {
    min-width: 124px !important;
}

.cd-project-report-workspace .task-report-client-hm {
    min-width: 88px !important;
    font-variant-numeric: tabular-nums;
}

.cd-project-report-workspace .task-report-team-dropdown {
    vertical-align: middle;
}

.cd-project-report-workspace .task-report-team-toggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-color: rgba(105, 174, 207, .16) !important;
    border-radius: 10px !important;
    color: #b8d8e7 !important;
    background: rgba(255,255,255,.035) !important;
}

.cd-project-report-workspace .task-report-team-toggle:hover,
.cd-project-report-workspace .task-report-team-toggle:focus,
.cd-project-report-workspace .task-report-team-dropdown.show .task-report-team-toggle {
    border-color: rgba(99, 205, 231, .32) !important;
    color: #fff !important;
    background: rgba(57, 139, 177, .16) !important;
}

.cd-project-report-workspace .task-report-team-toggle.is-disabled {
    opacity: .45 !important;
}

.cd-project-report-workspace .task-report-team-menu {
    min-width: 190px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .16) !important;
    border-radius: 12px !important;
    background: #0b2436 !important;
    box-shadow: 0 18px 42px rgba(0, 7, 18, .32) !important;
}

.cd-project-report-workspace .task-report-team-option {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 7px 9px !important;
    border-radius: 8px !important;
    background: transparent !important;
    font-size: 12px !important;
}

.cd-project-report-workspace .task-report-team-option:hover,
.cd-project-report-workspace .task-report-team-option:focus {
    background: rgba(79, 156, 194, .11) !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-team-toggle {
    border-color: rgba(68, 126, 163, .14) !important;
    color: #416e87 !important;
    background: #f2f8fb !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-team-menu {
    border-color: rgba(68, 126, 163, .14) !important;
    background: #fff !important;
    box-shadow: 0 16px 36px rgba(44, 74, 97, .18) !important;
}

html[data-theme="light"] .cd-project-report-workspace .task-report-team-option:hover,
html[data-theme="light"] .cd-project-report-workspace .task-report-team-option:focus {
    background: #edf6fa !important;
}

.cd-modal-project-type-manager .cd-project-type-manager-card {
    overflow: visible;
    border: 1px solid rgba(105, 174, 207, .14) !important;
    border-radius: 15px !important;
    color: #d7e9f2 !important;
    background: linear-gradient(145deg, rgba(7, 29, 44, .84), rgba(14, 25, 46, .78)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.cd-modal-project-type-manager .cd-project-type-manager-card .cd-form-card-body {
    padding: 18px !important;
}

.cd-modal-project-type-manager .form-group {
    margin-bottom: 14px;
}

.cd-modal-project-type-manager .col-form-label {
    color: #a9c7d6;
    font-size: 13px !important;
    font-weight: 650;
}

.cd-modal-project-type-manager .form-control:not(.form-control-color) {
    min-height: 42px;
    border-color: rgba(105, 174, 207, .15) !important;
    color: #d8ebf4 !important;
    background: rgba(3, 18, 30, .68) !important;
}

.cd-modal-project-type-manager .cd-project-type-color-field {
    align-items: center;
}

.cd-modal-project-type-manager .cd-project-type-color-field .form-control-color {
    width: 62px !important;
    min-width: 62px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px !important;
    border-radius: 11px !important;
}

.cd-modal-project-type-manager .cd-project-type-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(105, 174, 207, .13) !important;
    border-radius: 13px !important;
    background: rgba(3, 17, 29, .4) !important;
}

.cd-modal-project-type-manager .cd-project-type-table th,
.cd-modal-project-type-manager .cd-project-type-table td {
    padding: 8px 10px !important;
    border-color: rgba(105, 174, 207, .09) !important;
    color: #d7e9f2 !important;
    vertical-align: middle;
}

.cd-modal-project-type-manager .cd-project-type-table thead th {
    color: #9fc5d7 !important;
    background: rgba(13, 42, 60, .78) !important;
}

.cd-modal-project-type-manager .cd-project-type-table tbody tr:hover td {
    background: rgba(66, 147, 188, .08) !important;
}

.cd-modal-project-type-manager .cd-project-type-color-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.cd-modal-project-type-manager .cd-project-type-color-swatch {
    width: 28px;
    height: 28px;
    display: inline-block;
    flex: 0 0 28px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.1);
}

html[data-theme="light"] .cd-modal-project-type-manager .cd-project-type-manager-card {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #294b63 !important;
    background: linear-gradient(145deg, #fff, #f3f8fb) !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-modal-project-type-manager .col-form-label {
    color: #496e84;
}

html[data-theme="light"] .cd-modal-project-type-manager .form-control:not(.form-control-color) {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #294b63 !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-modal-project-type-manager .cd-project-type-table-wrap {
    border-color: rgba(68, 126, 163, .12) !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-modal-project-type-manager .cd-project-type-table th,
html[data-theme="light"] .cd-modal-project-type-manager .cd-project-type-table td {
    border-color: rgba(68, 126, 163, .08) !important;
    color: #355c74 !important;
}

html[data-theme="light"] .cd-modal-project-type-manager .cd-project-type-table thead th {
    color: #4d7187 !important;
    background: #edf6fa !important;
}

html[data-theme="light"] .cd-modal-project-type-manager .cd-project-type-table tbody tr:hover td {
    background: #f5fafc !important;
}

html[data-theme="light"] .cd-modal-project-type-manager .cd-project-type-color-swatch {
    border-color: rgba(68, 126, 163, .18);
}

/* Keep the task toolbar on one line down to the mobile breakpoint. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .cd-task-admin-page .task-list-toolbar {
        align-items: center !important;
        flex-wrap: nowrap !important;
        row-gap: 0 !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .cd-task-admin-page .task-list-toolbar-primary,
    .cd-task-admin-page .task-list-toolbar-controls {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container {
        width: 180px !important;
        min-width: 165px !important;
        max-width: 180px !important;
        flex-basis: 180px !important;
    }
}

@media (max-width: 767.98px) {
    .cd-task-admin-page .task-list-toolbar {
        align-items: stretch !important;
        flex-wrap: wrap !important;
        row-gap: 10px !important;
        overflow: visible;
    }

    .cd-task-admin-page .task-list-toolbar-controls {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* CRM UI/UX wave 6: filter, snippets, SEO list/log, pagination and legends. */

/* Task filters use exactly the shared Galaxy fixed-filter component from tool/theme_design. */
.cd-task-admin-page #task-filter-fixed.cd-filter-fixed {
    width: min(390px, 100vw) !important;
    max-width: none !important;
    max-height: calc(100dvh - var(--cd-filter-fixed-top, var(--cd-topbar-height, 78px))) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    isolation: isolate;
}

.cd-task-admin-page #task-filter-fixed .cd-filter-panel-body,
.cd-task-admin-page #task-filter-fixed .cd-filter-panel-footer {
    position: relative;
    z-index: 1;
}

.cd-task-admin-page #task-filter-fixed #filter-task-teams-container,
.cd-task-admin-page #task-filter-fixed .selectize-control {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}

.cd-task-admin-page #task-filter-fixed #button-task-filter {
    min-height: 42px;
}

/* Document-editor snippet manager actions: compact independent controls, no joined Bootstrap group. */
#modal-document-editor-snippets .document-editor-snippet-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

#modal-document-editor-snippets .document-editor-snippet-action {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0 !important;
    border-radius: 10px !important;
}

#modal-document-editor-snippets .document-editor-snippet-action.is-insert {
    border-color: rgba(151, 124, 229, .42) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #7656c5, #4d9fe0) !important;
}

#modal-document-editor-snippets .document-editor-snippet-action.is-edit,
#modal-document-editor-snippets .document-editor-snippet-preview-button {
    border-color: rgba(108, 174, 211, .2) !important;
    color: #d6ebf4 !important;
    background: rgba(11, 36, 54, .9) !important;
}

#modal-document-editor-snippets .document-editor-snippet-action.is-delete {
    border-color: rgba(255, 112, 130, .4) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #c44360, #a62e4d) !important;
}

html[data-theme="light"] #modal-document-editor-snippets .document-editor-snippet-action.is-edit,
html[data-theme="light"] #modal-document-editor-snippets .document-editor-snippet-preview-button {
    border-color: rgba(68, 126, 163, .15) !important;
    color: #355c74 !important;
    background: linear-gradient(145deg, #ffffff, #edf6fa) !important;
}

/* SEO list summary cards: compact rows and stable action geometry in both themes. */
.cd-seo-admin-list-page .cd-seo-admin-summary-card {
    padding: 10px 12px;
    overflow: hidden;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-table-wrap {
    overflow: visible;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-table tbody tr {
    background: transparent;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-table tbody tr + tr > td {
    border-top: 1px solid rgba(109, 173, 205, .09);
}

.cd-seo-admin-list-page .cd-seo-admin-summary-table td {
    min-width: 0;
    padding: 9px 8px;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-table td:first-child {
    width: 44% !important;
    min-width: 150px !important;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-table .text-right {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-card .text-right > .btn-group {
    width: 228px;
    min-width: 228px;
    max-width: 228px;
    flex-wrap: nowrap;
    gap: 6px !important;
}

.cd-seo-admin-list-page .cd-seo-admin-summary-card .seo-report-action-group > :last-child,
.cd-seo-admin-list-page #button-search-unidentified-keywords,
.cd-seo-admin-list-page #button-search-lost-keywords,
.cd-seo-admin-list-page #button-search-unsearched-keywords,
.cd-seo-admin-list-page #button-search-error-keywords,
.cd-seo-admin-list-page #button-search-selected-reports {
    min-width: 180px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

html[data-theme="light"] .cd-seo-admin-list-page .cd-seo-admin-summary-table tbody tr + tr > td {
    border-top-color: rgba(68, 126, 163, .09);
}

/* SEO main table and its cloned sticky header share one exact header contract. */
.cd-seo-admin-list-page .cd-seo-admin-main-table,
.cd-seo-admin-main-table.cd-listing-sticky-table {
    table-layout: auto;
}

.cd-seo-admin-list-page .cd-seo-admin-main-table thead th,
.cd-seo-admin-main-table.cd-listing-sticky-table thead th {
    min-width: 40px !important;
    padding: 6px 12px !important;
    vertical-align: middle !important;
    font-size: 12px !important;
    line-height: 1.3;
}

.cd-seo-admin-list-page .cd-seo-admin-main-table thead th.align-top,
.cd-seo-admin-main-table.cd-listing-sticky-table thead th.align-top {
    vertical-align: top !important;
}

.cd-seo-admin-list-page .cd-seo-admin-main-table thead th > .d-flex,
.cd-seo-admin-main-table.cd-listing-sticky-table thead th > .d-flex {
    min-width: 0;
    width: 100%;
}

.cd-seo-admin-main-table .js-selected-keywords-total-badge {
    width: auto !important;
    min-width: 28px !important;
    max-width: 100% !important;
    align-self: center;
    padding: 4px 7px !important;
    white-space: nowrap;
    line-height: 1 !important;
}

/* SEO log surfaces and controls. */
.cd-seo-log-page .cd-seo-log-banner,
.cd-seo-log-page .cd-seo-log-banner-actions,
.cd-seo-log-page .cd-seo-log-download-group {
    overflow: visible !important;
}

.cd-seo-log-page .cd-seo-log-banner {
    position: relative;
    z-index: 1040;
}

.cd-seo-log-page .cd-seo-log-banner-actions {
    position: relative;
    z-index: 3;
    align-items: stretch;
}

.cd-seo-log-page .cd-seo-log-download-group {
    position: relative;
}

.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu {
    z-index: 1085;
    min-width: 230px;
    margin-top: 7px;
    padding: 7px;
    overflow: visible;
    border: 1px solid rgba(108, 174, 211, .18);
    border-radius: 12px;
    color: #d8edf6;
    background: #092338;
    box-shadow: 0 18px 38px rgba(0, 7, 20, .34);
}

.cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu .dropdown-item {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 9px;
    white-space: nowrap;
}

.cd-seo-log-page .cd-seo-log-month-control {
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(108, 174, 211, .18) !important;
    border-radius: 11px !important;
    background: rgba(5, 23, 36, .78) !important;
}

.cd-seo-log-page .cd-seo-log-month-control > .form-control {
    min-width: 0;
    height: 40px !important;
    padding: 8px 11px !important;
    border: 0 !important;
    border-radius: 10px 0 0 10px !important;
    color: #dff1f8 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-log-page .cd-seo-log-month-control > .input-group-append {
    display: flex;
    margin: 0;
}

.cd-seo-log-page .cd-seo-log-month-control #filter-date-reset-month {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(108, 174, 211, .14) !important;
    border-radius: 0 10px 10px 0 !important;
    color: #b8d7e6 !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow: none !important;
}

.cd-seo-log-page .cd-seo-log-search-form #input-filter-keyword {
    color: #e6f4fa !important;
    background: rgba(5, 23, 36, .78) !important;
}

.cd-seo-log-page .cd-seo-log-search-form #input-filter-keyword::placeholder {
    color: #7899aa;
}

.cd-seo-log-page .cd-seo-log-chart-card .card-body {
    background: linear-gradient(145deg, rgba(8, 28, 44, .72), rgba(5, 21, 34, .56)) !important;
}

.flatpickr-calendar.cd-seo-log-month-picker {
    z-index: 1090 !important;
    overflow: hidden;
    border: 1px solid rgba(109, 184, 213, .2) !important;
    border-radius: 13px !important;
    color: #dceef6 !important;
    background: #0a2235 !important;
    box-shadow: 0 18px 42px rgba(0, 7, 20, .38) !important;
}

.flatpickr-calendar.cd-seo-log-month-picker .flatpickr-months,
.flatpickr-calendar.cd-seo-log-month-picker .flatpickr-innerContainer,
.flatpickr-calendar.cd-seo-log-month-picker .flatpickr-rContainer {
    color: inherit !important;
    background: transparent !important;
}

.flatpickr-calendar.cd-seo-log-month-picker .flatpickr-monthSelect-month {
    border-radius: 9px !important;
    color: #cce4ef !important;
    background: transparent !important;
}

.flatpickr-calendar.cd-seo-log-month-picker .flatpickr-monthSelect-month:hover,
.flatpickr-calendar.cd-seo-log-month-picker .flatpickr-monthSelect-month.selected {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(118, 86, 197, .92), rgba(55, 151, 211, .9)) !important;
}

html[data-theme="light"] .cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu {
    border-color: rgba(68, 126, 163, .14);
    color: #294b63;
    background: #fff;
    box-shadow: 0 18px 34px rgba(45,83,108,.14);
}

html[data-theme="light"] .cd-seo-log-page .cd-seo-log-month-control {
    border-color: rgba(68,126,163,.14) !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-seo-log-page .cd-seo-log-month-control > .form-control,
html[data-theme="light"] .cd-seo-log-page .cd-seo-log-search-form #input-filter-keyword {
    color: #294b63 !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-seo-log-page .cd-seo-log-search-form #input-filter-keyword::placeholder {
    color: #8196a4;
}

html[data-theme="light"] .cd-seo-log-page .cd-seo-log-month-control #filter-date-reset-month {
    border-left-color: rgba(68,126,163,.12) !important;
    color: #55798e !important;
    background: #f1f7fa !important;
}

html[data-theme="light"] .cd-seo-log-page .cd-seo-log-chart-card .card-body {
    background: linear-gradient(145deg, #ffffff, #f5fafc) !important;
}

html[data-theme="light"] .flatpickr-calendar.cd-seo-log-month-picker {
    border-color: rgba(68, 126, 163, .15) !important;
    color: #294b63 !important;
    background: #fff !important;
    box-shadow: 0 18px 36px rgba(45,83,108,.16) !important;
}

html[data-theme="light"] .flatpickr-calendar.cd-seo-log-month-picker .flatpickr-monthSelect-month {
    color: #365f77 !important;
}

/* General pagination reference used by tool/theme_design and legacy paginated routes. */
.cd-theme-scope .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0;
}

.cd-theme-scope .cd-listing-pagination .pagination {
    margin: 0;
}

.cd-theme-scope .pagination .page-item {
    margin: 0;
}

.cd-theme-scope .pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid rgba(108, 174, 211, .18);
    border-radius: 11px !important;
    color: #b8d6e6;
    background: rgba(7, 26, 42, .75);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
}

.cd-theme-scope .pagination .page-link:hover,
.cd-theme-scope .pagination .page-link:focus-visible {
    border-color: rgba(91,183,228,.42);
    color: #fff;
    background: rgba(29,92,132,.55);
    box-shadow: 0 9px 22px rgba(0,9,22,.18), 0 0 0 3px rgba(77,169,255,.07);
}

.cd-theme-scope .pagination .page-item.active .page-link {
    border-color: rgba(148,208,244,.35);
    color: #fff;
    background: linear-gradient(115deg, rgba(130,88,200,.94), rgba(44,132,200,.94));
}

.cd-theme-scope .pagination .page-item.disabled .page-link {
    opacity: .48;
    pointer-events: none;
}

html[data-theme="light"] .cd-theme-scope .pagination .page-link {
    border-color: rgba(66,113,147,.14);
    color: #345b73;
    background: rgba(248,252,254,.98);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-theme-scope .pagination .page-link:hover,
html[data-theme="light"] .cd-theme-scope .pagination .page-link:focus-visible {
    border-color: rgba(44,132,200,.28);
    color: #163e58;
    background: #fff;
}

.cd-seo-log-page .cd-seo-log-pagination {
    margin-top: 18px;
}

/* Legends: no horizontal padding, with intentional breathing room above and below. */
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) legend,
.cd-form-page fieldset > legend {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Wave 6 legend spacing wins over route-specific first-legend resets. */
:where(html.cd-theme-document, body.cd-body, .cd-theme-scope) legend,
.cd-form-page fieldset > legend,
.cd-seo-admin-form-page #form-seo-report > .tab-content > .tab-pane > legend:first-child {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


@media (max-width: 767.98px) {
    .cd-seo-admin-list-page .cd-seo-admin-summary-card .text-right > .btn-group {
        width: min(228px, 100%);
        min-width: 0;
        max-width: 100%;
    }
}

/* CRM UI/UX wave 7: SEO Report edit components aligned with tool/theme_design. */
.cd-seo-admin-form-page > .page-header .float-right > .cd-button {
    min-height: 42px;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 11px !important;
    font-weight: 680;
    line-height: 1;
}

.cd-seo-admin-form-page > .page-header .float-right > .cd-button > i {
    margin: 0 !important;
}

/* Result date/day controls use the same compact report-toolbar geometry. */
.cd-seo-admin-form-page #search-results-date-container,
.cd-seo-admin-form-page #search-results-day-container {
    min-width: 190px;
    height: var(--cd-admin-control-height) !important;
    overflow: hidden;
    border: 1px solid rgba(108, 174, 211, .18) !important;
    border-radius: var(--cd-admin-control-radius) !important;
    background: rgba(5, 23, 36, .78) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cd-seo-admin-form-page #search-results-date-container > .form-control,
.cd-seo-admin-form-page #search-results-day-container > .form-control {
    height: calc(var(--cd-admin-control-height) - 2px) !important;
    padding: 8px 11px !important;
    border: 0 !important;
    border-radius: calc(var(--cd-admin-control-radius) - 1px) 0 0 calc(var(--cd-admin-control-radius) - 1px) !important;
    color: #dff1f8 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page #search-results-date-container > .cd-icon-button,
.cd-seo-admin-form-page #search-results-day-container > .cd-icon-button {
    width: 40px !important;
    min-width: 40px !important;
    height: calc(var(--cd-admin-control-height) - 2px) !important;
    min-height: calc(var(--cd-admin-control-height) - 2px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(108, 174, 211, .14) !important;
    border-radius: 0 calc(var(--cd-admin-control-radius) - 1px) calc(var(--cd-admin-control-radius) - 1px) 0 !important;
    color: #b9d9e8 !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #search-results-date-container,
html[data-theme="light"] .cd-seo-admin-form-page #search-results-day-container {
    border-color: rgba(68,126,163,.14) !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-seo-admin-form-page #search-results-date-container > .form-control,
html[data-theme="light"] .cd-seo-admin-form-page #search-results-day-container > .form-control {
    color: #294b63 !important;
    background: transparent !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #search-results-date-container > .cd-icon-button,
html[data-theme="light"] .cd-seo-admin-form-page #search-results-day-container > .cd-icon-button {
    border-left-color: rgba(68,126,163,.12) !important;
    color: #55798e !important;
    background: #f1f7fa !important;
}

/* Detached Flatpickr calendars live under body, so they require their own theme hook. */
.flatpickr-calendar.cd-seo-results-picker {
    z-index: 1090 !important;
    overflow: hidden;
    border: 1px solid rgba(109,184,213,.2) !important;
    border-radius: 13px !important;
    color: #dceef6 !important;
    background: #0a2235 !important;
    box-shadow: 0 18px 42px rgba(0,7,20,.38) !important;
}

.flatpickr-calendar.cd-seo-results-picker .flatpickr-months,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-innerContainer,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-rContainer,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-days,
.flatpickr-calendar.cd-seo-results-picker .dayContainer {
    color: inherit !important;
    background: transparent !important;
}

.flatpickr-calendar.cd-seo-results-picker .flatpickr-current-month,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-current-month input.cur-year,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-weekday,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-day {
    color: #c9e1ec !important;
}

.flatpickr-calendar.cd-seo-results-picker .flatpickr-day:hover,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-day:focus,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-day.selected,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-day.startRange,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-day.endRange,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-monthSelect-month:hover,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-monthSelect-month.selected {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(118,86,197,.94), rgba(55,151,211,.92)) !important;
}

.flatpickr-calendar.cd-seo-results-picker .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-day.prevMonthDay,
.flatpickr-calendar.cd-seo-results-picker .flatpickr-day.nextMonthDay {
    color: #567687 !important;
}

.flatpickr-calendar.cd-seo-results-month-picker .flatpickr-monthSelect-month {
    border-radius: 9px !important;
    color: #cce4ef !important;
    background: transparent !important;
}

html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker {
    border-color: rgba(68,126,163,.15) !important;
    color: #294b63 !important;
    background: #fff !important;
    box-shadow: 0 18px 36px rgba(45,83,108,.16) !important;
}

html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker .flatpickr-current-month,
html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker .flatpickr-current-month input.cur-year,
html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker .flatpickr-weekday,
html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker .flatpickr-day,
html[data-theme="light"] .flatpickr-calendar.cd-seo-results-month-picker .flatpickr-monthSelect-month {
    color: #365f77 !important;
}

html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker .flatpickr-day.flatpickr-disabled,
html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker .flatpickr-day.prevMonthDay,
html[data-theme="light"] .flatpickr-calendar.cd-seo-results-picker .flatpickr-day.nextMonthDay {
    color: #9aabb6 !important;
}

/* Search-result detail/link controls mirror the SEO reference table in tool/theme_design. */
.cd-seo-admin-form-page .cd-seo-result-info-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px 0 0 !important;
    padding: 0;
    border: 1px solid rgba(105,181,214,.16);
    border-radius: 8px;
    color: #79d8e9 !important;
    background: rgba(83,166,204,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    cursor: pointer;
}

.cd-seo-admin-form-page .cd-seo-result-info-button:hover,
.cd-seo-admin-form-page .cd-seo-result-info-button:focus-visible {
    border-color: rgba(121,216,233,.3);
    color: #d9f7ff !important;
    background: rgba(83,166,204,.14);
    transform: translateY(-1px);
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-result-info-button {
    border-color: rgba(52,128,168,.14);
    color: #277ca4 !important;
    background: #f1f8fb;
    box-shadow: inset 0 1px 0 #fff;
}

.cd-seo-admin-form-page .cd-seo-competitor-count-toggle {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 4px 8px !important;
    border-radius: 9px !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-count-toggle > .badge {
    min-width: 24px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 4px 7px !important;
    line-height: 1 !important;
}

.cd-seo-admin-form-page .cd-seo-external-link {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #8e82ef !important;
    background: rgba(124,105,220,.08);
    text-decoration: none !important;
}

.cd-seo-admin-form-page .cd-seo-external-link:hover,
.cd-seo-admin-form-page .cd-seo-external-link:focus-visible {
    color: #b8afff !important;
    background: rgba(124,105,220,.16);
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-external-link {
    color: #6254bd !important;
    background: rgba(98,84,189,.08);
}

/* SEO totals use one consistent centered metric-chip geometry. */
.cd-seo-admin-form-page .secondary-inner-cont-results-page-top-totals {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 7px;
}

.cd-seo-admin-form-page .secondary-inner-cont-results-page-top-totals > .badge {
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 7px 10px !important;
    line-height: 1.12 !important;
    text-align: center !important;
    white-space: normal;
}

.cd-seo-admin-form-page .secondary-inner-cont-results-page-top-totals > .badge > span,
.cd-seo-admin-form-page .secondary-inner-cont-results-page-top-totals > .badge > strong {
    width: 100%;
    display: block;
    margin: 0;
    line-height: 1.05;
    text-align: center;
}

/* Competitor workspace follows the SEO card/tab treatment demonstrated in tool/theme_design. */
.cd-seo-admin-form-page #seo-report-competitors-tab-content {
    min-width: 0;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content > .secondary-cont-results-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px !important;
    padding: 12px 14px;
    border: 1px solid rgba(106,174,207,.12);
    border-radius: 13px;
    background: rgba(6,25,40,.62);
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content > .secondary-cont-results-page-top legend {
    margin: 0 !important;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content > .secondary-cont-results-page-top .input-group {
    min-width: 220px;
    margin: 0;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content > .mb-3 > .nav {
    padding: 8px;
    border: 1px solid rgba(106,174,207,.12);
    border-radius: 13px;
    background: rgba(6,25,40,.5);
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .seo-report-competitor-tab-badge {
    min-height: 58px;
    border: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .tab-content {
    padding: 0 !important;
    background: transparent !important;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .tab-content > .tab-pane {
    padding: 0 !important;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .card {
    overflow: hidden;
    border: 1px solid rgba(106,174,207,.12) !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118,86,197,.065), transparent 16rem),
        rgba(7,27,42,.72) !important;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .card-header {
    min-height: 44px;
    padding: 10px 13px !important;
    border-bottom: 1px solid rgba(106,174,207,.11) !important;
    color: #d7edf6 !important;
    background: rgba(67,143,179,.07) !important;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .card-body {
    padding: 14px !important;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(106,174,207,.11);
    border-radius: 11px;
    background: rgba(4,19,31,.42);
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content > .secondary-cont-results-page-top,
html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content > .mb-3 > .nav,
html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .card {
    border-color: rgba(68,126,163,.12) !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .card-header {
    border-bottom-color: rgba(68,126,163,.1) !important;
    color: #355d75 !important;
    background: #f1f7fa !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .table-responsive {
    border-color: rgba(68,126,163,.11);
    background: #fff;
}

/* Keyword widget: compact workspace surface, clean tabs and footer action spacing. */
.cd-seo-admin-form-page #seo-keywords-widget {
    align-items: stretch;
    margin-right: 0;
    margin-left: 0;
}

.cd-seo-admin-form-page #seo-keywords-widget > .col-form-label {
    padding-top: 0;
    padding-bottom: 0;
}

.cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs {
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(106,174,207,.12);
    border-radius: 12px;
    background: rgba(6,25,40,.5);
}

.cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs .nav-link {
    padding: 9px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
}

.cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs .nav-link.active {
    border-color: rgba(104,160,219,.3) !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(93,79,163,.94), rgba(40,111,158,.94)) !important;
}

.cd-seo-admin-form-page #seo-keywords-widget > .col-sm-10 {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(106,174,207,.12);
    border-radius: 13px;
    background: rgba(6,25,40,.46);
}

.cd-seo-admin-form-page #seo-keywords-widget > .col-sm-10 > .tab-content {
    margin-top: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.cd-seo-admin-form-page #seo-keywords-widget > .col-sm-10 > .tab-content > .tab-pane {
    padding: 0 !important;
}

.cd-seo-admin-form-page #seo-keywords-widget .tab-pane > .d-flex.pt-2 {
    gap: 10px;
    padding-top: 10px !important;
}

.cd-seo-admin-form-page #seo-keywords-widget .tab-pane > .d-flex.pt-2 > .d-flex {
    gap: 7px;
}

.cd-seo-admin-form-page #seo-keywords-widget .tab-pane > .d-flex.pt-2 .btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 0 !important;
    border-radius: 9px !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs,
html[data-theme="light"] .cd-seo-admin-form-page #seo-keywords-widget > .col-sm-10 {
    border-color: rgba(68,126,163,.12);
    background: #f8fbfc;
}

/* Keyword checks and injected location result tables. */
.cd-seo-admin-form-page #check-keywords-button {
    min-height: 42px;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 11px !important;
}

.cd-seo-admin-form-page #check-keywords-button > i,
.cd-seo-admin-form-page .cd-seo-check-results-actions .cd-button > i {
    margin: 0 !important;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-check-results-table-wrap,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(105,174,207,.12) !important;
    border-radius: 12px !important;
    background: rgba(4,19,31,.48) !important;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-check-results-table,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent table {
    margin: 0 !important;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-check-results-table thead th,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent table thead th,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent table thead td {
    padding: 6px 12px !important;
    border-color: rgba(105,174,207,.1) !important;
    color: #a9cad9 !important;
    background: rgba(67,143,179,.08) !important;
    font-size: 12px !important;
    font-weight: 700;
    vertical-align: middle;
}

.cd-seo-admin-form-page #check-keywords-container .add-to-report-button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 9px !important;
}

.cd-seo-admin-form-page .cd-seo-check-results-actions {
    clear: both;
    margin-top: 14px !important;
}

.cd-seo-admin-form-page .cd-seo-check-results-actions .cd-button {
    min-height: 40px;
    gap: 8px;
    border-radius: 10px !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container .cd-seo-check-results-table-wrap,
html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table-responsive {
    border-color: rgba(68,126,163,.11) !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container .cd-seo-check-results-table thead th,
html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabsContent table thead th,
html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabsContent table thead td {
    border-color: rgba(68,126,163,.1) !important;
    color: #496d82 !important;
    background: #eef6f9 !important;
}

/* Analytics/server integration rows and monthly data tables use the standard admin listing table contract. */
.cd-seo-admin-form-page .cd-seo-integration-control {
    min-width: 0;
    min-height: 42px;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow: hidden;
    border: 1px solid rgba(107,174,207,.18);
    border-radius: 11px;
    background: rgba(5,23,36,.74);
}

.cd-seo-admin-form-page .cd-seo-integration-control > .form-control,
.cd-seo-admin-form-page .cd-seo-integration-control > .input-group-prepend,
.cd-seo-admin-form-page .cd-seo-integration-control > .input-group-append,
.cd-seo-admin-form-page .cd-seo-integration-control > #awstats-check-result {
    margin: 0 !important;
}

.cd-seo-admin-form-page .cd-seo-integration-control .form-control,
.cd-seo-admin-form-page .cd-seo-integration-control .input-group-text,
.cd-seo-admin-form-page .cd-seo-integration-control .btn,
.cd-seo-admin-form-page .cd-seo-integration-control .cd-button,
.cd-seo-admin-form-page .cd-seo-integration-control .cd-icon-button {
    min-height: 40px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page .cd-seo-integration-control .input-group-text {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-right: 1px solid rgba(107,174,207,.13) !important;
    background: rgba(255,255,255,.03) !important;
}

.cd-seo-admin-form-page .cd-seo-integration-control > .input-group-append:first-child .input-group-text,
.cd-seo-admin-form-page .cd-seo-integration-control > .input-group-prepend:first-child .input-group-text {
    border-radius: 10px 0 0 10px !important;
}

.cd-seo-admin-form-page .cd-seo-integration-control > .form-control:last-child {
    border-radius: 0 10px 10px 0 !important;
}

.cd-seo-admin-form-page .cd-seo-server-connection-control > .input-group-prepend.btn-group {
    display: flex;
}

.cd-seo-admin-form-page .cd-seo-server-connection-control > .input-group-prepend.btn-group .cd-icon-button {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-right: 1px solid rgba(107,174,207,.13) !important;
}

.cd-seo-admin-form-page .cd-seo-server-connection-control #awstats-check-result {
    min-width: 180px;
    flex: 1 1 auto;
}

.cd-seo-admin-form-page .cd-seo-server-connection-control #awstats-check-result .form-control {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-seo-admin-form-page .cd-seo-server-connection-control > .input-group-append {
    display: flex;
}

.cd-seo-admin-form-page .cd-seo-server-connection-control #awstats-check-button {
    gap: 7px;
    padding: 0 13px !important;
    border-left: 1px solid rgba(107,174,207,.13) !important;
    border-radius: 0 10px 10px 0 !important;
    white-space: nowrap;
}

.cd-seo-admin-form-page #analytics-data-table,
.cd-seo-admin-form-page #server-data-table {
    min-width: 860px;
    margin: 0;
}

.cd-seo-admin-form-page #analytics-data-table thead th,
.cd-seo-admin-form-page #server-data-table thead th {
    padding: 6px 12px !important;
    font-size: 12px !important;
    line-height: 1.2;
    vertical-align: middle;
}

.cd-seo-admin-form-page #analytics-data-table tbody td,
.cd-seo-admin-form-page #server-data-table tbody td,
.cd-seo-admin-form-page #analytics-data-table tfoot td,
.cd-seo-admin-form-page #server-data-table tfoot td {
    vertical-align: middle;
}

.cd-seo-admin-form-page #analytics-data-table .form-control,
.cd-seo-admin-form-page #server-data-table .form-control {
    min-width: 82px;
    height: 38px !important;
    padding: 6px 8px !important;
    text-align: center;
}

.cd-seo-admin-form-page #analytics-data-table select.form-control,
.cd-seo-admin-form-page #server-data-table select.form-control {
    min-width: 118px;
}

.cd-seo-admin-form-page .cd-seo-data-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.cd-seo-admin-form-page .cd-seo-data-row-actions > .cd-icon-button,
.cd-seo-admin-form-page #button-add-analytics-data,
.cd-seo-admin-form-page #button-add-server-data {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 9px !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-integration-control {
    border-color: rgba(68,126,163,.14);
    background: #fff;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-integration-control .input-group-text,
html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-server-connection-control > .input-group-prepend.btn-group .cd-icon-button,
html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-server-connection-control #awstats-check-button {
    border-color: rgba(68,126,163,.12) !important;
}

/* Results evolution modal and competitor keyword rules modal. */
.cd-seo-results-evolution-modal .modal-body,
.cd-seo-competitor-keyword-rules-modal .modal-body {
    min-width: 0;
    padding: 16px !important;
}

.cd-seo-results-evolution-modal .cd-seo-evolution-table-wrap,
.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(105,174,207,.12);
    border-radius: 12px;
    background: rgba(4,19,31,.48);
}

.cd-seo-results-evolution-modal .cd-seo-evolution-table {
    margin: 0;
}

.cd-seo-results-evolution-modal .cd-seo-evolution-table thead th,
.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 7px 12px !important;
    border-color: rgba(105,174,207,.1) !important;
    color: #a9cad9 !important;
    background: #0c2a3e !important;
    font-size: 12px !important;
    vertical-align: middle;
}

.cd-seo-results-evolution-modal .cd-seo-evolution-table td,
.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table td {
    padding: 8px 12px !important;
    vertical-align: middle;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs {
    gap: 6px;
    padding: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    border: 1px solid rgba(105,174,207,.12) !important;
    border-radius: 12px;
    background: rgba(6,25,40,.52);
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-item {
    flex: 0 0 auto;
    margin: 0;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link {
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    color: #a9cad9 !important;
    white-space: nowrap;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active {
    border-color: rgba(104,160,219,.3) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #5d4fa3, #286f9e) !important;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-content,
.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-content > .tab-pane {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions .cd-button {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 9px !important;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-search-input {
    height: 42px !important;
    border-radius: 10px !important;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-row label {
    margin: 0;
    color: inherit;
    cursor: pointer;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total {
    min-width: 66px;
    justify-content: center;
    padding: 6px 9px !important;
}

.cd-seo-competitor-keyword-rules-modal .modal-footer {
    gap: 8px;
}

.cd-seo-competitor-keyword-rules-modal .modal-footer .cd-button {
    min-height: 40px;
    gap: 7px;
    border-radius: 10px !important;
}

html[data-theme="light"] .cd-seo-results-evolution-modal .cd-seo-evolution-table-wrap,
html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap,
html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs {
    border-color: rgba(68,126,163,.12) !important;
    background: #fff;
}

html[data-theme="light"] .cd-seo-results-evolution-modal .cd-seo-evolution-table thead th,
html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table thead th {
    border-color: rgba(68,126,163,.1) !important;
    color: #496d82 !important;
    background: #eef6f9 !important;
}

html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link {
    color: #557487 !important;
}

@media (max-width: 991.98px) {
    .cd-seo-admin-form-page .cd-seo-server-connection-control {
        flex-wrap: wrap;
        overflow: visible;
        border: 0;
        background: transparent;
        gap: 7px;
    }

    .cd-seo-admin-form-page .cd-seo-server-connection-control > .input-group-prepend,
    .cd-seo-admin-form-page .cd-seo-server-connection-control > .input-group-append,
    .cd-seo-admin-form-page .cd-seo-server-connection-control > #awstats-check-result {
        border: 1px solid var(--cd-border, rgba(143, 193, 230, .15));
        border-radius: 10px;
        overflow: hidden;
    }

    .cd-seo-admin-form-page .cd-seo-server-connection-control > #awstats-check-result {
        order: 3;
        flex: 1 0 100%;
    }

    .cd-seo-admin-form-page .cd-seo-server-connection-control #awstats-check-result .form-control,
    .cd-seo-admin-form-page .cd-seo-server-connection-control #awstats-check-button,
    .cd-seo-admin-form-page .cd-seo-server-connection-control > .input-group-prepend:first-child .input-group-text {
        border-radius: 9px !important;
    }
}

@media (max-width: 767.98px) {
    .cd-seo-admin-form-page #seo-keywords-widget > .col-form-label,
    .cd-seo-admin-form-page #seo-keywords-widget > .col-sm-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cd-seo-admin-form-page #seo-keywords-widget > .col-form-label {
        margin-bottom: 8px;
    }

    .cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs .nav-item {
        flex: 0 0 auto;
    }

    .cd-seo-admin-form-page .cd-seo-check-results-actions .cd-button {
        flex: 1 1 180px;
        justify-content: center;
    }
}

/* CRM UI/UX wave 8: Audit, Heatmap, Client Report, Flatpickr and dashboard alignment. */
.cd-admin-report-form-page > .page-header h1 {
    font-size: clamp(22px, 2.1vw, 24px);
    font-weight: 600;
}

/* Shared row pulse: replace the legacy yellow flash with the Galaxy accent. */
@keyframes cdPulseRowGalaxy {
    0%, 50%, 100% { background-color: transparent; box-shadow: inset 0 0 0 rgba(96, 199, 224, 0); }
    20%, 70% { background-color: rgba(88, 112, 208, .16); box-shadow: inset 3px 0 0 rgba(79, 195, 213, .72); }
}
.client-pulse-row,
.client-report-pulse-row,
.audit-pulse-row,
.heatmap-pulse-row,
.seo-report-pulse-row,
.project-pulse-row,
.task-subtask-urgent-pulse-row {
    animation-name: cdPulseRowGalaxy !important;
}
/* Global Flatpickr surface. Most CRM calendars are detached directly under body. */
html[data-theme] body > .flatpickr-calendar {
    overflow: hidden;
    border: 1px solid rgba(112, 183, 213, .18) !important;
    border-radius: 13px !important;
    color: #dcecf4 !important;
    background: #0a2233 !important;
    box-shadow: 0 22px 52px rgba(0, 7, 22, .38), inset 0 1px 0 rgba(255,255,255,.045) !important;
}
html[data-theme] body > .flatpickr-calendar::before,
html[data-theme] body > .flatpickr-calendar::after {
    border-bottom-color: #0a2233 !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-months,
html[data-theme] body > .flatpickr-calendar .flatpickr-innerContainer,
html[data-theme] body > .flatpickr-calendar .flatpickr-rContainer,
html[data-theme] body > .flatpickr-calendar .flatpickr-days,
html[data-theme] body > .flatpickr-calendar .dayContainer {
    border-color: rgba(112,183,213,.12) !important;
    background: transparent !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-current-month,
html[data-theme] body > .flatpickr-calendar .flatpickr-current-month input.cur-year,
html[data-theme] body > .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme] body > .flatpickr-calendar .flatpickr-weekday,
html[data-theme] body > .flatpickr-calendar .flatpickr-prev-month,
html[data-theme] body > .flatpickr-calendar .flatpickr-next-month {
    color: #dcecf4 !important;
    fill: #dcecf4 !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-day,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month {
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    color: #c7dde8 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-day:hover,
html[data-theme] body > .flatpickr-calendar .flatpickr-day:focus,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month:hover,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month:focus {
    border-color: rgba(92, 188, 215, .24) !important;
    color: #fff !important;
    background: rgba(55, 139, 174, .17) !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-day.selected,
html[data-theme] body > .flatpickr-calendar .flatpickr-day.startRange,
html[data-theme] body > .flatpickr-calendar .flatpickr-day.endRange,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month.selected,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month.startRange,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month.endRange {
    border-color: rgba(116, 211, 230, .46) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #654fb5, #347fa8 62%, #277f8c) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(73,183,207,.08) !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-day.inRange,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month.inRange {
    border-color: transparent !important;
    color: #eaf9ff !important;
    background: rgba(71, 132, 183, .18) !important;
    box-shadow: none !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-day.flatpickr-disabled,
html[data-theme] body > .flatpickr-calendar .flatpickr-day.prevMonthDay,
html[data-theme] body > .flatpickr-calendar .flatpickr-day.nextMonthDay,
html[data-theme] body > .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled {
    color: #557687 !important;
    opacity: .68;
}
html[data-theme="light"] body > .flatpickr-calendar {
    border-color: rgba(68,126,163,.16) !important;
    color: #17384e !important;
    background: #fff !important;
    box-shadow: 0 20px 46px rgba(45,78,101,.17), inset 0 1px 0 #fff !important;
}
html[data-theme="light"] body > .flatpickr-calendar::before,
html[data-theme="light"] body > .flatpickr-calendar::after {
    border-bottom-color: #fff !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-current-month,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-current-month input.cur-year,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-weekday,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-prev-month,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-next-month,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-monthSelect-month {
    color: #315a70 !important;
    fill: #315a70 !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day:hover,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day:focus,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-monthSelect-month:hover,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-monthSelect-month:focus {
    border-color: rgba(45,122,160,.16) !important;
    color: #17384e !important;
    background: #edf6fa !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day.inRange,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-monthSelect-month.inRange {
    color: #245572 !important;
    background: #e8f3f8 !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day.flatpickr-disabled,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day.prevMonthDay,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day.nextMonthDay,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-monthSelect-month.flatpickr-disabled {
    color: #94aab6 !important;
}

/* Task report banned manager. */
#modal-task-report-banned-manager .modal-body {
    display: grid;
    gap: 15px;
}
#modal-task-report-banned-manager .cd-modal-inner-card {
    margin: 0 !important;
}
#modal-task-report-banned-manager .cd-form-card-body {
    padding: 16px !important;
}
#modal-task-report-banned-manager .form-group.row {
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
#modal-task-report-banned-manager .task-report-banned-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(106,174,207,.13);
    border-radius: 13px;
    background: rgba(7,27,42,.7);
}
#modal-task-report-banned-manager .task-report-banned-table td {
    vertical-align: middle;
}
#modal-task-report-banned-manager .task-report-banned-table td:last-child {
    display: flex;
    justify-content: center;
    gap: 7px;
}
html[data-theme="light"] #modal-task-report-banned-manager .task-report-banned-table-wrap {
    border-color: rgba(68,126,163,.13);
    background: #fff;
}

/* Audit edit: production report uses the same visual language as tool/theme_design. */
.cd-audit-admin-page #tab-report .audit-report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(106,174,207,.12);
    border-radius: 14px;
    background: rgba(6,25,40,.62);
}
.cd-audit-admin-page #button-begin-audit-check {
    min-height: 42px;
    gap: 9px;
}
.cd-audit-admin-page #audit-report-export-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px !important;
    margin: 0 !important;
}
.cd-audit-admin-page #audit-report-day-container {
    min-width: 190px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(106,174,207,.16);
    border-radius: 11px;
    background: rgba(5,25,39,.78);
}
.cd-audit-admin-page #audit-report-day-container > .form-control,
.cd-audit-admin-page #audit-report-day-container > .cd-icon-button {
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.cd-audit-admin-page #audit-report-day-container > .cd-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    border-left: 1px solid rgba(106,174,207,.13) !important;
    color: #82d8e8 !important;
}
.cd-audit-admin-page .cd-audit-settings-form {
    padding: 4px 0 10px;
}
.cd-audit-admin-page .cd-audit-settings-form > .form-group.row,
.cd-audit-admin-page .cd-audit-settings-form .form-group.row {
    align-items: center;
    margin: 0 !important;
    padding: 13px 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.cd-audit-admin-page .cd-audit-settings-form .form-group.row + .form-group.row {
    border-top: 1px solid rgba(107,173,204,.09) !important;
}
.cd-audit-admin-page .cd-audit-settings-form .col-form-label {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.cd-audit-admin-report .audit-report-score-circle > div {
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 0 !important;
    text-align: center !important;
}
.cd-audit-admin-report .audit-report-score-circle strong,
.cd-audit-admin-report .audit-report-score-circle span {
    display: block;
    width: 100%;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
}
.cd-audit-admin-report .audit-report-score-circle span {
    margin-top: 3px !important;
}
html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-toolbar {
    padding: 0;
    border-color: transparent;
    background: transparent;
}
html[data-theme="light"] .cd-audit-admin-page #audit-report-day-container {
    border-color: rgba(68,126,163,.14);
    background: #fff;
}
html[data-theme="light"] .cd-audit-admin-page #audit-report-day-container > .cd-icon-button {
    border-left-color: rgba(68,126,163,.11) !important;
    color: #2e6f92 !important;
    background: #f1f7fa !important;
}
html[data-theme="light"] .cd-audit-admin-page .cd-audit-settings-form .form-group.row + .form-group.row {
    border-top-color: rgba(68,126,163,.10) !important;
}

/* Heatmap edit. */
.cd-heatmap-admin-page #button-report-request-heatmap-screenshot {
    min-height: 42px;
    margin: 0 auto;
    gap: 9px;
}
.cd-heatmap-admin-page #heatmap-click-report-no-screenshot {
    overflow: hidden;
    border: 1px dashed rgba(105,181,211,.22) !important;
    border-radius: 16px !important;
    color: #d9ebf3;
    background:
        radial-gradient(circle at 50% 0%, rgba(102,82,184,.12), transparent 18rem),
        rgba(6,24,39,.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.cd-heatmap-admin-page #heatmap-click-report-no-screenshot h4 {
    color: #f2fbff;
    font-weight: 650;
}
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 9px !important;
}
.cd-heatmap-admin-page .heatmap-report-type-buttons {
    overflow: hidden;
    border-radius: 11px !important;
}
.cd-heatmap-admin-page .heatmap-report-type-buttons > .button-report-heatmap-type:first-of-type {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}
.cd-heatmap-admin-page .heatmap-report-type-buttons > .button-report-heatmap-type:last-of-type {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}
.cd-heatmap-admin-page .heatmap-page-report-screenshots {
    padding: 14px 14px 14px 20px !important;
    border-left: 1px solid rgba(109,184,213,.13) !important;
    background: rgba(7,27,42,.26);
}
.cd-heatmap-admin-page .cd-heatmap-system-info-modal .modal-body {
    padding: 18px !important;
}
.cd-heatmap-admin-page .cd-heatmap-system-info-modal .modal-body > *:first-child {
    margin-top: 0 !important;
}
.cd-heatmap-admin-page .cd-heatmap-system-info-modal .table-responsive {
    overflow: hidden;
    border: 1px solid rgba(106,174,207,.13);
    border-radius: 13px;
}
.cd-heatmap-admin-page #heatmap-report-history {
    border: 1px solid rgba(106,174,207,.13);
    border-radius: 14px;
    background: rgba(7,27,42,.65);
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table-wrap {
    overflow: visible;
    border-radius: 14px 14px 0 0;
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table th,
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table td {
    vertical-align: middle !important;
}
.cd-heatmap-admin-page #heatmap-report-history .btn-group {
    display: inline-flex;
    gap: 6px !important;
}
.cd-heatmap-admin-page #heatmap-report-history .btn-group > .btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px !important;
    border-radius: 9px !important;
}
.cd-heatmap-admin-page #heatmap-report-history .pagination-cont {
    margin: 0 !important;
    padding: 12px 14px;
    border-top: 1px solid rgba(106,174,207,.10);
}
.cd-heatmap-admin-page .cd-heatmap-settings-form {
    padding: 4px 0 10px;
}
.cd-heatmap-admin-page .cd-heatmap-settings-form .form-group.row {
    align-items: center;
    margin: 0 !important;
    padding: 13px 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.cd-heatmap-admin-page .cd-heatmap-settings-form .form-group.row + .form-group.row {
    border-top: 1px solid rgba(107,173,204,.09) !important;
}
@media (min-width: 992px) {
    .cd-heatmap-report-content #heatmap-click-report-main-row:not(.d-none) {
        flex-wrap: nowrap !important;
    }
    .cd-heatmap-report-content #heatmap-click-report-main-row > .heatmap-report-stage-column,
    .cd-heatmap-report-content #heatmap-click-report-main-row > #heatmap-report-sidebar-column {
        min-width: 0;
    }
    .cd-heatmap-report-content #heatmap-click-report-main-row.heatmap-report-table-view-active > .heatmap-report-stage-column {
        flex: 0 0 74% !important;
        max-width: 74% !important;
    }
    .cd-heatmap-report-content #heatmap-click-report-main-row.heatmap-report-table-view-active > #heatmap-report-sidebar-column {
        flex: 0 0 26% !important;
        max-width: 26% !important;
        margin-top: 0 !important;
    }
}
html[data-theme="light"] .cd-heatmap-admin-page #heatmap-click-report-no-screenshot {
    border-color: rgba(68,126,163,.18) !important;
    color: #52758a;
    background: #f8fbfd !important;
    box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="light"] .cd-heatmap-admin-page #heatmap-click-report-no-screenshot h4 {
    color: #17384e;
}
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-page-report-screenshots {
    border-left-color: rgba(68,126,163,.11) !important;
    background: #f8fbfd;
}
html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history {
    border-color: rgba(68,126,163,.13);
    background: #fff;
}
html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history .pagination-cont,
html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-settings-form .form-group.row + .form-group.row {
    border-color: rgba(68,126,163,.10) !important;
}

/* Client Report list and edit history. */
.cd-client-report-list-shell .cd-client-report-list-table {
    table-layout: fixed;
    width: 100%;
}
.cd-client-report-list-shell .cd-client-report-list-table thead th {
    height: 46px;
    padding: 6px 10px !important;
    vertical-align: middle !important;
    line-height: 1.2;
}
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(9) { padding-right: 12px !important; }
.cd-client-report-list-shell .cd-client-report-list-table thead th > i {
    display: inline-block;
    margin-right: 5px !important;
    vertical-align: -1px;
    color: #7ecfe0 !important;
}
.cd-client-report-list-shell .cd-client-report-list-table .cd-listing-row-actions {
    max-width: 80px;
    margin-left: auto;
}
.cd-client-report-list-page .cd-client-report-revert-button {
    color: #e9d7ff !important;
    border-color: rgba(161,115,216,.26) !important;
    background: rgba(117,78,174,.18) !important;
}
.cd-client-report-list-page .cd-client-report-revert-button:hover,
.cd-client-report-list-page .cd-client-report-revert-button:focus {
    color: #fff !important;
    border-color: rgba(167,120,222,.42) !important;
    background: rgba(125,83,185,.3) !important;
}
#client-report-history .cd-client-report-history-table-wrap {
    overflow: visible;
    border: 1px solid rgba(106,174,207,.13);
    border-radius: 14px;
    background: rgba(7,27,42,.62);
}
#client-report-history .cd-listing-table-admin th,
#client-report-history .cd-listing-table-admin td {
    vertical-align: middle !important;
}
#client-report-history .cd-listing-table-admin .btn-group {
    display: inline-flex;
    align-items: center;
    gap: 5px !important;
}
#client-report-history .cd-listing-table-admin .btn-group > .btn,
#client-report-history .cd-listing-table-admin .btn-group > .cd-icon-button {
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 10px !important;
    border-radius: 9px !important;
}
#client-report-history .cd-client-report-history-email,
#client-report-history .delete-report-history {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
}
#client-report-history .cd-client-report-history-email {
    color: #cbeaf4 !important;
}
#client-report-history .cd-client-report-history-pagination {
    margin-top: 12px !important;
    padding: 12px 14px;
    border: 1px solid rgba(106,174,207,.12);
    border-radius: 13px;
    background: rgba(7,27,42,.58);
}
html[data-theme="light"] .cd-client-report-list-shell .cd-client-report-list-table thead th > i {
    color: #347d9d !important;
}
html[data-theme="light"] #client-report-history .cd-client-report-history-table-wrap,
html[data-theme="light"] #client-report-history .cd-client-report-history-pagination {
    border-color: rgba(68,126,163,.13);
    background: #fff;
}
html[data-theme="light"] .cd-client-report-list-page .cd-client-report-revert-button {
    color: #6e45a0 !important;
    border-color: rgba(110,69,160,.18) !important;
    background: #f3ecfb !important;
}

/* Main dashboard: lightweight permission-aware module launcher using tool/theme_design surfaces. */
.cd-dashboard-quick-access-module {
    margin-top: 22px;
    padding: 20px;
}
.cd-dashboard-quick-access-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.cd-dashboard-quick-access-card {
    min-width: 0;
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 14px;
    color: inherit !important;
    text-decoration: none !important;
}
.cd-dashboard-quick-access-card .cd-dashboard-panel-icon {
    width: 42px;
    height: 42px;
}
.cd-dashboard-quick-access-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.cd-dashboard-quick-access-copy strong {
    overflow: hidden;
    color: #f4fbff;
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cd-dashboard-quick-access-copy small {
    margin-top: 3px;
    color: var(--cd-muted);
    font-size: 10px;
}
.cd-dashboard-quick-access-arrow {
    color: #70c5d9;
    font-size: 11px;
    transition: transform .18s ease;
}
.cd-dashboard-quick-access-card:hover .cd-dashboard-quick-access-arrow {
    transform: translateX(3px);
}
html[data-theme="light"] .cd-dashboard-quick-access-copy strong {
    color: #17384e;
}
@media (max-width: 1399.98px) {
    .cd-dashboard-quick-access-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
}
@media (max-width: 767.98px) {
    .cd-dashboard-quick-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) {
    .cd-dashboard-quick-access-grid { grid-template-columns: 1fr; }
}

/* Wave 8 follow-up: preserve task calendar status semantics and task-report tab state. */
html[data-theme] body > .flatpickr-calendar .flatpickr-day.task-day-green {
    border-color: rgba(66,198,154,.32) !important;
    color: #bff4dc !important;
    background: rgba(44,153,116,.2) !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-day.task-day-red {
    border-color: rgba(230,93,118,.34) !important;
    color: #ffd0d8 !important;
    background: rgba(188,65,88,.2) !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-day.task-day-yellow {
    border-color: rgba(112,164,213,.28) !important;
    color: #cde9f7 !important;
    background: rgba(73,120,168,.19) !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day.task-day-green {
    color: #176246 !important;
    background: #e2f6ed !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day.task-day-red {
    color: #8a2940 !important;
    background: #fae9ed !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-day.task-day-yellow {
    color: #315f7d !important;
    background: #eaf3f9 !important;
}
.cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab {
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: #9fc2d2 !important;
    background: transparent !important;
}
.cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab:hover,
.cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab:focus {
    color: #eefbff !important;
    background: rgba(62,133,168,.12) !important;
}
.cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab.active {
    border-color: rgba(103,199,220,.25) !important;
    color: #fff !important;
    background: linear-gradient(120deg, rgba(100,78,181,.92), rgba(48,119,161,.92) 64%, rgba(37,126,139,.9)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 8px 18px rgba(14,50,75,.16) !important;
}
html[data-theme="light"] .cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab {
    color: #52758a !important;
}
html[data-theme="light"] .cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab:hover,
html[data-theme="light"] .cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab:focus {
    color: #17384e !important;
    background: #edf6fa !important;
}
html[data-theme="light"] .cd-project-report-workspace .task-report-project-tag-tabs .task-report-project-tag-tab.active {
    color: #fff !important;
}

.cd-audit-admin-page .cd-audit-settings-form .form-group.row + .form-group.row,
.cd-heatmap-admin-page .cd-heatmap-settings-form .form-group.row + .form-group.row {
    border-top: 0 !important;
}
.cd-audit-admin-page .cd-audit-settings-form > .cd-card,
.cd-heatmap-admin-page .cd-heatmap-settings-form > .cd-card {
    padding-left: 18px !important;
    padding-right: 18px !important;
}
.cd-heatmap-admin-page .cd-heatmap-system-info-modal .modal-body h6 {
    margin: 18px 0 8px;
    color: #eaf7fc;
    font-weight: 650;
}
.cd-heatmap-admin-page .cd-heatmap-system-info-modal .modal-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #b9d4df;
}
.cd-heatmap-admin-page .cd-heatmap-system-info-modal .modal-body .alert {
    border-radius: 11px;
}
html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-system-info-modal .modal-body h6 {
    color: #17384e;
}
html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-system-info-modal .modal-body ul {
    color: #52758a;
}

#modal-task-report-banned-manager .task-report-banned-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

html[data-theme] body > .flatpickr-calendar .flatpickr-time {
    border-top: 1px solid rgba(112,183,213,.12) !important;
    background: rgba(5,22,35,.42) !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-time input,
html[data-theme] body > .flatpickr-calendar .flatpickr-time .flatpickr-am-pm,
html[data-theme] body > .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #dcecf4 !important;
    background: transparent !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-time input:hover,
html[data-theme] body > .flatpickr-calendar .flatpickr-time input:focus,
html[data-theme] body > .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover,
html[data-theme] body > .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:focus {
    background: rgba(55,139,174,.14) !important;
}
html[data-theme] body > .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #dcecf4;
    background: #0a2233;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-time {
    border-top-color: rgba(68,126,163,.11) !important;
    background: #f8fbfd !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-time input,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-time .flatpickr-am-pm,
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #315a70 !important;
}
html[data-theme="light"] body > .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #315a70;
    background: #fff;
}

/* CRM UI/UX wave 9: SEO cron, SEO log, shared dropdown/list actions and mobile header/listing polish. */
.cd-seo-admin-list-page .cd-seo-cron-status-card,
.cd-seo-admin-form-page .cd-seo-cron-status-card,
.theme-design-seo-demo .cd-seo-cron-status-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(103, 190, 221, .18) !important;
    border-radius: 16px !important;
    color: #dff2f8;
    background:
        radial-gradient(circle at 8% 18%, rgba(255,255,255,.17) 0 1px, transparent 1.7px),
        radial-gradient(circle at 17% 72%, rgba(90,199,225,.18) 0 1px, transparent 1.8px),
        radial-gradient(circle at 73% 19%, rgba(186,161,239,.18) 0 1px, transparent 1.8px),
        radial-gradient(circle at 91% 68%, rgba(74,188,201,.16) 0 1px, transparent 1.8px),
        radial-gradient(ellipse at 86% 18%, rgba(118,86,197,.17), transparent 31%),
        linear-gradient(118deg, rgba(8,31,48,.98), rgba(7,25,40,.96) 54%, rgba(13,34,55,.97)) !important;
    box-shadow: 0 18px 42px rgba(0,8,20,.2), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.cd-seo-admin-list-page .cd-seo-cron-status-card::before,
.cd-seo-admin-form-page .cd-seo-cron-status-card::before,
.theme-design-seo-demo .cd-seo-cron-status-card::before {
    position: absolute;
    z-index: -1;
    top: -86px;
    right: -62px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(123,103,211,.18);
    border-radius: 50%;
    box-shadow: inset 0 0 0 22px rgba(81,159,205,.025), inset 0 0 0 48px rgba(122,84,196,.025);
    content: "";
    pointer-events: none;
}

.cd-seo-cron-status-table,
.cd-seo-cron-status-table > tbody,
.cd-seo-cron-status-table > tbody > tr,
.cd-seo-cron-status-table > tbody > tr > td {
    color: inherit !important;
    background: transparent !important;
}

.cd-seo-cron-status-table > tbody > tr > td {
    padding: 14px 16px !important;
    border: 0 !important;
    vertical-align: middle !important;
}

.cd-seo-cron-status-table .cd-seo-cron-indicator-cell {
    width: 76px;
    min-width: 76px;
    padding-right: 4px !important;
}

.cd-seo-cron-status-table .cd-seo-cron-copy-cell {
    min-width: 230px;
}

.cd-seo-cron-primary-copy {
    color: #eefaff;
    font-size: 14px;
    line-height: 1.35;
}

.cd-seo-cron-status-table .text-muted {
    color: #86aabd !important;
}

.main-report-cron-active-indicator {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    margin: 0 auto;
    border: 1px solid rgba(103,202,224,.25);
    border-radius: 50%;
    color: #87e4f0;
    background: radial-gradient(circle at 38% 34%, rgba(117,220,234,.18), rgba(70,122,183,.08) 48%, rgba(13,32,49,.72) 72%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 6px rgba(74,158,195,.055), 0 0 26px rgba(66,168,210,.16);
}

.main-report-cron-active-indicator::after {
    position: absolute;
    inset: -6px;
    border: 1px dashed rgba(162,136,228,.28);
    border-radius: 50%;
    content: "";
    animation: cd-seo-cron-orbit 12s linear infinite;
}

.main-report-cron-active-indicator > i {
    margin: 0 !important;
    color: #78dce9 !important;
    font-size: 17px;
}

@keyframes cd-seo-cron-orbit {
    to { transform: rotate(360deg); }
}

.cd-seo-cron-progress-cell {
    width: clamp(250px, 26vw, 390px);
    min-width: 250px;
}

.cd-seo-cron-progress-title {
    border: 0 !important;
    color: #bcdbe8 !important;
    background: transparent !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .065em;
    text-transform: uppercase;
}

#main-report-cron-search-progress-container {
    width: 100%;
}

.main-report-cron-progress {
    position: relative;
    width: 100%;
    height: 18px;
    overflow: hidden;
    border: 1px solid rgba(102,177,211,.16);
    border-radius: 999px;
    background: rgba(3,18,30,.72);
    box-shadow: inset 0 2px 7px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.018);
}

.main-report-cron-progress .progress-bar,
#main-report-cron-search-progress-bar {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #5e55bd 0%, #3d9fd3 52%, #43c2c0 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 18px rgba(62,169,211,.28);
    transition: width .35s ease;
}

#main-report-cron-search-progress-bar.main-report-cron-search-progress-paused {
    background: linear-gradient(90deg, #6f6aa0, #6986a0) !important;
}

#main-report-cron-search-progress-label,
.cd-seo-cron-progress-label {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: auto;
    height: auto;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 10px !important;
    font-weight: 850;
    line-height: 1 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
    pointer-events: none;
}

.cd-seo-cron-actions-cell {
    width: 1%;
    white-space: nowrap;
}

.cd-seo-cron-actions {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 7px !important;
    margin: 0 !important;
}

.cd-seo-cron-actions > .btn {
    min-height: 36px;
    margin: 0 !important;
    padding: 7px 11px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.cd-seo-cron-error-row > td {
    border-top: 1px solid rgba(216,103,126,.13) !important;
    background: rgba(123,41,61,.055) !important;
}

html[data-theme="light"] .cd-seo-admin-list-page .cd-seo-cron-status-card,
html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-cron-status-card,
html[data-theme="light"] .theme-design-seo-demo .cd-seo-cron-status-card {
    border-color: rgba(64,132,170,.14) !important;
    color: #315a70;
    background:
        radial-gradient(circle at 8% 18%, rgba(53,132,178,.14) 0 1px, transparent 1.7px),
        radial-gradient(circle at 73% 19%, rgba(118,86,197,.12) 0 1px, transparent 1.8px),
        radial-gradient(ellipse at 88% 16%, rgba(118,86,197,.08), transparent 31%),
        linear-gradient(118deg, #fff, #f5fafc 56%, #eef7fa) !important;
    box-shadow: 0 17px 36px rgba(45,83,108,.1), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-seo-cron-primary-copy { color: #17384e; }
html[data-theme="light"] .cd-seo-cron-status-table .text-muted { color: #708c9d !important; }
html[data-theme="light"] .main-report-cron-active-indicator {
    border-color: rgba(54,145,183,.2);
    color: #2a91b9;
    background: radial-gradient(circle at 38% 34%, rgba(75,180,206,.17), rgba(233,247,251,.92) 62%);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 6px rgba(60,146,185,.055), 0 0 24px rgba(60,146,185,.1);
}
html[data-theme="light"] .main-report-cron-active-indicator > i { color: #2f9fc0 !important; }
html[data-theme="light"] .cd-seo-cron-progress-title { color: #567789 !important; }
html[data-theme="light"] .main-report-cron-progress {
    border-color: rgba(60,130,167,.14);
    background: #e7f1f5;
    box-shadow: inset 0 2px 6px rgba(45,83,108,.08);
}

/* SEO competitor insights: use report surfaces rather than raw Bootstrap alerts. */
.cd-seo-admin-form-page .cd-seo-competitor-insight-row {
    align-items: stretch;
}

.cd-seo-admin-form-page .cd-seo-competitor-insight {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 15px 16px 15px 18px !important;
    overflow: hidden;
    border: 1px solid rgba(101,171,204,.14) !important;
    border-radius: 13px !important;
    color: #cfe5ee !important;
    background: linear-gradient(135deg, rgba(11,35,53,.88), rgba(7,26,41,.76)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-insight::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #5d9ec4;
    content: "";
}

.cd-seo-admin-form-page .cd-seo-competitor-insight.is-danger::before { background: #d56379; }
.cd-seo-admin-form-page .cd-seo-competitor-insight.is-success::before { background: #42b58d; }
.cd-seo-admin-form-page .cd-seo-competitor-insight.is-warning::before { background: #7b6bd2; }
.cd-seo-admin-form-page .cd-seo-competitor-insight strong {
    color: #f4fbff !important;
    font-weight: 800;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-competitor-insight {
    border-color: rgba(68,126,163,.12) !important;
    color: #476a7e !important;
    background: linear-gradient(135deg, #fff, #f4f9fb) !important;
    box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(45,83,108,.06) !important;
}
html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-competitor-insight strong { color: #17384e !important; }

/* Search-result state tabs never inherit Bootstrap warning-yellow active surfaces. */
.cd-seo-admin-form-page #pages .cd-seo-result-state-tab {
    border: 1px solid rgba(101,174,207,.14) !important;
    border-radius: 10px 10px 0 0 !important;
    color: #a8c9d8 !important;
    background: rgba(10,32,48,.58) !important;
}
.cd-seo-admin-form-page #pages .cd-seo-result-state-tab.is-error { color: #e6a2af !important; }
.cd-seo-admin-form-page #pages .cd-seo-result-state-tab.is-pending { color: #bcb2ec !important; }
.cd-seo-admin-form-page #pages .cd-seo-result-state-tab:hover,
.cd-seo-admin-form-page #pages .cd-seo-result-state-tab:focus {
    color: #f2fbff !important;
    background: rgba(54,126,161,.14) !important;
}
.cd-seo-admin-form-page #pages .cd-seo-result-state-tab.active {
    border-color: rgba(115,195,216,.24) !important;
    color: #fff !important;
    background: linear-gradient(120deg, rgba(103,78,184,.94), rgba(47,126,169,.93) 64%, rgba(42,141,148,.9)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14) !important;
}
html[data-theme="light"] .cd-seo-admin-form-page #pages .cd-seo-result-state-tab {
    border-color: rgba(68,126,163,.12) !important;
    color: #55788d !important;
    background: #eef6fa !important;
}
html[data-theme="light"] .cd-seo-admin-form-page #pages .cd-seo-result-state-tab.active { color: #fff !important; }

/* SEO log banner stays anchored to the far right on desktop. */
@media (min-width: 992px) {
    .cd-seo-log-page .cd-seo-log-banner-actions {
        right: clamp(18px, 2.4vw, 32px) !important;
        left: auto !important;
        width: max-content !important;
        max-width: calc(100% - 360px);
        margin-left: auto !important;
        justify-content: flex-end !important;
    }
}

.cd-seo-log-page .cd-seo-log-search-control {
    display: flex !important;
    align-items: stretch;
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(102,177,211,.17);
    border-radius: 11px;
    background: rgba(5,23,36,.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.cd-seo-log-page .cd-seo-log-search-control > .input-group {
    flex: 1 1 auto;
    min-width: 0;
}
.cd-seo-log-page .cd-seo-log-search-control #input-filter-keyword {
    height: 40px !important;
    min-height: 40px !important;
    padding: 8px 11px !important;
    border: 0 !important;
    border-radius: 10px 0 0 10px !important;
    box-shadow: none !important;
}
.cd-seo-log-page .cd-seo-log-search-control > .cd-icon-button {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(102,177,211,.13) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.cd-seo-log-page .cd-seo-log-search-submit {
    color: #fff !important;
    background: linear-gradient(135deg, #6854bd, #3a95cf) !important;
}
.cd-seo-log-page .cd-seo-log-search-reset {
    border-radius: 0 10px 10px 0 !important;
    color: #aed0df !important;
    background: rgba(255,255,255,.045) !important;
}
.cd-seo-log-page .cd-seo-log-search-reset:hover,
.cd-seo-log-page .cd-seo-log-search-reset:focus {
    color: #eaf8fd !important;
    background: rgba(67,148,184,.14) !important;
}
html[data-theme="light"] .cd-seo-log-page .cd-seo-log-search-control {
    border-color: rgba(68,126,163,.14);
    background: #fff;
    box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="light"] .cd-seo-log-page .cd-seo-log-search-control > .cd-icon-button {
    border-left-color: rgba(68,126,163,.11) !important;
}
html[data-theme="light"] .cd-seo-log-page .cd-seo-log-search-reset {
    color: #52758a !important;
    background: #eef6fa !important;
}

/* Bootstrap's default light hover is unreadable on dark dropdown surfaces. */
html[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
html[data-theme="dark"] .dropdown-menu .dropdown-item:focus,
html[data-theme="dark"] .cd-theme-scope .dropdown-item:hover,
html[data-theme="dark"] .cd-theme-scope .dropdown-item:focus,
html[data-theme="dark"] .cd-modal .dropdown-item:hover,
html[data-theme="dark"] .cd-modal .dropdown-item:focus {
    color: #ecf8fd !important;
    text-decoration: none;
    background: linear-gradient(90deg, rgba(73,151,187,.16), rgba(111,82,188,.11)) !important;
}
html[data-theme="dark"] .dropdown-menu .dropdown-item.text-danger:hover,
html[data-theme="dark"] .dropdown-menu .dropdown-item.text-danger:focus { color: #ff9aaa !important; }
html[data-theme="dark"] .dropdown-menu .dropdown-item.text-success:hover,
html[data-theme="dark"] .dropdown-menu .dropdown-item.text-success:focus { color: #72d8b3 !important; }
html[data-theme="dark"] .dropdown-menu .dropdown-item.text-info:hover,
html[data-theme="dark"] .dropdown-menu .dropdown-item.text-info:focus { color: #78d8ed !important; }

/* Administrative list action cells always finish on the right when the last column actually contains actions. */
.cd-listing-table-admin:has(tbody td:last-child > .cd-icon-button) thead th:last-child,
.cd-listing-table-admin:has(tbody td:last-child > .cd-listing-row-actions) thead th:last-child,
.cd-listing-table-admin:has(tbody td:last-child > .cd-listing-action-group) thead th:last-child,
.cd-listing-table-admin:has(tbody td:last-child > .btn) thead th:last-child,
.cd-listing-table-admin tbody td:last-child:has(> .cd-icon-button),
.cd-listing-table-admin tbody td:last-child:has(> .cd-listing-row-actions),
.cd-listing-table-admin tbody td:last-child:has(> .cd-listing-action-group),
.cd-listing-table-admin tbody td:last-child:has(> .btn) {
    text-align: right !important;
}
.cd-listing-table-admin tbody td:last-child > .cd-icon-button,
.cd-listing-table-admin tbody td:last-child > .cd-listing-row-actions,
.cd-listing-table-admin tbody td:last-child > .cd-listing-action-group,
.cd-listing-table-admin tbody td:last-child > .btn {
    margin-left: auto !important;
}
.cd-listing-table-admin tbody td:last-child > .cd-icon-button {
    display: inline-grid;
}

/* Mobile profile is an icon-only square; equal padding keeps the avatar optically centred. */
@media (max-width: 767.98px) {
    #header.cd-topbar .header-profile-item {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        min-height: 44px !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 4px !important;
    }
    #header.cd-topbar .header-profile-item > span { display: none !important; }

}

@media (max-width: 991.98px) {
    .cd-seo-cron-status-table > tbody > tr:first-child {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: center;
    }
    .cd-seo-cron-status-table .cd-seo-cron-indicator-cell {
        width: 58px;
        min-width: 58px;
        grid-column: 1;
        grid-row: 1;
        padding: 14px 0 14px 12px !important;
    }
    .cd-seo-cron-status-table .cd-seo-cron-copy-cell {
        min-width: 0;
        grid-column: 2;
        grid-row: 1;
        padding-left: 10px !important;
    }
    .cd-seo-cron-status-table .cd-seo-cron-progress-cell,
    .cd-seo-cron-status-table .cd-seo-cron-actions-cell {
        width: auto;
        min-width: 0;
        grid-column: 1 / -1;
    }
    .cd-seo-cron-status-table .cd-seo-cron-progress-cell { padding-top: 4px !important; }
    .cd-seo-cron-status-table .cd-seo-cron-actions-cell { padding-top: 4px !important; }
    .cd-seo-cron-actions { width: 100%; flex-wrap: wrap; }
}

.cd-seo-cron-status-card #main-report-cron-paused-label {
    border: 1px solid rgba(164,139,229,.25) !important;
    color: #d7cafa !important;
    background: rgba(113,83,190,.2) !important;
}
.cd-seo-cron-status-card #button-pause-cron-searches,
.cd-seo-cron-status-card #button-search-specific-error-keywords {
    border-color: rgba(151,126,220,.25) !important;
    color: #ddd2fb !important;
    background: rgba(105,82,177,.17) !important;
}
.cd-seo-cron-status-card #button-resume-cron-searches,
.cd-seo-cron-status-card #button-search-error-keywords {
    border-color: rgba(71,191,164,.24) !important;
    color: #bff1df !important;
    background: rgba(43,151,121,.16) !important;
}
.cd-seo-cron-status-card #button-stop-cron-searches,
.cd-seo-cron-status-card #button-stop-all-cron-searches,
.cd-seo-cron-status-card #button-remove-specific-error-keywords {
    border-color: rgba(218,93,119,.25) !important;
    color: #ffc6d0 !important;
    background: rgba(175,62,84,.16) !important;
}
html[data-theme="light"] .cd-seo-cron-status-card #main-report-cron-paused-label,
html[data-theme="light"] .cd-seo-cron-status-card #button-pause-cron-searches,
html[data-theme="light"] .cd-seo-cron-status-card #button-search-specific-error-keywords {
    color: #62529c !important;
    background: #f0ecfb !important;
}
html[data-theme="light"] .cd-seo-cron-status-card #button-resume-cron-searches,
html[data-theme="light"] .cd-seo-cron-status-card #button-search-error-keywords {
    color: #23765d !important;
    background: #e7f6f0 !important;
}
html[data-theme="light"] .cd-seo-cron-status-card #button-stop-cron-searches,
html[data-theme="light"] .cd-seo-cron-status-card #button-stop-all-cron-searches,
html[data-theme="light"] .cd-seo-cron-status-card #button-remove-specific-error-keywords {
    color: #9a3c52 !important;
    background: #fbecef !important;
}

/* CRM UI/UX wave 10: SEO dark-mode cleanup, task actions and heatmap segmented pickers. */
.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
    border-color: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(105, 174, 207, .09) !important;
}

html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
    border-color: rgba(68, 126, 163, .12) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page #form-seo-report .tab-content .form-group.row {
    align-items: center;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.cd-seo-admin-form-page #form-seo-report .tab-content .form-group.row + .form-group.row {
    border-top: 1px solid rgba(105, 174, 207, .11) !important;
}

.cd-seo-admin-form-page #form-seo-report .tab-content .form-group.row::after {
    display: none !important;
}

.cd-seo-admin-form-page #form-seo-report .col-form-label {
    color: #9fb9c9 !important;
    font-size: 14px !important;
    font-weight: 760 !important;
    letter-spacing: .02em !important;
}

.cd-seo-admin-form-page #form-seo-report .form-group.row.required > .col-form-label::before {
    color: #dba0bd !important;
}

.cd-seo-admin-form-page #form-seo-report legend {
    margin-top: 18px !important;
    margin-bottom: 10px !important;
    color: #e7f5fb !important;
}

.cd-seo-admin-form-page #form-seo-report .tab-pane > legend:first-child {
    margin-top: 6px !important;
}

.cd-seo-admin-form-page #seo-keywords-widget > .col-form-label {
    padding-right: 14px !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #form-seo-report .tab-content .form-group.row + .form-group.row {
    border-top-color: rgba(68, 126, 163, .11) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #form-seo-report .col-form-label {
    color: #557489 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #form-seo-report legend {
    color: #17384e !important;
}

.cd-admin-report-form-page .main-report-check-progress-keyword-header .main-report-check-progress-page.badge-light {
    border-color: rgba(105, 174, 207, .18) !important;
    color: #c7e1ec !important;
    background: rgba(58, 117, 151, .15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="light"] .cd-admin-report-form-page .main-report-check-progress-keyword-header .main-report-check-progress-page.badge-light {
    border-color: rgba(68, 126, 163, .14) !important;
    color: #476f86 !important;
    background: #edf5f8 !important;
    box-shadow: none !important;
}

.cd-project-report-workspace .task-report-maintenance-toggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    line-height: 1 !important;
}

/* Heatmap segmented controls are canonical in public/stylesheet/heatmap_controls.css. */

/* CRM UI/UX wave 11: Heatmap, dashboard progress, task breakdown and final header layering. */
.cd-heatmap-admin-page #button-report-request-heatmap-screenshot,
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    border-radius: 9px !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}
.cd-heatmap-admin-page #button-report-request-heatmap-screenshot {
    padding: 0 14px !important;
    border: 1px solid rgba(95, 194, 222, .28) !important;
    color: #f4fbff !important;
    background: linear-gradient(135deg, #6552b8, #3d8fc5 62%, #2aa6ad) !important;
    box-shadow: 0 10px 24px rgba(24, 72, 119, .18), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
.cd-heatmap-admin-page #button-report-request-heatmap-screenshot:hover,
.cd-heatmap-admin-page #button-report-request-heatmap-screenshot:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #725ed0, #429bd2 62%, #31b8bc) !important;
}
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button {
    width: calc(100% - 12px) !important;
    margin: 5px 6px !important;
    padding: 9px 12px !important;
    justify-content: flex-start !important;
    border: 1px solid rgba(104, 181, 211, .14) !important;
    color: #d9edf6 !important;
    background: linear-gradient(135deg, rgba(90, 76, 174, .13), rgba(32, 101, 138, .11)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button:hover,
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button:focus {
    color: #f5fbff !important;
    border-color: rgba(114, 94, 207, .27) !important;
    background: linear-gradient(135deg, rgba(103, 82, 192, .24), rgba(47, 130, 171, .18)) !important;
}
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button i,
.cd-heatmap-admin-page #button-report-request-heatmap-screenshot i {
    color: inherit !important;
    margin: 0 !important;
}
html[data-theme="light"] .cd-heatmap-admin-page #button-report-request-heatmap-screenshot {
    color: #fff !important;
    border-color: rgba(83, 100, 183, .24) !important;
    background: linear-gradient(135deg, #6d56bd, #438fc8 62%, #2a9ea8) !important;
}
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-list-request-screenshot-button {
    color: #315c73 !important;
    border-color: rgba(68, 126, 163, .13) !important;
    background: linear-gradient(135deg, #f6fbfd, #eaf4f8) !important;
    box-shadow: inset 0 1px 0 #fff !important;
}
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-list-request-screenshot-button:hover,
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-list-request-screenshot-button:focus {
    color: #244e68 !important;
    border-color: rgba(105, 82, 191, .22) !important;
    background: linear-gradient(135deg, #f0edf9, #e8f4f8) !important;
}

.cd-heatmap-admin-page .cd-heatmap-generate-report-button {
    min-height: 40px !important;
    gap: 8px !important;
    padding: 0 15px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
}
.cd-heatmap-admin-page .cd-heatmap-generate-report-button i { margin: 0 !important; }
.cd-admin-report-form-page .btn:not(.dropdown-item):not(.close):not(.cd-icon-button):not(.cd-button) {
    border-radius: 9px !important;
}

.cd-heatmap-admin-page #heatmap-report-history {
    overflow: hidden !important;
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table thead th {
    height: 42px;
    padding: 6px 12px !important;
    vertical-align: middle !important;
    font-size: 12px !important;
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table tbody td {
    height: 48px;
    padding: 8px 12px !important;
    vertical-align: middle !important;
}
.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group {
    gap: 7px !important;
    white-space: nowrap;
}
.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group .cd-icon-button,
.cd-heatmap-admin-page #heatmap-report-history > .cd-heatmap-history-table-wrap .cd-icon-button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-pagination {
    margin: 0 !important;
    padding: 13px 14px !important;
    border-top: 1px solid rgba(106,174,207,.11) !important;
    background: linear-gradient(180deg, rgba(11,34,51,.78), rgba(6,24,38,.88));
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-pagination > .row {
    align-items: center;
    margin: 0 !important;
}
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-pagination > .row > [class*="col-"] {
    padding: 0 !important;
}
html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-pagination {
    border-top-color: rgba(68,126,163,.1) !important;
    background: linear-gradient(180deg, #f8fbfd, #f2f8fa);
}

/* Header/dropdowns must always sit above floating list headers. */
.cd-topbar { z-index: 1200 !important; }
.cd-topbar .dropdown-menu,
.cd-topbar .cd-theme-menu,
.cd-topbar .cd-theme-switcher,
#supreme-user-switch-wrapper > .dropdown-menu {
    z-index: 1220 !important;
}
.cd-listing-sticky-header-wrapper,
.cd-listing-sticky-table,
#client-list-card-header-fixed-wrapper,
#heatmap-list-card-header-fixed-wrapper,
#audit-list-card-header-fixed-wrapper,
#client-report-list-card-header-fixed-wrapper,
#seo-report-list-card-header-fixed-wrapper,
#project-list-card-header-fixed-wrapper {
    z-index: 900 !important;
}

/* Audit report card headings keep a stable visual rhythm. */
.cd-audit-admin-report .audit-report-card-header {
    min-height: 82px !important;
    display: flex !important;
    align-items: center !important;
}
.cd-audit-admin-report .audit-report-card-header .audit-report-card-title,
.cd-audit-admin-report .audit-report-card-header .audit-report-card-heading-copy {
    min-width: 0;
}

/* Client report list: rebalance module/action columns and prevent action overflow. */
.cd-client-report-list-shell .cd-client-report-list-table {
    min-width: 1160px !important;
}
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(3) {
    width: 20% !important;
    min-width: 190px !important;
}
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(4),
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(5),
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(6),
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(7) {
    width: 12% !important;
    min-width: 118px !important;
}
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(8) {
    width: 118px !important;
    min-width: 118px !important;
}
.cd-client-report-list-shell .cd-client-report-list-table thead th:nth-child(9) {
    width: 128px !important;
    min-width: 128px !important;
}
.cd-client-report-list-shell .cd-client-report-list-table tbody td:last-child {
    min-width: 128px !important;
    padding-right: 12px !important;
    white-space: nowrap !important;
}
.cd-client-report-list-shell .cd-client-report-list-table tbody td:last-child .cd-listing-row-actions {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    gap: 7px !important;
    padding-right: 0 !important;
}

/* Sticky SEO table badges live outside .cd-theme-scope; mirror the normal header badge contract. */
.cd-seo-admin-main-table.cd-listing-sticky-table .js-selected-keywords-total-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 28px !important;
    max-width: 100% !important;
    min-height: 21px !important;
    align-self: center;
    margin-top: 7px !important;
    padding: 3px 7px !important;
    border: 1px solid rgba(116, 174, 205, .18) !important;
    border-radius: 999px !important;
    color: #c9dce7 !important;
    background: linear-gradient(110deg, rgba(111, 143, 166, .14), rgba(73, 112, 139, .10)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 5px 12px rgba(0,8,20,.07) !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
    font-weight: 760 !important;
    letter-spacing: .035em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
}
.cd-seo-admin-main-table.cd-listing-sticky-table .badge-info {
    color: #d6f5ff !important;
    border-color: rgba(75,190,225,.3) !important;
    background: linear-gradient(110deg, rgba(47,156,192,.2), rgba(61,123,183,.14)) !important;
}
.cd-seo-admin-main-table.cd-listing-sticky-table .badge-danger {
    color: #ffe0e7 !important;
    border-color: rgba(235,87,116,.32) !important;
    background: linear-gradient(110deg, rgba(203,58,87,.21), rgba(156,52,86,.16)) !important;
}
.cd-seo-admin-main-table.cd-listing-sticky-table .badge-warning {
    color: #ffe8ba !important;
    border-color: rgba(232,173,64,.32) !important;
    background: linear-gradient(110deg, rgba(211,143,34,.2), rgba(158,112,43,.14)) !important;
}
html[data-theme="light"] .cd-seo-admin-main-table.cd-listing-sticky-table .js-selected-keywords-total-badge {
    color: #4b6b80 !important;
    border-color: rgba(68,113,143,.15) !important;
    background: linear-gradient(110deg, #eef6f9, #e6f1f5) !important;
    box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(50,87,111,.07) !important;
}
html[data-theme="light"] .cd-seo-admin-main-table.cd-listing-sticky-table .badge-info {
    color: #286d88 !important; border-color: rgba(58,153,187,.2) !important; background: #eaf7fb !important;
}
html[data-theme="light"] .cd-seo-admin-main-table.cd-listing-sticky-table .badge-danger {
    color: #9b3349 !important; border-color: rgba(212,73,101,.2) !important; background: #fff0f3 !important;
}
html[data-theme="light"] .cd-seo-admin-main-table.cd-listing-sticky-table .badge-warning {
    color: #8b601d !important; border-color: rgba(199,137,41,.22) !important; background: #fff7e7 !important;
}

/* SEO cron completion popup uses the standard modal language. */
.cd-seo-cron-finished-modal .modal-dialog { max-width: 520px; }
.cd-seo-cron-finished-modal .modal-body { padding: 20px !important; }
.cd-seo-cron-finished-modal .modal-body .d-flex { gap: 10px; }
.cd-seo-cron-finished-modal .modal-body .fa-check-circle { margin: 0 !important; font-size: 22px; }
.cd-seo-cron-finished-modal .modal-footer { gap: 9px; justify-content: flex-end !important; }

/* Task live-update toast: below the topbar, not underneath it. */
.cd-task-admin-page .cd-task-live-update-toast {
    top: calc(var(--cd-topbar-height, 78px) + 14px) !important;
    right: 18px !important;
    z-index: 1190 !important;
    width: min(360px, calc(100vw - 28px)) !important;
    overflow: hidden;
    border-color: rgba(103,183,213,.2) !important;
    color: #dceff7 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(116,83,202,.18), transparent 13rem),
        linear-gradient(145deg, rgba(9,31,48,.98), rgba(5,22,36,.98)) !important;
    box-shadow: 0 18px 44px rgba(0,8,22,.34), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.cd-task-admin-page .cd-task-live-update-toast .card-body { padding: 16px !important; }
.cd-task-admin-page .cd-task-live-update-toast .fw-bold { color: #f1fbff; }
.cd-task-admin-page .cd-task-live-update-toast .text-muted { color: #8eb0c1 !important; }
.cd-task-admin-page .cd-task-live-update-toast #taskLiveUpdateRefreshBtn {
    min-height: 38px;
    gap: 8px !important;
    border-radius: 9px !important;
}
.cd-task-admin-page .cd-task-live-update-toast #taskLiveUpdateRefreshBtn i { margin: 0 !important; }
html[data-theme="light"] .cd-task-admin-page .cd-task-live-update-toast {
    color: #294b63 !important;
    border-color: rgba(68,126,163,.14) !important;
    background: radial-gradient(circle at 100% 0%, rgba(116,83,202,.09), transparent 13rem), linear-gradient(145deg, #fff, #edf7fb) !important;
    box-shadow: 0 18px 38px rgba(44,78,103,.16), inset 0 1px 0 #fff !important;
}
html[data-theme="light"] .cd-task-admin-page .cd-task-live-update-toast .fw-bold { color: #17384e; }
html[data-theme="light"] .cd-task-admin-page .cd-task-live-update-toast .text-muted { color: #668397 !important; }
@media (max-width: 767.98px) {
    .cd-task-admin-page .cd-task-live-update-toast {
        top: calc(var(--cd-topbar-height, 66px) + 10px) !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
    }
}

/* Admin client-report monthly mission. */
.cd-dashboard-report-progress-module {
    position: relative;
    min-height: 220px;
    display: grid;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    padding: clamp(20px, 3vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(104,180,211,.16);
    border-radius: 20px;
    color: #dceef6;
    background:
        radial-gradient(circle at 83% 18%, rgba(126,86,207,.2), transparent 18rem),
        radial-gradient(circle at 12% 115%, rgba(42,181,191,.14), transparent 20rem),
        linear-gradient(135deg, rgba(8,30,47,.98), rgba(7,24,40,.98));
    box-shadow: 0 20px 46px rgba(0,8,22,.22), inset 0 1px 0 rgba(255,255,255,.04);
}
.cd-dashboard-report-progress-copy { position: relative; z-index: 2; max-width: 820px; }
.cd-dashboard-report-progress-kicker {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #80dce8; font-size: 11px; font-weight: 850; letter-spacing: .08em;
}
.cd-dashboard-report-progress-percent { color: #f4fbff; font-size: clamp(42px, 6vw, 66px); line-height: .95; }
.cd-dashboard-report-progress-score { margin-bottom: 5px; color: #96b7c7; font-weight: 700; }
.cd-dashboard-report-progress-module h2 { margin: 8px 0 6px; color: #eefaff; font-size: clamp(19px, 2vw, 25px); }
.cd-dashboard-report-progress-module p { max-width: 720px; margin: 0 0 16px; color: #94b3c2; }
.cd-dashboard-report-progress-track {
    position: relative; width: min(680px, 100%); height: 12px; overflow: hidden; border: 1px solid rgba(110,188,218,.12); border-radius: 999px; background: rgba(2,14,25,.62); box-shadow: inset 0 2px 6px rgba(0,0,0,.18);
}
.cd-dashboard-report-progress-track > span {
    position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #6553bd, #3f9acb 56%, #2dbfba); box-shadow: 0 0 22px rgba(65,190,210,.28);
}
.cd-dashboard-report-progress-stats { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 14px; }
.cd-dashboard-report-progress-stats > span { display: inline-flex; align-items: center; gap: 7px; color: #8faebe; font-size: 12px; }
.cd-dashboard-report-progress-stats > span strong { color: #eaf8fd; font-size: 14px; }
.cd-dashboard-report-progress-stats > span:nth-child(1) i { color: #49c7a3; }
.cd-dashboard-report-progress-stats > span:nth-child(2) i { color: #69cde1; }
.cd-dashboard-report-progress-stats > span:nth-child(3) i { color: #927fe0; }
.cd-dashboard-report-progress-action { position: relative; z-index: 3; min-height: 44px; white-space: nowrap; border-radius: 10px !important; }
.cd-dashboard-report-progress-galaxy,
.cd-dashboard-report-progress-orbit { position: absolute; pointer-events: none; }
.cd-dashboard-report-progress-galaxy { inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.42) 0 1px, transparent 1.4px); background-size: 72px 72px; opacity: .12; }
.cd-dashboard-report-progress-orbit { right: 80px; top: 50%; width: 210px; height: 210px; border: 1px solid rgba(126,102,211,.18); border-radius: 50%; transform: translateY(-50%); box-shadow: inset 0 0 0 28px rgba(62,149,190,.025), inset 0 0 0 60px rgba(112,81,196,.025); }
.cd-dashboard-report-progress-orbit span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #71d4e1; box-shadow: 0 0 15px currentColor; }
.cd-dashboard-report-progress-orbit span:nth-child(1) { top: 24px; left: 50px; }
.cd-dashboard-report-progress-orbit span:nth-child(2) { right: 18px; top: 88px; color: #8d79d7; background: currentColor; }
.cd-dashboard-report-progress-orbit span:nth-child(3) { left: 62px; bottom: 15px; color: #34b9ad; background: currentColor; }
html[data-theme="light"] .cd-dashboard-report-progress-module {
    color: #31566d; border-color: rgba(68,126,163,.13); background: radial-gradient(circle at 83% 18%, rgba(126,86,207,.1), transparent 18rem), radial-gradient(circle at 12% 115%, rgba(42,181,191,.08), transparent 20rem), linear-gradient(135deg, #fff, #edf7fb); box-shadow: 0 18px 40px rgba(44,78,103,.1), inset 0 1px 0 #fff;
}
html[data-theme="light"] .cd-dashboard-report-progress-percent,
html[data-theme="light"] .cd-dashboard-report-progress-module h2,
html[data-theme="light"] .cd-dashboard-report-progress-stats > span strong { color: #17384e; }
html[data-theme="light"] .cd-dashboard-report-progress-score,
html[data-theme="light"] .cd-dashboard-report-progress-module p,
html[data-theme="light"] .cd-dashboard-report-progress-stats > span { color: #668397; }
html[data-theme="light"] .cd-dashboard-report-progress-track { border-color: rgba(68,126,163,.11); background: #dfeef4; box-shadow: inset 0 2px 6px rgba(44,78,103,.08); }
@media (max-width: 767.98px) {
    .cd-dashboard-report-progress-action { justify-self: start; }
    .cd-dashboard-report-progress-orbit { right: -65px; opacity: .55; }
}

/* Task dashboard: manager/admin member-project breakdown. */
.cd-dashboard-task-breakdown-panel { overflow: hidden; }
.cd-dashboard-task-breakdown-heading { align-items: flex-end !important; gap: 14px; }
.cd-dashboard-task-breakdown-heading small { display: block; margin-top: 3px; color: #7899aa; }
.cd-dashboard-task-breakdown-tabs { margin-left: auto; border: 0 !important; gap: 5px; }
.cd-dashboard-task-breakdown-tabs .nav-link {
    padding: 7px 11px !important; border: 1px solid rgba(107,174,207,.12) !important; border-radius: 9px !important; color: #91adbc !important; background: rgba(255,255,255,.025) !important; font-size: 12px !important; font-weight: 750;
}
.cd-dashboard-task-breakdown-tabs .nav-link.active { color: #edfaff !important; border-color: rgba(112,92,205,.32) !important; background: linear-gradient(135deg, rgba(106,79,190,.35), rgba(47,138,183,.24)) !important; }
.cd-dashboard-task-breakdown-content { padding-top: 4px; }
.cd-dashboard-member-summary-row > td { border-top: 1px solid rgba(105,174,207,.12) !important; background: rgba(90,78,174,.055); }
.cd-dashboard-member-summary-row:first-child > td { border-top: 0 !important; }
.cd-dashboard-member-dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 50%; background: #58c4d6; box-shadow: 0 0 10px currentColor; }
.cd-dashboard-member-project-row > td { padding-top: 7px !important; padding-bottom: 7px !important; color: #91adbc; }
.cd-dashboard-project-branch { display: inline-flex; align-items: center; gap: 8px; padding-left: 18px; }
.cd-dashboard-project-branch i { color: #526f82; font-size: 10px; }
.cd-dashboard-member-project-row.is-empty td { padding-left: 38px !important; color: #718d9d; font-size: 12px !important; }
html[data-theme="light"] .cd-dashboard-task-breakdown-heading small,
html[data-theme="light"] .cd-dashboard-member-project-row > td { color: #688396; }
html[data-theme="light"] .cd-dashboard-task-breakdown-tabs .nav-link { color: #55758a !important; border-color: rgba(68,126,163,.12) !important; background: #f4f9fb !important; }
html[data-theme="light"] .cd-dashboard-task-breakdown-tabs .nav-link.active { color: #fff !important; background: linear-gradient(135deg, #7058bd, #438fc5) !important; }
html[data-theme="light"] .cd-dashboard-member-summary-row > td { border-top-color: rgba(68,126,163,.1) !important; background: rgba(104,82,187,.045); }
@media (max-width: 767.98px) {
    .cd-dashboard-task-breakdown-heading { align-items: stretch !important; flex-direction: column; }
    .cd-dashboard-task-breakdown-tabs { width: 100%; margin-left: 0; }
    .cd-dashboard-task-breakdown-tabs .nav-item { flex: 1 1 0; }
    .cd-dashboard-task-breakdown-tabs .nav-link { text-align: center; }
}
.cd-admin-report-form-page .btn:not(.dropdown-item):not(.close),
.cd-task-admin-page .btn:not(.dropdown-item):not(.close),
.cd-seo-admin-summary-card .btn:not(.dropdown-item):not(.close) {
    border-radius: 9px !important;
}


/* CRM UI/UX wave 12: SEO competitor insight cards keep sentence flow readable. */
.cd-seo-admin-form-page .cd-seo-competitor-insight-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 12px;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-insight-row > [class*="col-"] {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin-bottom: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-insight {
    min-height: 92px;
    display: flex !important;
    align-items: center;
    font-size: 14px;
    line-height: 1.55 !important;
    text-wrap: pretty;
    overflow-wrap: normal;
    word-break: normal;
}

.cd-seo-admin-form-page .cd-seo-competitor-insight-text {
    display: block;
    width: 100%;
}

.cd-seo-admin-form-page .cd-seo-competitor-insight strong {
    display: inline !important;
    margin: 0 !important;
    white-space: nowrap;
    word-break: keep-all;
}

@media (max-width: 767.98px) {
    .cd-seo-admin-form-page .cd-seo-competitor-insight-row {
        grid-template-columns: 1fr;
    }

    .cd-seo-admin-form-page .cd-seo-competitor-insight {
        min-height: 0;
    }
}


/* CRM UI/UX wave 12 follow-up: competitor flow, modal stack, task action and dashboard emblem. */
.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap,
.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table {
    border: 0 !important;
    box-shadow: none !important;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
    background: transparent !important;
}

/* Modals and their overlays must remain above the CRM topbar and sticky headers. */
body > .modal,
.cd-modal.modal,
.modal.show {
    z-index: 1500 !important;
}

body > .modal-backdrop,
.modal-backdrop,
.cd-seo-results-modal-backdrop {
    z-index: 1490 !important;
}

/* The task member-order control uses the same neutral icon-button surface in light mode. */
html[data-theme="light"] .cd-task-admin-page #task-main-user-tabs-config-btn {
    border-color: rgba(69, 127, 166, .18) !important;
    color: #486f86 !important;
    background: linear-gradient(180deg, #fff, #eef5f8) !important;
    box-shadow: inset 0 1px 0 #fff, 0 5px 13px rgba(45, 83, 108, .07) !important;
}

html[data-theme="light"] .cd-task-admin-page #task-main-user-tabs-config-btn:hover,
html[data-theme="light"] .cd-task-admin-page #task-main-user-tabs-config-btn:focus-visible {
    border-color: rgba(41, 139, 192, .32) !important;
    color: #245f7e !important;
    background: #e8f3f7 !important;
}

/* Client Report dashboard mission: reuse the emblem visual from tool/theme_design as a real grid item. */
.cd-dashboard-report-progress-module {
    grid-template-columns: minmax(0, 1fr) 220px auto;
    column-gap: clamp(18px, 2.2vw, 34px);
}

.cd-dashboard-report-progress-emblem.cd-dashboard-visual {
    position: relative;
    z-index: 2;
    inset: auto;
    width: 220px;
    height: 180px;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    border-radius: 18px;
    opacity: .92;
}

.cd-dashboard-report-progress-emblem .cd-dashboard-grid {
    right: -28%;
    bottom: -42%;
    left: -28%;
    height: 82%;
    opacity: .58;
}

.cd-dashboard-report-progress-emblem .cd-dashboard-beam {
    top: 53%;
    left: 50%;
    width: 250px;
}

.cd-dashboard-report-progress-emblem .cd-dashboard-emblem {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.56);
}

.cd-dashboard-report-progress-emblem::after {
    position: absolute;
    inset: 12% 9%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 163, 202, .10), rgba(112, 82, 193, .045) 42%, transparent 70%);
    filter: blur(3px);
    content: "";
}

.cd-dashboard-report-progress-action {
    align-self: center;
}

html[data-theme="light"] .cd-dashboard-report-progress-emblem.cd-dashboard-visual {
    opacity: .82;
}

@media (max-width: 1100px) {
    .cd-dashboard-report-progress-module {
        grid-template-columns: minmax(0, 1fr) 170px;
    }

    .cd-dashboard-report-progress-emblem.cd-dashboard-visual {
        width: 170px;
        height: 150px;
    }

    .cd-dashboard-report-progress-emblem .cd-dashboard-emblem {
        transform: translate(-50%, -50%) scale(.47);
    }

    .cd-dashboard-report-progress-action {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .cd-dashboard-report-progress-module {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .cd-dashboard-report-progress-emblem.cd-dashboard-visual {
        width: min(100%, 260px);
        height: 140px;
        justify-self: center;
        margin: -2px 0;
    }

    .cd-dashboard-report-progress-emblem .cd-dashboard-emblem {
        transform: translate(-50%, -50%) scale(.44);
    }

    .cd-dashboard-report-progress-action {
        grid-column: auto;
        width: 100%;
        justify-content: center;
    }
}

/* CRM UI/UX wave 13 follow-up: SEO insight spacing and Audit dashboard score component. */
.cd-seo-admin-form-page .cd-seo-competitor-insight-row {
    margin-top: 12px !important;
}

.cd-audit-admin-report .audit-report-top-card .audit-report-dashboard-score-chart {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    margin: 0;
}

.cd-audit-admin-report .audit-report-top-card .audit-report-dashboard-score-chart .cd-dashboard-chart-center strong {
    color: var(--cd-text-strong, #eff9ff);
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-top-card .audit-report-dashboard-score-chart .cd-dashboard-chart-center strong {
    color: #173044;
}

@media (max-width: 575.98px) {
    .cd-audit-admin-report .audit-report-top-card .audit-report-dashboard-score-chart {
        flex-basis: 220px;
        width: 220px;
        height: 220px;
    }
}

/* CRM UI/UX wave 14: keep Bootstrap tooltips/popovers above the CRM modal stack. */
.tooltip {
    z-index: 1500 !important;
}

html.cd-theme-document body > .popover,
html.cd-theme-document .popover,
.cd-theme-scope .popover,
.cd-modal .popover {
    z-index: 1600 !important;
}

/* ==================== 15. Responsive shell hardening and mobile paint performance ==================== */
@media (max-width: 1199.98px) {
    .cd-main {
        padding-right: clamp(18px, 3vw, 36px);
        padding-left: clamp(18px, 3vw, 36px);
    }

    .cd-page-heading,
    .cd-page-banner-content,
    .cd-page-heading-copy,
    .cd-page-heading-actions,
    .cd-page-banner-actions,
    .cd-topbar-actions {
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .cd-main,
    #content.cd-theme-scope,
    .cd-theme-scope .container-fluid,
    .cd-theme-scope .row,
    .cd-theme-scope [class*="col-"] {
        min-width: 0;
        max-width: 100%;
    }

    .cd-page-heading-actions,
    .cd-report-page-actions,
    .cd-admin-report-form-page > .page-header .float-right {
        flex-wrap: wrap;
    }

    .cd-theme-scope :is(.table-responsive, .cd-listing-table-wrap, .cd-admin-listing-table-wrap, .cd-report-data-table-wrap) {
        max-width: 100%;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767.98px) {
    html.cd-theme-document,
    html.cd-theme-document body,
    body.cd-body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    html.cd-theme-document body,
    body.cd-body,
    .cd-topbar,
    #header.cd-topbar,
    .cd-sidebar,
    #column-left.cd-sidebar,
    .cd-app-shell,
    .cd-main,
    #content,
    .cd-overlay {
        transition: none !important;
    }

    html.cd-theme-document .cd-sidebar,
    body.cd-body #column-left.cd-sidebar {
        transition: none !important;
        will-change: auto;
    }

    .cd-topbar,
    #header.cd-topbar,
    .cd-sidebar,
    #column-left.cd-sidebar,
    .cd-overlay {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .cd-page-heading,
    .cd-card,
    .cd-auth-card,
    .cd-dashboard-base,
    .cd-placeholder-card {
        animation: none !important;
    }

    .cd-nav::before,
    .cd-nav::after,
    .cd-nav-item,
    .cd-nav-item > span,
    .cd-nav-item > i,
    .cd-sidebar-cosmos {
        transition: none !important;
        will-change: auto !important;
    }

    .cd-topbar {
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .cd-topbar-actions {
        min-width: 0;
        gap: 7px;
    }

    .cd-main {
        width: 100%;
        max-width: 100%;
        padding-right: 14px;
        padding-left: 14px;
    }

    .cd-page-heading,
    .cd-page-heading-copy,
    .cd-page-banner-content,
    .cd-page-heading-actions,
    .cd-page-banner-actions,
    .cd-form-section,
    .cd-card,
    .cd-theme-scope .card,
    .cd-theme-scope .card-body,
    .cd-theme-scope .form-group,
    .cd-theme-scope .input-group {
        min-width: 0;
        max-width: 100%;
    }

    .cd-page-heading-actions,
    .cd-report-page-actions,
    .cd-admin-report-form-page > .page-header .float-right {
        width: 100%;
        max-width: 100%;
        gap: 8px;
    }

    .cd-page-heading-actions > *,
    .cd-report-page-actions > *,
    .cd-admin-report-form-page > .page-header .float-right > * {
        max-width: 100%;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .dropdown .dropdown-menu,
    .cd-theme-menu {
        max-width: calc(100vw - 16px) !important;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .dropdown .dropdown-menu .dropdown-item {
        max-width: 100%;
        overflow-wrap: normal;
        white-space: normal;
        word-break: normal;
    }

    .cd-theme-scope .modal-dialog,
    html.cd-theme-document .modal-dialog {
        width: auto;
        max-width: calc(100vw - 16px);
        margin: 8px;
    }

    .cd-theme-scope .modal-content,
    .cd-theme-scope .modal-body,
    html.cd-theme-document .modal-content,
    html.cd-theme-document .modal-body {
        min-width: 0;
        max-width: 100%;
    }

    .cd-theme-scope :is(img, svg, canvas, video, iframe),
    html.cd-theme-document :is(img, svg, canvas, video, iframe) {
        max-width: 100%;
    }

    .cd-theme-scope :is(.table-responsive, .cd-listing-table-wrap, .cd-admin-listing-table-wrap, .cd-report-data-table-wrap) {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media (max-width: 575.98px) {
    .cd-main {
        padding-right: 12px;
        padding-left: 12px;
    }

    .cd-topbar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .cd-page-heading:not(.cd-page-banner),
    .cd-form-section,
    .cd-theme-scope .card-body {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* ==================== 16. Final cascade stability and narrow-screen fit ==================== */
:where(html.cd-theme-document, .cd-theme-scope) .table > :is(thead, tbody, tfoot) > tr > :is(th, td),
:where(html.cd-theme-document, .cd-theme-scope) .table :is(th, td) {
    word-break: normal;
    overflow-wrap: normal;
}

:where(html.cd-theme-document, .cd-theme-scope) :is(.audit-report-problem, .audit-report-recommendation, .task-subtask-text-view) {
    word-break: normal;
    overflow-wrap: break-word;
}

:where(html.cd-theme-document, .cd-theme-scope) :is(pre, code, .text-monospace) {
    max-width: 100%;
}

:where(html.cd-theme-document, .cd-theme-scope) pre {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

@media (max-width: 767.98px) {
    .cd-menu-toggle-glyph-mobile {
        position: absolute;
        inset: 0;
    }

    .cd-topbar :is(.cd-icon-button, .cd-account-button, .cd-brand, .cd-theme-menu),
    .cd-sidebar :is(.cd-nav-item, .cd-nav-item > span, .cd-nav-item > i, .cd-sidebar-rocket-stage),
    .cd-menu-toggle-glyph-mobile > span {
        transition: none !important;
    }

    .cd-sidebar-rocket-stage,
    .cd-rocket-flight-clone {
        transition: none !important;
        animation: none !important;
        will-change: auto !important;
    }

    ::view-transition-group(cd-client-dashboard-rocket),
    ::view-transition-image-pair(cd-client-dashboard-rocket),
    ::view-transition-old(cd-client-dashboard-rocket),
    ::view-transition-new(cd-client-dashboard-rocket) {
        animation: none !important;
    }

    :where(html.cd-theme-document, .cd-theme-scope) :is(input, select, textarea, .form-control, .custom-select) {
        max-width: 100%;
    }

    :where(html.cd-theme-document, .cd-theme-scope) :is(.btn-group, .input-group, .form-row, .form-group) {
        min-width: 0;
    }

    .cd-page-heading h1,
    .cd-page-banner h1 {
        overflow-wrap: normal;
        word-break: normal;
    }
}

@media (max-width: 575.98px) {
    .cd-page-heading:not(.cd-page-banner) {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 420px) {
    .cd-topbar {
        gap: 6px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .cd-topbar-actions {
        gap: 4px;
    }

    .cd-brand-logo-icon {
        width: 36px;
        height: 36px;
    }

    .cd-topbar :is(.cd-icon-button, .cd-account-button) {
        width: 35px;
        min-width: 35px;
        height: 35px;
        min-height: 35px;
        flex-basis: 35px;
    }

    .cd-main {
        padding-right: 10px;
        padding-left: 10px;
    }

    .cd-theme-scope .modal-dialog,
    html.cd-theme-document .modal-dialog {
        max-width: calc(100vw - 12px);
        margin: 6px;
    }
}

@media (max-width: 767.98px) {
    /* Keep ambient Galaxy decoration static off-canvas/on small GPUs; interactive feedback remains intact. */
    .cd-dashboard-emblem-ring,
    .cd-sidebar-star,
    .cd-sidebar-rocket,
    .cd-sidebar-rocket::before,
    .cd-sidebar-rocket::after,
    .cd-sidebar-rocket-trail,
    .cd-dashboard-module-orbit,
    .cd-dashboard-module-planet,
    .cd-dashboard-map-node::before {
        animation: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    :where(html.cd-theme-document, .cd-theme-scope) :is(.cd-button, .cd-icon-button, .cd-account-button, .cd-card, .cd-dashboard-panel):hover {
        transform: none;
    }
}


/* Settings: independent CRM / Client Dashboard asset-cache controls. */
.setting-setting #tab-server .cd-settings-asset-scope {
    position: relative;
    padding: 18px 18px 4px;
    overflow: visible;
    border: 1px solid var(--cd-border-soft, rgba(127, 181, 213, 0.16));
    border-radius: 16px;
    background: var(--cd-surface-soft, rgba(7, 27, 48, 0.52));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.setting-setting #tab-server .cd-settings-asset-scope-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -2px 0 16px;
    color: var(--cd-text-strong, #eff9ff);
    font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.setting-setting #tab-server .cd-settings-asset-scope-title i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(77, 169, 255, 0.18);
    border-radius: 9px;
    color: var(--cd-accent, #6fc7f6);
    background: linear-gradient(135deg, rgba(77, 169, 255, 0.12), rgba(45, 189, 187, 0.08));
}

.setting-setting #tab-server .raspuns-cache {
    margin-left: 10px;
    color: var(--cd-success, #55d6a7);
    font-size: 13px;
}

html[data-theme="light"] .setting-setting #tab-server .cd-settings-asset-scope {
    background: rgba(246, 251, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 767.98px) {
    .setting-setting #tab-server .cd-settings-asset-scope {
        padding: 15px 14px 2px;
        border-radius: 14px;
    }

    .setting-setting #tab-server .raspuns-cache {
        width: 100%;
        margin: 8px 0 0;
    }
}

/* ==================== 17. Cascade and paint performance ==================== */
/* Repeated cards already paint an opaque/near-opaque theme surface. Avoid a per-card
   backdrop blur layer; overlays and intentional glass surfaces keep their own blur. */
.cd-card,
.cd-listing-sticky-header-wrapper,
.cd-filter-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Permanent promotion of every interactive control creates unnecessary compositor
   layers. The elements still animate with transforms when interacted with. */
.cd-icon-button,
.cd-account-button,
.cd-nav-item,
.cd-nav-button,
.cd-report-tab,
.cd-theme-option,
.cd-pdf-statusbar button {
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    :where(html.cd-theme-document, .cd-theme-scope, .cd-modal) :where(*, *::before, *::after) {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}


/* Theme reference follow-up: canonical states verified in tool/theme_design. */
.cke_chrome {
    padding: 0 !important;
}

html[data-theme="dark"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_contents,
html[data-theme="dark"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_wysiwyg_div,
html[data-theme="dark"] body .cke_chrome[class~="cke_chrome"]:not(:where(.document-editor-container .cke_chrome, .cd-document-editor-modal .cke_chrome)) .cke_wysiwyg_frame {
    background-color: #e9f0f4 !important;
}

.cd-log-output {
    box-shadow: none !important;
}

html[data-theme="light"] .cd-log-output {
    box-shadow: none !important;
}

.cd-offer-status-badge.is-pending {
    border: 1px solid rgba(145, 151, 225, .24);
    color: #e9ecff;
    background: rgba(88, 91, 178, .28);
}

html[data-theme="light"] .cd-offer-status-badge.is-pending {
    border-color: rgba(91, 96, 181, .18);
    color: #474b92;
    background: #eeeffc;
}

.cd-offer-approval-logo {
    width: 70px;
    height: 70px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-logo {
    opacity: 1;
    transform: none;
    animation: cd-offer-logo-slow-spin 8s linear .55s infinite;
}

.cd-offer-approval-check {
    border-color: rgba(166, 177, 238, .64);
    background: linear-gradient(135deg, #6d63c8 0%, #526fc4 55%, #3f83b8 100%);
    box-shadow: 0 20px 54px rgba(31, 40, 105, .28), 0 0 40px rgba(94, 105, 199, .24);
}

.cd-offer-approval-check::after {
    border-color: rgba(153, 168, 234, .42);
}

@keyframes cd-offer-logo-slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-clean-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cd-form-page .theme-design-settings-accordion {
    padding: 0;
}

.cd-form-page .theme-design-settings-accordion > .accordion-item > .accordion-button {
    padding: 10px 0 !important;
}

.cd-form-page #container-mare-modul .bucata-modul > .heading-modul {
    padding-right: 16px !important;
    padding-left: 16px !important;
}

.cd-listing-page-actions {
    gap: 8px !important;
}

.main-report-check-progress-page.border {
    border-color: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-summary-card :is(.btn-primary, .btn-success, .btn-info, .btn-danger) {
    background-image: none !important;
    box-shadow: none !important;
}

.cd-seo-admin-summary-card .btn-primary {
    border-color: rgba(143, 154, 232, .44) !important;
    background: #5f63bd !important;
}

.cd-seo-admin-summary-card .btn-success {
    border-color: rgba(120, 163, 216, .42) !important;
    background: #467bad !important;
}

.cd-seo-admin-summary-card .btn-info {
    border-color: rgba(104, 181, 220, .42) !important;
    background: #3f82b4 !important;
}

.cd-seo-admin-summary-card .btn-danger {
    border-color: rgba(232, 112, 134, .38) !important;
    background: #b6425b !important;
}


/* Shared shell sizing and offer approval geometry. */
.cd-theme-switcher > summary.cd-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
}

.cd-offer-approval-core {
    gap: 22px;
}

.cd-offer-approval-core > .cd-offer-approval-logo {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cd-offer-approval-celebration.is-active .cd-offer-approval-core > .cd-offer-approval-logo {
    opacity: 1;
    transform: none;
    animation: cd-offer-logo-slow-spin 8s linear .55s infinite;
}

.cd-offer-approval-card {
    gap: 24px;
}

:where(html.cd-theme-document, .cd-theme-scope) .table > tbody > tr.table-info > :is(th, td) {
    border-color: rgba(83, 170, 207, .16) !important;
    color: #d9f2fb !important;
    background: rgba(45, 128, 165, .18) !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .table > tbody > tr.table-warning > :is(th, td) {
    border-color: rgba(199, 160, 84, .17) !important;
    color: #f4e2b9 !important;
    background: rgba(152, 105, 34, .17) !important;
}

html[data-theme="light"] :where(html.cd-theme-document, .cd-theme-scope) .table > tbody > tr.table-info > :is(th, td) {
    border-color: rgba(55, 137, 177, .14) !important;
    color: #255f7d !important;
    background: #e8f4f9 !important;
}

html[data-theme="light"] :where(html.cd-theme-document, .cd-theme-scope) .table > tbody > tr.table-warning > :is(th, td) {
    border-color: rgba(181, 130, 45, .16) !important;
    color: #755415 !important;
    background: #fff5df !important;
}


/* CRM UI/UX wave 18: SEO report edit canonical Theme Design surfaces. */
.cd-seo-admin-form-page .cd-seo-results-toolbar {
    gap: 10px !important;
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-group {
    overflow: visible;
    border-radius: var(--cd-admin-control-radius, 10px);
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-group > .btn:first-child {
    width: 42px;
    min-width: 42px;
    padding: 0 !important;
    border-radius: var(--cd-admin-control-radius, 10px) 0 0 var(--cd-admin-control-radius, 10px) !important;
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-group > #button-search-checked-keywords {
    border-radius: 0 var(--cd-admin-control-radius, 10px) var(--cd-admin-control-radius, 10px) 0 !important;
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown {
    min-width: 230px;
    margin-top: 7px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid rgba(107,174,207,.18) !important;
    border-radius: 12px !important;
    color: var(--cd-text);
    background: #0a273a !important;
    box-shadow: 0 18px 42px rgba(0,8,22,.28) !important;
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    color: #cfe6f1 !important;
    background: transparent !important;
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):hover,
.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):focus,
.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(73,151,187,.2), rgba(111,82,188,.15)) !important;
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):hover i,
.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):focus i,
.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):active i {
    color: #fff !important;
}

.cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item.disabled {
    color: #718d9d !important;
    opacity: .64;
}

html[data-theme="light"] .cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown {
    border-color: rgba(68,126,163,.14) !important;
    background: #fff !important;
    box-shadow: 0 18px 38px rgba(45,83,108,.16), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item {
    color: #355d75 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):hover,
html[data-theme="light"] .cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):focus,
html[data-theme="light"] .cd-seo-admin-form-page #main-search-results-buttons .cd-seo-results-search-dropdown .dropdown-item:not(.disabled):active {
    color: #fff !important;
    background: linear-gradient(105deg, #4c86ae, #6756b9) !important;
}

.cd-seo-admin-form-page .cd-seo-search-result-stats {
    flex: 1 1 620px;
    margin: 0 !important;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.cd-seo-admin-form-page .cd-seo-search-result-stats .cd-seo-keyword-stat {
    min-height: 94px;
}

.cd-seo-admin-form-page .cd-seo-search-result-stats .is-success .cd-task-report-stat-icon { color: #7be1b9; border-color: rgba(77,196,143,.24); background: rgba(77,196,143,.12); }
.cd-seo-admin-form-page .cd-seo-search-result-stats .is-warning .cd-task-report-stat-icon,
.cd-seo-admin-form-page .cd-seo-search-result-stats .is-pending .cd-task-report-stat-icon { color: #e7c47f; border-color: rgba(211,165,83,.24); background: rgba(211,165,83,.12); }
.cd-seo-admin-form-page .cd-seo-search-result-stats .is-danger .cd-task-report-stat-icon { color: #ff9aaa; border-color: rgba(220,76,101,.24); background: rgba(220,76,101,.12); }

.cd-seo-admin-form-page .cd-seo-competitor-insight-row {
    margin-bottom: 14px !important;
}

.cd-seo-admin-form-page [id^="seo-report-competitor-pane-"]:not(#seo-report-competitor-pane-summary) {
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-admin-layout {
    gap: 14px;
}

.cd-seo-admin-form-page .cd-seo-competitor-admin-heading {
    min-width: 0;
    margin-bottom: 14px;
}

.cd-seo-admin-form-page .cd-seo-competitor-admin-heading h3,
.cd-seo-admin-form-page .cd-seo-signal-card-heading h3 {
    min-width: 0;
    margin: 0;
}

.cd-seo-admin-form-page .cd-seo-competitor-card-info {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: inline-grid;
    flex: 0 0 30px;
    place-items: center;
    margin-left: auto;
    border: 0 !important;
    border-radius: 9px !important;
    color: #78d8ed !important;
    background: rgba(70,151,187,.08) !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-card-info:hover,
.cd-seo-admin-form-page .cd-seo-competitor-card-info:focus-visible {
    color: #fff !important;
    background: rgba(92,82,188,.26) !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-summary-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cd-seo-admin-form-page .cd-seo-competitor-summary-metrics > div {
    min-height: 96px;
}

.cd-seo-admin-form-page .cd-seo-visibility-heading-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cd-seo-admin-form-page .cd-seo-visibility-heading-actions > strong {
    font-size: 25px;
}

.cd-seo-admin-form-page .cd-seo-competitor-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cd-seo-admin-form-page .cd-seo-signal-card-heading {
    min-width: 0;
}

.cd-seo-admin-form-page .cd-seo-signal-card-heading > .cd-seo-competitor-card-info {
    margin-left: 0;
}

.cd-seo-admin-form-page .cd-seo-signal-item {
    grid-template-columns: 28px minmax(0, 1fr);
}

.cd-seo-admin-form-page .cd-seo-signal-positions {
    grid-column: 2;
    justify-self: stretch;
    justify-content: flex-end;
    margin-top: 3px;
}

.cd-seo-admin-form-page .cd-seo-signal-positions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    color: #76cae2;
    font-size: 10px;
}

.cd-seo-admin-form-page .cd-seo-signal-empty {
    padding: 14px 0;
    text-align: center;
}

.cd-seo-admin-form-page .cd-seo-competitor-winning-pages-grid {
    margin-top: 0;
}

.cd-seo-admin-form-page #has-additional-location-buttons > .btn-outline-danger.active {
    border-color: rgba(220,76,101,.28) !important;
    color: #ffd9df !important;
    background: linear-gradient(135deg, rgba(151,55,82,.46), rgba(111,51,104,.34)) !important;
}

.cd-seo-admin-form-page #has-additional-location-buttons > .btn-outline-success.active {
    border-color: rgba(60,178,119,.28) !important;
    color: #ddfff0 !important;
    background: linear-gradient(135deg, rgba(45,147,104,.42), rgba(40,126,152,.34)) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #has-additional-location-buttons > .btn-outline-danger.active {
    color: #9a304b !important;
    border-color: rgba(194,69,93,.2) !important;
    background: #fff0f3 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #has-additional-location-buttons > .btn-outline-success.active {
    color: #217455 !important;
    border-color: rgba(41,143,91,.2) !important;
    background: #ebf9f2 !important;
}

.cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs .nav-item,
.cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs .nav-link {
    width: 100% !important;
}

.cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs .nav-link {
    display: flex;
    align-items: center;
}

.cd-seo-admin-form-page #seo-keywords-widget > .col-sm-10 > .tab-content,
.cd-seo-admin-form-page #seo-keywords-widget > .col-sm-10 > .tab-content > .tab-pane,
.cd-seo-admin-form-page #keywords-textarea-wrap,
.cd-seo-admin-form-page #possible-keywords-textarea-wrap,
.cd-seo-admin-form-page #possible-keywords-textarea-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page .cd-seo-server-connected-state {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-color: rgba(60,188,128,.25) !important;
    color: #8ee2b9 !important;
    background: linear-gradient(105deg, rgba(38,125,91,.18), rgba(37,112,133,.13)) !important;
    box-shadow: inset 3px 0 0 rgba(76,203,145,.7) !important;
}

.cd-seo-admin-form-page .cd-seo-server-connected-state > i {
    color: #56d79b;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-server-connected-state {
    border-color: rgba(47,153,101,.18) !important;
    color: #287b5c !important;
    background: #edf9f3 !important;
    box-shadow: inset 3px 0 0 #48b985 !important;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table th:first-child,
.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table td:first-child {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    text-align: center !important;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-checkbox {
    position: static !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    margin: 0 auto !important;
    clip: auto !important;
    clip-path: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    accent-color: #5d82d2;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(106,174,207,.16);
    border-radius: 10px;
    color: #a9cad9;
    background: rgba(63,132,169,.09);
    font-size: 11px;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total > i {
    color: #78d8ed;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total > strong {
    color: #f2fbff;
    font-size: 13px;
}

html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total {
    border-color: rgba(68,126,163,.13);
    color: #628096;
    background: #eef6fa;
}

html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total > strong {
    color: #244d68;
}

@media (max-width: 1199.98px) {
    .cd-seo-admin-form-page .cd-seo-competitor-signal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cd-seo-admin-form-page .cd-seo-search-result-stats {
        grid-template-columns: 1fr;
    }

    .cd-seo-admin-form-page #seo-keywords-widget #seo-keywords-tabs .nav-item {
        width: auto !important;
        min-width: max-content;
    }
}

/* Audit list: keep the listing shell softly rounded without the oversized lower corners. */
.cd-listing-page #form-audit > .cd-listing-table-wrap.cd-admin-listing-table-wrap {
    border-radius: 13px 13px 8px 8px !important;
}
.cd-listing-page #form-audit > .cd-listing-table-wrap.cd-admin-listing-table-wrap .cd-listing-table-admin thead th:first-child {
    border-top-left-radius: 12px !important;
}
.cd-listing-page #form-audit > .cd-listing-table-wrap.cd-admin-listing-table-wrap .cd-listing-table-admin thead th:last-child {
    border-top-right-radius: 12px !important;
}
.cd-listing-page #form-audit > .cd-listing-table-wrap.cd-admin-listing-table-wrap .cd-listing-table-admin tbody tr:last-child > td:first-child {
    border-bottom-left-radius: 7px !important;
}
.cd-listing-page #form-audit > .cd-listing-table-wrap.cd-admin-listing-table-wrap .cd-listing-table-admin tbody tr:last-child > td:last-child {
    border-bottom-right-radius: 7px !important;
}


/* Audit report canonical form/header, score, priority and screenshot fixes. */
.cd-audit-admin-report > .audit-report-main-col {
    display: block !important;
    min-width: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 3vw, 42px);
    min-width: 0;
    padding: clamp(22px, 2.4vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(127, 191, 220, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 9% 18%, rgba(118, 86, 197, 0.18), transparent 31%),
        radial-gradient(circle at 92% 10%, rgba(46, 158, 170, 0.12), transparent 31%),
        linear-gradient(145deg, rgba(10, 36, 53, 0.96), rgba(7, 27, 42, 0.94));
    box-shadow: 0 22px 54px rgba(3, 16, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview::before,
:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview::after {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview::before {
    top: -88px;
    right: -68px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(115, 198, 219, 0.1);
    box-shadow: 0 0 0 28px rgba(82, 120, 207, 0.025), 0 0 0 58px rgba(82, 120, 207, 0.018);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview::after {
    bottom: -82px;
    left: 32%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(85, 210, 232, 0.06), transparent 69%);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score {
    position: relative;
    z-index: 1;
    width: 250px !important;
    min-width: 250px !important;
    height: 250px !important;
    min-height: 250px !important;
    justify-self: center;
    overflow: visible;
    border-radius: 50%;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score:not(:has(canvas[data-cd-dashboard-chart-ready="1"])) {
    background: conic-gradient(from -112deg, #9272ee 0%, #55d2e8 var(--cd-audit-score, 0%), rgba(115, 174, 205, 0.11) var(--cd-audit-score, 0%), rgba(115, 174, 205, 0.11) 100%);
    box-shadow: 0 20px 46px rgba(54, 67, 156, 0.2), 0 0 34px rgba(85, 210, 232, 0.08);
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score:not(:has(canvas[data-cd-dashboard-chart-ready="1"]))::before {
    position: absolute;
    inset: 44px;
    z-index: 0;
    border: 1px solid rgba(120, 183, 212, 0.13);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 22%, rgba(93, 100, 207, 0.12), transparent 54%), #071a29;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    content: "";
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score canvas {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 250px !important;
    height: 250px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score .cd-dashboard-chart-center {
    z-index: 2;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-left: 0;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-kicker {
    color: #72d8e4 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-title {
    margin-top: 8px;
    margin-bottom: 10px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-title span {
    color: #9db9c9 !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-title strong {
    color: #ffffff !important;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-content p {
    max-width: 880px;
    margin-bottom: 14px;
    color: #c9dce6 !important;
    font-size: 13px;
    line-height: 1.68;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-meta {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

:where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-meta span {
    border-color: rgba(175, 207, 222, 0.16);
    color: #d9eaf2 !important;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cd-audit-admin-report > .audit-report-main-col > .audit-report-summary {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    min-width: 0;
    margin-top: 14px;
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview,
html.cd-theme-document[data-theme="light"] .audit-report-overview {
    border-color: rgba(64, 111, 141, 0.13);
    background:
        radial-gradient(circle at 9% 18%, rgba(109, 86, 191, 0.09), transparent 31%),
        radial-gradient(circle at 92% 10%, rgba(36, 170, 184, 0.075), transparent 31%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 252, 0.96));
    box-shadow: 0 20px 48px rgba(35, 76, 104, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview-score:not(:has(canvas[data-cd-dashboard-chart-ready="1"])),
html.cd-theme-document[data-theme="light"] .audit-report-overview-score:not(:has(canvas[data-cd-dashboard-chart-ready="1"])) {
    background: conic-gradient(from -112deg, #6d56bf 0%, #24aab8 var(--cd-audit-score, 0%), rgba(73, 123, 154, 0.1) var(--cd-audit-score, 0%), rgba(73, 123, 154, 0.1) 100%);
    box-shadow: 0 20px 46px rgba(54, 79, 126, 0.14), 0 0 30px rgba(36, 170, 184, 0.08);
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview-score:not(:has(canvas[data-cd-dashboard-chart-ready="1"]))::before,
html.cd-theme-document[data-theme="light"] .audit-report-overview-score:not(:has(canvas[data-cd-dashboard-chart-ready="1"]))::before {
    border-color: rgba(61, 111, 142, 0.12);
    background: radial-gradient(circle at 32% 22%, rgba(109, 86, 191, 0.08), transparent 54%), #f7fbfd;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview .audit-report-top-kicker,
html.cd-theme-document[data-theme="light"] .audit-report-overview .audit-report-top-kicker {
    color: #237f91 !important;
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview .audit-report-top-title span,
html.cd-theme-document[data-theme="light"] .audit-report-overview .audit-report-top-title span {
    color: #68869a !important;
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview .audit-report-top-title strong,
html.cd-theme-document[data-theme="light"] .audit-report-overview .audit-report-top-title strong {
    color: #17384e !important;
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview .audit-report-top-content p,
html.cd-theme-document[data-theme="light"] .audit-report-overview .audit-report-top-content p {
    color: #49697d !important;
}

html[data-theme="light"] :where(.cd-theme-scope) .audit-report-overview .audit-report-top-meta span,
html.cd-theme-document[data-theme="light"] .audit-report-overview .audit-report-top-meta span {
    border-color: rgba(64, 111, 141, 0.13);
    color: #365a70 !important;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-list li {
    border-color: rgba(119, 188, 219, 0.22) !important;
    color: #eff9ff !important;
    background: linear-gradient(145deg, rgba(12, 42, 60, 0.96), rgba(7, 29, 44, 0.93)) !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-list li strong {
    color: #ffffff !important;
}

html[data-theme="dark"] .cd-audit-admin-report .audit-report-priority-list li :is(div, span, em) {
    color: #c4d9e4 !important;
}

.cd-audit-admin-report .audit-report-screenshot-grid {
    align-items: end !important;
}

.cd-audit-admin-report .audit-report-screenshot-mobile {
    align-self: end !important;
    height: auto !important;
    min-height: 0 !important;
}

.cd-audit-admin-report .audit-report-screenshot-mobile img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
}

.cd-audit-admin-page #audit-report-export-buttons.audit-report-export-controls {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: auto !important;
}

.cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    flex: 0 0 auto;
}

.cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group > .btn,
.cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group > .cd-icon-button {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    min-height: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group > :first-child {
    border-radius: var(--cd-admin-control-radius) 0 0 var(--cd-admin-control-radius) !important;
}

.cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group > :not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

.cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group > :last-child {
    border-radius: 0 var(--cd-admin-control-radius) var(--cd-admin-control-radius) 0 !important;
}

.cd-audit-admin-page #audit-report-export-buttons #audit-report-day-container {
    margin-left: 0 !important;
}

.cd-audit-admin-page .button-retry-audit-failed-request.cd-icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 !important;
    border-radius: 11px !important;
    color: #ffffff !important;
}

.cd-audit-admin-page .button-retry-audit-failed-request.cd-icon-button:hover,
.cd-audit-admin-page .button-retry-audit-failed-request.cd-icon-button:focus-visible {
    color: #ffffff !important;
}

.cd-legacy-form-banner .cd-form-page-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cd-legacy-form-banner .cd-form-page-actions > :is(.cd-button, .btn):not(.cd-icon-button) {
    min-height: 42px;
    border-radius: 13px !important;
}

@media (max-width: 1199.98px) {
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 22px;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score,
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score canvas {
        width: 220px !important;
        min-width: 220px !important;
        height: 220px !important;
        min-height: 220px !important;
    }

    .cd-audit-admin-report > .audit-report-main-col > .audit-report-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        padding: 20px;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score,
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview-score canvas {
        width: 205px !important;
        min-width: 205px !important;
        height: 205px !important;
        min-height: 205px !important;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-overview .audit-report-top-content {
        width: 100%;
        text-align: left;
    }

    .cd-audit-admin-report > .audit-report-main-col > .audit-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cd-audit-admin-page #audit-report-export-buttons.audit-report-export-controls {
        flex-wrap: wrap;
        margin-left: 0 !important;
    }
}

@media (max-width: 520px) {
    .cd-audit-admin-report > .audit-report-main-col > .audit-report-summary {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* Heatmap list/report finishing pass. */
.heatmap-list-item .audit-list-score {
    width: auto;
    min-width: 44px;
    padding-inline: 9px;
}

.cd-heatmap-admin-page .heatmap-list-request-screenshot-button {
    color: #ffffff !important;
    border-color: rgba(128, 211, 226, .36) !important;
    background: linear-gradient(115deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
    box-shadow: 0 9px 20px rgba(45, 58, 133, .16), inset 0 1px 0 rgba(255, 255, 255, .15) !important;
}
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button:hover,
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button:focus-visible {
    color: #ffffff !important;
    border-color: rgba(128, 211, 226, .5) !important;
    background: linear-gradient(115deg, #8161cf 0%, #4394c9 62%, #33abb6 100%) !important;
}
.cd-heatmap-admin-page .heatmap-list-request-screenshot-button i {
    color: #ffffff !important;
}
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-list-request-screenshot-button,
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-list-request-screenshot-button:hover,
html[data-theme="light"] .cd-heatmap-admin-page .heatmap-list-request-screenshot-button:focus-visible {
    color: #ffffff !important;
    border-color: rgba(91, 112, 194, .28) !important;
    background: linear-gradient(115deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
}

.cd-heatmap-report-content :is(.heatmap-click-loading, .heatmap-report-refresh-loading) > .cd-galaxy-loader {
    width: min(100%, 420px);
    margin: auto;
}
.cd-heatmap-report-content .heatmap-click-loading > .cd-galaxy-loader {
    background: rgba(7, 25, 40, .9) !important;
}
html[data-theme="light"] .cd-heatmap-report-content .heatmap-click-loading > .cd-galaxy-loader {
    background: rgba(255, 255, 255, .94) !important;
}

.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px !important;
}
.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group > .btn,
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table tbody td > .btn {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 9px !important;
}
.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group > .btn + .btn {
    margin-left: 0 !important;
}
.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group > .btn.btn-primary {
    border-color: rgba(81, 166, 205, .34) !important;
    color: #ffffff !important;
    background: linear-gradient(115deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
}
.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group > .btn.btn-outline-secondary,
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table tbody td > .btn.btn-outline-secondary {
    border-color: rgba(105, 174, 207, .18) !important;
    color: #c9e2ed !important;
    background: rgba(11, 39, 58, .76) !important;
}
.cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group > .btn.btn-outline-secondary:hover,
.cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table tbody td > .btn.btn-outline-secondary:hover {
    border-color: rgba(128, 211, 226, .34) !important;
    color: #ffffff !important;
    background: rgba(54, 126, 162, .22) !important;
}
.cd-heatmap-admin-page #heatmap-report-history .btn-danger {
    color: #ffffff !important;
}
html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history .heatmap-history-action-group > .btn.btn-outline-secondary,
html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table tbody td > .btn.btn-outline-secondary {
    border-color: rgba(68, 126, 163, .16) !important;
    color: #426a81 !important;
    background: #f3f8fa !important;
}

.cd-heatmap-admin-page :is(.button-copy-tracking-script, .button-verify-installation) {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}
.cd-heatmap-admin-page :is(.button-copy-tracking-script, .button-verify-installation) i {
    margin: 0 !important;
    color: inherit !important;
}
.cd-heatmap-admin-page .button-verify-installation {
    border-color: rgba(128, 211, 226, .34) !important;
    color: #ffffff !important;
    background: linear-gradient(115deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
    box-shadow: 0 9px 20px rgba(45, 58, 133, .14), inset 0 1px 0 rgba(255, 255, 255, .15) !important;
}

/* Client Report list/edit final normalization. */
.cd-client-report-list-table.cd-listing-sticky-table thead th > i {
    display: inline-block;
    margin-right: 5px !important;
    vertical-align: -1px;
    color: #7ecfe0 !important;
}

html[data-theme="light"] .cd-client-report-list-table.cd-listing-sticky-table thead th > i {
    color: #347d9d !important;
}

.cd-client-report-list-shell .client-report-attached-reports .audit-list-score {
    margin: 0 !important;
    vertical-align: middle;
}

.cd-client-report-list-shell .client-report-details-row > td {
    padding: 9px 10px 11px !important;
    border-top: 0 !important;
    background:
        radial-gradient(circle at 7% 0%, rgba(118, 86, 197, .07), transparent 17rem),
        radial-gradient(circle at 92% 100%, rgba(45, 189, 187, .045), transparent 18rem),
        rgba(4, 18, 31, .4) !important;
}

.cd-client-report-list-shell .client-report-details-grid {
    gap: 8px;
}

.cd-client-report-list-shell .client-report-details-module {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 13px !important;
    background:
        linear-gradient(145deg, rgba(14, 40, 59, .82), rgba(7, 27, 43, .78)) !important;
    box-shadow:
        0 8px 20px rgba(0, 8, 22, .14),
        inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

.cd-client-report-list-shell .client-report-details-module::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, #7656c5, #3c88bc 55%, #2e9eaa);
    content: "";
    opacity: .72;
}

.cd-client-report-list-shell .client-report-details-module-title {
    min-height: 38px;
    gap: 8px;
    padding: 8px 10px 6px 12px !important;
    border: 0 !important;
    color: #e7f7fb;
    background: transparent !important;
    font-size: 12px;
    font-weight: 760;
}

.cd-client-report-list-shell .client-report-details-module-title > i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 7px;
    color: #8de2ef !important;
    background: rgba(93, 188, 221, .08);
}

.cd-client-report-list-shell .client-report-details-module-content {
    padding: 5px 8px 8px 12px !important;
}

.cd-client-report-list-shell .client-report-mini-list {
    gap: 4px;
    padding: 0 !important;
}

.cd-client-report-list-shell .client-report-mini-row {
    min-height: 30px;
    padding: 5px 7px !important;
    border: 0 !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, .025) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

.cd-client-report-list-shell .client-report-mini-row + .client-report-mini-row {
    margin-top: 2px;
}

.cd-client-report-list-shell .client-report-mini-row:hover {
    border: 0 !important;
    background: rgba(71, 158, 199, .07) !important;
}

.cd-client-report-list-shell .client-report-mini-empty {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px !important;
    border-radius: 8px;
    color: var(--cd-muted);
    background: rgba(255, 255, 255, .018);
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-row > td {
    background:
        radial-gradient(circle at 7% 0%, rgba(118, 86, 197, .04), transparent 17rem),
        radial-gradient(circle at 92% 100%, rgba(45, 189, 187, .035), transparent 18rem),
        #f5fafc !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-module {
    background: linear-gradient(145deg, #ffffff, #f1f8fb) !important;
    box-shadow: 0 8px 18px rgba(44, 84, 108, .055), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-module-title {
    color: #294b63;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-details-module-title > i {
    color: #2a86ad !important;
    background: rgba(43, 140, 186, .07);
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-row {
    background: rgba(235, 246, 250, .76) !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-row:hover {
    background: #e8f5f9 !important;
}

html[data-theme="light"] .cd-client-report-list-shell .client-report-mini-empty {
    background: rgba(235, 246, 250, .66);
}

/* Client Report edit: email-template tags. */
:is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tags-shell {
    position: relative;
    overflow: hidden;
    padding: 13px 14px 14px;
    border: 1px solid rgba(105, 174, 207, .13);
    border-radius: 13px;
    background:
        radial-gradient(circle at 96% 0%, rgba(118, 86, 197, .075), transparent 15rem),
        linear-gradient(145deg, rgba(8, 29, 47, .7), rgba(5, 22, 37, .58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

:is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tags-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #dff4fb;
    font-size: 12px;
    font-weight: 760;
}

:is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tags-heading > i {
    color: #7ed8e8;
}

:is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
}

:is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tags[hidden] {
    display: none !important;
}

:is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tag {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid rgba(100, 190, 219, .16);
    border-radius: 9px;
    color: #bfe8f2;
    background: rgba(62, 142, 181, .09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
}

:is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tag:empty {
    display: none !important;
}

html[data-theme="light"] :is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tags-shell {
    border-color: rgba(68, 126, 163, .13);
    background: linear-gradient(145deg, #ffffff, #f1f8fb);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] :is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tags-heading {
    color: #294b63;
}

html[data-theme="light"] :is(.cd-client-report-settings-form, .cd-provider-email-tab, .cd-modal-send-email) .client-report-mailtemplate-tag {
    border-color: rgba(43, 140, 186, .14);
    color: #2a6682;
    background: #edf7fa;
}

/* Client Report edit: history actions and generator. */
#client-report-history .cd-client-report-history-email:not(.disabled) {
    border-color: rgba(82, 187, 255, .34) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
    box-shadow: 0 8px 18px rgba(45, 58, 133, .16), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
    cursor: pointer;
}

#client-report-history .cd-client-report-history-email:not(.disabled):hover,
#client-report-history .cd-client-report-history-email:not(.disabled):focus-visible {
    color: #ffffff !important;
    filter: brightness(1.08);
}

#client-report-history .cd-client-report-history-email.disabled {
    border-color: rgba(105, 174, 207, .1) !important;
    color: #7893a2 !important;
    background: rgba(255, 255, 255, .025) !important;
    box-shadow: none !important;
}

#client-report-history .cd-client-report-history-module-files {
    overflow: hidden;
    gap: 0 !important;
    border: 1px solid rgba(105, 174, 207, .14);
    border-radius: 10px;
    background: rgba(13, 45, 65, .58);
}

#client-report-history .cd-client-report-history-module-files > .btn {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

#client-report-history .cd-client-report-history-module-count {
    min-width: 40px !important;
    color: #d9edf6 !important;
    background: rgba(255, 255, 255, .035) !important;
    opacity: 1 !important;
}

#client-report-history .cd-client-report-history-module-toggle {
    width: 36px !important;
    min-width: 36px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(118, 86, 197, .92), rgba(60, 136, 188, .92)) !important;
}

#client-report-history .cd-client-report-history-module-toggle:hover,
#client-report-history .cd-client-report-history-module-toggle:focus-visible {
    color: #ffffff !important;
    filter: brightness(1.08);
}

html[data-theme="light"] #client-report-history .cd-client-report-history-module-files {
    border-color: rgba(68, 126, 163, .13);
    background: #eef7fa;
}

html[data-theme="light"] #client-report-history .cd-client-report-history-module-count {
    color: #355c74 !important;
    background: #f8fbfd !important;
}

.cd-client-report-settings-form #button-generate-report {
    min-height: 40px;
    padding: 0 17px !important;
    border-radius: 999px !important;
    gap: 8px;
}

/* Client Report edit: tighter settings surface. */
.cd-client-report-settings-form #tab-settings.cd-form-card-body {
    padding: 17px 18px !important;
}

/* Client Report edit: project configuration behaves as one segmented input group. */
.cd-client-report-settings-form .client-report-project-config-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0 !important;
    overflow: visible;
    border-radius: 12px;
}

.cd-client-report-settings-form .client-report-project-config-group > .form-control,
.cd-client-report-settings-form .client-report-project-config-group > .input-group-append,
.cd-client-report-settings-form .client-report-project-config-group > .input-group-append > .form-control,
.cd-client-report-settings-form .client-report-project-config-group > .input-group-append > .input-group-text,
.cd-client-report-settings-form .client-report-project-config-group > .input-group-append > .btn {
    min-height: 42px;
}

.cd-client-report-settings-form .client-report-project-config-group > .form-control,
.cd-client-report-settings-form .client-report-project-config-group > .input-group-append {
    margin-left: -1px;
}

.cd-client-report-settings-form .client-report-project-config-group > .form-control:first-child {
    margin-left: 0;
    border-radius: 12px 0 0 12px !important;
}

.cd-client-report-settings-form .client-report-project-config-group > .form-control:not(:first-child) {
    border-radius: 0 !important;
}

.cd-client-report-settings-form .client-report-project-config-group > .project-frequency-hours-wrap {
    display: flex;
    align-items: stretch;
    flex: 1 1 185px;
}

.cd-client-report-settings-form .client-report-project-config-group > .project-frequency-hours-wrap > .form-control,
.cd-client-report-settings-form .client-report-project-config-group > .project-frequency-hours-wrap > .input-group-text {
    border-radius: 0 !important;
}

.cd-client-report-settings-form .client-report-project-config-group > .project-frequency-hours-wrap > .input-group-text {
    margin-left: -1px;
}

.cd-client-report-settings-form .client-report-project-config-group > .input-group-append:last-child {
    margin-left: -1px;
}

.cd-client-report-settings-form .client-report-project-config-group > .input-group-append:last-child > .btn {
    width: 42px;
    min-width: 42px;
    padding: 0 !important;
    border-radius: 0 12px 12px 0 !important;
}

@media (max-width: 1199.98px) {
    .cd-client-report-settings-form .client-report-project-config-group {
        flex-wrap: wrap;
        gap: 7px !important;
    }

    .cd-client-report-settings-form .client-report-project-config-group > .form-control,
    .cd-client-report-settings-form .client-report-project-config-group > .input-group-append {
        margin-left: 0 !important;
        border-radius: 10px !important;
    }

    .cd-client-report-settings-form .client-report-project-config-group > .form-control,
    .cd-client-report-settings-form .client-report-project-config-group > .project-frequency-hours-wrap {
        flex: 1 1 180px;
    }

    .cd-client-report-settings-form .client-report-project-config-group > .project-frequency-hours-wrap > .form-control {
        border-radius: 10px 0 0 10px !important;
    }

    .cd-client-report-settings-form .client-report-project-config-group > .project-frequency-hours-wrap > .input-group-text {
        border-radius: 0 10px 10px 0 !important;
    }

    .cd-client-report-settings-form .client-report-project-config-group > .input-group-append:last-child > .btn {
        border-radius: 10px !important;
    }
}

/* Project-tag modal uses the standard checklist control. */
#modal-client-report-project-tags .cd-client-report-project-tags-modal-content {
    overflow: hidden;
}

#modal-client-report-project-tags .modal-body {
    padding: 16px 18px 18px;
}

#modal-client-report-project-tags .client-report-project-tag-option {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 10px;
    margin: 0 !important;
    padding: 7px 9px !important;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
}

#modal-client-report-project-tags .client-report-project-tag-option + .client-report-project-tag-option {
    margin-top: 4px !important;
}

#modal-client-report-project-tags .client-report-project-tag-option:hover {
    border-color: rgba(90, 181, 215, .16);
    background: rgba(70, 151, 190, .08);
}

#modal-client-report-project-tags .client-report-project-tag-checkbox {
    position: static !important;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    accent-color: #4d9fe0;
}

#modal-client-report-project-tags .form-check-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cd-text);
}

#modal-client-report-project-tags .client-report-project-tag-swatch {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 4px;
    background: var(--client-report-project-tag-color, #6c757d);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .07);
}

#modal-client-report-project-tags .cd-client-report-project-tags-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 18px 16px;
    border-top: 1px solid rgba(105, 174, 207, .11) !important;
    background: rgba(5, 21, 34, .45);
}

#modal-client-report-project-tags .cd-client-report-project-tags-modal-footer .cd-button {
    min-height: 38px;
    padding: 0 15px !important;
}

html[data-theme="light"] #modal-client-report-project-tags .cd-client-report-project-tags-modal-footer {
    border-top-color: rgba(68, 126, 163, .1) !important;
    background: #f7fbfd;
}

/* Update 36: settings accordions/image cards, SEO competitor tabs and cron feedback. */
.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button {
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 46px 10px 12px !important;
    overflow: hidden;
    border: 0 !important;
    color: #d9edf5 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    letter-spacing: .015em;
    background:
        radial-gradient(circle at 8% 50%, rgba(76, 170, 205, .10), transparent 8rem),
        linear-gradient(90deg, rgba(10, 39, 57, .9), rgba(7, 28, 44, .72)) !important;
}

.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button::before {
    content: "✦";
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(119, 211, 231, .28);
    border-radius: 50%;
    color: #f4fbff;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), transparent 42%),
        linear-gradient(135deg, rgba(116,86,197,.82), rgba(44,137,184,.86) 62%, rgba(45,158,170,.88));
    box-shadow: 0 7px 16px rgba(0, 10, 25, .18), inset 0 1px 0 rgba(255,255,255,.2);
    font-size: 12px;
    line-height: 1;
}

.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button::after {
    position: absolute;
    right: 10px;
    margin-left: 0;
}

.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button:hover,
.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button:focus-visible,
.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button[aria-expanded="true"] {
    color: #fff !important;
    background:
        radial-gradient(circle at 10% 50%, rgba(85, 191, 219, .14), transparent 9rem),
        linear-gradient(90deg, rgba(14, 49, 70, .98), rgba(9, 35, 53, .88)) !important;
}

html[data-theme="light"] .cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button {
    color: #294f67 !important;
    background:
        radial-gradient(circle at 8% 50%, rgba(54, 145, 184, .055), transparent 8rem),
        linear-gradient(90deg, #f7fbfd, #eef6f9) !important;
}

html[data-theme="light"] .cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button:hover,
html[data-theme="light"] .cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button:focus-visible,
html[data-theme="light"] .cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button[aria-expanded="true"] {
    color: #173f59 !important;
    background:
        radial-gradient(circle at 10% 50%, rgba(70, 166, 199, .08), transparent 9rem),
        linear-gradient(90deg, #f2f9fc, #e7f2f7) !important;
}

/* setting/setting still inherits legacy .card.image dimensions; neutralize them locally. */
.cd-settings-page .card.image.cd-form-image-card {
    width: min(286px, 100%) !important;
    height: auto !important;
    min-height: 218px !important;
    aspect-ratio: auto !important;
    align-items: stretch !important;
}

.cd-settings-page .card.image.cd-form-image-card .img-thumbnail-cont-full {
    width: calc(100% - 24px) !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    flex: 0 0 150px !important;
}

.cd-settings-page .card.image.cd-form-image-card .img-thumbnail-cont-full img {
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.cd-settings-page .card.image.cd-form-image-card .card-body {
    width: 100% !important;
    min-height: 54px !important;
}

/* Competitor rules modal: active tabs must retain white foreground in both themes. */
.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active,
.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:hover,
.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:focus,
html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active,
html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:hover,
html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:focus {
    color: #fff !important;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active :is(i, span, strong) {
    color: inherit !important;
}

/* marketplace/cron action and centered reuse of the existing copy-toast feedback. */
.cd-cron-page .cd-listing-action-group .btn-warning,
.cd-cron-page .cd-listing-action-group .btn-warning:hover,
.cd-cron-page .cd-listing-action-group .btn-warning:focus-visible,
.cd-cron-page .cd-listing-action-group .btn-warning:active,
.cd-cron-page .cd-listing-action-group .btn-warning.active {
    color: #fff !important;
}

.cd-cron-page .cd-listing-action-group .btn-warning i {
    color: inherit !important;
}

.copy-toast.copy-toast-center {
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, calc(-50% + 16px)) scale(.97) !important;
}

.copy-toast.copy-toast-center.show {
    transform: translate(-50%, -50%) scale(1) !important;
}


/* 2026-08-18 final UI/UX audit: deterministic form actions + cross-theme polish. */
:where(#content.cd-theme-scope, html.cd-theme-document) .cd-form-save-button {
    color: #fff !important;
    border-color: rgba(128, 211, 226, .42) !important;
    background: linear-gradient(115deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
    box-shadow: 0 10px 24px rgba(45, 58, 133, .22), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
:where(#content.cd-theme-scope, html.cd-theme-document) .cd-form-save-button:hover,
:where(#content.cd-theme-scope, html.cd-theme-document) .cd-form-save-button:focus-visible {
    color: #fff !important;
    border-color: rgba(151, 224, 239, .58) !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(45, 58, 133, .28), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
:where(#content.cd-theme-scope, html.cd-theme-document) .cd-form-save-button:active {
    transform: translateY(0);
}
:where(#content.cd-theme-scope, html.cd-theme-document) .cd-form-save-button:disabled,
:where(#content.cd-theme-scope, html.cd-theme-document) .cd-form-save-button.disabled {
    filter: none;
    opacity: .52;
    transform: none;
}

/* Legacy buttons with icon + text should not rely on page-specific margin utilities. */
#content.cd-theme-scope :is(.btn, .cd-button):not(.cd-icon-button) > i:first-child,
.cd-modal :is(.btn, .cd-button):not(.cd-icon-button) > i:first-child {
    margin-right: 7px;
}
#content.cd-theme-scope :is(.btn, .cd-button):not(.cd-icon-button) > i:only-child,
.cd-modal :is(.btn, .cd-button):not(.cd-icon-button) > i:only-child {
    margin-right: 0;
}

/* SEO results summary: statistics on row one; location/search controls on row two, right aligned. */
.cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
}
.cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .cd-seo-search-result-stats {
    width: 100%;
    flex: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .secondary-inner-cont-results-page-top-downloads {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .secondary-inner-cont-results-page-top-downloads > .input-group {
    width: auto;
    min-width: min(330px, 100%);
    flex: 0 1 330px;
}
.cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .main-cont-search-in-keywords-seo-cont {
    width: min(410px, 100%);
    min-width: 0;
    flex: 0 1 410px;
}
.cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .tab-location-input {
    margin-right: 0 !important;
}
@media (max-width: 767.98px) {
    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .cd-seo-search-result-stats {
        grid-template-columns: 1fr;
    }
    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .secondary-inner-cont-results-page-top-downloads {
        justify-content: stretch;
    }
    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .secondary-inner-cont-results-page-top-downloads > .input-group,
    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .main-cont-search-in-keywords-seo-cont {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* Body-appended themed modals must remain theme-safe even when legacy utility classes are present. */
.cd-modal .bg-white:not(.provider-signature-preview),
.cd-modal .table-responsive.bg-white {
    background: rgba(5, 20, 33, .94) !important;
}
.cd-modal .text-dark:not(.badge),
.cd-modal .text-black:not(.badge) {
    color: #d8e8f0 !important;
}
html[data-theme="light"] .cd-modal .bg-white:not(.provider-signature-preview),
html[data-theme="light"] .cd-modal .table-responsive.bg-white {
    background: #fff !important;
}
html[data-theme="light"] .cd-modal .text-dark:not(.badge),
html[data-theme="light"] .cd-modal .text-black:not(.badge) {
    color: #294f67 !important;
}

/* Keep banner titles/actions stable when headings are long. */
.cd-form-page-banner .cd-document-banner-copy {
    min-width: 0;
}
.cd-form-page-banner .cd-document-banner-copy :is(h1, h2) {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.cd-form-page-banner .cd-page-banner-actions {
    flex: 0 0 auto;
}

/* ==================== 18. Responsive design system pass · 2026-08-18 ==================== */
/* Form cards own one clean, symmetric surface. Header/body inherit the outer corners. */
.cd-form-page .cd-card.cd-form-card {
    overflow: hidden !important;
    border-radius: 18px !important;
}

.cd-form-page .cd-card.cd-form-card > .cd-form-card-header:first-child {
    border-radius: 17px 17px 0 0 !important;
}

.cd-form-page .cd-card.cd-form-card > .cd-form-card-body:last-child {
    border-radius: 0 0 17px 17px !important;
}

.cd-form-page .cd-card.cd-form-card.cd-form-card-body {
    border-radius: 18px !important;
}

/* Keep long titles and action rows inside their own fold at every viewport. */
.cd-page-heading,
.cd-page-heading-copy,
.cd-document-banner-copy,
.cd-page-banner-content,
.cd-page-banner-actions,
.cd-page-heading-actions {
    min-width: 0;
}

.cd-page-heading :is(h1, h2),
.cd-document-banner-copy :is(h1, h2) {
    max-width: 100%;
}

@media (max-width: 1199.98px) {
    .cd-page-heading:not(.cd-page-banner) h1 {
        font-size: clamp(34px, 4.4vw, 48px);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(30px, 3vw, 38px);
    }
}

@media (max-width: 991.98px) {
    .cd-main {
        padding-top: 30px;
        padding-bottom: 52px;
    }

    .cd-page-heading:not(.cd-page-banner) {
        gap: 18px;
        padding: 30px 26px 24px;
        border-radius: 26px;
    }

    .cd-page-heading:not(.cd-page-banner) h1 {
        font-size: clamp(31px, 4.6vw, 40px);
        line-height: 1.05;
    }

    .cd-page-heading:not(.cd-page-banner) p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .cd-dashboard-heading {
        min-height: clamp(270px, 32vw, 310px);
        padding: 42px 0 38px;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(28px, 4vw, 34px);
        line-height: 1.04;
    }

    .cd-form-page .form-group.row {
        min-width: 0;
    }

    .cd-listing-card-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .cd-main {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .cd-page-heading:not(.cd-page-banner) {
        gap: 14px;
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .cd-page-heading:not(.cd-page-banner) h1 {
        margin-bottom: 8px;
        font-size: clamp(27px, 4.6vw, 33px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .cd-page-heading:not(.cd-page-banner) p {
        margin-top: 8px;
        font-size: 13.5px;
        line-height: 1.5;
    }

    .cd-dashboard-heading {
        min-height: clamp(260px, 42vw, 300px);
        padding: 36px 0 32px;
        border-radius: 22px;
    }

    .cd-dashboard-hero-inner {
        padding-right: 22px;
        padding-left: 22px;
    }

    .cd-dashboard-heading h1 {
        margin-bottom: 12px;
        font-size: clamp(26px, 5vw, 31px);
        line-height: 1.05;
        letter-spacing: -0.035em;
    }

    .cd-dashboard-heading p {
        max-width: 540px;
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.55;
    }

    .cd-dashboard-hero-button {
        min-height: 50px;
        padding: 9px 16px 9px 18px;
    }

    .cd-pdf-stage {
        min-height: 360px;
        height: clamp(360px, calc(100dvh - 170px), 620px);
        max-height: 620px;
    }

    .cd-pdf-frame-shell {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .cd-project-report-workspace .cd-project-report-actions {
        width: 100%;
        max-width: 100%;
    }

    .cd-project-report-workspace .cd-project-report-actions > #search-results-date-container {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: 1 1 100% !important;
    }

    .cd-page-banner-content h1,
    .cd-form-page-banner .cd-document-banner-copy h1,
    .cd-form-page-banner .cd-document-banner-copy h2 {
        font-size: clamp(22px, 4.2vw, 25px);
        line-height: 1.14;
        letter-spacing: -0.025em;
        overflow-wrap: anywhere;
    }

    .cd-page-banner-actions {
        max-width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .cd-page-banner-actions::-webkit-scrollbar {
        display: none;
    }

    .cd-page-banner-actions > * {
        flex: 0 0 auto;
    }

    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .cd-seo-search-result-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .cd-listing-sticky-header-wrapper,
    #client-list-card-header-fixed-wrapper,
    #heatmap-list-card-header-fixed-wrapper,
    #audit-list-card-header-fixed-wrapper,
    #client-report-list-card-header-fixed-wrapper,
    #seo-report-list-card-header-fixed-wrapper,
    #project-list-card-header-fixed-wrapper {
        display: none !important;
    }

    .cd-form-page .cd-card.cd-form-card {
        border-radius: 16px !important;
    }

    .cd-form-page .cd-card.cd-form-card > .cd-form-card-header:first-child {
        min-height: 52px;
        padding: 14px 16px;
        border-radius: 15px 15px 0 0 !important;
    }

    .cd-form-page .cd-card.cd-form-card > .cd-form-card-body:last-child {
        border-radius: 0 0 15px 15px !important;
    }

    .cd-form-page .cd-card.cd-form-card.cd-form-card-body {
        border-radius: 16px !important;
    }

    .cd-form-card-body {
        padding: 16px !important;
    }

    .cd-form-page .form-group.row > [class*="col-sm-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .cd-form-page .form-group.row > .col-form-label,
    .cd-form-page .form-group.row > [class*="col-sm-"] > .col-form-label {
        padding-top: 0;
        padding-bottom: 4px;
    }

    .cd-form-page fieldset {
        padding: 14px 13px 4px;
        border-radius: 14px;
    }

    .cd-listing-card-header {
        align-items: stretch;
        gap: 10px;
    }

    .cd-listing-card-header .cd-listing-search,
    .cd-listing-card-header .input-group.cd-listing-search {
        width: 100%;
        flex: 1 1 100%;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .nav.nav-tabs:not(.flex-column) {
        max-width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .nav.nav-tabs:not(.flex-column) .nav-item,
    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .nav.nav-tabs:not(.flex-column) .nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-content {
        max-height: calc(100dvh - 16px);
        overflow: hidden;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-body {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .pagination {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .pagination .page-link {
        margin: 0 !important;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) :is(.dropdown-menu, .popover) {
        max-width: calc(100vw - 16px) !important;
    }

    .cd-client-report-settings-form #projects,
    .cd-seo-admin-form-page #additional-locations {
        min-width: 720px;
    }

    .cd-client-report-settings-form #projects td[style*="width:520px"],
    .cd-seo-admin-form-page #additional-locations td[style*="width:500px"] {
        width: auto !important;
        min-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .cd-page-heading:not(.cd-page-banner) {
        padding: 20px 16px 18px;
        border-radius: 18px;
    }

    .cd-page-heading:not(.cd-page-banner) h1 {
        font-size: clamp(23px, 4.7vw, 27px);
        line-height: 1.1;
        letter-spacing: -0.025em;
    }

    .cd-page-heading:not(.cd-page-banner) p {
        font-size: 13px;
    }

    .cd-dashboard-heading {
        min-height: 250px;
        padding: 30px 0 28px;
        border-radius: 18px;
    }

    .cd-dashboard-hero-inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(24px, 6vw, 28px);
        line-height: 1.06;
        letter-spacing: -0.03em;
    }

    .cd-dashboard-heading p {
        margin-bottom: 18px;
        font-size: 13.5px;
    }

    .cd-dashboard-hero-button {
        min-height: 46px;
        padding: 8px 14px 8px 16px;
        border-radius: 14px;
    }

    .cd-page-banner-content h1,
    .cd-form-page-banner .cd-document-banner-copy h1,
    .cd-form-page-banner .cd-document-banner-copy h2 {
        font-size: clamp(20px, 4.1vw, 23px);
    }

    .cd-page-banner-content {
        padding-left: 16px;
    }

    .cd-form-page .cd-card.cd-form-card,
    .cd-form-page .cd-card.cd-form-card.cd-form-card-body {
        border-radius: 14px !important;
    }

    .cd-form-page .cd-card.cd-form-card > .cd-form-card-header:first-child {
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 13px 13px 0 0 !important;
    }

    .cd-form-page .cd-card.cd-form-card > .cd-form-card-body:last-child {
        border-radius: 0 0 13px 13px !important;
    }

    .cd-form-card-body {
        padding: 14px !important;
    }

    .cd-task-report-stats,
    .cd-seo-keyword-stats,
    .cd-seo-admin-form-page .cd-seo-search-result-stats {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary,
    .cd-audit-admin-report .audit-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary > :last-child:nth-child(odd),
    .cd-audit-admin-report .audit-report-summary > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .cd-dashboard-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-header,
    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-body,
    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-footer > .btn:not(.cd-icon-button),
    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-footer > .cd-button:not(.cd-icon-button) {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .cd-page-heading:not(.cd-page-banner) h1 {
        font-size: clamp(22px, 7vw, 25px);
    }

    .cd-dashboard-heading {
        min-height: 230px;
    }

    .cd-pdf-stage {
        min-height: 330px;
        height: clamp(330px, calc(100dvh - 150px), 540px);
        max-height: 540px;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(23px, 7vw, 26px);
    }

    .cd-dashboard-hero-stats,
    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary,
    .cd-audit-admin-report .audit-report-summary {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    :where(html.cd-theme-document, .cd-theme-scope) .audit-report-summary > :last-child:nth-child(odd),
    .cd-audit-admin-report .audit-report-summary > :last-child:nth-child(odd) {
        grid-column: auto;
    }

    .cd-listing-page-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-topbar :is(.cd-icon-button, .cd-account-button) {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        flex-basis: 38px;
    }
}

/* ==================== 19. Ultra-narrow / foldable viewport fit · 2026-08-18 ==================== */
@media (max-width: 320px) {
    .cd-main {
        padding-right: 8px;
        padding-left: 8px;
    }

    .cd-page-heading:not(.cd-page-banner) {
        gap: 10px;
        padding: 16px 12px 14px;
        border-radius: 14px;
    }

    .cd-page-heading:not(.cd-page-banner) h1 {
        font-size: clamp(20px, 7.5vw, 22px);
        line-height: 1.12;
        letter-spacing: -0.02em;
    }

    .cd-page-heading:not(.cd-page-banner) p {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .cd-dashboard-heading {
        min-height: 215px;
        padding: 24px 0 22px;
        border-radius: 14px;
    }

    .cd-dashboard-hero-inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .cd-dashboard-heading h1 {
        font-size: clamp(22px, 7.8vw, 24px);
        line-height: 1.07;
        letter-spacing: -0.025em;
    }

    .cd-dashboard-heading p {
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1.48;
    }

    .cd-dashboard-hero-button {
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
    }

    .cd-page-banner-content {
        padding-left: 12px;
    }

    .cd-page-banner-content h1,
    .cd-form-page-banner .cd-document-banner-copy h1,
    .cd-form-page-banner .cd-document-banner-copy h2 {
        font-size: clamp(19px, 7vw, 21px);
        line-height: 1.15;
    }

    .cd-page-banner-actions {
        gap: 5px !important;
    }

    .cd-form-page .cd-card.cd-form-card,
    .cd-form-page .cd-card.cd-form-card.cd-form-card-body {
        border-radius: 12px !important;
    }

    .cd-form-page .cd-card.cd-form-card > .cd-form-card-header:first-child {
        min-height: 46px;
        padding: 11px 12px;
        border-radius: 11px 11px 0 0 !important;
    }

    .cd-form-page .cd-card.cd-form-card > .cd-form-card-body:last-child {
        border-radius: 0 0 11px 11px !important;
    }

    .cd-form-card-body {
        padding: 12px !important;
    }

    .cd-theme-scope .modal-dialog,
    html.cd-theme-document .modal-dialog,
    .cd-modal .modal-dialog {
        max-width: calc(100vw - 8px) !important;
        margin: 4px !important;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) :is(.modal-header, .modal-body, .modal-footer) {
        padding-right: 10px;
        padding-left: 10px;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-footer > .btn:not(.cd-icon-button),
    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) .modal-footer > .cd-button:not(.cd-icon-button) {
        flex: 1 1 100%;
        width: 100%;
    }

    :where(#content.cd-theme-scope, html.cd-theme-document, .cd-modal) :is(.input-group, .btn-group) {
        max-width: 100%;
    }

    .cd-pdf-stage {
        min-height: 300px;
        height: clamp(300px, calc(100dvh - 135px), 480px);
        max-height: 480px;
    }
}

@media (max-width: 420px) {
    .cd-page-heading-with-media:not(.cd-dashboard-heading) {
        min-height: 350px;
        grid-template-rows: auto auto minmax(140px, 1fr);
        gap: 12px;
        padding: 20px 14px 16px;
        border-radius: 18px 18px 18px 10px;
    }

    .cd-page-heading-with-media:not(.cd-dashboard-heading) .cd-page-heading-media {
        min-height: 140px;
        border-radius: 16px 16px 16px 8px;
    }
}

/* ==================== 20. Mobile listing actions + permissions · 2026-08-18 ==================== */
@media (max-width: 767.98px) {
    /* Listing banners use a fluid action dock: text actions stack, icon-only actions stay compact. */
    .cd-listing-page .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.has-visible-actions {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .cd-listing-page .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.has-visible-actions .cd-page-banner-surface {
        position: relative !important;
        inset: auto !important;
        min-height: 104px;
        border-radius: 20px 20px 14px 14px;
    }

    .cd-listing-page .cd-page-heading.cd-page-banner.cd-page-heading-has-actions.has-visible-actions .cd-page-banner-content {
        padding: 18px 16px !important;
    }

    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions {
        position: relative !important;
        z-index: 5;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: -10px 0 0 !important;
        padding: 18px 10px 10px !important;
        overflow: visible !important;
        border: 1px solid rgba(105, 181, 214, .12);
        border-top: 0;
        border-radius: 0 0 18px 18px;
        background: linear-gradient(180deg, rgba(8, 31, 49, .76), rgba(6, 24, 39, .9));
        box-shadow: 0 14px 28px rgba(0, 8, 22, .14), inset 0 1px 0 rgba(255,255,255,.035);
        transform: none !important;
        scrollbar-width: auto;
    }

    html[data-theme="light"] .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions {
        border-color: rgba(62, 125, 162, .11);
        background: linear-gradient(180deg, rgba(246, 251, 253, .96), rgba(238, 247, 250, .98));
        box-shadow: 0 12px 24px rgba(49, 86, 111, .08), inset 0 1px 0 #fff;
    }

    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .cd-button:not(.cd-icon-button),
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .btn:not(.cd-icon-button),
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > a.cd-button:not(.cd-icon-button) {
        order: 1;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 100% !important;
        justify-content: center;
    }

    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .input-group,
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .btn-group:has(.cd-button:not(.cd-icon-button), .btn:not(.cd-icon-button)) {
        order: 1;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 100% !important;
    }

    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .cd-icon-button,
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .btn.cd-icon-button,
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .cd-listing-action-group.btn-group:not(:has(.cd-button:not(.cd-icon-button), .btn:not(.cd-icon-button))) {
        order: 2;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }

    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .cd-icon-button,
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .btn.cd-icon-button {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    /* user/user_permission/edit: remove Bootstrap row/column gutters on phone layouts. */
    .cd-permission-grid.group-permission-container {
        margin: 0 !important;
    }

    .cd-permission-grid.group-permission-container > .col-half {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 320px) {
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions {
        gap: 6px !important;
        padding: 16px 8px 8px !important;
        border-radius: 0 0 14px 14px;
    }

    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .cd-icon-button,
    .cd-listing-page .cd-page-banner-actions.cd-listing-page-actions > .btn.cd-icon-button {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}


/* CRM UI/UX wave 18: keep fixed filter panels flush with the live mobile topbar. */
@media (max-width: 767.98px) {
    .cd-filter-fixed:not(.theme-design-filter-panel-demo),
    #task-filter-fixed.cd-filter-fixed {
        top: var(--cd-filter-fixed-top, var(--cd-topbar-height, 66px)) !important;
        bottom: 0 !important;
        height: calc(100dvh - var(--cd-filter-fixed-top, var(--cd-topbar-height, 66px))) !important;
        max-height: none !important;
        margin: 0 !important;
        border-top: 0 !important;
    }

    .cd-filter-fixed:not(.theme-design-filter-panel-demo) > .cd-filter-panel,
    #task-filter-fixed.cd-filter-fixed > .cd-filter-panel {
        height: 100% !important;
        min-height: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
}

/* Update 45: Settings interaction/mobile scroll cleanup and client-report joined action geometry. */
.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button::after {
    width: 9px;
    height: 9px;
    right: 8px;
    flex: 0 0 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: none !important;
    filter: none !important;
    opacity: .72;
    transform: rotate(45deg);
    transform-origin: 55% 55%;
    transition: transform .18s ease, opacity .18s ease;
}

.cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button[aria-expanded="true"]::after {
    opacity: 1;
    transform: rotate(225deg);
}

.cd-settings-page .card.image.cd-form-image-card {
    width: min(220px, 100%) !important;
    min-height: 0 !important;
}

.cd-settings-page .card.image.cd-form-image-card .img-thumbnail-cont-full {
    height: 118px !important;
    min-height: 118px !important;
    max-height: 118px !important;
    flex: 0 0 118px !important;
    margin: 10px 10px 0 !important;
    width: calc(100% - 20px) !important;
    padding: 10px !important;
}

.cd-settings-page .card.image.cd-form-image-card .card-body {
    min-height: 48px !important;
    padding: 7px 10px 9px !important;
}

@media (max-width: 767.98px) {
    .cd-settings-page .cd-form-card-body,
    .cd-settings-page #form-setting,
    .cd-settings-page .tab-content,
    .cd-settings-page .tab-pane,
    .cd-settings-page .accordion,
    .cd-settings-page .accordion-item,
    .cd-settings-page .accordion-item > .collapse,
    .cd-settings-page .accordion-item .card-body,
    .cd-settings-page .form-group.row {
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
    }

    .cd-settings-page :where(.nav.nav-tabs:not(.flex-column)) {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
        gap: 6px;
        scrollbar-width: auto !important;
    }

    .cd-settings-page :where(.nav.nav-tabs:not(.flex-column)) .nav-item {
        min-width: 0;
        max-width: 100%;
        flex: 0 0 auto !important;
    }

    .cd-settings-page :where(.nav.nav-tabs:not(.flex-column)) .nav-link {
        min-width: 0;
        max-width: 100%;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .cd-settings-page textarea.form-control:not([data-toggle="ckeditor"]) {
        height: auto;
        min-height: 118px;
        max-height: none !important;
        overflow: clip !important;
        overscroll-behavior: auto !important;
        resize: none !important;
        field-sizing: content;
    }

    .cd-settings-page #tab-option.accordion > .accordion-item > .accordion-button {
        overflow: visible !important;
    }

    .cd-settings-page .cd-settings-mail-alert-list {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
    }
}


/* Document Editor host forms: use the full form content width without redundant Bootstrap outer gutters. */
.cd-document-editor-form-page .cd-form-page-content {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.cd-document-editor-form-page .cd-document-admin-tabs-card,
.cd-document-editor-form-page .cd-form-tabs-card,
.cd-document-editor-form-page .cd-document-editor-host-form,
.cd-document-editor-form-page .cd-document-editor-host-form > .tab-content,
.cd-document-editor-form-page .cd-document-editor-host-form > .tab-content > .tab-pane {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.cd-document-editor-form-page .cd-document-editor-layout {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.cd-document-editor-form-page .cd-document-editor-layout > .document-editor-column {
    padding-left: 0 !important;
}

.cd-document-editor-form-page .cd-document-editor-layout > .document-fields-sidebar-column {
    padding-right: 0 !important;
}

@media (max-width: 991.98px) {
    .cd-document-editor-form-page .cd-document-editor-layout {
        row-gap: 12px;
    }

    .cd-document-editor-form-page .cd-document-editor-layout > .document-editor-column,
    .cd-document-editor-form-page .cd-document-editor-layout > .document-fields-sidebar-column {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* Settings tab labels are atomic labels: wrap tab items, never words inside a tab. */
.cd-settings-page .nav.nav-tabs .nav-link {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Update 47: Settings mobile flow + client-report banner send group. */
/* Client Report: joined Send/Reset action is one pill, matching the adjacent CRM primary button geometry. */
.cd-client-report-list-page .cd-client-report-send-group {
    min-height: 42px;
    display: inline-flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: 0 16px 38px rgba(45, 130, 104, .18), 0 8px 24px rgba(24, 107, 84, .14);
}

.cd-client-report-list-page .cd-client-report-send-group > .buton-check-sent {
    min-width: 0;
    min-height: 42px !important;
    height: 42px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 0 17px !important;
    border: 1px solid rgba(89, 210, 157, .34) !important;
    border-right: 0 !important;
    border-radius: 999px 0 0 999px !important;
    color: #fff !important;
    line-height: 1 !important;
    white-space: nowrap;
    background: linear-gradient(108deg, #278d6a 0%, #2da879 58%, #2eb69a 112%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.cd-client-report-list-page .cd-client-report-send-group > .buton-check-sent > i {
    margin: 0 !important;
}

.cd-client-report-list-page .cd-client-report-send-group > .cd-client-report-revert-button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    margin: 0 !important;
    border: 1px solid rgba(161,115,216,.28) !important;
    border-left-color: rgba(255,255,255,.08) !important;
    border-radius: 0 999px 999px 0 !important;
}

.cd-client-report-list-page .cd-client-report-send-group > :disabled {
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .cd-client-report-list-page .cd-page-banner-actions.cd-listing-page-actions > .cd-client-report-send-group {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 100% !important;
    }

    .cd-client-report-list-page .cd-client-report-send-group > .buton-check-sent {
        width: auto !important;
        flex: 1 1 auto !important;
    }


/* Update 48: Client Report history becomes a readable labelled card list on phones. */
    .cd-document-editor-form-page #tab-reports-history {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 12px !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .cd-document-editor-form-page #tab-reports-history > .mb-3.text-right {
        width: 100%;
        text-align: left !important;
    }

    .cd-document-editor-form-page #tab-reports-history #button-generate-report {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    #client-report-history,
    #client-report-history .cd-client-report-history-table-wrap {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    #client-report-history .cd-client-report-history-table-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #client-report-history .cd-client-report-history-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    #client-report-history .cd-client-report-history-table > thead {
        display: none !important;
    }

    #client-report-history .cd-client-report-history-table > tbody {
        width: 100%;
        min-width: 0;
        display: grid;
        gap: 12px;
    }

    #client-report-history .cd-client-report-history-table > tbody > tr {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: grid !important;
        margin: 0 !important;
        padding: 8px !important;
        overflow: visible !important;
        border: 1px solid rgba(105, 174, 207, .14) !important;
        border-radius: 15px !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .07), transparent 10rem),
            rgba(7, 27, 42, .68) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 20px rgba(0, 8, 22, .08) !important;
        box-sizing: border-box;
    }

    #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(118px, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 9px 8px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(105, 174, 207, .09) !important;
        text-align: right !important;
        vertical-align: middle !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
        box-sizing: border-box;
    }

    #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label]::before {
        content: attr(data-label);
        min-width: 0;
        color: var(--cd-text-muted, #91adbb);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.3;
        letter-spacing: .035em;
        text-align: left;
        text-transform: uppercase;
        white-space: normal;
    }

    #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label] > :is(.btn-group, .cd-icon-button) {
        justify-self: end;
    }

    #client-report-history .cd-client-report-history-table .btn-group {
        min-width: 0;
        max-width: 100%;
        display: inline-flex !important;
        align-items: stretch !important;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        overflow: visible !important;
        border-radius: 10px !important;
        vertical-align: middle;
    }

    #client-report-history .cd-client-report-history-table .btn-group > .btn {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        flex: 0 0 38px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        line-height: 1 !important;
    }

    #client-report-history .cd-client-report-history-table .btn-group > .btn + .btn {
        margin-left: -1px !important;
    }

    #client-report-history .cd-client-report-history-table .btn-group > .btn:first-child {
        border-radius: 10px 0 0 10px !important;
    }

    #client-report-history .cd-client-report-history-table .btn-group > .btn:last-of-type {
        border-radius: 0 10px 10px 0 !important;
    }

    #client-report-history .cd-client-report-history-table .btn-group > .btn:only-of-type {
        border-radius: 10px !important;
    }

    #client-report-history .cd-client-report-history-table .cd-client-report-history-module-files {
        overflow: visible !important;
    }

    #client-report-history .cd-client-report-history-table .cd-client-report-history-module-count {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        flex-basis: 42px !important;
        border-radius: 9px 0 0 9px !important;
    }

    #client-report-history .cd-client-report-history-table .cd-client-report-history-module-toggle {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        flex-basis: 38px !important;
        border-radius: 0 9px 9px 0 !important;
    }

    #client-report-history .cd-client-report-history-email,
    #client-report-history .delete-report-history {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 10px !important;
    }

    #client-report-history .cd-client-report-history-table .btn i,
    #client-report-history .cd-client-report-history-table .cd-icon-button i {
        margin: 0 !important;
    }

    #client-report-history .cd-client-report-history-table .dropdown-menu {
        width: min(420px, calc(100vw - 32px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 32px) !important;
        box-sizing: border-box;
    }

    #client-report-history .cd-client-report-history-table .dropdown-menu > .d-flex.align-items-center {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    #client-report-history .cd-client-report-history-table .dropdown-menu > .d-flex.align-items-center > .text-truncate {
        min-width: 0;
        margin-right: 0 !important;
        text-align: left !important;
    }

    #client-report-history .cd-client-report-history-table .dropdown-menu > .d-flex.align-items-center > .btn {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        flex: 0 0 34px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }

    #client-report-history .cd-client-report-history-table > tbody > tr > .cd-client-report-history-empty {
        width: 100% !important;
        display: block !important;
        padding: 18px 12px !important;
        border: 0 !important;
        text-align: center !important;
    }

    #client-report-history .cd-client-report-history-pagination {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 12px !important;
        padding: 10px !important;
        box-sizing: border-box;
    }

    #client-report-history .cd-client-report-history-pagination > .row {
        margin: 0 !important;
        align-items: center;
        gap: 8px;
    }

    #client-report-history .cd-client-report-history-pagination > .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0 !important;
        text-align: center !important;
    }

    #client-report-history .cd-client-report-history-pagination .pagination {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 0 !important;
    }

    html[data-theme="light"] #client-report-history .cd-client-report-history-table > tbody > tr {
        border-color: rgba(68, 126, 163, .13) !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .045), transparent 10rem),
            #ffffff !important;
        box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(45, 83, 108, .07) !important;
    }

    html[data-theme="light"] #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label] {
        border-bottom-color: rgba(68, 126, 163, .09) !important;
    }

    html[data-theme="light"] #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label]::before {
        color: #678195;
    }
}

@media (max-width: 340px) {
    #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label] {
        grid-template-columns: 1fr;
        gap: 7px;
        text-align: left !important;
    }

    #client-report-history .cd-client-report-history-table > tbody > tr > td[data-label] > :is(.btn-group, .cd-icon-button) {
        justify-self: start;
    }
}

/* Update 49: responsive pages use one vertical document scroll; tabs wrap instead of creating extra scroll panes. */
@media (max-width: 991.98px) {
    html.cd-theme-document {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
        scrollbar-gutter: auto !important;
    }

    body.cd-body:not(.cd-auth-body):not(.modal-open):not(.document-editor-sidebar-open):not(.heatmap-screenshot-mobile-modal-open):not(.heatmap-report-sidebar-drawer-open) {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: clip !important;
        overflow-y: visible !important;
        overscroll-behavior-y: auto !important;
        scrollbar-gutter: auto !important;
    }

    body.cd-body #container.cd-app-shell,
    body.cd-body #container.cd-app-shell > #content,
    #content.cd-theme-scope.cd-form-page,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content > form,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content > .tab-content,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content > form > .tab-content,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content .tab-pane {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
        overscroll-behavior-y: auto !important;
        scrollbar-gutter: auto !important;
    }

    /* Keep the shared tab container neutral here; route-specific components own wrapping/overflow. */
    #content.cd-theme-scope :is(.cd-form-page-content, .cd-listing-page-content, .cd-card) > .nav.nav-tabs:not(.flex-column),
    #content.cd-theme-scope .cd-form-page-content .nav.nav-tabs:not(.flex-column):not(.document-editor-word-toolbar) {
        width: 100%;
        max-width: 100%;
        /* flex-wrap: wrap !important; */
        /* overflow: visible !important; */
        overscroll-behavior: auto !important;
        gap: 6px;
        scrollbar-width: auto !important;
    }

    #content.cd-theme-scope :is(.cd-form-page-content, .cd-listing-page-content, .cd-card) > .nav.nav-tabs:not(.flex-column) :is(.nav-item, .nav-link),
    #content.cd-theme-scope .cd-form-page-content .nav.nav-tabs:not(.flex-column):not(.document-editor-word-toolbar) :is(.nav-item, .nav-link) {
        min-width: 0;
        max-width: 100%;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    #client-report-history > .w-100[style*="min-height:500px"] {
        min-height: 260px !important;
    }
    body.cd-body #container.cd-app-shell,
    body.cd-body #container.cd-app-shell > #content,
    #content.cd-theme-scope.cd-form-page,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content > form,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content > .tab-content,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content > form > .tab-content,
    #content.cd-theme-scope.cd-form-page .cd-form-page-content .tab-pane {
        overflow-x: clip !important;
    }
}


/* Update 50: Heatmap edit responsive parity and gutter cleanup. */
.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm {
    min-width: 0;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn {
    min-width: 0;
    min-height: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 1px solid var(--cd-component-border, rgba(143, 193, 230, .15)) !important;
    border-radius: 0 !important;
    color: var(--cd-component-muted, #90a9bf) !important;
    background: var(--cd-component-control, #081d2e) !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transform: none !important;
}

.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn + .btn {
    margin-left: -1px !important;
}

.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:first-of-type {
    border-radius: 9px 0 0 9px !important;
}

.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:last-of-type {
    border-radius: 0 9px 9px 0 !important;
}

.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:not(:disabled):not(.disabled):not(.active):not(.bg-secondary):hover,
.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:not(:disabled):not(.disabled):not(.active):not(.bg-secondary):focus-visible {
    border-color: var(--cd-component-border-strong, rgba(143, 193, 230, .24)) !important;
    color: var(--cd-text-strong, #eff8fc) !important;
    background: var(--cd-component-hover, rgba(77, 169, 255, .08)) !important;
    box-shadow: none !important;
    transform: none !important;
}

.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:is(.active, .bg-secondary),
.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:is(.active, .bg-secondary):hover,
.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:is(.active, .bg-secondary):focus-visible {
    border-color: rgba(128, 211, 226, .42) !important;
    color: #ffffff !important;
    background: linear-gradient(115deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
    box-shadow: 0 10px 24px rgba(45, 58, 133, .18), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
    transform: none !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:not(.active):not(.bg-secondary) {
    border-color: rgba(68, 126, 163, .14) !important;
    color: #52758a !important;
    background: #f2f8fb !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:not(:disabled):not(.disabled):not(.active):not(.bg-secondary):hover,
html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:not(:disabled):not(.disabled):not(.active):not(.bg-secondary):focus-visible {
    border-color: rgba(68, 139, 181, .22) !important;
    color: #17384e !important;
    background: #e7f2f7 !important;
}

html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:is(.active, .bg-secondary),
html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:is(.active, .bg-secondary):hover,
html[data-theme="light"] .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons.btn-group.btn-group-sm > .btn:is(.active, .bg-secondary):focus-visible {
    border-color: rgba(128, 211, 226, .42) !important;
    color: #ffffff !important;
    background: linear-gradient(115deg, #7656c5 0%, #3c88bc 62%, #2e9eaa 100%) !important;
    box-shadow: 0 10px 24px rgba(45, 58, 133, .14), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}

@media (max-width: 991.98px) {
    .cd-heatmap-admin-page .cd-heatmap-report-content .cd-heatmap-report-toolbar {
        align-items: stretch !important;
        flex-direction: column;
        gap: 10px !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .cd-heatmap-report-toolbar > .heatmap-device-type-buttons,
    .cd-heatmap-admin-page .cd-heatmap-report-content .cd-heatmap-report-toolbar > #heatmap-right-buttons {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-right-buttons {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 240px !important;
    }
    .cd-heatmap-admin-page #tab-pages .table-responsive {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cd-heatmap-admin-page #tab-pages .heatmap-page-report-screenshots-row > .heatmap-page-details-grid-td,
    .cd-heatmap-admin-page #tab-pages .heatmap-page-details-grid,
    .cd-heatmap-admin-page #tab-pages .heatmap-page-match-column,
    .cd-heatmap-admin-page #tab-pages .heatmap-page-report-screenshots,
    .cd-heatmap-admin-page #tab-pages .heatmap-page-report-screenshots-list,
    .cd-heatmap-admin-page #tab-pages .heatmap-page-report-screenshot-option,
    .cd-heatmap-admin-page #tab-pages .heatmap-page-report-screenshot-details {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cd-heatmap-admin-page #tab-pages .heatmap-page-details-grid {
        width: 100%;
        overflow: hidden;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-heatmap-admin-page #tab-pages .heatmap-page-match-column {
        padding-right: 24px !important;
    }

    .cd-heatmap-admin-page #tab-pages .heatmap-page-report-screenshots {
        width: 100%;
        margin-top: 0 !important;
        padding: 14px 14px 14px 24px !important;
        border-top: 1px solid rgba(109, 184, 213, .13) !important;
        border-left: 0 !important;
    }

    .cd-heatmap-admin-page #tab-pages .heatmap-page-report-screenshot-option {
        width: 100%;
        flex-basis: auto !important;
    }
    .cd-heatmap-admin-page > .container-fluid {
        width: 100%;
        max-width: none;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-heatmap-admin-page > .container-fluid > .row.gx-3 {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .cd-heatmap-admin-page > .container-fluid > .row.gx-3 > .col-12 {
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-heatmap-admin-page .cd-form-tabs-card {
        margin-bottom: 8px;
        padding: 6px !important;
    }

    .cd-heatmap-admin-page #heatmap-main-tabs {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .cd-heatmap-admin-page #heatmap-main-tabs > .nav-item,
    .cd-heatmap-admin-page #heatmap-main-tabs > .nav-item > .nav-link {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0 !important;
    }

    .cd-heatmap-admin-page #heatmap-main-tabs > .nav-item > .nav-link {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px !important;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap !important;
    }

    .cd-heatmap-admin-page > .container-fluid > .row.gx-3 > .col-12.mb-3 {
        margin-bottom: 8px !important;
    }

    .cd-heatmap-admin-page .tab-content,
    .cd-heatmap-admin-page .tab-content > .tab-pane,
    .cd-heatmap-admin-page .tab-content > .tab-pane.active {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .cd-heatmap-admin-page .tab-content > .tab-pane {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-heatmap-admin-page .tab-content > .tab-pane.cd-heatmap-report-content {
        padding: 0 !important;
        overflow: visible !important;
    }

    .cd-heatmap-admin-page .tab-content > .tab-pane > .cd-report-tab-panel-card,
    .cd-heatmap-admin-page #tab-settings > form > .cd-report-tab-panel-card,
    .cd-heatmap-admin-page .cd-heatmap-report-content > .cd-report-tab-panel-card,
    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-report-card {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 12px !important;
        border-radius: 13px !important;
    }

    .cd-heatmap-admin-page :is(#tab-pages, #tab-reports-history) > .cd-report-tab-panel-card,
    .cd-heatmap-admin-page #tab-settings > form > .cd-report-tab-panel-card {
        padding: 14px !important;
    }

    /* The report owns an intentional 9/3 grid on desktop; remove its outer Bootstrap gutters once stacked. */
    .cd-heatmap-admin-page .cd-heatmap-report-content .row {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content :is(.col-12, .col-lg-9, .col-lg-3) {
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons {
        width: 100% !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons > .btn {
        flex: 1 1 0 !important;
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-right-buttons > .btn-group,
    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-right-buttons > .input-group {
        min-width: 0 !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-right-buttons > .input-group,
    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-right-buttons > .input-group:has(> #input-report-date-range) {
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 100% !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-right-buttons > .btn-group:not(.d-none) {
        flex: 0 0 auto !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content #heatmap-click-stage-top-bar {
        width: 100%;
        align-items: stretch !important;
        flex-direction: column;
        gap: 10px !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-report-view-left-controls {
        width: 100%;
        min-width: 0;
        align-items: stretch !important;
        flex-direction: column;
        gap: 8px !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content :is(.heatmap-report-view-mode-dropdown, .heatmap-report-view-mode-button) {
        width: 100% !important;
        max-width: none !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-report-type-buttons {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px !important;
        padding: 5px !important;
        overflow: visible !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-report-type-buttons > .btn {
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
        border-radius: 9px !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-screenshot-nav-group {
        width: 100% !important;
        justify-content: stretch;
        overflow: visible !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-screenshot-nav-group > .btn,
    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-screenshot-nav-group > .dropdown,
    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-screenshot-nav-group .heatmap-screenshot-dropdown-toggle {
        min-width: 0;
        flex: 1 1 0;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-screenshot-nav-group > .dropdown {
        display: flex;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-screenshot-nav-group .heatmap-screenshot-dropdown-toggle {
        width: 100%;
        height: 40px !important;
    }

    .cd-heatmap-admin-page #tab-pages > .cd-report-tab-panel-card > .d-flex.align-items-center.justify-content-between {
        width: 100%;
        min-width: 0;
        align-items: stretch !important;
        flex-direction: column;
        gap: 10px;
    }

    .cd-heatmap-admin-page #tab-pages > .cd-report-tab-panel-card > .d-flex.align-items-center.justify-content-between > div:first-child {
        width: 100%;
        min-width: 0;
    }

    .cd-heatmap-admin-page #tab-pages > .cd-report-tab-panel-card > .d-flex.align-items-center.justify-content-between > .btn-group {
        width: 100%;
        min-width: 0;
        display: flex !important;
        align-items: stretch;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .cd-heatmap-admin-page #tab-pages > .cd-report-tab-panel-card > .d-flex.align-items-center.justify-content-between > .btn-group > #button-add-heatmap-page {
        width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 100% !important;
        order: 1;
        margin: 0 !important;
        border-radius: 9px !important;
        justify-content: center;
    }

    .cd-heatmap-admin-page #tab-pages > .cd-report-tab-panel-card > .d-flex.align-items-center.justify-content-between > .btn-group > .btn-light {
        width: 42px !important;
        min-width: 42px !important;
        flex: 0 0 42px !important;
        order: 2;
        margin: 0 !important;
        border-radius: 9px !important;
    }

    .cd-heatmap-admin-page .heatmap-page-details-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-heatmap-admin-page .heatmap-page-match-column,
    .cd-heatmap-admin-page .heatmap-page-report-screenshots {
        width: 100%;
        min-width: 0;
    }

    .cd-heatmap-admin-page .heatmap-page-match-column {
        padding: 12px !important;
    }

    .cd-heatmap-admin-page .heatmap-page-report-screenshots {
        margin-top: 0 !important;
        padding: 12px !important;
        border-top: 1px solid rgba(109, 184, 213, .13) !important;
        border-left: 0 !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-table-actions {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        justify-content: stretch !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-table-actions > .heatmap-table-metric-dropdown,
    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-table-actions .heatmap-table-add-metric-button {
        width: 100% !important;
        max-width: none !important;
    }

    .cd-heatmap-admin-page #tab-reports-history > .cd-report-tab-panel-card,
    .cd-heatmap-admin-page #heatmap-report-history {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cd-heatmap-admin-page #tab-reports-history > .cd-report-tab-panel-card > .text-right {
        text-align: center !important;
    }

    .cd-heatmap-admin-page #tab-reports-history #button-generate-report {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .cd-heatmap-admin-page #heatmap-main-tabs > .nav-item > .nav-link {
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 11px;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content :is(.heatmap-device-type-buttons, .heatmap-report-type-buttons) > .btn {
        font-size: 11px !important;
    }

    .cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-device-type-buttons > .btn span {
        display: none;
    }
}


/* Update 51: Heatmap mobile loading/sidebar/history cleanup. */
.cd-heatmap-admin-page .cd-heatmap-report-content .heatmap-click-loading {
    box-sizing: border-box;
    padding-right: 12px !important;
    padding-left: 12px !important;
}

@media (max-width: 767.98px) {
    .cd-heatmap-admin-page .cd-heatmap-report-content #button-heatmap-report-sidebar-toggle {
        display: none !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history {
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table {
        width: 100% !important;
        min-width: 0 !important;
        display: block;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > thead {
        display: none !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody {
        width: 100%;
        display: grid;
        gap: 12px;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        display: grid !important;
        margin: 0 !important;
        padding: 8px !important;
        overflow: visible !important;
        border: 1px solid rgba(105, 174, 207, .14) !important;
        border-radius: 15px !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .07), transparent 10rem),
            rgba(7, 27, 42, .68) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 8px 20px rgba(0,8,22,.08) !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: minmax(108px, .85fr) minmax(0, 1.15fr);
        align-items: center;
        gap: 10px;
        padding: 9px 8px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(105, 174, 207, .09) !important;
        text-align: right !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label]::before {
        content: attr(data-label);
        min-width: 0;
        color: var(--cd-text-muted, #91adbb);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: .035em;
        text-align: left;
        text-transform: uppercase;
        white-space: normal;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label] > :is(.btn-group, .btn, .cd-icon-button) {
        justify-self: end;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table .heatmap-history-action-group {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100%;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        margin-left: auto !important;
        justify-self: end !important;
        overflow: hidden !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-empty {
        width: 100% !important;
        display: block !important;
        padding: 18px 12px !important;
        border: 0 !important;
        text-align: center !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-pagination {
        margin-top: 12px !important;
        padding: 10px 8px !important;
        border: 0 !important;
        border-radius: 13px !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-pagination > .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
        gap: 8px;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-pagination > .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: center !important;
    }

    html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr {
        border-color: rgba(68, 126, 163, .13) !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .045), transparent 10rem),
            #fff !important;
        box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(45,83,108,.07) !important;
    }

    html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label] {
        border-bottom-color: rgba(68, 126, 163, .09) !important;
    }

    html[data-theme="light"] .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label]::before {
        color: #678195;
    }
}

@media (max-width: 380px) {
    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label] {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left !important;
    }

    .cd-heatmap-admin-page #heatmap-report-history .cd-heatmap-history-table > tbody > tr > td[data-label] > :is(.btn-group, .btn, .cd-icon-button) {
        justify-self: end;
    }
}

/* Update 52: Audit listing mobile problem badges and last-report metadata. */
@media (max-width: 767.98px) {
    #form-audit .audit-list-item > .audit-list-problems-cell {
        min-width: 128px;
        vertical-align: middle;
        white-space: nowrap;
    }

    #form-audit .audit-list-item > .audit-list-problems-cell > .badge {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 2px !important;
        padding: 0 5px !important;
        border-radius: 8px !important;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
        vertical-align: middle;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    }

    #form-audit .audit-list-item > td:nth-child(8) {
        min-width: 132px;
        vertical-align: middle;
    }

    #form-audit .audit-list-item > td:nth-child(8) > div:first-child,
    #form-audit .audit-list-item > td:nth-child(8) > div:nth-child(2) {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        display: flex;
        justify-content: flex-end;
    }

    #form-audit .audit-list-item > td:nth-child(8) > div:first-child > strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 5px 8px;
        border: 1px solid rgba(111, 173, 205, .15);
        border-radius: 8px;
        background: rgba(12, 38, 56, .58);
        color: var(--cd-text-primary, #dff4fb);
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    #form-audit .audit-list-item > td:nth-child(8) > div:nth-child(2) {
        margin-top: 5px !important;
    }

    #form-audit .audit-list-item > td:nth-child(8) > div:nth-child(2) > small {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 3px 7px;
        border-radius: 999px;
        background: rgba(111, 173, 205, .09);
        color: var(--cd-text-muted, #8fa9bb) !important;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    html[data-theme="light"] #form-audit .audit-list-item > td:nth-child(8) > div:first-child > strong {
        border-color: rgba(68, 126, 163, .13);
        background: rgba(235, 245, 250, .9);
        color: #23475d;
    }

    html[data-theme="light"] #form-audit .audit-list-item > td:nth-child(8) > div:nth-child(2) > small {
        background: rgba(68, 126, 163, .08);
        color: #668195 !important;
    }
}

/* Update 53: Audit edit mobile layout and light-mode report polish. */
.cd-audit-admin-report .audit-report-detail,
.cd-audit-admin-report .audit-report-detail strong {
    min-width: 0;
    max-width: 100%;
}

.cd-audit-admin-report .audit-report-detail strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-list li {
    border-color: rgba(68, 126, 163, .13) !important;
    color: #36586d !important;
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: inset 0 1px 0 #ffffff !important;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-list li strong {
    color: #17384e !important;
}

html[data-theme="light"] .cd-audit-admin-report .audit-report-priority-list li :is(div, span, em) {
    color: #607d8f !important;
}

html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-validation-alert.alert-warning {
    border-color: rgba(180, 128, 35, .18) !important;
    color: #6d5425 !important;
    background: linear-gradient(135deg, #fff9eb 0%, #fffdf8 100%) !important;
    box-shadow: inset 3px 0 0 rgba(199, 145, 47, .72) !important;
}

html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-validation-alert.alert-warning h4 {
    color: #765216 !important;
}

html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-validation-alert.alert-warning p {
    color: #705d39 !important;
}

html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-validation-alert.alert-warning > .table-responsive.bg-white {
    overflow-x: auto;
    border: 1px solid rgba(180, 128, 35, .14);
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-validation-alert.alert-warning table {
    color: #36586d !important;
    background: transparent !important;
}

html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-validation-alert.alert-warning thead th {
    border-color: rgba(170, 120, 31, .14) !important;
    color: #6b5429 !important;
    background: #fff7e7 !important;
}

html[data-theme="light"] .cd-audit-admin-page #tab-report .audit-report-validation-alert.alert-warning tbody td {
    border-color: rgba(68, 126, 163, .10) !important;
    color: #36586d !important;
    background: #ffffff !important;
}

@media (max-width: 767.98px) {
    .cd-audit-admin-page > .container-fluid {
        width: 100%;
        max-width: none;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-audit-admin-page > .container-fluid > .row.gx-3 {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .cd-audit-admin-page > .container-fluid > .row.gx-3 > .col-12 {
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-audit-admin-page .cd-form-tabs-card {
        margin-bottom: 8px;
        padding: 6px !important;
    }

    .cd-audit-admin-page #audit-main-tabs {
        width: 100%;
        display: flex !important;
        align-items: stretch;
        gap: 6px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .cd-audit-admin-page #audit-main-tabs > .nav-item {
        min-width: 0;
        flex: 1 1 0 !important;
        margin: 0 !important;
    }

    .cd-audit-admin-page #audit-main-tabs > .nav-item > .nav-link {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 8px 10px !important;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap !important;
    }

    .cd-audit-admin-page > .container-fluid > .row.gx-3 > .col-12.mb-3 {
        margin-bottom: 8px !important;
    }

    .cd-audit-admin-page #tab-report .audit-report-toolbar {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }

    .cd-audit-admin-page #tab-report .audit-report-toolbar > .d-flex.flex-column.align-items-start {
        width: 100%;
        min-width: 0;
        margin-right: 0 !important;
    }

    .cd-audit-admin-page #button-begin-audit-check {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-content: center;
    }

    .cd-audit-admin-page #audit-report-export-buttons.audit-report-export-controls {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px !important;
        margin: 0 !important;
    }

    .cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: stretch !important;
        flex: 0 0 auto !important;
    }

    .cd-audit-admin-page #audit-report-export-buttons .audit-report-export-action-group > :is(.btn, .cd-icon-button) {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 42px !important;
        min-height: 42px !important;
        flex: 1 1 0 !important;
    }

    .cd-audit-admin-page #audit-report-day-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .cd-audit-admin-page #audit-check-progress {
        width: 100%;
        min-width: 0;
    }

    .cd-audit-admin-page #audit-report-container {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .cd-audit-admin-page #audit-report-container > [class*="col-"] {
        min-width: 0;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }


    .cd-audit-admin-report .audit-report-detail {
        width: 100%;
    }
}


/* Update 54: Audit edit tablet day picker keeps canonical control height. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cd-audit-admin-page #audit-report-export-buttons.audit-report-export-controls {
        align-items: center !important;
    }

    .cd-audit-admin-page #audit-report-day-container.audit-report-day-picker-group {
        width: 220px !important;
        min-width: 190px !important;
        max-width: 220px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 220px !important;
        align-self: center !important;
    }

    .cd-audit-admin-page #audit-report-day-container.audit-report-day-picker-group > .audit-report-day-picker {
        min-width: 0 !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 40px !important;
    }

    .cd-audit-admin-page #audit-report-day-container.audit-report-day-picker-group > .audit-report-day-reset-button {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        flex: 0 0 42px !important;
        align-self: center !important;
    }
}

/* Update 55: SEO edit responsive pass aligned with tool/theme_design. */
.cd-seo-admin-form-page #tab-content-pages > .tab-pane {
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page .cd-seo-page-keyword-actions {
    gap: 10px;
}

.cd-seo-admin-form-page .cd-seo-page-keyword-total {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px !important;
    white-space: normal;
    text-align: center;
}

.cd-seo-admin-form-page .cd-seo-data-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    border: 1px solid rgba(106,174,207,.13);
    border-radius: 14px;
    background: rgba(7,27,42,.62);
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.cd-seo-admin-form-page .cd-seo-data-table-wrap > .cd-seo-data-table {
    margin: 0 !important;
}

.cd-seo-admin-form-page .cd-seo-data-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom-color: rgba(106,174,207,.12) !important;
    color: #a9cad9 !important;
    background: #0c2a3e !important;
}

.cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td,
.cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr > td {
    border-color: rgba(106,174,207,.09) !important;
}

.cd-seo-admin-form-page .cd-seo-data-table > tbody > tr:hover > td {
    background: rgba(67,143,179,.055) !important;
}

.cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr > td {
    min-height: 48px;
    background: rgba(7,27,42,.76) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table-wrap {
    border-color: rgba(68,126,163,.13);
    background: #fff;
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > thead > tr > th {
    border-bottom-color: rgba(68,126,163,.11) !important;
    color: #496d82 !important;
    background: #eef6f9 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td,
html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr > td {
    border-color: rgba(68,126,163,.09) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr:hover > td {
    background: #f7fbfd !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr > td {
    background: #f8fbfd !important;
}


.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .cd-seo-check-results-table-wrap,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .cd-seo-check-results-table,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table {
    width: 100% !important;
    min-width: 520px !important;
    table-layout: auto !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table th:first-child,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table td:first-child {
    min-width: 230px;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table th:nth-child(2),
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table td:nth-child(2) {
    min-width: 100px;
    white-space: nowrap;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table th:last-child,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table td:last-child {
    width: 64px;
    min-width: 64px;
    white-space: nowrap;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table .cd-icon-button,
.cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table .add-to-report-button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content > .mb-3 > .nav {
    max-width: 100%;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .seo-report-competitor-tab-badge {
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .seo-report-competitor-tab-badge > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content :is(.cd-seo-competitor-admin-layout, .cd-seo-competitor-summary-metrics, .cd-seo-competitor-winning-pages-grid, .cd-seo-competitor-signal-grid) {
    min-width: 0;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content :is(.cd-seo-competitor-subcard, .cd-seo-report-card, .card, .card-body) {
    min-width: 0;
}

.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto !important;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table {
    width: 100% !important;
    min-width: 420px;
    margin: 0 !important;
    table-layout: fixed;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td {
    border-color: rgba(106,174,207,.09) !important;
    background: transparent !important;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr:hover > td {
    background: rgba(67,143,179,.055) !important;
}

.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table td:nth-child(2),
.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table th:nth-child(2) {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td {
    border-color: rgba(68,126,163,.09) !important;
}

html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr:hover > td {
    background: #f7fbfd !important;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner {
    z-index: 20000 !important;
    padding: 18px;
    background: rgba(0,7,18,.76) !important;
    backdrop-filter: blur(8px);
}

#main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-card {
    width: min(760px, 96vw);
    max-height: min(760px, calc(100dvh - 36px));
    overflow: hidden;
    border: 1px solid rgba(109,181,211,.18) !important;
    border-radius: 16px !important;
    color: #dceef6 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118,86,197,.12), transparent 20rem),
        linear-gradient(145deg, rgba(9,31,47,.98), rgba(5,21,35,.98)) !important;
    box-shadow: 0 24px 64px rgba(0,6,18,.4), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-card .card-body {
    max-height: inherit;
    overflow: hidden;
    padding: 20px !important;
    color: inherit !important;
    background: transparent !important;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner #main-report-check-progress-title {
    color: #effbff !important;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 15px;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner #main-report-check-progress-count {
    color: #9fc0cf !important;
    font-size: 12.5px !important;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner #main-report-check-progress-keywords {
    max-height: min(430px, 52vh);
    padding-right: 4px;
    overflow: auto;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-progress-keyword {
    margin: 0 0 7px;
    padding: 9px 10px;
    border: 1px solid rgba(109,181,211,.12) !important;
    border-radius: 10px !important;
    color: #dceef6 !important;
    background: rgba(255,255,255,.028) !important;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-progress-keyword-text {
    color: #e9f7fc !important;
}

#main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-progress-keyword-location {
    color: #8fb2c2 !important;
}

html[data-theme="light"] #main-report-check-spinner.cd-seo-main-report-check-spinner {
    background: rgba(224,235,242,.72) !important;
}

html[data-theme="light"] #main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-card {
    border-color: rgba(68,126,163,.18) !important;
    color: #355d75 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(118,86,197,.06), transparent 20rem),
        #fff !important;
    box-shadow: 0 24px 58px rgba(45,83,108,.18), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] #main-report-check-spinner.cd-seo-main-report-check-spinner #main-report-check-progress-title,
html[data-theme="light"] #main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-progress-keyword-text {
    color: #244d68 !important;
}

html[data-theme="light"] #main-report-check-spinner.cd-seo-main-report-check-spinner #main-report-check-progress-count,
html[data-theme="light"] #main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-progress-keyword-location {
    color: #678195 !important;
}

html[data-theme="light"] #main-report-check-spinner.cd-seo-main-report-check-spinner .main-report-check-progress-keyword {
    border-color: rgba(68,126,163,.12) !important;
    color: #355d75 !important;
    background: #f8fbfd !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-count-menu-header {
    display: none;
}

@media (max-width: 991.98px) {
    .cd-seo-admin-form-page .cd-seo-competitor-count-dropdown .cd-seo-competitor-count-menu {
        width: min(420px, calc(100vw - 24px)) !important;
        min-width: min(340px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: min(62vh, 420px);
        max-height: min(62dvh, 420px);
        margin-top: 6px;
        overflow: hidden;
    }

    .cd-seo-admin-form-page .cd-seo-competitor-count-menu-header {
        display: none;
    }

    .cd-seo-admin-form-page .cd-seo-competitor-count-menu-body {
        max-height: min(62vh, 420px);
        max-height: min(62dvh, 420px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .cd-seo-admin-form-page .cd-seo-competitor-count-menu-body .text-truncate {
        max-width: min(220px, calc(100vw - 130px)) !important;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-summary-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-winning-pages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cd-seo-admin-form-page .cd-seo-results-toolbar {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .cd-seo-admin-form-page .cd-seo-results-toolbar > * {
        margin: 0 !important;
    }

    .cd-seo-admin-form-page .cd-seo-results-toolbar > .seo-report-export-btn {
        width: 42px;
        min-width: 42px;
        height: 40px;
        min-height: 40px;
        flex: 0 0 42px;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px !important;
    }

    .cd-seo-admin-form-page .cd-seo-results-toolbar > #check-results-day-buttons {
        flex: 0 0 auto;
        gap: 0 !important;
    }

    .cd-seo-admin-form-page .cd-seo-results-toolbar > :is(#search-results-date-container, #search-results-day-container) {
        width: auto;
        min-width: min(190px, 100%);
        max-width: 100%;
        flex: 1 1 210px;
    }

    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .cd-seo-search-result-stats,
    .cd-seo-admin-form-page .cd-seo-search-result-stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .cd-seo-admin-form-page .cd-seo-search-result-stats .cd-seo-keyword-stat {
        min-width: 0;
        min-height: 88px;
        padding: 12px !important;
    }

    .cd-seo-admin-form-page .cd-seo-search-result-stats .cd-seo-keyword-stat > div {
        min-width: 0;
    }

    .cd-seo-admin-form-page .cd-seo-search-result-stats .cd-seo-keyword-stat > div > span {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .cd-seo-admin-form-page .cd-seo-page-keyword-actions {
        align-items: stretch !important;
        flex-wrap: wrap;
    }

    .cd-seo-admin-form-page .cd-seo-page-keyword-actions-group {
        min-width: 0;
        flex: 1 1 230px;
    }

    .cd-seo-admin-form-page .cd-seo-page-keyword-actions-group > .btn {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        white-space: normal;
    }

    .cd-seo-admin-form-page .cd-seo-page-keyword-total {
        flex: 1 1 180px;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content > .mb-3 > .nav {
        width: 100%;
        display: flex !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .seo-report-competitor-tab-badge {
        width: 148px;
        min-width: 148px;
        max-width: 148px;
        min-height: 62px;
        flex: 0 0 148px !important;
        scroll-snap-align: start;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content > .secondary-cont-results-page-top {
        align-items: stretch;
        flex-direction: column;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content > .secondary-cont-results-page-top .input-group {
        width: 100%;
        min-width: 0;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-summary-metrics,
    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-signal-grid {
        grid-template-columns: 1fr !important;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-admin-heading,
    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-card-heading,
    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-subcard-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .table-responsive {
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .cd-seo-admin-form-page .cd-seo-data-table-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > thead {
        display: none !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tbody {
        width: 100%;
        min-width: 0;
        display: grid;
        gap: 12px;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: grid !important;
        margin: 0 !important;
        padding: 8px !important;
        overflow: visible !important;
        border: 1px solid rgba(105,174,207,.14) !important;
        border-radius: 15px !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118,86,197,.07), transparent 10rem),
            rgba(7,27,42,.68) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 8px 20px rgba(0,8,22,.08) !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td[data-label] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(116px, .9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: 10px;
        padding: 9px 8px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(105,174,207,.09) !important;
        background: transparent !important;
        text-align: right !important;
        white-space: normal !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td[data-label]::before {
        content: attr(data-label);
        min-width: 0;
        color: var(--cd-text-muted, #91adbb);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: .035em;
        text-align: left;
        text-transform: uppercase;
        white-space: normal;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td[data-label] > :is(.form-control, .cd-listing-action-group) {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        justify-self: stretch;
    }

    .cd-seo-admin-form-page .cd-seo-data-table .cd-seo-data-row-actions {
        width: auto !important;
        justify-self: end !important;
        justify-content: flex-end !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tfoot {
        width: 100%;
        display: block;
        margin-top: 12px;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr {
        width: 100%;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px !important;
        border: 1px solid rgba(105,174,207,.13) !important;
        border-radius: 13px !important;
        background: rgba(7,27,42,.62) !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr > .cd-seo-data-table-footer-meta {
        min-width: 0;
        flex: 1 1 auto;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left !important;
        white-space: normal;
    }

    .cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr > .cd-seo-data-table-footer-action {
        width: 36px;
        min-width: 36px;
        flex: 0 0 36px;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr,
    html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tfoot > tr {
        border-color: rgba(68,126,163,.13) !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118,86,197,.045), transparent 10rem),
            #fff !important;
        box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(45,83,108,.07) !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td[data-label] {
        border-bottom-color: rgba(68,126,163,.09) !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td[data-label]::before {
        color: #678195;
    }

    .cd-modal.cd-seo-results-evolution-modal .modal-dialog,
    .cd-modal.cd-seo-competitor-keyword-rules-modal .modal-dialog {
        width: calc(100vw - 16px);
        max-width: none;
        margin: 8px auto;
    }

    .cd-modal.cd-seo-results-evolution-modal .modal-content,
    .cd-modal.cd-seo-competitor-keyword-rules-modal .modal-content {
        max-height: calc(100dvh - 16px);
        border-radius: 14px !important;
    }

    .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions > .d-flex {
        width: 100%;
    }

    .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions .cd-button {
        flex: 1 1 160px;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .cd-seo-admin-form-page .cd-seo-results-toolbar > :is(#search-results-date-container, #search-results-day-container) {
        width: 100%;
        flex: 1 1 100%;
    }

    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .cd-seo-search-result-stats,
    .cd-seo-admin-form-page .cd-seo-search-result-stats {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cd-seo-admin-form-page .cd-seo-page-keyword-actions {
        flex-direction: column;
    }

    .cd-seo-admin-form-page .cd-seo-page-keyword-actions-group,
    .cd-seo-admin-form-page .cd-seo-page-keyword-total {
        width: 100%;
        flex: 1 1 auto;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .seo-report-competitor-tab-badge {
        width: 138px;
        min-width: 138px;
        max-width: 138px;
        flex-basis: 138px !important;
    }

    .cd-seo-admin-form-page #check-keywords-container #locationTabsContent .cd-seo-check-results-table,
    .cd-seo-admin-form-page #check-keywords-container #locationTabsContent .table {
        min-width: 470px !important;
    }

    .cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table {
        min-width: 0 !important;
        display: block;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > thead {
        display: none !important;
    }

    .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody {
        width: 100%;
        display: grid;
        gap: 8px;
    }

    .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr {
        width: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 4px;
        padding: 7px !important;
        border: 1px solid rgba(105,174,207,.13) !important;
        border-radius: 11px !important;
        background: rgba(7,27,42,.58) !important;
    }

    .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 7px 8px !important;
        border: 0 !important;
    }

    .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td:first-child {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }

    .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td[colspan] {
        grid-column: 1 / -1;
        width: 100% !important;
    }

    html[data-theme="light"] .cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr {
        border-color: rgba(68,126,163,.12) !important;
        background: #fff !important;
        box-shadow: inset 0 1px 0 #fff;
    }

    .cd-seo-competitor-keyword-rules-modal .modal-footer {
        align-items: stretch !important;
        flex-direction: column-reverse;
    }

    .cd-seo-competitor-keyword-rules-modal .modal-footer .cd-button {
        width: 100%;
        flex: 1 1 auto !important;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .cd-seo-admin-form-page .cd-seo-data-table > tbody > tr > td[data-label] {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left !important;
    }

    .cd-seo-admin-form-page .cd-seo-data-table .cd-seo-data-row-actions {
        justify-self: start !important;
    }
}

/* Update 56: SEO edit follow-up responsive corrections (reviewed). */
.cd-seo-admin-form-page #tab-results > .main-cont-results-page-top {
    align-items: center;
    gap: 10px;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar {
    width: auto;
    max-width: 100%;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-left: auto;
    overflow: visible !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > * {
    margin: 0 !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > .seo-report-export-btn {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    max-width: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    min-height: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: var(--cd-admin-control-radius) !important;
}

.cd-seo-admin-form-page .cd-seo-results-period-toggle {
    min-width: 118px !important;
    height: var(--cd-admin-control-height) !important;
    flex: 0 0 auto !important;
    gap: 0 !important;
    overflow: hidden;
    border-radius: var(--cd-admin-control-radius) !important;
}

.cd-seo-admin-form-page .cd-seo-results-period-toggle > .btn {
    min-width: 58px !important;
    min-height: var(--cd-admin-control-height) !important;
    height: var(--cd-admin-control-height) !important;
    flex: 1 1 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > :is(#search-results-date-container, #search-results-day-container) {
    width: 190px !important;
    min-width: 170px !important;
    max-width: 190px !important;
    height: var(--cd-admin-control-height) !important;
    min-height: var(--cd-admin-control-height) !important;
    flex: 0 0 190px !important;
    overflow: hidden;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > :is(#search-results-date-container, #search-results-day-container) > .form-control {
    min-width: 0 !important;
}

.cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > :is(#search-results-date-container, #search-results-day-container) > .cd-icon-button {
    width: var(--cd-admin-control-height) !important;
    min-width: var(--cd-admin-control-height) !important;
    flex: 0 0 var(--cd-admin-control-height) !important;
}

/* Evolution history uses the standard modal shell and report-table component. */
.cd-modal.cd-seo-results-evolution-modal .modal-dialog {
    max-width: 760px;
}

.cd-modal.cd-seo-results-evolution-modal .modal-body {
    min-width: 0;
}

.cd-modal.cd-seo-results-evolution-modal .cd-seo-evolution-table-wrap {
    max-height: min(520px, calc(100dvh - 190px));
    overflow: auto;
    border-radius: 14px;
    overscroll-behavior: contain;
}

.cd-modal.cd-seo-results-evolution-modal .cd-seo-evolution-table {
    min-width: 560px;
    margin: 0;
}

.cd-modal.cd-seo-results-evolution-modal .cd-seo-evolution-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 12px !important;
    font-size: 12px !important;
}

.cd-modal.cd-seo-results-evolution-modal .cd-seo-evolution-table > tbody > tr > td {
    padding: 10px 12px !important;
}

.cd-modal.cd-seo-results-evolution-modal .cd-seo-evolution-table td:last-child > span {
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic keyword-check location tabs use the canonical SEO location component. */
.cd-seo-admin-form-page #check-keywords-container #locationTabs.cd-seo-check-location-tabs {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 2px 2px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 0 !important;
    background: transparent !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab {
    min-width: 220px;
    min-height: 64px;
    flex: 0 0 220px;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.active {
    border-color: rgba(170,145,239,.5) !important;
    color: #fff !important;
    background:
        linear-gradient(105deg, rgba(87,61,165,.86), rgba(42,127,175,.72)),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat !important;
    box-shadow: 0 16px 34px rgba(35,25,93,.24), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.active {
    color: #fff !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent.cd-seo-check-location-panels {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabsContent > .tab-pane {
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-results-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 14px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-results-table {
    width: 100%;
    min-width: 560px;
    margin: 0;
    table-layout: auto;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-results-table > thead > tr > th {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-results-table > :is(thead, tbody) > tr > :first-child {
    min-width: 260px;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-results-table > :is(thead, tbody) > tr > :nth-child(2) {
    width: 110px;
    min-width: 110px;
    white-space: nowrap;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-results-table > :is(thead, tbody) > tr > :last-child {
    width: 58px;
    min-width: 58px;
    text-align: right;
    white-space: nowrap;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-section-row > td {
    padding: 9px 12px !important;
    color: #dceef6 !important;
    background: rgba(75,139,177,.11) !important;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-subheading-row > td {
    padding: 7px 12px !important;
    color: #8fabb9 !important;
    background: rgba(255,255,255,.018) !important;
    font-size: 12px;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container .cd-seo-location-section-row > td {
    color: #355d75 !important;
    background: #eef6f9 !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container .cd-seo-location-subheading-row > td {
    color: #6b8495 !important;
    background: #f8fbfc !important;
}

.cd-seo-admin-form-page #check-keywords-container .cd-seo-location-action .add-to-report-button {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
}

/* Competitor cumulative distribution: one visual surface, no nested table borders. */
.cd-seo-admin-form-page .cd-seo-competitor-distribution-card {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-distribution-card > .card-header {
    padding: 0 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-distribution-card > .card-body,
.cd-seo-admin-form-page .cd-seo-competitor-distribution-wrap {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-distribution-table > thead > tr > th {
    border: 0 !important;
    border-bottom: 1px solid rgba(105,174,207,.11) !important;
    background: transparent !important;
}

.cd-seo-admin-form-page .cd-seo-competitor-distribution-table > tbody > tr > td {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-competitor-distribution-table > thead > tr > th {
    border-bottom-color: rgba(68,126,163,.11) !important;
}

@media (max-width: 1199.98px) {
    .cd-seo-admin-form-page #tab-results > .main-cont-results-page-top {
        align-items: stretch;
        gap: 10px;
    }

    .cd-seo-admin-form-page #tab-results > .main-cont-results-page-top > .cd-seo-results-search-actions,
    .cd-seo-admin-form-page #tab-results > .main-cont-results-page-top > .cd-seo-results-toolbar {
        width: 100%;
        max-width: 100%;
    }

    .cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar {
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar {
        display: grid !important;
        grid-template-columns: 42px 42px minmax(0, 1fr);
        align-items: stretch !important;
        justify-content: stretch !important;
        gap: 8px !important;
    }

    .cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > .seo-report-export-btn {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 40px !important;
        min-height: 40px !important;
        flex: none !important;
    }

    .cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > .cd-seo-results-period-toggle {
        grid-column: 3;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 40px !important;
        min-height: 40px !important;
        flex: none !important;
    }

    .cd-seo-admin-form-page .inner-search-cont-results-page-top.cd-seo-results-toolbar > :is(#search-results-date-container, #search-results-day-container) {
        grid-column: 1 / -1;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 40px !important;
        min-height: 40px !important;
        flex: none !important;
    }

    .cd-modal.cd-seo-results-evolution-modal .modal-body {
        padding: 12px !important;
    }

    .cd-modal.cd-seo-results-evolution-modal .cd-seo-evolution-table-wrap {
        max-height: calc(100dvh - 132px);
    }

    .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab {
        min-width: min(220px, calc(100vw - 54px));
        flex-basis: min(220px, calc(100vw - 54px));
    }

    .cd-seo-admin-form-page #check-keywords-container .cd-seo-location-results-table {
        min-width: 520px;
    }
}

@media (max-width: 380px) {
    .cd-seo-admin-form-page .cd-seo-results-period-toggle > .btn {
        min-width: 0 !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
        font-size: 11px;
    }
}

/* Update 57: SEO competitor totals, location inputs and check-location tabs. */
.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-card {
    overflow: hidden;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-card > .card-header {
    padding: 12px 14px !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-card > .card-body {
    padding: 0 14px 10px !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-wrap {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-table {
    width: 100%;
    margin: 0 !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-table > tbody > tr > td {
    padding: 9px 8px !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-table > tbody > tr > td:first-child {
    padding-left: 0 !important;
}

.cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-totals-table > tbody > tr > td:last-child {
    padding-right: 0 !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs.cd-seo-check-location-tabs.d-none {
    display: none !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .nav-item {
    flex: 0 0 auto;
    margin: 0 !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab {
    position: relative;
    color: #dbe9f0 !important;
    border: 1px solid rgba(104, 165, 196, .2) !important;
    background:
        linear-gradient(105deg, rgba(7, 24, 38, .94), rgba(15, 45, 63, .82)),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat !important;
    box-shadow: 0 12px 26px rgba(0, 8, 19, .16), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab:hover,
.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab:focus {
    color: #f5fbfe !important;
    border-color: rgba(144, 117, 228, .4) !important;
    background:
        linear-gradient(105deg, rgba(10, 31, 47, .98), rgba(21, 58, 79, .9)),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.active,
.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.is-active {
    color: #fff !important;
    border-color: rgba(170, 145, 239, .55) !important;
    background:
        linear-gradient(105deg, rgba(87, 61, 165, .92), rgba(42, 127, 175, .84)),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat !important;
    box-shadow: 0 16px 34px rgba(35, 25, 93, .24), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab .cd-seo-report-card-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(128, 184, 210, .18);
    border-radius: 12px;
    color: #bfe0ed !important;
    background: rgba(255, 255, 255, .055);
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.active .cd-seo-report-card-icon,
.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.is-active .cd-seo-report-card-icon {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
}

.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-location-tab-copy,
.cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-location-tab-copy strong {
    color: inherit !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab {
    color: #17384e !important;
    border-color: rgba(65, 112, 143, .16) !important;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, .98), rgba(230, 242, 248, .9)),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat !important;
    box-shadow: 0 10px 24px rgba(45, 78, 102, .09), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab:hover,
html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab:focus {
    color: #15364b !important;
    border-color: rgba(94, 132, 190, .3) !important;
    background:
        linear-gradient(105deg, #fff, #e8f4f8),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.active,
html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.is-active {
    color: #fff !important;
    border-color: rgba(114, 211, 229, .62) !important;
    background:
        linear-gradient(115deg, rgba(102, 72, 188, .94), rgba(48, 130, 179, .92) 62%, rgba(39, 157, 167, .9)),
        url("../image/client_dashboard/world_map.svg") calc(80% + var(--cd-location-offset, 0px)) center / 270px auto no-repeat !important;
    box-shadow: 0 14px 30px rgba(58, 75, 148, .2), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab .cd-seo-report-card-icon {
    color: #406b82 !important;
    border-color: rgba(65, 112, 143, .14);
    background: rgba(224, 239, 246, .78);
}

html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.active .cd-seo-report-card-icon,
html[data-theme="light"] .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab.is-active .cd-seo-report-card-icon {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(7, 24, 55, .22);
}

@media (max-width: 767.98px) {
    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-direction: column;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .input-group-prepend,
    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .seo-location-autocomplete-wrap,
    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .input-group-append {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .seo-location-autocomplete-wrap {
        position: relative;
    }

    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group .available-countries-select,
    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .seo-location-autocomplete-wrap > .form-control,
    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .input-group-append > .form-control {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border-radius: var(--cd-admin-control-radius) !important;
    }

    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .input-group-append {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .cd-seo-admin-form-page #tab-keywords .cd-seo-location-input-group > .seo-location-autocomplete-wrap > .dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .cd-seo-admin-form-page #check-keywords-container #locationTabs.cd-seo-check-location-tabs:not(.d-none) {
        display: flex !important;
    }

    .cd-seo-admin-form-page #check-keywords-container #locationTabs .cd-seo-check-location-tab {
        min-width: min(260px, calc(100vw - 58px));
        flex-basis: min(260px, calc(100vw - 58px));
    }
}


/* Update 58: keep required-field validation tooltips visible. */
.required .invalid-tooltip {
    display: flex;
    width: 100% !important;
    max-width: none !important;
}

/* Update 59: SEO report log mobile layout. */
.cd-seo-log-page .cd-seo-log-table-card > .card-body,
.cd-seo-log-page #seo-report-log-tabs-content,
.cd-seo-log-page #seo-report-log-tabs-content > .tab-pane {
    min-width: 0;
    max-width: 100%;
}

.cd-seo-log-page .cd-seo-log-table-wrap {
    width: 100%;
    max-width: 100%;
}

.cd-seo-log-page .cd-seo-log-data-table .cd-seo-log-id-cell {
    width: 150px;
    min-width: 0;
    max-width: 150px;
}

.cd-seo-log-page .cd-seo-log-data-table .cd-seo-log-location-cell {
    width: 190px;
    min-width: 0;
    max-width: 190px;
}

.cd-seo-log-page .cd-seo-log-data-table :is(.cd-seo-log-id-cell, .cd-seo-log-location-cell) .cd-seo-log-cell-value {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .cd-seo-log-page > .cd-seo-log-banner.cd-page-heading-has-actions.has-visible-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        display: grid !important;
        gap: 10px;
        margin-bottom: 14px !important;
    }

    .cd-seo-log-page > .cd-seo-log-banner .cd-page-banner-surface {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 104px;
        height: auto;
    }

    .cd-seo-log-page > .cd-seo-log-banner .cd-page-banner-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 18px !important;
    }

    .cd-seo-log-page > .cd-seo-log-banner .cd-document-banner-title-row {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        align-items: center;
    }

    .cd-seo-log-page > .cd-seo-log-banner .cd-document-banner-copy {
        min-width: 0;
    }

    .cd-seo-log-page > .cd-seo-log-banner .cd-document-banner-copy h1 {
        max-width: 100%;
        font-size: clamp(20px, 5.8vw, 25px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .cd-seo-log-page > .cd-seo-log-banner .cd-seo-log-banner-actions {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch !important;
        justify-content: stretch !important;
        gap: 8px !important;
        padding: 0 !important;
        transform: none !important;
    }

    .cd-seo-log-page .cd-seo-log-download-group,
    .cd-seo-log-page .cd-seo-log-month-control {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .cd-seo-log-page .cd-seo-log-download-group > .cd-button {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .cd-seo-log-page .cd-seo-log-download-group > .dropdown-toggle-split {
        flex: 0 0 var(--cd-admin-control-height, 42px) !important;
    }

    .cd-seo-log-page .cd-seo-log-download-group > .dropdown-menu {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .cd-seo-log-page .cd-seo-log-month-control > .form-control {
        min-width: 0;
        width: 1%;
        flex: 1 1 auto;
    }

    .cd-seo-log-page > .container-fluid {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-seo-log-page .cd-seo-log-summary {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .cd-seo-log-page .cd-seo-log-summary-card {
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 36px auto minmax(0, 1fr);
        align-items: center;
        justify-content: stretch;
        gap: 10px;
        padding: 11px 12px !important;
        text-align: left !important;
    }

    .cd-seo-log-page .cd-seo-log-summary-card > i {
        width: 36px;
        height: 36px;
        margin: 0 !important;
    }

    .cd-seo-log-page .cd-seo-log-summary-card > strong {
        margin: 0 !important;
        font-size: 20px;
    }

    .cd-seo-log-page .cd-seo-log-summary-card > span {
        min-width: 0;
        margin: 0 !important;
        line-height: 1.25;
    }

    .cd-seo-log-page .cd-seo-log-chart-card,
    .cd-seo-log-page .cd-seo-log-table-card {
        margin-bottom: 12px !important;
    }

    .cd-seo-log-page .cd-seo-log-chart-card > .card-body,
    .cd-seo-log-page .cd-seo-log-table-card > .card-body {
        padding: 12px !important;
    }

    .cd-seo-log-page .cd-seo-log-chart-wrap {
        height: 240px !important;
    }

    .cd-seo-log-page .cd-seo-log-table-toolbar {
        width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .cd-seo-log-page .cd-seo-log-table-toolbar > #seo-report-log-tabs {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0 4px !important;
        border: 0 !important;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .cd-seo-log-page #seo-report-log-tabs > .nav-item {
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .cd-seo-log-page #seo-report-log-tabs .nav-link {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 8px 11px !important;
        border-radius: 10px !important;
        white-space: nowrap;
    }

    .cd-seo-log-page .cd-seo-log-search-form {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
    }

    .cd-seo-log-page .cd-seo-log-search-control {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: stretch;
    }

    .cd-seo-log-page .cd-seo-log-search-control > .input-group {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .cd-seo-log-page .cd-seo-log-search-control .form-control {
        min-width: 0 !important;
        width: 100% !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content,
    .cd-seo-log-page #seo-report-log-tabs-content > .tab-pane {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-table-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > thead {
        display: none !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody {
        width: 100%;
        display: grid;
        gap: 10px;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        display: grid !important;
        margin: 0 !important;
        padding: 7px !important;
        overflow: hidden !important;
        border: 1px solid rgba(105, 174, 207, .14) !important;
        border-radius: 14px !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .07), transparent 10rem),
            rgba(7, 27, 42, .68) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 8px 20px rgba(0,8,22,.08) !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr > td[data-label] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: minmax(88px, .7fr) minmax(0, 1.3fr);
        align-items: start;
        gap: 10px;
        padding: 8px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(105, 174, 207, .09) !important;
        text-align: right !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr > td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr > td[data-label]::before {
        content: attr(data-label);
        color: var(--cd-text-muted, #91adbb);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.3;
        letter-spacing: .035em;
        text-align: left;
        text-transform: uppercase;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table .cd-seo-log-id-cell {
        min-width: 0 !important;
        font-size: 11px;
        word-break: break-all !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table :is(.cd-seo-log-id-cell, .cd-seo-log-location-cell) .cd-seo-log-cell-value {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        justify-self: stretch;
        overflow: hidden;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        white-space: normal !important;
        text-align: right;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table .cd-seo-log-error-cell {
        color: var(--cd-danger-soft-text, #f1aeb5);
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr > .cd-seo-log-empty {
        width: 100% !important;
        display: block !important;
        padding: 18px 12px !important;
        border: 0 !important;
        text-align: center !important;
    }

    .cd-seo-log-page .cd-seo-log-pagination {
        margin-top: 10px !important;
        padding: 8px !important;
        border: 0 !important;
        border-radius: 12px !important;
    }

    .cd-seo-log-page .cd-seo-log-pagination > .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
        gap: 8px;
    }

    .cd-seo-log-page .cd-seo-log-pagination > .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: center !important;
    }

    html[data-theme="light"] .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr {
        border-color: rgba(68, 126, 163, .13) !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .045), transparent 10rem),
            #fff !important;
        box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(45,83,108,.07) !important;
    }

    html[data-theme="light"] .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr > td[data-label] {
        border-bottom-color: rgba(68, 126, 163, .09) !important;
    }

    html[data-theme="light"] .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr > td[data-label]::before {
        color: #678195;
    }

    html[data-theme="light"] .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table .cd-seo-log-error-cell {
        color: #a93446;
    }
}

@media (max-width: 380px) {
    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table > tbody > tr > td[data-label] {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left !important;
    }

    .cd-seo-log-page #seo-report-log-tabs-content .cd-seo-log-data-table :is(.cd-seo-log-id-cell, .cd-seo-log-location-cell) .cd-seo-log-cell-value {
        text-align: left;
    }
}


/* Update 60: tool/log tablet and mobile spacing. */
.cd-tool-log-page > .cd-tool-log-banner {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px !important;
}

.cd-tool-log-page > .cd-tool-log-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.cd-tool-log-page .cd-log-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
}

.cd-tool-log-page .cd-log-card > .cd-form-card-body {
    min-width: 0;
}

.cd-tool-log-page .cd-log-output {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
}

@media (max-width: 991.98px) {
    .cd-tool-log-page > .cd-tool-log-banner.cd-page-heading-has-actions.has-visible-actions {
        min-height: 0 !important;
        height: auto !important;
        display: grid !important;
        gap: 10px;
        margin: 0 0 14px !important;
        overflow: visible !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-surface {
        position: relative !important;
        inset: auto !important;
        min-height: 104px;
        height: auto !important;
        clip-path: none !important;
        border-radius: 20px !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-content {
        min-width: 0;
        padding: 18px !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-title {
        min-width: 0;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-title > div {
        min-width: 0;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-title h1 {
        max-width: 100%;
        margin: 0 !important;
        overflow-wrap: anywhere;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-tool-log-banner-actions {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch !important;
        justify-content: stretch !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-tool-log-banner-actions > .cd-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 42px;
        flex: 0 0 auto !important;
        justify-content: center;
        margin: 0 !important;
    }

    .cd-tool-log-page > .cd-tool-log-content .cd-log-card > .cd-form-card-header {
        padding: 12px 14px !important;
    }

    .cd-tool-log-page > .cd-tool-log-content .cd-log-card > .cd-form-card-body {
        padding: 14px !important;
    }

    .cd-tool-log-page .cd-log-output {
        min-height: min(56vh, 560px);
        padding: 14px !important;
        border-radius: 13px !important;
    }
}

@media (max-width: 575.98px) {
    .cd-tool-log-page {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner.cd-page-heading-has-actions.has-visible-actions {
        gap: 8px;
        margin-bottom: 12px !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-surface {
        min-height: 96px;
        border-radius: 18px !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-content {
        padding: 15px 14px !important;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-title {
        gap: 10px;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-title-icon {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-page-banner-title h1 {
        font-size: clamp(21px, 6vw, 25px);
        line-height: 1.1;
    }

    .cd-tool-log-page > .cd-tool-log-banner .cd-tool-log-banner-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px !important;
    }

    .cd-tool-log-page > .cd-tool-log-content .cd-log-card > .cd-form-card-header {
        padding: 11px 12px !important;
    }

    .cd-tool-log-page > .cd-tool-log-content .cd-log-card > .cd-form-card-body {
        padding: 10px !important;
    }

    .cd-tool-log-page .cd-log-output {
        min-height: min(60vh, 520px);
        padding: 11px !important;
        border-radius: 11px !important;
        font-size: 11px;
        line-height: 1.55;
    }
}

/* Task/task responsive follow-up: mobile toolbar, subtask overflow and task modal controls. */
.cd-task-admin-page .task-subtask-tag-tab-wrap .task-subtask-tag-access-toggle {
    margin-left: 6px !important;
}

.cd-task-modal #taskSubtaskTeamAssignContainer.d-none,
.cd-task-modal #taskSubtaskTeamAssignAllContainer.d-none {
    display: none !important;
}

.cd-task-modal #taskSubtaskTeamAssignContainer:not(.d-none) {
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px !important;
}

.cd-task-modal #taskSubtaskTeamAssignAllContainer:not(.d-none) {
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px !important;
}

.cd-task-modal #taskSubtaskTeamAssignSelect {
    width: 100%;
    min-width: 0;
}

.cd-task-modal #taskSubtaskTeamAssignContainer > .btn,
.cd-task-modal #taskSubtaskTeamAssignAllContainer > .btn {
    min-width: 0;
    margin: 0 !important;
}

@media (max-width: 575.98px) {
    .cd-task-admin-page .task-list-toolbar-controls {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        column-gap: 0 !important;
        row-gap: 8px !important;
        overflow: visible !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > :not(#search-results-day-container) {
        order: 1;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > :not(#search-results-day-container):not(:first-child) {
        margin-left: -1px !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > :first-child {
        border-radius: 10px 0 0 10px !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > #task-list-settings-open-btn {
        border-radius: 0 10px 10px 0 !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > .task-list-toolbar-total {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 0 !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container {
        order: 2;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 0 100% !important;
        margin: 6px 0 0 !important;
        border-radius: 10px !important;
    }

    .cd-task-admin-page .btn-group:has(> #search-results-day-container) > #search-results-day-container {
        margin-top: 12px !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > .form-control {
        min-width: 0 !important;
        border-radius: 10px 0 0 10px !important;
    }

    .cd-task-admin-page .task-list-toolbar-controls > #search-results-day-container > #filter-date-reset-today {
        border-radius: 0 10px 10px 0 !important;
    }

    .cd-task-admin-page .task-card .card-body,
    .cd-task-admin-page .task-subtask-tag-panes,
    .cd-task-admin-page .task-subtask-tag-pane {
        min-width: 0;
        max-width: 100%;
    }

    .cd-task-admin-page .task-card .task-subtask-table {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .cd-task-admin-page .task-card .task-subtask-table > tbody {
        width: 100%;
        min-width: 620px;
        display: table;
    }

    .cd-task-admin-page .task-card .card-body > .d-flex.align-items-center.justify-content-between:has(.task-subtask-total-difference, .task-show-all-subtasks-toggle) {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .cd-task-admin-page .task-card .card-body > .d-flex.align-items-center.justify-content-between:has(.task-subtask-total-difference, .task-show-all-subtasks-toggle) > .d-flex {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }

    .cd-task-admin-page .task-card .card-body > .d-flex.align-items-center.justify-content-between:has(.task-subtask-total-difference, .task-show-all-subtasks-toggle) > .d-flex:last-child {
        justify-content: flex-end !important;
    }

    .cd-task-admin-page .task-card .card-body > .d-flex.align-items-center.justify-content-between:has(.task-subtask-total-difference, .task-show-all-subtasks-toggle) .dropdown,
    .cd-task-admin-page .task-card .card-body > .d-flex.align-items-center.justify-content-between:has(.task-subtask-total-difference, .task-show-all-subtasks-toggle) .btn {
        min-width: 0;
        max-width: 100%;
    }

    .cd-task-admin-page .task-card .card-body > .d-flex.align-items-center.justify-content-between:has(.task-subtask-total-difference, .task-show-all-subtasks-toggle) .dropdown-menu {
        max-width: calc(100vw - 40px);
    }

    .cd-task-admin-page #addTaskModal .modal-footer,
    .cd-task-admin-page #editTaskModal .modal-footer {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .cd-task-admin-page #addTaskModal .modal-footer > .btn,
    .cd-task-admin-page #editTaskModal .modal-footer > .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .cd-task-admin-page #editTaskModal .modal-footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-task-modal #taskSubtaskTeamAssignContainer:not(.d-none) {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-task-modal #taskSubtaskTeamAssignContainer > .btn {
        width: 100% !important;
    }

    .cd-task-modal #taskSubtaskTeamAssignAllContainer:not(.d-none) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-task-modal #taskSubtaskTeamAssignAllContainer > .btn {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Project edit: remove conflicting Bootstrap gutters from the main mobile form content. */
@media (max-width: 767.98px) {
    .cd-project-form-page > .cd-form-page-content {
        width: 100%;
        max-width: none;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-project-form-page > .cd-form-page-content > .row.gx-3 {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .cd-project-form-page > .cd-form-page-content > .row.gx-3 > .col-12 {
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* Project edit: keep the project type selector at its intended multiline height. */
.cd-project-form-page #input-project-type.form-control {
    height: 280px !important;
    min-height: 280px !important;
}

/* Project report: exact four-row mobile toolbar layout. */
@media (max-width: 767.98px) {
    .cd-project-report-workspace .cd-project-report-toolbar {
        display: flex !important;
        flex-flow: row wrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .cd-project-report-workspace .cd-project-report-toolbar > .d-flex:first-child,
    .cd-project-report-workspace .cd-project-report-toolbar > .d-flex:first-child > .cd-project-report-action-group,
    .cd-project-report-workspace .cd-project-report-toolbar > .cd-project-report-actions {
        display: contents !important;
    }

    /* Row 1: regenerate + generate/update. */
    .cd-project-report-workspace #task-report-regenerate-btn {
        order: 10;
        width: var(--cd-admin-control-height) !important;
        min-width: var(--cd-admin-control-height) !important;
        max-width: var(--cd-admin-control-height) !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        flex: 0 0 var(--cd-admin-control-height) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cd-project-report-workspace #task-report-generate-btn {
        order: 11;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        flex: 1 1 calc(100% - var(--cd-admin-control-height) - 8px) !important;
        margin: 0 !important;
    }

    .cd-project-report-workspace .cd-project-report-toolbar:not(:has(#task-report-regenerate-btn)) #task-report-generate-btn {
        flex-basis: 100% !important;
    }

    /* Row 2: report type + Draft/Final, half width each. */
    .cd-project-report-workspace .task-report-type-toggle-wrapper {
        order: 20;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        flex: 0 0 calc(50% - 4px) !important;
        margin: 0 !important;
    }

    .cd-project-report-workspace .task-report-type-toggle-wrapper > .task-report-type-toggle {
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        display: flex !important;
    }

    .cd-project-report-workspace .task-report-type-toggle-wrapper > .task-report-type-toggle > .btn {
        min-width: 0 !important;
        height: 100% !important;
        flex: 1 1 50% !important;
        margin: 0 !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    .cd-project-report-workspace .cd-project-report-final-toggle {
        order: 21;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        display: flex !important;
        flex: 0 0 calc(50% - 4px) !important;
        margin: 0 !important;
    }

    .cd-project-report-workspace .cd-project-report-final-toggle > .btn {
        min-width: 0 !important;
        height: 100% !important;
        flex: 1 1 50% !important;
        margin: 0 !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    .cd-project-report-workspace .cd-project-report-toolbar:not(:has(.cd-project-report-final-toggle)) .task-report-type-toggle-wrapper,
    .cd-project-report-workspace .cd-project-report-toolbar:not(:has(.task-report-type-toggle-wrapper)) .cd-project-report-final-toggle {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }

    /* Row 3: add + Word + PDF + total + banned words. */
    .cd-project-report-workspace #task-report-add-task-btn {
        order: 30;
    }

    .cd-project-report-workspace .task-report-export-btn {
        order: 31;
    }

    .cd-project-report-workspace #task-report-add-task-btn,
    .cd-project-report-workspace .task-report-export-btn {
        width: var(--cd-admin-control-height) !important;
        min-width: var(--cd-admin-control-height) !important;
        max-width: var(--cd-admin-control-height) !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        flex: 0 0 var(--cd-admin-control-height) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cd-project-report-workspace .cd-project-report-total {
        order: 32;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        flex: 1 1 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        overflow: hidden;
        white-space: nowrap !important;
    }

    .cd-project-report-workspace .cd-project-report-banned-action {
        order: 33;
        width: var(--cd-admin-control-height) !important;
        min-width: var(--cd-admin-control-height) !important;
        max-width: var(--cd-admin-control-height) !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        flex: 0 0 var(--cd-admin-control-height) !important;
        margin: 0 !important;
    }

    .cd-project-report-workspace .cd-project-report-banned-action > #button-task-report-banned-manager {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Row 4: date picker. */
    .cd-project-report-workspace #search-results-date-container {
        order: 40;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: var(--cd-admin-control-height) !important;
        min-height: var(--cd-admin-control-height) !important;
        flex: 0 0 100% !important;
        margin: 0 !important;
    }
}

/* Project type selector: let the manager button stretch with the multiline selector. */
.cd-project-form-page .input-group:has(> #input-project-type) > .input-group-append {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

.cd-project-form-page .input-group:has(> #input-project-type) > .input-group-append > #button-project-type-manager {
    height: auto !important;
    min-height: 0 !important;
    align-self: stretch;
}

/* Project type manager: keep the listing usable on mobile. */
@media (max-width: 767.98px) {
    .cd-modal-project-type-manager .modal-dialog {
        width: auto;
        max-width: none;
        margin: 10px !important;
    }

    .cd-modal-project-type-manager .modal-body {
        min-width: 0;
        padding: 12px !important;
        overflow-x: hidden;
    }

    .cd-modal-project-type-manager .cd-project-type-manager-card .cd-form-card-body {
        padding: 14px !important;
    }

    .cd-modal-project-type-manager .cd-project-type-manager-card .form-group.row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .cd-modal-project-type-manager .cd-project-type-manager-card .form-group.row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .cd-modal-project-type-manager .cd-project-type-table {
        min-width: 520px;
        margin-bottom: 0 !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table th,
    .cd-modal-project-type-manager .cd-project-type-table td {
        white-space: nowrap;
    }

    .cd-modal-project-type-manager .cd-project-type-table th:nth-child(2),
    .cd-modal-project-type-manager .cd-project-type-table td:nth-child(2) {
        min-width: 180px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

/* Settings main tabs: keep the primary tab bar horizontally scrollable on mobile. */
    .cd-settings-page .nav.nav-tabs.cd-settings-main-tabs {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin !important;
    }

    .cd-settings-page .nav.nav-tabs.cd-settings-main-tabs > .nav-item,
    .cd-settings-page .nav.nav-tabs.cd-settings-main-tabs > .nav-item > .nav-link {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

/* Project type manager table: keep normal table semantics inside the modal on mobile. */
    .cd-modal-project-type-manager .cd-project-type-table,
    .cd-modal-project-type-manager .cd-project-type-table tbody,
    .cd-modal-project-type-manager .cd-project-type-table tr,
    .cd-modal-project-type-manager .cd-project-type-table th,
    .cd-modal-project-type-manager .cd-project-type-table td {
        width: auto;
        min-width: 0;
    }

    .cd-modal-project-type-manager .cd-project-type-table {
        display: table !important;
        width: 100% !important;
        min-width: 520px !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table thead {
        display: table-header-group !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table tbody {
        display: table-row-group !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table tr {
        display: table-row !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table th,
    .cd-modal-project-type-manager .cd-project-type-table td {
        display: table-cell !important;
        padding: 8px 10px !important;
        text-align: inherit !important;
        vertical-align: middle !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table td::before,
    .cd-modal-project-type-manager .cd-project-type-table .cd-listing-actions-cell::before {
        display: none !important;
        content: none !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table .cd-listing-actions-cell {
        position: static !important;
        width: 72px !important;
        min-width: 72px !important;
        display: table-cell !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border-top: 0 !important;
        text-align: center !important;
        transform: none !important;
    }

    .cd-modal-project-type-manager .cd-project-type-table .cd-listing-actions-cell > .cd-icon-button {
        width: var(--cd-admin-control-height) !important;
        min-width: var(--cd-admin-control-height) !important;
        max-width: var(--cd-admin-control-height) !important;
    }

/* Main dashboard: normalize Bootstrap row/column gutters inside the dashboard grid on mobile. */
    #content.cd-main > .cd-dashboard-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    #content.cd-main > .cd-dashboard-content > .row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    #content.cd-main > .cd-dashboard-content > .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 16px !important;
    }

    #content.cd-main > .cd-dashboard-content > .row .cd-dashboard-module {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Client prompter: input-group clear action uses the normal control corner radius, not the modal pill radius. */
.cd-modal #button-clear-client-prompter-date-range {
    border-radius: 0 11px 11px 0 !important;
}

/* SEO competitor keyword rules modal: canonical CRM modal/list layout. */
.cd-modal.cd-seo-competitor-keyword-rules-modal .modal-dialog {
    max-width: 980px;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .modal-content {
    max-height: calc(100dvh - 48px);
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .modal-body {
    min-width: 0;
    overflow: auto;
    padding: 16px !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs {
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 14px !important;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(109, 184, 213, .14) !important;
    border-radius: 14px;
    background: rgba(5, 20, 32, .44);
    scrollbar-width: thin;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-item {
    flex: 0 0 auto;
    margin: 0 !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 7px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: var(--cd-muted, #9db8c7) !important;
    background: transparent !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link:hover,
.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link:focus {
    color: #dff1f8 !important;
    background: rgba(74, 143, 178, .10) !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active,
.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:hover,
.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:focus {
    border-color: rgba(84, 194, 221, .26) !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(86, 80, 188, .72), rgba(34, 139, 175, .64)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-content,
.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-content > .tab-pane {
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-toolbar {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(105, 171, 204, .10);
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions .cd-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 7px 11px;
    border-radius: 10px !important;
    white-space: nowrap;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-search {
    width: min(330px, 100%);
    min-width: 220px;
    flex: 0 1 330px;
    margin: 0 !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-search .input-group {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-search .input-group-text,
.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-search-input {
    height: 40px !important;
    min-height: 40px !important;
    border-color: rgba(109, 184, 213, .14) !important;
    background: rgba(4, 18, 31, .34) !important;
    box-shadow: none !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-search .input-group-text {
    padding: 0 11px;
    border-right: 0 !important;
    border-radius: 10px 0 0 10px !important;
    color: #86aabd;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-search-input {
    min-width: 0;
    padding: 7px 11px !important;
    border-left: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    color: #dcecf4 !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-search-input::placeholder {
    color: #7696a7;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
    width: 100%;
    max-width: 100%;
    max-height: min(470px, 50dvh);
    overflow: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table {
    width: 100% !important;
    min-width: 0 !important;
    display: table !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    color: #d7eaf4 !important;
    background: transparent !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > thead {
    display: table-header-group !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody {
    display: table-row-group !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > thead > tr,
.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    display: table-cell !important;
    padding: 10px 14px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(111, 182, 215, .14) !important;
    border-left: 0 !important;
    color: #9dc7da !important;
    background: linear-gradient(110deg, #153b52, #1b304f) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .055em;
    text-transform: uppercase;
    vertical-align: middle;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td {
    display: table-cell !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 10px 14px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(105, 171, 204, .09) !important;
    border-left: 0 !important;
    color: #d4e7f1 !important;
    background: transparent !important;
    vertical-align: middle;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr:hover > td {
    background: rgba(55, 137, 180, .075) !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table :is(th, td).cd-seo-competitor-rule-check-column,
.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td:first-child {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    text-align: center !important;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-checkbox {
    width: 17px;
    height: 17px;
    margin: 0;
    vertical-align: middle;
    accent-color: #4a9fc5;
    cursor: pointer;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-row label {
    min-width: 0;
    display: block;
    margin: 0 !important;
    color: inherit;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px;
    border-top: 1px solid rgba(105, 171, 204, .10);
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 6px 9px !important;
    border: 1px solid rgba(92, 170, 201, .14);
    border-radius: 999px;
    color: #a9c9d8;
    background: rgba(45, 112, 144, .10);
    font-size: 11px;
    line-height: 1.1;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total strong {
    color: #e9f7fc;
    font-size: 12px;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .modal-footer {
    gap: 8px;
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .modal-footer .cd-button {
    min-height: 40px;
    gap: 7px;
    border-radius: 10px !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs {
    border-color: rgba(66, 113, 145, .15) !important;
    background: rgba(231, 242, 248, .78);
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link {
    color: #58778a !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link:hover,
html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link:focus {
    color: #315f79 !important;
    background: rgba(55, 137, 180, .07) !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active,
html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:hover,
html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link.active:focus {
    color: #fff !important;
    background: linear-gradient(115deg, #7656c5, #3c88bc 62%, #2e9eaa) !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-toolbar,
html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-total {
    border-color: rgba(68, 126, 163, .10);
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-search .input-group-text,
html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-search-input {
    border-color: rgba(68, 126, 163, .14) !important;
    background: #fff !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-search .input-group-text {
    color: #608198;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-search-input {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-search-input::placeholder {
    color: #869ba9;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table {
    color: #294b63 !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > thead > tr > th {
    border-bottom-color: rgba(68, 126, 163, .13) !important;
    color: #496f86 !important;
    background: linear-gradient(110deg, #edf6fa, #f4f2fb) !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td {
    border-bottom-color: rgba(68, 126, 163, .09) !important;
    color: #355c74 !important;
    background: transparent !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr:hover > td {
    background: rgba(55, 137, 180, .075) !important;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total {
    border-color: rgba(68, 126, 163, .13);
    color: #5d788a;
    background: #f2f8fb;
}

html[data-theme="light"] .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keyword-visible-total strong {
    color: #294f67;
}

@media (max-width: 767.98px) {
    .cd-modal.cd-seo-competitor-keyword-rules-modal .modal-dialog {
        width: calc(100vw - 16px);
        max-width: none;
        margin: 8px auto;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .modal-content {
        max-height: calc(100dvh - 16px);
        border-radius: 14px !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .modal-body {
        padding: 12px !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs {
        margin-bottom: 10px !important;
        padding: 5px;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-tabs .nav-link {
        min-height: 34px;
        padding: 6px 10px !important;
        font-size: 11.5px;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 11px;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions .cd-button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-search {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: none;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-table-wrap {
        max-height: min(430px, 48dvh);
        overflow: auto !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table {
        min-width: 0 !important;
        display: table !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > thead {
        display: table-header-group !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody {
        display: table-row-group !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr {
        display: table-row !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > thead > tr > th,
    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td {
        display: table-cell !important;
        padding: 9px 10px !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table :is(th, td).cd-seo-competitor-rule-check-column,
    .cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td:first-child {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-total {
        justify-content: flex-start;
        padding: 9px 11px;
    }
}

@media (max-width: 575.98px) {
    .cd-modal.cd-seo-competitor-keyword-rules-modal .cd-seo-competitor-rule-actions {
        grid-template-columns: 1fr;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .modal-footer {
        align-items: stretch !important;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .cd-modal.cd-seo-competitor-keyword-rules-modal .modal-footer .cd-button {
        width: 100%;
        flex: 1 1 auto !important;
        justify-content: center;
    }
}

.cd-modal.cd-seo-competitor-keyword-rules-modal .competitor-modal-keywords-table > tbody > tr > td[colspan] {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
}

/* SEO report competitor signals: keep the Theme Design signal component intact in Admin. */
.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-list {
    gap: 10px;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid rgba(108, 158, 188, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .032);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transform: none;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-item:hover {
    border-color: rgba(119, 190, 216, .23);
    background: rgba(74, 145, 178, .07);
    transform: none;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-index {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(131, 108, 214, .18);
    border-radius: 10px;
    background: rgba(112, 84, 198, .13);
    font-size: 11px;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-keyword {
    min-width: 0;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-keyword strong {
    overflow: visible;
    color: #edf8fc;
    font-size: 12.5px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-keyword span {
    margin-top: 4px;
    color: #8fa9b8;
    font-size: 10.5px;
    line-height: 1.35;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions {
    grid-column: auto;
    justify-self: end;
    width: auto;
    display: grid;
    grid-template-columns: minmax(64px, auto) 14px minmax(82px, auto);
    align-items: center;
    justify-content: end;
    gap: 6px;
    margin-top: 0;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 5px;
    padding: 6px 7px;
    border: 1px solid rgba(106, 174, 207, .12);
    border-radius: 9px;
    background: rgba(31, 77, 105, .16);
    text-align: left;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > small {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #819cab;
    font-size: 9px;
    line-height: 1.15;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > strong {
    grid-column: 1;
    margin: 0;
    color: #eef8fb;
    font-size: 13px;
    line-height: 24px;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > a {
    grid-column: 2;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(99, 188, 219, .17);
    border-radius: 7px;
    color: #78cfe6;
    background: rgba(67, 143, 179, .09);
    font-size: 10px;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > a:hover {
    border-color: rgba(99, 188, 219, .32);
    color: #bcecf7;
    background: rgba(67, 143, 179, .17);
    text-decoration: none;
}

.cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > i {
    color: #648597;
    font-size: 10px;
    text-align: center;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-item {
    border-color: rgba(61, 108, 138, .12);
    background: rgba(247, 251, 253, .96);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-item:hover {
    border-color: rgba(54, 130, 162, .22);
    background: #fff;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-index {
    border-color: rgba(104, 78, 174, .14);
    color: #684eae;
    background: #eee9f8;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-keyword strong {
    color: #203f53;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-keyword span,
html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > small {
    color: #6d8797;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span {
    border-color: rgba(68, 126, 163, .12);
    background: #eef6fa;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > strong {
    color: #244d68;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > a {
    border-color: rgba(46, 132, 171, .16);
    color: #2d86ac;
    background: #e2f1f7;
}

html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span > a:hover {
    border-color: rgba(46, 132, 171, .28);
    color: #1e6f93;
    background: #d7edf5;
}

@media (max-width: 767.98px) {
    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-item {
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: start;
        gap: 9px 10px;
        padding: 10px;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
        justify-content: stretch;
        margin-top: 1px;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-signal-positions > span {
        width: 100%;
    }
}


/* Update 60: SEO report mobile result cards and competitor responsive workspace. */
@media (max-width: 991.98px) {
    /* Clusterized result tables become cards without changing selection/search/sort behavior. */
    .cd-seo-admin-form-page .seo-results-cluster-scroll {
        max-width: 100%;
        max-height: none !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll > .table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll > .table > thead {
        display: none !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll > .table > tbody {
        width: 100%;
        min-width: 0;
        display: grid;
        gap: 10px;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-group-heading {
        width: 100%;
        min-width: 0;
        display: block;
        margin: 4px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-group-heading > td {
        width: 100% !important;
        min-width: 0 !important;
        display: block !important;
        padding: 9px 11px !important;
        border: 0 !important;
        border-left: 3px solid rgba(77, 169, 255, .7) !important;
        border-radius: 8px !important;
        color: var(--cd-text-strong, #eff8fc) !important;
        background: rgba(77, 169, 255, .07) !important;
        font-size: 12px;
        font-weight: 800 !important;
        line-height: 1.25;
        letter-spacing: .02em;
        text-align: left !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row {
        position: relative;
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px !important;
        overflow: visible;
        border: 1px solid rgba(105, 174, 207, .13) !important;
        border-radius: 14px !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .06), transparent 12rem),
            rgba(7, 27, 42, .68) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 8px 22px rgba(0, 8, 22, .08) !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        display: block !important;
        padding: 8px 9px !important;
        overflow: visible !important;
        border: 1px solid rgba(105, 174, 207, .09) !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, .018) !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td[hidden] {
        display: none !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td::before {
        content: attr(data-label);
        min-height: 13px;
        display: block;
        margin-bottom: 5px;
        color: var(--cd-text-muted, #90a9bf);
        font-size: 9.5px;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:first-child {
        position: absolute;
        top: 13px;
        right: 13px;
        z-index: 2;
        width: 30px !important;
        min-width: 30px !important;
        justify-content: center;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:first-child::before {
        display: none;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:nth-child(2) {
        grid-column: 1 / -1;
        padding-right: 44px !important;
        border-color: rgba(105, 174, 207, .12) !important;
        background: rgba(67, 143, 179, .055) !important;
        font-weight: 700;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:nth-child(2) > .d-inline-flex {
        max-width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .clusterize-no-data {
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .clusterize-no-data > td {
        width: 100% !important;
        display: block !important;
        padding: 18px 12px !important;
        border: 1px solid rgba(105, 174, 207, .12) !important;
        border-radius: 12px !important;
        background: rgba(7, 27, 42, .58) !important;
        text-align: center !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row {
        border-color: rgba(68, 126, 163, .13) !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(118, 86, 197, .045), transparent 12rem),
            #fff !important;
        box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(45, 83, 108, .07) !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td {
        border-color: rgba(68, 126, 163, .09) !important;
        background: #f8fbfd !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:nth-child(2) {
        border-color: rgba(68, 126, 163, .11) !important;
        background: #f1f7fa !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-group-heading > td {
        border-left-color: rgba(20, 115, 230, .68) !important;
        color: #294b63 !important;
        background: rgba(20, 115, 230, .06) !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .seo-results-cluster-scroll .clusterize-no-data > td {
        border-color: rgba(68, 126, 163, .12) !important;
        background: #fff !important;
    }

    /* Competitor metrics and tabs are fixed 3-column grids from 991px down. */
    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch !important;
        gap: 8px !important;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals > .badge {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 62px;
        margin: 0 !important;
        padding: 7px 6px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-tabs-grid {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch !important;
        gap: 8px !important;
        padding: 8px !important;
        overflow: visible !important;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-tabs-grid .seo-report-competitor-tab-badge {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 62px;
        height: auto;
        flex: none !important;
        margin: 0 !important;
        padding: 7px 6px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        scroll-snap-align: none;
    }

    /* Final analytics table in the cumulative competitor summary follows the existing card-table pattern. */
    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table {
        width: 100% !important;
        min-width: 0 !important;
        display: block;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > thead {
        display: none !important;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody {
        width: 100%;
        display: grid;
        gap: 10px;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr {
        width: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        padding: 10px !important;
        border: 1px solid rgba(105, 174, 207, .13) !important;
        border-radius: 13px !important;
        background: rgba(7, 27, 42, .62) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 20px rgba(0, 8, 22, .08) !important;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr > td {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        display: block !important;
        padding: 8px 9px !important;
        border: 1px solid rgba(105, 174, 207, .09) !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, .018) !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr > td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--cd-text-muted, #90a9bf);
        font-size: 9.5px;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr > td:first-child {
        grid-column: 1 / -1;
        border-color: rgba(105, 174, 207, .12) !important;
        background: rgba(67, 143, 179, .055) !important;
        font-weight: 700;
    }

    html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr {
        border-color: rgba(68, 126, 163, .13) !important;
        background: #fff !important;
        box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(45, 83, 108, .07) !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr > td {
        border-color: rgba(68, 126, 163, .09) !important;
        background: #f8fbfd !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr > td:first-child {
        border-color: rgba(68, 126, 163, .11) !important;
        background: #f1f7fa !important;
    }
}

@media (max-width: 575.98px) {
    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row,
    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals > .badge,
    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-tabs-grid .seo-report-competitor-tab-badge {
        min-height: 68px;
        padding-right: 5px !important;
        padding-left: 5px !important;
        font-size: 10.5px;
        line-height: 1.18;
    }
}

@media (max-width: 359.98px) {
    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row,
    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .cd-seo-competitor-analytics-card-table > tbody > tr {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals,
    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-tabs-grid {
        gap: 5px !important;
    }

    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals > .badge,
    .cd-seo-admin-form-page #seo-report-competitors-tab-content .cd-seo-competitor-tabs-grid .seo-report-competitor-tab-badge {
        min-height: 72px;
        padding: 6px 3px !important;
        font-size: 9.5px;
        letter-spacing: -.01em;
    }
}

/* Update 61: keep the SEO favorite action inside the responsive result-card heading. */
@media (max-width: 991.98px) {
    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > .cd-seo-results-favorite-cell {
        position: absolute;
        top: 13px;
        right: 51px;
        z-index: 2;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > .cd-seo-results-favorite-cell::before {
        display: none !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > .cd-seo-results-favorite-cell .toggle-favorite-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin: 0;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:nth-child(2) {
        padding-right: 82px !important;
    }

/* Update 62: SEO narrow-mobile single-column summaries and competitor button grid. */
    .cd-seo-admin-form-page #seo-report-competitors-tab-content > .mb-3 > .nav.cd-seo-competitor-tabs-grid {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch !important;
        flex-wrap: initial !important;
        gap: 8px !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        scroll-snap-type: none !important;
        overscroll-behavior-inline: auto;
        -webkit-overflow-scrolling: auto;
    }

    .cd-seo-admin-form-page #seo-report-competitors-tab-content > .mb-3 > .nav.cd-seo-competitor-tabs-grid .seo-report-competitor-tab-badge {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        scroll-snap-align: none !important;
    }
}

@media (max-width: 575.98px) {
    .cd-seo-admin-form-page .secondary-cont-results-page-top:has(.cd-seo-search-result-stats) .cd-seo-search-result-stats,
    .cd-seo-admin-form-page .cd-seo-search-result-stats,
    .cd-seo-admin-form-page #seo-report-competitor-pane-summary .secondary-inner-cont-results-page-top-totals,
    .cd-seo-admin-form-page #seo-report-competitors-tab-content > .mb-3 > .nav.cd-seo-competitor-tabs-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Update 63: SEO responsive keyword cards keep four compact metrics per row and the last-search value full width. */
@media (max-width: 991.98px) {
    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:last-child {
        grid-column: 1 / -1 !important;
    }


/* Update 64: collapsible SEO keyword cards with aligned heading actions. */
    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:first-child {
        top: 16px !important;
        right: 14px !important;
        width: 68px !important;
        min-width: 68px !important;
        height: 30px;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:first-child > input[type="checkbox"] {
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > .cd-seo-results-favorite-cell {
        top: 16px !important;
        right: 92px !important;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row > td:nth-child(2) {
        padding-right: 132px !important;
    }

    .cd-seo-admin-form-page .cd-seo-results-card-toggle {
        width: 30px;
        min-width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(105, 174, 207, .16);
        border-radius: 8px;
        color: var(--cd-text-muted, #90a9bf);
        background: rgba(255, 255, 255, .025);
        cursor: pointer;
    }

    .cd-seo-admin-form-page .cd-seo-results-card-toggle:hover,
    .cd-seo-admin-form-page .cd-seo-results-card-toggle:focus {
        color: var(--cd-text-strong, #eff8fc);
        border-color: rgba(105, 174, 207, .28);
        outline: 0;
    }

    .cd-seo-admin-form-page .cd-seo-results-card-toggle > i {
        transition: transform .18s ease;
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row.is-expanded .cd-seo-results-card-toggle > i {
        transform: rotate(180deg);
    }

    .cd-seo-admin-form-page .seo-results-cluster-scroll .cd-seo-results-card-row:not(.is-expanded) > td:nth-child(n + 4) {
        display: none !important;
    }

    html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-results-card-toggle {
        color: #607d90;
        border-color: rgba(68, 126, 163, .16);
        background: rgba(68, 126, 163, .045);
    }

    html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-results-card-toggle:hover,
    html[data-theme="light"] .cd-seo-admin-form-page .cd-seo-results-card-toggle:focus {
        color: #294b63;
        border-color: rgba(68, 126, 163, .28);
    }
}

@media (min-width: 992px) {
    .cd-seo-admin-form-page .cd-seo-results-card-toggle {
        display: none !important;
    }
}


/* Phone form toggles: keep long option copy readable and left aligned. */
@media (max-width: 575.98px) {
    .cd-form-page .btn-group.btn-group-toggle > .btn {
        justify-content: flex-start !important;
        text-align: left !important;
    }
}

/* Client dashboard error pages */
.cd-error-page .cd-error-card {
    min-height: clamp(300px, 46vh, 430px);
    padding: clamp(30px, 5vw, 58px);
    overflow: hidden;
}

.cd-error-card-icon {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(77, 169, 255, 0.22);
    border-radius: 22px;
    background: rgba(77, 169, 255, 0.1);
}

.cd-error-card .cd-error-card-icon i {
    font-size: 27px;
}

.cd-error-card p {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.cd-error-card .cd-button {
    position: relative;
    z-index: 1;
    min-width: 170px;
    justify-content: center;
    margin-top: 5px;
}

.cd-auth-error-body {
    min-height: 100dvh;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.cd-auth-error-shell {
    width: min(100%, 520px);
    margin: 0;
}

.cd-auth-error-card p {
    margin-bottom: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .cd-error-page {
        padding: 20px 14px 34px;
    }

    .cd-error-page .cd-error-page-heading {
        margin-bottom: 16px;
    }

    .cd-error-page .cd-error-card {
        min-height: 280px;
        padding: 28px 18px;
        border-radius: 24px 24px 24px 10px;
    }

    .cd-error-card-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .cd-error-card .cd-button {
        width: 100%;
        min-width: 0;
    }

    .cd-auth-error-body {
        padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    }

    .cd-auth-error-shell {
        margin: 0;
    }

    .cd-auth-error-card {
        padding: 28px 20px;
        border-radius: 24px 24px 24px 10px;
    }
}

/* Profile accordion needs its own inset; the global accordion rule intentionally removes it elsewhere. */
:where(html.cd-theme-document, .cd-theme-scope) .accordion-button.cd-profile-accordion-toggle {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Permission cards without resource children must stay compact instead of stretching to a grouped card's height. */
.cd-permission-grid .form-check.form-control.cd-permission-card:not(.cd-permission-card-group) {
    height: 52px !important;
    min-height: 52px;
    max-height: 52px !important;
    flex: 0 0 100%;
    align-self: flex-start;
}

@media (max-width: 575.98px) {
    :where(html.cd-theme-document, .cd-theme-scope) .accordion-button.cd-profile-accordion-toggle {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Client profiles v11: permission grid geometry must not inherit Bootstrap/flex stretching. */
.cd-permission-grid.row > [class*="col-"] {
    min-width: 0;
    align-items: flex-start;
}

.cd-permission-grid .form-control.cd-permission-card,
.cd-permission-grid .form-check.form-control.cd-permission-card,
.cd-permission-grid .form-control.cd-permission-card.cd-permission-card-group {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.cd-permission-grid .form-check.form-control.cd-permission-card:not(.cd-permission-card-group) {
    flex-basis: 110% !important;
}

.cd-permission-grid .cd-permission-card-group {
    flex-basis: auto !important;
    align-self: flex-start !important;
}

.cd-permission-grid .cd-permission-card-header {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.cd-permission-grid .cd-permission-card-main {
    min-width: 0;
}

.cd-permission-grid .cd-permission-resource-list {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    box-sizing: border-box !important;
}


/* Client document lists: keep desktop tables scrollable without changing <=991px card layout. */
@media (min-width: 992px) {
    .cd-document-list-table-wrap {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .cd-document-list-table-wrap .cd-listing-table-documents {
        width: max-content;
        min-width: 100%;
    }

    .cd-document-list-table-wrap .cd-listing-table-documents th,
    .cd-document-list-table-wrap .cd-listing-table-documents td {
        min-width: 150px;
    }

    .cd-document-list-table-wrap .cd-listing-table-documents th:first-child,
    .cd-document-list-table-wrap .cd-listing-table-documents td:first-child {
        min-width: 280px;
    }

    .cd-document-list-table-wrap .cd-listing-table-documents .cd-listing-actions-heading,
    .cd-document-list-table-wrap .cd-listing-table-documents .cd-listing-actions-cell {
        min-width: 210px;
    }
}

.cd-document-final-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 8px;
    padding: 6px 9px;
    border: 1px solid rgba(54, 199, 153, 0.28);
    border-radius: 999px;
    color: #86f0c7;
    background: rgba(29, 150, 112, 0.15);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cd-document-final-action-badge.is-danger {
    border-color: rgba(239, 100, 122, 0.32);
    color: #ffb7c3;
    background: rgba(198, 58, 84, 0.15);
}

html[data-theme="light"] .cd-document-final-action-badge {
    border-color: rgba(28, 150, 108, 0.22);
    color: #0b7152;
    background: rgba(31, 160, 115, 0.09);
}

html[data-theme="light"] .cd-document-final-action-badge.is-danger {
    border-color: rgba(190, 55, 79, 0.22);
    color: #a32842;
    background: rgba(190, 55, 79, 0.08);
}


/* Document viewer: positive scroll canvas keeps both horizontal directions reachable when zoomed. */
.cd-pdf-stage {
    overflow: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.cd-pdf-frame-shell {
    width: 100% !important;
    min-width: 100%;
    justify-content: flex-start;
}

.cd-pdf-pages {
    width: 100%;
    min-width: 100%;
    align-items: center;
}

.cd-pdf-mobile-fullscreen-controls {
    display: none;
}

@media (max-width: 767px) {
    .cd-document-view-shell.is-fullscreen {
        padding: 0 !important;
    }

    .cd-document-view-shell.is-fullscreen .cd-page-heading.cd-page-banner,
    .cd-document-view-shell.is-fullscreen .cd-document-tabs,
    .cd-document-view-shell.is-fullscreen .cd-offer-status-panel,
    .cd-document-view-shell.is-fullscreen > .cd-document-notice {
        display: none !important;
    }

    .cd-document-view-shell.is-fullscreen .cd-document-view-card {
        position: fixed;
        z-index: 10051;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .cd-document-view-shell.is-fullscreen .cd-pdf-viewer {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        padding: 8px 8px calc(72px + env(safe-area-inset-bottom)) 8px;
        box-sizing: border-box;
    }

    .cd-document-view-shell.is-fullscreen .cd-pdf-stage {
        width: 100%;
        height: 100% !important;
        min-height: 0;
        flex: 1 1 auto;
        border-radius: 12px;
    }

    .cd-document-view-shell.is-fullscreen .cd-pdf-frame-shell,
    .cd-document-view-shell.is-fullscreen .cd-pdf-pages {
        height: 100%;
        min-height: 100%;
    }

    .cd-document-view-shell.is-fullscreen .cd-pdf-statusbar {
        display: none;
    }

    .cd-document-view-shell.is-fullscreen .cd-pdf-mobile-fullscreen-controls {
        position: fixed;
        z-index: 10055;
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        left: max(10px, env(safe-area-inset-left));
        width: fit-content;
        max-width: calc(100vw - 20px);
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 0 auto;
        padding: 6px;
        border: 1px solid rgba(120, 168, 204, 0.24);
        border-radius: 16px;
        background: rgba(4, 17, 30, 0.92);
        box-shadow: 0 16px 44px rgba(0, 5, 14, 0.42);
        backdrop-filter: blur(14px);
    }

    .cd-pdf-mobile-control {
        width: 38px;
        height: 38px;
        display: inline-grid;
        flex: 0 0 38px;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(120, 168, 204, 0.2);
        border-radius: 11px;
        background: rgba(21, 53, 77, 0.82);
        color: #dcebf5;
    }

    .cd-pdf-mobile-control.is-exit {
        margin-left: 2px;
    }

    .cd-pdf-mobile-control:disabled {
        opacity: 0.4;
    }

    .cd-pdf-mobile-fullscreen-percent {
        min-width: 44px;
        color: #dcebf5;
        font-size: 12px;
        font-weight: 700;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    html[data-theme="light"] .cd-document-view-shell.is-fullscreen .cd-pdf-mobile-fullscreen-controls {
        border-color: rgba(57, 101, 133, 0.18);
        background: rgba(248, 252, 255, 0.94);
        box-shadow: 0 16px 44px rgba(34, 67, 91, 0.2);
    }

    html[data-theme="light"] .cd-pdf-mobile-control {
        border-color: rgba(57, 101, 133, 0.16);
        background: rgba(226, 239, 248, 0.94);
        color: #244b66;
    }

    html[data-theme="light"] .cd-pdf-mobile-fullscreen-percent {
        color: #244b66;
    }
}

/* Client list: isolated client-type segmented filter. */
.cd-filter-panel .client-type-filter-group {
    display: block;
    width: 100%;
}

.cd-filter-panel .client-type-filter-label {
    display: block !important;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    text-align: left !important;
}

.cd-filter-panel .client-type-filter-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(58px, 0.62fr);
    gap: 6px;
}

.cd-filter-panel .client-type-filter-option {
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid rgba(122, 187, 226, 0.2);
    border-radius: 9px;
    color: #bcd7e5;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.cd-filter-panel .client-type-filter-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cd-filter-panel .client-type-filter-option:hover,
.cd-filter-panel .client-type-filter-option:focus-within {
    border-color: rgba(114, 199, 239, 0.42);
    color: #ffffff;
    background: rgba(63, 145, 188, 0.12);
}

.cd-filter-panel .client-type-filter-option.active {
    border-color: rgba(92, 196, 238, 0.62);
    color: #ffffff;
    background: rgba(41, 139, 188, 0.28);
    box-shadow: inset 0 0 0 1px rgba(111, 206, 245, 0.08);
}

html[data-theme="light"] .cd-filter-panel .client-type-filter-option {
    border-color: rgba(64, 121, 154, 0.2);
    color: #496879;
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .cd-filter-panel .client-type-filter-option:hover,
html[data-theme="light"] .cd-filter-panel .client-type-filter-option:focus-within {
    border-color: rgba(54, 143, 188, 0.38);
    color: #18394b;
    background: rgba(224, 243, 252, 0.9);
}

html[data-theme="light"] .cd-filter-panel .client-type-filter-option.active {
    border-color: rgba(39, 136, 183, 0.52);
    color: #12384d;
    background: rgba(109, 199, 238, 0.28);
}

/* Keep unread badges out of the collapsed nav layout so icons stay centered. */
html.cd-sidebar-collapsed .cd-nav-item.has-unread > .badge {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: auto;
    display: inline-flex !important;
    width: auto;
    min-width: 17px;
    height: 17px;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0 4px;
    opacity: 1;
    transform: none;
    border-radius: 9px;
    font-size: 10px;
    line-height: 17px;
    white-space: nowrap;
    pointer-events: none;
}

html.cd-sidebar-collapsed .cd-nav-item.has-unread > .badge.d-none {
    display: none !important;
}


/* Profiles: banner add action contains text, so it must not inherit the global square icon-button geometry. */
.cd-theme-scope.cd-profiles-page .cd-page-banner-actions > .cd-icon-button.cd-profile-banner-add {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    inline-size: auto !important;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    padding: 0 14px !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.cd-theme-scope.cd-profiles-page .cd-page-banner-actions > .cd-icon-button.cd-profile-banner-add > span {
    display: inline !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}
