.ai-lab-page {
    background: #f8fafc;
}

main.ai-lab-page .ai-lab-heading {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 auto 26px;
    max-width: 820px;
    text-align: center;
}

main.ai-lab-page .ai-lab-kicker {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

main.ai-lab-page .ai-lab-title {
    margin-bottom: 8px !important;
    text-align: center !important;
}

main.ai-lab-page .ai-lab-subtitle {
    color: #475569;
    font-size: 16px;
    margin: 0 auto;
    max-width: 720px;
    text-align: center !important;
}

main.ai-lab-page .ai-lab-status,
.ai-agent-signal {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    padding: 9px 12px;
    white-space: nowrap;
    width: auto;
}

.ai-lab-status-dot {
    background: #22c55e;
    border-radius: 999px;
    display: inline-block;
    height: 9px;
    width: 9px;
}

.ai-search-panel {
    background: transparent;
    border: 0;
    box-shadow: none !important;
    margin: 0 auto 30px;
    max-width: 1040px;
    overflow: visible;
    padding: 0;
}

.ai-conversation-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-agent-header {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003674 100%);
    color: #ffffff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 22px;
}

.ai-agent-identity {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.ai-agent-identity strong {
    color: #ffffff;
    display: block;
    font-size: 17px;
    line-height: 1.3;
}

.ai-agent-identity span {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
}

.ai-agent-signal {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    flex: 0 0 auto;
}

.ai-conversation-avatar,
.ai-message-mark {
    align-items: center;
    background: var(--secondary-color);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 11px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 36px;
}

.ai-message-mark {
    background: var(--primary-color);
    margin-top: 2px;
}

.ai-agent-photo {
    background: transparent;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
    box-sizing: border-box;
    display: block;
    object-fit: cover;
    object-position: center top;
    padding: 0;
}

.ai-conversation-summary {
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 130px;
    padding: 0 22px;
}

.ai-conversation-summary.has-response {
    background: transparent;
}

.ai-conversation-message {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.ai-conversation-message.from-ai {
    align-self: flex-start;
    max-width: 88%;
}

.ai-conversation-message.from-user {
    align-self: flex-end;
    justify-content: flex-end;
    max-width: 72%;
}

.ai-message-bubble {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    min-width: 0;
    padding: 14px 16px;
}

.from-user .ai-message-bubble {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(0, 74, 153, 0.2);
    color: #ffffff;
}

.ai-message-author {
    color: inherit;
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 3px;
    opacity: 0.82;
    text-transform: uppercase;
}

.ai-conversation-summary strong {
    color: #0f172a;
    display: block;
    font-size: 15px;
    line-height: 1.45;
}

.ai-conversation-summary p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.from-user p {
    color: #ffffff;
    margin: 0;
}

.ai-conversation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.ai-conversation-meta span {
    background: #f8faff;
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
}

.ai-conversation-chips,
.ai-filter-chips,
.ai-suggestions,
.ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-conversation-chips {
    margin-top: 10px;
}

.ai-conversation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ai-conversation-action {
    align-items: center;
    background: var(--primary-color);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    min-height: 34px;
    padding: 8px 12px;
    text-decoration: none;
}

.ai-conversation-action:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

.ai-thinking-line {
    align-items: center;
    display: flex;
    gap: 8px;
}

.ai-typing {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.ai-typing i {
    animation: aiTyping 1s infinite ease-in-out;
    background: var(--secondary-color);
    border-radius: 999px;
    display: block;
    height: 6px;
    width: 6px;
}

.ai-typing i:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-typing i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes aiTyping {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.ai-search-form {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ai-chat-composer {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    padding: 14px;
}

.ai-search-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    min-height: 54px;
    padding: 14px 16px;
}

.ai-search-input:focus {
    background: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(238, 131, 20, 0.12);
    outline: none;
}

.ai-search-submit {
    min-height: 54px;
    min-width: 170px;
    padding-left: 26px;
    padding-right: 26px;
}

.ai-search-submit[disabled] {
    cursor: wait;
    opacity: 0.72;
    transform: none !important;
}

.ai-examples {
    align-items: center;
    background: transparent;
    padding: 0 22px 4px;
}

.ai-examples > span,
.ai-suggestions > span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ai-example-button,
.ai-suggestion-button,
.ai-filter-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 10px;
}

.ai-example-button:hover,
.ai-suggestion-button:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.ai-suggestions {
    border-top: 1px solid #f1f5f9;
    margin-top: 12px;
    padding-top: 12px;
}

.ai-suggestion-button {
    background: #f8faff;
    font-size: 12px;
}

.ai-results-layout {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: 300px minmax(0, 1fr);
    margin: 0 auto 70px;
    max-width: 1200px;
}

.ai-results-layout .card-panel {
    margin-bottom: 0;
}

.ai-debug-panel,
.ai-results-panel {
    padding: 24px;
}

.ai-debug-panel {
    position: sticky;
    top: 110px;
}

.ai-insight-block {
    margin-bottom: 22px;
}

.ai-panel-title {
    border-bottom: 2px solid #f1f5f9;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 18px;
    padding-bottom: 14px;
}

.ai-engine-card {
    align-items: center;
    background: #f8faff;
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
}

.ai-engine-card strong {
    color: var(--primary-color);
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.ai-engine-card p {
    color: #64748b;
    font-size: 12px;
    margin: 2px 0 0;
}

.ai-filter-chips {
    margin-bottom: 16px;
}

.ai-filter-chip {
    cursor: default;
}

.ai-manual-filter {
    border-top: 1px solid #eef2f7;
    display: grid;
    gap: 12px;
    padding-top: 20px;
}

.ai-manual-title {
    margin-bottom: 2px;
}

.ai-manual-title strong {
    color: var(--primary-color);
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.ai-manual-title span {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}

.ai-manual-filter label {
    color: #334155;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
}

.ai-manual-filter .form-control {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 13px;
    min-height: 40px;
    padding: 9px 10px;
    width: 100%;
}

.ai-manual-filter .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(238, 131, 20, 0.12);
    outline: none;
}

.ai-manual-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.ai-manual-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 2px;
}

.ai-manual-actions .btn {
    min-height: 42px;
    padding-left: 12px;
    padding-right: 12px;
}

.ai-manual-clear {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    min-height: 42px;
    padding: 9px 11px;
}

.ai-manual-clear:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.ai-result-heading {
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ai-result-heading .ai-panel-title {
    border-bottom: 0;
    margin-bottom: 0;
}

.ai-result-count {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
    padding: 6px 10px;
    white-space: nowrap;
}

.ai-result-summary {
    color: #475569;
    font-size: 14px;
    margin: -6px 0 16px;
}

.ai-loading-pill {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: var(--secondary-color);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
    min-height: 30px;
    padding: 5px 10px;
}

.ai-results-loading {
    align-items: center;
    background: #f8faff;
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 10px;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
}

.ai-results-loading strong {
    color: var(--primary-color);
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.ai-results-loading span {
    color: #64748b;
    display: block;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 3px;
}

.ai-loading-orb {
    animation: aiLoadingSpin 0.9s linear infinite;
    border: 3px solid rgba(0, 74, 153, 0.14);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    flex: 0 0 34px;
    height: 34px;
    width: 34px;
}

.ai-result-grid-loading {
    pointer-events: none;
}

.ai-property-skeleton {
    animation: aiSkeletonPulse 1.2s ease-in-out infinite;
    background:
        linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.62), rgba(255,255,255,0)) 0 0 / 120px 100% no-repeat,
        linear-gradient(#e8eef6, #e8eef6) 0 0 / 100% 150px no-repeat,
        linear-gradient(#edf2f7, #edf2f7) 18px 178px / 54% 18px no-repeat,
        linear-gradient(#f1f5f9, #f1f5f9) 18px 214px / 78% 14px no-repeat,
        linear-gradient(#f1f5f9, #f1f5f9) 18px 252px / 88% 1px no-repeat,
        #ffffff;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    height: 300px;
    overflow: hidden;
}

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

@keyframes aiSkeletonPulse {
    0% {
        background-position: -140px 0, 0 0, 18px 178px, 18px 214px, 18px 252px, 0 0;
    }
    100% {
        background-position: calc(100% + 140px) 0, 0 0, 18px 178px, 18px 214px, 18px 252px, 0 0;
    }
}

.ai-empty-state {
    align-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: 170px;
    padding: 24px;
    text-align: center;
}

.ai-empty-state strong {
    color: var(--primary-color);
    font-size: 15px;
}

.ai-empty-state span {
    color: #64748b;
    font-size: 14px;
}

.ai-diagnostics,
.ai-technical-details {
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
    padding-top: 10px;
}

.ai-diagnostics summary,
.ai-technical-details summary {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.ai-diagnostics ul {
    color: #9a3412;
    font-size: 13px;
    line-height: 1.5;
    list-style: disc;
    margin: 10px 0 0;
    padding-left: 18px;
}

.ai-filter-json {
    background: #0f172a;
    border-radius: 8px;
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
    overflow-x: auto;
    padding: 14px;
    white-space: pre-wrap;
}

.ai-result-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ai-property-card {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
}

.ai-property-card:hover {
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-hover);
    color: inherit;
    transform: translateY(-8px);
}

.ai-property-image-wrap {
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.ai-property-image {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    width: 100%;
}

.ai-property-card:hover .ai-property-image {
    transform: scale(1.06);
}

.ai-property-badge {
    background: var(--secondary-color);
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    left: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 4px 8px;
    position: absolute;
    text-overflow: ellipsis;
    text-transform: uppercase;
    top: 10px;
    white-space: nowrap;
}

.ai-top-pick {
    background: var(--primary-color);
    border-radius: 5px;
    bottom: 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    left: 10px;
    padding: 5px 8px;
    position: absolute;
    text-transform: uppercase;
}

.ai-property-body {
    background: #ffffff;
    padding: 18px;
}

.ai-property-price {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ai-property-title {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-property-location {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 14px;
}

.ai-property-meta {
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 12px;
    padding-top: 14px;
}

.ai-property-recommendation {
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
    margin: 10px 0 0;
}

.ai-property-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.ai-property-reasons .ai-reason-chip {
    align-items: center;
    background: #f8faff;
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 999px;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 5px;
    line-height: 1;
    min-height: 26px;
    padding: 4px 8px;
}

.ai-property-reasons .ai-reason-chip i {
    align-items: center;
    background: rgba(238, 131, 20, 0.12);
    border-radius: 999px;
    color: var(--secondary-color);
    display: inline-flex;
    font-size: 10px;
    font-style: normal;
    height: 16px;
    justify-content: center;
    line-height: 1;
    min-width: 16px;
}

.ai-property-reasons .ai-reason-chip.is-price-below {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.24);
    color: #047857;
}

.ai-property-reasons .ai-reason-chip.is-price-below i {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.ai-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
    margin: 0 22px 22px;
    padding: 12px 14px;
}

.ai-floating-widget {
    bottom: 22px;
    position: fixed;
    right: 22px;
    width: min(430px, calc(100vw - 32px));
    z-index: 2147483000;
}

.ai-floating-widget-primary {
    z-index: 2147483000;
}

.ai-floating-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 74, 153, 0.12);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0, 42, 91, 0.24);
    color: var(--primary-color);
    display: flex;
    gap: 12px;
    margin-left: auto;
    padding: 12px 14px;
    text-align: left;
}

.ai-floating-toggle .ai-message-mark {
    flex-basis: 46px;
    font-size: 12px;
    height: 46px;
    width: 46px;
}

.ai-floating-toggle .ai-agent-photo {
    border-radius: 12px;
    object-position: center top;
}

.ai-floating-toggle:hover {
    border-color: rgba(238, 131, 20, 0.5);
    transform: translateY(-2px);
}

.ai-floating-toggle strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.ai-floating-toggle small {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}

.ai-floating-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 74, 153, 0.12);
    border-radius: 12px;
    bottom: 92px;
    box-shadow: 0 18px 44px rgba(0, 42, 91, 0.22);
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(12px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease;
    width: 100%;
}

.ai-floating-widget.is-open .ai-floating-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-floating-header {
    align-items: flex-start;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003674 100%);
    border-radius: 12px 12px 0 0;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.ai-floating-header strong {
    color: #ffffff;
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.ai-floating-header span {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}

.ai-floating-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 22px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    width: 32px;
}

.ai-floating-thread {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
}

.ai-floating-thread .ai-message-mark {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
}

.ai-floating-thread .ai-agent-photo {
    border-radius: 12px;
    object-position: center top;
}

.ai-floating-thread .ai-conversation-message.from-ai,
.ai-floating-thread .ai-conversation-message.from-user {
    max-width: 100%;
}

.ai-floating-thread .ai-message-bubble {
    box-shadow: none;
}

.ai-floating-form {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.ai-floating-input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 46px;
    padding: 11px 13px;
}

.ai-floating-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(238, 131, 20, 0.12);
    outline: none;
}

.ai-floating-submit {
    min-height: 46px;
    padding-left: 20px;
    padding-right: 20px;
}

.ai-floating-examples {
    padding: 0 14px 14px;
}

.ai-floating-examples .ai-example-button {
    font-size: 12px;
    padding: 6px 8px;
}

@media (max-width: 980px) {
    .ai-search-form,
    .ai-results-layout {
        grid-template-columns: 1fr;
    }

    .ai-debug-panel {
        position: static;
    }

    .ai-search-submit {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ai-manual-filter {
        display: none;
    }
}

@media (max-width: 620px) {
    .ai-agent-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-conversation-summary,
    .ai-chat-composer,
    .ai-examples {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ai-conversation-message.from-ai,
    .ai-conversation-message.from-user {
        max-width: 100%;
    }

    .ai-result-grid {
        grid-template-columns: 1fr;
    }

    .ai-result-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .ai-floating-widget {
        bottom: 82px;
        right: 12px;
        width: calc(100% - 24px);
    }

    .ai-floating-toggle {
        min-height: 62px;
        padding-left: 12px;
        position: relative;
    }

    .ai-floating-toggle .ai-message-mark {
        display: flex !important;
    }

    .ai-floating-toggle .ai-agent-photo {
        display: block !important;
    }

    .ai-floating-form {
        grid-template-columns: 1fr;
    }

    .ai-floating-thread {
        max-height: 260px;
    }

    .ai-manual-filter {
        display: none;
    }

    .ai-engine-card-loading {
        margin-bottom: 0;
    }

    .ai-debug-panel {
        padding-bottom: 18px;
    }
}
