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

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

.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 {
    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 - 96px);
    max-width: 1440px;
    min-height: 420px;
    outline: 0;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1440px, calc(100vw - 48px));
}

.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;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 20px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px 10px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-tab.is-active {
    border-bottom-color: #2563eb;
    color: #1d4ed8;
}

.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-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-links_authority .aysa-agent8v3-modal-table {
    min-width: 1080px;
}

.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-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-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-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-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-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-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-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-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-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;
    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: flex;
    flex: 0 1 auto;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .button {
    background: transparent;
    border: 0;
    color: #6b7280;
    min-height: 0;
    padding: 0 4px;
}

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