.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-active-pill.is-awaiting-activation {
    background: #fff7ed;
    color: #9a3412;
}

.aysa-agent8v3-active-pill.is-awaiting-activation span {
    background: #f59e0b;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-full-reset {
    background: #fff7ed;
    border-color: #fdba74;
    border-radius: 999px;
    color: #9a3412;
    font-weight: 700;
    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: #ffedd5;
    border-color: #fb923c;
    color: #7c2d12;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-factory-reset {
    background: #fef2f2;
    border-color: #fecaca;
    border-radius: 999px;
    color: #b91c1c;
    font-weight: 700;
    min-height: 32px;
    padding: 0 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-factory-reset:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-factory-reset:focus {
    background: #fee2e2;
    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="awaiting_activation"] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card {
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card.is-rejected {
    border-left: 4px solid #b42318;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card header,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card footer {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card header > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card header strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-keyword,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card dd {
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-status {
    background: #eef3ff;
    border-radius: 999px;
    color: #244fc7;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-keyword {
    display: grid;
    gap: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-keyword > span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card dt,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card header small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card dl {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card dt,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card dd {
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card footer {
    border-top: 1px solid #e7ebf1;
    padding-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card footer small {
    color: #667085;
    flex: 1 1 220px;
}

@media (max-width: 1180px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-content-plan-card dl {
        grid-template-columns: 1fr;
    }
}

/* Accessible, responsive confirmation for the allowlisted full test reset. */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-factory-reset-confirmation,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-factory-reset-confirmation .aysa-agent8v3-bubble {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-factory-reset-confirmation .aysa-agent8v3-bubble {
    display: grid;
    gap: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-reset-phrase,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-reset-summary {
    box-sizing: border-box;
    display: block;
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-reset-confirm-label {
    font-weight: 600;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-reset-confirm-input {
    box-sizing: border-box;
    min-height: 42px;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-reset-confirm-error {
    color: #b42318;
    font-weight: 600;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-reset-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-reset-confirm-actions .button {
    height: auto;
    min-height: 40px;
    white-space: normal;
}

/* Keyword Mapping is a human exception review, not a fourteen-column data export. */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-focus {
    align-items: center;
    background: #f4f8ff;
    border: 1px solid #cddcf9;
    border-left: 4px solid #315eea;
    border-radius: 12px;
    display: grid;
    gap: 8px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 16px;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-focus p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-focus small {
    color: #526071;
    margin: 4px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-focus small {
    grid-column: 1 / -1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card {
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card.is-decision,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card.is-human_decision {
    border-left: 4px solid #d97706;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card header,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card footer {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card header > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card header strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-target,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card dd {
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-stage {
    background: #eef3ff;
    border-radius: 999px;
    color: #244fc7;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-target,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-explanation,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-next {
    display: grid;
    gap: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-target > span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-explanation > span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-next > span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card dt,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card header small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-signals,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card details dl {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card dt,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card dd {
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card footer {
    border-top: 1px solid #e7ebf1;
    padding-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card footer > div {
    display: flex;
    flex: 1 1 210px;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1180px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-focus,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-signals,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-card details dl {
        grid-template-columns: 1fr;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-keyword-mapping-focus .button {
        width: 100%;
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-preview {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-left: 3px solid #1fa961;
    border-radius: 8px;
    background: #fbfcfe;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-preview.is-policy_missing,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-preview.is-blocked_scope_changed,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-preview.is-blocked_cost_changed {
    border-left-color: #d97706;
    background: #fffaf1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-preview-head span {
    color: #2f66d0;
    font-size: 12px;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-grid,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-caps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-grid > div,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-caps label {
    min-width: 0;
    padding: 9px;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-grid span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-caps span {
    display: block;
    color: #667085;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-grid strong {
    display: block;
    margin-top: 3px;
    color: #182230;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-caps input {
    width: 100%;
    margin-top: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-note {
    margin: 8px 0;
    color: #526075;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-aggregate {
    color: #1e293b;
    display: grid;
    gap: 14px;
    padding: 6px 0 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-intro,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-adverlink {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-intro {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-intro h2,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section h3 {
    color: #0f172a;
    margin: 3px 0 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-intro p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-adverlink p {
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-badge,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section-head > span {
    background: #eff6ff;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-notice {
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    color: #475569;
    margin: 0;
    padding: 11px 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-summary,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-items {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-summary > div,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-items > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: grid;
    gap: 5px;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-summary span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-items span {
    color: #64748b;
    font-size: 11px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-summary strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-items strong {
    color: #0f172a;
    font-size: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-sections {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section-head h3 {
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section-head p {
    margin-top: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-table-wrap {
    overflow-x: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-table-wrap table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-table-wrap th,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-table-wrap td {
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-table-wrap th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-table-wrap td {
    color: #334155;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-muted {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-intro,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-section-head {
        display: grid;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-summary,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-items,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-report-sections {
        grid-template-columns: 1fr;
    }
}

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: #e9edf3;
    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: #e9edf3;
    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: 28px 38px !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel {
    background: #fbfcfe;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    max-width: 1040px;
    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 18px;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-scroll {
    background: #f3f5f8;
    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: 20px 22px;
}

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

/* Interaction card polish: visual hierarchy only, no behavior changes. */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.assistant,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.qa,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.system {
    max-width: min(760px, 92%);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.user {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.16);
    color: #ffffff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.user .aysa-agent8v3-message-body {
    color: #ffffff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.assistant .aysa-agent8v3-message-card,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.qa .aysa-agent8v3-message-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-color: #d6e2f0;
    border-left: 4px solid #1faa4b;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 16px 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message.qa .aysa-agent8v3-message-card {
    border-left-color: #3b82f6;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message-head {
    align-items: center;
    background: transparent;
    display: flex;
    gap: 8px;
    margin: 0 0 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message-logo {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-message-role {
    color: #1f2937;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-status-badge {
    border: 1px solid #bfdbfe;
    margin-left: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-card,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-next-step-card {
    background: #f8fafc;
    border-color: #d8e2ee;
    border-left: 3px solid #94a3b8;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-next-step-card {
    border-left-color: #1faa4b;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-action-title strong {
    color: #111827;
}

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

.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-step-button {
    color: #111827;
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-step-button:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-step-button:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.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-review-links {
    border-top: 1px solid #e5edf6;
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-review-links small {
    color: #2563eb;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-review-links .button {
    line-height: 1.25;
    min-height: 34px;
    white-space: normal;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer > summary {
    align-items: center;
    color: #111827;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    gap: 8px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer > summary small {
    color: #64748b;
    font-size: 11px;
    font-weight: 400;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer:not([open]) .aysa-agent8v3-module-drawer-list {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer[open] .aysa-agent8v3-module-drawer-list {
    margin-top: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-head {
    display: grid;
    gap: 2px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-head strong {
    color: #111827;
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-head small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-list {
    display: grid;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-item.button {
    align-items: flex-start;
    background: #fff;
    border-color: #dbe7f4;
    border-radius: 8px;
    color: #111827;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    justify-content: stretch;
    line-height: 1.35;
    min-height: 0;
    padding: 9px 10px;
    text-align: left;
    white-space: normal;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-item.button:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-item.button:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
    color: #111827;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-item.is-disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-main,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-main strong {
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-main small,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-meta small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-drawer-meta em {
    color: #2563eb;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.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-auth-pill.is-loading {
    color: #6b7280;
}

.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-module-workspace[hidden] {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-chat-panel[hidden] {
    display: none !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace {
    align-self: stretch;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    height: auto;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog {
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: none;
    flex: 1 1 auto;
    height: auto;
    max-height: 100%;
    min-height: 0;
    position: static;
    transform: none;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace {
    margin-inline: auto;
    max-width: 1480px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace .aysa-agent8v3-modal-header,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace .aysa-agent8v3-modal-tabs {
    background: #fff;
    position: sticky;
    z-index: 6;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace .aysa-agent8v3-modal-header {
    top: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace .aysa-agent8v3-modal-tabs {
    top: 76px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-close {
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    height: auto;
    min-height: 34px;
    padding: 7px 12px;
    width: auto;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-close::before {
    content: '← ';
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-body {
    flex: 1 1 0;
    height: 0;
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-workspace-summary {
    background: #f8fbff;
    border: 1px solid #d7e5f8;
    border-radius: 8px;
    margin: 0 0 16px;
    padding: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-workspace-summary p {
    color: #334155;
    margin: 0 0 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-scope-copy {
    background: #eef7ff;
    border-left: 3px solid #2563eb;
    border-radius: 4px;
    font-size: 13px;
    padding: 9px 11px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-executive {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-executive span {
    color: #2563eb;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-executive p {
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-executive > strong {
    color: #172033;
    font-size: 24px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-history-note {
    color: #64748b !important;
    font-size: 12px;
    margin: 10px 0 0 !important;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-workspace-grid.is-source-status {
    margin-top: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-workspace-grid > div {
    background: #ffffff;
    border: 1px solid #e1e8f2;
    border-radius: 6px;
    min-height: 66px;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-workspace-grid span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-workspace-grid strong {
    color: #172033;
    display: block;
    font-size: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-status {
    background: #f8fbff;
    border: 1px solid #d7e5f8;
    border-left: 3px solid #2f66d0;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-grid article {
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 6px;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-grid article.is-blocked {
    border-color: #f1c27d;
    background: #fffaf1;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-grid article > div {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-grid b {
    color: #2f66d0;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-grid p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-execution-grid small {
    color: #526075;
    display: block;
    margin: 7px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-active-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-active-facts div {
    min-width: 150px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-active-facts span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-policy-details {
    margin-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results {
    border-top: 1px solid #dce5f0;
    margin-top: 18px;
    padding-top: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-source-loading {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #d7e5f8;
    border-radius: 7px;
    display: flex;
    gap: 11px;
    min-height: 58px;
    padding: 11px 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-source-loading > span {
    animation: aysa-agent8v3-spin .8s linear infinite;
    border: 2px solid #c8d7ed;
    border-radius: 50%;
    border-top-color: #2563eb;
    height: 18px;
    width: 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-source-loading strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-source-loading small {
    display: block;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-source-loading small {
    color: #64748b;
    margin-top: 2px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-tab.is-transitioning,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-subtab.is-transitioning {
    cursor: progress;
    pointer-events: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #d7e5f8;
    border-radius: 7px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(140px, 1fr) auto;
    margin-bottom: 12px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage span {
    color: #64748b;
    display: block;
    font-size: 11px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage b {
    color: #172033;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage-track {
    background: #dce6f3;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage-track i {
    background: #1fa961;
    display: block;
    height: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-attention {
    align-items: flex-start;
    background: #fff8eb;
    border: 1px solid #f3d39a;
    border-radius: 7px;
    color: #744b08;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-attention strong {
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-subtab.is-disabled {
    cursor: not-allowed;
    opacity: .52;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-position.is-awaiting {
    background: #fff8eb;
    color: #8a5a08;
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-executive,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-attention {
        align-items: stretch;
        flex-direction: column;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage {
        grid-template-columns: 1fr auto;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-coverage-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results-head h3,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results-head p {
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results-head p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results-head > span {
    color: #526075;
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-count {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-count span {
    color: #526075;
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-count .is-filtered {
    background: #eaf2ff;
    border-radius: 4px;
    color: #2459b8;
    font-weight: 600;
    padding: 4px 7px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-row {
    align-items: center;
    border-top: 1px solid #e5ebf3;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto minmax(140px, .7fr);
    padding: 12px 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-primary {
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-primary strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-primary span {
    display: block;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-primary span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-meta,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-metrics {
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-compact-url {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-empty-state {
    margin: 4px auto;
    max-width: 620px;
    padding: 28px 18px;
    text-align: center;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-empty-state strong {
    color: #172033;
    display: block;
    font-size: 17px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-empty-state p {
    color: #526075;
    margin: 8px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-data-note.is-source-explanation {
    background: #f3f8ff;
    border: 1px solid #d7e5f8;
    border-radius: 6px;
    margin: 0 0 10px;
    padding: 9px 11px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-rank {
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-meta details,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-meta p {
    margin: 4px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-table-wrap {
    border: 1px solid #dfe7f1;
    border-radius: 7px;
    overflow-x: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table {
    border-collapse: collapse;
    min-width: 880px;
    table-layout: fixed;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table td {
    border-bottom: 1px solid #e6edf5;
    padding: 11px 12px;
    text-align: left;
    vertical-align: middle;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th {
    background: #f6f9fd;
    color: #536175;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table tbody tr:hover {
    background: #f9fbfe;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table tbody tr:last-child td {
    border-bottom: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th:nth-child(1) { width: 21%; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th:nth-child(2) { width: 10%; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th:nth-child(3) { width: 10%; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th:nth-child(4) { width: 23%; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th:nth-child(5) { width: 23%; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-table th:nth-child(6) { width: 13%; }

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-keyword-cell strong {
    color: #172033;
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-position {
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
    min-width: 44px;
    padding: 0 8px;
    text-align: center;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-position.is-top3 {
    background: #e9f8ef;
    color: #147d44;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-position.is-top10 {
    background: #eaf1ff;
    color: #215ec4;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-position.is-top20 {
    background: #fff7dc;
    color: #93620c;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-position.is-other {
    background: #eef2f7;
    color: #536175;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-position.is-missing {
    background: #fff0f0;
    color: #b33b3b;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-change {
    font-size: 12px;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-change.is-up { color: #16834c; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-change.is-down { color: #bb3131; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-change.is-neutral { color: #718096; }

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-url-cell {
    color: #526075;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-table-details details,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-table-details p {
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-table-details summary {
    color: #2563eb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-table-details p {
    color: #64748b;
    font-size: 12px;
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-subtab {
    background: #fff;
    border: 1px solid #cbd8ed;
    border-radius: 6px;
    color: #43516a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 32px;
    padding: 0 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-subtab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-dashboard {
    background: #fbfdff;
    border: 1px solid #d9e6f5;
    border-radius: 8px;
    padding: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpis {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpi {
    background: #fff;
    border: 1px solid #e1e8f2;
    border-left: 3px solid #2563eb;
    border-radius: 6px;
    min-height: 72px;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpi.is-green { border-left-color: #1fa961; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpi.is-red { border-left-color: #d14343; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpi.is-teal { border-left-color: #0f9b9a; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpi.is-ai { border-left-color: #7c3aed; }

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpi span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-trend-grid span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpi strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-trend-grid strong {
    color: #172033;
    display: block;
    font-size: 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution {
    margin-top: 16px;
    max-width: 720px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution h4 {
    color: #243044;
    font-size: 14px;
    margin: 0 0 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution-row {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 78px minmax(0, 1fr) 32px;
    margin: 7px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution-row > span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution-row b {
    color: #43516a;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution-row > div {
    background: #e9eff7;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution-row i {
    background: #2563eb;
    display: block;
    height: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution-row.is-top3 i { background: #1fa961; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-distribution-row.is-not-found i { background: #d14343; }

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-comparison,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-data-note {
    color: #526075;
    font-size: 13px;
    margin: 14px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-trend-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-trend-grid > div {
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 6px;
    padding: 9px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-trend-grid .is-up strong { color: #16834c; }
.wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-trend-grid .is-down strong { color: #bb3131; }

@media (max-width: 700px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results-head,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-row {
        display: block;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-results-head > span,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-count,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-rank,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-meta,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-metrics {
        display: block;
        margin-top: 8px;
        text-align: left;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-result-count {
        align-items: flex-start;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-kpis,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-trend-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-monitoring-table-wrap {
        margin-left: -2px;
        margin-right: -2px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace .aysa-agent8v3-modal-header {
        gap: 8px;
        padding: 12px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace .aysa-agent8v3-modal-tabs {
        overflow-x: auto;
        padding: 8px 12px;
        top: 62px;
        white-space: nowrap;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog.is-monitoring-workspace .aysa-agent8v3-modal-close {
        flex: 0 0 auto;
        font-size: 12px;
        padding-inline: 9px;
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-tabs {
    background: #fff;
    gap: 6px;
    padding: 10px 18px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more {
    display: inline-flex;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more:not([open]) > .aysa-agent8v3-modal-tab {
    display: none;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more summary {
    align-items: center;
    background: #fff;
    border: 1px solid #d7deea;
    border-radius: 999px;
    color: #526078;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    padding: 8px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more[open] {
    background: #fff;
    border: 1px solid #d7deea;
    border-radius: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more[open] summary {
    border: 0;
    min-height: 30px;
    padding: 5px 8px;
}

.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-loading-card {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 8px;
    color: #1f2a44;
    line-height: 1.55;
    margin-top: 18px;
    max-width: 720px;
    padding: 18px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-loading-card.is-slow {
    border-color: #fde68a;
    background: #fffbeb;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-loading-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-loading-card p {
    margin: 6px 0 0;
}

.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-offpage_seo.is-tab-link_monitoring {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .aysa-agent8v3-modal-table {
    min-width: 1760px;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-publisher_page,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-target_url {
    min-width: 320px;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-anchor,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-evidence_summary {
    min-width: 220px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-current_status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-check_result,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-anchor_status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-table-wrap.is-modal-offpage_seo.is-tab-link_monitoring .is-col-rel_status {
    min-width: 150px;
}

.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-authority-summary {
    display: grid;
    gap: 14px;
    padding: 16px 0 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-hero {
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid #cfe0f5;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-kicker,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-head span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-facts span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-reason span {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 4px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-hero h3 {
    color: #0f172a;
    font-size: 18px;
    margin: 2px 0 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-hero p {
    color: #475569;
    line-height: 1.5;
    margin: 0;
    max-width: 850px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-safe,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-status,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-group-count {
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-metrics,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-metric,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source > div,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs > div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-width: 0;
    padding: 13px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-metric span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-metric strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs strong {
    color: #0f172a;
    display: block;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs strong {
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source small,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs small,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-metric small {
    color: #64748b;
    display: block;
    line-height: 1.4;
    margin-top: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-steps {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-step {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    display: flex;
    gap: 9px;
    min-width: 0;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-step b {
    align-items: center;
    background: #2563eb;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 12px;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-step span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-groups {
    display: grid;
    gap: 14px;
    padding: 16px 0 24px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-group-head h3 {
    color: #0f172a;
    font-size: 15px;
    margin: 0 0 3px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-group-head span {
    color: #64748b;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-list {
    display: grid;
    gap: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-head strong {
    color: #0f172a;
    display: block;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-facts {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-facts > div {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    min-width: 0;
    padding: 9px 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-facts strong {
    color: #1e293b;
    display: block;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-reason {
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-reason span {
    display: inline;
    margin-right: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-details {
    border-top: 1px solid #eef2f7;
    color: #475569;
    padding-top: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-details summary {
    color: #1d4ed8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-details p {
    line-height: 1.45;
    margin: 8px 0 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-action {
    border-top: 1px solid #eef2f7;
    padding-top: 10px;
}

.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-audit-report,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-dependency {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    margin-top: 12px;
    padding: 14px 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report.is-preflight {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report.is-empty {
    background: #fff7ed;
    border-color: #fed7aa;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report h3,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-dependency strong {
    color: #0f172a;
    font-size: 14px;
    margin: 0 0 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-dependency p {
    color: #475569;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report-meta,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report-meta span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report-metrics span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report-meta strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-backlink-audit-report-metrics strong {
    color: #111827;
    display: block;
    font-size: 13px;
    margin-top: 3px;
    overflow-wrap: anywhere;
    text-transform: none;
}

.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-onpage-history-panel {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    margin: 0 0 14px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-heading {
    align-items: baseline;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-heading span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-copy span {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.4;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-row {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-copy {
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-copy strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.45;
    margin: 8px 0;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-history-empty {
    color: #64748b;
    font-size: 13px;
    padding: 8px 0 2px;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-hydration-failsafe {
    text-align: left;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-hydration-diagnostics {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-hydration-diagnostics > div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    border-bottom: 1px solid #e6e9ef;
    padding-bottom: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-hydration-diagnostics dt {
    color: #667085;
    font-weight: 600;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-hydration-diagnostics dd {
    margin: 0;
    text-align: right;
    color: #1f2937;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-onpage-hydration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-inline-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 12px;
    padding: 10px 12px;
}

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

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review {
    max-width: 1280px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-header,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-footer {
    background: #fff;
    position: relative;
    z-index: 8;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-summary {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table {
    min-width: 760px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 14px 0;
    padding: 0 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details > summary,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details summary {
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details > summary span {
    color: #64748b;
    font-weight: 600;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details dl,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details dl {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0 0 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details dl > div,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details dl > div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-width: 0;
    padding: 10px 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details dt,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details dt {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details dd,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details dd {
    color: #0f172a;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details > td {
    background: #f8fafc !important;
    padding: 0 14px 8px !important;
    position: static !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details details:not([open]) dl {
    display: none;
}

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

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-summary {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-summary > div {
        flex: 0 0 min(74vw, 240px);
        scroll-snap-align: start;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table {
        min-width: 0;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table-wrap {
        overflow-x: hidden;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .aysa-agent8v3-modal-table {
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table thead {
        display: none;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table tbody,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table tr,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table td {
        box-sizing: border-box;
        display: block;
        min-width: 0;
        position: static;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .aysa-agent8v3-modal-table td,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table-wrap.is-modal-technical_internal_linking .aysa-agent8v3-modal-table td:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table tr:not(.aysa-agent8v3-technical-row-details) {
        border: 1px solid #e2e8f0;
        border-radius: 10px 10px 0 0;
        margin-top: 12px;
        overflow: hidden;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-modal-dialog.is-technical-review .aysa-agent8v3-modal-table tr:not(.aysa-agent8v3-technical-row-details) td::before {
        color: #64748b;
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .03em;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-details dl,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-technical-row-details dl {
        grid-template-columns: 1fr;
    }

    .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-title .is-header-cta.is-next-step-cta .button.button-primary,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .is-header-cta .button.button-primary.is-next-step-cta {
    background: #1fa961;
    border-color: #1fa961;
    color: #ffffff;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .is-header-cta.is-next-step-cta .button.button-primary:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .is-header-cta.is-next-step-cta .button.button-primary:focus,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .is-header-cta .button.button-primary.is-next-step-cta:hover,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-title .is-header-cta .button.button-primary.is-next-step-cta:focus {
    background: #188c50;
    border-color: #188c50;
    color: #ffffff;
}

.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-link-exchange-request-row {
    display: grid;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    line-height: 1.45;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-link-exchange-request-row:first-child {
    border-top: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-link-exchange-request-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-link-exchange-request-head span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-link-exchange-request-head em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-link-exchange-readback,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-link-exchange-duplicate {
    color: #475569;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-link-exchange-duplicate {
    color: #9a3412;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-groups {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-group {
    display: grid;
    gap: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-group > strong {
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    gap: 7px;
    max-width: 100%;
    padding: 5px 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-item.is-rejected {
    background: #fff7ed;
    border-color: #fed7aa;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-item > span {
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-item > em {
    color: #6b7280;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-guidance-selection-item .button-link {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 0;
    padding: 0;
}

.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: 12px 18px 18px;
    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: #f6f7f9;
    border: 1px solid #dfe5ee;
    border-left: 3px solid #1faa4b;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin: 0 20px;
    max-height: 280px;
    max-width: calc(100% - 40px);
    overflow: auto;
    padding: 12px 14px;
    width: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-message-card.aysa-agent8v3-guidance-card {
    background: #f6f7f9;
    border-color: #dfe5ee;
    border-left: 3px solid #1faa4b;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-card .aysa-agent8v3-action-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-card .button {
    height: auto;
    line-height: 1.25;
    max-width: 100%;
    min-height: 38px;
    white-space: normal !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-card .aysa-agent8v3-action-title .button {
    flex-basis: 100%;
    text-align: center;
    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: flex-start;
    display: flex;
    flex-wrap: wrap;
    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: 10px;
    min-height: 36px;
    padding: 6px 14px;
    width: 100%;
    white-space: normal !important;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-actions .aysa-agent8v3-guidance-title .aysa-agent8v3-action-with-badges.is-header-cta {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
}

.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: #1fa961;
    border: 1px solid #1fa961;
    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: #188c50;
    border-color: #188c50;
    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: #1fa961;
    border-color: #1fa961;
    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: #188c50;
    border-color: #188c50;
    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;
}

.aysa-agent8v3-safe-bundle-panel {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 14px;
}

.aysa-agent8v3-safe-bundle-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

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

.aysa-agent8v3-safe-bundle-head p,
.aysa-agent8v3-safe-bundle-note {
    color: #4b5563;
    font-size: 12px;
    margin: 0;
}

.aysa-agent8v3-safe-bundle-totals,
.aysa-agent8v3-safe-bundle-sections,
.aysa-agent8v3-safe-bundle-modules {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aysa-agent8v3-safe-bundle-totals span,
.aysa-agent8v3-safe-bundle-section-pill,
.aysa-agent8v3-safe-bundle-module-pill {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #374151;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    padding: 6px 9px;
}

.aysa-agent8v3-safe-bundle-totals b,
.aysa-agent8v3-safe-bundle-section-pill b,
.aysa-agent8v3-safe-bundle-module-pill b {
    color: #1d4ed8;
}

.aysa-agent8v3-safe-bundle-sections,
.aysa-agent8v3-safe-bundle-modules {
    margin-top: 12px;
}

.aysa-agent8v3-safe-bundle-forecast {
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    margin-top: 12px;
    padding: 12px;
}

.aysa-agent8v3-safe-bundle-forecast > p {
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
}

.aysa-agent8v3-safe-bundle-forecast > div {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.aysa-agent8v3-safe-bundle-forecast-group {
    border-left: 3px solid #9ca3af;
    padding-left: 9px;
}

.aysa-agent8v3-safe-bundle-forecast-group.is-will_apply {
    border-color: #1fa961;
}

.aysa-agent8v3-safe-bundle-forecast-group strong,
.aysa-agent8v3-safe-bundle-forecast-group small {
    display: block;
    font-size: 11px;
}

.aysa-agent8v3-safe-bundle-forecast-group ul {
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
}

.aysa-agent8v3-safe-bundle-forecast-group li {
    display: flex;
    font-size: 12px;
    gap: 8px;
    justify-content: space-between;
    margin-top: 3px;
}

.aysa-agent8v3-safe-bundle-subsections {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 12px;
}

.aysa-agent8v3-safe-bundle-subsection {
    appearance: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    display: grid;
    font-family: inherit;
    gap: 3px;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.aysa-agent8v3-safe-bundle-subsection:hover,
.aysa-agent8v3-safe-bundle-subsection:focus-visible {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 0;
}

.aysa-agent8v3-safe-bundle-subsection strong {
    color: #111827;
    font-size: 12px;
}

.aysa-agent8v3-safe-bundle-subsection span,
.aysa-agent8v3-safe-bundle-subsection small,
.aysa-agent8v3-safe-bundle-subsection em {
    color: #4b5563;
    font-size: 11px;
    font-style: normal;
}

.aysa-agent8v3-safe-bundle-module-pill input,
.aysa-agent8v3-safe-bundle-select input {
    margin: 0;
}

.aysa-agent8v3-safe-bundle-select {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 22px;
}

.aysa-agent8v3-safe-bundle-note {
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
    padding-top: 10px;
}

.aysa-agent8v3-safe-bundle-apply-guard {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #7c2d12;
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 12px;
}

.aysa-agent8v3-safe-bundle-apply-guard strong {
    color: #7c2d12;
    font-size: 13px;
}

.aysa-agent8v3-safe-bundle-apply-guard p {
    color: #9a3412;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.aysa-agent8v3-safe-bundle-execution,
.aysa-agent8v3-safe-bundle-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.aysa-agent8v3-safe-bundle-actions.is-apply-zone {
    background: #ffffff;
    border: 1px dashed #fb923c;
    border-radius: 8px;
    padding: 10px;
}

.aysa-agent8v3-safe-bundle-execution span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-size: 12px;
    padding: 6px 8px;
}

.aysa-agent8v3-safe-bundle-message {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

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

.aysa-agent8v3-issue-modal {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100020;
}

.aysa-agent8v3-issue-overlay {
    background: rgba(15, 23, 42, 0.54);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.aysa-agent8v3-issue-dialog {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
    max-height: calc(100vh - 48px);
    max-width: 760px;
    overflow: auto;
    position: relative;
    width: min(760px, 100%);
}

.aysa-agent8v3-issue-header,
.aysa-agent8v3-issue-footer {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px;
}

.aysa-agent8v3-issue-header {
    border-bottom: 1px solid #e5e7eb;
}

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

.aysa-agent8v3-issue-header p,
.aysa-agent8v3-issue-body details,
.aysa-agent8v3-issue-body li {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.aysa-agent8v3-issue-body {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
}

.aysa-agent8v3-issue-body label {
    color: #111827;
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
}

.aysa-agent8v3-issue-body textarea,
.aysa-agent8v3-issue-body input,
.aysa-agent8v3-issue-body select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    max-width: 100%;
    min-height: 42px;
    padding: 10px 12px;
}

.aysa-agent8v3-issue-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aysa-agent8v3-issue-success,
.aysa-agent8v3-issue-error {
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    padding: 12px;
}

.aysa-agent8v3-issue-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #14532d;
}

.aysa-agent8v3-issue-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

.aysa-agent8v3-issue-success textarea,
.aysa-agent8v3-beta-issue-row textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    margin-top: 8px;
    width: 100%;
}

.aysa-agent8v3-issue-footer {
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.aysa-agent8v3-beta-issue-row {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    margin: 14px 0;
    max-width: 1100px;
    padding: 16px;
}

.aysa-agent8v3-beta-issue-row h2 {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    gap: 8px;
    margin: 0 0 10px;
}

.aysa-agent8v3-beta-issue-row h2 span,
.aysa-agent8v3-beta-issue-row h2 em {
    background: #eef2ff;
    border-radius: 999px;
    color: #3730a3;
    font-size: 12px;
    font-style: normal;
    padding: 4px 8px;
}

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

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-hero,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-head {
        display: grid;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-metrics,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-source,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-costs,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-summary-steps,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-authority-opportunity-facts {
        grid-template-columns: 1fr;
    }
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace {
    background: #f8fafc;
    display: grid;
    gap: 14px;
    padding: 16px 20px 24px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-hero {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-hero span:first-child {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-hero h2 {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
    margin: 5px 0 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-hero p,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-card p {
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-readonly,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-status {
    background: #ecfdf5;
    border-radius: 999px;
    color: #047857;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    white-space: nowrap;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-stat,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-card,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-boundary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-stat {
    padding: 13px 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-stat span,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-kv span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-stat strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-kv strong {
    color: #0f172a;
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-card {
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-card-head {
    margin-bottom: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-card-head h3 {
    color: #0f172a;
    font-size: 16px;
    margin: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-kv {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-kv > div {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    min-width: 0;
    padding: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-muted {
    color: #64748b !important;
    font-size: 13px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-plan-count {
    align-items: baseline;
    color: #475569;
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-plan-count strong {
    color: #0f172a;
    font-size: 20px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-plan-count span {
    color: #64748b;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-table-wrap {
    overflow-x: auto;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-table-wrap table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-table-wrap th,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-table-wrap td {
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-table-wrap th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-table-wrap td {
    color: #334155;
    font-size: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-channels {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-channel {
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 12px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-channel > div {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-channel strong {
    color: #0f172a;
    font-size: 14px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-channel p {
    font-size: 13px;
    margin-top: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-channel small {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 8px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-boundary {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-boundary strong {
    color: #0f172a;
    display: block;
    margin-bottom: 7px;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-boundary ul {
    color: #475569;
    line-height: 1.5;
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-stats,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-kv,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-channels,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-boundary {
        grid-template-columns: 1fr;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-offpage-workspace-hero {
        display: grid;
    }
}

/*
 * Responsive launch shell.
 *
 * Some third-party plugins inject their admin notices immediately after the
 * first h1 on the page. Agent8 keeps that h1 inside its compact brand block,
 * so an injected notice must not be allowed to expand the top bar or push the
 * workspace controls outside the viewport.
 */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-brand .notice,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-brand .fs-notice {
    display: none !important;
}

/* Keep intrinsic grid/flex content inside the WordPress admin viewport. */
.wrap.aysa-agent8v3-lab .aysa-agent8v3-diagnostics,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-panel,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-groups,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group-head,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps li {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-group-head strong,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-step-button,
.wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-steps strong {
    overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar {
        align-items: flex-start;
        flex: 0 0 auto !important;
        flex-direction: column;
        gap: 8px;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible;
        padding: 10px 16px !important;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-brand,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar-actions {
        min-width: 0;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 1100px) {
    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,
    .wrap.aysa-agent8v3-lab {
        height: auto !important;
        overflow: visible !important;
    }

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

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

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-main,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-diagnostics,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-header,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-tabs,
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-body {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 782px) {
    .wrap.aysa-agent8v3-lab .aysa-agent8v3-brand {
        flex-wrap: wrap;
        gap: 8px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-active-pill {
        margin-left: auto;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-topbar-actions .button {
        height: auto;
        min-height: 36px;
        white-space: normal;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-progress-step-button {
        align-items: center;
        display: flex;
        min-height: 32px;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-module-workspace .aysa-agent8v3-modal-dialog .aysa-agent8v3-workspace-tabs.aysa-agent8v3-modal-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        white-space: normal;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more[open] {
        flex: 1 0 100%;
        width: 100%;
    }

    .wrap.aysa-agent8v3-lab .aysa-agent8v3-workspace-tabs-more[open] > .aysa-agent8v3-modal-tab {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }
}
