/* /Pages/Home.razor.rz.scp.css */
/* Sudoku App Theme */
.sudoku-container[b-5ornig29zq] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e2e8f0;
}

/* Header */
.app-header[b-5ornig29zq] {
    text-align: center;
    margin-bottom: 1.5rem;
}

.app-title[b-5ornig29zq] {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.app-subtitle[b-5ornig29zq] {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.badge-feature[b-5ornig29zq] {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* Top Toolbar */
.toolbar-card[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.toolbar-group[b-5ornig29zq] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.toolbar-label[b-5ornig29zq] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

.select-dark[b-5ornig29zq] {
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.select-dark:focus[b-5ornig29zq] {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.btn-tool[b-5ornig29zq] {
    background: #334155;
    color: #f1f5f9;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-tool:hover[b-5ornig29zq] {
    background: #475569;
    border-color: #64748b;
}

.checkbox-label[b-5ornig29zq] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"][b-5ornig29zq] {
    accent-color: #38bdf8;
    cursor: pointer;
}

/* Main Layout Grid */
.sudoku-workspace[b-5ornig29zq] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .sudoku-workspace[b-5ornig29zq] {
        grid-template-columns: auto 1fr;
        align-items: start;
    }
}

/* Board Column */
.board-column[b-5ornig29zq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* 9x9 Sudoku Board */
/* Sudoku Board Container */
.sudoku-board-container[b-5ornig29zq] {
    position: relative;
    background: #0f172a;
    border: 3px solid #64748b;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.1);
    user-select: none;
    touch-action: manipulation;
    box-sizing: border-box;
    width: min(88vw, 440px);
    height: min(88vw, 440px);
    display: block;
}

.sudoku-board-container.board-size-6[b-5ornig29zq] {
    width: min(88vw, 390px);
    height: min(88vw, 390px);
}

.sudoku-board-container.board-size-9[b-5ornig29zq] {
    width: min(88vw, 440px);
    height: min(88vw, 440px);
}

.sudoku-board-container.board-size-12[b-5ornig29zq] {
    width: min(88vw, 490px);
    height: min(88vw, 490px);
}

.sudoku-board-container.board-size-16[b-5ornig29zq] {
    width: min(88vw, 540px);
    height: min(88vw, 540px);
}

.sudoku-board[b-5ornig29zq] {
    display: grid;
    width: 100%;
    height: 100%;
    background: #1e293b;
    gap: 1px;
    box-sizing: border-box;
    overflow: hidden;
}

.sudoku-cell[b-5ornig29zq] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.12s ease;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    line-height: 1;
}

.board-size-6 .sudoku-cell[b-5ornig29zq] {
    font-size: 2.1rem;
}

.board-size-9 .sudoku-cell[b-5ornig29zq] {
    font-size: 1.55rem;
}

.board-size-12 .sudoku-cell[b-5ornig29zq] {
    font-size: 1.15rem;
}

.board-size-16 .sudoku-cell[b-5ornig29zq] {
    font-size: 0.85rem;
}

/* Block Boundary Styling */
.sudoku-cell.border-right-thick[b-5ornig29zq] {
    border-right: 3px solid #64748b;
}

.sudoku-cell.border-bottom-thick[b-5ornig29zq] {
    border-bottom: 3px solid #64748b;
}

/* Cell States */
.sudoku-cell:hover[b-5ornig29zq] {
    background: #1e293b;
}

.sudoku-cell.selected[b-5ornig29zq] {
    background: #1e3a8a !important;
    outline: 2px solid #38bdf8;
    z-index: 2;
}

.sudoku-cell.related-group[b-5ornig29zq] {
    background: #172554;
}

.sudoku-cell.matching-number[b-5ornig29zq] {
    background: #1e293b;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.sudoku-cell.clue-cell[b-5ornig29zq] {
    color: #f8fafc;
}

.sudoku-cell.user-cell[b-5ornig29zq] {
    color: #38bdf8;
}

.sudoku-cell.solved-cell[b-5ornig29zq] {
    color: #34d399;
}

.sudoku-cell.step-affected-cell[b-5ornig29zq] {
    background: rgba(16, 185, 129, 0.3) !important;
    outline: 2px solid #10b981;
    z-index: 3;
    animation: pulseCell-b-5ornig29zq 1.2s infinite alternate;
}

.sudoku-cell.step-affected-group[b-5ornig29zq] {
    background: rgba(99, 102, 241, 0.22);
}

@keyframes pulseCell-b-5ornig29zq {
    0% { transform: scale(0.97); box-shadow: inset 0 0 8px rgba(16, 185, 129, 0.5); }
    100% { transform: scale(1.02); box-shadow: inset 0 0 14px rgba(16, 185, 129, 0.9); }
}

/* Interactive Forcing Chain Cell Highlighting */
.sudoku-cell.chain-source-cell[b-5ornig29zq] {
    background: rgba(56, 189, 248, 0.35) !important;
    outline: 2px solid #38bdf8 !important;
    z-index: 5;
    animation: pulseSource-b-5ornig29zq 1.2s infinite alternate;
}

@keyframes pulseSource-b-5ornig29zq {
    0% { box-shadow: inset 0 0 6px rgba(56, 189, 248, 0.6); }
    100% { box-shadow: inset 0 0 16px rgba(56, 189, 248, 1); }
}

.sudoku-cell.chain-target-cell[b-5ornig29zq] {
    background: rgba(16, 185, 129, 0.35) !important;
    outline: 2px solid #10b981 !important;
    z-index: 5;
    animation: pulseTarget-b-5ornig29zq 1.2s infinite alternate;
}

@keyframes pulseTarget-b-5ornig29zq {
    0% { box-shadow: inset 0 0 6px rgba(16, 185, 129, 0.6); }
    100% { box-shadow: inset 0 0 16px rgba(16, 185, 129, 1); }
}

.sudoku-cell.chain-enabling-cell[b-5ornig29zq] {
    background: rgba(168, 85, 247, 0.22) !important;
    outline: 2px dashed #a855f7 !important;
    z-index: 4;
}

/* Candidates Grid inside Cell */
/* Candidates Grid inside Cell */
.candidates-grid[b-5ornig29zq] {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 1px;
    box-sizing: border-box;
}

.candidate-num[b-5ornig29zq] {
    font-size: 0.65rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 0;
    min-height: 0;
    user-select: none;
}

.board-size-6 .candidate-num[b-5ornig29zq] {
    font-size: 0.82rem;
}

.board-size-12 .candidate-num[b-5ornig29zq] {
    font-size: 0.55rem;
}

.board-size-16 .candidate-num[b-5ornig29zq] {
    font-size: 0.44rem;
}

.candidate-num.active[b-5ornig29zq] {
    color: #94a3b8;
}

.candidate-num.eliminated-target[b-5ornig29zq] {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.28);
    border-radius: 2px;
    text-decoration: line-through;
    font-weight: 800;
    animation: pulseElimination-b-5ornig29zq 1.1s infinite alternate;
}

@keyframes pulseElimination-b-5ornig29zq {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 6px rgba(239, 68, 68, 0.8); }
}

/* Numpad Keypad */
.numpad-container[b-5ornig29zq] {
    width: min(88vw, 440px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.board-column:has(.board-size-6) .numpad-container[b-5ornig29zq] {
    width: min(88vw, 390px);
}

.board-column:has(.board-size-12) .numpad-container[b-5ornig29zq] {
    width: min(88vw, 490px);
}

.board-column:has(.board-size-16) .numpad-container[b-5ornig29zq] {
    width: min(88vw, 540px);
}

.numpad-grid[b-5ornig29zq] {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
}

.btn-numpad[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-numpad:hover[b-5ornig29zq] {
    background: #334155;
    border-color: #38bdf8;
    color: #38bdf8;
}

.btn-numpad:active[b-5ornig29zq] {
    transform: scale(0.95);
}

.numpad-actions[b-5ornig29zq] {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-action-pill[b-5ornig29zq] {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.btn-action-pill:hover[b-5ornig29zq] {
    background: #334155;
    color: #f1f5f9;
}

.btn-action-pill.active[b-5ornig29zq] {
    background: #4338ca;
    border-color: #6366f1;
    color: #ffffff;
}

/* Sidebar / Explanation Panel */
.sidebar-column[b-5ornig29zq] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* Main Action Buttons Card */
.actions-card[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.btn-explain[b-5ornig29zq] {
    flex: 2;
    min-width: 180px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    transition: all 0.15s ease;
}

.btn-explain:hover:not(:disabled)[b-5ornig29zq] {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.45);
}

.btn-explain:disabled[b-5ornig29zq] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-fast-solve[b-5ornig29zq] {
    flex: 1;
    min-width: 130px;
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #0284c7;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-fast-solve:hover:not(:disabled)[b-5ornig29zq] {
    background: rgba(2, 132, 199, 0.15);
    border-color: #38bdf8;
}

.btn-fast-solve:disabled[b-5ornig29zq] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status / Stats Banner */
.stats-banner[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-item[b-5ornig29zq] {
    display: flex;
    flex-direction: column;
}

.stat-label[b-5ornig29zq] {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-value[b-5ornig29zq] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.stat-badge[b-5ornig29zq] {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-easy[b-5ornig29zq] { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.badge-medium[b-5ornig29zq] { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.badge-hard[b-5ornig29zq] { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }
.badge-expert[b-5ornig29zq] { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid #a855f7; }

/* Explanation Walkthrough Card */
.explainer-card[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.explainer-card-header[b-5ornig29zq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
}

.explainer-title[b-5ornig29zq] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Playback Controls */
.playback-controls[b-5ornig29zq] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    background: #0f172a;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #334155;
}

.btn-playback[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #475569;
    color: #f1f5f9;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-playback:hover:not(:disabled)[b-5ornig29zq] {
    background: #334155;
    border-color: #38bdf8;
}

.btn-playback:disabled[b-5ornig29zq] {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-playback-play[b-5ornig29zq] {
    background: #4f46e5;
    border-color: #6366f1;
    color: #ffffff;
    min-width: 75px;
}

.btn-playback-play:hover:not(:disabled)[b-5ornig29zq] {
    background: #4338ca;
}

.speed-select[b-5ornig29zq] {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 0.35rem;
}

/* Active Deduction Step Banner */
.active-step-card[b-5ornig29zq] {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-left: 4px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.step-meta[b-5ornig29zq] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.step-number-tag[b-5ornig29zq] {
    background: #10b981;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.step-type-tag[b-5ornig29zq] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.step-type-tag.badge-pointing[b-5ornig29zq],
.step-type-tag.badge-boxline[b-5ornig29zq] {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.step-type-tag.badge-naked-subset[b-5ornig29zq] {
    color: #34d399;
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.4);
}

.step-type-tag.badge-hidden-subset[b-5ornig29zq] {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.18);
    border-color: rgba(244, 114, 182, 0.4);
}

.step-type-tag.badge-fish[b-5ornig29zq] {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.4);
}

.step-type-tag.badge-wing[b-5ornig29zq] {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.4);
}

.step-type-tag.badge-forcing[b-5ornig29zq] {
    color: #f87171;
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.4);
}

.step-type-tag.badge-lookahead[b-5ornig29zq] {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.4);
}

.step-type-tag.badge-placement[b-5ornig29zq] {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.18);
    border-color: rgba(96, 165, 250, 0.4);
}

/* Board Arrow Overlay */
[b-5ornig29zq] .board-arrow-overlay,
.board-arrow-overlay[b-5ornig29zq] {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: calc(100% - 6px) !important;
    height: calc(100% - 6px) !important;
    pointer-events: none !important;
    z-index: 20 !important;
}

[b-5ornig29zq] .animated-arrow-line,
.animated-arrow-line[b-5ornig29zq] {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.85));
    animation: dashOffset-b-5ornig29zq 1.6s linear infinite;
}

@keyframes dashOffset-b-5ornig29zq {
    from {
        stroke-dashoffset: 18;
    }
    to {
        stroke-dashoffset: 0;
    }
}

[b-5ornig29zq] .arrow-label-group text,
.arrow-label-group text[b-5ornig29zq] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.step-explanation-text[b-5ornig29zq] {
    font-size: 1rem;
    line-height: 1.5;
    color: #f1f5f9;
    margin: 0;
    font-weight: 500;
}

/* Steps List Scroll Area */
.steps-list-container[b-5ornig29zq] {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
}

.step-row-item[b-5ornig29zq] {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #1e293b;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: background-color 0.15s ease;
}

.step-row-item:last-child[b-5ornig29zq] {
    border-bottom: none;
}

.step-row-item:hover[b-5ornig29zq] {
    background: #1e293b;
}

.step-row-item.current[b-5ornig29zq] {
    background: rgba(16, 185, 129, 0.2);
    border-left: 3px solid #10b981;
}

.step-row-text[b-5ornig29zq] {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #cbd5e1;
}

/* Modal for Import / Export */
.modal-overlay[b-5ornig29zq] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-dialog-box[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-title[b-5ornig29zq] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.modal-textarea[b-5ornig29zq] {
    width: 100%;
    height: 120px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #f1f5f9;
    padding: 0.75rem;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
}

.modal-textarea:focus[b-5ornig29zq] {
    border-color: #38bdf8;
}

.modal-actions[b-5ornig29zq] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Progress Cards (Generation & Solving) */
.progress-card[b-5ornig29zq] {
    background: #1e293b;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.progress-header[b-5ornig29zq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #93c5fd;
    font-weight: 600;
}

.progress-track[b-5ornig29zq] {
    width: 100%;
    height: 8px;
    background: #0f172a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill[b-5ornig29zq] {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transition: width 0.2s ease;
}

.btn-cancel-small[b-5ornig29zq] {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-cancel-small:hover[b-5ornig29zq] {
    background: #b91c1c;
}

/* Proof Chain */
.proof-chain-container[b-5ornig29zq] {
    margin-top: 0.65rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0.6rem;
    max-height: 140px;
    overflow-y: auto;
}

.proof-chain-title[b-5ornig29zq] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.3rem;
}

.proof-chain-step[b-5ornig29zq] {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-family: monospace;
    padding: 0.1rem 0;
}

/* Custom pattern input */
.input-pattern[b-5ornig29zq] {
    background: #0f172a;
    border: 1px solid #475569;
    color: #f1f5f9;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    width: 110px;
}

.input-pattern:focus[b-5ornig29zq] {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Selected Arrow Line Highlight */
[b-5ornig29zq] .selected-arrow-line,
.selected-arrow-line[b-5ornig29zq] {
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.95)) !important;
}

/* Deep Lookahead Card (Depth > 1) */
.deep-lookahead-card[b-5ornig29zq] {
    margin-top: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 10px rgba(168, 85, 247, 0.08);
}

.deep-lookahead-header[b-5ornig29zq] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding-bottom: 0.5rem;
}

.deep-lookahead-icon[b-5ornig29zq] {
    font-size: 1.2rem;
}

.deep-lookahead-title-group[b-5ornig29zq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 0.5rem;
}

.deep-lookahead-title[b-5ornig29zq] {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e9d5ff;
}

.deep-lookahead-badge[b-5ornig29zq] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.deep-lookahead-notice[b-5ornig29zq] {
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid #a855f7;
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
}

.deep-lookahead-notice p[b-5ornig29zq] {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.deep-lookahead-branches[b-5ornig29zq] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.deep-lookahead-branches-title[b-5ornig29zq] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.deep-lookahead-list[b-5ornig29zq] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 180px;
    overflow-y: auto;
}

.deep-lookahead-item[b-5ornig29zq] {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
    border-left: 2px solid rgba(168, 85, 247, 0.4);
}

.deep-lookahead-bullet[b-5ornig29zq] {
    color: #a855f7;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Forcing Chain Links Walkthrough Panel */
.chain-walkthrough-container[b-5ornig29zq] {
    margin-top: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 260px;
    overflow-y: auto;
}

.chain-walkthrough-header[b-5ornig29zq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.chain-header-title[b-5ornig29zq] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reset-selection[b-5ornig29zq] {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-reset-selection:hover[b-5ornig29zq] {
    background: #38bdf8;
    color: #0f172a;
}

.active-link-callout[b-5ornig29zq] {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #475569;
    border-left: 3px solid #38bdf8;
    border-radius: 6px;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.callout-header[b-5ornig29zq] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.callout-badge[b-5ornig29zq] {
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.callout-link-coords[b-5ornig29zq] {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
}

.callout-text[b-5ornig29zq] {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-family: monospace;
}

.callout-enabling[b-5ornig29zq] {
    font-size: 0.75rem;
    color: #c084fc;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    background: rgba(168, 85, 247, 0.12);
    border-radius: 4px;
    padding: 0.3rem 0.45rem;
}

.enabling-icon[b-5ornig29zq] {
    flex-shrink: 0;
}

.chain-branch-block[b-5ornig29zq] {
    border-left: 3px solid #38bdf8;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0 6px 6px 0;
    padding: 0.45rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chain-branch-header[b-5ornig29zq] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.branch-dot[b-5ornig29zq] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.chain-step-list[b-5ornig29zq] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chain-step-item[b-5ornig29zq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.12s ease;
}

.chain-step-item:hover[b-5ornig29zq] {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(56, 189, 248, 0.4);
}

.chain-step-item.selected[b-5ornig29zq] {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.chain-step-main[b-5ornig29zq] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.chain-step-badge[b-5ornig29zq] {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.chain-step-text[b-5ornig29zq] {
    font-size: 0.75rem;
    color: #e2e8f0;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chain-enabling-tag[b-5ornig29zq] {
    font-size: 0.68rem;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    flex-shrink: 0;
}

