﻿.collapsible {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.collapsible.is-open {
    border-color: var(--sc-line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.collapsible-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--sc-text);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.collapsible.is-static .collapsible-header {
    cursor: default;
}

.collapsible-leading {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--sc-text-muted);
}

.collapsible-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collapsible-meta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.collapsible-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--sc-text-muted);
    transition: transform 0.25s var(--sc-ease-out);
}

.collapsible.is-open .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    width: 100%;
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 12px 12px;
    animation: collapsible-open 0.25s var(--sc-ease-out) both;
}

@keyframes collapsible-open {
    from { opacity: 0; }
    to { opacity: 1; }
}
