:root {
    --ink: #06070a;
    --fog: #f7f8fb;
    --mist: #b8bec9;
    --amber: #ff9a18;
    --amber-soft: #ffc06a;
    --steel: #4b5df4;
    --glow: rgba(234, 43, 149, 0.28);
    --danger: #f07178;
    --card: #0e1219;
    --line: rgba(255, 255, 255, 0.09);
    --grad: linear-gradient(110deg, #ff9a18, #ea2b95 34%, #9e11df 61%, #4b5df4 80%, #00d8ee);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 43, 149, 0.5) rgba(255, 255, 255, 0.05);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.55), rgba(234, 43, 149, 0.5), rgba(75, 93, 244, 0.45));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.75), rgba(234, 43, 149, 0.7), rgba(75, 93, 244, 0.65));
    background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: "Nunito", ui-sans-serif, system-ui, sans-serif;
    color: var(--fog);
    background: var(--ink);
    overflow-x: hidden;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 2rem 1.25rem;
}

.stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(780px 420px at 7% -3%, rgba(234, 43, 149, 0.14), transparent 62%),
        radial-gradient(760px 440px at 94% 6%, rgba(0, 216, 238, 0.08), transparent 62%);
}

.curtain {
    display: none;
}

.panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand-logo {
    display: block;
    width: min(100%, 190px);
    height: auto;
    margin: 0 auto 0.85rem;
}

.brand-mark {
    display: block;
    height: 36px;
    width: auto;
}

.dash-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.gradient-text {
    display: inline-block;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--fog);
}

.brand em {
    font-style: italic;
    color: var(--amber-soft);
}

.lead {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--mist);
    line-height: 1.5;
}

.alert {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(240, 113, 120, 0.35);
    background: rgba(240, 113, 120, 0.12);
    color: #ffd4d7;
    font-size: 0.9rem;
}

.alert-success {
    border-color: rgba(70, 180, 110, 0.35);
    background: rgba(70, 180, 110, 0.12);
    color: #b6f0c3;
}

.alert-warning {
    border-color: rgba(255, 154, 24, 0.45);
    background: rgba(255, 154, 24, 0.14);
    color: #ffe0b0;
}

.alert-warning code {
    font-size: 0.86em;
    color: #fff1d6;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field[hidden] {
    display: none !important;
}

.field label {
    font-size: 13px;
    font-weight: 750;
    color: var(--mist);
}

.field-hint {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(232, 236, 245, 0.5);
    line-height: 1.4;
}

.site-subscription-fields {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
}

.site-subscription-fields legend {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--fog);
}

.site-subscription-select {
    width: 100%;
}

.site-subscription-price-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .site-subscription-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.hosting-server-picker {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
}

.hosting-server-picker legend {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--fog);
}

.hosting-server-options {
    display: grid;
    gap: 0.55rem;
}

.hosting-server-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.hosting-server-option:has(input:checked),
.hosting-server-option.is-selected:has(input:checked) {
    border-color: rgba(0, 216, 238, 0.4);
    background:
        radial-gradient(180px 80px at 0% 0%, rgba(0, 216, 238, 0.12), transparent 70%),
        rgba(255, 255, 255, 0.04);
}

.hosting-server-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.hosting-server-option span {
    display: grid;
    gap: 0.15rem;
}

.hosting-server-option strong {
    font-size: 0.95rem;
    color: var(--fog);
}

.hosting-server-option em {
    font-style: normal;
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--mist);
    line-height: 1.4;
}

.site-design-source {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
}

.site-design-source legend {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--fog);
}

.site-design-source-options {
    display: grid;
    gap: 0.55rem;
}

.site-design-source-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.site-design-source-option:has(input:checked) {
    border-color: rgba(0, 216, 238, 0.4);
    background:
        radial-gradient(180px 80px at 0% 0%, rgba(0, 216, 238, 0.12), transparent 70%),
        rgba(255, 255, 255, 0.04);
}

.site-design-source-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.site-design-source-option span {
    display: grid;
    gap: 0.15rem;
}

.site-design-source-option strong {
    font-size: 0.95rem;
    color: var(--fog);
}

.site-design-source-option em {
    font-style: normal;
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--mist);
    line-height: 1.4;
}

.js-template-picker-wrap[hidden],
.js-existing-design-hint[hidden] {
    display: none !important;
}

.template-picker {
    display: grid;
    gap: 0.75rem;
}

.template-picker-option {
    position: relative;
    display: block;
    margin: 0;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.template-picker-option:hover,
.template-picker-option:focus-within,
.template-picker-option.is-selected {
    border-color: rgba(141, 255, 193, 0.45);
    background: rgba(141, 255, 193, 0.08);
}

.template-picker-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 148px;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f6f8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    margin: 0;
}

.template-picker-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 800px;
    border: 0;
    transform: scale(0.28);
    transform-origin: top left;
    background: #fff;
    pointer-events: none;
}

.template-preview-link {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    line-height: 0;
    pointer-events: auto;
    background: rgba(16, 21, 30, 0.82);
    backdrop-filter: blur(6px);
}

.site-switch-card--wide {
    width: min(100%, 560px);
    max-height: 90dvh;
}

@media (min-width: 720px) {
    .template-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-switch-card--wide {
        width: min(100%, 720px);
    }

    .template-picker-preview {
        height: 132px;
    }

    .template-picker-preview iframe {
        transform: scale(0.25);
    }
}

.field input,
.field textarea,
.field select {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 14px 15px;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(234, 43, 149, 0.16);
}

.btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.043);
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 15px 22px;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.btn.primary {
    width: 100%;
    background: var(--grad);
    border-color: transparent;
    color: #fff;
}

.btn.primary:hover {
    background: var(--grad);
    filter: brightness(1.08);
}

.card {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--mist);
    font-size: 0.92rem;
    line-height: 1.55;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.home-panel {
    width: min(100%, 560px);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.home-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--amber);
    line-height: 1;
    margin-top: 0.15rem;
}

.feature h2 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fog);
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.85rem;
    color: var(--mist);
    line-height: 1.45;
}

.home-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.home-greeting {
    font-size: 0.88rem;
    color: var(--mist);
}

.home-greeting strong {
    color: var(--fog);
}

.form-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
}

.form-footer a {
    color: var(--mist);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: #fff;
}

.btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

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

body:has(.dashboard-shell) {
    display: block;
    padding: 0;
    place-items: unset;
    min-height: 100dvh;
}

.dashboard-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 0.95rem 1.35rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-x: clip;
    animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-shell:has(.brain-panel) {
    padding-bottom: 5.75rem;
}

.dash-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dash-top .brand-mark {
    height: 46px;
    width: auto;
}

.dash-logo {
    font-size: clamp(1.65rem, 4vw, 2rem);
    text-shadow: none;
    line-height: 1;
}

.dash-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dash-top-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dash-logout {
    display: inline-flex;
    margin: 0;
}

.dash-logout-btn {
    width: auto;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
}

.dash-docs-btn {
    width: auto;
    min-width: 2.5rem;
    padding: 0.55rem 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cron-toggle {
    gap: 0.35rem;
}

.cron-toggle-state {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cron-toggle.is-on {
    border-color: rgba(56, 196, 120, 0.45);
    color: #9dffc2;
}

.cron-toggle.is-off {
    border-color: rgba(255, 120, 120, 0.4);
    color: #ffb4b4;
    opacity: 0.9;
}

.cron-toggle.is-busy {
    opacity: 0.6;
    cursor: wait;
}

.dash-docs-icon {
    display: block;
}

.dash-docs-icon[hidden] {
    display: none !important;
}

.dash-nav-toggle .dash-nav-toggle-close {
    display: none;
}

.dash-nav-toggle.is-open .dash-nav-toggle-open {
    display: none;
}

.dash-nav-toggle.is-open .dash-nav-toggle-close {
    display: block;
}

.theme-toggle-btn .theme-toggle-icon-sun {
    display: none;
}

.theme-toggle-btn .theme-toggle-icon-moon {
    display: block;
}

html[data-theme="light"] .theme-toggle-btn .theme-toggle-icon-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle-btn .theme-toggle-icon-moon {
    display: none;
}

.dash-settings {
    position: relative;
}

.dash-settings-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 40;
    min-width: 13.5rem;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 18, 25, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dash-settings-menu[hidden] {
    display: none;
}

.dash-settings-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #dce3ef;
    font-family: "Outfit", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.dash-settings-item:hover,
.dash-settings-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fog);
    outline: none;
}

.dash-settings-item svg {
    flex: 0 0 auto;
    opacity: 0.9;
}

.dash-settings-icon-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.dash-settings-status-dot {
    position: absolute;
    top: -0.1rem;
    right: -0.15rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(14, 18, 25, 0.95);
}

.dash-settings-item.is-ok .dash-settings-status-dot {
    background: #6ee7b7;
}

.dash-settings-item.is-fail .dash-settings-status-dot {
    background: #ff9a18;
}

.dns-status-icon {
    position: relative;
}

.dns-status-dot {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(14, 18, 25, 0.9);
}

.dns-status-icon.is-ok .dns-status-dot {
    background: #6ee7b7;
}

.dns-status-icon.is-fail .dns-status-dot {
    background: #ff9a18;
}

.skills-docs-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2.5rem;
    overflow: auto;
}

.skills-docs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.skills-docs-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.2rem 0 0.35rem;
}

.skills-docs-lead {
    margin: 0;
    color: var(--mist);
    line-height: 1.55;
    max-width: 42rem;
}

.skills-docs-count {
    margin: 0;
    color: var(--mist);
    font-size: 0.92rem;
    white-space: nowrap;
}

.skills-docs-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skills-docs-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mist);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.skills-docs-tab:hover,
.skills-docs-tab.is-active {
    color: var(--fog);
    border-color: transparent;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.skills-docs-tab-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fog);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    min-width: 1.4rem;
    text-align: center;
}

.skills-docs-section {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.skills-docs-section.is-active {
    display: flex;
}

.skills-docs-section-lead {
    margin: 0;
    color: var(--mist);
    line-height: 1.5;
    max-width: 44rem;
}

.skills-docs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.skills-docs-item {
    border-top: 1px solid color-mix(in srgb, var(--fog) 14%, transparent);
    padding: 1rem 0 0.35rem;
}

.skills-docs-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.skills-docs-item-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fog);
}

.skills-docs-step-num {
    color: color-mix(in srgb, var(--fog) 55%, var(--mist));
    font-weight: 800;
    margin-right: 0.2rem;
}

.skills-docs-steps {
    counter-reset: none;
    list-style: none;
}

.skills-prompt-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.skills-prompt-group + .skills-prompt-group {
    margin-top: 1rem;
}

.skills-prompt-group-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--fog);
}

.skills-prompt-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.skills-prompt-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.skills-prompt-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.skills-prompt-summary::-webkit-details-marker {
    display: none;
}

.skills-prompt-summary::marker {
    content: "";
}

.skills-prompt-summary::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--mist);
    border-bottom: 2px solid var(--mist);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.skills-prompt-item[open] > .skills-prompt-summary::before {
    transform: rotate(45deg);
}

.skills-prompt-label {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: "Outfit", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--fog);
}

.skills-prompt-hint {
    font-weight: 500;
    font-size: 0.86rem;
    color: var(--mist);
}

.skills-prompt-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0 1rem 0.95rem;
}

.skills-prompt-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0 auto;
    flex-shrink: 0;
}

.skills-prompt-enqueue-form {
    margin: 0;
    display: inline-flex;
}

.skills-prompt-model-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    max-width: 9.5rem;
    height: 2rem;
    padding: 0 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fog);
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.skills-prompt-model-btn:hover,
.skills-prompt-model-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    outline: none;
}

.skills-prompt-model-btn.is-saving {
    opacity: 0.7;
}

.skills-prompt-model-btn.is-saved {
    border-color: rgba(74, 222, 128, 0.55);
}

.skills-prompt-model-btn.is-error {
    border-color: rgba(248, 113, 113, 0.7);
}

.skills-prompt-model-btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skills-model-card {
    width: min(100%, 440px);
}

.skills-model-choices {
    display: grid;
    gap: 0.75rem;
    margin: 0.85rem 0 1rem;
}

.skills-model-group-label {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.skills-model-group {
    display: grid;
    gap: 0.4rem;
}

.skills-model-choice {
    appearance: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fog);
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.skills-model-choice-label {
    flex: 1 1 auto;
    min-width: 0;
}

.skills-model-choice-price {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--mist);
    white-space: nowrap;
}

.skills-model-choice:hover,
.skills-model-choice:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.skills-model-choice.is-selected {
    border-color: rgba(141, 255, 193, 0.55);
    background: rgba(141, 255, 193, 0.1);
}

@media (max-width: 720px) {
    .skills-prompt-summary {
        flex-wrap: wrap;
    }

    .skills-prompt-model-btn {
        max-width: 100%;
        width: 100%;
    }
}

.skills-prompt-icon-btn {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--fog);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.skills-prompt-icon-btn:hover:not(:disabled),
.skills-prompt-icon-btn:focus-visible {
    outline: none;
    background: rgba(255, 154, 24, 0.16);
    border-color: rgba(255, 154, 24, 0.45);
    color: #ffc06a;
}

.skills-prompt-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.skills-prompt-icon-btn svg {
    display: block;
}

.skills-prompt-enqueue {
    border-color: rgba(255, 154, 24, 0.45);
    background: rgba(255, 154, 24, 0.14);
}

.skills-prompt-enqueue:hover:not(:disabled),
.skills-prompt-enqueue:focus-visible {
    background: rgba(255, 154, 24, 0.24);
    border-color: rgba(255, 154, 24, 0.7);
    color: #ffc06a;
}

.skills-prompt-enqueue.is-queued {
    border-color: transparent;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.skills-prompt-copy.is-copied {
    background: rgba(72, 187, 140, 0.18);
    border-color: rgba(72, 187, 140, 0.4);
    color: #6ee7b7;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-icon-btn {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-icon-btn:hover:not(:disabled),
html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-icon-btn:focus-visible {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, 0.45);
    color: #9a3412;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-enqueue {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, 0.45);
    color: #9a3412;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-enqueue:hover:not(:disabled),
html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-enqueue:focus-visible {
    background: #ffedd5;
    border-color: rgba(154, 52, 18, 0.65);
    color: #7c2d12;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-enqueue.is-queued {
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-prompt-copy.is-copied {
    background: #ecfdf5;
    border-color: rgba(5, 150, 105, 0.4);
    color: #047857;
}

.skills-prompt-text {
    margin: 0;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--mist);
}

.skills-docs-item-id {
    font-size: 0.8rem;
    color: var(--mist);
}

.skills-docs-meta {
    margin: 0 0 0.45rem;
    color: color-mix(in srgb, var(--fog) 72%, var(--mist));
    font-size: 0.88rem;
}

.skills-docs-why,
.skills-docs-effect {
    margin: 0 0 0.4rem;
    color: var(--mist);
    line-height: 1.55;
    max-width: 52rem;
}

.skills-docs-why strong,
.skills-docs-effect strong {
    color: var(--fog);
    font-weight: 600;
}

.dns-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.dns-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dns-update-form {
    margin: 0;
}

.dns-update-btn {
    width: auto;
    white-space: nowrap;
}

.dns-page-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.2rem 0 0.35rem;
}

.dns-page-lead,
.dns-page-empty {
    color: var(--mist);
    line-height: 1.5;
    max-width: 36rem;
}

.agent-prompt-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.agent-prompt-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.agent-prompt-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.2rem 0 0.35rem;
}

.agent-prompt-lead {
    margin: 0;
    color: var(--mist);
    line-height: 1.5;
    max-width: 40rem;
}

.agent-prompt-site-id {
    margin-left: 0.25rem;
    font-size: 0.86em;
}

.agent-prompt-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.65rem;
}

.agent-prompt-sub-btn {
    gap: 0.45rem;
}

.agent-prompt-sub-btn-label {
    font-size: 0.78rem;
    font-weight: 700;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-prompt-sub-btn.has-plan {
    border-color: rgba(52, 211, 153, 0.35);
}

.agent-prompt-cron-details {
    margin: 0;
}

.agent-prompt-cron-details > summary {
    cursor: pointer;
    color: var(--mist);
    font-size: 0.84rem;
    font-weight: 600;
    list-style: none;
}

.agent-prompt-cron-details > summary::-webkit-details-marker {
    display: none;
}

.agent-prompt-cron-details[open] > summary {
    color: var(--fog);
    margin-bottom: 0.35rem;
}

.agent-sub-card {
    width: min(100%, 560px);
}

.agent-sub-card .agent-prompt-sub-form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    max-width: none;
}

.agent-sub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.agent-prompt-form,
.agent-prompt-sub-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.2rem 1.25rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: var(--card);
    max-width: 52rem;
}

.agent-prompt-sub-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.agent-prompt-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.agent-prompt-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.agent-prompt-input {
    width: 100%;
    height: 2.75rem;
    padding: 0 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 20, 0.55);
    color: var(--fog);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
}

.agent-prompt-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 216, 238, 0.12);
}

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

html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-input {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.14);
    color: #12151c;
}

.agent-prompt-select {
    flex: 1 1 220px;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 20, 0.55);
    color: var(--fog);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
}

.agent-prompt-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 216, 238, 0.12);
}

.agent-prompt-sub-row .btn {
    width: auto;
}

.agent-prompt-label {
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--fog);
}

.agent-prompt-textarea {
    width: 100%;
    min-height: 12rem;
    resize: vertical;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 20, 0.55);
    color: var(--fog);
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.45;
}

.agent-prompt-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 216, 238, 0.12);
}

.agent-prompt-cli {
    margin-top: 0.25rem;
}

.agent-prompt-cli-label {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 750;
    color: var(--mist);
}

.agent-prompt-cli-code {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    color: #d7dae2;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-prompt-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.agent-prompt-actions .btn {
    width: auto;
}

.agent-prompt-hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--mist);
}

.agent-prompt-result {
    max-width: 52rem;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card);
}

.agent-prompt-result.is-ok {
    border-color: rgba(72, 200, 140, 0.35);
}

.agent-prompt-result.is-fail {
    border-color: rgba(240, 110, 110, 0.35);
}

.agent-prompt-result-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--fog);
}

.agent-prompt-result-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.agent-prompt-result-meta li {
    display: flex;
    gap: 0.65rem;
    color: var(--mist);
    font-size: 0.9rem;
}

.agent-prompt-result-meta span {
    min-width: 4.5rem;
    font-weight: 700;
    color: var(--fog);
}

.agent-prompt-result-error,
.agent-prompt-result-prompt {
    margin: 0.85rem 0 0;
    color: var(--mist);
    line-height: 1.45;
}

.agent-prompt-result-error {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(240, 110, 110, 0.28);
    background: rgba(0, 0, 0, 0.28);
    color: #f0d0d0;
    font-size: 0.84rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-prompt-head-meta {
    display: grid;
    gap: 0.2rem;
    text-align: right;
    min-width: 8.5rem;
}

.agent-prompt-run-now-form {
    margin: 0;
    display: inline-flex;
}

.agent-prompt-run-now {
    padding: 0.28rem 0.7rem;
    font-size: 0.78rem;
}

.agent-prompt-pending,
.agent-prompt-cron-next,
.agent-prompt-cron-last {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--mist);
}

.agent-prompt-cron-next span,
.agent-prompt-cron-last strong {
    color: var(--fog);
}

.agent-prompt-cron-msg {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mist);
}

.agent-prompt-queue-eta {
    margin: 0.55rem 0 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #9fdff0;
}

.agent-prompt-queue-eta.is-now {
    color: #9ee6c2;
}

.agent-prompt-queue-eta-at {
    font-weight: 600;
    color: var(--mist);
}

.agent-prompt-queue {
    max-width: 52rem;
}

.agent-prompt-queue-global {
    max-width: 56rem;
}

.agent-prompt-queue-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.agent-prompt-queue-head .agent-prompt-queue-title {
    margin: 0;
}

.agent-prompt-queue-all-btn {
    width: auto;
    min-height: 0;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}

.agent-prompt-queue-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--fog);
}

.agent-prompt-queue-list-ordered {
    list-style: none;
    counter-reset: none;
}

.agent-prompt-queue-pos-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.agent-prompt-queue-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    background: rgba(0, 216, 238, 0.12);
    color: var(--accent, #00d8ee);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.agent-prompt-queue-item.is-running .agent-prompt-queue-pos {
    background: rgba(240, 190, 80, 0.18);
    color: #f0be50;
}

.agent-prompt-queue-site {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fog);
}

.agent-prompt-queue-id {
    font-size: 0.78rem;
    opacity: 0.7;
}

.agent-prompt-queue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.agent-prompt-queue-item {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: var(--card);
}

.agent-prompt-queue-item.is-pending {
    border-color: rgba(0, 216, 238, 0.25);
}

.agent-prompt-queue-item.is-running {
    border-color: rgba(240, 190, 80, 0.35);
}

.agent-prompt-queue-item.is-done {
    border-color: rgba(72, 200, 140, 0.3);
}

.agent-prompt-queue-item.is-fail {
    border-color: rgba(240, 110, 110, 0.3);
}

.agent-prompt-queue-item.is-current-site {
    box-shadow: inset 3px 0 0 rgba(0, 216, 238, 0.55);
}

.agent-prompt-queue-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.agent-prompt-queue-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.agent-prompt-delete-btn {
    width: auto;
    min-height: 0;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
}

.agent-queue-delete-prompt {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    color: var(--fog);
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-prompt-queue-status {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mist);
}

.agent-prompt-queue-prompt {
    margin: 0.55rem 0 0;
    color: var(--fog);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-prompt-queue-error {
    margin: 0.45rem 0 0;
    color: #f0d0d0;
    font-size: 0.86rem;
    line-height: 1.4;
}

.agent-prompt-queue-meta {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--mist);
}

.logs-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    overflow-x: clip;
}

.logs-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    flex-wrap: wrap;
}

.logs-page-copy {
    flex: 1 1 18rem;
    min-width: 0;
}

.logs-page-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.2rem 0 0.35rem;
}

.logs-page-lead {
    margin: 0;
    color: var(--mist);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 40rem;
}

.logs-summary-card {
    flex: 0 0 auto;
    display: grid;
    gap: 0.2rem;
    min-width: 11.5rem;
    max-width: 16rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
}

.logs-summary-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.logs-summary-value {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    line-height: 1.1;
}

.logs-summary-meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--mist);
}

.logs-summary-usage {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.logs-site-usage-tokens {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 0.84rem;
    font-weight: 650;
    color: #d5e2f2;
    line-height: 1.4;
}

.logs-site-usage-cost {
    margin: 0.35rem 0 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #9ee6c2;
    line-height: 1.3;
}

.logs-site-usage-runs {
    margin: 0.3rem 0 0;
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--mist);
}

.logs-empty {
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: var(--card);
    color: var(--mist);
    line-height: 1.55;
}

.logs-page-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
}

.logs-sidebar,
.logs-detail {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: var(--card);
    backdrop-filter: blur(14px);
    min-width: 0;
    max-width: 100%;
    min-height: 0;
}

.logs-sidebar {
    position: sticky;
    top: 1rem;
    padding: 0.9rem 0.75rem 0.85rem;
    overflow: hidden;
}

.logs-sidebar-label {
    margin: 0 0.15rem 0.65rem;
    padding: 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.logs-file-list {
    list-style: none;
    margin: 0;
    padding: 0 0.35rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: min(68vh, 680px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 43, 149, 0.5) rgba(255, 255, 255, 0.05);
    scrollbar-gutter: stable;
}

.logs-file-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.logs-file-list::-webkit-scrollbar-track {
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.logs-file-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.55), rgba(234, 43, 149, 0.5), rgba(75, 93, 244, 0.45));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.logs-file-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.75), rgba(234, 43, 149, 0.7), rgba(75, 93, 244, 0.65));
    background-clip: padding-box;
}

.logs-file-list::-webkit-scrollbar-corner {
    background: transparent;
}

.logs-file-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
}

.logs-file-link:hover,
.logs-file-link:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.logs-file-link.is-active {
    border-color: transparent;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.logs-file-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fog);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.logs-file-meta {
    font-size: 0.74rem;
    color: var(--mist);
}

.logs-detail {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
}

.logs-detail-head {
    padding: 1.1rem 1.2rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logs-detail-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--fog);
    margin: 0 0 0.3rem;
    letter-spacing: -0.02em;
}

.logs-detail-meta {
    font-size: 0.78rem;
    color: var(--mist);
}

.logs-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.9rem 1.1rem 1.15rem;
    min-width: 0;
    max-width: 100%;
}

.logs-timeline-item {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.logs-timeline-item.is-target .logs-timeline-card {
    outline: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.35rem 0.55rem 0.35rem 0;
}

.logs-timeline-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    align-self: stretch;
}

.logs-timeline-dot {
    width: 0.68rem;
    height: 0.68rem;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: 0 0 0 3px rgba(234, 43, 149, 0.18);
    flex-shrink: 0;
    z-index: 1;
}

.logs-timeline-line {
    flex: 1;
    width: 2px;
    margin-top: 0.3rem;
    background: rgba(255, 255, 255, 0.12);
    min-height: 0.75rem;
}

.logs-timeline-item:last-child .logs-timeline-line {
    display: none;
}

.logs-timeline-card {
    position: relative;
    min-width: 0;
    margin: 0 0 0.85rem;
    padding: 0;
}

.logs-timeline-item:last-child .logs-timeline-card {
    margin-bottom: 0;
}

.logs-step-time {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--mist);
}

.logs-step-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--fog);
}

.logs-step-head {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    max-width: min(100%, 22rem);
}

.logs-step-head.has-usage {
    position: static;
    top: auto;
    right: auto;
    max-width: none;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 20, 0.45);
    box-sizing: border-box;
}

.logs-usage-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 18, 25, 0.72);
    color: #c9d4e4;
    font-family: "Outfit", sans-serif;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.35;
    white-space: normal;
}

.logs-prompt {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.logs-prompt summary {
    cursor: pointer;
    list-style: none;
    font-family: "Outfit", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(201, 212, 228, 0.88);
    user-select: none;
}

.logs-prompt summary::-webkit-details-marker {
    display: none;
}

.logs-prompt summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.4rem;
    color: rgba(141, 255, 193, 0.75);
    transition: transform 0.15s ease;
}

.logs-prompt[open] summary::before {
    transform: rotate(90deg);
}

.logs-prompt-body {
    margin: 0.65rem 0 0.15rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 11, 16, 0.55);
    color: #d7deea;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 14rem;
    overflow: auto;
}

.logs-usage-tokens {
    display: inline;
}

.logs-usage-cost {
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(158, 230, 194, 0.12);
    color: #9ee6c2;
    font-weight: 750;
    white-space: nowrap;
}

.logs-day-usage {
    margin-top: 0.45rem;
    line-height: 1.5;
}

.logs-usage-estimate {
    margin-left: 0.35rem;
    opacity: 0.65;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.logs-busy-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(141, 255, 193, 0.28);
    background: rgba(141, 255, 193, 0.12);
    color: #8dffc1;
    font-family: "Outfit", sans-serif;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.logs-timeline-item.is-pending .logs-timeline-dot {
    background: #8dffc1;
    box-shadow: 0 0 0 4px rgba(141, 255, 193, 0.18);
}

.logs-timeline-card .logs-detail-body.logs-prose {
    padding-top: 0;
}

.logs-timeline-card:has(.logs-stream-btn):not(:has(.logs-step-head.has-usage)) .logs-detail-body.logs-prose,
.logs-timeline-card:has(.logs-busy-badge) .logs-detail-body.logs-pending {
    padding-right: 7.5rem;
}

.logs-timeline-card:has(.logs-step-head.has-usage) .logs-detail-body.logs-prose {
    padding-right: 0;
}

.logs-stream-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(16, 21, 30, 0.88);
    color: #dbe7f5;
    font-family: "Outfit", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.logs-stream-btn:hover,
.logs-stream-btn:focus-visible {
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.45);
    color: #e0f2fe;
    outline: none;
}

.logs-stream-btn svg {
    display: block;
    opacity: 0.9;
}

body.logs-stream-open {
    overflow: hidden;
}

.logs-stream-modal {
    align-items: stretch;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.logs-stream-modal .logs-stream-card {
    width: min(100%, 880px);
    height: min(92dvh, 920px);
    max-height: min(92dvh, 920px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    padding: 0;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 9rem),
        #10151e;
}

.logs-stream-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 1.1rem 1.15rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 11, 18, 0.35);
}

.logs-stream-card-copy {
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 0.25rem;
}

.logs-stream-card-head .eyebrow {
    margin: 0 0 0.2rem;
}

.logs-stream-card-head .site-switch-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    letter-spacing: -0.03em;
}

.logs-stream-card-head .site-switch-lead {
    margin: 0.3rem 0 0;
    max-width: 42rem;
    font-size: 0.9rem;
}

.logs-stream-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    min-width: 0;
    margin: 0.1rem 0 0;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.logs-stream-close-label {
    font-size: 0.78rem;
    font-weight: 700;
}

.logs-stream-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1.1rem 1.2rem 1.4rem;
    scroll-behavior: smooth;
}

.logs-stream-loading,
.logs-stream-empty,
.logs-stream-error {
    margin: 1.5rem auto;
    max-width: 28rem;
    text-align: center;
    color: var(--mist);
    font-size: 0.95rem;
    line-height: 1.5;
}

.logs-stream-error {
    color: #fecaca;
}

.logs-stream-list {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logs-stream-item {
    display: grid;
    grid-template-columns: 1.4rem minmax(0, 1fr);
    column-gap: 0.85rem;
}

.logs-stream-item-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.logs-stream-item-rail::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    bottom: -0.15rem;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.22),
        rgba(255, 255, 255, 0.05) 70%,
        transparent
    );
}

.logs-stream-item:last-child .logs-stream-item-rail::before {
    display: none;
}

.logs-stream-dot {
    position: relative;
    z-index: 1;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.85rem;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow:
        0 0 0 3px rgba(125, 211, 252, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.logs-stream-item-card {
    min-width: 0;
    margin: 0 0 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(125, 211, 252, 0.55);
    background: rgba(255, 255, 255, 0.028);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.logs-stream-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.logs-stream-item-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.logs-stream-index {
    flex: 0 0 auto;
    font-family: "Outfit", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(232, 238, 248, 0.45);
}

.logs-stream-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.06);
    color: #e8eef8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logs-stream-meta {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--mist);
    white-space: nowrap;
}

.logs-stream-item-body {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #d7deea;
    white-space: pre-wrap;
    word-break: break-word;
}

.logs-stream-item-body:empty {
    display: none;
}

.logs-stream-system .logs-stream-dot { background: #a5b4fc; box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.16); }
.logs-stream-assistant .logs-stream-dot,
.logs-stream-thinking .logs-stream-dot { background: #f0abfc; box-shadow: 0 0 0 3px rgba(240, 171, 252, 0.16); }
.logs-stream-read .logs-stream-dot { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16); }
.logs-stream-write .logs-stream-dot,
.logs-stream-edit .logs-stream-dot { background: #86efac; box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.16); }
.logs-stream-shell .logs-stream-dot { background: #fcd34d; box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.16); }
.logs-stream-tool .logs-stream-dot { background: #c4b5fd; box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.16); }
.logs-stream-result .logs-stream-dot { background: #7dd3fc; box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.18); }

.logs-stream-system .logs-stream-item-card { border-left-color: rgba(165, 180, 252, 0.7); }
.logs-stream-assistant .logs-stream-item-card,
.logs-stream-thinking .logs-stream-item-card { border-left-color: rgba(240, 171, 252, 0.7); }
.logs-stream-read .logs-stream-item-card { border-left-color: rgba(148, 163, 184, 0.7); }
.logs-stream-write .logs-stream-item-card,
.logs-stream-edit .logs-stream-item-card { border-left-color: rgba(134, 239, 172, 0.75); }
.logs-stream-shell .logs-stream-item-card { border-left-color: rgba(252, 211, 77, 0.75); }
.logs-stream-tool .logs-stream-item-card { border-left-color: rgba(196, 181, 253, 0.7); }
.logs-stream-result .logs-stream-item-card {
    border-left-color: rgba(125, 211, 252, 0.85);
    border-color: rgba(125, 211, 252, 0.22);
    background: rgba(14, 116, 144, 0.14);
}

.logs-stream-write .logs-stream-badge,
.logs-stream-edit .logs-stream-badge {
    background: rgba(134, 239, 172, 0.12);
    border-color: rgba(134, 239, 172, 0.22);
    color: #bbf7d0;
}

.logs-stream-assistant .logs-stream-badge,
.logs-stream-thinking .logs-stream-badge {
    background: rgba(240, 171, 252, 0.12);
    border-color: rgba(240, 171, 252, 0.22);
    color: #f5d0fe;
}

.logs-stream-system .logs-stream-badge {
    background: rgba(165, 180, 252, 0.12);
    border-color: rgba(165, 180, 252, 0.22);
    color: #c7d2fe;
}

.logs-stream-result .logs-stream-badge {
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.24);
    color: #bae6fd;
}

@media (max-width: 720px) {
    .logs-stream-modal {
        padding: 0.55rem;
    }

    .logs-stream-modal .logs-stream-card {
        height: calc(100dvh - 1.1rem);
        max-height: calc(100dvh - 1.1rem);
        border-radius: 18px;
    }

    .logs-stream-card-head {
        padding: 0.95rem 0.85rem 0.85rem;
        gap: 0.55rem;
    }

    .logs-stream-body {
        padding: 0.95rem 0.85rem 1.15rem;
    }

    .logs-stream-close {
        width: 2.15rem;
        height: 2.15rem;
        padding: 0;
        margin: 0;
        border-radius: 999px;
    }

    .logs-stream-close-label {
        display: none;
    }

    .logs-stream-item {
        grid-template-columns: 1rem minmax(0, 1fr);
        column-gap: 0.65rem;
    }

    .logs-stream-item-card {
        padding: 0.8rem 0.85rem;
    }

    .logs-stream-item-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

.logs-detail-body {
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    max-height: none;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    background: transparent;
}

.logs-timeline-card .logs-pending {
    min-height: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.logs-pending {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(42vh, 360px);
}

.logs-pending-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    padding: 1.5rem 1rem;
}

.logs-spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-top-color: #ff9a18;
    border-right-color: #ea2b95;
    animation: logsSpin 0.75s linear infinite;
}

.logs-pending-title {
    margin: 0.35rem 0 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--fog);
    letter-spacing: -0.02em;
}

.logs-pending-text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--mist);
    line-height: 1.45;
}

@keyframes logsSpin {
    to {
        transform: rotate(360deg);
    }
}

.logs-prose {
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #dce3ef;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.logs-prose > :last-child {
    margin-bottom: 0;
}

.logs-prose .md-p {
    margin: 0 0 1rem;
}

.logs-prose .md-h1,
.logs-prose .md-h2,
.logs-prose .md-h3,
.logs-prose .md-h4,
.logs-prose .md-h5,
.logs-prose .md-h6 {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fog);
    line-height: 1.25;
    margin: 1.35rem 0 0.55rem;
}

.logs-prose .md-h1 { font-size: 1.55rem; }
.logs-prose .md-h2 { font-size: 1.28rem; }
.logs-prose .md-h3 { font-size: 1.1rem; }
.logs-prose .md-h4,
.logs-prose .md-h5,
.logs-prose .md-h6 { font-size: 1rem; }

.logs-prose > :first-child {
    margin-top: 0;
}

.logs-prose strong {
    color: var(--fog);
    font-weight: 750;
}

.logs-prose em {
    color: #e8eef8;
}

.logs-prose .md-ul,
.logs-prose .md-ol {
    margin: 0 0 1.05rem;
    padding-left: 1.25rem;
}

.logs-prose .md-ul {
    list-style: disc;
}

.logs-prose .md-ol {
    list-style: decimal;
}

.logs-prose .md-ul li,
.logs-prose .md-ol li {
    margin: 0.35rem 0;
    padding-left: 0.2rem;
}

.logs-prose .md-inline-code {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
    font-size: 0.86em;
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #f0c674;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.logs-prose .md-code {
    margin: 0 0 1.1rem;
    padding: 0.95rem 1rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logs-prose .md-code code {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #e8eef8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.logs-prose .md-hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1.25rem 0;
}

.logs-prose .md-link {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.logs-prose .md-link:hover {
    color: #bae6fd;
}

.logs-prose .md-figure {
    margin: 0.85rem 0 1.15rem;
    padding: 0;
    max-width: 100%;
}

.logs-prose .md-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.logs-prose .md-img-caption {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--mist);
    letter-spacing: 0.02em;
}

.logs-prose .logs-shot-wrap {
    margin: 0.65rem 0 1rem;
}

.logs-shot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(16, 21, 30, 0.88);
    color: #dbe7f5;
    font-family: "Outfit", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.logs-shot-btn:hover,
.logs-shot-btn:focus-visible {
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.45);
    color: #e0f2fe;
    outline: none;
}

.logs-shot-btn svg {
    display: block;
    opacity: 0.92;
    flex: 0 0 auto;
}

body.logs-shot-open {
    overflow: hidden;
}

.logs-shot-modal {
    align-items: stretch;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.logs-shot-modal .logs-shot-card {
    width: min(100%, 960px);
    height: min(92dvh, 960px);
    max-height: min(92dvh, 960px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    padding: 0;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 9rem),
        #10151e;
}

.logs-shot-modal.is-compare .logs-shot-card {
    width: min(100%, 1280px);
}

.logs-shot-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 1.1rem 1.15rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 11, 18, 0.35);
}

.logs-shot-card-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.logs-shot-card-head .eyebrow {
    margin: 0 0 0.2rem;
}

.logs-shot-card-head .site-switch-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    letter-spacing: -0.03em;
}

.logs-shot-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.logs-shot-close-label {
    font-size: 0.85rem;
}

.logs-shot-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    background:
        radial-gradient(circle at top, rgba(125, 211, 252, 0.06), transparent 42%),
        rgba(0, 0, 0, 0.18);
}

.logs-shot-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.logs-shot-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    min-height: 0;
    height: 100%;
}

.logs-shot-body:has(.logs-shot-compare:not([hidden])) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.logs-shot-pane {
    margin: 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.logs-shot-pane figcaption {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Outfit", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #dbe7f5;
    background: rgba(8, 11, 18, 0.45);
}

.logs-shot-pane-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.55rem;
}

.logs-shot-pane .logs-shot-img {
    border-radius: 8px;
}

@media (max-width: 720px) {
    .logs-shot-modal {
        padding: 0.55rem;
    }

    .logs-shot-modal .logs-shot-card {
        height: min(94dvh, 960px);
        max-height: min(94dvh, 960px);
        border-radius: 18px;
    }

    .logs-shot-close-label {
        display: none;
    }

    .logs-shot-compare {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        overflow: auto;
        height: auto;
    }

    .logs-shot-body:has(.logs-shot-compare:not([hidden])) {
        overflow: auto;
    }

    .logs-shot-pane {
        min-height: 42dvh;
    }
}

.logs-prose .md-table-wrap {
    margin: 0 0 1.15rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
}

.logs-prose .md-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.4;
}

.logs-prose .md-table th,
.logs-prose .md-table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logs-prose .md-table th {
    font-weight: 700;
    color: var(--fog);
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.logs-prose .md-table td {
    color: #dce3ef;
}

.logs-prose .md-table tbody tr:last-child td {
    border-bottom: 0;
}

.logs-prose .md-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.logs-prose .md-table td:last-child,
.logs-prose .md-table th:last-child {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
    .logs-page-head {
        flex-direction: column;
    }

    .logs-summary-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .logs-page-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .logs-sidebar {
        position: static;
        padding: 0.85rem 0.75rem 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .logs-sidebar-label {
        margin-bottom: 0.55rem;
    }

    .logs-file-list {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.45rem;
        max-height: none;
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 0.4rem;
        scrollbar-gutter: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .logs-file-list::-webkit-scrollbar-track {
        margin: 0 4px;
    }

    .logs-file-list > li {
        flex: 0 0 auto;
        max-width: none;
    }

    .logs-file-link {
        min-width: max-content;
        max-width: none;
        padding: 0.55rem 0.85rem;
        scroll-snap-align: start;
    }

    .logs-detail,
    .logs-timeline,
    .logs-timeline-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .logs-timeline {
        padding: 0.85rem 0.85rem 1rem;
    }

    .logs-step-head.has-usage {
        flex-direction: column;
        align-items: stretch;
    }

    .logs-usage-badge,
    .logs-stream-btn {
        max-width: 100%;
    }

    .logs-prose .md-table th,
    .logs-prose .md-table td:last-child,
    .logs-prose .md-table th:last-child {
        white-space: normal;
    }
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1.1rem;
    max-height: min(70vh, 760px);
    overflow: auto;
}

.activity-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    padding: 0.85rem 0.95rem;
}

.activity-item.is-fail {
    border-color: rgba(255, 110, 110, 0.28);
    background: rgba(255, 80, 80, 0.06);
}

.activity-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.45rem;
}

.activity-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mist);
}

.activity-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #10151e;
    background: #9fb3ff;
}

.activity-method-post {
    background: #ffb07a;
}

.activity-method-get {
    background: #7fd6c2;
}

.activity-status,
.activity-duration {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--mist);
    font-variant-numeric: tabular-nums;
}

.activity-action {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: -0.015em;
    color: var(--fog);
}

.activity-path {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--mist);
    word-break: break-all;
}

.activity-result {
    margin: 0.45rem 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #cfe9d8;
}

.activity-result.is-fail {
    color: #ffc2c2;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
    color: rgba(220, 227, 239, 0.65);
}

.activity-payload {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.activity-payload-block {
    min-width: 0;
}

.activity-payload-block > summary.activity-details-label {
    cursor: pointer;
    list-style: none;
}

.activity-payload-block > summary.activity-details-label::-webkit-details-marker {
    display: none;
}

.activity-payload-block > summary.activity-details-label::before {
    content: "▸ ";
}

.activity-payload-block[open] > summary.activity-details-label::before {
    content: "▾ ";
}

.activity-payload-block[open] > .activity-details-pre {
    margin-top: 0.35rem;
}

.activity-payload-empty {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(220, 227, 239, 0.55);
}

.activity-details-label {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--mist);
}

.activity-details-pre {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    color: #dce3ef;
    font-size: 0.72rem;
    line-height: 1.45;
    overflow: auto;
    max-height: 220px;
    white-space: pre-wrap;
    word-break: break-word;
}

.cron-docs-modal .cron-docs-card {
    width: min(100%, 720px);
    max-height: min(88vh, 820px);
    overflow: auto;
}

.cron-docs-steps ul {
    margin: 0.35rem 0 0.15rem;
    padding-left: 1.1rem;
}

.cron-docs-steps ul li {
    margin: 0 0 0.25rem;
}

.cron-docs-section {
    margin: 0 0 1.25rem;
}

.cron-docs-section h3 {
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--fog);
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.cron-docs-block {
    margin: 0 0 0.75rem;
}

.cron-docs-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mist);
    margin: 0 0 0.35rem;
}

.cron-docs-code {
    margin: 0 0 0.4rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.35);
    color: #e8eef8;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.cron-docs-note {
    margin: 0 0 1.15rem;
    font-size: 0.84rem;
    color: var(--mist);
    line-height: 1.5;
}

.cron-docs-steps {
    margin: 0 0 0.85rem;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    color: var(--mist);
    line-height: 1.55;
}

.cron-docs-steps li {
    margin: 0 0 0.45rem;
}

.cron-docs-steps a {
    color: #fff;
}

.cron-docs-note code,
.cron-docs-modal .site-switch-lead code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8em;
    color: #fff;
}

.cron-docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--mist);
}

.cron-docs-table th,
.cron-docs-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.4;
}

.cron-docs-table th {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.cron-docs-table code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85em;
    color: #fff;
}

.site-setup {
    width: min(100%, 720px);
    margin: 2rem auto 0;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: var(--card);
    backdrop-filter: blur(14px);
}

.site-setup-copy {
    margin-bottom: 1.5rem;
}

.site-setup-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.35rem 0 0.65rem;
}

.site-setup-lead {
    font-size: 0.95rem;
    color: var(--mist);
    line-height: 1.55;
}

.site-setup-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.site-setup-form .btn.primary {
    margin-top: 0.25rem;
}

.field--compact input,
.site-setup-form .field--compact input,
.site-add-form .field--compact input {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
    line-height: 1.3;
    min-height: 0;
    height: 2.4rem;
}

.site-switcher-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fog);
    font-family: "Nunito", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    max-width: 180px;
}

.site-switcher-mark {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--mist);
}

.site-switcher-mark svg {
    display: block;
    fill: currentColor;
}

.site-switcher-trigger:hover,
.site-switcher-trigger:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
}

.site-switcher-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-switcher-static {
    display: inline-flex;
    align-items: center;
    max-width: 12rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #dce3ef;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

a.site-switcher-static:hover,
a.site-switcher-static:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--fog);
    outline: none;
}

.users-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.users-title {
    margin: 0.2rem 0 0.35rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.users-lead {
    margin: 0;
    color: var(--mist);
    max-width: 40rem;
}

.users-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 1.1rem;
    align-items: start;
}

.users-list-card,
.users-form-card {
    padding: 1.2rem 1.25rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: var(--card);
}

.users-subtitle {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--fog);
}

.users-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.users-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.users-item-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.users-item-copy strong {
    color: var(--fog);
}

.users-item-meta {
    color: var(--mist);
    font-size: 0.82rem;
}

.users-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.users-impersonate-form,
.users-delete-form {
    margin: 0;
}

.impersonation-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 154, 24, 0.45);
    background: linear-gradient(135deg, rgba(255, 154, 24, 0.18), rgba(234, 43, 149, 0.12));
    color: var(--fog);
}

.impersonation-banner-copy {
    display: grid;
    gap: 0.2rem;
    min-width: min(100%, 16rem);
}

.impersonation-banner-copy strong {
    font-size: 0.98rem;
}

.impersonation-banner-copy span {
    font-size: 0.86rem;
    color: var(--mist);
}

.impersonation-banner-form {
    margin: 0;
}

html[data-theme="light"] body:has(.dashboard-shell) .impersonation-banner {
    background: linear-gradient(135deg, rgba(255, 154, 24, 0.16), rgba(255, 237, 213, 0.9));
    border-color: rgba(180, 83, 9, 0.4);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .impersonation-banner-copy span {
    color: #5a6472;
}

.users-delete-btn {
    color: #ffb4a2 !important;
}

.users-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.users-form-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.users-empty {
    margin: 0;
    color: var(--mist);
}

.users-pick-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #dce3ef;
    font-family: "Outfit", sans-serif;
    font-size: 0.92rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.users-pick-trigger:hover,
.users-pick-trigger:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    outline: none;
}

.users-pick-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.users-pick-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--mist);
}

.users-pick-trigger.has-value .users-pick-label {
    color: var(--fog);
}

.users-pick-sub {
    color: var(--mist);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.users-pick-hint {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.users-pick-choices {
    margin-bottom: 1rem;
}

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

    .users-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.site-switch-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5dvh max(0.75rem, env(safe-area-inset-right, 0px)) 5dvh max(0.75rem, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.site-switch-modal[hidden] {
    display: none;
}

html.modal-open {
    overflow: hidden;
}

.curtain-notice-card {
    width: min(100%, 440px);
}

.curtain-notice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.25rem;
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-shrink: 0;
    padding-top: 0.75rem;
    background: #10151e;
    box-shadow: 0 -14px 18px -6px #10151e;
}

.curtain-notice-modal .curtain-notice-card .site-switch-lead {
    white-space: pre-wrap;
}

.site-switch-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 14, 0.72);
    backdrop-filter: blur(8px);
}

.site-switch-card {
    position: relative;
    z-index: 1;
    margin: 0;
    width: min(100%, 420px);
    max-height: 90dvh;
    padding: 1.35rem 1.25rem 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #10151e;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: riseIn 0.35s ease both;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.site-switch-modal,
.site-switch-card,
.site-switch-choices {
    scrollbar-width: thin;
    scrollbar-color: rgba(141, 255, 193, 0.42) rgba(255, 255, 255, 0.06);
}

.site-switch-modal::-webkit-scrollbar,
.site-switch-card::-webkit-scrollbar,
.site-switch-choices::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.site-switch-modal::-webkit-scrollbar-track,
.site-switch-card::-webkit-scrollbar-track,
.site-switch-choices::-webkit-scrollbar-track {
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.site-switch-modal::-webkit-scrollbar-thumb,
.site-switch-card::-webkit-scrollbar-thumb,
.site-switch-choices::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(141, 255, 193, 0.55), rgba(141, 255, 193, 0.28));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.site-switch-modal::-webkit-scrollbar-thumb:hover,
.site-switch-card::-webkit-scrollbar-thumb:hover,
.site-switch-choices::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(141, 255, 193, 0.75), rgba(141, 255, 193, 0.45));
    background-clip: padding-box;
}

.site-switch-modal::-webkit-scrollbar-corner,
.site-switch-card::-webkit-scrollbar-corner,
.site-switch-choices::-webkit-scrollbar-corner {
    background: transparent;
}

.site-switch-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.25rem 0 0.4rem;
}

.site-switch-lead {
    margin: 0 0 1rem;
    color: var(--mist);
    font-size: 0.92rem;
    line-height: 1.45;
}

.site-switch-choices {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    max-height: min(50vh, 320px);
    overflow: auto;
}

.site-choice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: stretch;
}

.site-choice-row:not(:has(.site-delete-btn)) {
    grid-template-columns: minmax(0, 1fr);
}

.site-choice {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fog);
    cursor: pointer;
    font-family: "Nunito", sans-serif;
}

.site-delete-form {
    display: flex;
    align-items: stretch;
}

.site-delete-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    min-height: 100%;
    border: 1px solid rgba(240, 113, 120, 0.28);
    background: rgba(240, 113, 120, 0.08);
    color: #ffd4d7;
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
}

.site-delete-btn svg {
    display: block;
    flex-shrink: 0;
}

.site-delete-btn:hover,
.site-delete-btn:focus-visible {
    outline: none;
    border-color: rgba(240, 113, 120, 0.5);
    background: rgba(240, 113, 120, 0.16);
}

.site-delete-modal {
    z-index: 1100;
}

.site-delete-card {
    width: min(100%, 440px);
}

.site-delete-points {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.site-delete-points li {
    position: relative;
    padding: 0.7rem 0.85rem 0.7rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fog);
    font-size: 0.88rem;
    line-height: 1.4;
}

.site-delete-points li::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 1rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #f07178;
}

.site-delete-warning {
    margin: 0 0 1.25rem;
    color: #ffd4d7;
    font-size: 0.86rem;
    font-weight: 700;
}

.site-delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.site-delete-actions .btn {
    width: 100%;
}

.btn.site-delete-confirm,
.site-delete-confirm {
    border: 0;
    background: linear-gradient(135deg, #d94a56, #ea2b95);
    color: #fff;
    font-weight: 800;
}

.btn.site-delete-confirm:hover,
.site-delete-confirm:hover,
.btn.site-delete-confirm:focus-visible,
.site-delete-confirm:focus-visible {
    outline: none;
    filter: brightness(1.06);
}

.site-choice:hover,
.site-choice:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.site-choice.is-active {
    border-color: transparent;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.site-choice-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.site-choice-name {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.site-choice-url {
    color: var(--mist);
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-choice-disk {
    color: rgba(232, 236, 245, 0.55);
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.site-choice-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: var(--grad);
}

.site-switch-close,
.site-switch-card > .site-delete-actions,
.site-switch-card > .agent-sub-actions,
.site-switch-card .kw-create-actions,
.site-switch-card .kw-filter-actions,
.site-create-modal-card > .btn {
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-shrink: 0;
    padding-top: 0.75rem;
    background: #10151e;
    box-shadow: 0 -14px 18px -6px #10151e;
}

.site-switch-close {
    width: 100%;
    margin-top: 0.75rem;
}

body.site-switch-open {
    overflow: hidden;
}

.site-add-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.active-site-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    font-size: 0.84rem;
    color: var(--mist);
    margin-top: -0.35rem;
}

.active-site-line strong {
    color: var(--fog);
}

.active-site-line a {
    color: #fff;
    text-decoration: none;
    word-break: break-all;
}

.active-site-line a:hover {
    text-decoration: underline;
}

.php-limits-btn {
    flex-shrink: 0;
}

.da-meta {
    color: var(--mist);
}

.interview-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.interview-link:hover {
    text-decoration: underline;
}

.dash-home {
    flex: 1;
    padding: 1.75rem 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: var(--card);
    backdrop-filter: blur(14px);
}

.dash-start-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1.35rem 1.4rem 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 154, 24, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 154, 24, 0.1), rgba(75, 93, 244, 0.08)),
        rgba(0, 0, 0, 0.16);
}

.dash-start-copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.dash-start-title {
    margin: 0.25rem 0 0.45rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.dash-start-lead {
    margin: 0 0 0.9rem;
    max-width: 36rem;
    color: var(--mist);
    font-size: 0.94rem;
    line-height: 1.5;
}

.dash-start-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dash-start-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--mist);
}

.dash-start-checks li.is-done {
    color: #9dffc2;
}

.dash-start-check-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.dash-start-checks li.is-done .dash-start-check-mark {
    border-color: rgba(110, 231, 183, 0.45);
    background: rgba(110, 231, 183, 0.16);
    color: #9dffc2;
}

.dash-start-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.dash-start-form {
    margin: 0;
}

.dash-start-btn {
    width: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem 0.85rem 0.95rem;
    border-radius: 16px;
    box-shadow:
        0 10px 28px rgba(234, 43, 149, 0.22),
        0 2px 0 rgba(255, 255, 255, 0.12) inset;
    text-align: left;
    line-height: 1.15;
}

.dash-start-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(234, 43, 149, 0.28),
        0 2px 0 rgba(255, 255, 255, 0.14) inset;
}

.dash-start-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.dash-start-btn-icon svg {
    display: block;
}

.dash-start-btn-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dash-start-btn-label strong {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dash-start-btn-label em {
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 650;
    opacity: 0.86;
}

.dash-start-btn-pending {
    pointer-events: none;
    cursor: default;
    opacity: 0.92;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.dash-start-btn-admin {
    box-shadow: none;
    min-width: 0;
    padding: 0.7rem 1rem 0.7rem 0.8rem;
}

.dash-start-btn-admin .dash-start-btn-icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.dash-start-btn-admin .dash-start-btn-label strong {
    font-size: 0.9rem;
}

.dash-home-intro {
    margin-bottom: 1.35rem;
}

.dash-home-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.35rem 0 0.65rem;
}

.dash-home-lead {
    font-size: 1rem;
    color: var(--mist);
    line-height: 1.55;
    max-width: 36rem;
    margin: 0;
}

.dash-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: stretch;
}

.dash-home-grid.has-keywords {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dash-home-grid.has-positions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-home-grid.has-keywords.has-positions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-home-grid.has-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-home-grid.has-positions.has-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-home-grid.has-keywords.has-positions.has-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-home-grid.has-keywords .dash-logs-card,
.dash-home-grid.has-positions .dash-logs-card,
.dash-home-grid.has-performance .dash-logs-card,
.dash-home-grid.has-tasks .dash-logs-card {
    grid-column: 1 / -1;
}

.dash-home-grid.has-performance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-home-grid.has-performance.has-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-action-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.2rem 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

a.dash-action-card:hover,
a.dash-action-card:focus-visible {
    border-color: rgba(125, 211, 252, 0.35);
    background: rgba(14, 116, 144, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.dash-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #e8eef8;
    flex: 0 0 auto;
}

.dash-brain-card .dash-action-icon {
    background: rgba(167, 139, 250, 0.16);
    color: #ddd6fe;
}

.dash-positions-card .dash-action-icon {
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
}

.dash-tasks-card .dash-action-icon {
    background: rgba(251, 191, 36, 0.14);
    color: #fcd34d;
}

.dash-logs-card .dash-action-icon {
    background: rgba(125, 211, 252, 0.14);
    color: #bae6fd;
}

.dash-positions-card {
    justify-content: space-between;
}

.dash-action-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dash-action-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mist);
}

.dash-action-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.dash-action-text {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--mist);
}

.dash-brain-card {
    justify-content: space-between;
}

.dash-brain-meter {
    display: grid;
    gap: 0.4rem;
    margin-top: auto;
}

.dash-brain-meter-value {
    font-family: "Outfit", sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.dash-brain-meter-bar {
    display: block;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.dash-brain-meter-bar span {
    display: block;
    height: 100%;
    background: var(--grad);
}

.dash-logs-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.dash-logs-card-head .dash-logs-all {
    margin-top: 0.15rem;
}

.dash-logs-all {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: #7dd3fc;
    text-decoration: none;
}

.dash-logs-all:hover {
    text-decoration: underline;
}

.dash-logs-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mist);
    line-height: 1.45;
}

.dash-logs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dash-logs-item {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-logs-item:hover,
.dash-logs-item:focus-visible {
    border-color: rgba(125, 211, 252, 0.3);
    background: rgba(125, 211, 252, 0.08);
    outline: none;
}

.dash-logs-item-preview {
    display: block;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #dce3ef;
}

.dash-logs-item-preview.logs-prose {
    font-size: 0.88rem;
    line-height: 1.5;
}

.dash-logs-item-preview.logs-prose > :first-child {
    margin-top: 0;
}

.dash-logs-item-preview.logs-prose > :last-child {
    margin-bottom: 0;
}

.dash-logs-item-preview.logs-prose .md-p {
    margin: 0 0 0.45rem;
}

.dash-logs-item-preview.logs-prose .md-h1,
.dash-logs-item-preview.logs-prose .md-h2,
.dash-logs-item-preview.logs-prose .md-h3,
.dash-logs-item-preview.logs-prose .md-h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .dash-home-grid.has-keywords.has-positions,
    .dash-home-grid.has-positions.has-tasks,
    .dash-home-grid.has-keywords.has-positions.has-tasks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .dash-home-grid,
    .dash-home-grid.has-keywords,
    .dash-home-grid.has-positions,
    .dash-home-grid.has-tasks,
    .dash-home-grid.has-keywords.has-positions,
    .dash-home-grid.has-positions.has-tasks,
    .dash-home-grid.has-keywords.has-positions.has-tasks {
        grid-template-columns: 1fr;
    }
}

.interview-review {
    flex: 1;
    padding: 1.35rem 1.35rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: var(--card);
    backdrop-filter: blur(14px);
}

.interview-review-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-summary {
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem;
    border-left: 2px solid rgba(234, 43, 149, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.review-summary h3,
.review-answer h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fog);
    margin-bottom: 0.55rem;
}

.review-summary p {
    font-size: 0.92rem;
    color: var(--mist);
    line-height: 1.55;
}

.review-answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-answer {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
}

.review-question {
    font-size: 0.8rem;
    color: rgba(143, 163, 192, 0.9);
    margin-bottom: 0.45rem;
    line-height: 1.45;
}

.review-response {
    font-size: 0.92rem;
    color: var(--fog);
    line-height: 1.55;
}

.review-followup {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.keyword-panel {
    flex: 1;
    padding: 1.35rem 1.35rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: var(--card);
    backdrop-filter: blur(14px);
}

.keyword-head {
    margin-bottom: 1.1rem;
}

.keyword-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.2rem 0 0.45rem;
}

.keyword-lead {
    color: var(--mist);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 42rem;
}

.keyword-status {
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--mist);
}

.keyword-error {
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(240, 113, 120, 0.35);
    background: rgba(240, 113, 120, 0.12);
    color: #ffd4d7;
    font-size: 0.88rem;
    line-height: 1.45;
}

.keyword-source {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b6f0c3;
}

.keyword-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: min(52vh, 420px);
    overflow: auto;
    padding-right: 0.25rem;
}

.keyword-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.keyword-row.is-selected {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.keyword-row-check {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    accent-color: #ea2b95;
    flex-shrink: 0;
}

.keyword-row-copy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
}

.keyword-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.keyword-row-copy strong {
    color: var(--fog);
    font-size: 0.95rem;
}

.keyword-row-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.keyword-row-source {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b6f0c3;
}

.keyword-remove-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mist);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.keyword-remove-btn svg {
    display: block;
}

.keyword-remove-btn:hover,
.keyword-remove-btn:focus-visible {
    outline: none;
    color: #fff;
    border-color: rgba(240, 113, 120, 0.45);
    background: rgba(240, 113, 120, 0.16);
    transform: translateY(-1px);
}

.keyword-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.keyword-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fog);
    font-size: 0.72rem;
    font-weight: 700;
}

.keyword-metric em {
    font-style: normal;
    color: var(--mist);
    font-weight: 700;
}

.keyword-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.keyword-actions .btn {
    width: auto;
    min-width: 11rem;
}

.site-create-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 5dvh max(0.75rem, env(safe-area-inset-right, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.site-create-modal[hidden] {
    display: none;
}

.site-create-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 14, 0.72);
    backdrop-filter: blur(8px);
}

.site-create-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: 90dvh;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #10151e;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: riseIn 0.35s ease both;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-create-modal-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.25rem 0 0.55rem;
}

.site-create-modal-status {
    font-size: 0.95rem;
    color: var(--fog);
    line-height: 1.45;
    min-height: 2.6em;
    margin-bottom: 1rem;
}

.pos-refresh-note {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--mist);
    font-size: 0.84rem;
    line-height: 1.45;
}

.pos-live-scan-keyword {
    margin: 0.35rem 0 0.85rem;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fog);
    word-break: break-word;
}

.pos-live-scan-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
}

.site-create-progress-bar {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.site-create-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad);
    transition: width 0.2s linear;
}

.site-create-progress-pct {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mist);
    text-align: right;
}

.site-create-steps {
    list-style: none;
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 11rem;
    overflow: hidden;
}

.site-create-steps li {
    font-size: 0.82rem;
    color: rgba(143, 163, 192, 0.55);
    padding-left: 1.1rem;
    position: relative;
    transition: color 0.25s ease;
}

.site-create-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: rgba(143, 163, 192, 0.35);
}

.site-create-steps li.is-done {
    color: var(--mist);
}

.site-create-steps li.is-done::before {
    background: var(--amber);
}

.site-create-steps li.is-active {
    color: var(--fog);
}

.site-create-steps li.is-active::before {
    background: var(--amber-soft);
    box-shadow: 0 0 0 3px rgba(234, 43, 149, 0.22);
}

body.site-create-busy {
    overflow: hidden;
}

.site-create-progress-bar span.is-error {
    background: linear-gradient(90deg, #f07178, #ffb4b8);
}

.site-create-error {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(240, 113, 120, 0.35);
    background: rgba(240, 113, 120, 0.12);
    color: #ffd4d7;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.site-create-dns {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.site-create-dns p {
    font-size: 0.9rem;
    color: var(--mist);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.site-create-dns ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.site-create-dns li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--fog);
}

.site-create-dns code,
.dns-records code {
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    word-break: break-all;
}

.dns-notice {
    padding: 1.25rem 1.3rem 1.35rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--card);
}

.dns-status {
    padding: 1.1rem 1.2rem 1.2rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--card);
    width: 100%;
    min-width: 0;
}

.dns-status.is-ok {
    border-color: rgba(72, 187, 140, 0.28);
}

.dns-status.is-pending {
    border-color: rgba(255, 154, 24, 0.28);
}

.dns-status-head {
    margin-bottom: 0.85rem;
}

.dns-status-domain {
    display: inline-block;
    margin-top: 0.1rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    text-decoration: none;
    word-break: break-word;
}

a.dns-status-domain:hover,
a.dns-status-domain:focus-visible {
    outline: none;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dns-status-domain.is-static {
    margin: 0.15rem 0 0.35rem;
}

.dns-status-lead {
    font-size: 0.92rem;
    color: var(--mist);
    line-height: 1.5;
    max-width: 42rem;
}

.dns-checks {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.dns-check {
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
    overflow: hidden;
}

.dns-check.is-ok {
    border-color: rgba(72, 187, 140, 0.32);
    background: rgba(72, 187, 140, 0.08);
}

.dns-check.is-fail {
    border-color: rgba(255, 154, 24, 0.35);
    background: rgba(255, 154, 24, 0.07);
}

.dns-check-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.dns-check-summary::-webkit-details-marker {
    display: none;
}

.dns-check-summary::marker {
    content: "";
}

.dns-check-mark {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    margin-top: 0.05rem;
}

.dns-check.is-ok .dns-check-mark {
    color: #6ee7b7;
    background: rgba(72, 187, 140, 0.18);
}

.dns-check.is-fail .dns-check-mark {
    color: #ffc06a;
    background: rgba(255, 154, 24, 0.16);
}

.dns-check-summary-main {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.25rem;
}

.dns-check-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dns-check-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--fog);
}

.dns-check-state {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mist);
}

.dns-check.is-ok .dns-check-state {
    color: #6ee7b7;
}

.dns-check.is-fail .dns-check-state {
    color: #ffc06a;
}

.dns-check-hint {
    font-size: 0.84rem;
    color: var(--mist);
    line-height: 1.4;
}

.dns-check-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.45rem;
    border-right: 2px solid rgba(184, 190, 201, 0.7);
    border-bottom: 2px solid rgba(184, 190, 201, 0.7);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.dns-check[open] .dns-check-chevron {
    margin-top: 0.55rem;
    transform: rotate(225deg);
}

.dns-check-panel {
    padding: 0 0.95rem 0.95rem 3.35rem;
    min-width: 0;
}

.dns-check-meta {
    margin: 0 0 0.75rem;
    font-size: 0.84rem;
    color: var(--mist);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dns-check-meta code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}
.dns-howto {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 154, 24, 0.45);
    background: rgba(255, 154, 24, 0.06);
    min-width: 0;
}

.dns-howto-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #ffc06a;
    margin-bottom: 0.35rem;
}

.dns-howto-intro {
    font-size: 0.86rem;
    color: var(--mist);
    line-height: 1.45;
    margin-bottom: 0.7rem;
}

.dns-howto-steps {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: var(--mist);
    line-height: 1.45;
}

.dns-howto-steps li {
    padding-left: 0.15rem;
}

.dns-howto-rows {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.dns-howto-row {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.dns-howto-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dns-howto-rows dt {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(184, 190, 201, 0.75);
}

.dns-howto-rows dd {
    min-width: 0;
}

.dns-copy-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--fog);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dns-copy-btn:hover,
.dns-copy-btn:focus-visible {
    outline: none;
    background: rgba(255, 154, 24, 0.16);
    border-color: rgba(255, 154, 24, 0.45);
    color: #ffc06a;
}

.dns-copy-btn.is-copied {
    background: rgba(72, 187, 140, 0.18);
    border-color: rgba(72, 187, 140, 0.4);
    color: #6ee7b7;
}

.dns-value-scroll {
    display: block;
    max-width: 100%;
    max-height: 7.5rem;
    overflow: auto;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 192, 106, 0.55) rgba(255, 255, 255, 0.06);
}

.dns-value-scroll::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.dns-value-scroll::-webkit-scrollbar-track {
    margin: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.dns-value-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 192, 106, 0.75), rgba(234, 43, 149, 0.55));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.dns-value-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 192, 106, 0.95), rgba(234, 43, 149, 0.75));
    background-clip: padding-box;
}

.dns-value-scroll::-webkit-scrollbar-corner {
    background: transparent;
}
.dns-linked {
    padding: 1rem 1.2rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card);
}

.dns-linked-domain {
    display: inline-block;
    margin-top: 0.15rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    text-decoration: none;
    word-break: break-all;
}

.dns-linked-domain:hover,
.dns-linked-domain:focus-visible {
    outline: none;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dns-notice-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.2rem 0 0.45rem;
}

.dns-notice-lead {
    font-size: 0.95rem;
    color: var(--mist);
    line-height: 1.55;
    max-width: 42rem;
}

.dns-records {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.dns-records div {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.dns-records dt {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 0.25rem;
}

@media (max-width: 560px) {
    .dns-records {
        grid-template-columns: 1fr;
    }
}

.interview-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    padding: 1.35rem 1.35rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: var(--card);
    backdrop-filter: blur(14px);
}

.interview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.interview-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.3rem 0 0.45rem;
}

.interview-lead {
    font-size: 0.92rem;
    color: var(--mist);
    line-height: 1.5;
    max-width: 40rem;
}

.interview-progress {
    flex-shrink: 0;
    width: min(100%, 220px);
}

.interview-progress-bar {
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.interview-progress-bar span {
    display: block;
    height: 100%;
    background: var(--grad);
    transition: width 0.35s ease;
}

.interview-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mist);
    text-align: right;
}

.interview-log {
    flex: 1;
    max-height: min(58vh, 560px);
    min-height: 240px;
}

.interview-form textarea {
    min-height: 4.5rem;
}

@media (max-width: 720px) {
    .interview-head {
        flex-direction: column;
        align-items: stretch;
    }

    .interview-progress {
        width: 100%;
    }

    .interview-progress-label {
        text-align: left;
    }
}

.chat-log {
    flex: 1;
    min-height: 220px;
    max-height: min(52vh, 520px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.15rem 0.25rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.chat-msg {
    max-width: 92%;
    padding: 0.15rem 0;
    font-size: 0.93rem;
    line-height: 1.55;
    animation: msgIn 0.35s ease both;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.chat-msg-ai {
    align-self: flex-start;
}

.chat-msg-user {
    align-self: flex-end;
    text-align: right;
}

.chat-msg-user .chat-label {
    color: #fff;
}

.chat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 0.28rem;
}

.chat-msg p {
    color: var(--fog);
    display: inline-block;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-align: left;
}

.chat-msg-ai p {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
}

.chat-msg-user p {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-form textarea {
    appearance: none;
    resize: none;
    min-height: 3.4rem;
    max-height: 8rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 14px 15px;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.chat-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(234, 43, 149, 0.16);
}

.chat-form textarea:disabled {
    opacity: 0.55;
}

.chat-send,
.btn.primary.chat-send {
    width: auto;
    min-width: 7.5rem;
    padding: 14px 22px;
}

@media (max-width: 900px) {
    .chat-log {
        max-height: 42vh;
    }
}

@media (max-width: 560px) {
    .dashboard-shell {
        padding: 0.95rem 0.9rem 1.25rem;
    }

    .dash-tag {
        display: none;
    }

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

    .chat-send {
        width: 100%;
    }
}

.dash-nav-toggle {
    display: none;
    gap: 0.4rem;
}

.dash-nav-toggle-label {
    font-size: 0.78rem;
    font-weight: 700;
}

.dash-nav-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.dash-nav-sheet[hidden] {
    display: none;
}

.dash-nav-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dash-nav-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 14, 0.58);
    backdrop-filter: blur(6px);
}

.dash-nav-sheet-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 22.5rem);
    max-height: min(78vh, 34rem);
    overflow: auto;
    padding: 0.95rem 0.95rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 4rem),
        #10151e;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
    transform: translateY(-1.35rem) scale(0.97);
    opacity: 0;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(141, 255, 193, 0.42) rgba(255, 255, 255, 0.06);
    scrollbar-gutter: stable;
}

.dash-nav-sheet.is-open .dash-nav-sheet-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.dash-nav-sheet.is-closing .dash-nav-sheet-panel {
    transform: translateY(1.1rem) scale(0.98);
    opacity: 0;
}

.dash-nav-sheet-panel::-webkit-scrollbar {
    width: 10px;
}

.dash-nav-sheet-panel::-webkit-scrollbar-track {
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.dash-nav-sheet-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(141, 255, 193, 0.55), rgba(141, 255, 193, 0.28));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.dash-nav-sheet-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(141, 255, 193, 0.75), rgba(141, 255, 193, 0.45));
    background-clip: padding-box;
}

.dash-nav-sheet-panel::-webkit-scrollbar-corner {
    background: transparent;
}

.dash-nav-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-nav-sheet-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fog);
}

.dash-nav-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dash-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.1rem;
    padding: 0.35rem 0.45rem 0.35rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.dash-nav-row-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.dash-nav-row-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--fog);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-nav-row-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mist);
}

.dash-nav-row .btn,
.dash-nav-row .dash-docs-btn,
.dash-nav-row .dash-logout,
.dash-nav-row .dash-settings {
    flex: 0 0 auto;
}

.dash-nav-row .dash-settings-menu {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    top: calc(100% + 0.35rem);
    bottom: auto;
    width: auto;
    min-width: 0;
    z-index: 1300;
}

.dash-nav-row .dash-settings {
    position: relative;
}

body.dash-nav-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .dash-top.is-mobile-nav {
        position: sticky;
        top: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand toggle"
            "actions actions";
        align-items: center;
        gap: 0.65rem 0.55rem;
        margin: -0.95rem -0.9rem 0.85rem;
        padding: 0.8rem 0.9rem 0.85rem;
        background: rgba(12, 16, 24, 0.92);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .dash-top.is-mobile-nav .dash-brand {
        grid-area: brand;
        min-width: 0;
    }

    .dash-top.is-mobile-nav .brand-mark {
        height: 38px;
    }

    .dash-nav-row .brain-status-pct,
    .dash-nav-row .tasks-nav-pct,
    .dash-nav-row .keywords-nav-pct,
    .dash-nav-row .keywords-nav-label,
    .dash-nav-row .positions-nav-label,
    .dash-nav-row .cron-toggle-state,
    .dash-nav-row .agent-prompt-sub-btn-label {
        display: none;
    }

    .dash-top.is-mobile-nav .dash-nav-toggle {
        grid-area: toggle;
        display: inline-flex;
    }

    .dash-top.is-mobile-nav .dash-top-actions {
        grid-area: actions;
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: stretch;
        gap: 0.5rem;
    }

    .dash-top.is-mobile-nav .dash-top-actions > :not(.site-switcher):not(.site-switcher-static) {
        display: none;
    }

    .dash-top.is-mobile-nav .site-switcher,
    .dash-top.is-mobile-nav .site-switcher-static {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .dash-top.is-mobile-nav .site-switcher-trigger,
    .dash-top.is-mobile-nav .site-switcher-static {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        min-height: 2.7rem;
        box-sizing: border-box;
    }

    .dash-top.is-mobile-nav .site-switcher-label {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-sheet-panel {
    background:
        linear-gradient(180deg, rgba(12, 16, 24, 0.02), transparent 4rem),
        #fff;
    border-color: rgba(12, 16, 24, 0.1);
    box-shadow: 0 22px 56px rgba(12, 16, 24, 0.16);
    scrollbar-color: rgba(15, 122, 74, 0.45) rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-sheet-panel::-webkit-scrollbar-track {
    background: rgba(12, 16, 24, 0.05);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-sheet-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(15, 122, 74, 0.55), rgba(15, 122, 74, 0.28));
    background-clip: padding-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-sheet-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(15, 122, 74, 0.72), rgba(15, 122, 74, 0.42));
    background-clip: padding-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-sheet-title,
html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-row-title {
    color: #0f172a;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-row {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-nav-row-meta {
    color: #64748b;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top.is-mobile-nav {
    background: #1a1f2a;
    margin: -0.95rem -0.9rem 0.85rem;
    padding: 0.8rem 0.9rem 0.85rem;
    border-radius: 0;
}

.brain-status-icon {
    gap: 0.35rem;
    min-width: auto;
    padding-inline: 0.7rem;
}

.brain-status-pct {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fog);
}

.keywords-nav-btn {
    gap: 0.35rem;
    min-width: auto;
    padding-inline: 0.7rem;
}

.keywords-nav-pct {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fog);
}

.keywords-nav-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fog);
}

.positions-nav-btn {
    gap: 0.35rem;
    min-width: auto;
    padding-inline: 0.7rem;
}

.positions-nav-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fog);
}

.tasks-nav-btn {
    gap: 0.35rem;
    min-width: auto;
    padding-inline: 0.7rem;
}

.tasks-nav-pct {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fog);
}

.tasks-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.tasks-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tasks-title {
    margin: 0.2rem 0 0.35rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.tasks-lead {
    margin: 0;
    color: var(--mist);
    max-width: 40rem;
}

.tasks-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 0 1.25rem;
}

.tasks-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mist);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tasks-tab:hover,
.tasks-tab.is-active {
    color: var(--fog);
    border-color: transparent;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.tasks-tab-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fog);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    min-width: 1.4rem;
    text-align: center;
}

.tasks-tab-panel {
    display: none;
}

.tasks-tab-panel.is-active {
    display: block;
}

.tasks-list-done {
    margin-top: 0.25rem;
}

.tasks-list-done .tasks-checked-at {
    display: block;
}

.tasks-checked-at {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: var(--mist);
}

.tasks-checked-at strong {
    color: var(--fog);
    font-weight: 700;
}

.tasks-progress-checked {
    margin: 0.15rem 0 0;
    font-size: 0.74rem;
    color: var(--mist);
}

.tasks-progress-card {
    display: grid;
    gap: 0.45rem;
    min-width: 10rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
}

.tasks-progress-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.tasks-progress-value {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.tasks-progress-bar {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tasks-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.tasks-progress-meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--mist);
}

.tasks-empty {
    margin: 0;
    padding: 1.2rem 1.25rem;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--mist);
}

.tasks-source {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.tasks-source:first-of-type {
    margin-top: 0.35rem;
}

.tasks-source-head {
    display: grid;
    gap: 0.2rem;
}

.tasks-source-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.tasks-source-lead {
    margin: 0;
    font-size: 0.88rem;
    color: var(--mist);
    line-height: 1.45;
}

.tasks-source-external-signals .tasks-source-title {
    color: #7dd3fc;
}

.tasks-source-brain-advice .tasks-source-title {
    color: #f0abfc;
}

.tasks-accordions {
    display: grid;
    gap: 0.65rem;
}

.tasks-group {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.tasks-group-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tasks-group-summary::-webkit-details-marker {
    display: none;
}

.tasks-group-summary::marker {
    content: "";
}

.tasks-group-summary::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--mist);
    border-bottom: 2px solid var(--mist);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.tasks-group[open] > .tasks-group-summary {
    border-bottom: 0;
    padding-bottom: 0.35rem;
}

.tasks-group[open] > .tasks-group-summary::before {
    transform: rotate(45deg);
}

.tasks-group-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--fog);
}

.tasks-group-meta {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--mist);
    white-space: nowrap;
    opacity: 0.9;
}

.tasks-group-kritiek .tasks-group-title {
    color: #fca5a5;
}

.tasks-group-aangescherpt-nu-doen .tasks-group-title,
.tasks-group-nu-doen .tasks-group-title,
.tasks-group-topacties .tasks-group-title {
    color: #fcd34d;
}

.tasks-group-belangrijk .tasks-group-title {
    color: #fdba74;
}

.tasks-group-nice-to-have .tasks-group-title {
    color: #a5b4fc;
}

.tasks-group-aanbevolen-vervolgstappen .tasks-group-title,
.tasks-group-vervolgstappen .tasks-group-title {
    color: #7dd3fc;
}

.tasks-list {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0.55rem 0.7rem;
    display: grid;
    gap: 0.1rem;
}

.tasks-item {
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.tasks-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tasks-item.is-done {
    opacity: 0.62;
    background: transparent;
}

.tasks-item.is-done:hover {
    background: rgba(16, 185, 129, 0.06);
}

.tasks-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.62rem 0.55rem;
    cursor: pointer;
}

.tasks-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tasks-check-box {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.12rem;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.18);
    position: relative;
}

.tasks-check input:checked + .tasks-check-box {
    border-color: rgba(52, 211, 153, 0.7);
    background: rgba(16, 185, 129, 0.85);
}

.tasks-check input:checked + .tasks-check-box::after {
    content: "";
    position: absolute;
    left: 0.34rem;
    top: 0.12rem;
    width: 0.28rem;
    height: 0.55rem;
    border: solid #04110c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tasks-check-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.tasks-item-section {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mist);
}

.tasks-item-title {
    color: var(--fog);
    line-height: 1.45;
}

.tasks-item.is-done .tasks-item-title {
    text-decoration: line-through;
    color: var(--mist);
}

.tasks-item.is-dirty {
    background: rgba(251, 191, 36, 0.08);
}

.tasks-item.is-dirty:hover {
    background: rgba(251, 191, 36, 0.12);
}

.tasks-save-bar {
    position: sticky;
    bottom: 0.85rem;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    pointer-events: none;
}

.tasks-save-btn {
    pointer-events: auto;
    min-width: auto;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 750;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.tasks-save-btn[hidden] {
    display: none;
}

.tasks-save-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tasks-toast {
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.28);
    background: rgba(16, 185, 129, 0.12);
    color: #d1fae5;
    font-size: 0.88rem;
}

.tasks-toast.is-error {
    border-color: rgba(240, 113, 120, 0.35);
    background: rgba(240, 113, 120, 0.12);
    color: #ffd4d7;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-tab {
    border-color: rgba(12, 16, 24, 0.1);
    background: #fff;
    color: #475569;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-tab:hover,
html[data-theme="light"] body:has(.dashboard-shell) .tasks-tab.is-active {
    color: #0f172a;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-tab-count {
    background: rgba(12, 16, 24, 0.06);
    color: #0f172a;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-save-btn {
    box-shadow: 0 10px 24px rgba(12, 16, 24, 0.14);
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-source-brain-advice .tasks-source-title {
    color: #a21caf;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-source-external-signals .tasks-source-title {
    color: #0369a1;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-group {
    border-color: rgba(12, 16, 24, 0.1);
    background: #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-item:hover {
    background: rgba(12, 16, 24, 0.04);
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-item.is-done:hover {
    background: rgba(15, 122, 74, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-item.is-dirty {
    background: rgba(180, 83, 9, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-item.is-dirty:hover {
    background: rgba(180, 83, 9, 0.12);
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-check-box {
    border-color: rgba(12, 16, 24, 0.22);
    background: #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-kritiek .tasks-group-title {
    color: #b91c1c;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-aangescherpt-nu-doen .tasks-group-title,
html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-nu-doen .tasks-group-title,
html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-topacties .tasks-group-title {
    color: #a16207;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-belangrijk .tasks-group-title {
    color: #c2410c;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-nice-to-have .tasks-group-title {
    color: #4338ca;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-aanbevolen-vervolgstappen .tasks-group-title,
html[data-theme="light"] body:has(.dashboard-shell) .tasks-group-vervolgstappen .tasks-group-title {
    color: #0369a1;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-toast {
    border-color: rgba(15, 122, 74, 0.35);
    background: #dcfce7;
    color: #14532d;
}

html[data-theme="light"] body:has(.dashboard-shell) .tasks-toast.is-error {
    border-color: rgba(159, 18, 57, 0.4);
    background: #ffe4e8;
    color: #9f1239;
}

@media (max-width: 720px) {
    .tasks-head {
        flex-direction: column;
    }

    .tasks-progress-card {
        width: 100%;
    }

    .tasks-panel {
        padding: 1.1rem 0.95rem 1.5rem;
    }
}

.brain-panel {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.35rem 1.35rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: var(--card);
    backdrop-filter: blur(14px);
}

.brain-panel,
.brain-panel textarea,
.brain-list-body textarea,
.brain-field textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 43, 149, 0.45) rgba(255, 255, 255, 0.05);
}

.brain-panel::-webkit-scrollbar,
.brain-panel textarea::-webkit-scrollbar,
.brain-list-body textarea::-webkit-scrollbar,
.brain-field textarea::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.brain-panel::-webkit-scrollbar-track,
.brain-panel textarea::-webkit-scrollbar-track,
.brain-list-body textarea::-webkit-scrollbar-track,
.brain-field textarea::-webkit-scrollbar-track {
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.brain-panel::-webkit-scrollbar-thumb,
.brain-panel textarea::-webkit-scrollbar-thumb,
.brain-list-body textarea::-webkit-scrollbar-thumb,
.brain-field textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.55), rgba(234, 43, 149, 0.5), rgba(75, 93, 244, 0.45));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.brain-panel::-webkit-scrollbar-thumb:hover,
.brain-panel textarea::-webkit-scrollbar-thumb:hover,
.brain-list-body textarea::-webkit-scrollbar-thumb:hover,
.brain-field textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.75), rgba(234, 43, 149, 0.7), rgba(75, 93, 244, 0.65));
    background-clip: padding-box;
}

.brain-panel::-webkit-scrollbar-corner,
.brain-panel textarea::-webkit-scrollbar-corner,
.brain-list-body textarea::-webkit-scrollbar-corner,
.brain-field textarea::-webkit-scrollbar-corner {
    background: transparent;
}

.brain-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brain-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.3rem 0 0.45rem;
}

.brain-lead {
    font-size: 0.92rem;
    color: var(--mist);
    line-height: 1.5;
    max-width: 38rem;
}

.brain-total {
    flex-shrink: 0;
    width: min(100%, 220px);
    text-align: right;
}

.brain-total-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mist);
}

.brain-total-value {
    margin: 0.2rem 0 0.45rem;
    font-family: "Outfit", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--fog);
    line-height: 1;
}

.brain-total-bar {
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.brain-total-bar span {
    display: block;
    height: 100%;
    background: var(--grad);
    transition: width 0.35s ease;
}

.brain-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.brain-nav-item.is-launch-tab {
    border-color: rgba(255, 154, 24, 0.35);
    background: rgba(255, 154, 24, 0.08);
}

.brain-nav-item.is-launch-tab .brain-nav-icon {
    background: rgba(255, 154, 24, 0.16);
    color: var(--amber-soft);
}

.brain-nav-item.is-launch-tab.is-active,
.brain-nav-item.is-launch-tab:hover {
    border-color: transparent;
    background:
        linear-gradient(#1a140c, #1a140c) padding-box,
        linear-gradient(135deg, #ff9a18, #ffc06a) border-box;
}

.brain-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fog);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.brain-nav-item:hover,
.brain-nav-item.is-active {
    border-color: transparent;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.brain-nav-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--fog);
}

.brain-nav-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.brain-nav-copy strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.brain-nav-pct {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--mist);
}

.brain-nav-bar {
    display: block;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.brain-nav-bar span {
    display: block;
    height: 100%;
    background: var(--grad);
    transition: width 0.35s ease;
}

.brain-toast {
    position: fixed;
    left: 50%;
    bottom: 5.5rem;
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 0.7rem;
    max-width: min(24rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.78rem 1.05rem 0.78rem 0.85rem;
    border-radius: 999px;
    font-family: "Outfit", sans-serif;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--fog);
    background: rgba(14, 18, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.brain-toast.is-visible {
    display: inline-flex;
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
}

.brain-toast[hidden] {
    display: none !important;
}

.brain-toast-icon {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(110, 231, 183, 0.16);
    color: #6ee7b7;
}

.brain-toast-icon svg {
    display: block;
}

.brain-toast-text {
    min-width: 0;
    padding-right: 0.15rem;
}

.brain-toast-error {
    color: var(--fog);
}

.brain-toast-error .brain-toast-icon {
    background: rgba(255, 154, 24, 0.16);
    color: #ffb86b;
}

.brain-toast.is-pending .brain-toast-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #dce3ef;
}

.brain-toast.is-pending .brain-toast-icon svg {
    animation: brain-toast-spin 0.85s linear infinite;
}

@keyframes brain-toast-spin {
    to { transform: rotate(360deg); }
}

.brain-status,
.brain-error {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.brain-status {
    color: #b6f0c3;
}

.brain-error {
    color: #ffd4d7;
}

.brain-form {
    display: none;
}

.brain-form.is-active {
    display: flex;
    flex-direction: column;
}

.brain-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem 1rem;
}

.brain-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.brain-field label,
.brain-field-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.brain-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.brain-field-head > label,
.brain-field-head > .brain-field-label {
    min-width: 0;
}

.brain-field-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
}

.brain-field-tool {
    appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(232, 238, 247, 0.82);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.brain-field-tool:hover,
.brain-field-tool:focus-visible {
    background: rgba(0, 214, 232, 0.14);
    border-color: rgba(0, 214, 232, 0.45);
    color: #fff;
    outline: none;
}

.brain-field-tool:disabled,
.brain-field-tool.is-busy {
    opacity: 0.55;
    cursor: wait;
}

.brain-field-tool svg {
    display: block;
}

.brain-list-head .brain-field-tools {
    align-self: center;
    margin-right: 0.1rem;
}

.brain-fs-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.brain-fs-modal[hidden] {
    display: none;
}

.brain-fs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.72);
}

.brain-fs-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background: var(--card, #121820);
    color: var(--fog);
    padding: 1rem 1.1rem 1.15rem;
    gap: 0.85rem;
}

.brain-fs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.brain-fs-title {
    margin: 0.15rem 0 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.2;
}

.brain-fs-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.brain-fs-close {
    appearance: none;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fog);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.brain-fs-close:hover,
.brain-fs-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.brain-fs-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.brain-fs-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.brain-fs-label-wrap[hidden] {
    display: none !important;
}

.brain-fs-label-wrap input,
.brain-fs-body textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: var(--fog);
    font: inherit;
    padding: 0.9rem 1rem;
}

.brain-fs-label-wrap input {
    height: 2.75rem;
    font-weight: 600;
}

.brain-fs-body textarea {
    flex: 1 1 auto;
    min-height: 0;
    resize: none;
    line-height: 1.5;
}

.brain-fs-body textarea.brain-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
    white-space: pre;
    tab-size: 2;
}

.brain-fs-label-wrap input:focus,
.brain-fs-body textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 216, 238, 0.12);
}

.brain-fs-hint {
    margin: 0;
    padding: 0 1.25rem;
    color: #f0be50;
    font-size: 0.85rem;
    font-weight: 650;
}

.brain-fs-hint[hidden] {
    display: none;
}

.brain-fs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.brain-fs-actions [data-brain-fs-save].is-dirty {
    box-shadow: 0 0 0 2px rgba(240, 190, 80, 0.45);
}

@media (max-width: 720px) {
    .brain-fs-card {
        padding: 0.85rem 0.85rem 1rem;
    }
}

.brain-field-help {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(232, 238, 247, 0.72);
}

.brain-launch-note {
    margin: 0.85rem 0 0;
    max-width: 42rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--mist);
}

.brain-launch-note.is-ready {
    color: #9dffc2;
}

.brain-launch-missing {
    display: block;
    margin-top: 0.35rem;
    color: var(--amber-soft);
}


.brain-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.brain-list-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.brain-list-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: stretch;
}

.brain-list-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fog);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    font: inherit;
    cursor: pointer;
    min-width: 0;
}

.brain-list-summary {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
    line-height: 1.35;
}

.brain-list-chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    flex: 0 0 auto;
    margin-top: -0.15rem;
    transition: transform 0.15s ease;
}

.brain-list-item.is-open .brain-list-chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.brain-list-remove {
    appearance: none;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 212, 215, 0.9);
    width: 2.6rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.brain-list-remove:hover,
.brain-list-remove:focus-visible {
    outline: none;
    background: rgba(240, 113, 120, 0.12);
}

.brain-list-body {
    padding: 0 0.85rem 0.85rem;
}

.brain-list-body textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: var(--fog);
    padding: 0.85rem 0.95rem;
    font: inherit;
    resize: vertical;
    min-height: 5rem;
}

.brain-list-add {
    align-self: flex-start;
    margin-top: 0.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.brain-list-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.brain-list-add-icon svg {
    display: block;
}

.brain-section-lead {
    margin: 0 0 1.1rem;
    max-width: 46rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(232, 238, 247, 0.78);
}

.brain-kv-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.brain-kv-item {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
}

.brain-kv-item-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: center;
}

.brain-kv-label {
    display: block;
    min-width: 0;
}

.brain-kv-label input {
    width: 100%;
    height: 2.55rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: var(--fog);
    padding: 0 0.85rem;
    font: inherit;
    font-weight: 600;
}

.brain-kv-item textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: var(--fog);
    padding: 0.75rem 0.85rem;
    font: inherit;
    resize: vertical;
    min-height: 6rem;
    line-height: 1.45;
}

.brain-kv-label input:focus,
.brain-kv-item textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 216, 238, 0.12);
}

.brain-field input[type="text"],
.brain-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: var(--fog);
    padding: 0.85rem 0.95rem;
    font: inherit;
}

.brain-field textarea {
    resize: vertical;
    min-height: 5.5rem;
}

.brain-field textarea.brain-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    min-height: 10rem;
    white-space: pre;
    tab-size: 2;
}

.brain-field input[type="file"] {
    color: var(--mist);
    font-size: 0.85rem;
}

.brain-upload-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.brain-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 10.5rem;
    padding: 1.4rem 1.2rem;
    border-radius: 20px;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top, rgba(234, 43, 149, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.03);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.brain-dropzone:hover,
.brain-dropzone:focus-within,
.brain-dropzone.is-dragover {
    border-color: rgba(234, 43, 149, 0.55);
    background:
        radial-gradient(circle at top, rgba(234, 43, 149, 0.18), transparent 55%),
        rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.brain-dropzone-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.35rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fog);
}

.brain-dropzone-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.brain-dropzone-text {
    font-size: 0.9rem;
    color: var(--mist);
}

.brain-dropzone-meta {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(184, 190, 201, 0.72);
}

.brain-upload-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.18);
}

.brain-upload-preview[hidden] {
    display: none;
}

.brain-preview-frame {
    width: 7.5rem;
    height: 7.5rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.brain-preview-frame--logo {
    width: 8.5rem;
    height: 5.5rem;
}

.brain-preview-frame img,
.brain-photo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brain-preview-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}

.brain-preview-meta strong {
    color: var(--fog);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.brain-preview-meta span {
    font-size: 0.78rem;
    color: #b6f0c3;
}

.brain-file-remove {
    margin-top: 0.45rem;
    width: auto;
    min-width: 0;
    padding: 0.55rem 0.9rem;
}

.brain-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}

.brain-photo-grid[hidden] {
    display: none;
}

.brain-photo {
    position: relative;
    margin: 0;
    padding: 0.55rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.18);
}

.brain-photo .brain-preview-frame {
    width: 100%;
    height: 7.5rem;
}

.brain-photo .brain-preview-frame--media {
    height: 9rem;
    background: #000;
}

.brain-photo .brain-preview-frame video,
.brain-photo .brain-preview-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.brain-youtube-add {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.85rem 0 1rem;
}

.brain-youtube-add input {
    flex: 1 1 14rem;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: var(--fog);
    padding: 0.55rem 0.75rem;
    font: inherit;
    font-size: 0.88rem;
}

.brain-youtube-add input:focus {
    outline: none;
    border-color: rgba(125, 211, 252, 0.45);
}

.brain-youtube-add .btn {
    flex: 0 0 auto;
}

.brain-photo figcaption {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mist);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brain-photo-label-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.brain-photo-label-field {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.brain-photo-label-row .brain-field-tool {
    width: 1.7rem;
    height: 1.7rem;
}

.brain-photo-label-field input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: var(--fog);
    padding: 0.45rem 0.55rem;
    font: inherit;
    font-size: 0.78rem;
}

.brain-photo-label-field input:focus {
    outline: none;
    border-color: rgba(125, 211, 252, 0.45);
}

.brain-photo-remove {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 1.65rem;
    height: 1.65rem;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.82);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.brain-photo-remove:hover {
    background: #ea2b95;
}

.brain-form-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.85rem max(1.35rem, calc((100vw - 1180px) / 2 + 1.35rem)) calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 21, 30, 0.96);
    box-shadow: none;
}

.brain-form-actions .btn {
    width: auto;
    min-width: 11rem;
    margin: 0;
}

@media (max-width: 1100px) {
    .brain-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .brain-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brain-head {
        flex-direction: column;
        align-items: stretch;
    }

    .brain-total {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .brain-fields {
        grid-template-columns: 1fr;
    }

    .brain-nav {
        grid-template-columns: 1fr;
    }
}

.strategy-update {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 154, 24, 0.45);
    background: linear-gradient(135deg, rgba(255, 154, 24, 0.18), rgba(234, 43, 149, 0.12));
    color: var(--fog);
}

.strategy-update[hidden] {
    display: none !important;
}

.strategy-update-copy {
    display: grid;
    gap: 0.2rem;
    min-width: min(100%, 16rem);
    flex: 1;
}

.strategy-update-copy strong {
    font-size: 0.98rem;
    line-height: 1.3;
}

.strategy-update-copy span {
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--mist);
}

.strategy-update .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.strategy-update .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .strategy-update .btn {
        width: 100%;
    }
}

html[data-theme="light"] body:has(.dashboard-shell) .strategy-update {
    background: linear-gradient(135deg, rgba(255, 154, 24, 0.16), rgba(255, 237, 213, 0.9));
    border-color: rgba(180, 83, 9, 0.4);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .strategy-update-copy span {
    color: #5a6472;
}

.kw-panel,
.kw-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.kw-head,
.kw-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.kw-title {
    margin: 0.2rem 0 0.35rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.kw-lead {
    margin: 0;
    color: var(--mist);
    max-width: 40rem;
}

.kw-progress-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
}

.kw-progress-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.85rem;
}

.kw-progress-copy strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.kw-progress-copy span {
    color: var(--mist);
    font-size: 0.88rem;
}

.kw-progress-stats {
    margin-left: auto;
    font-weight: 700;
}

.kw-progress-bar {
    display: block;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.kw-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--grad);
}

@media (max-width: 640px) {
    .kw-progress-stats {
        margin-left: 0;
        width: 100%;
    }
}

.kw-empty {
    margin: 0;
    color: var(--mist);
}

.kw-set-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.kw-set-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: var(--card);
}

.kw-set-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.kw-set-copy strong {
    color: var(--fog);
}

.kw-set-copy span {
    color: var(--mist);
    font-size: 0.85rem;
}

.kw-set-actions {
    display: flex;
    gap: 0.45rem;
    flex-shrink: 0;
}

.kw-create-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kw-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.kw-form-error,
.kw-editor-error {
    margin: 0;
    color: #ff7daa;
    font-size: 0.9rem;
}

.kw-editor-status {
    margin: 0;
    color: #8dffc1;
    font-size: 0.9rem;
}

.kw-back {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--mist);
    text-decoration: none;
    font-size: 0.9rem;
}

.kw-back:hover {
    color: var(--fog);
}

.kw-set-name-field {
    min-width: min(28rem, 70vw);
}

.kw-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
    min-height: 0;
}

.kw-search-pane,
.kw-set-pane {
    padding: 1.1rem 1.15rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: var(--card);
    min-height: 24rem;
}

.kw-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: end;
    margin-bottom: 1rem;
}

.kw-search-query-field {
    flex: 1 1 14rem;
    min-width: min(100%, 14rem);
}

.kw-search-hint {
    margin: -0.35rem 0 0.9rem;
    color: rgba(232, 236, 245, 0.55);
    font-size: 0.82rem;
    line-height: 1.4;
}

.kw-search-bar > .field:not(.kw-search-query-field) {
    flex: 0 0 auto;
    min-width: 7.5rem;
}

.kw-mode-trigger,
.kw-exact-trigger {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
    font-weight: 700;
}

.kw-mode-help-btn {
    appearance: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--mist);
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.kw-mode-help-btn:hover,
.kw-mode-help-btn:focus-visible {
    color: var(--fog);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    outline: none;
}

.kw-mode-help-card {
    width: min(100%, 480px);
    max-height: 90dvh;
    overflow: hidden;
}

.kw-mode-help-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
}

.kw-mode-help-item {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.kw-mode-help-item h3 {
    margin: 0 0 0.35rem;
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.kw-mode-help-item p {
    margin: 0;
    color: var(--mist);
    font-size: 0.88rem;
    line-height: 1.45;
}

.kw-exact-trigger.is-on {
    border-color: rgba(141, 255, 193, 0.45);
    background: rgba(141, 255, 193, 0.1);
    color: #8dffc1;
}

.kw-results-filter {
    margin: 0 0 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.kw-results-filter[hidden] {
    display: none;
}

.kw-results-filter-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
}

.kw-filter-trigger {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
    font-weight: 700;
}

.kw-filter-card {
    width: min(100%, 460px);
    text-align: center;
}

.kw-filter-card .site-switch-lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 28ch;
}

.kw-filter-picks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
}

.kw-filter-pick {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fog);
    border-radius: 999px;
    min-width: 4.4rem;
    padding: 0.65rem 1rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.kw-filter-pick:hover,
.kw-filter-pick:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.kw-filter-pick.is-active {
    border-color: transparent;
    color: #fff;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.kw-mode-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 2.85rem;
}

.kw-mode-trigger #kw-search-mode-label {
    font-weight: 700;
}

.kw-results,
.kw-set-keywords,
.kw-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.kw-results-meta {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--fog);
}

.kw-results-meta[hidden] {
    display: none;
}

.kw-set-pane-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.kw-set-pane-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--fog);
}

.kw-set-pane-head span {
    color: var(--mist);
    font-size: 0.82rem;
}

.kw-custom-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: end;
    margin-bottom: 0.85rem;
}

.kw-custom-add .btn {
    width: auto;
    min-width: 0;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    border-radius: 10px;
}

.kw-row-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
}

.kw-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.kw-row-badge {
    display: inline-block;
    margin: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--mist);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.kw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.kw-row.is-in-set {
    border-color: rgba(141, 255, 193, 0.22);
}

.kw-row-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kw-row-copy strong {
    color: var(--fog);
    word-break: break-word;
}

.kw-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
}

.kw-metric {
    color: var(--mist);
    font-size: 0.78rem;
}

.kw-metric em {
    font-style: normal;
    color: rgba(232, 236, 245, 0.55);
    margin-right: 0.2rem;
}

.kw-editor-head .btn,
.kw-search-bar .btn,
.kw-row .btn,
.kw-set-actions .btn,
.kw-head .btn {
    width: auto;
    min-width: 0;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.kw-editor-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -2rem;
    padding: 0.95rem 1.5rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 21, 30, 0.94);
    backdrop-filter: blur(12px);
}

.kw-editor-actions-copy {
    min-width: 0;
    flex: 1;
}

.kw-editor-actions .btn {
    width: auto;
    min-width: 11rem;
    flex-shrink: 0;
}

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

    .kw-search-bar {
        display: flex;
    }

    .kw-search-bar > .field:not(.kw-search-query-field),
    .kw-search-bar > .btn {
        flex: 1 1 calc(50% - 0.35rem);
    }

    .kw-custom-add {
        grid-template-columns: 1fr;
    }

    .kw-results-filter-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kw-set-card {
        flex-direction: column;
        align-items: stretch;
    }

    .kw-set-actions {
        justify-content: flex-end;
    }
}

.pos-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.pos-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pos-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-shrink: 0;
}

.pos-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.2rem 0 0.35rem;
}

.pos-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.pos-help-btn {
    position: static;
    flex-shrink: 0;
}

.pos-help-card {
    width: min(100%, 560px);
    max-height: 90dvh;
    overflow: hidden;
}

.pos-help-card .kw-mode-help-list {
    margin-top: 0.15rem;
}

.pos-help-card .site-switch-close,
.kw-mode-help-card .site-switch-close {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-top: 0.85rem;
}

.pos-lead {
    margin: 0;
    color: var(--mist);
    max-width: 42rem;
}

.pos-lead + .pos-lead {
    margin-top: 0.75rem;
}

.pos-lead-exclude {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.pos-lead strong {
    color: var(--fog);
}

.pos-meta {
    margin: 0.55rem 0 0;
    color: rgba(232, 236, 245, 0.55);
    font-size: 0.85rem;
}

.pos-status {
    margin: 0;
    color: #8dffc1;
    font-size: 0.9rem;
}

.pos-error {
    margin: 0;
    color: #ff7daa;
    font-size: 0.9rem;
}

.pos-head .btn {
    width: auto;
    min-width: 0;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pos-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.pos-tab-desc {
    margin: 0.55rem 0 0;
    max-width: 42rem;
    color: rgba(232, 236, 245, 0.62);
    font-size: 0.9rem;
    line-height: 1.45;
}

.pos-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    flex: 0 0 auto;
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mist);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pos-tab:hover,
.pos-tab.is-active {
    color: var(--fog);
    border-color: transparent;
    background:
        linear-gradient(#10151e, #10151e) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}

.pos-table[data-pos-mode="own"] th[data-pos-mode="gsc"],
.pos-table[data-pos-mode="own"] td[data-pos-mode="gsc"],
.pos-table[data-pos-mode="gsc"] th[data-pos-mode="own"],
.pos-table[data-pos-mode="gsc"] td[data-pos-mode="own"] {
    display: none !important;
}

.pos-tab-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fog);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    min-width: 1.4rem;
    text-align: center;
}

.pos-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0 0 0.85rem;
}

.pos-hide-excluded {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--fog);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.pos-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.7rem;
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

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

.pos-bulk-meta {
    margin: 0;
    margin-right: 0.35rem;
    font-size: 0.88rem;
    color: var(--fog);
    font-weight: 650;
}

.pos-bulk-bar .btn {
    min-height: 2.1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.84rem;
}

.pos-select-col {
    width: 2.75rem;
    text-align: center;
    vertical-align: middle;
}

.pos-select-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pos-select-label:hover {
    background: rgba(141, 255, 193, 0.08);
}

.pos-check {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1.5px solid rgba(232, 236, 245, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: transparent;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

.pos-check::after {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5-5.1 1.1 1.1z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5-5.1 1.1 1.1z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.pos-check:hover {
    border-color: rgba(141, 255, 193, 0.55);
    background: rgba(141, 255, 193, 0.08);
}

.pos-check:focus-visible {
    outline: none;
    border-color: rgba(141, 255, 193, 0.75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 3px rgba(141, 255, 193, 0.22);
}

.pos-check:checked {
    color: #0b1a14;
    border-color: rgba(141, 255, 193, 0.85);
    background: linear-gradient(180deg, #a8ffd2, #6fe8b0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 0 0 1px rgba(141, 255, 193, 0.15);
}

.pos-check:checked::after {
    opacity: 1;
    transform: scale(1);
}

.pos-check:indeterminate {
    color: #0b1a14;
    border-color: rgba(141, 255, 193, 0.85);
    background: linear-gradient(180deg, #a8ffd2, #6fe8b0);
}

.pos-check:indeterminate::after {
    opacity: 1;
    transform: scale(1);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.2 7.2h9.6v1.6H3.2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.2 7.2h9.6v1.6H3.2z'/%3E%3C/svg%3E");
}

.pos-check:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pos-table tr.is-selected td {
    background: rgba(141, 255, 193, 0.07);
}

.pos-table tr.is-selected .pos-select-label {
    background: rgba(141, 255, 193, 0.1);
}

.pos-search {
    flex: 1 1 16rem;
    min-width: 0;
}

.pos-search input {
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fog);
    font-size: 0.92rem;
}

.pos-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.pos-filter-meta {
    margin: 0;
    color: rgba(232, 236, 245, 0.55);
    font-size: 0.82rem;
    white-space: nowrap;
}

.pos-sort {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.pos-sort:hover,
.pos-sort:focus-visible {
    color: var(--fog);
}

.pos-sort.is-active {
    color: var(--fog);
}

.pos-sort-ind {
    min-width: 0.7em;
    font-size: 0.85em;
    opacity: 0.85;
}

.pos-table-wrap {
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: var(--card);
}

.pos-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.pos-table th,
.pos-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

.pos-table th {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(232, 236, 245, 0.55);
    font-weight: 750;
    background: rgba(255, 255, 255, 0.02);
}

.pos-table td {
    color: var(--mist);
    font-size: 0.92rem;
}

.pos-table td strong {
    color: var(--fog);
    font-weight: 700;
}

.pos-kw {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
}

.pos-kw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    color: var(--mist);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.pos-kw-badge.is-off {
    color: #ffd6d6;
    border-color: rgba(226, 91, 91, 0.4);
    background: rgba(226, 91, 91, 0.22);
}

.pos-kw-badge.is-gsc {
    color: #c8e6ff;
    border-color: rgba(120, 180, 230, 0.45);
    background: rgba(80, 140, 200, 0.22);
}

.pos-table tr:last-child td {
    border-bottom: 0;
}

.pos-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pos-num.is-empty {
    color: rgba(232, 236, 245, 0.4);
}

.pos-prev,
.pos-delta {
    margin-left: 0.35rem;
    font-style: normal;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--mist);
}

.pos-delta.is-up {
    color: #3dba7a;
}

.pos-delta.is-down {
    color: #e25b5b;
}

.pos-live-col {
    width: 3rem;
    text-align: center;
}

.pos-live-gsc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #c8e6ff;
    border: 1px solid rgba(120, 180, 230, 0.45);
    background: rgba(80, 140, 200, 0.22);
    user-select: none;
}

.pos-live-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mist);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pos-live-btn svg {
    display: block;
}

.pos-live-btn:hover,
.pos-live-btn:focus-visible {
    outline: none;
    color: #fff;
    border-color: rgba(141, 255, 193, 0.4);
    background: rgba(141, 255, 193, 0.12);
    transform: translateY(-1px);
}

.pos-live-btn.is-busy {
    opacity: 1;
    cursor: wait;
    transform: none;
    color: #fff;
    border-color: rgba(141, 255, 193, 0.55);
    background: rgba(141, 255, 193, 0.18);
    animation: posLivePulse 1s ease-in-out infinite;
}

.pos-live-btn.is-busy svg {
    animation: posLiveSpin 0.7s linear infinite;
}

.pos-live-btn.is-cooldown,
.pos-live-btn:disabled:not(.is-busy) {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.pos-exclude-col {
    width: 2.75rem;
    text-align: center;
}

.pos-exclude-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(232, 228, 220, 0.45);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pos-exclude-btn svg {
    display: block;
}

.pos-exclude-btn:hover,
.pos-exclude-btn:focus-visible {
    outline: none;
    color: #ffb4b4;
    border-color: rgba(226, 91, 91, 0.45);
    background: rgba(226, 91, 91, 0.12);
}

.pos-exclude-btn.is-marked {
    color: #ffb4b4;
    border-color: rgba(226, 91, 91, 0.55);
    background: rgba(226, 91, 91, 0.18);
}

.pos-table tr.is-excluded td {
    opacity: 0.48;
}

.pos-table tr.is-excluded .pos-kw strong {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.pos-table tr.is-exclude-pending:not(.is-excluded) td {
    opacity: 0.72;
}

.pos-table tr.is-exclude-pending:not(.is-excluded) .pos-kw strong {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

@keyframes posLiveSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes posLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(141, 255, 193, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(141, 255, 193, 0); }
}

.pos-url {
    width: 2.75rem;
    text-align: center;
    vertical-align: middle;
}

.pos-url-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    color: var(--mist);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.pos-url-link:hover,
.pos-url-link:focus-visible {
    color: var(--fog);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    outline: none;
}

.pos-url-empty {
    color: var(--mist);
    opacity: 0.55;
}

.pos-empty {
    color: var(--mist);
    text-align: center !important;
}

@media (max-width: 900px) {
    .pos-head {
        flex-direction: column;
        align-items: stretch;
    }

    .pos-head-actions {
        justify-content: stretch;
    }

    .pos-head-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

html[data-theme="light"] {
    scrollbar-color: rgba(234, 43, 149, 0.45) rgba(12, 16, 24, 0.06);
}

html[data-theme="light"]::-webkit-scrollbar-track,
html[data-theme="light"] body::-webkit-scrollbar-track {
    background: rgba(12, 16, 24, 0.06);
}

html[data-theme="light"]::-webkit-scrollbar-thumb,
html[data-theme="light"] body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.65), rgba(234, 43, 149, 0.55), rgba(75, 93, 244, 0.5));
    background-clip: padding-box;
}

html[data-theme="light"] body:has(.dashboard-shell) {
    --ink: #ffffff;
    --fog: #12151c;
    --mist: #5a6472;
    --card: #ffffff;
    --line: rgba(12, 16, 24, 0.1);
    --glow: rgba(234, 43, 149, 0.12);
    background: #fff;
    color: var(--fog);
}

html[data-theme="light"] body:has(.dashboard-shell) .stage {
    opacity: 0;
}

html[data-theme="light"] body:has(.dashboard-shell) .dashboard-shell {
    padding-top: 0;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top {
    background: #1a1f2a;
    color: #f7f8fb;
    margin: 0 -1.35rem;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn.ghost,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-trigger,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-static,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-label,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-mark,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .brain-status-pct,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .keywords-nav-pct,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .tasks-nav-pct,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .keywords-nav-label,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .positions-nav-label,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .cron-toggle-state,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .dash-docs-icon,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top svg {
    color: #f7f8fb;
    fill: currentColor;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn.ghost,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-trigger,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-static {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn:hover,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn.ghost:hover,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-trigger:hover,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .site-switcher-static:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-settings-menu {
    background: rgba(26, 31, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-settings-item {
    color: #dce3ef;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-settings-item:hover,
html[data-theme="light"] body:has(.dashboard-shell) .dash-settings-item:focus-visible {
    color: #f7f8fb;
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-sub-btn.has-plan {
    border-color: rgba(15, 122, 74, 0.35);
}

html[data-theme="light"] body:has(.dashboard-shell) .card,
html[data-theme="light"] body:has(.dashboard-shell) .dash-home,
html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-form,
html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-sub-form {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
    box-shadow: 0 10px 30px rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .agent-sub-card .agent-prompt-sub-form {
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-start-card {
    background:
        linear-gradient(135deg, rgba(255, 154, 24, 0.12), rgba(75, 93, 244, 0.08)),
        #fff;
    border-color: rgba(255, 154, 24, 0.35);
    box-shadow: 0 10px 30px rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-start-checks li.is-done {
    color: #0f7a4a;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-start-checks li.is-done .dash-start-check-mark {
    color: #0f7a4a;
    border-color: rgba(15, 122, 74, 0.35);
    background: rgba(15, 122, 74, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-start-btn {
    box-shadow:
        0 12px 28px rgba(75, 93, 244, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-start-btn-pending {
    pointer-events: none;
    opacity: 0.92;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    cursor: default;
}

.dash-start-btn-admin {
    box-shadow: none;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-action-card {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.08);
    color: var(--fog);
}

html[data-theme="light"] body:has(.dashboard-shell) a.dash-action-card:hover,
html[data-theme="light"] body:has(.dashboard-shell) a.dash-action-card:focus-visible {
    background: #eef2f7;
    border-color: rgba(75, 93, 244, 0.35);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-action-icon {
    background: rgba(12, 16, 24, 0.06);
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-brain-card .dash-action-icon {
    background: rgba(167, 139, 250, 0.18);
    color: #5b21b6;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-positions-card .dash-action-icon {
    background: rgba(15, 122, 74, 0.12);
    color: #0f7a4a;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-tasks-card .dash-action-icon {
    background: rgba(251, 191, 36, 0.18);
    color: #b45309;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-logs-card .dash-action-icon {
    background: rgba(14, 116, 144, 0.12);
    color: #0e7490;
}

html[data-theme="light"] body:has(.dashboard-shell) .active-site-line a,
html[data-theme="light"] body:has(.dashboard-shell) .interview-link {
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .field input,
html[data-theme="light"] body:has(.dashboard-shell) .field textarea,
html[data-theme="light"] body:has(.dashboard-shell) .field select,
html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-select,
html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-textarea,
html[data-theme="light"] body:has(.dashboard-shell) .chat-form textarea {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .field input:focus,
html[data-theme="light"] body:has(.dashboard-shell) .field textarea:focus,
html[data-theme="light"] body:has(.dashboard-shell) .field select:focus,
html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-select:focus,
html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-textarea:focus,
html[data-theme="light"] body:has(.dashboard-shell) .chat-form textarea:focus {
    background: #fff;
    border-color: rgba(75, 93, 244, 0.45);
}

html[data-theme="light"] body:has(.dashboard-shell) .btn:not(.primary) {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .btn:not(.primary):hover {
    background: #e6e9ef;
    border-color: rgba(12, 16, 24, 0.18);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn:not(.primary),
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn.ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn:not(.primary):hover,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn:not(.primary):hover svg,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn.ghost:hover svg,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn:not(.primary):hover .dash-docs-icon,
html[data-theme="light"] body:has(.dashboard-shell) .dash-top .btn.ghost:hover .dash-docs-icon {
    color: #fff;
    fill: currentColor;
}

html[data-theme="light"] body:has(.dashboard-shell) .field-hint,
html[data-theme="light"] body:has(.dashboard-shell) .brain-field-help,
html[data-theme="light"] body:has(.dashboard-shell) .brain-section-lead,
html[data-theme="light"] body:has(.dashboard-shell) .brain-dropzone-meta,
html[data-theme="light"] body:has(.dashboard-shell) .brain-launch-note {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-launch-note.is-ready {
    color: #0f7a4a;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-launch-missing {
    color: #b45309;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-item.is-launch-tab {
    border-color: rgba(180, 83, 9, 0.28);
    background: rgba(255, 154, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-item.is-launch-tab .brain-nav-icon {
    background: rgba(255, 154, 24, 0.14);
    color: #b45309;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-item.is-launch-tab.is-active,
html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-item.is-launch-tab:hover {
    background:
        linear-gradient(#fff8ef, #fff8ef) padding-box,
        linear-gradient(135deg, #ff9a18, #ffc06a) border-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-panel,
html[data-theme="light"] body:has(.dashboard-shell) .kw-panel,
html[data-theme="light"] body:has(.dashboard-shell) .kw-editor,
html[data-theme="light"] body:has(.dashboard-shell) .users-list-card,
html[data-theme="light"] body:has(.dashboard-shell) .users-form-card,
html[data-theme="light"] body:has(.dashboard-shell) .interview-panel,
html[data-theme="light"] body:has(.dashboard-shell) .interview-review,
html[data-theme="light"] body:has(.dashboard-shell) .site-setup {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
    box-shadow: 0 10px 30px rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-head,
html[data-theme="light"] body:has(.dashboard-shell) .interview-review-head,
html[data-theme="light"] body:has(.dashboard-shell) .kw-head,
html[data-theme="light"] body:has(.dashboard-shell) .kw-editor-head {
    border-bottom-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-total-bar,
html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-bar,
html[data-theme="light"] body:has(.dashboard-shell) .interview-progress-bar {
    background: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-item {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.08);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-item:hover,
html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-item.is-active {
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-nav-icon,
html[data-theme="light"] body:has(.dashboard-shell) .brain-dropzone-icon,
html[data-theme="light"] body:has(.dashboard-shell) .brain-list-add-icon {
    background: rgba(12, 16, 24, 0.06);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-field-tool {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-field-tool:hover,
html[data-theme="light"] body:has(.dashboard-shell) .brain-field-tool:focus-visible {
    background: rgba(0, 214, 232, 0.12);
    border-color: rgba(0, 168, 186, 0.45);
    color: #0e7490;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-field input[type="text"],
html[data-theme="light"] body:has(.dashboard-shell) .brain-field textarea,
html[data-theme="light"] body:has(.dashboard-shell) .brain-list-body textarea,
html[data-theme="light"] body:has(.dashboard-shell) .brain-kv-label input,
html[data-theme="light"] body:has(.dashboard-shell) .brain-kv-item textarea,
html[data-theme="light"] body:has(.dashboard-shell) .brain-photo-label-field input,
html[data-theme="light"] body:has(.dashboard-shell) .interview-form textarea {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-field input[type="text"]:focus,
html[data-theme="light"] body:has(.dashboard-shell) .brain-field textarea:focus,
html[data-theme="light"] body:has(.dashboard-shell) .brain-list-body textarea:focus,
html[data-theme="light"] body:has(.dashboard-shell) .brain-kv-label input:focus,
html[data-theme="light"] body:has(.dashboard-shell) .brain-kv-item textarea:focus,
html[data-theme="light"] body:has(.dashboard-shell) .brain-photo-label-field input:focus {
    background: #fff;
    border-color: rgba(75, 93, 244, 0.45);
    box-shadow: 0 0 0 3px rgba(75, 93, 244, 0.12);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-youtube-add input {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-youtube-add input:focus {
    border-color: rgba(75, 93, 244, 0.45);
    box-shadow: 0 0 0 3px rgba(75, 93, 244, 0.12);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-list-item,
html[data-theme="light"] body:has(.dashboard-shell) .brain-kv-item,
html[data-theme="light"] body:has(.dashboard-shell) .brain-upload-preview,
html[data-theme="light"] body:has(.dashboard-shell) .brain-photo,
html[data-theme="light"] body:has(.dashboard-shell) .users-item,
html[data-theme="light"] body:has(.dashboard-shell) .kw-progress-card {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-list-remove {
    border-left-color: rgba(12, 16, 24, 0.08);
    color: #9f1239;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-dropzone {
    border-color: rgba(12, 16, 24, 0.16);
    background:
        radial-gradient(circle at top, rgba(234, 43, 149, 0.08), transparent 55%),
        #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-dropzone:hover,
html[data-theme="light"] body:has(.dashboard-shell) .brain-dropzone:focus-within,
html[data-theme="light"] body:has(.dashboard-shell) .brain-dropzone.is-dragover {
    border-color: rgba(234, 43, 149, 0.45);
    background:
        radial-gradient(circle at top, rgba(234, 43, 149, 0.12), transparent 55%),
        #f0f2f6;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-toast {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
    box-shadow: 0 16px 40px rgba(12, 16, 24, 0.14);
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-form-actions {
    background: #1a1f2a;
    border-top-color: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: none;
    color: #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-editor-actions {
    background: #1a1f2a;
    border-top-color: rgba(255, 255, 255, 0.08);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 28px rgba(12, 16, 24, 0.12);
    color: #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-form-actions .btn:not(.primary),
html[data-theme="light"] body:has(.dashboard-shell) .kw-editor-actions .btn:not(.primary) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-editor-actions-copy {
    color: #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .users-pick-trigger {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .users-pick-trigger:hover,
html[data-theme="light"] body:has(.dashboard-shell) .users-pick-trigger:focus-visible {
    border-color: rgba(12, 16, 24, 0.22);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-set-card,
html[data-theme="light"] body:has(.dashboard-shell) .kw-row,
html[data-theme="light"] body:has(.dashboard-shell) .kw-set-pane {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-metric em {
    color: #8a93a3;
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-search-hint {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-mode-help-btn {
    border-color: rgba(12, 16, 24, 0.14);
    background: #f4f6f9;
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-mode-help-btn:hover,
html[data-theme="light"] body:has(.dashboard-shell) .kw-mode-help-btn:focus-visible {
    color: #12151c;
    border-color: rgba(12, 16, 24, 0.28);
    background: #eef1f5;
}

html[data-theme="light"] body:has(.dashboard-shell) .kw-mode-help-item {
    border-color: rgba(12, 16, 24, 0.08);
    background: #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-tab {
    border-color: rgba(12, 16, 24, 0.1);
    background: #f4f6f9;
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-tab:hover,
html[data-theme="light"] body:has(.dashboard-shell) .pos-tab.is-active {
    color: #12151c;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-tab-count {
    background: rgba(12, 16, 24, 0.06);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-search input {
    border-color: rgba(12, 16, 24, 0.12);
    background: #fff;
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-search input:focus {
    border-color: rgba(12, 16, 24, 0.28);
    background: #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-filter-meta {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-lead-exclude {
    border-color: rgba(12, 16, 24, 0.1);
    background: rgba(12, 16, 24, 0.03);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-tab-desc {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-sort:hover,
html[data-theme="light"] body:has(.dashboard-shell) .pos-sort:focus-visible,
html[data-theme="light"] body:has(.dashboard-shell) .pos-sort.is-active {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-table-wrap {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-table th,
html[data-theme="light"] body:has(.dashboard-shell) .pos-table td {
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-table th {
    color: #5a6472;
    background: #f4f6f9;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-kw-badge {
    color: #5a6472;
    border-color: rgba(12, 16, 24, 0.14);
    background: #f0f2f6;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-kw-badge.is-gsc {
    color: #1a5f96;
    border-color: rgba(40, 120, 180, 0.35);
    background: #e5f2fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-bulk-bar {
    border-color: rgba(12, 16, 24, 0.1);
    background: #f4f6f9;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-bulk-meta,
html[data-theme="light"] body:has(.dashboard-shell) .pos-hide-excluded {
    color: #3a4250;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-check {
    border-color: rgba(12, 16, 24, 0.22);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-check:hover {
    border-color: rgba(22, 163, 106, 0.55);
    background: rgba(22, 163, 106, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-check:focus-visible {
    border-color: rgba(22, 163, 106, 0.7);
    box-shadow: 0 0 0 3px rgba(22, 163, 106, 0.18);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-check:checked,
html[data-theme="light"] body:has(.dashboard-shell) .pos-check:indeterminate {
    color: #052e1c;
    border-color: #16a34a;
    background: linear-gradient(180deg, #4ade80, #22c55e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-select-label:hover,
html[data-theme="light"] body:has(.dashboard-shell) .pos-table tr.is-selected .pos-select-label {
    background: rgba(22, 163, 106, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-table tr.is-selected td {
    background: rgba(22, 163, 106, 0.06);
}

html[data-theme="light"] .alert,
html[data-theme="light"] body:has(.dashboard-shell) .alert {
    border-color: rgba(159, 18, 57, 0.45);
    background: #ffe4e8;
    color: #9f1239;
    font-weight: 700;
}

html[data-theme="light"] .alert-success,
html[data-theme="light"] body:has(.dashboard-shell) .alert-success {
    border-color: rgba(15, 122, 74, 0.4);
    background: #dcfce7;
    color: #14532d;
    font-weight: 700;
}

html[data-theme="light"] .alert-warning,
html[data-theme="light"] body:has(.dashboard-shell) .alert-warning {
    border-color: rgba(180, 83, 9, 0.45);
    background: #ffedd5;
    color: #9a3412;
    font-weight: 700;
}

html[data-theme="light"] .alert-warning code,
html[data-theme="light"] body:has(.dashboard-shell) .alert-warning code {
    color: #7c2d12;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-prose,
html[data-theme="light"] body:has(.dashboard-shell) .dash-logs-item-preview,
html[data-theme="light"] body:has(.dashboard-shell) .dash-logs-item-preview.logs-prose {
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-prose em,
html[data-theme="light"] body:has(.dashboard-shell) .logs-prose .md-code code {
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-prose .md-inline-code {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.1);
    color: #9a6700;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-prose .md-code,
html[data-theme="light"] body:has(.dashboard-shell) .activity-details-pre {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.1);
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-prose .md-link {
    color: #0e7490;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-prose .md-img {
    border-color: rgba(12, 16, 24, 0.1);
    background: #f4f6f9;
    box-shadow: 0 12px 28px rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-prose .md-img-caption {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-btn {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.12);
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-btn:hover,
html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-btn:focus-visible {
    background: #f4f6f9;
    border-color: rgba(14, 116, 144, 0.35);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-modal .logs-shot-card {
    background:
        linear-gradient(180deg, rgba(12, 16, 24, 0.02), transparent 9rem),
        #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-card-head {
    background: rgba(244, 246, 249, 0.92);
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-body {
    background:
        radial-gradient(circle at top, rgba(14, 116, 144, 0.05), transparent 42%),
        #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-img {
    border-color: rgba(12, 16, 24, 0.1);
    background: #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-pane {
    border-color: rgba(12, 16, 24, 0.1);
    background: #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-shot-pane figcaption {
    border-color: rgba(12, 16, 24, 0.08);
    background: rgba(244, 246, 249, 0.95);
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-logs-item {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-logs-item:hover,
html[data-theme="light"] body:has(.dashboard-shell) .dash-logs-item:focus-visible {
    background: #eef2f7;
    border-color: rgba(14, 116, 144, 0.35);
}

html[data-theme="light"] body:has(.dashboard-shell) .dash-logs-all {
    color: #0e7490;
}

html[data-theme="light"] body:has(.dashboard-shell) .activity-item {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .activity-item.is-fail {
    background: rgba(190, 24, 93, 0.06);
    border-color: rgba(190, 24, 93, 0.28);
}

html[data-theme="light"] body:has(.dashboard-shell) .activity-result {
    color: #146c43;
}

html[data-theme="light"] body:has(.dashboard-shell) .activity-result.is-fail {
    color: #9f1239;
}

html[data-theme="light"] body:has(.dashboard-shell) .activity-meta,
html[data-theme="light"] body:has(.dashboard-shell) .activity-payload-empty {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .activity-action {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .activity-path,
html[data-theme="light"] body:has(.dashboard-shell) .activity-time,
html[data-theme="light"] body:has(.dashboard-shell) .activity-status,
html[data-theme="light"] body:has(.dashboard-shell) .activity-duration {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-sidebar,
html[data-theme="light"] body:has(.dashboard-shell) .logs-detail,
html[data-theme="light"] body:has(.dashboard-shell) .logs-empty {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
    box-shadow: 0 10px 30px rgba(12, 16, 24, 0.05);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-detail-head {
    border-bottom-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-link {
    background: #f4f6f9;
    border-color: transparent;
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-link:hover,
html[data-theme="light"] body:has(.dashboard-shell) .logs-file-link:focus-visible {
    background: #eef2f7;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-link.is-active {
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-name,
html[data-theme="light"] body:has(.dashboard-shell) .logs-detail-title,
html[data-theme="light"] body:has(.dashboard-shell) .logs-step-title,
html[data-theme="light"] body:has(.dashboard-shell) .logs-page-title {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-meta,
html[data-theme="light"] body:has(.dashboard-shell) .logs-detail-meta,
html[data-theme="light"] body:has(.dashboard-shell) .logs-step-time,
html[data-theme="light"] body:has(.dashboard-shell) .logs-page-lead,
html[data-theme="light"] body:has(.dashboard-shell) .logs-summary-label,
html[data-theme="light"] body:has(.dashboard-shell) .logs-summary-meta,
html[data-theme="light"] body:has(.dashboard-shell) .logs-sidebar-label,
html[data-theme="light"] body:has(.dashboard-shell) .logs-empty {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-summary-card {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-summary-value {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-summary-usage {
    border-top-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-list {
    scrollbar-color: rgba(234, 43, 149, 0.45) rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-list::-webkit-scrollbar-track {
    background: rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-file-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.65), rgba(234, 43, 149, 0.55), rgba(75, 93, 244, 0.5));
    background-clip: padding-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-timeline-line {
    background: rgba(12, 16, 24, 0.12);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-timeline-item.is-target .logs-timeline-card {
    outline-color: rgba(12, 16, 24, 0.12);
    background: #f7f8fb;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-site-usage,
html[data-theme="light"] body:has(.dashboard-shell) .logs-summary-usage {
    background: transparent;
    border-color: rgba(15, 122, 74, 0.2);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-site-usage-tokens {
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-site-usage-cost,
html[data-theme="light"] body:has(.dashboard-shell) .logs-usage-cost {
    color: #0f7a4a;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-usage-cost {
    background: rgba(15, 122, 74, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-step-head.has-usage {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-usage-badge {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.12);
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-busy-badge {
    color: #0f7a4a;
    border-color: rgba(15, 122, 74, 0.3);
    background: rgba(15, 122, 74, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-btn {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.12);
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-btn:hover,
html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-btn:focus-visible {
    background: #f4f6f9;
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-modal .logs-stream-card {
    background:
        linear-gradient(180deg, rgba(12, 16, 24, 0.02), transparent 9rem),
        #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-card-head {
    background: rgba(244, 246, 249, 0.92);
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-item-card {
    background: #f7f8fb;
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-index {
    color: rgba(42, 49, 64, 0.45);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-meta,
html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-item-body {
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-badge {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.12);
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-result .logs-stream-item-card {
    background: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.18);
}

html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-item-rail::before {
    background: linear-gradient(
        180deg,
        rgba(12, 16, 24, 0.18),
        rgba(12, 16, 24, 0.05) 70%,
        transparent
    );
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-refresh-note {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) input::placeholder,
html[data-theme="light"] body:has(.dashboard-shell) textarea::placeholder {
    color: #8a93a3;
    opacity: 1;
}

html[data-theme="light"] body:has(.dashboard-shell) .chat-msg-ai,
html[data-theme="light"] body:has(.dashboard-shell) .chat-msg-user {
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .chat-msg-ai {
    background: #f4f6f9;
}

html[data-theme="light"] body:has(.dashboard-shell) .chat-msg-user {
    background: #eef2ff;
}

html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-cli-code {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.1);
    color: #2a3140;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-docs-tab {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-docs-tab:hover,
html[data-theme="light"] body:has(.dashboard-shell) .skills-docs-tab.is-active {
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .skills-docs-tab-count {
    background: rgba(12, 16, 24, 0.08);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-switch-backdrop,
html[data-theme="light"] body:has(.dashboard-shell) .site-create-modal-backdrop,
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-backdrop {
    background: rgba(18, 22, 32, 0.45);
}

html[data-theme="light"] body:has(.dashboard-shell) .site-switch-card,
html[data-theme="light"] body:has(.dashboard-shell) .site-create-modal-card,
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-card {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
    box-shadow: 0 24px 64px rgba(12, 16, 24, 0.16);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-switch-close,
html[data-theme="light"] body:has(.dashboard-shell) .curtain-notice-actions,
html[data-theme="light"] body:has(.dashboard-shell) .site-switch-card > .site-delete-actions,
html[data-theme="light"] body:has(.dashboard-shell) .site-switch-card > .agent-sub-actions,
html[data-theme="light"] body:has(.dashboard-shell) .site-switch-card .kw-create-actions,
html[data-theme="light"] body:has(.dashboard-shell) .site-switch-card .kw-filter-actions,
html[data-theme="light"] body:has(.dashboard-shell) .site-create-modal-card > .btn {
    background: #fff;
    box-shadow: 0 -14px 18px -6px #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .pos-help-card .site-switch-close,
html[data-theme="light"] body:has(.dashboard-shell) .kw-mode-help-card .site-switch-close {
    background: transparent;
    box-shadow: none;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-switch-title,
html[data-theme="light"] body:has(.dashboard-shell) .site-create-modal-title,
html[data-theme="light"] body:has(.dashboard-shell) .site-create-modal-status,
html[data-theme="light"] body:has(.dashboard-shell) .site-choice,
html[data-theme="light"] body:has(.dashboard-shell) .site-choice-name,
html[data-theme="light"] body:has(.dashboard-shell) .site-delete-points li,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-section h3,
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-title,
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-close {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-switch-lead,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-label,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-note,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-steps,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-table,
html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-loading,
html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-empty,
html[data-theme="light"] body:has(.dashboard-shell) .logs-stream-error {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-choice,
html[data-theme="light"] body:has(.dashboard-shell) .site-delete-points li {
    border-color: rgba(12, 16, 24, 0.1);
    background: #f4f6f9;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-choice:hover,
html[data-theme="light"] body:has(.dashboard-shell) .site-choice:focus-visible {
    background: #eef2f7;
    border-color: rgba(12, 16, 24, 0.16);
    outline: none;
}

html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-code,
html[data-theme="light"] body:has(.dashboard-shell) .agent-prompt-cli-code {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.1);
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-steps a,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-note code,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-modal .site-switch-lead code,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-table th,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-table code {
    color: #1a2030;
}

html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-table th,
html[data-theme="light"] body:has(.dashboard-shell) .cron-docs-table td {
    border-bottom-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .site-delete-btn {
    color: #9f1239;
    border-color: rgba(190, 24, 93, 0.28);
    background: rgba(190, 24, 93, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .site-delete-btn:hover,
html[data-theme="light"] body:has(.dashboard-shell) .site-delete-btn:focus-visible {
    border-color: rgba(190, 24, 93, 0.45);
    background: rgba(190, 24, 93, 0.14);
    color: #9f1239;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-close {
    border-color: rgba(12, 16, 24, 0.12);
    background: #f0f2f6;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-close:hover,
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-close:focus-visible {
    background: #e6e9ef;
}

html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-label-wrap input,
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-body textarea {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-switch-card .btn:not(.primary),
html[data-theme="light"] body:has(.dashboard-shell) .site-create-modal-card .btn:not(.primary),
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-card .btn:not(.primary) {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .site-switch-card .btn:not(.primary):hover,
html[data-theme="light"] body:has(.dashboard-shell) .site-create-modal-card .btn:not(.primary):hover,
html[data-theme="light"] body:has(.dashboard-shell) .brain-fs-card .btn:not(.primary):hover {
    background: #e6e9ef;
    color: #12151c;
}

@media (max-width: 560px) {
    html[data-theme="light"] body:has(.dashboard-shell) .dash-top {
        margin: 0 -0.9rem;
        padding: 0.9rem;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
    }
}

.billing-agreement-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 5dvh 1rem;
    margin: 0;
    box-sizing: border-box;
}

.onboarding-card {
    width: min(100%, 720px);
}

.onboarding-competitors {
    display: grid;
    gap: 0.75rem;
}

.onboarding-competitors-hint {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    opacity: 0.72;
}

#ob-kw-mode-modal,
#ob-kw-mode-help-modal {
    z-index: 1300;
}

#ob-kw-mode-help-modal {
    z-index: 1310;
}

.onboarding-steps {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0.15rem 0 0.85rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.onboarding-kw {
    display: grid;
    gap: 0.85rem;
}

.onboarding-kw-name-field {
    max-width: 22rem;
}

.onboarding-kw-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 0.85rem;
    align-items: start;
}

.onboarding-kw-search,
.onboarding-kw-set {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}

.onboarding-kw-search-bar {
    margin-bottom: 0.55rem;
}

.onboarding-kw-results {
    max-height: min(42vh, 360px);
    overflow: auto;
}

.onboarding-kw-set .kw-set-keywords {
    max-height: min(36vh, 300px);
    overflow: auto;
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
}

.onboarding-kw-ready {
    margin: 0.35rem 0 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(92, 200, 140, 0.14);
    color: #b9f0cf;
    font-size: 0.86rem;
    line-height: 1.35;
}

@media (max-width: 860px) {
    .onboarding-kw-grid {
        grid-template-columns: 1fr;
    }

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

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-kw-search,
html[data-theme="light"] body:has(.dashboard-shell) .onboarding-kw-set {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-kw-ready {
    background: rgba(34, 140, 80, 0.1);
    color: #176b3a;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mist);
    opacity: 0.72;
}

.onboarding-step[hidden],
.onboarding-modal.is-admin-setup [data-onboarding-billing-step] {
    display: none !important;
}

.onboarding-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    flex: 0 0 auto;
}

.onboarding-step.is-active {
    color: var(--fog);
    opacity: 1;
}

.onboarding-step.is-active span {
    border-color: rgba(255, 154, 24, 0.45);
    background: rgba(255, 154, 24, 0.16);
    color: var(--amber-soft);
}

.onboarding-step.is-done {
    opacity: 1;
    color: #9dffc2;
}

.onboarding-step.is-done span {
    border-color: rgba(110, 231, 183, 0.4);
    background: rgba(110, 231, 183, 0.14);
    color: #9dffc2;
}

.onboarding-admin-setup {
    margin: 0 0 0.85rem;
}

.onboarding-card > .onboarding-admin-setup {
    margin: 0 0 1rem;
}

.onboarding-modal.is-admin-setup .onboarding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onboarding-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.onboarding-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.onboarding-field-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.onboarding-field-help {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(232, 238, 247, 0.68);
}

.onboarding-field input[type="text"],
.onboarding-field input[type="url"],
.onboarding-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    color: var(--fog);
    padding: 0.7rem 0.85rem;
    font: inherit;
}

.onboarding-field textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.onboarding-logo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.onboarding-logo-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.onboarding-logo-remove {
    min-height: 2.4rem;
}

.onboarding-logo-preview {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.onboarding-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.onboarding-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--fog);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.onboarding-file-btn input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.onboarding-error {
    margin: 0.75rem 0 0;
    color: #ff9d9d;
    font-size: 0.88rem;
    font-weight: 650;
}

.onboarding-actions {
    margin-top: 1rem;
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-steps {
    border-bottom-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-step {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-step.is-active {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-step.is-done {
    color: #0f7a4a;
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-field input[type="text"],
html[data-theme="light"] body:has(.dashboard-shell) .onboarding-field input[type="url"],
html[data-theme="light"] body:has(.dashboard-shell) .onboarding-field textarea {
    background: #f4f6f9;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-field-help {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .onboarding-file-btn {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

.billing-agreement-modal[hidden] {
    display: none;
}

body.billing-agreement-open {
    overflow: hidden;
}

.billing-agreement-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 8, 14, 0.72);
    backdrop-filter: blur(8px);
}

.billing-agreement-card {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: 90dvh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.3rem 1.65rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #10151e;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: riseIn 0.3s ease both;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 154, 24, 0.55) rgba(255, 255, 255, 0.06);
}

.billing-agreement-card::-webkit-scrollbar {
    width: 10px;
}

.billing-agreement-card::-webkit-scrollbar-track {
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.billing-agreement-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.7), rgba(234, 43, 149, 0.45));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.billing-agreement-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.9), rgba(234, 43, 149, 0.6));
    background-clip: padding-box;
}

.billing-agreement-card::-webkit-scrollbar-corner {
    background: transparent;
}

.billing-agreement-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.billing-agreement-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.2rem 0 0.45rem;
}

.billing-agreement-price {
    display: grid;
    gap: 0.15rem;
    margin: 0 0 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 154, 24, 0.4);
    background: rgba(255, 154, 24, 0.1);
    color: var(--fog);
}

.billing-agreement-price strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.billing-agreement-price span {
    font-size: 0.95rem;
    font-weight: 700;
}

.billing-agreement-price em {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--mist);
}

.billing-agreement-lead {
    color: var(--mist);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
}

.billing-agreement-terms-link {
    color: #ffc06a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.billing-agreement-terms-link:hover,
.billing-agreement-terms-link:focus-visible {
    color: #ffe0b0;
}

.billing-agreement-terms-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 154, 24, 0.35);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.billing-agreement-terms-panel-dpa {
    margin-bottom: 0.95rem;
}

.billing-agreement-terms-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.55rem 0.55rem 0.9rem;
    border-bottom: 1px solid rgba(255, 154, 24, 0.22);
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.14), rgba(255, 154, 24, 0.05));
}

.billing-agreement-terms-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f7f8fb;
}

.billing-agreement-terms-expand {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 1px solid rgba(255, 154, 24, 0.55);
    border-radius: 999px;
    background: rgba(255, 154, 24, 0.18);
    color: #fff7ed;
    cursor: pointer;
}

.billing-agreement-terms-expand svg {
    display: block;
    flex: 0 0 auto;
}

.billing-agreement-terms-expand .billing-agreement-terms-compress-icon,
.billing-agreement-terms-expand[aria-expanded="true"] .billing-agreement-terms-expand-icon {
    display: none;
}

.billing-agreement-terms-expand[aria-expanded="true"] .billing-agreement-terms-compress-icon {
    display: block;
}

.billing-agreement-terms-expand:hover,
.billing-agreement-terms-expand:focus-visible {
    background: rgba(255, 154, 24, 0.32);
    border-color: rgba(255, 154, 24, 0.85);
    color: #fff;
    outline: none;
}

.billing-agreement-terms {
    flex: 1 1 auto;
    min-height: min(16dvh, 140px);
    max-height: min(24dvh, 200px);
    overflow: auto;
    padding: 0.85rem 0.7rem 0.85rem 0.95rem;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.12);
    margin-bottom: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #dce3ef;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 154, 24, 0.55) rgba(255, 255, 255, 0.06);
}

.billing-agreement-terms-panel.is-fullscreen {
    position: fixed;
    inset: 0.75rem;
    z-index: 12000;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    background: #121821;
}

.billing-agreement-terms-panel.is-fullscreen .billing-agreement-terms {
    min-height: 0;
    max-height: none;
    height: 100%;
    padding: 1.25rem 1.35rem 1.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
}

.billing-agreement-terms-panel.is-fullscreen .billing-agreement-terms-toolbar {
    padding: 0.7rem 0.75rem 0.7rem 1.15rem;
}

.billing-agreement-terms-panel.is-fullscreen .billing-agreement-terms-label {
    font-size: 0.95rem;
}

body.billing-terms-fullscreen::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 11990;
    background: rgba(6, 9, 14, 0.72);
    pointer-events: none;
}

.billing-agreement-terms::-webkit-scrollbar {
    width: 10px;
}

.billing-agreement-terms::-webkit-scrollbar-track {
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.billing-agreement-terms::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.7), rgba(234, 43, 149, 0.45));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.billing-agreement-terms::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.9), rgba(234, 43, 149, 0.6));
    background-clip: padding-box;
}

.billing-agreement-terms::-webkit-scrollbar-corner {
    background: transparent;
}

.billing-agreement-terms p {
    margin: 0 0 0.55rem;
}

.billing-agreement-terms p:last-child {
    margin-bottom: 0;
}

.billing-agreement-head,
.billing-agreement-fields,
.billing-agreement-actions {
    flex-shrink: 0;
}

.billing-agreement-fields {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.billing-agreement-field {
    display: grid;
    gap: 0.3rem;
}

.billing-agreement-field span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mist);
}

.billing-agreement-field input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fog);
    font: inherit;
}

.billing-agreement-field input:focus {
    outline: none;
    border-color: rgba(75, 93, 244, 0.55);
    box-shadow: 0 0 0 3px rgba(75, 93, 244, 0.16);
}

.billing-agreement-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 154, 24, 0.35);
    background: rgba(255, 154, 24, 0.08);
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--fog);
    cursor: pointer;
}

.billing-agreement-check input {
    margin-top: 0.15rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #ff9a18;
}

.billing-agreement-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    align-items: stretch;
    margin-bottom: 0.35rem;
    padding-bottom: 0.5rem;
}

.billing-agreement-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.billing-agreement-actions .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-card {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
    box-shadow: 0 24px 64px rgba(12, 16, 24, 0.16);
    scrollbar-color: rgba(180, 83, 9, 0.45) rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-card::-webkit-scrollbar-track {
    background: rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.85), rgba(234, 43, 149, 0.5));
    background-clip: padding-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 154, 24, 1), rgba(234, 43, 149, 0.7));
    background-clip: padding-box;
}

@media (max-height: 780px) {
    .billing-agreement-terms {
        min-height: 110px;
        max-height: min(20dvh, 160px);
    }

    .billing-agreement-price {
        padding: 0.65rem 0.8rem;
    }

    .billing-agreement-lead {
        margin-bottom: 0.65rem;
    }
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-title {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-price {
    background: rgba(255, 154, 24, 0.12);
    border-color: rgba(180, 83, 9, 0.35);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-price em,
html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-lead {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-link {
    color: #9a3412;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-link:hover,
html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-link:focus-visible {
    color: #7c2d12;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-panel {
    background: #fff;
    border-color: rgba(180, 83, 9, 0.4);
    box-shadow: 0 1px 0 rgba(12, 16, 24, 0.04), inset 0 0 0 1px rgba(255, 154, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-toolbar {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.16), rgba(255, 154, 24, 0.07));
    border-bottom-color: rgba(180, 83, 9, 0.28);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-label {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-expand {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, 0.55);
    color: #9a3412;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-expand:hover,
html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-expand:focus-visible {
    background: #ffedd5;
    border-color: rgba(154, 52, 18, 0.7);
    color: #7c2d12;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms-panel.is-fullscreen {
    background: #fff;
    border-color: rgba(180, 83, 9, 0.35);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms {
    background: #f8fafc;
    border-color: transparent;
    color: #2a3140;
    scrollbar-color: rgba(180, 83, 9, 0.45) rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms::-webkit-scrollbar-track {
    background: rgba(12, 16, 24, 0.06);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 154, 24, 0.85), rgba(234, 43, 149, 0.5));
    background-clip: padding-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-terms::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 154, 24, 1), rgba(234, 43, 149, 0.7));
    background-clip: padding-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-field span {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-field input {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.14);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-check {
    background: rgba(255, 154, 24, 0.1);
    border-color: rgba(180, 83, 9, 0.35);
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-agreement-card .btn:not(.primary) {
    background: #f0f2f6;
    border-color: rgba(12, 16, 24, 0.12);
    color: #12151c;
}

.billing-page {
    display: grid;
    gap: 1.5rem;
}

.billing-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.billing-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.billing-page-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
    margin: 0.15rem 0 0.35rem;
}

.billing-page-lead,
.billing-empty,
.billing-muted {
    color: var(--mist);
    font-size: 0.92rem;
    line-height: 1.45;
}

.billing-section-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--fog);
}

.billing-exempt-form {
    margin-top: 0.75rem;
}

.billing-agreement-list {
    display: grid;
    gap: 0.75rem;
}

.billing-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
}

.billing-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
    color: var(--fog);
}

.billing-card p {
    margin: 0;
    color: var(--mist);
    font-size: 0.86rem;
}

.billing-table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.billing-table th,
.billing-table td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--fog);
}

.billing-table th {
    color: var(--mist);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.billing-table tr:last-child td {
    border-bottom: 0;
}

.billing-status {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.06);
    color: var(--mist);
}

.billing-status.is-paid {
    background: rgba(15, 122, 74, 0.14);
    color: #7dffb2;
}

.billing-status.is-open,
.billing-status.is-pending {
    background: rgba(255, 154, 24, 0.14);
    color: #ffc06a;
}

.billing-status.is-failed,
.billing-status.is-expired,
.billing-status.is-canceled,
.billing-status.is-cancelled {
    background: rgba(240, 113, 120, 0.14);
    color: #ffd4d7;
}

.billing-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.billing-icon-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(232, 238, 247, 0.88);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.billing-icon-btn:hover,
.billing-icon-btn:focus-visible {
    outline: none;
    background: rgba(255, 154, 24, 0.16);
    border-color: rgba(255, 154, 24, 0.45);
    color: #ffc06a;
}

.billing-icon-btn svg {
    display: block;
}

button.billing-icon-btn {
    font: inherit;
}

.billing-icon-btn.is-sent {
    border-color: rgba(72, 187, 140, 0.4);
    background: rgba(72, 187, 140, 0.14);
    color: #6ee7b7;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-icon-btn.is-sent {
    border-color: rgba(15, 122, 74, 0.35);
    background: rgba(15, 122, 74, 0.1);
    color: #0f7a4a;
}

.billing-inline-form {
    display: inline;
    margin: 0;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-icon-btn {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-icon-btn:hover,
html[data-theme="light"] body:has(.dashboard-shell) .billing-icon-btn:focus-visible {
    background: rgba(255, 154, 24, 0.12);
    border-color: rgba(255, 154, 24, 0.4);
    color: #b45309;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-page-title,
html[data-theme="light"] body:has(.dashboard-shell) .billing-section-title,
html[data-theme="light"] body:has(.dashboard-shell) .billing-card h3,
html[data-theme="light"] body:has(.dashboard-shell) .billing-table th,
html[data-theme="light"] body:has(.dashboard-shell) .billing-table td {
    color: #12151c;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-page-lead,
html[data-theme="light"] body:has(.dashboard-shell) .billing-empty,
html[data-theme="light"] body:has(.dashboard-shell) .billing-muted,
html[data-theme="light"] body:has(.dashboard-shell) .billing-card p {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-card,
html[data-theme="light"] body:has(.dashboard-shell) .billing-table-wrap {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-status.is-paid {
    color: #0f7a4a;
    background: rgba(15, 122, 74, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-status.is-open,
html[data-theme="light"] body:has(.dashboard-shell) .billing-status.is-pending {
    color: #9a3412;
    background: rgba(255, 154, 24, 0.12);
}

html[data-theme="light"] body:has(.dashboard-shell) .billing-status.is-failed,
html[data-theme="light"] body:has(.dashboard-shell) .billing-status.is-expired,
html[data-theme="light"] body:has(.dashboard-shell) .billing-status.is-canceled,
html[data-theme="light"] body:has(.dashboard-shell) .billing-status.is-cancelled {
    color: #9f1239;
    background: rgba(190, 24, 93, 0.1);
}


.comp-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.comp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.comp-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-shrink: 0;
}

.comp-title {
    margin: 0.2rem 0 0.35rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.comp-lead {
    margin: 0;
    max-width: 46rem;
    line-height: 1.55;
    color: rgba(232, 238, 247, 0.78);
}

.comp-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.9rem;
}

.comp-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mist);
}

.comp-status[data-status="running"] .comp-status-pill,
.comp-status[data-status="queued"] .comp-status-pill {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

.comp-status[data-status="done"] .comp-status-pill {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.comp-status[data-status="failed"] .comp-status-pill {
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af;
}

.comp-status-meta,
.comp-empty,
.comp-domain-empty {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(232, 238, 247, 0.68);
}

.comp-error,
.comp-domain-error {
    margin: 0;
    color: #fda4af;
    font-size: 0.92rem;
}

.comp-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fog);
}

.comp-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: end;
    margin-bottom: 0.85rem;
}

.comp-search-query {
    flex: 1 1 16rem;
    min-width: min(100%, 16rem);
}

.comp-search-bar .btn {
    width: auto;
    min-width: 0;
    padding: 0.7rem 1rem;
}

.comp-search-meta {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--fog);
}

.comp-search-results,
.comp-seed-list-wrap {
    max-height: 22rem;
    overflow: auto;
    margin-bottom: 1.15rem;
}

#comp-seed-list {
    margin-bottom: 0.75rem;
}

#comp-seed-count {
    margin-left: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mist);
}

.comp-url-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.comp-url-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.comp-save-status {
    margin: 0;
    font-size: 0.9rem;
    color: #86efac;
}

html[data-theme="light"] body:has(.dashboard-shell) .comp-save-status {
    color: #0f7a4a;
}

.comp-url-field {
    display: grid;
    gap: 0.35rem;
}

.comp-url-field span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.comp-url-field input,
.comp-url-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    color: var(--fog);
    padding: 0.7rem 0.85rem;
    font: inherit;
}

.comp-url-field textarea {
    min-height: 12rem;
    resize: vertical;
    line-height: 1.45;
}

.comp-competitors-found {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--mist);
}

.comp-live-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    margin: 0;
}

body.comp-live-open {
    overflow: hidden;
}

.comp-live-modal[hidden] {
    display: none;
}

.comp-live-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 16, 0.72);
}

.comp-live-card {
    position: relative;
    width: min(32rem, 100%);
    border-radius: 16px;
    padding: 1.25rem 1.35rem 1.4rem;
    background: #121820;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.comp-live-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
}

.comp-live-card p {
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.comp-live-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.comp-live-track span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #3d8bfd, #7d5cff);
    transition: width 0.25s ease;
}

#comp-live-percent {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    color: var(--mist);
}

.comp-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0.85rem;
}

.comp-domain-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
}

.comp-domain-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.comp-domain-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--fog);
}

.comp-domain-head span {
    font-size: 0.82rem;
    color: rgba(232, 238, 247, 0.62);
    white-space: nowrap;
}

.comp-preview {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.comp-preview li {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(232, 238, 247, 0.86);
}

.comp-preview em {
    font-style: normal;
    color: rgba(232, 238, 247, 0.55);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .comp-head {
        flex-direction: column;
    }

    .comp-head-actions {
        justify-content: stretch;
        width: 100%;
    }

    .comp-head-actions .btn {
        flex: 1;
    }
}

html[data-theme="light"] body:has(.dashboard-shell) .comp-lead,
html[data-theme="light"] body:has(.dashboard-shell) .comp-status-meta,
html[data-theme="light"] body:has(.dashboard-shell) .comp-empty,
html[data-theme="light"] body:has(.dashboard-shell) .comp-domain-empty,
html[data-theme="light"] body:has(.dashboard-shell) .comp-domain-head span,
html[data-theme="light"] body:has(.dashboard-shell) .comp-preview em {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .comp-url-field input,
html[data-theme="light"] body:has(.dashboard-shell) .comp-url-field textarea,
html[data-theme="light"] body:has(.dashboard-shell) .comp-domain-card {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
    color: #121820;
}

html[data-theme="light"] body:has(.dashboard-shell) .comp-preview li {
    color: #121820;
}


.pages-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.pages-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pages-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-shrink: 0;
}

.pages-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.2rem 0 0.35rem;
}

.pages-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.pages-help-btn {
    position: static;
    flex-shrink: 0;
}

.pages-help-card {
    width: min(100%, 560px);
    max-height: 90dvh;
    overflow: hidden;
}

.pages-help-card .kw-mode-help-list {
    margin-top: 0.15rem;
}

.pages-help-card .site-switch-close {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-top: 0.85rem;
}

.pages-lead {
    margin: 0;
    color: var(--mist);
    max-width: 44rem;
}

.pages-lead strong {
    color: var(--fog);
}

.pages-meta {
    margin: 0.65rem 0 0;
    color: var(--mist);
    font-size: 0.92rem;
}

.pages-status {
    margin: 0;
    color: #8fd0a8;
}

.pages-error {
    margin: 0;
    color: #f0a0a0;
}

.pages-table-wrap {
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.pages-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
}

.pages-table[data-pages-mode="site"] {
    min-width: 640px;
}

.pages-table[data-pages-mode="site"] .pages-col-plan {
    display: none;
}

.pages-table[data-pages-mode="plan"] .pages-col-site,
.pages-table:not([data-pages-mode="site"]) .pages-col-site {
    display: none;
}

.pages-col-comp {
    width: 3.25rem;
    text-align: center;
}

.pages-col-comp .pos-sort {
    justify-content: center;
    width: 100%;
}

.pages-comp {
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.pages-comp--light {
    background: #2fbf7a;
}

.pages-comp--medium {
    background: #e8a23a;
}

.pages-comp--heavy {
    background: #e05757;
}

.pages-comp--none {
    background: transparent;
    border: 1.5px solid rgba(148, 163, 184, 0.55);
    box-shadow: none;
    box-sizing: border-box;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-comp {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-comp--none {
    border-color: rgba(100, 116, 139, 0.45);
    box-shadow: none;
}

.pages-checks-cell {
    max-width: 22rem;
}

.pages-checks {
    display: inline-block;
    line-height: 1.35;
    color: var(--mist);
    word-break: break-word;
}

.pages-checks--pending {
    opacity: 0.55;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-checks {
    color: #475569;
}

.pages-spinoffs-table {
    min-width: 720px;
}

.pages-action-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mist);
}

.pages-action-pill[data-action="create"] {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

.pages-action-pill[data-action="link"] {
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-action-pill {
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-action-pill[data-action="create"] {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-action-pill[data-action="link"] {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.pages-toolbar {
    margin: 0;
}

.pages-table th,
.pages-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    font-size: 0.92rem;
}

.pages-table th .pos-sort {
    white-space: nowrap;
}

.pages-supporting-cell {
    max-width: 18rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.pages-supporting-cell .pages-supporting {
    flex: 1;
    min-width: 0;
}

.pages-supporting-cell .pages-kw-count {
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 0.1rem;
}

.pages-supporting {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--mist);
    font-size: 0.86rem;
    line-height: 1.35;
}

.pages-kw-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--mist);
    background: rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    white-space: nowrap;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-kw-count {
    color: #5a6472;
    background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-supporting {
    color: #5a6472;
}

.pages-table th {
    position: sticky;
    top: 0;
    background: rgba(12, 16, 24, 0.96);
    color: var(--mist);
    font-weight: 600;
    z-index: 1;
}

.pages-table td {
    color: var(--fog);
}

.pages-path-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 12rem;
}

.pages-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    color: var(--fog);
    text-decoration: none;
}

a.pages-path:hover {
    text-decoration: underline;
}

.pages-page-title {
    color: var(--mist);
    font-size: 0.88rem;
}

.pages-sub {
    color: rgba(180, 190, 205, 0.75);
    font-size: 0.8rem;
}

.pages-empty {
    color: var(--mist);
    text-align: center;
    padding: 2rem 1rem !important;
}

.pages-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.pages-status-pill[data-status="gepland"] {
    background: #e8f1f6;
    color: #1a4a63;
    border-color: #b7d0de;
}

.pages-status-pill[data-status="refresh"] {
    background: #f3efe6;
    color: #5c4a22;
    border-color: #d4c4a0;
}

.pages-status-pill[data-status="open"] {
    color: #f3c98b;
    background: rgba(243, 201, 139, 0.12);
    border-color: rgba(243, 201, 139, 0.28);
}

.pages-status-pill[data-status="deels"] {
    color: #9ec4f5;
    background: rgba(158, 196, 245, 0.12);
    border-color: rgba(158, 196, 245, 0.28);
}

.pages-status-pill[data-status="gedaan"] {
    color: #8fd0a8;
    background: rgba(143, 208, 168, 0.12);
    border-color: rgba(143, 208, 168, 0.28);
}

.pages-status-pill[data-status="buiten-plan"],
.pages-status-pill[data-status="site"] {
    color: #b8c0cc;
    background: rgba(184, 192, 204, 0.1);
    border-color: rgba(184, 192, 204, 0.22);
}

.pages-tabs {
    margin: 0;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-lead,
html[data-theme="light"] body:has(.dashboard-shell) .pages-meta,
html[data-theme="light"] body:has(.dashboard-shell) .pages-page-title,
html[data-theme="light"] body:has(.dashboard-shell) .pages-sub,
html[data-theme="light"] body:has(.dashboard-shell) .pages-empty {
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-table-wrap {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-table th {
    background: #f5f7fa;
    color: #5a6472;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-table td,
html[data-theme="light"] body:has(.dashboard-shell) .pages-path,
html[data-theme="light"] body:has(.dashboard-shell) .pages-title {
    color: #121820;
}

html[data-theme="light"] body:has(.dashboard-shell) .pages-table th,
html[data-theme="light"] body:has(.dashboard-shell) .pages-table td {
    border-bottom-color: rgba(12, 16, 24, 0.08);
}

@media (max-width: 720px) {
    .pages-head {
        flex-direction: column;
    }

    .pages-head-actions {
        width: 100%;
        justify-content: stretch;
    }

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


.perf-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-height: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.perf-panel.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.perf-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.perf-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.2rem 0 0.35rem;
}

.perf-help-btn {
    position: static;
    flex-shrink: 0;
}

.perf-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.perf-lead {
    margin: 0;
    color: var(--mist);
    max-width: 44rem;
}

.perf-lead strong {
    color: var(--fog);
}

.perf-meta {
    margin: 0.65rem 0 0;
    color: var(--mist);
    font-size: 0.92rem;
}

.perf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.perf-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.perf-preset.is-active {
    border-color: color-mix(in srgb, var(--fog) 35%, transparent);
    color: var(--fog);
    background: color-mix(in srgb, var(--fog) 10%, transparent);
}

.perf-compare-btn {
    margin-left: auto;
}

.perf-compare-btn.is-active {
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(14, 116, 144, 0.16);
    color: #e0f2fe;
}

.perf-compare-meta {
    margin: 0;
    font-size: 0.86rem;
    color: var(--mist);
}

.perf-kpi-delta {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.perf-kpi-delta.is-up {
    color: #6ee7b7;
}

.perf-kpi-delta.is-down {
    color: #fca5a5;
}

.perf-kpi-delta.is-flat {
    color: var(--mist);
}

.perf-range {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.55rem;
}

.perf-date-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

.perf-date-field input {
    min-height: 2.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--fog) 16%, transparent);
    background: color-mix(in srgb, var(--card) 88%, transparent);
    color: var(--fog);
    font: inherit;
}

.perf-status,
.perf-error,
.perf-warning {
    margin: 0;
    font-size: 0.92rem;
}

.perf-error {
    color: #ff8f8f;
}

.perf-warning {
    color: #e7c27a;
}

.perf-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.perf-kpi {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--fog) 12%, transparent);
    background: color-mix(in srgb, var(--card) 92%, transparent);
}

.perf-kpi-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mist);
}

.perf-kpi-value {
    margin: 0.35rem 0 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.perf-chart-card {
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--fog) 12%, transparent);
    background: color-mix(in srgb, var(--card) 92%, transparent);
    padding: 0.9rem 1rem 0.65rem;
}

.perf-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.perf-chart-title {
    margin: 0;
    font-size: 0.92rem;
    color: var(--fog);
    font-weight: 650;
}

.perf-chart-legend {
    display: flex;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: var(--mist);
}

.perf-legend-item::before {
    content: "";
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.perf-legend-item.is-clicks::before {
    background: #6ea8ff;
}

.perf-legend-item.is-impressions::before {
    background: color-mix(in srgb, var(--mist) 70%, transparent);
}

.perf-chart-wrap {
    width: 100%;
    height: 220px;
}

.perf-chart {
    width: 100%;
    height: 100%;
    color: var(--mist);
}

.perf-chart-area {
    fill: color-mix(in srgb, var(--mist) 14%, transparent);
    stroke: none;
}

.perf-chart-line {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.perf-chart-line.is-impressions {
    stroke: color-mix(in srgb, var(--mist) 75%, transparent);
}

.perf-chart-line.is-clicks {
    stroke: #6ea8ff;
}

.perf-chart-axis {
    fill: currentColor;
    font-size: 11px;
    opacity: 0.75;
}

.perf-tabs {
    margin-top: 0.25rem;
}

.perf-toolbar-search {
    align-items: center;
}

.perf-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid color-mix(in srgb, var(--fog) 10%, transparent);
}

.perf-pager-meta {
    margin: 0;
    font-size: 0.86rem;
    color: var(--mist);
    text-align: center;
    flex: 1;
}

.perf-pager-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.perf-table-wrap {
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--fog) 12%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
}

.perf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.perf-table th,
.perf-table td {
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid color-mix(in srgb, var(--fog) 10%, transparent);
    text-align: left;
    vertical-align: top;
}

.perf-table th {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mist);
    font-weight: 650;
    white-space: nowrap;
}

.perf-table td {
    color: var(--mist);
}

.perf-table td strong {
    color: var(--fog);
    font-weight: 650;
}

.perf-table tr:last-child td {
    border-bottom: 0;
}

.perf-page a {
    color: var(--fog);
    text-decoration: none;
    word-break: break-all;
}

.perf-page a:hover {
    text-decoration: underline;
}

.perf-empty {
    text-align: center;
    color: var(--mist);
    padding: 1.4rem 0.85rem !important;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-kpi,
html[data-theme="light"] body:has(.dashboard-shell) .perf-chart-card,
html[data-theme="light"] body:has(.dashboard-shell) .perf-table-wrap {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-title,
html[data-theme="light"] body:has(.dashboard-shell) .perf-kpi-value,
html[data-theme="light"] body:has(.dashboard-shell) .perf-table td strong,
html[data-theme="light"] body:has(.dashboard-shell) .perf-page a {
    color: #121820;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-kpi-delta.is-up {
    color: #059669;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-kpi-delta.is-down {
    color: #dc2626;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-compare-btn.is-active {
    border-color: rgba(14, 116, 144, 0.35);
    background: rgba(14, 116, 144, 0.08);
    color: #0e7490;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-date-field input {
    background: #f5f7fa;
    border-color: rgba(12, 16, 24, 0.1);
    color: #121820;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-table th,
html[data-theme="light"] body:has(.dashboard-shell) .perf-table td {
    border-bottom-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-chart-line.is-clicks {
    stroke: #2f6fed;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-legend-item.is-clicks::before {
    background: #2f6fed;
}

@media (max-width: 900px) {
    .perf-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .perf-toolbar,
    .perf-range {
        width: 100%;
    }

    .perf-compare-btn {
        margin-left: 0;
    }

    .perf-range .btn,
    .perf-date-field {
        flex: 1 1 auto;
    }

    .perf-date-field input {
        width: 100%;
    }

    .perf-kpis {
        grid-template-columns: 1fr 1fr;
    }
}


.perf-period-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(100%, 22rem);
}

.perf-period-trigger #perf-period-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perf-period-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.perf-date-card {
    width: min(100%, 560px);
}

.perf-date-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1rem 1.25rem;
    margin-top: 0.85rem;
}

.perf-date-modal-presets {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.perf-date-option {
    appearance: none;
    width: 100%;
    text-align: left;
    border: 1px solid color-mix(in srgb, var(--fog) 14%, transparent);
    background: color-mix(in srgb, var(--card) 88%, transparent);
    color: var(--mist);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    cursor: pointer;
}

.perf-date-option:hover {
    color: var(--fog);
    border-color: color-mix(in srgb, var(--fog) 28%, transparent);
}

.perf-date-option.is-active {
    color: var(--fog);
    border-color: color-mix(in srgb, var(--fog) 35%, transparent);
    background: color-mix(in srgb, var(--fog) 10%, transparent);
}

.perf-date-modal-custom {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--fog) 12%, transparent);
    background: color-mix(in srgb, var(--card) 70%, transparent);
}

.perf-date-modal-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mist);
}

.perf-date-actions {
    margin-top: 1.15rem;
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-date-option,
html[data-theme="light"] body:has(.dashboard-shell) .perf-date-modal-custom {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .perf-date-option.is-active {
    background: #f0f4fa;
    color: #121820;
}

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

    .perf-period-trigger {
        width: 100%;
        justify-content: flex-start;
    }
}

/* —— Extra (backlinks & ads) —— */
.extra-nav-btn.is-active {
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(14, 116, 144, 0.16);
    color: #e0f2fe;
}

.dash-extra-card .dash-action-icon {
    background: rgba(251, 146, 60, 0.14);
    color: #fdba74;
}

.extra-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.25rem 0 2rem;
}

.extra-hero {
    position: relative;
    overflow: hidden;
    padding: 1.75rem 1.6rem 1.85rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(14, 116, 144, 0.22), transparent 55%),
        radial-gradient(90% 80% at 100% 10%, rgba(251, 146, 60, 0.12), transparent 50%),
        rgba(0, 0, 0, 0.22);
}

.extra-hero-glow {
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 10rem;
    background: radial-gradient(closest-side, rgba(125, 211, 252, 0.18), transparent 70%);
    pointer-events: none;
    animation: extra-glow 8s ease-in-out infinite alternate;
}

@keyframes extra-glow {
    from { transform: translateX(0) scale(1); opacity: 0.7; }
    to { transform: translateX(-8%) scale(1.08); opacity: 1; }
}

.extra-hero .eyebrow {
    position: relative;
    margin: 0 0 0.55rem;
}

.extra-hero-title {
    position: relative;
    margin: 0 0 0.65rem;
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--fog);
}

.extra-hero-lead {
    position: relative;
    margin: 0;
    max-width: 40rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--fog) 72%, var(--mist));
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.extra-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.35rem 1.3rem 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.extra-panel:hover {
    border-color: rgba(125, 211, 252, 0.28);
    background: rgba(14, 116, 144, 0.08);
    transform: translateY(-2px);
}

.extra-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: rgba(125, 211, 252, 0.14);
    color: #bae6fd;
}

.extra-panel-icon.is-ads {
    background: rgba(251, 146, 60, 0.14);
    color: #fdba74;
}

.extra-panel-icon.is-social {
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
}

.extra-panel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.extra-panel-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--fog) 68%, var(--mist));
}

.extra-list {
    margin: 0.15rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.extra-list li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--fog) 82%, var(--mist));
}

.extra-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

.extra-panel:nth-child(2) .extra-list li::before {
    background: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15);
}

.extra-panel:nth-child(3) .extra-list li::before {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.extra-why {
    padding: 1.45rem 1.35rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.extra-why-title {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.extra-why-lead {
    margin: 0 0 1.15rem;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--fog) 68%, var(--mist));
}

.extra-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.extra-why-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.extra-why-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #7dd3fc;
}

.extra-why-item h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fog);
}

.extra-why-item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--fog) 65%, var(--mist));
}

.extra-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: 40rem;
    padding: 1.4rem 1.35rem 1.45rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.extra-cta .eyebrow {
    margin: 0;
}

.extra-cta-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fog);
}

.extra-cta-text {
    margin: 0 0 0.35rem;
    font-size: 0.94rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--fog) 68%, var(--mist));
}

.extra-cta-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.extra-cta-mail:hover,
.extra-cta-mail:focus-visible {
    border-color: rgba(125, 211, 252, 0.4);
    background: rgba(14, 116, 144, 0.14);
    outline: none;
}

.extra-cta-mail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(125, 211, 252, 0.14);
    color: #bae6fd;
    flex: 0 0 auto;
}

.extra-cta-mail-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.extra-cta-mail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mist);
}

.extra-cta-mail-address {
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--fog);
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-hero {
    border-color: rgba(12, 16, 24, 0.08);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(14, 116, 144, 0.12), transparent 55%),
        radial-gradient(90% 80% at 100% 10%, rgba(251, 146, 60, 0.08), transparent 50%),
        #fff;
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-hero-title,
html[data-theme="light"] body:has(.dashboard-shell) .extra-panel-title,
html[data-theme="light"] body:has(.dashboard-shell) .extra-why-title,
html[data-theme="light"] body:has(.dashboard-shell) .extra-cta-title,
html[data-theme="light"] body:has(.dashboard-shell) .extra-why-item h3 {
    color: #121820;
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-hero-lead,
html[data-theme="light"] body:has(.dashboard-shell) .extra-panel-text,
html[data-theme="light"] body:has(.dashboard-shell) .extra-why-lead,
html[data-theme="light"] body:has(.dashboard-shell) .extra-cta-text,
html[data-theme="light"] body:has(.dashboard-shell) .extra-why-item p,
html[data-theme="light"] body:has(.dashboard-shell) .extra-list li {
    color: #4a5568;
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-panel,
html[data-theme="light"] body:has(.dashboard-shell) .extra-why-item {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-why {
    background: rgba(12, 16, 24, 0.02);
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-cta {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-cta-mail {
    background: rgba(12, 16, 24, 0.03);
    border-color: rgba(12, 16, 24, 0.1);
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-cta-mail:hover,
html[data-theme="light"] body:has(.dashboard-shell) .extra-cta-mail:focus-visible {
    background: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.28);
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-cta-mail-address {
    color: #121820;
}

html[data-theme="light"] body:has(.dashboard-shell) .extra-nav-btn.is-active {
    border-color: rgba(14, 116, 144, 0.35);
    background: rgba(14, 116, 144, 0.08);
    color: #0e7490;
}

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

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

    .extra-cta-mail {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .extra-hero-glow,
    .extra-panel {
        animation: none;
        transition: none;
    }
}

/* —— GSC content plan (admin) —— */
.gsc-plan-page {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0.25rem 0 2rem;
}

.gsc-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.gsc-plan-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--fog);
}

.gsc-plan-lead {
    margin: 0;
    max-width: 40rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--fog) 72%, var(--mist));
}

.gsc-plan-meta {
    margin: 0.55rem 0 0;
    font-size: 0.86rem;
    color: var(--mist);
}

.gsc-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.gsc-plan-delete-btn {
    width: 2.6rem;
    min-height: 2.6rem;
    border-radius: 12px;
}

.gsc-plan-note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--mist);
}

.gsc-plan-empty {
    padding: 1.25rem 1.3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
}

.gsc-plan-empty p {
    margin: 0;
    color: color-mix(in srgb, var(--fog) 75%, var(--mist));
}

.gsc-plan-table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
}

.gsc-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gsc-plan-table th,
.gsc-plan-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.gsc-plan-table th {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mist);
    white-space: nowrap;
}

.gsc-plan-table td code {
    font-size: 0.84rem;
    color: #bae6fd;
}

.gsc-plan-role {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fdba74;
}

.gsc-plan-why {
    max-width: 22rem;
    color: color-mix(in srgb, var(--fog) 70%, var(--mist));
    line-height: 1.45;
}

html[data-theme="light"] body:has(.dashboard-shell) .gsc-plan-title {
    color: #121820;
}

html[data-theme="light"] body:has(.dashboard-shell) .gsc-plan-lead,
html[data-theme="light"] body:has(.dashboard-shell) .gsc-plan-why,
html[data-theme="light"] body:has(.dashboard-shell) .gsc-plan-empty p {
    color: #4a5568;
}

html[data-theme="light"] body:has(.dashboard-shell) .gsc-plan-empty,
html[data-theme="light"] body:has(.dashboard-shell) .gsc-plan-table-wrap {
    background: #fff;
    border-color: rgba(12, 16, 24, 0.08);
}

html[data-theme="light"] body:has(.dashboard-shell) .gsc-plan-table td code {
    color: #0e7490;
}

@media (max-width: 720px) {
    .gsc-plan-actions {
        width: 100%;
    }

    .gsc-plan-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
