﻿html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 3000;
    padding: .8rem 3rem .8rem 1rem;
    color: #9f1239;
    border: 1px solid rgba(190, 18, 60, .3);
    border-radius: .75rem;
    background: #fff1f2;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}

#blazor-error-ui .reload {
    margin-left: .5rem;
    color: #9f1239;
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: .55rem;
    right: .8rem;
    color: #9f1239;
    cursor: pointer;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) transparent;
}

    *::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,0.35);
        border-radius: 8px;
    }

        *::-webkit-scrollbar-thumb:hover {
            background-color: rgba(255,255,255,0.55);
        }

/* ANA SAYFA */
.botanik-gbt-page {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    overflow: hidden;
    background: #0f172a;
}

/* SOL PANEL */
.botanik-gbt-sidebar {
    width: clamp(300px, 22vw, 380px);
    flex: 0 0 clamp(300px, 22vw, 380px);
    min-width: 0;
    background: #111827;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.12);
    box-shadow: 2px 0 10px rgba(0,0,0,0.18);
}

.botanik-gbt-mobile-list-heading,
.botanik-gbt-mobile-chat-nav {
    display: none;
}

.botanik-gbt-sidebar-header {
    height: 60px;
    flex: 0 0 60px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}



.botanik-gbt-title {
    color: white;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.botanik-gbt-question-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
}

.botanik-gbt-empty-sidebar {
    color: rgba(255,255,255,.55);
    font-size: 13px;
    padding: 12px 4px;
}

/* SOLDAKİ SORULAR */
.botanik-gbt-question-item {
    width: 100%;
    min-height: 68px;
    padding: 10px 12px;
    margin-bottom: 7px;
    border-radius: 11px;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.075);
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    overflow: hidden;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

    .botanik-gbt-question-item:hover {
        background: rgba(255,255,255,0.11);
        border-color: rgba(16,185,129,0.32);
        transform: translateY(-1px);
    }

    .botanik-gbt-question-item.active {
        border-color: rgba(52,211,153,.44);
        background: rgba(6,95,70,.28);
        box-shadow: inset 3px 0 0 #34d399;
    }

    .botanik-gbt-question-item:disabled {
        opacity: .58;
        cursor: wait;
        transform: none;
    }

.botanik-gbt-question-title {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255,255,255,.9);
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.botanik-gbt-question-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.botanik-gbt-question-date {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 7px;
    border: 1px solid rgba(96,165,250,.24);
    border-radius: 999px;
    background: rgba(30,64,175,.2);
    color: #bfdbfe;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* CHAT ALANI */
.botanik-gbt-chat {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0f172a;
}

.botanik-gbt-conversation-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 78px;
    padding: 13px clamp(18px, 3vw, 44px);
    border-bottom: 1px solid rgba(148,163,184,.12);
    background: rgba(17,24,39,.78);
    box-shadow: 0 8px 24px rgba(2,6,23,.12);
}

.botanik-gbt-conversation-heading {
    min-width: 0;
}

    .botanik-gbt-conversation-heading > span {
        display: block;
        margin-bottom: 3px;
        color: #34d399;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .botanik-gbt-conversation-heading h1 {
        margin: 0;
        overflow: hidden;
        color: #f8fafc;
        font-size: clamp(14px, 1.15vw, 17px);
        font-weight: 700;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.botanik-gbt-conversation-metadata {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.botanik-gbt-conversation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 5px 10px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 999px;
    background: rgba(30,41,59,.72);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .botanik-gbt-conversation-badge svg {
        width: 15px;
        height: 15px;
    }

    .botanik-gbt-conversation-badge.user {
        border-color: rgba(52,211,153,.24);
        color: #a7f3d0;
    }

    .botanik-gbt-conversation-badge.date {
        border-color: rgba(96,165,250,.24);
        color: #bfdbfe;
    }

.botanik-gbt-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(32px, 5vh, 64px) clamp(18px, 3vw, 44px) 32px;
}

/* WELCOME */
.botanik-gbt-welcome {
    min-height: 100%;
    display: grid;
    place-items: center;
}

.botanik-gbt-welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.botanik-gbt-welcome-logo img {
    width: clamp(54px, 5vw, 76px);
    height: clamp(54px, 5vw, 76px);
    opacity: .7;
}

/* MESAJ LİSTESİ */
.botanik-gbt-message-list {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.botanik-gbt-message-row {
    display: flex;
    width: 100%;
}

    .botanik-gbt-message-row.user {
        justify-content: flex-end;
    }

    .botanik-gbt-message-row.ai {
        justify-content: flex-start;
    }

.botanik-gbt-message {
    position: relative;
    min-width: 0;
    max-width: min(760px, 78%);
    padding: 12px 16px;
    border-radius: 17px;
    font-size: clamp(13px, 0.9vw, 14px);
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.botanik-gbt-user-message {
    background: #059669;
    color: white;
    border-bottom-right-radius: 6px;
}

.botanik-gbt-ai-message {
    min-height: 46px;
    padding-right: 16px;
    background: #1f2937;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.08);
    border-bottom-left-radius: 6px;
}

.botanik-gbt-ai-message.has-actions {
    padding-right: 84px;
}

.botanik-gbt-message-content {
    min-width: 0;
    white-space: pre-wrap;
}

.botanik-gbt-message-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.1);
}

    .botanik-gbt-message-meta.user {
        justify-content: flex-end;
        border-top-color: rgba(255,255,255,.16);
    }

.botanik-gbt-message-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 999px;
    background: rgba(15,23,42,.3);
    color: rgba(226,232,240,.78);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .botanik-gbt-message-badge svg {
        width: 13px;
        height: 13px;
        flex: 0 0 13px;
    }

    .botanik-gbt-message-badge.author.ai {
        border-color: rgba(52,211,153,.22);
        background: rgba(6,95,70,.18);
        color: #a7f3d0;
    }

    .botanik-gbt-message-badge.author.user {
        border-color: rgba(255,255,255,.2);
        background: rgba(4,120,87,.48);
        color: #ecfdf5;
    }

    .botanik-gbt-message-badge.date {
        border-color: rgba(96,165,250,.2);
        background: rgba(30,64,175,.16);
        color: #bfdbfe;
}

.botanik-gbt-message-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.botanik-gbt-message-action {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 9px;
    background: rgba(15,23,42,.48);
    color: #94a3b8;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}

    .botanik-gbt-message-action svg {
        width: 16px;
        height: 16px;
    }

    .botanik-gbt-message-settings:hover {
        transform: rotate(12deg);
        border-color: rgba(52,211,153,.38);
        background: rgba(6,95,70,.28);
        color: #6ee7b7;
    }

    .botanik-gbt-message-trace:hover {
        transform: translateY(-1px);
        border-color: rgba(96,165,250,.44);
        background: rgba(30,64,175,.28);
        color: #93c5fd;
    }

    .botanik-gbt-message-action:focus-visible {
        outline: 2px solid #34d399;
        outline-offset: 2px;
    }

/* THINKING */
.botanik-thinking-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(31,41,55,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.botanik-thinking-logo {
    width: 24px;
    height: 24px;
    opacity: .8;
}

.botanik-thinking-text {
    color: rgba(255,255,255,.65);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.typing-dots {
    display: flex;
    gap: 5px;
}

    .typing-dots span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #10b981;
        animation: typingBounce 1.2s infinite ease-in-out;
    }

        .typing-dots span:nth-child(2) {
            animation-delay: .15s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: .3s;
        }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(.65);
        opacity: .4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* INPUT ALANI */
.botanik-gbt-input-area {
    flex: 0 0 auto;
    width: 100%;
    padding: clamp(14px, 2vh, 24px) clamp(16px, 3vw, 36px);
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.055);
}

.botanik-gbt-input-box {
    width: 100%;
    min-height: 64px;
    max-height: 112px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.14);
    padding: 10px 12px 10px 16px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

    .botanik-gbt-input-box:focus-within {
        border-color: rgba(16,185,129,0.48);
        box-shadow: 0 0 0 2px rgba(16,185,129,0.13);
    }

.botanik-gbt-textarea {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    max-height: 78px;
    resize: none;
    overflow-y: auto;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    line-height: 22px;
}

    .botanik-gbt-textarea::placeholder {
        color: rgba(255,255,255,0.36);
    }

/* GÖNDER BUTONU */
.botanik-gbt-send-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 4px 14px rgba(16,185,129,0.24);
}

    .botanik-gbt-send-button:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(16,185,129,0.34);
    }

    .botanik-gbt-send-button:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.botanik-gbt-qdrant-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid rgba(248,113,113,.48);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127,29,29,.22);
    color: #fca5a5;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

    .botanik-gbt-qdrant-button:hover {
        transform: translateY(-1px);
        border-color: rgba(248,113,113,.78);
        background: rgba(153,27,27,.38);
    }

    .botanik-gbt-qdrant-button:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
    }

.qdrant-icon {
    width: 21px;
    height: 21px;
}

.botanik-gbt-qdrant-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.28);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: qdrant-spin .75s linear infinite;
}

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

.qdrant-test-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1650;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2,6,23,.72);
    backdrop-filter: blur(7px);
}

.qdrant-test-modal {
    width: min(1180px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 20px;
    background: #111827;
    color: #e5e7eb;
    box-shadow: 0 24px 80px rgba(0,0,0,.48);
}

.qdrant-test-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(148,163,184,.16);
}

.qdrant-test-heading-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qdrant-test-heading-row h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
}

.qdrant-test-header p {
    margin: 5px 0 0 20px;
    color: #94a3b8;
    font-size: 13px;
}

.qdrant-test-indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245,158,11,.14);
}

    .qdrant-test-indicator.success {
        background: #34d399;
        box-shadow: 0 0 0 4px rgba(52,211,153,.14);
    }

    .qdrant-test-indicator.error {
        background: #f87171;
        box-shadow: 0 0 0 4px rgba(248,113,113,.14);
    }

.qdrant-test-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 10px;
    background: rgba(30,41,59,.72);
    color: #cbd5e1;
    font-size: 22px;
    line-height: 1;
}

.qdrant-test-body {
    max-height: calc(88vh - 86px);
    overflow: auto;
    padding: 22px;
}

.qdrant-test-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #cbd5e1;
}

.qdrant-test-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.qdrant-test-summary > div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 12px;
    background: rgba(30,41,59,.6);
}

.qdrant-test-summary span,
.qdrant-test-detail > span {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.qdrant-test-summary strong {
    display: block;
    overflow: hidden;
    color: #f8fafc;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qdrant-test-message {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 13px;
}

    .qdrant-test-message.success {
        border: 1px solid rgba(52,211,153,.25);
        background: rgba(6,78,59,.3);
        color: #a7f3d0;
    }

    .qdrant-test-message.error {
        border: 1px solid rgba(248,113,113,.25);
        background: rgba(127,29,29,.25);
        color: #fecaca;
    }

.qdrant-test-detail {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 12px;
    background: rgba(15,23,42,.7);
    color: #dbeafe;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.qdrant-test-detail code {
    color: #93c5fd;
}

.qdrant-test-response-title {
    margin: 18px 0 8px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.qdrant-test-response {
    min-height: 140px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 12px;
    background: #020617;
    color: #bbf7d0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.qdrant-explorer {
    margin-top: 18px;
}

.qdrant-explorer-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(96,165,250,.2);
    border-radius: 14px;
    background: rgba(15,23,42,.82);
}

.qdrant-filter {
    min-width: 0;
}

    .qdrant-filter-wide {
        grid-column: span 2;
    }

    .qdrant-filter > span {
        display: block;
        margin-bottom: 6px;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .qdrant-filter input,
    .qdrant-filter select {
        width: 100%;
        height: 40px;
        padding: 0 11px;
        border: 1px solid rgba(148,163,184,.22);
        border-radius: 9px;
        outline: none;
        background: #111827;
        color: #e2e8f0;
        font-size: 13px;
    }

        .qdrant-filter input:focus,
        .qdrant-filter select:focus {
            border-color: rgba(96,165,250,.76);
            box-shadow: 0 0 0 3px rgba(59,130,246,.13);
        }

        .qdrant-filter input:disabled,
        .qdrant-filter select:disabled {
            opacity: .46;
            cursor: not-allowed;
        }

.qdrant-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 17px 2px 10px;
    color: #94a3b8;
    font-size: 13px;
}

    .qdrant-results-heading strong {
        color: #f8fafc;
        font-size: 16px;
    }

    .qdrant-results-heading button {
        padding: 7px 10px;
        border: 1px solid rgba(148,163,184,.2);
        border-radius: 8px;
        background: rgba(30,41,59,.66);
        color: #cbd5e1;
        font-size: 12px;
        cursor: pointer;
    }

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

.qdrant-result-card {
    min-width: 0;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(30,41,59,.78), rgba(15,23,42,.86));
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

    .qdrant-result-card:hover {
        transform: translateY(-2px);
        border-color: rgba(96,165,250,.52);
        box-shadow: 0 10px 28px rgba(2,6,23,.32);
    }

.qdrant-result-card-topline,
.qdrant-result-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qdrant-result-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    height: 25px;
    padding: 0 7px;
    border-radius: 7px;
    background: rgba(59,130,246,.16);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
}

.qdrant-result-score {
    color: #86efac;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}

.qdrant-result-title {
    min-height: 38px;
    margin: 11px 0 10px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.qdrant-result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qdrant-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 23px;
    padding: 3px 8px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 999px;
    background: rgba(51,65,85,.52);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .qdrant-badge.facet {
        border-color: rgba(192,132,252,.3);
        background: rgba(107,33,168,.2);
        color: #e9d5ff;
    }

    .qdrant-badge.type,
    .qdrant-badge.source {
        border-color: rgba(251,191,36,.28);
        background: rgba(146,64,14,.2);
        color: #fde68a;
    }

    .qdrant-badge.project {
        border-color: rgba(52,211,153,.28);
        background: rgba(6,95,70,.23);
        color: #a7f3d0;
    }

    .qdrant-badge.screen {
        border-color: rgba(96,165,250,.3);
        background: rgba(30,64,175,.2);
        color: #bfdbfe;
    }

.qdrant-searchable-box {
    min-height: 98px;
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(148,163,184,.13);
    border-radius: 10px;
    background: rgba(2,6,23,.46);
}

    .qdrant-searchable-box > span {
        color: #64748b;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 10px;
        font-weight: 700;
    }

    .qdrant-searchable-box p {
        display: -webkit-box;
        margin: 6px 0 0;
        overflow: hidden;
        color: #cbd5e1;
        font-size: 12px;
        line-height: 1.48;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

.qdrant-result-card-footer {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 11px;
}

    .qdrant-result-card-footer code {
        min-width: 0;
        overflow: hidden;
        color: #64748b;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .qdrant-result-card-footer > span {
        flex: 0 0 auto;
        color: #93c5fd;
        font-weight: 700;
    }

.qdrant-empty-results {
    padding: 34px 18px;
    border: 1px dashed rgba(148,163,184,.24);
    border-radius: 13px;
    color: #94a3b8;
    text-align: center;
}

.qdrant-raw-details {
    margin-top: 18px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 12px;
    background: rgba(15,23,42,.64);
}

    .qdrant-raw-details summary {
        padding: 12px 14px;
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    .qdrant-raw-details .qdrant-test-response {
        margin: 0 12px 12px;
    }

.qdrant-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2,6,23,.82);
    backdrop-filter: blur(9px);
}

.qdrant-detail-modal {
    width: min(900px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    border: 1px solid rgba(96,165,250,.28);
    border-radius: 18px;
    background: #111827;
    color: #e5e7eb;
    box-shadow: 0 28px 90px rgba(0,0,0,.58);
}

.qdrant-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 14px;
}

    .qdrant-detail-header span {
        color: #60a5fa;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .qdrant-detail-header h3 {
        margin: 4px 0 0;
        color: #f8fafc;
        font-size: 17px;
        line-height: 1.35;
    }

.qdrant-detail-badges {
    padding: 0 20px 14px;
}

.qdrant-detail-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(148,163,184,.16);
}

    .qdrant-detail-tabs button {
        padding: 10px 15px;
        border: none;
        border-bottom: 2px solid transparent;
        background: transparent;
        color: #94a3b8;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

        .qdrant-detail-tabs button.active {
            border-bottom-color: #60a5fa;
            color: #bfdbfe;
        }

.qdrant-detail-content {
    max-height: calc(88vh - 176px);
    overflow: auto;
    padding: 20px;
}

.qdrant-answer-label {
    margin-bottom: 8px;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
}

.qdrant-answer-text {
    padding: 18px;
    border: 1px solid rgba(52,211,153,.2);
    border-radius: 13px;
    background: rgba(6,78,59,.18);
    color: #d1fae5;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.qdrant-detail-json {
    min-height: 300px;
    margin: 0;
}

.botanik-trace-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 6, 23, .84);
    backdrop-filter: blur(9px);
}

.botanik-trace-modal {
    width: min(1280px, 97vw);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, .28);
    border-radius: 20px;
    background: #0b1220;
    color: #e5e7eb;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .64);
}

.botanik-trace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    background: linear-gradient(135deg, rgba(30, 64, 175, .16), rgba(15, 23, 42, .42));
}

.botanik-trace-heading {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.botanik-trace-heading-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 165, 250, .3);
    border-radius: 12px;
    background: rgba(30, 64, 175, .22);
    color: #93c5fd;
}

    .botanik-trace-heading-icon svg {
        width: 21px;
        height: 21px;
    }

.botanik-trace-eyebrow {
    color: #60a5fa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.botanik-trace-heading h2 {
    margin: 2px 0 0;
    color: #f8fafc;
    font-size: 20px;
    line-height: 1.25;
}

.botanik-trace-heading p {
    max-width: 880px;
    margin: 5px 0 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.botanik-trace-tabs {
    overflow-x: auto;
    padding-top: 2px;
    background: rgba(15, 23, 42, .54);
}

.botanik-trace-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(96, 165, 250, .14);
    font-size: 10px;
}

.botanik-trace-body {
    max-height: calc(92vh - 134px);
    overflow: auto;
    padding: 20px 22px 24px;
}

.botanik-trace-panel {
    min-width: 0;
}

.botanik-trace-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

    .botanik-trace-summary > div {
        min-width: 0;
        padding: 13px 14px;
        border: 1px solid rgba(148, 163, 184, .15);
        border-radius: 13px;
        background: linear-gradient(145deg, rgba(30, 41, 59, .72), rgba(15, 23, 42, .78));
    }

    .botanik-trace-summary span,
    .botanik-trace-selected-heading > div:first-child > span,
    .botanik-trace-endpoint > span,
    .botanik-trace-json-card header span,
    .botanik-trace-raw-heading > div > span {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .botanik-trace-summary strong {
        display: block;
        margin-top: 3px;
        overflow: hidden;
        color: #f8fafc;
        font-size: 18px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .botanik-trace-summary small {
        display: block;
        margin-top: 4px;
        overflow: hidden;
        color: #94a3b8;
        font-size: 10px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.botanik-trace-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

    .botanik-trace-alert strong {
        flex: 0 0 auto;
    }

    .botanik-trace-alert.max-token {
        border: 1px solid rgba(248, 113, 113, .34);
        background: rgba(127, 29, 29, .28);
        color: #fecaca;
    }

    .botanik-trace-alert.error {
        border: 1px solid rgba(251, 146, 60, .3);
        background: rgba(124, 45, 18, .24);
        color: #fed7aa;
    }

.botanik-trace-budget-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

    .botanik-trace-budget-strip > span {
        padding: 5px 8px;
        border: 1px solid rgba(148, 163, 184, .14);
        border-radius: 999px;
        background: rgba(30, 41, 59, .5);
        color: #94a3b8;
        font-size: 10px;
    }

    .botanik-trace-budget-strip strong {
        color: #cbd5e1;
    }

.botanik-trace-section-heading,
.botanik-trace-selected-heading,
.botanik-trace-raw-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.botanik-trace-section-heading {
    margin: 22px 0 11px;
}

    .botanik-trace-section-heading > div > span {
        display: block;
        color: #60a5fa;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .botanik-trace-section-heading > div > strong {
        display: block;
        margin-top: 2px;
        color: #e2e8f0;
        font-size: 13px;
    }

.botanik-trace-timeline {
    position: relative;
    display: grid;
    gap: 9px;
}

    .botanik-trace-timeline::before {
        position: absolute;
        top: 18px;
        bottom: 18px;
        left: 17px;
        width: 1px;
        background: rgba(96, 165, 250, .2);
        content: "";
    }

.botanik-trace-step {
    position: relative;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 12px 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 13px;
    background: rgba(15, 23, 42, .72);
    color: #cbd5e1;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

    .botanik-trace-step:hover {
        transform: translateY(-1px);
        border-color: rgba(96, 165, 250, .42);
        background: rgba(30, 41, 59, .78);
    }

    .botanik-trace-step.max-token {
        border-color: rgba(248, 113, 113, .46);
        background: linear-gradient(90deg, rgba(127, 29, 29, .26), rgba(15, 23, 42, .78));
    }

    .botanik-trace-step.error:not(.max-token) {
        border-color: rgba(251, 146, 60, .3);
    }

.botanik-trace-step-marker {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    justify-self: center;
    border: 2px solid #0f172a;
    border-radius: 999px;
    background: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .2);
}

    .botanik-trace-step.success .botanik-trace-step-marker {
        background: #34d399;
        box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
    }

    .botanik-trace-step.error .botanik-trace-step-marker {
        background: #fb923c;
        box-shadow: 0 0 0 3px rgba(251, 146, 60, .16);
    }

    .botanik-trace-step.max-token .botanik-trace-step-marker {
        background: #f87171;
        box-shadow: 0 0 0 4px rgba(248, 113, 113, .18);
    }

.botanik-trace-step-main {
    min-width: 0;
}

.botanik-trace-step-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .botanik-trace-step-topline > strong {
        overflow: hidden;
        color: #f1f5f9;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.botanik-trace-status {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .botanik-trace-status.success {
        border-color: rgba(52, 211, 153, .26);
        background: rgba(6, 78, 59, .26);
        color: #a7f3d0;
    }

    .botanik-trace-status.error {
        border-color: rgba(251, 146, 60, .26);
        background: rgba(124, 45, 18, .24);
        color: #fed7aa;
    }

    .botanik-trace-status.max-token {
        border-color: rgba(248, 113, 113, .36);
        background: rgba(127, 29, 29, .36);
        color: #fecaca;
    }

.botanik-trace-step-description,
.botanik-trace-step-metrics,
.botanik-trace-step-message {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.4;
}

.botanik-trace-step-metrics > span {
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(30, 41, 59, .82);
    color: #cbd5e1;
}

.botanik-trace-step-message {
    color: #fca5a5;
}

.botanik-trace-step-open {
    color: #60a5fa;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.botanik-trace-step-picker {
    display: flex;
    gap: 7px;
    padding-bottom: 12px;
    overflow-x: auto;
}

    .botanik-trace-step-picker button {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 9px;
        background: rgba(30, 41, 59, .6);
        color: #94a3b8;
        font-size: 11px;
        cursor: pointer;
    }

        .botanik-trace-step-picker button > span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            border-radius: 6px;
            background: rgba(15, 23, 42, .78);
            font-weight: 800;
        }

        .botanik-trace-step-picker button.active {
            border-color: rgba(96, 165, 250, .56);
            background: rgba(30, 64, 175, .26);
            color: #bfdbfe;
        }

        .botanik-trace-step-picker button.max-token {
            border-color: rgba(248, 113, 113, .42);
            color: #fecaca;
        }

.botanik-trace-selected-heading {
    margin: 5px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 12px;
    background: rgba(15, 23, 42, .62);
}

    .botanik-trace-selected-heading strong,
    .botanik-trace-raw-heading strong {
        display: block;
        margin-top: 2px;
        color: #f1f5f9;
        font-size: 13px;
    }

.botanik-trace-selected-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

    .botanik-trace-selected-badges > span:not(.botanik-trace-status) {
        padding: 3px 7px;
        border: 1px solid rgba(148, 163, 184, .15);
        border-radius: 999px;
        color: #94a3b8;
        font-size: 9px;
        font-weight: 700;
    }

.botanik-trace-endpoint {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 10px;
    background: rgba(2, 6, 23, .42);
}

    .botanik-trace-endpoint code {
        display: block;
        margin-top: 4px;
        color: #93c5fd;
        font-size: 11px;
        overflow-wrap: anywhere;
    }

.botanik-trace-step-note {
    margin-bottom: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 10px;
    background: rgba(30, 41, 59, .54);
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

    .botanik-trace-step-note.error {
        border-color: rgba(251, 146, 60, .28);
        background: rgba(124, 45, 18, .2);
        color: #fed7aa;
    }

    .botanik-trace-step-note.max-token {
        border-color: rgba(248, 113, 113, .38);
        background: rgba(127, 29, 29, .28);
        color: #fecaca;
    }

.botanik-trace-io-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.botanik-trace-json-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 13px;
    background: rgba(15, 23, 42, .62);
}

    .botanik-trace-json-card > header {
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(148, 163, 184, .12);
    }

    .botanik-trace-json-card header strong {
        display: block;
        margin-top: 2px;
        color: #cbd5e1;
        font-size: 10px;
        font-weight: 700;
    }

    .botanik-trace-json-card .qdrant-test-response {
        min-height: 360px;
        max-height: 52vh;
        border: 0;
        border-radius: 0;
    }

.botanik-trace-truncated {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid rgba(251, 191, 36, .28);
    border-radius: 999px;
    background: rgba(120, 53, 15, .24);
    color: #fde68a !important;
}

.botanik-trace-context-heading {
    margin-bottom: 12px;
}

    .botanik-trace-context-heading > div > strong {
        color: #e2e8f0;
    }

.botanik-trace-context-explorer {
    padding: 14px;
}

.botanik-trace-empty-context {
    background: rgba(15, 23, 42, .56);
}

.botanik-trace-raw-heading {
    margin-bottom: 10px;
}

    .botanik-trace-raw-heading code {
        max-width: 50%;
        overflow: hidden;
        color: #64748b;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.botanik-trace-raw-json {
    min-height: 480px;
    max-height: 65vh;
}

.botanik-trace-empty {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 30px;
    border: 1px dashed rgba(148, 163, 184, .24);
    border-radius: 14px;
    background: rgba(15, 23, 42, .42);
    color: #94a3b8;
    text-align: center;
}

    .botanik-trace-empty strong {
        color: #e2e8f0;
        font-size: 14px;
    }

    .botanik-trace-empty span {
        max-width: 620px;
        font-size: 12px;
        line-height: 1.55;
    }

    .botanik-trace-empty.compact {
        min-height: 100px;
    }

@media (max-width: 1050px) {
    .botanik-trace-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .botanik-trace-io-grid {
        grid-template-columns: 1fr;
    }

    .botanik-trace-json-card .qdrant-test-response {
        min-height: 280px;
        max-height: 42vh;
    }
}

@media (max-width: 768px) {
    .botanik-trace-backdrop {
        padding: 8px;
    }

    .botanik-trace-modal {
        width: 100%;
        max-height: 96vh;
        border-radius: 15px;
    }

    .botanik-trace-header {
        padding: 14px;
    }

    .botanik-trace-heading-icon {
        display: none;
    }

    .botanik-trace-heading p {
        max-width: calc(100vw - 90px);
    }

    .botanik-trace-tabs {
        padding: 0 10px;
    }

        .botanik-trace-tabs button {
            flex: 0 0 auto;
            padding-inline: 10px;
        }

    .botanik-trace-body {
        max-height: calc(96vh - 126px);
        padding: 14px;
    }

    .botanik-trace-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .botanik-trace-summary > div:last-child {
        grid-column: span 2;
    }

    .botanik-trace-alert {
        flex-direction: column;
        gap: 4px;
    }

    .botanik-trace-step {
        grid-template-columns: 30px minmax(0, 1fr);
        padding-right: 10px;
    }

    .botanik-trace-timeline::before {
        left: 14px;
    }

    .botanik-trace-step-open {
        display: none;
    }

    .botanik-trace-step-topline,
    .botanik-trace-selected-heading,
    .botanik-trace-raw-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .botanik-trace-selected-badges {
        justify-content: flex-start;
    }

    .botanik-trace-raw-heading code {
        max-width: 100%;
    }

    .botanik-trace-raw-json {
        min-height: 360px;
    }
}

.send-icon {
    width: 15px;
    height: 15px;
    opacity: .95;
}

/* TABLET */
@media (max-width: 1200px) {
    .botanik-gbt-sidebar {
        width: 300px;
        flex-basis: 300px;
    }

    .botanik-gbt-message {
        max-width: 82%;
    }
}

/* MOBİL / DAR EKRAN */
@media (max-width: 768px) {
    .botanik-gbt-page {
        width: 100%;
        max-width: 100vw;
        height: 100%;
        min-height: 0;
        flex-direction: row;
    }

    .botanik-gbt-sidebar {
        width: 100%;
        height: 100%;
        flex: 1 1 100%;
        max-width: none;
        border-right: none;
        border-bottom: none;
        box-shadow: none;
    }

    .botanik-gbt-page.mobile-list-open > .botanik-gbt-sidebar,
    .botanik-gbt-page.mobile-chat-open > .botanik-gbt-chat {
        display: flex;
    }

    .botanik-gbt-page.mobile-list-open > .botanik-gbt-chat,
    .botanik-gbt-page.mobile-chat-open > .botanik-gbt-sidebar {
        display: none;
    }

    .botanik-gbt-mobile-list-heading {
        min-height: 58px;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: #f8fafc;
    }

        .botanik-gbt-mobile-list-heading > div {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .botanik-gbt-mobile-list-heading strong {
            font-size: 16px;
        }

        .botanik-gbt-mobile-list-heading span {
            color: #94a3b8;
            font-size: 11px;
        }

        .botanik-gbt-mobile-list-heading img {
            width: 32px;
            height: 32px;
            opacity: .75;
        }

    .botanik-gbt-sidebar-action {
        flex: 0 0 auto;
        padding: 6px 12px !important;
    }

        .botanik-gbt-sidebar-action button {
            width: 100%;
            min-height: 42px;
        }

    .botanik-gbt-chat {
        width: 100%;
        height: 100%;
        flex: 1 1 100%;
    }

    .botanik-gbt-mobile-chat-nav {
        min-height: 52px;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 10px;
        border-bottom: 1px solid rgba(148,163,184,.14);
        background: #111827;
        color: #f8fafc;
    }

        .botanik-gbt-mobile-chat-nav button {
            min-height: 38px;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 0 9px 0 6px;
            border: 1px solid rgba(148,163,184,.2);
            border-radius: 11px;
            background: rgba(30,41,59,.75);
            color: #cbd5e1;
            font-size: 12px;
            font-weight: 700;
        }

        .botanik-gbt-mobile-chat-nav button svg {
            width: 20px;
            height: 20px;
        }

        .botanik-gbt-mobile-chat-nav > strong {
            min-width: 0;
            flex: 1 1 auto;
            overflow: hidden;
            font-size: 13px;
            text-overflow: ellipsis;
            white-space: nowrap;
    }

    .botanik-gbt-question-list {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 10px max(12px, env(safe-area-inset-bottom));
    }

    .botanik-gbt-question-item {
        width: 100%;
        min-height: 66px;
        margin-bottom: 7px;
    }

    .botanik-gbt-conversation-header {
        display: block;
        min-height: 0;
        padding: 8px 10px;
    }

    .botanik-gbt-conversation-heading {
        display: none;
    }

    .botanik-gbt-conversation-metadata {
        width: 100%;
        min-width: 0;
        flex: 0 1 auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .botanik-gbt-conversation-badge {
        min-height: 27px;
        padding: 4px 8px;
    }

    .botanik-gbt-conversation-badge.user {
        flex: 1 1 140px;
    }

    .botanik-gbt-conversation-badge.date {
        flex: 0 1 auto;
    }

    .botanik-gbt-messages {
        height: auto;
        flex: 1 1 0;
        overscroll-behavior: contain;
        padding: 16px 10px 14px;
    }

    .botanik-gbt-message-list {
        max-width: none;
        gap: 11px;
    }

    .botanik-gbt-message {
        max-width: 94%;
        font-size: 13px;
    }

    .botanik-gbt-message-badge {
        max-width: 100%;
    }

    .botanik-gbt-input-area {
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    }

    .botanik-gbt-input-box {
        min-height: 56px;
        max-height: 104px;
        min-width: 0;
        gap: 7px;
        padding: 7px 8px 7px 11px;
        border-radius: 15px;
    }

    .botanik-gbt-textarea {
        height: 40px;
        font-size: 16px;
        line-height: 21px;
    }

    .botanik-gbt-send-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .botanik-gbt-qdrant-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .qdrant-test-backdrop,
    .qdrant-detail-backdrop,
    .botanik-editor-backdrop {
        padding: 6px;
    }

    .qdrant-test-modal,
    .qdrant-detail-modal,
    .botanik-editor-modal {
        width: 100%;
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        display: flex;
        flex-direction: column;
        border-radius: 14px;
    }

    .qdrant-test-header > div:first-child,
    .qdrant-detail-header > div:first-child,
    .botanik-editor-header > div:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .qdrant-test-header,
    .qdrant-detail-header,
    .botanik-editor-header {
        flex: 0 0 auto;
        gap: 10px;
        padding: 13px 12px;
    }

    .qdrant-test-header p,
    .qdrant-detail-header h3,
    .botanik-editor-subtitle {
        overflow-wrap: anywhere;
    }

    .qdrant-test-body,
    .qdrant-detail-content,
    .botanik-editor-body {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 12px;
    }

    .qdrant-test-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qdrant-explorer-toolbar,
    .qdrant-result-grid {
        grid-template-columns: 1fr;
    }

    .qdrant-filter-wide {
        grid-column: auto;
    }

    .qdrant-detail-badges,
    .qdrant-detail-tabs {
        padding-right: 12px;
        padding-left: 12px;
    }

    .qdrant-detail-tabs {
        flex: 0 0 auto;
        overflow-x: auto;
    }

    .qdrant-answer-text {
        padding: 13px;
    }

    .botanik-trace-modal {
        width: 100%;
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
    }

    .botanik-trace-body {
        max-height: none;
    }

    .botanik-editor-footer {
        flex: 0 0 auto;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    }

    .bilgi-wrapper {
        width: calc(100vw - 20px);
        max-width: 600px;
    }

    .bilgi-box {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .qdrant-test-summary,
    .botanik-trace-summary {
        grid-template-columns: 1fr;
    }

    .botanik-trace-summary > div:last-child {
        grid-column: auto;
    }

    .botanik-gbt-message {
        max-width: 100%;
    }

    .botanik-gbt-ai-message.has-actions {
        padding-right: 76px;
    }

    .botanik-editor-actions {
        width: 100%;
    }

    .botanik-editor-actions .botanik-btn {
        flex: 1 1 auto;
        padding-inline: 10px;
    }
}

/* Botanik Yapay Zeka — modern, responsive workspace */
.botanik-gbt-page {
    isolation: isolate;
    color: var(--app-text, #f8fafc);
    background:
        radial-gradient(circle at 84% 0%, rgba(45, 212, 191, .09), transparent 28rem),
        var(--app-canvas, #070b14);
}

.botanik-gbt-sidebar {
    width: clamp(18rem, 22vw, 22rem);
    flex-basis: clamp(18rem, 22vw, 22rem);
    border-right: 1px solid var(--app-border, rgba(148, 163, 184, .16));
    background: linear-gradient(180deg, rgba(15, 23, 42, .97), rgba(9, 15, 27, .97));
    box-shadow: 14px 0 40px rgba(2, 6, 23, .18);
}

.botanik-gbt-mobile-list-heading {
    min-height: 4.5rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--app-border, rgba(148, 163, 184, .16));
    color: var(--app-text, #f8fafc);
}

.botanik-gbt-mobile-list-heading > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.botanik-gbt-mobile-list-heading strong {
    font-size: .95rem;
    font-weight: 750;
    letter-spacing: -.01em;
}

.botanik-gbt-mobile-list-heading span {
    color: var(--app-text-muted, #94a3b8);
    font-size: .7rem;
    font-weight: 600;
}

.botanik-gbt-mobile-list-heading img {
    width: 2rem;
    height: 2rem;
    padding: .3rem;
    border: 1px solid rgba(45, 212, 191, .24);
    border-radius: .7rem;
    background: rgba(45, 212, 191, .09);
}

.botanik-gbt-sidebar-action {
    flex: 0 0 auto;
    padding: .65rem 1rem 0;
}

.botanik-gbt-admin-button,
.botanik-gbt-new-chat-button {
    width: 100%;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem .85rem;
    border-radius: var(--app-radius, .875rem);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.botanik-gbt-admin-button svg,
.botanik-gbt-new-chat-button svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.botanik-gbt-admin-button {
    border: 1px solid var(--app-border-strong, rgba(148, 163, 184, .27));
    background: rgba(255, 255, 255, .045);
    color: #cbd5e1;
}

.botanik-gbt-admin-button:hover {
    border-color: rgba(96, 165, 250, .42);
    background: rgba(96, 165, 250, .1);
    color: #dbeafe;
}

.botanik-gbt-new-chat-button {
    border: 1px solid rgba(45, 212, 191, .32);
    background: linear-gradient(135deg, var(--app-primary-strong, #0d9488), #0f766e);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 148, 136, .18);
}

.botanik-gbt-new-chat-button:hover {
    transform: translateY(-1px);
    border-color: rgba(94, 234, 212, .58);
    box-shadow: 0 10px 24px rgba(13, 148, 136, .26);
}

.botanik-gbt-admin-button:disabled,
.botanik-gbt-new-chat-button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.botanik-gbt-question-list {
    padding: 1rem;
    scrollbar-color: rgba(148, 163, 184, .38) transparent;
}

.botanik-gbt-empty-sidebar {
    min-height: 13rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .45rem;
    padding: 1.5rem;
    border: 1px dashed var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius, .875rem);
    background: rgba(255, 255, 255, .025);
    color: var(--app-text-muted, #94a3b8);
    text-align: center;
}

.botanik-gbt-empty-sidebar svg {
    width: 2rem;
    height: 2rem;
    margin-bottom: .3rem;
    color: var(--app-primary, #2dd4bf);
}

.botanik-gbt-empty-sidebar strong {
    color: #e2e8f0;
    font-size: .82rem;
}

.botanik-gbt-empty-sidebar span {
    max-width: 13rem;
    font-size: .72rem;
    line-height: 1.5;
}

.botanik-gbt-question-item {
    min-height: 4.5rem;
    margin-bottom: .55rem;
    padding: .75rem .8rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    border-radius: var(--app-radius, .875rem);
    background: rgba(255, 255, 255, .032);
    color: #e2e8f0;
}

.botanik-gbt-question-item:hover {
    border-color: rgba(45, 212, 191, .32);
    background: rgba(45, 212, 191, .07);
}

.botanik-gbt-question-item.active {
    border-color: rgba(45, 212, 191, .42);
    background: linear-gradient(135deg, rgba(13, 148, 136, .18), rgba(45, 212, 191, .06));
    box-shadow: inset 3px 0 0 var(--app-primary, #2dd4bf), 0 8px 24px rgba(2, 6, 23, .12);
}

.botanik-gbt-question-title {
    color: #e2e8f0;
    font-size: .76rem;
    line-height: 1.45;
}

.botanik-gbt-question-date {
    min-height: 1.4rem;
    border-color: rgba(96, 165, 250, .22);
    background: rgba(96, 165, 250, .09);
    color: #bfdbfe;
}

.botanik-gbt-chat {
    background:
        linear-gradient(rgba(7, 11, 20, .92), rgba(7, 11, 20, .97)),
        radial-gradient(circle at 76% 12%, rgba(45, 212, 191, .14), transparent 30rem);
}

.botanik-gbt-conversation-header {
    min-height: 4.75rem;
    padding: .85rem clamp(1rem, 2.6vw, 2.25rem);
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(11, 18, 32, .84);
    box-shadow: 0 12px 30px rgba(2, 6, 23, .12);
    backdrop-filter: blur(16px);
}

.botanik-gbt-conversation-heading > span {
    color: #5eead4;
}

.botanik-gbt-conversation-heading h1 {
    color: var(--app-text, #f8fafc);
    font-size: clamp(.9rem, 1.2vw, 1.05rem);
}

.botanik-gbt-conversation-badge {
    min-height: 2rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(255, 255, 255, .035);
}

.botanik-gbt-messages {
    padding: clamp(1.25rem, 4vh, 3rem) clamp(1rem, 3vw, 2.5rem) 1.5rem;
    scrollbar-color: rgba(148, 163, 184, .36) transparent;
}

.botanik-gbt-welcome-inner {
    width: min(100%, 30rem);
    gap: .6rem;
    padding: 2.5rem 1.25rem;
    border: 1px dashed var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius-lg, 1.125rem);
    background: rgba(15, 23, 42, .34);
}

.botanik-gbt-welcome-logo img {
    width: 4rem;
    height: 4rem;
    padding: .65rem;
    border: 1px solid rgba(45, 212, 191, .26);
    border-radius: 1.2rem;
    background: rgba(45, 212, 191, .09);
    opacity: .9;
}

.botanik-gbt-welcome-title {
    color: var(--app-text, #f8fafc);
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -.02em;
}

.botanik-gbt-welcome-copy {
    color: var(--app-text-muted, #94a3b8);
    font-size: .82rem;
    line-height: 1.55;
}

.botanik-gbt-message-list {
    max-width: 68rem;
    gap: 1rem;
}

.botanik-gbt-message {
    max-width: min(48rem, 82%);
    padding: .85rem 1rem;
    border-radius: 1rem;
    font-size: .86rem;
    line-height: 1.65;
    box-shadow: 0 10px 24px rgba(2, 6, 23, .11);
}

.botanik-gbt-user-message {
    border: 1px solid rgba(94, 234, 212, .18);
    border-bottom-right-radius: .35rem;
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #fff;
}

.botanik-gbt-ai-message {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    border-bottom-left-radius: .35rem;
    background: rgba(20, 30, 49, .9);
    color: #e5e7eb;
}

.botanik-gbt-ai-message.has-actions {
    padding-right: 6rem;
}

.botanik-gbt-message-content {
    line-break: auto;
}

.botanik-gbt-message-actions {
    top: .65rem;
    right: .65rem;
    gap: .4rem;
}

.botanik-gbt-message-action {
    width: 2.75rem;
    height: 2.75rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    border-radius: .7rem;
    background: rgba(7, 11, 20, .46);
}

.botanik-thinking-box {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(20, 30, 49, .86);
}

.botanik-thinking-text {
    color: #cbd5e1;
}

.botanik-gbt-input-area {
    padding: .8rem clamp(.75rem, 3vw, 2.25rem) max(.8rem, env(safe-area-inset-bottom));
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(7, 11, 20, .9);
    backdrop-filter: blur(18px);
}

.botanik-gbt-input-box {
    max-width: 70rem;
    min-height: 4rem;
    max-height: 9rem;
    margin-inline: auto;
    gap: .55rem;
    padding: .55rem .65rem .55rem .95rem;
    border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: 1rem;
    background: rgba(20, 30, 49, .94);
    box-shadow: 0 12px 36px rgba(2, 6, 23, .18);
}

.botanik-gbt-input-box:focus-within {
    border-color: rgba(45, 212, 191, .56);
    box-shadow: var(--app-focus, 0 0 0 3px rgba(45, 212, 191, .24)), 0 14px 38px rgba(2, 6, 23, .22);
}

.botanik-gbt-textarea {
    min-height: 2.75rem;
    height: 2.75rem;
    max-height: 7rem;
    color: var(--app-text, #f8fafc);
    font-size: .9rem;
    line-height: 1.45rem;
}

.botanik-gbt-textarea::placeholder {
    color: #64748b;
}

.botanik-gbt-send-button,
.botanik-gbt-qdrant-button {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
    border-radius: .8rem;
}

.botanik-gbt-send-button {
    background: linear-gradient(135deg, var(--app-primary, #2dd4bf), var(--app-primary-strong, #0d9488));
    box-shadow: 0 8px 18px rgba(13, 148, 136, .22);
}

.botanik-gbt-qdrant-button {
    border-color: rgba(96, 165, 250, .34);
    background: rgba(96, 165, 250, .1);
    color: #93c5fd;
}

.botanik-gbt-qdrant-button:hover {
    border-color: rgba(96, 165, 250, .58);
    background: rgba(96, 165, 250, .17);
}

.botanik-gbt-send-button:focus-visible,
.botanik-gbt-qdrant-button:focus-visible,
.botanik-gbt-admin-button:focus-visible,
.botanik-gbt-new-chat-button:focus-visible {
    outline: 2px solid var(--app-primary, #2dd4bf);
    outline-offset: 2px;
}

/* Qdrant ve işlem geçmişi pencereleri */
.qdrant-test-backdrop,
.qdrant-detail-backdrop,
.botanik-trace-backdrop,
.botanik-gbt-popup-backdrop,
.botanik-editor-backdrop {
    overscroll-behavior: contain;
    padding:
        max(1rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(10px);
}

.botanik-gbt-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1650;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botanik-gbt-popup-shell {
    width: min(30rem, calc(100vw - 2rem));
    max-width: 100%;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border: 1px solid var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius-lg, 1.125rem);
    background: var(--app-surface-raised, #141e31);
    color: var(--app-text, #f8fafc);
    box-shadow: var(--app-shadow, 0 18px 48px rgba(2, 6, 23, .26));
}

.botanik-gbt-popup-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.qdrant-test-modal,
.qdrant-detail-modal,
.botanik-trace-modal {
    width: min(74rem, 100%);
    height: min(54rem, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius-lg, 1.125rem);
    background: var(--app-canvas-soft, #0b1220);
    color: var(--app-text, #f8fafc);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

.qdrant-detail-modal {
    width: min(58rem, 100%);
    height: min(46rem, calc(100dvh - 2rem));
}

.qdrant-test-header,
.qdrant-detail-header,
.botanik-trace-header {
    flex: 0 0 auto;
    padding: 1rem 1.15rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(20, 30, 49, .72);
}

.qdrant-test-heading-row h2,
.qdrant-detail-header h3,
.botanik-trace-heading h2 {
    color: var(--app-text, #f8fafc);
}

.qdrant-test-close,
.botanik-editor-close,
.kapat-btn {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border, rgba(148, 163, 184, .16));
    border-radius: .75rem;
    background: rgba(255, 255, 255, .045);
    color: #cbd5e1;
    cursor: pointer;
}

.qdrant-test-close:hover,
.botanik-editor-close:hover,
.kapat-btn:hover {
    border-color: rgba(251, 113, 133, .38);
    background: rgba(251, 113, 133, .1);
    color: #fecdd3;
}

.qdrant-test-body,
.qdrant-detail-content,
.botanik-trace-body {
    min-width: 0;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: auto;
    padding: 1rem;
    scrollbar-color: rgba(148, 163, 184, .42) transparent;
}

.qdrant-test-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.qdrant-test-summary > div,
.qdrant-test-detail,
.qdrant-explorer,
.botanik-trace-summary > div,
.botanik-trace-json-card,
.botanik-trace-empty {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(255, 255, 255, .028);
}

.qdrant-test-detail,
.qdrant-test-detail code,
.botanik-trace-endpoint,
.botanik-trace-endpoint code {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.qdrant-explorer-toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .7rem;
}

.qdrant-filter {
    grid-column: span 2;
}

.qdrant-filter-wide {
    grid-column: span 3;
}

.qdrant-filter > span {
    color: #cbd5e1;
    font-size: .72rem;
    font-weight: 700;
}

.qdrant-filter input,
.qdrant-filter select,
.botanik-field input,
.botanik-field select,
.botanik-field textarea {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: .75rem;
    background: rgba(7, 11, 20, .74);
    color: var(--app-text, #f8fafc);
    font-size: .82rem;
}

.qdrant-filter input::placeholder,
.botanik-field input::placeholder,
.botanik-field textarea::placeholder {
    color: #64748b;
}

.qdrant-filter input:focus,
.qdrant-filter select:focus,
.botanik-field input:focus,
.botanik-field select:focus,
.botanik-field textarea:focus {
    border-color: rgba(45, 212, 191, .56);
    outline: none;
    box-shadow: var(--app-focus, 0 0 0 3px rgba(45, 212, 191, .24));
}

.qdrant-results-heading {
    min-height: 2.75rem;
    gap: .75rem;
}

.qdrant-results-heading button,
.qdrant-detail-tabs button,
.botanik-trace-step-picker button {
    min-height: 2.75rem;
}

.qdrant-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.qdrant-result-card {
    min-width: 0;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    border-radius: var(--app-radius, .875rem);
    background: rgba(15, 23, 42, .64);
    color: var(--app-text, #f8fafc);
    box-shadow: 0 10px 28px rgba(2, 6, 23, .12);
}

.qdrant-result-card:hover {
    border-color: rgba(45, 212, 191, .38);
    background: rgba(20, 30, 49, .92);
}

.qdrant-result-title,
.qdrant-searchable-box p,
.qdrant-result-card-footer code {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.qdrant-searchable-box {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(7, 11, 20, .58);
}

.qdrant-searchable-box p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.qdrant-test-response {
    max-width: 100%;
    overflow: auto;
    color: #dbeafe;
    scrollbar-color: rgba(148, 163, 184, .42) transparent;
}

.qdrant-detail-badges,
.qdrant-detail-tabs,
.botanik-trace-tabs {
    flex: 0 0 auto;
    overflow-x: auto;
    scrollbar-width: thin;
}

.qdrant-answer-text {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.botanik-trace-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.botanik-trace-step {
    min-width: 0;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(255, 255, 255, .025);
}

.botanik-trace-step:hover {
    border-color: rgba(45, 212, 191, .32);
    background: rgba(45, 212, 191, .05);
}

.botanik-trace-step-main,
.botanik-trace-step-message,
.botanik-trace-raw-heading code {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Cevap düzenleme ve puanlama */
.botanik-editor-modal {
    width: min(74rem, 100%);
    height: min(56rem, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius-lg, 1.125rem);
    background: var(--app-canvas-soft, #0b1220);
    color: var(--app-text, #f8fafc);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

.botanik-editor-header {
    flex: 0 0 auto;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(20, 30, 49, .72);
}

.botanik-editor-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--app-text, #f8fafc);
    font-size: 1rem;
}

.botanik-editor-title svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--app-primary, #2dd4bf);
}

.botanik-editor-subtitle {
    color: var(--app-text-muted, #94a3b8);
}

.botanik-editor-body {
    min-width: 0;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: auto;
    padding: 1rem 1.15rem;
}

.botanik-editor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.botanik-field label {
    color: #cbd5e1;
    font-size: .75rem;
}

.botanik-field textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.botanik-context-section {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
}

.botanik-context-section-heading strong {
    color: var(--app-text, #f8fafc);
}

.botanik-context-count {
    border-color: rgba(45, 212, 191, .28);
    background: rgba(45, 212, 191, .09);
    color: #99f6e4;
}

.botanik-context-explorer {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(7, 11, 20, .58);
}

.botanik-editor-footer {
    flex: 0 0 auto;
    padding: .8rem 1.15rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(20, 30, 49, .72);
}

.botanik-editor-actions {
    margin-left: auto;
}

.botanik-btn {
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border-radius: .75rem;
}

.botanik-btn-light {
    border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
    background: rgba(255, 255, 255, .045);
    color: #cbd5e1;
}

.botanik-btn-dark {
    background: linear-gradient(135deg, var(--app-primary-strong, #0d9488), #0f766e);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 148, 136, .18);
}

.botanik-rating-card {
    padding: 1rem;
}

.botanik-rating-header > div {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--app-text, #f8fafc);
    font-size: .9rem;
    font-weight: 750;
}

.botanik-rating-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

.botanik-rating-body {
    margin-top: .85rem;
}

.puan-wrapper {
    padding: 0;
}

.puan-btn {
    min-width: 5rem;
    min-height: 2.75rem;
    height: auto;
}

.bilgi-wrapper {
    top: max(1rem, env(safe-area-inset-top));
    width: min(38rem, calc(100vw - 2rem));
}

.bilgi-box {
    width: 100%;
    min-width: 0;
    border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius, .875rem);
    background: rgba(20, 30, 49, .97);
}

.bilgi-left,
.bilgi-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bilgi-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(96, 165, 250, .15);
    color: #bfdbfe;
    font-size: .75rem;
    font-weight: 800;
}

@media (max-width: 64rem) {
    .botanik-gbt-sidebar {
        width: 18rem;
        flex-basis: 18rem;
    }

    .qdrant-test-summary,
    .botanik-trace-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .botanik-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .botanik-gbt-page {
        width: 100%;
        height: 100%;
        max-width: 100vw;
    }

    .botanik-gbt-sidebar {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
        border: 0;
    }

    .botanik-gbt-mobile-list-heading {
        min-height: 3.75rem;
        padding: .65rem .8rem;
    }

    .botanik-gbt-sidebar-action {
        padding: .55rem .75rem 0;
    }

    .botanik-gbt-admin-button,
    .botanik-gbt-new-chat-button {
        min-height: 2.75rem;
    }

    .botanik-gbt-question-list {
        padding: .75rem;
    }

    .botanik-gbt-question-item {
        min-height: 4.75rem;
    }

    .botanik-gbt-mobile-chat-nav {
        min-height: 3.5rem;
        gap: .6rem;
        padding: .4rem .55rem;
        border-color: var(--app-border, rgba(148, 163, 184, .16));
        background: rgba(11, 18, 32, .96);
    }

    .botanik-gbt-mobile-chat-nav button {
        min-height: 2.75rem;
        padding-inline: .55rem .7rem;
        border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
        background: rgba(255, 255, 255, .045);
    }

    .botanik-gbt-conversation-header {
        padding: .5rem .65rem;
    }

    .botanik-gbt-conversation-badge {
        min-height: 2rem;
    }

    .botanik-gbt-messages {
        padding: 1rem .65rem .85rem;
    }

    .botanik-gbt-message {
        max-width: 95%;
        padding: .75rem .8rem;
        font-size: .82rem;
    }

    .botanik-gbt-ai-message.has-actions {
        padding-top: 3.5rem;
        padding-right: .8rem;
    }

    .botanik-gbt-message-actions {
        top: .55rem;
        left: .7rem;
        right: auto;
    }

    .botanik-gbt-message-action {
        width: 2.75rem;
        height: 2.75rem;
    }

    .botanik-gbt-input-area {
        padding: .5rem .5rem max(.5rem, env(safe-area-inset-bottom));
    }

    .botanik-gbt-input-box {
        min-height: 3.75rem;
        gap: .4rem;
        padding: .45rem .45rem .45rem .7rem;
        border-radius: .9rem;
    }

    .botanik-gbt-textarea {
        min-height: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    .botanik-gbt-send-button,
    .botanik-gbt-qdrant-button {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
    }

    .qdrant-test-backdrop,
    .qdrant-detail-backdrop,
    .botanik-trace-backdrop,
    .botanik-gbt-popup-backdrop,
    .botanik-editor-backdrop {
        align-items: stretch;
        padding:
            env(safe-area-inset-top)
            env(safe-area-inset-right)
            env(safe-area-inset-bottom)
            env(safe-area-inset-left);
    }

    .qdrant-test-modal,
    .qdrant-detail-modal,
    .botanik-trace-modal,
    .botanik-editor-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .botanik-gbt-popup-shell {
        width: 100%;
        max-height: 100%;
        margin-block: auto;
        border-radius: 0;
    }

    .qdrant-test-header,
    .qdrant-detail-header,
    .botanik-trace-header,
    .botanik-editor-header {
        padding: .75rem;
        padding-top: max(.75rem, env(safe-area-inset-top));
    }

    .qdrant-test-header p,
    .botanik-trace-heading p,
    .botanik-editor-subtitle {
        font-size: .72rem;
        line-height: 1.45;
    }

    .qdrant-test-body,
    .qdrant-detail-content,
    .botanik-trace-body,
    .botanik-editor-body {
        padding: .75rem;
        padding-bottom: max(.75rem, env(safe-area-inset-bottom));
    }

    .qdrant-test-summary,
    .botanik-trace-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qdrant-explorer-toolbar,
    .qdrant-result-grid,
    .botanik-context-explorer .qdrant-result-grid,
    .botanik-editor-grid,
    .botanik-trace-io-grid {
        grid-template-columns: 1fr;
    }

    .qdrant-filter,
    .qdrant-filter-wide {
        grid-column: auto;
    }

    .qdrant-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .qdrant-results-heading button {
        width: 100%;
    }

    .qdrant-result-card {
        width: 100%;
    }

    .qdrant-detail-tabs,
    .botanik-trace-tabs {
        padding-inline: .5rem;
    }

    .qdrant-detail-tabs button,
    .botanik-trace-tabs button {
        flex: 0 0 auto;
        min-height: 2.75rem;
    }

    .botanik-trace-step-picker {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .botanik-editor-footer {
        padding: .65rem .75rem max(.65rem, env(safe-area-inset-bottom));
    }

    .botanik-editor-actions {
        width: 100%;
        margin: 0;
    }

    .botanik-editor-actions .botanik-btn {
        flex: 1 1 0;
    }

    .bilgi-wrapper {
        width: calc(100vw - 1rem);
    }
}

@media (max-width: 26.875rem) {
    .botanik-gbt-conversation-metadata {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .botanik-gbt-conversation-badge {
        width: 100%;
    }

    .botanik-gbt-message {
        max-width: 100%;
    }

    .qdrant-test-summary,
    .botanik-trace-summary {
        grid-template-columns: 1fr;
    }

    .botanik-trace-summary > div:last-child {
        grid-column: auto;
    }

    .puan-wrapper {
        flex-direction: column;
    }

    .puan-btn {
        width: 100%;
    }
}

/* Botanik Yapay Zeka — light workspace overrides */
.botanik-gbt-page,
.botanik-gbt-popup-backdrop,
.qdrant-test-backdrop,
.qdrant-detail-backdrop,
.botanik-trace-backdrop,
.botanik-editor-backdrop {
    --app-canvas: #f5f7fb;
    --app-canvas-soft: #f8fafc;
    --app-surface: #ffffff;
    --app-surface-raised: #ffffff;
    --app-surface-muted: #f1f5f9;
    --app-border: #dbe3ed;
    --app-border-strong: #7c8798;
    --app-text: #172033;
    --app-text-muted: #64748b;
    --app-primary: #0d9488;
    --app-primary-strong: #0f766e;
    --app-primary-soft: #f0fdfa;
    --app-focus: 0 0 0 3px rgba(13, 148, 136, .16);
}

.botanik-gbt-page {
    color: #172033;
    background:
        radial-gradient(circle at 84% 0%, rgba(13, 148, 136, .07), transparent 28rem),
        #f5f7fb;
}

.botanik-gbt-sidebar {
    border-right-color: #dbe3ed;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 14px 0 36px rgba(15, 23, 42, .055);
}

.botanik-gbt-mobile-list-heading,
.botanik-gbt-conversation-header {
    border-color: #dbe3ed;
    color: #172033;
    background: rgba(255, 255, 255, .94);
}

.botanik-gbt-mobile-list-heading span,
.botanik-gbt-welcome-copy,
.botanik-editor-subtitle {
    color: #64748b;
}

.botanik-gbt-admin-button {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.botanik-gbt-admin-button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.botanik-gbt-empty-sidebar {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #64748b;
}

.botanik-gbt-empty-sidebar strong,
.botanik-gbt-question-title,
.botanik-gbt-conversation-heading h1,
.botanik-gbt-welcome-title {
    color: #172033;
}

.botanik-gbt-question-item {
    border-color: #dbe3ed;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
}

.botanik-gbt-question-item:hover {
    border-color: #99f6e4;
    background: #f8fffd;
}

.botanik-gbt-question-item.active {
    border-color: #5eead4;
    background: linear-gradient(135deg, #f0fdfa, #ffffff);
    box-shadow: inset 3px 0 0 #0d9488, 0 8px 20px rgba(15, 23, 42, .06);
}

.botanik-gbt-question-date {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.botanik-gbt-chat {
    background:
        linear-gradient(rgba(248, 250, 252, .94), rgba(245, 247, 251, .98)),
        radial-gradient(circle at 76% 12%, rgba(13, 148, 136, .1), transparent 30rem);
}

.botanik-gbt-conversation-header {
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.botanik-gbt-conversation-heading > span {
    color: #0f766e;
}

.botanik-gbt-conversation-badge {
    border-color: #dbe3ed;
    background: #f8fafc;
    color: #475569;
}

.botanik-gbt-conversation-badge.user {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.botanik-gbt-conversation-badge.date {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.botanik-gbt-welcome-inner {
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, .72);
}

.botanik-gbt-user-message {
    border-color: rgba(15, 118, 110, .2);
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #ffffff;
}

.botanik-gbt-ai-message,
.botanik-thinking-box {
    border-color: #dbe3ed;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .065);
}

.botanik-thinking-text {
    color: #334155;
}

.botanik-gbt-message-action {
    border-color: #dbe3ed;
    background: #f8fafc;
    color: #475569;
}

.botanik-gbt-message-action:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.botanik-gbt-input-area {
    border-color: #dbe3ed;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -8px 22px rgba(15, 23, 42, .035);
}

.botanik-gbt-input-box {
    border-color: #7c8798;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.botanik-gbt-textarea {
    color: #172033;
}

.botanik-gbt-textarea::placeholder {
    color: #64748b;
}

.botanik-gbt-qdrant-button {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.botanik-gbt-mobile-chat-nav {
    border-color: #dbe3ed !important;
    background: rgba(255, 255, 255, .97) !important;
    color: #172033;
}

.botanik-gbt-mobile-chat-nav button {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155;
}

.qdrant-test-backdrop,
.qdrant-detail-backdrop,
.botanik-trace-backdrop,
.botanik-gbt-popup-backdrop,
.botanik-editor-backdrop {
    background: rgba(15, 23, 42, .44);
}

.botanik-gbt-popup-shell,
.qdrant-test-modal,
.qdrant-detail-modal,
.botanik-trace-modal,
.botanik-editor-modal {
    border-color: #dbe3ed;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.qdrant-test-header,
.qdrant-detail-header,
.botanik-trace-header,
.botanik-editor-header,
.botanik-editor-footer {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.botanik-editor-close:hover,
.kapat-btn:hover {
    border-color: #fda4af;
    background: #fff1f2;
    color: #be123c;
}

.bilgi-icon {
    background: #eff6ff;
    color: #2563eb;
}

.qdrant-test-heading-row h2,
.qdrant-detail-header h3,
.botanik-trace-heading h2,
.botanik-editor-title,
.botanik-rating-header > div,
.botanik-context-section-heading strong {
    color: #172033;
}

.qdrant-test-close,
.botanik-editor-close,
.kapat-btn {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.qdrant-test-summary > div,
.qdrant-test-detail,
.qdrant-explorer,
.botanik-trace-summary > div,
.botanik-trace-json-card,
.botanik-trace-empty,
.botanik-trace-step,
.qdrant-result-card {
    border-color: #dbe3ed;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}

.qdrant-result-card:hover,
.botanik-trace-step:hover {
    border-color: #99f6e4;
    background: #f8fffd;
}

.qdrant-filter > span,
.botanik-field label {
    color: #334155;
}

.qdrant-filter input,
.qdrant-filter select,
.botanik-field input,
.botanik-field select,
.botanik-field textarea {
    border-color: #7c8798;
    background: #ffffff;
    color: #172033;
    color-scheme: light;
}

.qdrant-searchable-box,
.botanik-context-explorer {
    border-color: #dbe3ed;
    background: #f8fafc;
}

.qdrant-test-response {
    color: #1e3a5f;
}

.botanik-context-section {
    border-color: #e2e8f0;
}

.botanik-context-count {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.botanik-btn-light {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.bilgi-box {
    border-color: #dbe3ed;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .15);
}

.bilgi-text {
    color: #172033;
}

.botanik-trace-raw-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.botanik-trace-raw-actions code {
    min-width: 0;
}

.botanik-json-copy-button {
    display: inline-flex;
    min-height: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid #7c8798;
    border-radius: 0.65rem;
    background: #ffffff;
    color: #334155;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.botanik-json-copy-button:hover:not(:disabled) {
    border-color: #0f766e;
    background: #f0fdfa;
    color: #0f766e;
}

.botanik-json-copy-button:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.24);
    outline-offset: 2px;
}

.botanik-json-copy-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 640px) {
    .botanik-trace-raw-actions {
        width: 100%;
        justify-content: space-between;
    }

    .botanik-json-copy-button {
        min-height: 2.75rem;
    }
}

/* Definitive light-theme states: keep these last because this legacy sheet has duplicate selectors. */
.botanik-gbt-user-message {
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #ffffff;
}

.botanik-editor-close:hover,
.kapat-btn:hover {
    border-color: #fda4af;
    background: #fff1f2;
    color: #be123c;
}

.bilgi-icon {
    background: #eff6ff;
    color: #2563eb;
}

/* Keep late editor rules aligned with the light theme. */
.botanik-editor-close:hover,
.kapat-btn:hover {
    border-color: #fda4af;
    background: #fff1f2;
    color: #be123c;
}

.bilgi-icon {
    background: #eff6ff;
    color: #2563eb;
}

.botanik-gbt-ai-message .botanik-gbt-message-meta {
    border-top-color: #e2e8f0;
}

.botanik-gbt-message-badge.author.ai {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.botanik-gbt-message-badge.date {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.botanik-trace-heading h2,
.botanik-trace-summary strong,
.botanik-trace-section-heading > div > strong,
.botanik-trace-selected-heading strong,
.botanik-trace-raw-heading strong,
.botanik-trace-json-card header strong,
.qdrant-result-title,
.qdrant-detail-header h3 {
    color: #172033;
}

.botanik-trace-heading p,
.botanik-trace-summary small,
.botanik-trace-step-description,
.botanik-trace-step-metrics,
.botanik-trace-step-message,
.botanik-trace-empty,
.qdrant-searchable-box p {
    color: #64748b;
}

.botanik-trace-tabs,
.qdrant-detail-tabs {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.botanik-trace-budget-strip > span,
.botanik-trace-endpoint,
.botanik-trace-step-note {
    border-color: #dbe3ed;
    background: #f8fafc;
    color: #475569;
}

.botanik-trace-budget-strip strong,
.botanik-trace-endpoint code,
.botanik-trace-raw-heading code {
    color: #334155;
}

.botanik-trace-timeline::before {
    background: #dbe3ed;
}

.botanik-trace-raw-json,
.qdrant-test-response,
.json-viewer,
.qdrant-detail-json {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.qdrant-answer-text {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.qdrant-result-card-footer,
.qdrant-result-card-footer code {
    color: #64748b;
}

.botanik-trace-alert.max-token {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.botanik-trace-alert.error {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.bilgi-icon {
    background: #eff6ff;
    color: #2563eb;
}

.botanik-payload-box,
.json-viewer {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #172033;
}

.botanik-payload-top {
    border-bottom-color: #dbe3ed;
    background: #eef2f7;
    color: #334155;
}

.botanik-payload-box pre {
    color: #334155;
}

@media (prefers-reduced-motion: reduce) {
    .botanik-gbt-page *,
    .qdrant-test-backdrop *,
    .qdrant-detail-backdrop *,
    .botanik-trace-backdrop *,
    .botanik-editor-backdrop * {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.botanik-gbt-popup-shell {
    width: min(300px, calc(100vw - 20px));
}
.puan-btn {
    flex: 1;
    min-width: 70px;
    height: 34px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    color: #4b5563;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .puan-btn:hover {
        transform: translateY(-1px);
    }

    .puan-btn:active {
        transform: scale(.95);
    }

    /* Seçili */
    .puan-btn.selected {
        box-shadow: 0 0 0 2px rgba(16,185,129,.25);
    }

/* DOĞRU */
.puan-dogru {
    background: #ecfdf5;
    color: #047857;
}

.puan-dogru:hover,
    .puan-dogru.selected {
        background: #047857 !important;
        color: white !important;
    }

/* EKSİK */
.puan-eksik {
    background: #fffbeb;
    color: #b45309;
}

.puan-eksik:hover,
    .puan-eksik.selected {
        background: #92400e !important;
        color: white !important;
    }

/* YANLIŞ */
.puan-yanlis {
    background: #fef2f2;
    color: #b91c1c;
}

.puan-yanlis:hover,
    .puan-yanlis.selected {
        background: #b91c1c !important;
        color: white !important;
    }

.puan-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
}
.bilgi-wrapper {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: bilgiAnim 0.25s ease;
}

.bilgi-box {
    min-width: 320px;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

.bilgi-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bilgi-icon {
    font-size: 18px;
}

.bilgi-text {
    color: #f9fafb;
    font-size: 14px;
    line-height: 1.4;
}

.kapat-btn {
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: white;
    transition: 0.2s;
}

    .kapat-btn:hover {
        background: rgba(239,68,68,0.25);
        transform: scale(1.05);
    }

@keyframes bilgiAnim {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.botanik-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(8px);
}

.botanik-editor-modal {
    width: min(1180px, 100%);
    max-height: 92vh;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    overflow: hidden;
}

.botanik-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
}

.botanik-editor-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.botanik-editor-subtitle {
    margin-top: 3px;
    font-size: 13px;
    color: #667085;
}

.botanik-editor-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 26px;
    cursor: pointer;
}

    .botanik-editor-close:hover {
        background: #f3f4f6;
    }

.botanik-editor-body {
    max-height: calc(92vh - 145px);
    overflow-y: auto;
    padding: 10px 15px;
}

.botanik-field {
    margin-bottom: 14px;
}

    .botanik-field label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 800;
        color: #344054;
    }

    .botanik-field input,
    .botanik-field textarea {
        width: 100%;
        border: 1px solid #cbd5e1;
        border-radius: 14px;
        background: #fff;
        padding: 11px 14px;
        font-size: 14px;
        color: #111827;
        outline: none;
        box-sizing: border-box;
    }

    .botanik-field textarea {
        resize: vertical;
        min-height: 86px;
    }

        .botanik-field input:focus,
        .botanik-field textarea:focus {
            border-color: #22c55e;
            box-shadow: 0 0 0 4px rgba(34, 197, 94, .13);
        }

.botanik-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.botanik-context-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.botanik-context-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 11px;
}

    .botanik-context-section-heading > div > span {
        display: block;
        margin-bottom: 2px;
        color: #059669;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .botanik-context-section-heading strong {
        display: block;
        color: #1f2937;
        font-size: 14px;
    }

.botanik-context-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
}

.botanik-context-explorer {
    margin-top: 0;
    padding: 14px;
    border: 1px solid #1e293b;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

    .botanik-context-explorer .qdrant-explorer-toolbar {
        margin: 0;
    }

    .botanik-context-explorer .qdrant-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .botanik-context-explorer .qdrant-raw-details {
        margin-bottom: 0;
    }

.botanik-context-empty {
    border-color: #d1d5db;
    background: #f8fafc;
    color: #64748b;
}

.botanik-payload-box {
    margin-top: 6px;
    border-radius: 16px;
    background: #0f172a;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.botanik-payload-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #111827;
    border-bottom: 1px solid #243244;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
}

    .botanik-payload-top small {
        padding: 4px 9px;
        border-radius: 999px;
        background: rgba(16,185,129,.15);
        color: #6ee7b7;
        font-size: 11px;
        font-weight: 800;
    }

.botanik-payload-box pre {
    margin: 0;
    max-height: 120px;
    overflow: auto;
    padding: 13px 15px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
}

.botanik-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 22px;
    border-top: 1px solid #eef2f7;
    background: #fbfdff;
}

.botanik-editor-note {
    font-size: 12px;
    color: #64748b;
}

.botanik-editor-actions {
    display: flex;
    gap: 9px;
}

.botanik-btn {
    border: 0;
    border-radius: 13px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .15s ease;
}

    .botanik-btn:hover {
        transform: translateY(-1px);
    }

.botanik-btn-light {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #475467;
}

.botanik-btn-dark {
    background: #334155;
    color: white;
}

.botanik-btn-green {
    background: linear-gradient(135deg, #10b981, #16a34a);
    color: white;
    box-shadow: 0 8px 18px rgba(16, 185, 129, .28);
}

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

    .botanik-context-explorer .qdrant-result-grid {
        grid-template-columns: 1fr;
    }

    .botanik-context-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .botanik-editor-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .botanik-editor-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

.json-viewer {
    width: 100%;
    height: 65vh;
    background: #f8fafc;
    color: #172033;
    font-family: Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #7c8798;
    overflow: auto;
    white-space: pre;
}

/* Dosyanın alt bölümünde tanımlanan editör ve bildirim stillerinin mobil öncelikleri. */
@media (max-width: 768px) {
    .bilgi-wrapper {
        width: calc(100vw - 20px);
        max-width: 600px;
    }

    .bilgi-box {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .bilgi-left,
    .bilgi-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .kapat-btn {
        flex: 0 0 32px;
    }

    .botanik-editor-backdrop {
        padding: 6px;
    }

    .botanik-editor-modal {
        width: 100%;
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        display: flex;
        flex-direction: column;
        border-radius: 14px;
    }

    .botanik-editor-header {
        flex: 0 0 auto;
        gap: 10px;
        padding: 13px 12px;
    }

    .botanik-editor-header > div:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .botanik-editor-subtitle {
        overflow-wrap: anywhere;
    }

    .botanik-editor-body {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 12px;
    }

    .botanik-editor-footer {
        flex: 0 0 auto;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .botanik-editor-actions {
        width: 100%;
    }

    .botanik-editor-actions .botanik-btn {
        flex: 1 1 auto;
        padding-inline: 10px;
    }
}

/* Editör kuralları dosyanın eski bölümünden sonra yeniden sabitlenir. */
.botanik-gbt-popup-shell {
    width: min(30rem, calc(100vw - 2rem));
    max-width: 100%;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border: 1px solid var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius-lg, 1.125rem);
    background: var(--app-surface-raised, #141e31);
    color: var(--app-text, #f8fafc);
    box-shadow: var(--app-shadow, 0 18px 48px rgba(2, 6, 23, .26));
}

.botanik-editor-backdrop {
    padding:
        max(1rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(10px);
    overscroll-behavior: contain;
}

.botanik-editor-modal {
    width: min(74rem, 100%);
    height: min(56rem, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius-lg, 1.125rem);
    background: var(--app-canvas-soft, #0b1220);
    color: var(--app-text, #f8fafc);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

.botanik-editor-header {
    flex: 0 0 auto;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(20, 30, 49, .72);
}

.botanik-editor-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--app-text, #f8fafc);
    font-size: 1rem;
}

.botanik-editor-title svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--app-primary, #2dd4bf);
}

.botanik-editor-subtitle {
    color: var(--app-text-muted, #94a3b8);
}

.botanik-editor-close,
.kapat-btn {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border, rgba(148, 163, 184, .16));
    border-radius: .75rem;
    background: rgba(255, 255, 255, .045);
    color: #cbd5e1;
    cursor: pointer;
}

.botanik-editor-close:hover,
.kapat-btn:hover {
    border-color: rgba(251, 113, 133, .38);
    background: rgba(251, 113, 133, .1);
    color: #fecdd3;
}

.botanik-editor-body {
    min-width: 0;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: auto;
    padding: 1rem 1.15rem;
}

.botanik-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.botanik-field label {
    color: #cbd5e1;
    font-size: .75rem;
}

.botanik-field input,
.botanik-field select,
.botanik-field textarea {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: .75rem;
    background: rgba(7, 11, 20, .74);
    color: var(--app-text, #f8fafc);
    font-size: .82rem;
}

.botanik-field textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.botanik-field input:focus,
.botanik-field select:focus,
.botanik-field textarea:focus {
    border-color: rgba(45, 212, 191, .56);
    outline: none;
    box-shadow: var(--app-focus, 0 0 0 3px rgba(45, 212, 191, .24));
}

.botanik-context-section {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
}

.botanik-context-section-heading strong {
    color: var(--app-text, #f8fafc);
}

.botanik-context-count {
    border-color: rgba(45, 212, 191, .28);
    background: rgba(45, 212, 191, .09);
    color: #99f6e4;
}

.botanik-context-explorer {
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(7, 11, 20, .58);
}

.botanik-editor-footer {
    flex: 0 0 auto;
    padding: .8rem 1.15rem;
    border-color: var(--app-border, rgba(148, 163, 184, .16));
    background: rgba(20, 30, 49, .72);
}

.botanik-editor-actions {
    margin-left: auto;
}

.botanik-btn {
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border-radius: .75rem;
}

.botanik-btn-light {
    border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
    background: rgba(255, 255, 255, .045);
    color: #cbd5e1;
}

.botanik-btn-dark {
    background: linear-gradient(135deg, var(--app-primary-strong, #0d9488), #0f766e);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 148, 136, .18);
}

.botanik-rating-card {
    padding: 1rem;
}

.botanik-rating-header > div {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--app-text, #f8fafc);
    font-size: .9rem;
    font-weight: 750;
}

.botanik-rating-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

.botanik-rating-body {
    margin-top: .85rem;
}

.puan-wrapper {
    padding: 0;
}

.puan-btn {
    min-width: 5rem;
    min-height: 2.75rem;
    height: auto;
}

.bilgi-wrapper {
    top: max(1rem, env(safe-area-inset-top));
    width: min(38rem, calc(100vw - 2rem));
}

.bilgi-box {
    width: 100%;
    min-width: 0;
    border-color: var(--app-border-strong, rgba(148, 163, 184, .27));
    border-radius: var(--app-radius, .875rem);
    background: rgba(20, 30, 49, .97);
}

.bilgi-left,
.bilgi-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bilgi-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(96, 165, 250, .15);
    color: #bfdbfe;
    font-size: .75rem;
    font-weight: 800;
}

@media (max-width: 64rem) {
    .botanik-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .botanik-editor-backdrop {
        align-items: stretch;
        padding:
            env(safe-area-inset-top)
            env(safe-area-inset-right)
            env(safe-area-inset-bottom)
            env(safe-area-inset-left);
    }

    .botanik-editor-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .botanik-gbt-popup-shell {
        width: 100%;
        max-height: 100%;
        margin-block: auto;
        border-radius: 0;
    }

    .botanik-editor-header {
        padding: .75rem;
        padding-top: max(.75rem, env(safe-area-inset-top));
    }

    .botanik-editor-body {
        padding: .75rem;
        padding-bottom: max(.75rem, env(safe-area-inset-bottom));
    }

    .botanik-editor-grid {
        grid-template-columns: 1fr;
    }

    .botanik-editor-footer {
        padding: .65rem .75rem max(.65rem, env(safe-area-inset-bottom));
    }

    .botanik-editor-actions {
        width: 100%;
        margin: 0;
    }

    .botanik-editor-actions .botanik-btn {
        flex: 1 1 0;
    }

    .bilgi-wrapper {
        width: calc(100vw - 1rem);
    }
}

@media (max-width: 26.875rem) {
    .puan-wrapper {
        flex-direction: column;
    }

    .puan-btn {
        width: 100%;
    }
}

/* Final light overrides for editor rules declared late in this file. */
/* Shared Botanik Yapay Zeka trace viewer contrast. */
.qdrant-detail-tabs button {
    color: #475569;
}

.qdrant-detail-tabs button.active {
    border-bottom-color: #2563eb;
    color: #1d4ed8;
}

.botanik-trace-step-topline > strong,
.botanik-trace-selected-heading strong,
.botanik-trace-json-card header strong {
    color: #172033;
}

.botanik-trace-step-description,
.botanik-trace-step-metrics,
.botanik-trace-step-message {
    color: #64748b;
}

.botanik-trace-step-metrics > span,
.botanik-trace-step-picker button > span {
    background: #eef2f7;
    color: #334155;
}

.botanik-trace-step-open {
    color: #1d4ed8;
}

.botanik-trace-step-marker {
    border-color: #ffffff;
}

.botanik-trace-status {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.botanik-trace-status.success {
    border-color: #6ee7b7;
    background: #ecfdf5;
    color: #047857;
}

.botanik-trace-status.error {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.botanik-trace-status.max-token {
    border-color: #fda4af;
    background: #fff1f2;
    color: #be123c;
}

.botanik-trace-step-picker button {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.botanik-trace-step-picker button.active {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
}

.botanik-trace-step-picker button.max-token {
    border-color: #fda4af;
    background: #fff1f2;
    color: #be123c;
}

.qdrant-result-card-footer,
.qdrant-result-card-footer code,
.qdrant-result-score {
    color: #475569;
}

.botanik-gbt-user-message {
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #ffffff;
}

.botanik-editor-close:hover,
.kapat-btn:hover {
    border-color: #fda4af;
    background: #fff1f2;
    color: #be123c;
}

.bilgi-icon {
    background: #eff6ff;
    color: #2563eb;
}

.botanik-payload-box {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #172033;
}

.botanik-payload-top {
    border-bottom-color: #dbe3ed;
    background: #eef2f7;
    color: #334155;
}

.botanik-payload-top small {
    background: #d1fae5;
    color: #047857;
}

.botanik-payload-box pre {
    color: #334155;
}

.botanik-gbt-popup-shell,
.botanik-editor-modal {
    border-color: #dbe3ed;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.botanik-editor-backdrop {
    background: rgba(15, 23, 42, .44);
}

.botanik-editor-header,
.botanik-editor-footer {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.botanik-editor-title,
.botanik-context-section-heading strong,
.botanik-rating-header > div {
    color: #172033;
}

.botanik-editor-subtitle,
.botanik-editor-note {
    color: #64748b;
}

.botanik-editor-close,
.kapat-btn {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.botanik-field label {
    color: #334155;
}

.botanik-field input,
.botanik-field select,
.botanik-field textarea {
    border-color: #7c8798;
    background: #ffffff;
    color: #172033;
    color-scheme: light;
}

.botanik-context-section {
    border-color: #e2e8f0;
}

.botanik-context-count {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.botanik-context-explorer {
    border-color: #dbe3ed;
    background: #f8fafc;
}

.botanik-btn-light {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.bilgi-box {
    border-color: #dbe3ed;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .15);
}

.bilgi-text {
    color: #172033;
}
