









#sidebar {
    transition: width var(--duration) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    #sidebar {
        transition: none;
    }
}

#app-body.left-panel-collapsed #sidebar {
    width: 72px;
    overflow: hidden;
}

#app-body.left-panel-collapsed.left-panel-strip-no-names #sidebar {
    width: 56px;
}

#app-body.left-panel-collapsed .left-panel {
    height: 100%;
}

#app-body.left-panel-collapsed .left-panel-content {
    display: none;
}







#main > .left-panel,
#main > .left-panel > .left-panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#main > .left-panel .left-panel-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}



.left-panel-header {
    display: flex;
    justify-content: flex-end;
    padding: 6px 8px 0;
}

.left-panel-header:empty {
    display: none;
}

.left-panel-tab {
    min-width: 44px;
    min-height: 36px;
    padding: 4px 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--gold);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -1px;
    cursor: pointer;
}

.left-panel-tab:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.left-panel-tab:focus-visible,
.panel-item-fold:focus-visible,
.panel-strip-entry:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}



.left-panel-items {
    padding: 4px 8px 0;
}

.panel-item-heading {
    display: flex;
    align-items: center;
    gap: 4px;
}

.panel-item-slot {
    flex: 1;
    min-width: 0;
}



.panel-item-count {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 11px;
    background: rgba(var(--accent-rgb), 0.18);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.panel-item:not(.panel-item-folded) .panel-item-count,
.panel-item-count[hidden] {
    display: none;
}



.panel-item-heading:has(.tools-row-count) > .panel-item-count {
    display: none;
}

.panel-item-fold {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--gold);
    cursor: pointer;
}

.panel-item-chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--duration) var(--ease);
}

.panel-item-folded .panel-item-chevron {
    transform: rotate(-90deg);
}

.panel-item-body[hidden] {
    display: none;
}


.panel-item-body .conversation-list {
    padding: 0;
}


.left-panel-reordering .panel-item-body {
    display: none;
}

.panel-item-held .panel-item-heading {
    background: rgba(var(--accent-rgb), 0.12);
    border-radius: var(--radius-bubble);
}

.panel-item-dragging .panel-item-heading {
    background: rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-bubble);
    box-shadow: var(--shadow-sm);
}




.tools-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 44px;
    padding: 16px 14px;
    margin-bottom: 4px;
    background: none;
    border: 0;
    border-radius: var(--radius-bubble);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}




@media (hover: hover) {
    .tools-row:hover {
        background: rgba(var(--accent-rgb), 0.1);
        box-shadow: var(--shadow-sm);
    }
}

.tools-row:active {
    background: rgba(var(--accent-rgb), 0.18);
}



.tools-row.active {
    background: rgba(var(--accent-rgb), 0.15);
    box-shadow: var(--shadow-sm);
}

.tools-row-glyph {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.tools-row-glyph svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tools-row-label {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}



.panel-strip {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0 12px;
    box-sizing: border-box;
}

.panel-strip[hidden] {
    display: none;
}

.panel-strip-item {
    position: relative;
}


.strip-compact .tools-row {
    width: auto;
    padding: 4px;
    margin: 0;
    gap: 0;
    justify-content: center;
}

.strip-compact .tools-row > :not(.tools-row-glyph) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.panel-strip-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--bg-primary, #fff);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}

.panel-strip-count[hidden] {
    display: none;
}

.panel-strip-entries {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.panel-strip-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 64px;
    min-height: 44px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.panel-strip-no-names .panel-strip-entry {
    width: 48px;
}

.panel-strip-entry:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.panel-strip-entry.active {
    background: rgba(var(--accent-rgb), 0.15);
    box-shadow: var(--shadow-sm);
}

.panel-strip-coin img {
    width: 32px;
    height: 32px;
    display: block;
}



.panel-strip-initial {
    display: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
}

.panel-strip-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 13px;
}



.left-panel-settings {
    display: flex;
    flex-direction: column;
}




