/* ===== Full-height gray panel ===== */
.dep-panel {
    background: #f0f2f5;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    height: calc(100vh - 185px);
    overflow: hidden;
}

.dep-panel ::-webkit-scrollbar { width: 5px; }
.dep-panel ::-webkit-scrollbar-track { background: transparent; }
.dep-panel ::-webkit-scrollbar-thumb { background: #c0cdd6; border-radius: 3px; }
.dep-panel ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.dep-panel * { scrollbar-width: thin; scrollbar-color: #c0cdd6 transparent; }

/* ===== Two-column layout ===== */
.dep-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: stretch;
    height: 100%;
}

.dep-col {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e5e9;
}

.dep-col > .dep-col-empty {
    flex: 1;
}

.dep-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}


.dep-col-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollable area for independent column cards + toggle */
.dep-col-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.dep-col-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 10px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.dep-col-no-results i {
    font-size: 1.2rem;
    opacity: 0.5;
}

.dep-col-independent .dep-col-cards {
    background: #f3f5f7;
    border: 1px solid rgb(0 0 0 / 15%);
    border-radius: 8px;
    padding: 8px;
}

/* Search input in left column */
.dep-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.dep-search-icon {
    position: absolute;
    left: 10px;
    font-size: 0.7rem;
    color: #94a3b8;
    pointer-events: none;
}

.dep-search-input {
    width: 100%;
    padding: 6px 28px 6px 28px;
    border: 1px solid #e2e5e9;
    border-radius: 6px;
    font-size: 0.75rem;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.dep-search-input:focus {
    border-color: #003951;
    background: white;
}

.dep-search-clear {
    position: absolute;
    right: 10px;
    font-size: 0.65rem;
    color: #94a3b8;
    cursor: pointer;
}

.dep-search-clear:hover {
    color: #dc2626;
}

.dep-nonfuture-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.72rem;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
}

.dep-nonfuture-toggle:hover {
    background: #eef1f5;
    border-color: #cbd5e1;
    color: #003951;
}

.dep-nonfuture-toggle-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dep-nonfuture-icon {
    font-size: 0.7rem;
    opacity: 0.8;
}

.dep-nonfuture-chevron {
    font-size: 0.5rem;
    opacity: 0.5;
}

.dep-col-chains .dep-col-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.dep-col-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: #aaa;
    font-size: 0.82rem;
}

.dep-col-empty-icon { font-size: 1.5rem; opacity: 0.4; }

/* ===== Chain groups ===== */
.dep-chain-group {
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
    border-radius: 8px;
    border: 1px solid rgb(0 0 0 / 12%);
}

.dep-chain-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #0d4a60 40%, #136275);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: filter 0.15s;
}

.dep-chain-header-open {
    border-radius: 8px 8px 0 0;
}

.dep-chain-header:hover {
    filter: brightness(1.1);
}

.dep-chain-header-done {
    background: linear-gradient(90deg, #166534 40%, #1a7a3a);
}

.dep-chain-header-done:hover {
    filter: brightness(1.1);
}

.dep-chain-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.dep-chain-header-icon { font-size: 0.85rem; opacity: 0.7; }

.dep-chain-header-title {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dep-chain-header-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding-left: 20px;
}

.dep-stat-steps {
    background: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.9) !important;
}

.dep-chain-progress-bar {
    position: relative;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 9px;
    overflow: hidden;
    margin-top: 4px;
}

.dep-chain-progress-fill {
    height: 100%;
    background: rgba(255,255,255,0.35);
    border-radius: 9px;
}

.dep-chain-progress-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.3px;
}


.dep-section-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #003951;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.dep-section-icon-muted { background: #64748b; }

.dep-section-title { font-weight: 700; font-size: 0.78rem; color: #003951; line-height: 1.2; }
.dep-section-subtitle { font-size: 0.65rem; color: #64748b; }

/* ===== Chain list ===== */
.dep-chain-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #f3f5f7;
    border-left: 1px solid #e2e5e9;
    border-right: 1px solid #e2e5e9;
    border-bottom: 1px solid #e2e5e9;
    border-radius: 0 0 8px 8px;
    padding: 4px 8px;
    max-height: calc(100vh - 430px);
    overflow-y: auto;
}

.dep-chain-list-single {
    border-bottom: none;
}


/* ===== Card ===== */
.dep-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 10px;
    border: 1px solid rgb(0 0 0 / 15%);
    border-left-width: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: grab;
    transition: box-shadow 0.15s;
    overflow: hidden;
}

.dep-card:hover {
    border-color: #b0b8c2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
}

.dep-card-body {
    flex: 1;
    min-width: 0;
    position: relative;
}

.dep-card:hover {
    box-shadow: 0 4px 16px rgba(0,57,81,0.10);
    transform: translateY(-1px);
}

.dep-card-inprogress { border-left-color: #1a8da8; }
.dep-card-done       { border-left-color: #28a745; }
.dep-card-future     { border-left-color: #ED880E; }
.dep-card-blocked    { border-left-color: #dc2626; background: #fffbfb; }
.dep-card-blocked:hover { background: #fff5f5; }


.dep-card-inner { padding: 10px 12px 10px 0; display: flex; flex-direction: column; gap: 6px; }

/* ===== Card top: step + title + badges ===== */
.dep-card-top { display: flex; align-items: center; gap: 10px; }

.dep-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px;
    background: #003951; color: white;
    font-size: 0.78rem; font-weight: 800; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,57,81,0.2);
}

.dep-step-done    { background: linear-gradient(135deg, #1e7e34, #28a745); box-shadow: 0 2px 6px rgba(40,167,69,0.25); }
.dep-step-future  { background: linear-gradient(135deg, #c77a0b, #ED880E); box-shadow: 0 2px 6px rgba(237,136,14,0.25); }
.dep-step-blocked { background: #dc2626; box-shadow: 0 2px 6px rgba(220,38,38,0.25); }

.dep-card-title-area { flex: 1; min-width: 0; }
.dep-card-name {
    font-weight: 700; font-size: 0.92rem; color: #1a1a1a; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dep-card-desc {
    font-size: 0.78rem; color: #777; margin-top: 3px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== State badges (Scheduler style, no border) ===== */
.pw-state-badge {
    font-size: 0.65rem; font-weight: 700; padding: 4px 12px;
    border-radius: 12px; letter-spacing: 0.3px;
    white-space: nowrap;
}

.pw-state-inprogress { background: linear-gradient(135deg, #065470, #1a8da8); color: white; }
.pw-state-done       { background: linear-gradient(135deg, #1e7e34, #28a745); color: white; }
.pw-state-future     { background: linear-gradient(135deg, #c77a0b, #ED880E); color: white; }

/* ===== Date status row ===== */
.dep-card-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    overflow: hidden;
    min-width: 0;
    border: 1px solid transparent;
}

.dep-date-icon { font-size: 0.68rem; flex-shrink: 0; }
.dep-date-range { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dep-date-status { margin-left: auto; font-weight: 700; font-size: 0.68rem; white-space: nowrap; }
.dep-status-accent  { color: #b45309; }
.dep-status-danger  { color: #dc2626; }
.dep-status-success { color: #166534; }
.dep-status-primary { color: #065470; }
.dep-status-muted   { color: #475569; }

.dep-date-future  { background: #fef3c7; color: #92400e; border-color: rgba(237, 136, 14, 0.2); }
.dep-date-active  { background: #e0f2fe; color: #065470; border-color: rgba(6, 84, 112, 0.2); }
.dep-date-done    { background: #dcfce7; color: #166534; border-color: rgba(22, 101, 52, 0.2); }
.dep-date-late    { background: #fee2e2; color: #991b1b; border-color: rgba(220, 38, 38, 0.25); }

/* ===== Compact info chips ===== */
.dep-card-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    padding: 6px 8px;
    background: #f0f2f5;
    border-radius: 6px;
}

.dep-card-info-row .b-tooltip {
    display: flex;
}

.dep-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
}

.dep-info-chip-done {
    background: #fff;
    border-color: #e2e5e9;
    color: #475569;
}

.dep-info-icon {
    font-size: 0.65rem;
    flex-shrink: 0;
    color: inherit;
    opacity: 0.7;
}

.stat-success { color: #16a34a !important; }
.stat-warning { color: #b45309 !important; }
.stat-danger  { color: #dc2626 !important; }

/* ===== Progress bar ===== */
.dep-card-progress {
    position: relative;
    height: 12px;
    background: rgba(0,57,81,0.25);
    border-radius: 6px;
    overflow: hidden;
    margin: 0 8px;
}

.dep-progress-bar-fill {
    height: 100%; border-radius: 6px;
    transition: width 0.3s ease;
}

.dep-progress-pct {
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; font-weight: 700;
    color: white;
    text-shadow: 0 0 3px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
}

/* ===== Connector ===== */
.dep-connector {
    display: flex; flex-direction: column; align-items: center;
    height: 28px; min-height: 28px; flex-shrink: 0; margin: 3px 0; padding: 0;
}

.dep-connector-line {
    width: 2px; flex: 1; background: #c0cdd6;
    border-radius: 1px;
}

.dep-connector-chevron {
    color: #94a3b8;
    font-size: 0.55rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ===== Drag & Drop ===== */
.dep-draggable-wrap {
    cursor: grab;
    transition: opacity 0.2s, transform 0.15s;
}

.dep-draggable-wrap:active,
.dep-draggable-wrap:active .dep-card,
.dep-draggable-wrap:active .dep-drag-handle { cursor: grabbing; }

.dep-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 0.5rem;
    transition: color 0.15s;
    cursor: grab;
}

.dep-draggable-wrap:hover .dep-drag-handle {
    color: #003951;
}

.dep-drag-handle-disabled {
    color: #e9ecef !important;
    cursor: not-allowed;
}

.dep-dragging {
    opacity: 0.4;
    transform: scale(0.96);
}

.dep-no-drag,
.dep-no-drag .dep-card,
.dep-no-drag .dep-drag-handle,
.dep-no-drag:active,
.dep-no-drag:active .dep-card,
.dep-no-drag:active .dep-drag-handle {
    cursor: default;
}

/* Insert zone between chain cards */
.dep-insert-zone {
    height: 28px;
    min-height: 28px;
    flex-shrink: 0;
    margin: 3px 8px;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Between-card zones: hidden by default, shown on drag */
.dep-insert-zone-between {
    display: none;
}

.is-dragging .dep-insert-zone-between {
    display: flex;
    border: 2px dashed #003951;
    background: rgba(0,57,81,0.06);
    animation: dep-zone-pulse 1.5s ease-in-out infinite;
}

/* Hide connector when dragging (unless disabled zone) */
.is-dragging .dep-connector:not(.dep-connector-only) {
    display: none;
}

/* End-of-chain / standalone zones: collapsed by default, expand on drag */
.dep-insert-zone-end {
    height: 4px;
}

.is-dragging .dep-insert-zone-end {
    height: 28px;
    border: 2px dashed #003951;
    background: rgba(0,57,81,0.06);
    animation: dep-zone-pulse 1.5s ease-in-out infinite;
}

.dep-insert-zone-end .dep-insert-label {
    display: none;
}

.is-dragging .dep-insert-zone-end .dep-insert-label {
    display: block;
}

@keyframes dep-zone-pulse {
    0%, 100% { border-color: rgba(0,57,81,0.3); background: rgba(0,57,81,0.03); }
    50% { border-color: #003951; background: rgba(0,57,81,0.08); }
}

.dep-insert-label {
    font-size: 0.6rem;
    color: #003951;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.7;
}

.dep-insert-zone-active {
    height: auto !important;
    min-height: 40px !important;
    padding: 4px 8px;
    background: rgba(0,57,81,0.05) !important;
    border: 2px dashed #003951 !important;
    border-radius: 6px;
    opacity: 1 !important;
    animation: none !important;
}

.dep-insert-zone-active .dep-insert-label,
.is-dragging .dep-insert-zone-active .dep-insert-label {
    display: none !important;
}

.dep-ghost-card {
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e5e9;
    border-left: 4px solid #003951;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,57,81,0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.dep-drop-active {
    outline: 2px dashed #003951;
    outline-offset: -2px;
    background: rgba(0,57,81,0.04) !important;
    border-radius: 10px;
}

/* ===== is-dragging: pulse valid targets ===== */
.is-dragging .dep-col-independent,
.is-dragging .dep-new-chain-zone {
    animation: dep-pulse 1.5s ease-in-out infinite;
}

@keyframes dep-pulse {
    0%, 100% { border-color: #cbd5e1; }
    50% { border-color: #003951; }
}

/* ===== Just-moved animation ===== */
.dep-card-just-moved {
    animation: dep-flash 0.6s ease;
}

@keyframes dep-flash {
    0% { background: #fef3c7; }
    100% { background: transparent; }
}

/* ===== Dragging smoothness ===== */
.dep-dragging {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
    transition: opacity 0.3s, transform 0.3s;
}

/* ===== Card action buttons ===== */
.dep-card-actions {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 10;
    gap: 2px;
    flex-direction: row;
}

.dep-draggable-wrap:hover .dep-card-actions,
.dep-draggable-wrap.dep-picker-open .dep-card-actions {
    display: flex;
}

.dep-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: white;
    border: 1px solid #e2e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #003951;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dep-action-btn:hover {
    background: #003951;
    color: white;
    border-color: #003951;
}

.dep-action-btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.dep-action-btn-success:hover {
    background: #28a745;
    border-color: #28a745;
}

/* ===== Chain picker dropdown ===== */
.dep-picker-chevron {
    font-size: 0.45rem;
    margin-left: 1px;
    opacity: 0.7;
}

.dep-picker-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.dep-chain-picker-dropdown {
    position: fixed;
    min-width: 240px;
    background: white;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
    z-index: 1000;
    overflow: hidden;
}

.dep-chain-picker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fb;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.72rem;
    font-weight: 700;
    color: #003951;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dep-chain-picker-header-icon {
    font-size: 0.65rem;
    color: #64748b;
}

.dep-chain-picker-list {
    padding: 4px 0;
    max-height: 240px;
    overflow-y: auto;
}

.dep-chain-picker-item {
    padding: 10px 14px;
    font-size: 0.78rem;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.1s;
}

.dep-chain-picker-item:hover {
    background: #f0f5f8;
}

.dep-chain-picker-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.dep-chain-picker-item:hover .dep-chain-picker-item-icon {
    background: #003951;
    color: white;
}

.dep-chain-picker-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dep-chain-picker-item-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dep-chain-picker-item-count {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.dep-chain-picker-item-arrow {
    font-size: 0.55rem;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: color 0.1s, transform 0.1s;
}

.dep-chain-picker-item:hover .dep-chain-picker-item-arrow {
    color: #003951;
    transform: translateX(2px);
}

/* ===== Overdue ===== */
.dep-card-overdue {
    border-right: 3px solid #dc2626;
}

/* ===== Chain collapse toggle ===== */
.dep-chain-collapse-icon {
    font-size: 0.45rem;
    opacity: 0.6;
}

/* ===== Chain stats chips (inside header) ===== */
.dep-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

.dep-stat-icon { font-size: 0.5rem; }

.dep-stat-done { background: rgba(40,167,69,0.25); color: #bbf7d0; }
.dep-stat-inprogress { background: rgba(3,105,161,0.25); color: #bae6fd; }
.dep-stat-future { background: rgba(237,136,14,0.25); color: #fde68a; }
.dep-stat-hours { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

/* ===== Chain all done banner ===== */
.dep-chain-all-done {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Undo bar ===== */
.dep-undo-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #1a1a1a;
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 1000;
    animation: dep-slide-up 0.3s ease;
}

@keyframes dep-slide-up {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== Empty state ===== */
.dep-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 60px 20px;
    text-align: center;
}

.dep-empty-state-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.dep-empty-state-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
}

.dep-empty-state-text {
    font-size: 0.85rem;
    color: #64748b;
    max-width: 400px;
}

/* ===== Pending new chain group ===== */
.dep-chain-group-pending {
    box-shadow: 0 1px 4px rgba(237,136,14,0.15);
}

.dep-chain-group-pending .dep-chain-header {
    background: linear-gradient(90deg, #a5650a 40%, #b5700b);
}

.dep-chain-group-pending .dep-chain-header:hover {
    filter: brightness(1.1);
}

.dep-chain-group-pending .dep-chain-list {
    background: #fffbf5;
}

/* ===== New chain drop zone ===== */
.dep-new-chain-zone {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 160px;
    border: 2px dashed #c4cad0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    transition: all 0.2s;
    cursor: default;
}

.dep-new-chain-icon {
    font-size: 1.4rem;
    opacity: 0.4;
}

.dep-new-chain-title {
    font-size: 0.82rem;
    font-weight: 600;
}

.dep-new-chain-hint {
    font-size: 0.72rem;
    opacity: 0.7;
}

.dep-new-chain-zone-dragging {
    border-color: #003951;
    background: rgba(0,57,81,0.03);
    color: #003951;
    animation: dep-pulse 1.5s ease-in-out infinite;
}

.dep-new-chain-zone-dragging .dep-new-chain-icon {
    opacity: 0.8;
}

.dep-new-chain-zone-active {
    border-color: #003951 !important;
    background: rgba(0,57,81,0.08) !important;
    color: #003951;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(0,57,81,0.1);
}

.dep-new-chain-zone-active .dep-new-chain-icon {
    opacity: 1;
}

/* ===== Hint banner ===== */
.dep-hint-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ===== Responsive: stack columns on small screens ===== */
@media (max-width: 900px) {
    .dep-layout {
        grid-template-columns: 1fr;
    }
    .dep-chain-group, .dep-new-chain-zone {
        width: 100%;
    }
