.raw-data-chat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    border-radius: 11px;
    background: transparent;
    border: 1px solid transparent;
    min-width: 0;
    overflow: hidden;
    gap: 8px;
    padding: 0 5px 0 10px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.raw-data-chat-chip:hover {
    background: rgba(255,255,255,0.03);
}

.raw-data-chat-chip:focus {
    outline: none;
}

.raw-data-chat-chip:focus-visible {
    background: rgba(255,255,255,0.04);
    box-shadow: none;
}

.raw-data-chat-nickname {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px 0 0;
    color: #dce9ff;
    font-size: 13px;
    font-weight: 700;
    font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
    line-height: 34px;
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}

.raw-data-chat-copy-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #90a9cb;
    flex-shrink: 0;
    transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    opacity: 0.84;
    pointer-events: none;
}

.raw-data-chat-chip:hover .raw-data-chat-copy-btn {
    color: #dce9ff;
    background: rgba(255,255,255,0.04);
    opacity: 1;
}

.raw-data-chat-copy-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.raw-data-chat-copy-icon-success {
    display: none;
}

.raw-data-chat-chip.is-copied .raw-data-chat-copy-icon-default {
    display: none;
}

.raw-data-chat-chip.is-copied .raw-data-chat-copy-icon-success {
    display: block;
}

.raw-data-chat-chip.is-copied .raw-data-chat-copy-btn {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.14);
}

.raw-data-chat-chip.copy-feedback-suppressed .raw-data-chat-copy-btn {
    display: none !important;
}

.raw-data-chat-chip.is-copied,
.raw-data-chat-chip.is-copied:hover,
.raw-data-chat-chip.is-copied:focus,
.raw-data-chat-chip.is-copied:focus-visible,
.raw-data-chat-chip.copy-feedback-suppressed,
.raw-data-chat-chip.copy-feedback-suppressed:hover,
.raw-data-chat-chip.copy-feedback-suppressed:focus,
.raw-data-chat-chip.copy-feedback-suppressed:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
}

.raw-data-toolbar-btn,
.raw-data-back-btn {
    height: 48px;
    min-height: 48px;
    border-radius: 16px;
}

.raw-data-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
}

.raw-data-toolbar-btn-primary {
    color: #eef6ff;
    background: linear-gradient(180deg, rgba(74, 114, 210, 0.28) 0%, rgba(62, 96, 181, 0.22) 100%);
    border: 1px solid rgba(121, 184, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    min-width: 170px;
}

.raw-data-toolbar-btn-primary:hover {
    background: rgba(74, 114, 210, 0.28);
    border-color: rgba(152, 196, 255, 0.2);
}

.raw-data-toolbar-btn-secondary {
    background: rgba(14,21,34,0.34);
    color: #c8d7f1;
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 230px;
}

.raw-data-toolbar-btn-secondary:hover {
    background: rgba(255,255,255,0.07);
}

.raw-data-toolbar-btn-danger {
    --project-cta-min-width: 170px;
}

.raw-data-back-btn {
    width: 48px;
    background: rgba(14,21,34,0.34);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 20px;
    line-height: 1;
}

.raw-data-back-btn:hover {
    background: rgba(255,255,255,0.07);
}

.raw-data-orbit-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.raw-data-orbit-core {
    width: 100%;
    min-height: 86px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(11,18,32,0.42);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    text-align: left;
}

.raw-data-orbit-toggle {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.raw-data-orbit-toggle:hover {
    background: rgba(15,23,40,0.5);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.raw-data-orbit-toggle:focus {
    outline: none;
}

.raw-data-orbit-toggle:focus-visible {
    border-color: rgba(143, 189, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(74, 114, 210, 0.1);
}

.raw-data-orbit-folder-shape {
    position: relative;
    width: 66px;
    height: 50px;
    display: block;
    grid-row: 1 / span 2;
}

.raw-data-orbit-folder-tab {
    position: absolute;
    left: 9px;
    top: 0;
    width: 24px;
    height: 10px;
    border-radius: 8px 8px 5px 5px;
    background: linear-gradient(180deg, #f6d389 0%, #e9bd5d 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.raw-data-orbit-folder-body {
    position: absolute;
    inset: 8px 0 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7cb73 0%, #dfa332 100%);
    border: 1px solid rgba(137, 91, 14, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 8px 14px rgba(62, 44, 11, 0.16);
    overflow: hidden;
}

.raw-data-orbit-folder-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 45%);
    pointer-events: none;
}

.raw-data-orbit-folder-lines {
    position: absolute;
    left: 11px;
    top: 14px;
    width: 21px;
    height: 3px;
    border-radius: 999px;
    background: rgba(110, 71, 14, 0.34);
    box-shadow:
        0 7px 0 rgba(110, 71, 14, 0.28),
        0 14px 0 rgba(110, 71, 14, 0.2);
}

.raw-data-orbit-folder-count {
    position: absolute;
    right: 7px;
    bottom: 7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(13, 20, 35, 0.88);
    border: 1px solid rgba(255,255,255,0.08);
    color: #f4f8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.raw-data-orbit-title {
    color: #eef4ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
}

.raw-data-orbit-caption {
    color: #92a5c5;
    font-size: 11px;
    line-height: 1.3;
}

.raw-data-orbit-folder-legs {
    position: relative;
    width: 100%;
    max-height: none;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 29, 46, 0.9) 0%, rgba(15, 24, 39, 0.84) 100%);
    border: 1px solid rgba(170, 194, 232, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.035),
        0 12px 24px rgba(8, 14, 24, 0.22);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    overflow: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
}

.raw-data-orbit-folder-legs::before {
    content: "РџРђРџРљР Р¤РђР™Р›Рђ";
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    color: rgba(169, 244, 255, 0.74);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(74, 203, 255, 0.18);
    pointer-events: none;
}

.raw-data-orbit-folder-legs::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    border: 1px solid rgba(129, 219, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(201, 249, 255, 0.015);
    pointer-events: none;
}

.raw-data-orbit-folder-track {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
    align-content: flex-start;
    min-height: 0;
    padding: 0;
}

.raw-data-orbit-folder-leg {
    display: flex;
    flex: 0 1 auto;
    max-width: 100%;
    transition: none;
    transform: none;
}

.raw-data-orbit-folder-tag {
    height: 30px;
    padding: 0 12px;
    max-width: 100%;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.018) 100%);
    border: 1px solid rgba(178, 199, 236, 0.18);
    color: #bacbe6;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 0 0 1px rgba(150, 188, 255, 0.02);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.raw-data-orbit-folder-tag:hover,
.raw-data-orbit-folder-tag:focus-visible {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.028) 100%);
    border-color: rgba(196, 218, 255, 0.28);
    color: #e4eefc;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 0 14px rgba(132, 173, 255, 0.07);
}

.raw-data-orbit-folder-tag:focus {
    outline: none;
}

.raw-data-orbit-folder-legs::before,
.raw-data-orbit-folder-legs::after {
    content: none;
}

.result-file-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(70, 126, 97, 0.18);
    border: 1px solid rgba(118, 184, 145, 0.14);
    color: #dff8e8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .raw-data-toolbar-btn,
    .raw-data-back-btn {
        width: auto;
        min-width: 0;
        min-height: 48px;
    }

    .raw-data-orbit-shell {
        width: 100%;
        gap: 8px;
    }

    .raw-data-orbit-folder-legs {
        width: 100%;
        min-height: 0;
        max-height: 160px;
        padding: 0;
        overflow-y: auto;
        opacity: 1;
        transform: none;
    }

    .raw-data-orbit-folder-track {
        justify-content: flex-start;
        min-height: 0;
        align-content: flex-start;
        padding-top: 0;
    }

    .raw-data-orbit-folder-leg:nth-child(n) {
        transform: none;
    }

    .raw-data-orbit-core {
        width: 100%;
        padding: 14px 16px;
        border-radius: 20px;
    }

    .raw-data-orbit-folder-shape {
        width: 60px;
        height: 46px;
    }

    .raw-data-orbit-folder-tab {
        left: 8px;
        width: 22px;
        height: 9px;
    }

    .raw-data-orbit-folder-body {
        inset: 8px 0 0;
        border-radius: 12px;
    }

    .raw-data-orbit-folder-lines {
        left: 10px;
        top: 13px;
        width: 18px;
        height: 3px;
        box-shadow:
            0 6px 0 rgba(110, 71, 14, 0.28),
            0 12px 0 rgba(110, 71, 14, 0.2);
    }

    .raw-data-orbit-folder-count {
        right: 6px;
        bottom: 6px;
        min-width: 18px;
        height: 18px;
        padding: 0 6px;
        font-size: 10px;
    }

    .raw-data-orbit-title {
        font-size: 14px;
    }

    .raw-data-orbit-caption {
        max-width: none;
        font-size: 11px;
    }
}
