.aysa-agent8v3-lab {
    --a8-bg: #f6f7f9;
    --a8-border: #dfe3ea;
    --a8-card: #ffffff;
    --a8-muted: #667085;
    --a8-text: #111827;
    --a8-red: #e9272d;
    --a8-green: #16a34a;
    --a8-green-bg: #e8faef;
    --a8-blue: #2563eb;
    --a8-blue-bg: #dbeafe;
    --a8-terminal: #111827;
    background: var(--a8-bg);
    color: var(--a8-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0 0 0 -20px;
    max-width: none;
    min-height: calc(100vh - 32px);
}

.aysa-agent8v3-app {
    min-height: calc(100vh - 32px);
    padding-bottom: 120px;
}

.aysa-agent8v3-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--a8-border);
    display: flex;
    height: 72px;
    justify-content: space-between;
    padding: 0 80px;
    position: sticky;
    top: 32px;
    z-index: 20;
}

.aysa-agent8v3-brand,
.aysa-agent8v3-topbar-actions,
.aysa-agent8v3-composer-toolbar,
.aysa-agent8v3-actions,
.aysa-agent8v3-message-head,
.aysa-agent8v3-metric-row,
.aysa-agent8v3-qa-buttons {
    align-items: center;
    display: flex;
}

.aysa-agent8v3-brand {
    gap: 12px;
}

.aysa-agent8v3-logo {
    align-items: center;
    background: var(--a8-red);
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    letter-spacing: 0;
    width: 32px;
}

.aysa-agent8v3-brand h1 {
    font-size: 21px;
    line-height: 1.1;
    margin: 0;
}

.aysa-agent8v3-subtitle {
    color: var(--a8-muted);
    font-size: 12px;
    margin-top: 2px;
}

.aysa-agent8v3-active-pill,
.aysa-agent8v3-status,
.aysa-agent8v3-status-badge,
.aysa-agent8v3-auth-pill {
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    padding: 7px 12px;
}

.aysa-agent8v3-active-pill {
    background: #d7f8e3;
    color: #166534;
    display: inline-flex;
    gap: 8px;
    margin-left: 8px;
}

.aysa-agent8v3-active-pill span {
    background: #22c55e;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.aysa-agent8v3-topbar-actions {
    gap: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-full-reset {
    border-color: #fecaca;
    border-radius: 999px;
    color: #b91c1c;
    min-height: 32px;
    padding: 0 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-full-reset:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-full-reset:focus {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.aysa-agent8v3-icon-button,
.aysa-agent8v3-plus {
    align-items: center;
    background: #f0f2f5;
    border: 0;
    border-radius: 9px;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.aysa-agent8v3-avatar {
    background: #d1d5db;
    border-radius: 50%;
    height: 32px;
    width: 32px;
}

.aysa-agent8v3-status {
    background: #eef2f7;
    border: 1px solid var(--a8-border);
    color: #374151;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.aysa-agent8v3-status[data-agent8v3-status="running"],
.aysa-agent8v3-status[data-agent8v3-status="thinking"] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.aysa-agent8v3-status[data-agent8v3-status="completed"] {
    background: var(--a8-green-bg);
    border-color: #bbf7d0;
    color: #166534;
}

.aysa-agent8v3-status[data-agent8v3-status="failed"] {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.aysa-agent8v3-thinking-text {
    font-weight: 700;
}

.aysa-agent8v3-thinking-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.aysa-agent8v3-thinking-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #64748b;
    animation: aysa-agent8v3-thinking-dot 1s infinite ease-in-out;
}

.aysa-agent8v3-thinking-dots span:nth-child(2) {
    animation-delay: .16s;
}

.aysa-agent8v3-thinking-dots span:nth-child(3) {
    animation-delay: .32s;
}

@keyframes aysa-agent8v3-thinking-dot {
    0%, 80%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.aysa-agent8v3-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    min-height: calc(100vh - 104px);
}

.aysa-agent8v3-main {
    border-right: 1px solid var(--a8-border);
    min-width: 0;
    padding: 24px 112px 150px;
}

.aysa-agent8v3-messages {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 520px;
}

.aysa-agent8v3-message {
    max-width: 710px;
}

.aysa-agent8v3-message.user {
    align-self: center;
    background: #fff;
    border: 1px solid var(--a8-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    font-size: 17px;
    line-height: 1.5;
    padding: 14px 18px;
    width: min(670px, 100%);
}

.aysa-agent8v3-message.assistant,
.aysa-agent8v3-message.qa,
.aysa-agent8v3-message.system {
    align-self: flex-start;
}

.aysa-agent8v3-message-card {
    background: #fff;
    border: 1px solid var(--a8-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 24px;
}

.aysa-agent8v3-message-head {
    color: #4b5563;
    gap: 10px;
    margin: 0 0 16px;
}

.aysa-agent8v3-message-logo {
    align-items: center;
    background: var(--a8-red);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.aysa-agent8v3-message-role {
    font-size: 14px;
}

.aysa-agent8v3-status-badge {
    background: var(--a8-blue-bg);
    color: #1d4ed8;
    margin-left: 4px;
    padding: 6px 9px;
}

.aysa-agent8v3-message-body {
    color: #172033;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.aysa-agent8v3-message.system .aysa-agent8v3-message-card {
    background: #dcfce7;
    border-color: #bbf7d0;
    border-radius: 999px;
    color: #166534;
    padding: 10px 18px;
}

.aysa-agent8v3-message.system .aysa-agent8v3-message-head {
    display: none;
}

.aysa-agent8v3-action-card,
.aysa-agent8v3-qa-card {
    background: #f8fafc;
    border: 1px solid var(--a8-border);
    border-radius: 12px;
    margin-top: 18px;
    padding: 18px;
}

.aysa-agent8v3-action-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.aysa-agent8v3-approval-required {
    background: #ffedd5;
    border-radius: 4px;
    color: #c2410c;
    font-size: 12px;
    padding: 6px 10px;
}

.aysa-agent8v3-action-meta {
    color: #374151;
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.aysa-agent8v3-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aysa-agent8v3-action-buttons .button-primary,
.aysa-agent8v3-qa-buttons .button-primary {
    background: var(--a8-red);
    border-color: var(--a8-red);
}

.aysa-agent8v3-next-step-card {
    background: #ecfdf5;
    border-color: #86efac;
}

.aysa-agent8v3-next-step-card .aysa-agent8v3-action-title strong {
    color: #166534;
}

.aysa-agent8v3-next-step-card .button-primary {
    background: #16a34a;
    border-color: #16a34a;
}

.aysa-agent8v3-next-step-card .button-primary:hover,
.aysa-agent8v3-next-step-card .button-primary:focus {
    background: #15803d;
    border-color: #15803d;
}

.aysa-agent8v3-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.aysa-agent8v3-terminal {
    background: var(--a8-terminal);
    border-radius: 8px;
    color: #22c55e;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    max-height: 260px;
    overflow: auto;
    padding: 16px;
    white-space: pre-wrap;
}

.aysa-agent8v3-debug-card pre,
.aysa-agent8v3-state-card pre,
.aysa-agent8v3-qa-test pre,
.aysa-agent8v3-qa-events pre {
    background: #111827;
    border-radius: 8px;
    color: #d1fae5;
    font-size: 12px;
    margin: 0;
    max-height: 320px;
    overflow: auto;
    padding: 12px;
    white-space: pre-wrap;
}

.aysa-agent8v3-debug-card {
    margin-top: 18px;
}

.aysa-agent8v3-diagnostics {
    background: #fff;
    padding: 20px 16px;
}

.aysa-agent8v3-diagnostics-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.aysa-agent8v3-diagnostics h2 {
    font-size: 16px;
    margin: 0;
}

.aysa-agent8v3-metric-card {
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
}

.aysa-agent8v3-active-test {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.aysa-agent8v3-metric-card h3 {
    font-size: 16px;
    margin: 0 0 14px;
}

.aysa-agent8v3-metric-row {
    color: #4b5563;
    font-size: 14px;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.aysa-agent8v3-metric-row strong {
    color: #0f766e;
    font-weight: 500;
    overflow-wrap: anywhere;
    text-align: right;
}

.aysa-agent8v3-projection {
    display: grid;
    gap: 0;
}

.aysa-agent8v3-projection-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.aysa-agent8v3-recent-actions {
    display: grid;
    gap: 10px;
}

.aysa-agent8v3-recent-action {
    align-items: center;
    color: #374151;
    display: flex;
    font-size: 14px;
    gap: 8px;
}

.aysa-agent8v3-recent-action span {
    border-radius: 50%;
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

.aysa-agent8v3-recent-action.passed span {
    background: #22c55e;
}

.aysa-agent8v3-recent-action.failed span {
    background: #ef4444;
}

.aysa-agent8v3-recent-action.skipped span {
    background: #3b82f6;
}

.aysa-agent8v3-composer-panel {
    background: #fff;
    border: 1px solid #cfd6e2;
    border-radius: 16px;
    bottom: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    left: calc(160px + 50%);
    max-width: 896px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100vw - 560px);
    z-index: 30;
}

.aysa-agent8v3-composer-toolbar {
    border-bottom: 1px solid var(--a8-border);
    gap: 10px;
    padding: 16px;
}

.aysa-agent8v3-auth-pill {
    background: #dbeafe;
    color: #1d4ed8;
}

.aysa-agent8v3-composer-toolbar select,
.aysa-agent8v3-language {
    border-color: #d1d5db;
    border-radius: 8px;
    margin-left: auto;
    max-width: 220px;
}

.aysa-agent8v3-language {
    background: #fff;
    color: #374151;
    min-height: 36px;
}

.aysa-agent8v3-composer-toolbar select + select,
.aysa-agent8v3-language + .aysa-agent8v3-mode-pill {
    margin-left: 2px;
}

.aysa-agent8v3-composer {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 16px;
}

.aysa-agent8v3-composer textarea {
    border: 0;
    box-shadow: none;
    font-size: 16px;
    min-height: 64px;
    resize: vertical;
    width: 100%;
}

.aysa-agent8v3-composer textarea:focus {
    box-shadow: none;
    outline: 0;
}

.aysa-agent8v3-app[dir="rtl"] .aysa-agent8v3-message.user {
    margin-left: 0;
    margin-right: auto;
}

.aysa-agent8v3-app[dir="rtl"] .aysa-agent8v3-composer-toolbar select,
.aysa-agent8v3-app[dir="rtl"] .aysa-agent8v3-language {
    margin-left: 0;
    margin-right: auto;
}

#aysa-agent8v3-send {
    align-self: end;
    background: var(--a8-red);
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    height: 42px;
    width: 42px;
}

.aysa-agent8v3-composer-panel.is-disabled {
    opacity: 0.68;
}

.aysa-agent8v3-qa {
    background: #fff;
    border-top: 1px solid var(--a8-border);
    padding: 16px 112px 160px;
}

.aysa-agent8v3-qa-body[hidden] {
    display: none;
}

.aysa-agent8v3-qa-buttons {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.aysa-agent8v3-qa-disabled {
    background: #fff7e5;
    border: 1px solid #f0c36d;
    border-radius: 6px;
    color: #6f4b00;
    margin: 0 0 12px;
    padding: 10px 12px;
}

.aysa-agent8v3-qa-summary {
    color: #374151;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin: 8px 0 12px;
}

.aysa-agent8v3-qa-results {
    display: grid;
    gap: 10px;
}

.aysa-agent8v3-qa-test,
.aysa-agent8v3-qa-events {
    background: #fff;
    border: 1px solid var(--a8-border);
    border-radius: 8px;
    padding: 12px;
}

.aysa-agent8v3-qa-test.passed {
    border-left: 4px solid #22c55e;
}

.aysa-agent8v3-qa-test.failed {
    border-left: 4px solid #ef4444;
}

.aysa-agent8v3-qa-test-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 1400px) {
    .aysa-agent8v3-topbar {
        padding: 0 32px;
    }

    .aysa-agent8v3-main {
        padding-left: 48px;
        padding-right: 48px;
    }

    .aysa-agent8v3-composer-panel {
        left: calc(50% + 40px);
        width: calc(100vw - 440px);
    }

    .aysa-agent8v3-qa {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 1100px) {
    .aysa-agent8v3-workspace {
        grid-template-columns: 1fr;
    }

    .aysa-agent8v3-main {
        border-right: 0;
        padding: 20px 20px 150px;
    }

    .aysa-agent8v3-diagnostics {
        border-top: 1px solid var(--a8-border);
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aysa-agent8v3-diagnostics-header {
        grid-column: 1 / -1;
    }

    .aysa-agent8v3-composer-panel {
        left: 50%;
        width: calc(100vw - 48px);
    }

    .aysa-agent8v3-qa {
        padding: 16px 20px 150px;
    }
}

@media (max-width: 782px) {
    .aysa-agent8v3-lab {
        margin-left: -10px;
        min-height: calc(100vh - 46px);
    }

    .aysa-agent8v3-topbar {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        top: 46px;
    }

    .aysa-agent8v3-diagnostics {
        grid-template-columns: 1fr;
    }

    .aysa-agent8v3-composer-panel {
        bottom: 12px;
        border-radius: 12px;
        width: calc(100vw - 24px);
    }

    .aysa-agent8v3-composer-toolbar {
        flex-wrap: wrap;
    }

    .aysa-agent8v3-composer-toolbar select {
        margin-left: 0;
    }
}

body[class*="aysa-agent8-v3-lab"] #wpbody-content > .notice,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > .updated,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > .error,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > .notice-warning,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > #message {
    display: none;
}

.aysa-agent8v3-lab {
    height: calc(100vh - 32px);
    min-height: 0;
    overflow: hidden;
}

.aysa-agent8v3-app {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 32px);
    min-height: 0;
    padding-bottom: 0;
}

.aysa-agent8v3-topbar {
    flex: 0 0 64px;
    height: 64px;
    padding: 0 40px;
    position: relative;
    top: auto;
}

.aysa-agent8v3-brand h1 {
    font-size: 19px;
}

.aysa-agent8v3-workspace {
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) 360px;
    min-height: 0;
    overflow: hidden;
}

.aysa-agent8v3-main {
    background: #f7f8fa;
    border-right: 1px solid var(--a8-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 20px 40px 18px;
}

.aysa-agent8v3-chat-head {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    margin: 0 auto 12px;
    max-width: 980px;
    width: 100%;
}

.aysa-agent8v3-chat-eyebrow {
    color: var(--a8-muted);
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.aysa-agent8v3-chat-phase {
    background: var(--a8-blue-bg);
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 12px;
    padding: 6px 10px;
}

.aysa-agent8v3-chat-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.aysa-agent8v3-messages {
    gap: 14px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 8px 18px;
    scroll-behavior: smooth;
}

.aysa-agent8v3-message {
    max-width: 920px;
}

.aysa-agent8v3-message.user {
    font-size: 15px;
    padding: 12px 16px;
    width: min(640px, 82%);
}

.aysa-agent8v3-message-head {
    margin-bottom: 8px;
}

.aysa-agent8v3-message-card {
    border-radius: 14px;
    padding: 16px 18px;
}

.aysa-agent8v3-message-body {
    font-size: 15px;
}

.aysa-agent8v3-actions {
    flex: 0 0 auto;
    margin: 0 auto 10px;
    max-width: 980px;
    width: 100%;
}

.aysa-agent8v3-action-card {
    margin-top: 0;
    width: min(640px, 100%);
}

.aysa-agent8v3-debug-card {
    flex: 0 0 auto;
    margin: 0 auto 10px;
    max-width: 980px;
    width: 100%;
}

.aysa-agent8v3-composer-panel {
    border-radius: 14px;
    bottom: auto;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    flex: 0 0 auto;
    left: auto;
    margin: 0 auto;
    max-width: 980px;
    position: relative;
    transform: none;
    width: 100%;
    z-index: 1;
}

.aysa-agent8v3-composer-toolbar {
    gap: 8px;
    padding: 10px 12px;
}

.aysa-agent8v3-mode-pill {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    color: #374151;
    font-size: 13px;
    margin-left: auto;
    padding: 7px 12px;
}

.aysa-agent8v3-composer {
    padding: 12px;
}

.aysa-agent8v3-composer textarea {
    border: 1px solid #d7dce5;
    border-radius: 12px;
    font-size: 15px;
    min-height: 66px;
    padding: 10px 12px;
}

.aysa-agent8v3-composer textarea:focus {
    border-color: #9db7f9;
}

#aysa-agent8v3-send {
    border-radius: 13px;
    height: 44px;
    width: 44px;
}

.aysa-agent8v3-diagnostics {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
}

.aysa-agent8v3-diagnostics-header {
    margin-bottom: 12px;
}

.aysa-agent8v3-diagnostics h2 {
    font-size: 22px;
}

.aysa-agent8v3-metric-card {
    margin-bottom: 12px;
    padding: 14px;
}

.aysa-agent8v3-metric-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.aysa-agent8v3-metric-row,
.aysa-agent8v3-projection-row {
    font-size: 13px;
    margin-top: 8px;
}

.aysa-agent8v3-state-card summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.aysa-agent8v3-state-card pre {
    margin-top: 12px;
}

.aysa-agent8v3-qa {
    background: transparent;
    border-top: 0;
    margin-bottom: 12px;
    padding: 0;
}

.aysa-agent8v3-qa-body {
    background: #fff;
    border: 1px solid var(--a8-border);
    border-radius: 10px;
    padding: 12px;
}

.aysa-agent8v3-qa-buttons {
    display: grid;
    grid-template-columns: 1fr;
}

.aysa-agent8v3-qa-buttons .button {
    justify-content: center;
    text-align: center;
}

.aysa-agent8v3-qa-results {
    max-height: 260px;
    overflow-y: auto;
}

.aysa-agent8v3-qa-live-line {
    border-bottom: 1px solid var(--a8-border);
    display: grid;
    gap: 4px;
    padding: 8px 0;
}

.aysa-agent8v3-qa-live-line strong {
    color: var(--a8-blue);
    font-size: 12px;
}

.aysa-agent8v3-qa-live-line span {
    color: var(--a8-text);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 1400px) {
    .aysa-agent8v3-topbar {
        padding: 0 24px;
    }

    .aysa-agent8v3-main {
        padding: 18px 24px;
    }

    .aysa-agent8v3-composer-panel {
        left: auto;
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .aysa-agent8v3-lab,
    .aysa-agent8v3-app {
        height: auto;
        min-height: calc(100vh - 32px);
        overflow: visible;
    }

    .aysa-agent8v3-workspace {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .aysa-agent8v3-main {
        min-height: calc(100vh - 180px);
        padding: 16px;
    }

    .aysa-agent8v3-messages {
        max-height: 52vh;
    }

    .aysa-agent8v3-diagnostics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
        padding: 16px;
    }
}

@media (max-width: 782px) {
    .aysa-agent8v3-lab,
    .aysa-agent8v3-app {
        min-height: calc(100vh - 46px);
    }

    .aysa-agent8v3-topbar {
        top: auto;
    }

    .aysa-agent8v3-diagnostics {
        grid-template-columns: 1fr;
    }

    .aysa-agent8v3-mode-pill {
        margin-left: 0;
    }
}

body[class*="aysa-agent8-v3-lab"] {
    overflow: hidden;
}

body[class*="aysa-agent8-v3-lab"] #wpbody-content {
    height: calc(100vh - 32px);
    overflow: hidden;
    padding-bottom: 0;
}

body[class*="aysa-agent8-v3-lab"] #wpfooter {
    display: none;
}

.aysa-agent8v3-workspace {
    height: calc(100vh - 96px);
}

.aysa-agent8v3-main,
.aysa-agent8v3-diagnostics {
    height: 100%;
    max-height: 100%;
}

.aysa-agent8v3-chat-scroll {
    height: 100%;
}

.aysa-agent8v3-messages {
    max-height: none;
}

@media (max-width: 1100px) {
    body[class*="aysa-agent8-v3-lab"] {
        overflow: auto;
    }

    body[class*="aysa-agent8-v3-lab"] #wpbody-content {
        height: auto;
        overflow: visible;
    }

    .aysa-agent8v3-workspace {
        height: auto;
    }

    .aysa-agent8v3-main {
        height: calc(100vh - 112px);
        max-height: calc(100vh - 112px);
    }
}

@media (max-width: 782px) {
    .aysa-agent8v3-main {
        height: calc(100vh - 126px);
        max-height: calc(100vh - 126px);
    }
}

body.admin_page_aysa-agent8-v3-lab #wpbody-content > .notice,
body.admin_page_aysa-agent8-v3-lab #wpbody-content > .updated,
body.admin_page_aysa-agent8-v3-lab #wpbody-content > .error,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > .notice,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > .updated,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > .error {
    display: none;
}

.wrap.aysa-agent8v3-lab {
    height: calc(100vh - 32px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-app {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
    padding-bottom: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar {
    flex: 0 0 56px;
    height: 56px;
    overflow: hidden;
    padding: 0 28px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-brand h1 {
    font-size: 20px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-subtitle {
    font-size: 11px;
    line-height: 1.2;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace {
    height: calc(100% - 56px) !important;
    min-height: 0 !important;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-main {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
    padding: 14px 28px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-head {
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-scroll {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-messages {
    height: 100%;
    min-height: 0 !important;
    overflow-y: auto;
    padding-bottom: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions {
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-panel {
    flex: 0 0 auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-toolbar {
    padding: 8px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer {
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer textarea {
    max-height: 72px;
    min-height: 54px;
}

/* Agent8 V3 final app-window remediation. Keep these overrides last. */
body.admin_page_aysa-agent8-v3-lab,
body.aysa-ai-seo_page_aysa-agent8-v3-lab,
body[class*="aysa-agent8-v3-lab"] {
    overflow: hidden !important;
}

body.admin_page_aysa-agent8-v3-lab #wpbody-content,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content,
body[class*="aysa-agent8-v3-lab"] #wpbody-content {
    height: calc(100vh - 32px) !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

body.admin_page_aysa-agent8-v3-lab #wpbody-content > .notice,
body.admin_page_aysa-agent8-v3-lab #wpbody-content > .updated,
body.admin_page_aysa-agent8-v3-lab #wpbody-content > .error,
body.admin_page_aysa-agent8-v3-lab #wpbody-content > #message,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > .notice,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > .updated,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > .error,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > #message,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > .notice,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > .updated,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > .error,
body[class*="aysa-agent8-v3-lab"] #wpbody-content > #message {
    display: none !important;
}

body.admin_page_aysa-agent8-v3-lab #wpbody-content > :not(.wrap):not(#screen-meta):not(#screen-meta-links):not(script):not(style),
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > :not(.wrap):not(#screen-meta):not(#screen-meta-links):not(script):not(style),
body[class*="aysa-agent8-v3-lab"] #wpbody-content > :not(.wrap):not(#screen-meta):not(#screen-meta-links):not(script):not(style),
body.admin_page_aysa-agent8-v3-lab #wpbody-content > .wrap:not(.aysa-agent8v3-lab),
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content > .wrap:not(.aysa-agent8v3-lab),
body[class*="aysa-agent8-v3-lab"] #wpbody-content > .wrap:not(.aysa-agent8v3-lab) {
    display: none !important;
}

#wpbody-content > :not(.wrap.aysa-agent8v3-lab):not(#screen-meta):not(#screen-meta-links):not(script):not(style),
#wpbody-content > .wrap:not(.aysa-agent8v3-lab) {
    display: none !important;
}

#wpbody-content > .notice,
#wpbody-content > .updated,
#wpbody-content > .error,
#wpbody-content > .notice-warning,
#wpbody-content > .update-nag,
#wpbody-content > #message,
#wpbody-content > .wrap > .notice,
#wpbody-content > .wrap > .updated,
#wpbody-content > .wrap > .error {
    display: none !important;
}

.wrap.aysa-agent8v3-lab {
    background: #eef1f5;
    height: calc(100vh - 32px) !important;
    margin: 0 0 0 -20px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-app {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar {
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px;
    padding: 0 28px !important;
    position: relative !important;
    top: auto !important;
    z-index: 5;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-brand h1 {
    font-size: 18px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-subtitle {
    font-size: 11px;
    line-height: 1.2;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) 340px;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-main {
    align-items: center;
    background: #eef1f5;
    border-right: 1px solid var(--a8-border);
    display: flex;
    height: 100% !important;
    justify-content: center;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 18px 24px !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel {
    background: #ffffff;
    border: 1px solid var(--a8-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    max-width: 1120px;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-head {
    border-bottom: 1px solid var(--a8-border);
    flex: 0 0 auto;
    margin: 0 !important;
    max-width: none;
    padding: 12px 16px;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-scroll {
    background: #f8fafc;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-messages {
    gap: 12px;
    height: 100%;
    min-height: 0 !important;
    overflow-y: auto;
    padding: 18px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message {
    max-width: 820px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.user {
    align-self: flex-end;
    font-size: 14px;
    padding: 10px 14px;
    width: min(560px, 78%);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message-head {
    margin-bottom: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message-card {
    border-radius: 12px;
    padding: 14px 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message-body {
    font-size: 14px;
    line-height: 1.5;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions {
    background: #ffffff;
    border-top: 1px solid var(--a8-border);
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-start;
    margin: 0 !important;
    max-width: none;
    min-height: 0;
    padding: 8px 16px;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions:empty {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-debug-card {
    flex: 0 0 auto;
    margin: 0;
    max-width: none;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 0 0 auto;
    margin: 0;
    max-width: none;
    position: relative;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-toolbar {
    border-top: 1px solid var(--a8-border);
    padding: 8px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer {
    align-items: flex-end;
    gap: 10px;
    padding: 10px 14px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer textarea {
    font-size: 14px;
    max-height: 78px;
    min-height: 52px;
    resize: none;
}

.wrap.aysa-agent8v3-lab #aysa-agent8v3-send {
    flex: 0 0 44px;
    height: 44px;
    margin-bottom: 0;
    width: 44px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-diagnostics {
    background: #ffffff;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-diagnostics h2 {
    font-size: 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-panel {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-panel-head h2 {
    color: #111827;
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-panel-head p {
    color: #64748b;
    font-size: 12px;
    margin: 5px 0 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-summary {
    background: #f8fafc;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-summary.has-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-summary span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-next small {
    color: #2563eb;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-summary.has-warning span {
    color: #9a3412;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-summary strong {
    color: #111827;
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-summary p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    margin: 6px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-meter {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-meter > div:first-child {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-meter > div:last-child {
    background: #e2e8f0;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-meter > div:last-child span {
    background: linear-gradient(90deg, #2563eb, #22c55e);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-groups {
    display: grid;
    gap: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group {
    border: 1px solid #e5edf6;
    border-radius: 10px;
    padding: 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group-head {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group-head strong {
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group-head small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group.is-done .aysa-agent8v3-progress-group-head small {
    color: #15803d;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group.is-active .aysa-agent8v3-progress-group-head small {
    color: #2563eb;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps li {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 14px minmax(0, 1fr);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-dot {
    background: #cbd5e1;
    border-radius: 50%;
    height: 10px;
    justify-self: center;
    position: relative;
    width: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps li.is-done .aysa-agent8v3-progress-dot {
    background: #22c55e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps li.is-active .aysa-agent8v3-progress-dot {
    background: #2563eb;
    box-shadow: 0 0 0 4px #dbeafe;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-dot i {
    animation: aysa-agent8v3-spin .85s linear infinite;
    border: 2px solid #bfdbfe;
    border-radius: 50%;
    border-top-color: #2563eb;
    inset: -5px;
    position: absolute;
}

@keyframes aysa-agent8v3-spin {
    to {
        transform: rotate(360deg);
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps strong {
    color: #111827;
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps small {
    color: #64748b;
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-next {
    border-top: 1px solid #e5edf6;
    margin-top: 12px;
    padding-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-next .aysa-agent8v3-action-with-badges {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-metric-card {
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-metric-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-metric-row,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-projection-row {
    font-size: 12px;
    margin-top: 7px;
}

@media (max-width: 1100px) {
    body.admin_page_aysa-agent8-v3-lab,
    body.aysa-ai-seo_page_aysa-agent8-v3-lab,
    body[class*="aysa-agent8-v3-lab"] {
        overflow: auto !important;
    }

    body.admin_page_aysa-agent8-v3-lab #wpbody-content,
    body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content,
    body[class*="aysa-agent8-v3-lab"] #wpbody-content {
        height: auto !important;
        overflow: visible !important;
    }

    .wrap.aysa-agent8v3-lab {
        height: auto !important;
        min-height: calc(100vh - 32px) !important;
        overflow: visible !important;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace {
        grid-template-columns: 1fr;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-main {
        height: calc(100vh - 96px) !important;
        min-height: 560px !important;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-diagnostics {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab {
        min-height: calc(100vh - 46px) !important;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar {
        align-items: flex-start;
        flex: 0 0 auto !important;
        height: auto !important;
        padding: 12px 14px !important;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-main {
        height: calc(100vh - 112px) !important;
        min-height: 520px !important;
        padding: 12px !important;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-message.user {
        width: min(100%, 520px);
    }
}

/* Bottom-fit correction: keep the composer fully inside the visible WP admin viewport. */
body.admin_page_aysa-agent8-v3-lab #wpbody-content,
body.aysa-ai-seo_page_aysa-agent8-v3-lab #wpbody-content,
body[class*="aysa-agent8-v3-lab"] #wpbody-content {
    height: calc(100dvh - 56px) !important;
}

.wrap.aysa-agent8v3-lab {
    height: calc(100dvh - 56px) !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar {
    flex-basis: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace {
    height: calc(100% - 52px) !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-main {
    padding: 12px 20px !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel {
    box-sizing: border-box;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions {
    padding: 6px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-toolbar {
    min-height: 34px;
    padding: 6px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer {
    align-items: center;
    padding: 8px 12px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer textarea {
    height: 46px;
    max-height: 58px;
    min-height: 46px;
    overflow-y: auto;
}

.wrap.aysa-agent8v3-lab #aysa-agent8v3-send {
    align-self: center;
    flex-basis: 40px;
    height: 40px;
    margin: 0;
    min-height: 40px;
    width: 40px;
}

/* Composer card: closer to Codex/ChatGPT visual, one integrated input surface. */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-panel {
    background: #ffffff;
    border-top: 1px solid var(--a8-border);
    display: grid;
    gap: 0;
    grid-template-areas:
        "input input"
        "toolbar send";
    grid-template-columns: 1fr 44px;
    padding: 12px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-toolbar {
    align-items: center;
    border-top: 0;
    display: flex;
    gap: 8px;
    grid-area: toolbar;
    min-height: 34px;
    padding: 8px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer {
    display: contents;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer textarea {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    grid-area: input;
    height: 44px;
    line-height: 1.45;
    max-height: 88px;
    min-height: 44px;
    outline: 0;
    padding: 2px 2px 8px;
    resize: none;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer textarea:focus {
    border: 0;
    box-shadow: none;
    outline: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-plus {
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    height: 28px;
    width: 28px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill {
    background: transparent;
    color: #f04b23;
    font-size: 13px;
    padding: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill.is-unauthenticated {
    color: #f04b23;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill.is-authenticated {
    color: #2e7d65;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-scroll {
    flex: 1 1 0 !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-messages {
    padding-bottom: 132px !important;
    scroll-padding-bottom: 132px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-panel {
    flex-shrink: 0 !important;
}

/* Final chat containment: reserve real layout space for the composer. */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-app,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-main,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel {
    box-sizing: border-box;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    position: relative;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-head {
    grid-row: 1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-scroll {
    grid-row: 2;
    min-height: 0 !important;
    overflow: hidden !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-debug-card {
    grid-row: 3;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-panel {
    grid-row: 4;
    margin-bottom: 14px !important;
    min-height: 116px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-messages {
    box-sizing: border-box;
    height: 100% !important;
    padding-bottom: 28px !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill::before {
    content: "◉";
    font-size: 10px;
    margin-right: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-mode-pill {
    background: transparent;
    border: 0;
    color: #6b7280;
    margin-left: auto;
    padding: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal[hidden] {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100000;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.44);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog {
    background: #ffffff;
    border: 1px solid #d7dce5;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    left: 50%;
    max-height: calc(100vh - 32px);
    max-width: 1680px;
    min-height: 420px;
    outline: 0;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1680px, calc(100vw - 24px));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-header {
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 20px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-header h2 {
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-header p {
    color: #6b7280;
    margin: 5px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-close {
    align-items: center;
    background: #f3f4f6;
    border: 0;
    border-radius: 999px;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 14px 20px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-summary:empty {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-summary div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-summary span {
    color: #6b7280;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-summary strong {
    color: #111827;
    display: block;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-tabs {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding: 12px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-tab {
    background: #fff;
    border: 1px solid #d7deea;
    border-radius: 999px;
    color: #526078;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 36px;
    padding: 8px 14px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
    color: #fff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-toolbar {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    padding: 14px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-toolbar input,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-toolbar select {
    border: 1px solid #d7dce5;
    border-radius: 8px;
    box-shadow: none;
    min-height: 36px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-toolbar input {
    max-width: 360px;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-toolbar select {
    max-width: 160px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-toolbar select.aysa-agent8v3-modal-filter-extra {
    max-width: 220px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0 20px 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap {
    overflow: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table {
    border-collapse: collapse;
    min-width: 1180px;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td {
    border-bottom: 1px solid #eef2f7;
    color: #111827;
    font-size: 13px;
    padding: 11px 10px;
    text-align: left;
    vertical-align: top;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th {
    background: #ffffff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th:first-child,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td:first-child {
    background: #ffffff;
    left: 0;
    min-width: 260px;
    position: sticky;
    z-index: 2;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-action,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-action {
    background: #ffffff;
    min-width: 116px;
    position: sticky;
    right: 0;
    text-align: right;
    z-index: 2;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-action {
    z-index: 3;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td {
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo .aysa-agent8v3-modal-table th,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo .aysa-agent8v3-modal-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-list {
    display: grid;
    gap: 12px;
    padding: 16px 20px 24px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-card {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-card-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-card-head strong {
    color: #0f172a;
    font-size: 15px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-card-grid div {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-card-grid span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-agent-card-grid strong {
    color: #111827;
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-list {
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-main {
    display: grid;
    gap: 12px;
    grid-template-columns: 180px minmax(220px, .7fr) minmax(280px, 1fr);
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-date span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-kicker,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-date strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-source strong {
    color: #111827;
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-source,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-copy {
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-copy {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-side {
    align-items: flex-start;
    display: grid;
    gap: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-image {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-meta,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-action {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-meta span {
    line-height: 1.35;
    text-align: right;
    text-transform: none;
}

@media (max-width: 1180px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-card,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-main {
        grid-template-columns: 1fr;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-meta,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-gbp-calendar-action {
        justify-content: flex-start;
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-note {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    padding: 12px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-strategy-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-strategy-summary > div {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 12px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-strategy-summary span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-strategy-summary strong {
    color: #0f172a;
    display: block;
    font-size: 16px;
    margin-top: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-list {
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-card.is-risk-high {
    border-color: #fecaca;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-card.is-risk-medium {
    border-color: #fde68a;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-head,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-route,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-details {
    display: grid;
    gap: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-head {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-route {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-card span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-issue span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-card strong {
    color: #111827;
    display: block;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-route b {
    color: #94a3b8;
    text-align: center;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-risk-high {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-risk-medium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-risk-low {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

@media (max-width: 1180px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-head,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-route,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-details {
        grid-template-columns: 1fr;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-route b {
        display: none;
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-plan .aysa-agent8v3-modal-table,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-keyword_objectives .aysa-agent8v3-modal-table,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-content_alignment .aysa-agent8v3-modal-table,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-aeo_content_qa .aysa-agent8v3-modal-table,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-links_authority .aysa-agent8v3-modal-table {
    min-width: 1080px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-aeo_content_qa .aysa-agent8v3-modal-table {
    min-width: 1560px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-aeo_content_qa .is-col-aeo_readiness,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-aeo_content_qa .is-col-aeo_apply_status {
    min-width: 150px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-aeo_content_qa .is-col-heading_structure_warnings,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-aeo_content_qa .is-col-trust_context_warnings {
    min-width: 170px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-aeo_content_qa .is-col-aeo_preview {
    min-width: 340px;
    width: 34%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-plan .is-col-entity {
    width: 36%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-plan .is-col-keyword_summary {
    width: 24%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-plan .is-col-status_summary {
    width: 28%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-onpage_seo.is-tab-plan .is-col-next_action {
    width: 12%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-entity,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-keywords {
    display: grid;
    gap: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-entity strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-keywords strong {
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-meta,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-keywords span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-statuses {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-meta em,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-keywords em,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-next {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-meta .is-aysa-generated {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-statuses {
    align-items: flex-start;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status {
    align-items: center;
    gap: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status b {
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status em {
    color: #0f172a;
    font-style: normal;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status.is-needs-meta,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status.is-needs-content-evaluation,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status.is-needs-links {
    background: #fff7ed;
    border-color: #fed7aa;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status.is-seo-done,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status.is-saved-published,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status.is-already-applied,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-status.is-mapped {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0 0 8px;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-preview summary {
    color: #334155;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-preview div,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-preview pre {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #111827;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    max-height: 220px;
    overflow: auto;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-preview p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-preview ul,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-preview ol {
    margin: 0 0 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-content-layout {
    display: grid;
    gap: 14px;
    padding-top: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-content-list {
    display: grid;
    gap: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card.is-ready {
    border-color: #86efac;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card.is-generate,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card.is-evaluate {
    border-color: #bfdbfe;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card.is-blocked {
    border-color: #fecaca;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card-main,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-preview {
    min-width: 0;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card-main {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card-head,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-preview-head,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card-head {
    justify-content: space-between;
    margin-bottom: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-preview-head {
    justify-content: space-between;
    margin-bottom: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card h3 {
    color: #0f172a;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-type,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-meta span {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-type {
    background: #ffffff;
    color: #475569;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-status {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card.is-ready .aysa-agent8v3-content-status {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card.is-blocked .aysa-agent8v3-content-status {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card.is-verify .aysa-agent8v3-content-status {
    background: #f8fafc;
    color: #475569;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-keyword {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    margin: 14px 0 10px;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-keyword span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-keyword strong {
    color: #0f172a;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-next,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-reason,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-apply-note {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-next {
    color: #0f172a;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-meta {
    margin-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-meta span {
    background: #ffffff;
    color: #475569;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-preview strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.3;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-action {
    min-height: 32px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-draft {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    line-height: 1.55;
    max-height: 300px;
    overflow: auto;
    padding: 12px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-draft > :first-child {
    margin-top: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-draft > :last-child {
    margin-bottom: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    font-size: 13px;
    line-height: 1.45;
    min-height: 98px;
    padding: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .aysa-agent8v3-modal-table {
    min-width: 1120px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking.is-tab-link_plan .aysa-agent8v3-modal-table {
    min-width: 1180px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking.is-tab-link_stats .aysa-agent8v3-modal-table,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking.is-tab-anchor_stats .aysa-agent8v3-modal-table {
    min-width: 920px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-hint {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    margin: 10px 18px;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .aysa-agent8v3-modal-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .aysa-agent8v3-modal-table th:first-child,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .aysa-agent8v3-modal-table td:first-child {
    min-width: 260px;
    width: 260px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-outbound_count,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-inbound_count,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-existing_outbound_count,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-existing_inbound_count,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-planned_outbound_count,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-planned_inbound_count,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-outbound_slots_remaining,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-safe_count,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-manual_needed,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-conflicts,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-automation_status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-execution_status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-review_status {
    min-width: 52px;
    text-align: center;
    white-space: nowrap;
    width: 52px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-entity_links {
    min-width: 460px;
    width: 460px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-configured_keywords {
    min-width: 280px;
    width: 300px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-signals {
    min-width: 132px;
    width: 132px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-anchor_display {
    min-width: 280px;
    width: 320px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-action {
    min-width: 58px;
    width: 58px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .is-col-stat_action {
    min-width: 96px;
    width: 96px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-view-plan {
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-col-redirect_type,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-redirect_type,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-col-confidence,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-confidence {
    min-width: 82px;
    overflow-wrap: normal;
    white-space: nowrap;
    width: 82px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-col-source_url,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-source_url,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-col-target_url,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-target_url {
    min-width: 230px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-col-reason,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-reason {
    min-width: 180px;
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-col-automation_status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-automation_status {
    min-width: 140px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table th.is-col-execution_status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-execution_status {
    min-width: 260px;
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table td.is-col-execution_status .aysa-agent8v3-modal-chip {
    align-items: flex-start;
    border-radius: 12px;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-cluster {
    display: grid;
    gap: 4px;
    max-width: 280px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-cluster strong {
    color: #111827;
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-cluster span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-family {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 360px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-family span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-family .button-link {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
    max-width: 420px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item strong {
    color: #0f172a;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item em {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item .aysa-agent8v3-schema-graph-role {
    background: #eefdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item .aysa-agent8v3-schema-graph-role.is-duplicate,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item .aysa-agent8v3-schema-graph-role.is-suppressed {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item .aysa-agent8v3-schema-graph-role.is-external_conflict {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-item small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-schema-items .button-link {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-signals {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 260px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-url {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-url:hover {
    text-decoration: underline;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-page {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-page strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-anchor strong {
    color: #111827;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-page .aysa-agent8v3-modal-url {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-anchor {
    display: grid;
    gap: 3px;
    max-width: 320px;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-anchor span {
    color: #64748b;
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-keywords {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 300px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-keyword,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-more {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1e40af;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    max-width: 132px;
    overflow: hidden;
    padding: 5px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-more {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-signals {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-signals .aysa-agent8v3-modal-chip strong {
    font-size: 11px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-mini,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-risk {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    max-width: 78px;
    overflow: hidden;
    padding: 4px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-risk {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-a8_automated,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-ready,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-accepted,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-applied {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-partial_automation {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-manual_review,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-manual_needed,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-icon.is-rejected {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-row-action.is-icon-only {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    min-height: 30px;
    padding: 0;
    width: 30px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-entity-links {
    max-width: 520px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-entity-links summary {
    color: #2563eb;
    cursor: pointer;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-entity-group {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-entity-group > strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-empty {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-entity-link {
    align-items: center;
    border-top: 1px solid #eef2f7;
    display: grid;
    gap: 8px;
    grid-template-columns: 40px minmax(360px, 1.8fr) minmax(160px, 1fr) minmax(98px, auto) 28px 30px;
    padding: 8px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-route {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(150px, 1fr) 14px minmax(150px, 1fr);
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-route > div {
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-route > div > span {
    color: #94a3b8;
    display: block;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-route > b {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-il-direction {
    background: #eef2ff;
    border-radius: 999px;
    color: #3730a3;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 6px;
    text-align: center;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    line-height: 1;
    max-width: 100%;
    padding: 5px 8px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip > span {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    height: 16px;
    justify-content: center;
    min-width: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-intent {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-status {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-confidence {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-trust,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-quality-trusted {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-quality-review {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-quality-recommended_reject {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-review-accepted {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-review-rejected {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-automation-a8_automated {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-automation-partial_automation {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-chip.is-automation-manual_review {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table tr.is-automation-row.is-a8_automated td {
    background: #f0fdf4;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table tr.is-automation-row.is-partial_automation td {
    background: #fff7ed;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table tr.is-automation-row.is-manual_review td {
    background: #fff5f5;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-fix-name {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-fix-auto-mark {
    align-items: center;
    background: #dc2626;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
    height: 18px;
    justify-content: center;
    line-height: 1;
    width: 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-reasons {
    color: #64748b;
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-legend {
    align-items: center;
    border-top: 1px solid #eef2f7;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 12px;
    padding: 10px 2px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-legend span {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-review-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-review-status.is-accepted {
    background: #dcfce7;
    color: #166534;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-review-status.is-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #4b5563;
    display: flex;
    min-height: 140px;
    padding: 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-empty.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-footer {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-actions {
    flex: 1 1 auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-actionbar {
    align-items: center;
    display: flex;
    gap: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-with-badges {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge {
    background: #eef2ff;
    border-radius: 999px;
    color: #3730a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
    padding: 4px 7px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-billable-api,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-api-gbp-service,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-costs-credits {
    background: #fef3c7;
    color: #92400e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-f-r-debit-acum,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-no-debit-now,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-preg-te-te-propuneri-nu-aplic-automat,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-prepares-proposals-no-auto-apply {
    background: #ecfdf5;
    color: #047857;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-plugin-wallet,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-adverlink {
    background: #f3e8ff;
    color: #6b21a8;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-requires-approval,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-changes-external-system {
    background: #fee2e2;
    color: #991b1b;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-email-only,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-badge.is-read-only {
    background: #dcfce7;
    color: #166534;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-last-action {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-action-summary {
    align-items: center;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-action-status {
    background: #dcfce7;
    border-radius: 999px;
    color: #166534;
    font-weight: 700;
    padding: 3px 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-action-status.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-action-progress {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-action-progress > span:last-child {
    color: #475569;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-footer span {
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog {
        border-radius: 0;
        bottom: 0;
        left: 0;
        max-height: none;
        min-height: 0;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card {
        grid-template-columns: 1fr;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-content-card-main {
        border-bottom: 1px solid #e2e8f0;
        border-right: 0;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-content-preview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-content-action {
        width: 100%;
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-card {
    max-width: 560px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-title {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-title span {
    color: #477e78;
    font-size: 13px;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-progress {
    background: #eef2f7;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-progress span {
    background: linear-gradient(90deg, #ef4444, #f97316);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 220ms ease;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-progress span.is-completed {
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-progress span.is-completed_with_warnings {
    background: linear-gradient(90deg, #f59e0b, #22c55e);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-progress span.is-failed {
    background: #ef4444;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-meta {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-meta div {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-meta span {
    color: #6b7280;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-worker-meta strong {
    color: #111827;
    font-size: 12px;
    max-width: 360px;
    overflow-wrap: anywhere;
    text-align: right;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-card {
    border-left: 3px solid #3b82f6;
    max-width: 680px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-observability {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    margin: 0 0 14px 48px;
    max-width: 860px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-step {
    background: #f1f5f9;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-step.is-done {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-step.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 8px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-diagnostics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-diagnostics span {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-diagnostics small {
    color: #64748b;
    display: block;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-setup-diagnostics strong {
    color: #111827;
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-card.is-google {
    border-left-color: #22c55e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .button-link {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .aysa-agent8v3-action-with-badges.is-header-cta {
    margin-left: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .is-header-cta .button {
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-message.is-collapsed .aysa-agent8v3-guidance-title {
    margin-bottom: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-message.is-collapsed .aysa-agent8v3-guidance-content {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title strong {
    color: #111827;
    font-size: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title span {
    background: #eff6ff;
    border-radius: 999px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-card p {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-progress {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 0 0 12px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-progress-meta {
    align-items: center;
    color: #6b7280;
    display: flex;
    font-size: 12px;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-progress-meta strong {
    color: #374151;
    font-weight: 700;
    text-align: right;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 0 0 12px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-title {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-checklist span {
    background: #fef2f2;
    border-radius: 999px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-checklist span.is-complete,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-checklist span.is-done,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-checklist span.is-unavailable {
    background: #ecfdf5;
    color: #047857;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-next-question {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
    padding: 9px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-grid {
    display: grid;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-row {
    display: grid;
    gap: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-row span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-note span {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-row strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-note strong {
    color: #111827;
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-note {
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 8px;
    padding: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-note.is-missing {
    background: #fff7ed;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    color: #1f2937;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 10px;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue p {
    margin: 0 0 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue ul {
    margin: 0 0 8px 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue li {
    margin: 0 0 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue-missing {
    background: #fff7ed;
    border-radius: 8px;
    margin: 8px 0;
    padding: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue-missing span {
    color: #9a3412;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue-missing strong {
    color: #111827;
    display: block;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-dialogue-question {
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: 0 !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-review-instruction {
    color: #374151 !important;
    font-size: 12px !important;
    margin: 10px 0 0 !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-options .button {
    border-radius: 8px;
    min-height: 32px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-options .button.is-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-options .button.is-warning {
    background: #fff7ed;
    border-color: #f59e0b;
    color: #92400e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-options .button.is-advanced {
    background: #fff;
    border-color: #f59e0b;
    color: #92400e;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-options .button.is-advanced:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-options .button.is-warning:hover {
    background: #fffbeb;
    border-color: #d97706;
    color: #78350f;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-card {
    max-width: 680px;
    position: relative;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-close {
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 24px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-summary {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-summary div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-summary span {
    color: #6b7280;
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-summary strong {
    color: #111827;
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability div {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability div.is-available {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability div.is-unavailable {
    background: #fff7ed;
    border-color: #fed7aa;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability div.is-not_requested {
    background: #f8fafc;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability em {
    display: block;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability strong {
    color: #111827;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability span {
    color: #374151;
    font-size: 12px;
    margin-top: 3px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-availability em {
    color: #6b7280;
    font-size: 11px;
    font-style: normal;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-items {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-items li {
    border-left: 3px solid #93c5fd;
    padding-left: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-items strong {
    color: #111827;
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-items span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-empty {
    color: #4b5563;
    font-size: 13px;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-citations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-rag-citations span {
    background: #eff6ff;
    border-radius: 999px;
    color: #2563eb;
    font-size: 11px;
    padding: 3px 8px;
}

.wrap.aysa-agent8v3-lab #aysa-agent8v3-send {
    align-self: end;
    border-radius: 999px;
    flex-basis: auto;
    grid-area: send;
    height: 38px;
    justify-self: end;
    min-height: 38px;
    width: 38px;
}

/* Composer visual correction: one rounded prompt surface, matching Codex-style composition. */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-panel {
    background: #ffffff;
    border: 1px solid #d7dce5;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-areas:
        "input input"
        "toolbar send";
    grid-template-columns: minmax(0, 1fr) 42px;
    margin: 10px 14px 14px;
    overflow: hidden;
    padding: 16px 14px 14px;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer {
    align-items: flex-start;
    display: contents;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer textarea {
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 15px;
    grid-area: input;
    height: 46px;
    line-height: 1.45;
    max-height: 110px;
    min-height: 46px;
    outline: 0;
    padding: 0 0 10px;
    pointer-events: auto;
    position: relative;
    text-align: left;
    z-index: 2;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer textarea:focus {
    border: 0;
    box-shadow: none;
    outline: 0;
}

.wrap.aysa-agent8v3-lab #aysa-agent8v3-send {
    align-self: end;
    border-radius: 999px;
    grid-area: send;
    height: 38px;
    justify-self: end;
    min-height: 38px;
    pointer-events: auto;
    position: relative;
    width: 38px;
    z-index: 3;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-composer-toolbar {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-area: toolbar;
    min-height: 34px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-plus {
    background: transparent;
    color: #6b7280;
    font-size: 24px;
    height: 28px;
    width: 28px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill {
    background: transparent;
    color: #f04b23;
    font-size: 13px;
    padding: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill.is-unauthenticated {
    color: #f04b23;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill.is-authenticated {
    color: #2e7d65;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-auth-pill::before {
    content: "◉";
    font-size: 10px;
    margin-right: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions {
    background: transparent;
    border: 0;
    display: block;
    margin: 12px 28px 8px;
    padding: 0;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-actions {
    align-items: stretch;
    background: rgba(15, 23, 42, 0.46);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 0;
    box-sizing: border-box;
    display: flex;
    inset: 53px 0 170px 0;
    margin: 0 !important;
    padding: 18px 20px;
    position: absolute;
    width: auto;
    z-index: 35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions:empty {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .button {
    background: #ffffff;
    border: 1px solid #d7deea;
    border-radius: 999px;
    color: #6b7280;
    min-height: 34px;
    padding: 5px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .button.button-primary,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-action.is-primary {
    background: #315eea;
    border-color: #315eea;
    color: #ffffff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message {
    margin: 0;
    max-width: none;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message .aysa-agent8v3-message-head {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #cbd7ea;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin: 0;
    max-height: 320px;
    max-width: none;
    overflow: auto;
    padding: 14px 18px;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-message,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-card {
    height: 100%;
    min-height: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-card {
    background: #ffffff;
    border-color: #d7e2f0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
    display: grid;
    gap: 14px;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: none;
    overflow: hidden;
    padding: 18px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-terminal .aysa-agent8v3-guidance-card {
    border-color: #d7e2f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-title {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-title {
    background: #ffffff;
    border-bottom: 1px solid #e5edf7;
    margin: -2px 0 0;
    padding: 0 0 14px;
    position: relative;
    z-index: 1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-title .aysa-agent8v3-action-with-badges {
    background: transparent;
    border-radius: 0;
    color: inherit;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: inherit;
    font-weight: inherit;
    gap: 6px;
    max-width: min(360px, 40%);
    padding: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-title .aysa-agent8v3-action-badges {
    background: transparent;
    border-radius: 0;
    color: inherit;
    display: inline-flex;
    flex: 0 1 auto;
    gap: 4px;
    min-width: 0;
    padding: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-title .aysa-agent8v3-action-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 9px;
    line-height: 1.1;
    max-width: 140px;
    overflow: hidden;
    padding: 3px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-title .is-header-cta .button {
    border-radius: 999px;
    min-height: 36px;
    padding: 6px 14px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-terminal .aysa-agent8v3-guidance-title .button.button-primary {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-content {
    align-content: start;
    gap: 14px;
    min-height: 0;
    overflow: auto;
    padding: 2px 2px 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-review {
    margin: 0;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-review {
    background: #f8fafc;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-review-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-review-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-review-row,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-review-note {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    margin: 0;
    padding: 9px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-review-row,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-review-note {
    background: #ffffff;
    border-color: #e1e9f5;
    border-radius: 12px;
    min-height: 78px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-review-note {
    grid-column: 1 / -1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-review-note.is-missing {
    background: #fff7ed;
    border-color: #fed7aa;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-checklist {
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-card p {
    display: -webkit-box;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-card p {
    display: block;
    -webkit-line-clamp: initial;
    overflow: visible;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-terminal .aysa-agent8v3-guidance-progress {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-terminal .aysa-agent8v3-worker-title strong {
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-terminal .aysa-agent8v3-worker-progress {
    height: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7deea;
    border-radius: 999px;
    color: #4b5563;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin-left: auto;
    min-height: 34px;
    padding: 6px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-toggle:before {
    align-items: center;
    background: #111827;
    border-radius: 999px;
    color: #ffffff;
    content: "+";
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    line-height: 1;
    width: 22px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message:not(.is-collapsed) .aysa-agent8v3-guidance-toggle:before {
    content: "-";
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-collapsed .aysa-agent8v3-guidance-card {
    align-items: center;
    grid-template-columns: minmax(220px, 1fr);
    max-height: none;
    min-height: 64px;
    overflow: visible;
    padding: 12px 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-collapsed .aysa-agent8v3-guidance-content {
    display: block;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-terminal.is-collapsed .aysa-agent8v3-guidance-card {
    min-height: 54px;
    padding: 10px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-terminal.is-collapsed .aysa-agent8v3-guidance-content {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-collapsed .aysa-agent8v3-guidance-content > p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-collapsed .aysa-agent8v3-guidance-review,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-message.is-collapsed .aysa-agent8v3-guidance-options {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-next-step-card {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-next-step-card .button.button-primary {
    background: #16a34a;
    border: 1px solid #16a34a;
    border-radius: 10px;
    color: #ffffff;
    min-height: 40px;
    padding: 8px 14px;
}

@media (max-width: 1100px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-actions {
        inset: 52px 0 164px 0;
        padding: 14px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-card {
        border-radius: 16px;
        padding: 16px;
    }
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-actions {
        inset: 50px 0 210px 0;
        padding: 10px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-card {
        border-radius: 14px;
        gap: 10px;
        padding: 12px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-title {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 10px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-toggle {
        margin-left: 0;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel.is-guidance-expanded .aysa-agent8v3-guidance-review-grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-next-step-card .button.button-primary:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-next-step-card .button.button-primary:focus {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-next-step-message {
    margin-top: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-next-step-message .aysa-agent8v3-next-step-card {
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.10);
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    padding: 14px 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-next-step-message .aysa-agent8v3-next-step-card .button.button-primary {
    background: #16a34a;
    border-color: #16a34a;
    border-radius: 10px;
    color: #ffffff;
    min-height: 42px;
    padding: 8px 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-next-step-message .aysa-agent8v3-next-step-card .button.button-primary:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-next-step-message .aysa-agent8v3-next-step-card .button.button-primary:focus {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-mode-pill {
    background: transparent;
    border: 0;
    color: #6b7280;
    margin-left: auto;
    padding: 0;
}
.aysa-agent8v3-image-alt-test-panel {
    border: 1px solid #f3c56b;
    background: #fff8e8;
    border-radius: 8px;
    padding: 14px;
    margin: 0 0 14px;
}

.aysa-agent8v3-image-alt-test-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.aysa-agent8v3-image-alt-test-head strong {
    display: block;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
}

.aysa-agent8v3-image-alt-test-head p {
    margin: 0;
    color: #4b5563;
    font-size: 12px;
}

.aysa-agent8v3-image-alt-test-head span,
.aysa-agent8v3-image-alt-test-facts span {
    border: 1px solid #fde6aa;
    background: #fff;
    border-radius: 999px;
    color: #7c4a03;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    white-space: nowrap;
}

.aysa-agent8v3-image-alt-test-facts,
.aysa-agent8v3-image-alt-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.aysa-agent8v3-image-alt-test-identity {
    background: #ffffff;
    border: 1px solid #d9f99d;
    border-radius: 7px;
    color: #1f2937;
    font-size: 12px;
    margin-top: 10px;
    padding: 10px;
}

.aysa-agent8v3-image-alt-test-identity.is-blocked {
    background: #fff1f2;
    border-color: #fecdd3;
}

.aysa-agent8v3-image-alt-test-identity strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.aysa-agent8v3-image-alt-test-identity p {
    color: #4b5563;
    margin: 0;
}

.aysa-agent8v3-image-alt-test-identity dl {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin: 10px 0;
}

.aysa-agent8v3-image-alt-test-identity dl div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 7px;
}

.aysa-agent8v3-image-alt-test-identity dt {
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.aysa-agent8v3-image-alt-test-identity dd {
    color: #111827;
    font-weight: 800;
    margin: 0;
}

.aysa-agent8v3-image-alt-test-identity-note {
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}

.aysa-agent8v3-image-alt-test-message,
.aysa-agent8v3-image-alt-test-empty {
    color: #374151;
    font-size: 12px;
    margin-top: 10px;
}

.aysa-agent8v3-image-alt-test-topup {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 6px;
    color: #1e3a8a;
    font-size: 12px;
    margin-top: 10px;
    padding: 10px;
}

.aysa-agent8v3-image-alt-test-topup strong {
    font-size: 13px;
}

.aysa-agent8v3-image-alt-test-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.aysa-agent8v3-image-alt-test-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.aysa-agent8v3-image-alt-test-table th,
.aysa-agent8v3-image-alt-test-table td {
    border-bottom: 1px solid #f1e1bd;
    padding: 7px;
    text-align: left;
    vertical-align: top;
}

.aysa-agent8v3-image-alt-test-table img {
    width: 52px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.aysa-agent8v3-image-alt-test-result {
    margin-top: 12px;
    border-top: 1px solid #f1e1bd;
    padding-top: 10px;
}

.aysa-agent8v3-image-alt-test-history {
    border-top: 1px solid #f1e1bd;
    margin-top: 12px;
    padding-top: 10px;
}

.aysa-agent8v3-image-alt-test-subhead {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.aysa-agent8v3-image-alt-test-subhead strong {
    color: #111827;
    font-size: 13px;
}

.aysa-agent8v3-image-alt-test-subhead span,
.aysa-agent8v3-image-alt-test-muted {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}
