.local-material-dock {
    --dock-card-w: 118px;
    --dock-card-h: 154px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1600;
    height: 176px;
    pointer-events: none;
    transform: translateY(0);
    transition: transform .22s ease;
}

.local-material-dock.collapsed {
    transform: translateY(calc(100% - 34px));
}

.local-dock-toggle {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -2px);
    width: 82px;
    height: 34px;
    border: 1px solid rgba(36, 48, 68, .14);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, .92);
    color: #243044;
    box-shadow: 0 -10px 26px rgba(36, 48, 68, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    font-size: 18px;
    font-weight: 800;
    user-select: none;
}

.local-dock-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 162px;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid rgba(36, 48, 68, .12);
    box-shadow: 0 -16px 44px rgba(36, 48, 68, .10);
    pointer-events: auto;
    overflow-x: auto;
    overflow-y: hidden;
}

.local-dock-content {
    min-width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 56px 12px;
}

.local-dock-item,
.local-dock-upload-card {
    width: var(--dock-card-w);
    height: var(--dock-card-h);
    flex: 0 0 var(--dock-card-w);
    border-radius: 12px;
    border: 1px solid rgba(36, 48, 68, .14);
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(36, 48, 68, .08);
}

.local-dock-item {
    cursor: grab;
}

.local-dock-item:active {
    cursor: grabbing;
}

.local-dock-item.selected {
    outline: 2px solid #2b6eea;
    outline-offset: 2px;
}

.local-dock-item.dock-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.local-dock-item.dock-drop-before {
    box-shadow: -5px 0 0 #2563eb, 0 10px 20px rgba(37, 99, 235, 0.18);
}

.local-dock-item.dock-drop-after {
    box-shadow: 5px 0 0 #2563eb, 0 10px 20px rgba(37, 99, 235, 0.18);
}

.local-dock-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.local-dock-delete {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(31, 41, 55, .78);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
}

.local-dock-check {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 18px;
    height: 18px;
    accent-color: #2b6eea;
    z-index: 2;
}

.local-dock-name {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #243044;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.local-dock-upload-card {
    border: 1px dashed rgba(36, 48, 68, .28);
    background: rgba(249, 250, 252, .92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #435167;
    cursor: pointer;
}

.local-dock-upload-plus {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8e4dd;
    color: #8b98aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
}

.local-dock-upload-title {
    font-size: 13px;
    font-weight: 800;
    color: #243044;
}

.local-dock-upload-sub {
    font-size: 11px;
    color: #758297;
    line-height: 1.35;
    text-align: center;
}

.local-dock-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 8px;
    display: grid;
    gap: 4px;
    z-index: 2;
}

.local-dock-actions button {
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(43, 110, 234, .25);
    background: rgba(255, 255, 255, .9);
    color: #2b5caa;
    font-size: 11px;
    cursor: pointer;
}

.local-dock-actions .danger {
    border-color: rgba(184, 91, 54, .24);
    color: #b85b36;
}

.local-dock-count {
    position: absolute;
    right: 12px;
    top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #243044;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.local-material-dock.drag-over .local-dock-strip {
    background: rgba(238, 246, 255, .97);
    border-top-color: rgba(43, 110, 234, .45);
}

@media (max-width: 900px) {
    .local-material-dock {
        --dock-card-w: 104px;
        --dock-card-h: 136px;
        height: 158px;
    }
    .local-dock-strip {
        height: 146px;
    }
    .local-dock-content {
        justify-content: flex-start;
        padding-left: 18px;
        padding-right: 18px;
    }
}
