* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Тёмная тема (по умолчанию) ── */
:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface2: #232733;
    --border: #2e3347;
    --text: #e4e6f0;
    --text-dim: #8b8fa3;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --green: #00b894;
    --green-bg: rgba(0,184,148,.12);
    --yellow: #fdcb6e;
    --yellow-bg: rgba(253,203,110,.12);
    --on-yellow: #333;
    --red: #e17055;
    --red-bg: rgba(225,112,85,.12);
    --blue: #74b9ff;
    --blue-bg: rgba(116,185,255,.12);
}

/* ── Светлая тема ── */
[data-theme="light"] {
    --bg: #f0f2f5;
    --surface: #ffffff;
    --surface2: #f5f6f8;
    --border: #e0e3eb;
    --text: #1a1d27;
    --text-dim: #6b7280;
    --accent: #6c5ce7;
    --accent-light: #5b4bd5;
    --green: #059669;
    --green-bg: rgba(5,150,105,.1);
    --yellow: #d97706;
    --yellow-bg: rgba(217,119,6,.1);
    --on-yellow: #fff;
    --red: #dc2626;
    --red-bg: rgba(220,38,38,.1);
    --blue: #2563eb;
    --blue-bg: rgba(37,99,235,.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
a.btn:hover, a.kpi-card:hover, a.pagination-btn:hover { text-decoration: none; }

/* Layout */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 0 20px 24px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.sidebar-nav { flex: 1; }

/* Sidebar workflow section labels */
.sidebar-section-label {
    padding: 12px 20px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    opacity: .6;
}

/* Sidebar step numbers */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
}

.sidebar-nav a.active .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-dim);
    font-size: 14px;
    transition: all .15s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--text);
    background: var(--surface2);
    text-decoration: none;
}

.sidebar-nav a.active { border-right: 3px solid var(--accent); }

/* Role preview banner */
.role-preview-banner {
    margin: 0 12px 8px;
    padding: 6px 10px;
    background: rgba(234,179,8,.15);
    border: 1px solid rgba(234,179,8,.4);
    border-radius: 6px;
    font-size: 11px;
    color: #eab308;
    text-align: center;
    font-weight: 500;
}

/* Role switcher (admin preview) */
.role-switcher {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.role-switcher-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}
.role-switcher-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.role-switcher-group .role-btn {
    flex: 1;
    padding: 7px 4px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: var(--surface2);
    color: var(--text-dim);
    transition: all .15s;
    text-align: center;
    line-height: 1.2;
}
.role-switcher-group .role-btn:not(:last-child) {
    border-right: 1px solid var(--border);
}
.role-switcher-group .role-btn:hover {
    color: var(--text);
    background: var(--bg);
}
.role-switcher-group .role-btn.active {
    background: var(--accent);
    color: #fff;
}

/* Переключатель темы */
.theme-toggle {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.theme-btn:hover { color: var(--text); border-color: var(--accent); }

.main { margin-left: 220px; flex: 1; min-width: 0; padding: 24px 32px; }

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 { font-size: 24px; font-weight: 600; }

#dash-sticky-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    margin: -24px -32px 0;
    padding: 20px 32px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}
#dash-sticky-header + * { margin-top: 24px; }

.page-hint {
    font-size: 13px;
    color: var(--text-dim);
    margin: -16px 0 20px;
    line-height: 1.5;
}

/* Cards grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

a.kpi-card { cursor: pointer; transition: border-color .15s, transform .1s; }
a.kpi-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.kpi-card .label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.kpi-card .value { font-size: 28px; font-weight: 700; }
.kpi-card .sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.kpi-card.green .value { color: var(--green); }
.kpi-card.yellow .value { color: var(--yellow); }
.kpi-card.red .value { color: var(--red); }
.kpi-card.blue .value { color: var(--blue); }
.kpi-card.accent .value { color: var(--accent-light); }

/* Panels */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-width: 0;
}

/* Panels inside grid cells — gap handles spacing, remove extra margin */
.kpi-grid > .panel,
.kpi-grid > div > .panel {
    margin-bottom: 0;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Funnel */
.funnel-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.funnel-stage .name { width: 130px; font-size: 13px; color: var(--text-dim); }
.funnel-stage .bar-wrap { flex: 1; height: 24px; background: var(--surface2); border-radius: 6px; overflow: hidden; }
.funnel-stage .bar { height: 100%; border-radius: 6px; transition: width .4s ease; min-width: 2px; }
.funnel-stage .count { width: 50px; text-align: right; font-size: 14px; font-weight: 600; }

.bar-found     { background: var(--blue); }
.bar-response  { background: var(--accent); }
.bar-replied   { background: #a29bfe; }
.bar-watching  { background: var(--yellow); }
.bar-scheduled { background: #ffeaa7; }
.bar-interview { background: var(--green); }
.bar-offer     { background: #55efc4; }
.bar-hired     { background: #00cec9; }
.bar-rejected  { background: var(--red); }

[data-theme="light"] .bar-scheduled { background: #f59e0b; }
[data-theme="light"] .bar-offer { background: #10b981; }
[data-theme="light"] .bar-hired { background: #06b6d4; }

/* Table */
.table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    height: calc(100vh - var(--candidates-bar-h, 200px) - 80px);
    min-height: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead tr { background: var(--surface2); }

th {
    position: sticky;
    top: 0;
    z-index: 5;
    text-align: left;
    padding: 10px 12px;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th[onclick] { cursor: pointer; }
th[onclick]:hover { color: var(--text); }
th.sort-asc::after { content: ' \25B2'; font-size: 9px; color: var(--accent-light); }
th.sort-desc::after { content: ' \25BC'; font-size: 9px; color: var(--accent-light); }

td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:hover { background: var(--surface2); }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge-priority { background: var(--green-bg); color: var(--green); }
.badge-consider { background: var(--yellow-bg); color: var(--yellow); }
.badge-reject   { background: var(--red-bg); color: var(--red); }
.badge-stage    { background: var(--blue-bg); color: var(--blue); }

/* Score bar */
.score-bar { display: flex; align-items: center; gap: 8px; }
.score-bar .bar-track { width: 60px; height: 6px; background: var(--surface2); border-radius: 3px; }
.score-bar .bar-fill  { height: 100%; border-radius: 3px; }
.score-bar .num { font-weight: 600; font-size: 13px; min-width: 28px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all .15s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5b4bd5; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { opacity: .85; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover  { opacity: .85; }
.btn-ghost   { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--accent-light); border-color: var(--accent); }
.btn-active, .btn-ghost.btn-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filters select, .filters input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color .15s;
}

.filters select:focus, .filters input:focus { outline: none; border-color: var(--accent); }

/* Candidate detail */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row .label { color: var(--text-dim); font-size: 13px; }
.detail-row .val { font-weight: 500; }

/* Score breakdown */
.score-detail { margin-top: 8px; }
.score-detail .item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.score-detail .item .name { width: 200px; font-size: 13px; color: var(--text-dim); }
.score-detail .item .track { flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.score-detail .item .fill { height: 100%; border-radius: 4px; background: var(--accent); }
.score-detail .item .pts { width: 50px; text-align: right; font-weight: 600; font-size: 13px; }

/* Control panel */
.control-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-running { background: var(--green); }
.status-stopped { background: var(--red); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.control-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* Settings form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-dim); }
.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.input-field {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .15s;
}
.input-field:focus { outline: none; border-color: var(--accent); }

/* Stage select */
.stage-select {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.stage-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .15s;
}

.stage-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.stage-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Timeline */
.timeline { padding-left: 20px; border-left: 2px solid var(--border); }
.timeline-item { padding: 8px 0 8px 16px; position: relative; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
}
.timeline-item.done::before { background: var(--accent); }
.timeline-item .time { font-size: 11px; color: var(--text-dim); }
.timeline-item .event { font-size: 13px; }

/* Toast */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    animation: slideIn .3s ease;
    position: relative;
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* (mobile styles removed - desktop only app)

/* Vacancy form columns */
.vc-col-want {
    background: rgba(108,92,231,.06);
    border: 1px solid rgba(108,92,231,.15);
    border-radius: 10px;
    padding: 16px;
}

.vc-col-reject {
    background: rgba(225,112,85,.06);
    border: 1px solid rgba(225,112,85,.15);
    border-radius: 10px;
    padding: 16px;
}

[data-theme="light"] .vc-col-want {
    background: rgba(108,92,231,.05);
    border-color: rgba(108,92,231,.2);
}

[data-theme="light"] .vc-col-reject {
    background: rgba(220,38,38,.04);
    border-color: rgba(220,38,38,.15);
}

/* Section dividers */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 36px 0 20px;
}

.section-divider:first-child {
    margin-top: 0;
}

.section-divider .section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    white-space: nowrap;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Variable tags */
.var-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 3px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-family: monospace;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.var-tag:hover { background: #5b4bd5; transform: scale(1.05); }

/* Stage train (progress bar) */
.stage-train {
    display: flex;
    gap: 2px;
    overflow-x: auto;
}

.train-car {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    position: relative;
    border-top: 3px solid var(--border);
    background: var(--surface2);
}

.train-car:first-child { border-radius: 8px 0 0 8px; }
.train-car:last-child { border-radius: 0 8px 8px 0; }

.train-car:hover {
    background: var(--surface);
    border-top-color: var(--accent);
}

.car-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-passed {
    border-top-color: var(--green);
    background: var(--green-bg);
}
.car-passed .car-label { color: var(--green); }

.car-current {
    border-top-color: var(--accent);
    background: rgba(108,92,231,.15);
}
.car-current .car-label { color: var(--accent-light); font-weight: 700; }

.car-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    margin: 4px auto 0;
    animation: pulse 2s infinite;
}

.car-future {
    border-top-color: var(--border);
}

/* Vacancy form tabs */
.vc-tab {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--surface2);
    color: var(--text-dim);
    transition: all .15s;
    text-align: center;
}
.vc-tab:not(:last-child) {
    border-right: 2px solid var(--border);
}
.vc-tab:hover {
    color: var(--text);
    background: var(--bg);
}
.vc-tab.active {
    background: var(--accent);
    color: #fff;
}

.car-auto {
    opacity: 0.5;
    cursor: default;
}
.car-auto:hover {
    background: var(--surface2);
    border-top-color: var(--border);
}

.car-reject-active {
    border-top-color: var(--red);
    background: var(--red-bg);
}
.car-reject-active .car-label { color: var(--red); font-weight: 700; }

/* Kanban board */
.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    height: calc(100vh - var(--candidates-bar-h, 200px) - 24px);
    padding-bottom: 8px;
}

.kanban-column {
    min-width: 220px;
    max-width: 260px;
    flex: 0 0 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
.kanban-column::-webkit-scrollbar { display: none; }

.kanban-col-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface);
    border-radius: 12px 12px 0 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.kanban-col-title { font-size: 13px; font-weight: 600; }
.kanban-col-count {
    background: var(--surface2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
}

.kanban-cards {
    padding: 8px;
    min-height: 60px;
    transition: background .15s;
}

.kanban-col-auto .kanban-col-header {
    border-bottom-style: dashed;
}

.kanban-col-reject .kanban-col-header {
    border-bottom-color: var(--red);
    color: var(--red);
}

.kanban-cards.kanban-drop-target {
    background: var(--surface2);
    border-radius: 0 0 12px 12px;
}

.kanban-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: transform .1s, box-shadow .15s;
}

.kanban-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.kanban-card:active { cursor: grabbing; }

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-score { font-weight: 700; font-size: 14px; }

/* Reasoning text */
.reasoning {
    background: var(--surface2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-top: 8px;
}
.reasoning-section { margin-bottom: 12px; }
.reasoning-section:last-child { margin-bottom: 0; }
.reasoning-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.reasoning-section p { margin: 0; }

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 0 4px;
    flex-wrap: wrap;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    background: var(--surface2);
    border: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
}
.pagination-btn:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--surface);
}
.pagination-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination-active:hover {
    background: #5b4bd5;
    color: #fff;
    border-color: #5b4bd5;
}
.pagination-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 36px;
    color: var(--text-dim);
    font-size: 14px;
}
.pagination-info {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-dim);
}

/* ── Wizard stepper ── */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 16px 0;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .15s;
}
.wizard-step:hover { background: var(--surface2); }

.wizard-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--border);
    color: var(--text-dim);
    background: var(--surface);
    transition: all .2s;
    flex-shrink: 0;
}

.wizard-step.active .wizard-step-num {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.wizard-step.completed .wizard-step-num {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}
.wizard-step.completed .wizard-step-num span { font-size: 0; }
.wizard-step.completed .wizard-step-num::after { content: '\2713'; font-size: 14px; }

.wizard-step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}
.wizard-step.active .wizard-step-label { color: var(--text); font-weight: 600; }
.wizard-step.completed .wizard-step-label { color: var(--green); }

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    min-width: 20px;
}

.wizard-panel-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

/* Wizard mode buttons */
/* Wizard content blocks */
.wz-block {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    margin-bottom: 0;
    transition: border-color .2s, box-shadow .2s;
}
.wz-block:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.wz-block-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.wz-block input, .wz-block select, .wz-block textarea {
    background: var(--bg);
    border-color: var(--border);
}
.wz-block input:focus, .wz-block select:focus, .wz-block textarea:focus {
    border-color: var(--accent);
    background: var(--bg);
}

/* Wizard mode buttons */
.wizard-mode-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: var(--surface2);
    color: var(--text-dim);
    transition: all .15s;
    text-align: center;
}
.wizard-mode-btn:not(:last-child) { border-right: 1px solid var(--border); }
.wizard-mode-btn:hover { color: var(--text); background: var(--bg); }
.wizard-mode-btn.active { background: var(--accent); color: #fff; }
