@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --bg-card: #111;
    --bg-hover: #1a1a1a;
    --bg-sidebar: #0d0d0d;
    --border: #222;
    --border-hover: #333;
    --text: #fff;
    --text-dim: #888;
    --text-muted: #555;
    --accent: #4f8cff;
    --accent-hover: #6ba0ff;
    --accent-rgb: 79,140,255;
    --green: #34d399;
    --red: #f87171;
    --yellow: #fbbf24;
    --orange: #fb923c;
    --purple: #a78bfa;
    --radius: 8px;
    --sidebar-w: 260px;
}

/* ── Light Theme ─────────────────────────────── */
[data-theme="light"] {
    --bg: #f0f0f0;
    --bg-card: #fafafa;
    --bg-hover: #e8e8e8;
    --bg-sidebar: #f5f5f5;
    --border: #ddd;
    --border-hover: #bbb;
    --text: #222;
    --text-dim: #777;
    --text-muted: #aaa;
}
[data-theme="light"] .sidebar { box-shadow: 2px 0 8px rgba(0,0,0,0.04); }
/* sidebar logo swap handled by JS */
[data-theme="light"] .nav-item.active { background: rgba(0,0,0,0.06); color: #000; }
[data-theme="light"] .nav-item:hover { background: rgba(0,0,0,0.03); }
[data-theme="light"] .kanban-card { background: #fff; border-color: #e5e5e5; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
[data-theme="light"] .kanban-card:hover { border-color: #ccc; }
[data-theme="light"] .kanban-col { background: #fafafa; border-color: #e5e5e5; }
[data-theme="light"] .kanban-col-header { border-color: #e5e5e5; }
[data-theme="light"] .stat-card { background: #fff; border-color: #e5e5e5; }
[data-theme="light"] .modal { background: #fff; border-color: #e0e0e0; }
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.3); }
[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select { background: #f5f5f7; border-color: #ddd; color: #1a1a1a; }
[data-theme="light"] input:focus, [data-theme="light"] textarea:focus { border-color: #aaa; background: #fff; }
[data-theme="light"] .section-tab { background: #e8e8e8; color: #555; }
[data-theme="light"] .section-tab.active { background: #1a1a1a; color: #fff; }
[data-theme="light"] .dept-chip { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #555; }
[data-theme="light"] .dept-chip.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
[data-theme="light"] .kanban-badge { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .btn { border-color: #ddd; color: #333; }
[data-theme="light"] .btn:hover { background: #f0f0f0; }
[data-theme="light"] .btn-primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
[data-theme="light"] .btn-primary:hover { background: #333; }
[data-theme="light"] .page-header h2 { color: #1a1a1a; }
[data-theme="light"] .faq-q, [data-theme="light"] .faq-a p { color: #333; }
[data-theme="light"] .footer { border-color: #e0e0e0; }
[data-theme="light"] .cards-grid .card,
[data-theme="light"] .card {
    background: #fff; border-color: #ddd;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .card::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent); }
[data-theme="light"] .card::after { background: transparent; }
[data-theme="light"] .card:hover { border-color: #ccc; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .card-label { color: #888; }
[data-theme="light"] .card-value { color: #222; }
[data-theme="light"] .card-value.green { color: #059669; }
[data-theme="light"] .card-value.red { color: #dc2626; }
[data-theme="light"] .form-field > label { color: #666; }
[data-theme="light"] .user-info { border-color: #e0e0e0; }
[data-theme="light"] .user-name { color: #333; }
[data-theme="light"] .kanban-add-btn { background: rgba(0,0,0,0.05); color: #666; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .kanban-add-btn:hover { background: rgba(0,0,0,0.08); }
[data-theme="light"] .btn-task-del { color: #999; }
[data-theme="light"] .btn-task-details { background: rgba(0,0,0,0.04); color: #666; border-color: rgba(0,0,0,0.08); }

/* Color picker */
.color-picker-wrap { padding: 0 12px 6px; }
.color-picker-btn {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 8px 16px;
    background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    color: var(--text-dim); font-size: 12px; font-family: inherit;
    transition: all 0.2s;
}
.color-picker-btn:hover { background: var(--bg-hover); color: var(--text); }
.color-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.color-palette {
    display: none; flex-wrap: wrap; gap: 6px;
    padding: 10px 12px 6px;
}
.color-palette.open { display: flex; }
.color-swatch {
    width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: all 0.15s;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg); }

/* Theme toggle button */
.theme-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; margin: 0 12px 8px;
    background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    color: var(--text-dim); font-size: 12px; font-family: inherit;
    transition: all 0.2s;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────── */

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sidebar-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.2);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sidebar-logo-wide {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.sidebar-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.sidebar-logo span {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 2px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dim);
}

.nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.nav-item.active {
    background: rgba(var(--accent-rgb),0.1);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent);
    font-size: 15px;
}
.nav-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-svg-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.nav-item:hover .nav-svg-icon svg {
    color: var(--text);
}
.nav-item.active .nav-svg-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.sidebar-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(var(--accent-rgb),0.3);
}

.sidebar-user .name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user .logout {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s;
    font-size: 18px;
}

.sidebar-user .logout:hover { color: var(--red); }

.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 32px 40px;
    min-width: 0;
}

/* ── Page Header ────────────────────────────────── */

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

.page-header h2 {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Cards Grid ─────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

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

.card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
    margin-bottom: 8px;
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1;
}

.card-sub {
    font-size: 11px;
    color: var(--text2);
    margin-top: 6px;
}

.card-value.green { color: #34d399; }
.card-value.red { color: #f87171; }

/* ── Table ──────────────────────────────────────── */

.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
}

tbody td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ── Badges ─────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green { background: rgba(52,211,153,0.15); color: var(--green); }
.badge-red { background: rgba(248,113,113,0.15); color: var(--red); }
.badge-yellow { background: rgba(251,191,36,0.15); color: var(--yellow); }
.badge-blue { background: rgba(79,140,255,0.15); color: var(--accent); }
.badge-purple { background: rgba(167,139,250,0.15); color: var(--purple); }
.badge-gray { background: rgba(136,136,136,0.15); color: var(--text-dim); }
.badge-orange { background: rgba(251,146,60,0.15); color: var(--orange); }

.dept-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ── Department Picker (form chips) ────────────── */

.dept-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* Form-field wrapper for custom pickers in modals */
.form-field {
    margin-bottom: 16px;
}
.form-field > label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.dept-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-dim);
    transition: all 0.2s ease;
    user-select: none;
}

.dept-chip:hover {
    border-color: var(--chip-color, var(--border-hover));
    background: rgba(255,255,255,0.04);
}

.dept-chip.selected {
    border-color: var(--chip-color);
    background: color-mix(in srgb, var(--chip-color) 15%, transparent);
    color: var(--text);
    box-shadow: 0 0 8px color-mix(in srgb, var(--chip-color) 25%, transparent);
}

.dept-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.dept-chip.selected .dept-chip-dot {
    opacity: 1;
}

/* ── Buttons ────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    transition: all 0.15s;
}

.btn:hover { border-color: var(--border-hover); background: var(--bg-hover); }

.btn-primary {
    background: var(--bg);
    border: 1.5px solid var(--accent);
    color: var(--accent-hover);
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(var(--accent-rgb),0.15);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: rgba(var(--accent-rgb),0.08);
    border-color: var(--accent-hover);
    color: var(--accent-hover);
    box-shadow: 0 0 20px rgba(var(--accent-rgb),0.25);
    transform: translateY(-1px);
}

.btn-danger {
    color: var(--red);
    border-color: rgba(248,113,113,0.3);
}

.btn-danger:hover { background: rgba(248,113,113,0.1); }

.btn-sm { padding: 4px 10px; font-size: 12px; }

.btn-group { display: flex; gap: 8px; }

/* ── Modal ──────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    width: 480px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

.modal h3 {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* ── Forms ──────────────────────────────────────── */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Login ──────────────────────────────────────── */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
}

.login-box h1 {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.login-box p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-box .form-group { margin-bottom: 16px; }

.login-box .btn-primary { width: 100%; justify-content: center; padding: 12px; }

.login-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-dim);
}

.login-toggle a {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.login-toggle a:hover { text-decoration: underline; }

.error-msg {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    color: var(--red);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

/* ── Toast ──────────────────────────────────────── */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    min-width: 250px;
    animation: slideIn 0.2s ease;
}

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

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Empty State ────────────────────────────────── */

.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-dim);
}

.empty .icon { font-size: 48px; margin-bottom: 12px; }
.empty p { font-size: 14px; }

/* ── Progress Bar ───────────────────────────────── */

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}

/* ── Risk Matrix ────────────────────────────────── */

.risk-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 13px;
}

/* ── Section Tabs ──────────────────────────────── */

.section-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.section-tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    margin-bottom: -1px;
    white-space: nowrap;
}

.section-tab:hover { color: var(--text); }
.section-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ── Sub Section Header ────────────────────────── */

.sub-header {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin: 24px 0 12px;
}

/* ── Kanban Board ──────────────────────────────── */

.kanban {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.kanban-col {
    min-width: 250px;
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.kanban-col-header {
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-col-header .count {
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.kanban-add-btn {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--text-dim);
    font-size: 16px; font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.kanban-add-btn:hover {
    background: var(--accent);
    color: #fff;
}

.kanban-col-body {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid #555;
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.kanban-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.kanban-card-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prio-pulse {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    display: inline-block;
    animation: prioPulse 3s ease-in-out infinite;
    cursor: default;
}
@keyframes prioPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

.kanban-card-meta {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    pointer-events: none;
}
.kanban-card-footer .btn-task-details,
.kanban-card-footer .kanban-badge {
    pointer-events: auto;
}
.kanban-badge {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--chip-color) 40%, transparent);
    background: color-mix(in srgb, var(--chip-color) 12%, transparent);
    color: var(--chip-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    white-space: nowrap;
}

/* ── SWOT Grid ─────────────────────────────────── */

.swot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.swot-quadrant {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.swot-quadrant-header {
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swot-quadrant-header.strength { color: var(--green); }
.swot-quadrant-header.weakness { color: var(--red); }
.swot-quadrant-header.opportunity { color: var(--accent); }
.swot-quadrant-header.threat { color: var(--orange); }

.swot-items {
    padding: 8px;
    min-height: 80px;
}

.swot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.15s;
}

.swot-item:hover { background: var(--bg-hover); }

.swot-item .del-btn {
    opacity: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.15s;
    background: none;
    border: none;
    padding: 2px 4px;
}

.swot-item:hover .del-btn { opacity: 1; }
.swot-item .del-btn:hover { color: var(--red); }

/* ── Checklist ─────────────────────────────────── */

.checklist {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.checklist-header {
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checklist-body { padding: 4px 0; }

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.checklist-item:hover { background: var(--bg-hover); }

.checklist-item.done { color: var(--text-muted); text-decoration: line-through; }

.checklist-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.checklist-item.done .checklist-check {
    background: var(--accent);
    border-color: var(--accent);
}

.checklist-item .del-btn {
    margin-left: auto;
    opacity: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    background: none;
    border: none;
    padding: 2px 4px;
}

.checklist-item:hover .del-btn { opacity: 1; }

.checklist-add {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
}

.checklist-add input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 10px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.checklist-add input:focus { border-color: var(--accent); }

/* ── Activity Feed ─────────────────────────────── */

.activity-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.activity-feed-header {
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.activity-text { flex: 1; }
.activity-time { color: var(--text-muted); font-size: 11px; }

/* ── Note Cards ────────────────────────────────── */

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.note-card:hover { border-color: var(--border-hover); }

.note-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.note-card-body {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    max-height: 80px;
    overflow: hidden;
}

.note-card-pin {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--yellow);
    font-size: 12px;
}

.note-card-meta {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Funnel Visualization ──────────────────────── */

.funnel {
    max-width: 600px;
    margin: 0 auto;
}

.funnel-stage {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.funnel-bar-wrap {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
}

.funnel-bar {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    min-width: 50px;
    transition: width 0.3s;
}

.funnel-label {
    width: 120px;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    flex-shrink: 0;
}

.funnel-value {
    width: 80px;
    font-size: 13px;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* ── Risk Matrix 5x5 ──────────────────────────── */

.risk-matrix {
    display: grid;
    grid-template-columns: 40px repeat(5, 1fr);
    grid-template-rows: repeat(5, 50px) 30px;
    gap: 4px;
    max-width: 500px;
    margin: 0 auto 24px;
}

.risk-matrix-cell {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
    position: relative;
}

.risk-matrix-cell.low { background: rgba(52,211,153,0.15); }
.risk-matrix-cell.medium { background: rgba(251,191,36,0.15); }
.risk-matrix-cell.high { background: rgba(251,146,60,0.15); }
.risk-matrix-cell.critical { background: rgba(248,113,113,0.15); }

.risk-matrix-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk-matrix-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text);
    border: 2px solid var(--bg);
}

/* ── Incident Severity ─────────────────────────── */

.severity-1 { color: var(--text-dim); }
.severity-2 { color: var(--yellow); }
.severity-3 { color: var(--orange); }
.severity-4 { color: var(--red); }
.severity-5 { color: #ff4444; font-weight: 700; }

/* ── Inline Add Bar ────────────────────────────── */

.inline-add {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.inline-add input,
.inline-add select {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.inline-add input { flex: 1; }
.inline-add input:focus { border-color: var(--accent); }

/* ── Two Column Layout ─────────────────────────── */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar-logo h1, .sidebar-logo span, .nav-item span,
    .sidebar-user .name { display: none; }
    .nav-item { justify-content: center; padding: 14px; }
    .nav-item .icon { margin: 0; }
    .main { margin-left: 60px; padding: 16px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ── Salary History ─────────────────────────────── */

.salary-history-btn {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 10px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all 0.15s;
}

.salary-history-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(79,140,255,0.1);
}

.salary-history-list {
    max-height: 240px;
    overflow-y: auto;
}

.salary-row {
    display: grid;
    grid-template-columns: 90px 1fr 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.salary-row:last-child { border-bottom: none; }

.salary-expand {
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
    animation: expandIn 0.2s ease;
}

@keyframes expandIn {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 400px; }
}

.salary-expand-header {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.salary-add-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.salary-add-row input {
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
    flex: 1;
}

.salary-add-row input:focus { border-color: var(--accent); }
.salary-add-row input[type="number"] { max-width: 120px; }
.salary-add-row input[type="date"] { max-width: 150px; }

/* ── Task Board ────────────────────────────────── */

.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.task-column {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.task-column-header {
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-column-header .count {
    margin-left: auto;
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.task-column-body {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}
.task-card:hover .btn-task-del { opacity: 1; }

.task-card-prio {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.task-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    padding-left: 8px;
}

.task-card-desc {
    font-size: 12px;
    color: var(--text-dim);
    padding-left: 8px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.task-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
}

.task-due {
    font-size: 11px;
    color: var(--text-dim);
}

/* ── Account Cards (Social) ─────────────────────── */

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.15s;
}

.account-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.account-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent);
}

.account-card-info {
    flex: 1;
    min-width: 0;
}

.account-card-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-card-url {
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-card-url:hover {
    color: var(--accent);
}

.account-card-stats {
    text-align: right;
    flex-shrink: 0;
}

.account-card-followers {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Space Mono', monospace;
}

.account-card-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ── Sub Header ────────────────────────────────────── */

.sub-header {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ── Scrollbar ──────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }


/* ── Materials ─────────────────────────────────────── */

.materials-dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 16px;
}
.materials-dropzone.drag-over {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
    color: var(--accent);
}
.materials-dropzone:hover {
    border-color: var(--border-hover);
}

.upload-progress {
    background: var(--card);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.upload-progress-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: rgba(99, 102, 241, 0.15);
    width: 0%;
    transition: width 0.3s;
}
.upload-progress-text {
    position: relative;
    font-size: 13px;
    color: var(--text-dim);
}

.materials-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.material-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.material-card:hover {
    border-color: var(--border-hover);
}

.material-thumb {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    background-color: var(--bg);
}

.material-info {
    padding: 10px 12px 6px;
}
.material-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.material-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.material-actions {
    display: flex;
    gap: 4px;
    padding: 6px 12px 10px;
}
.material-actions .btn {
    padding: 2px 8px;
    font-size: 12px;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.material-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.2s;
}
.material-file-row:hover {
    border-color: var(--border-hover);
}
.material-file-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.material-file-name {
    flex: 1;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.material-file-size,
.material-file-user,
.material-file-date {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}
.material-file-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.material-file-actions .btn {
    padding: 2px 8px;
    font-size: 12px;
}

/* Preview overlay */
.material-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.material-preview-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.material-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
}
.material-preview-content img {
    max-width: 90vw;
    max-height: calc(90vh - 44px);
    object-fit: contain;
    border-radius: 8px;
}

/* Material badges */
.mat-ext-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    text-transform: uppercase;
    flex-shrink: 0;
}
.mat-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    color: var(--cat-color);
    flex-shrink: 0;
}

/* Task screenshot dropzone */
.task-dropzone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.task-dropzone:hover, .task-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(99,102,241,0.05);
}
.task-dropzone-text {
    font-size: 12px;
    color: var(--text-muted);
}
.task-screenshots-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.task-screenshot-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.task-screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-screenshot-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.task-screenshot-del:hover { background: #ef4444; }

/* Task details in kanban */
.kanban-card { position: relative; }
.btn-task-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-task-details:hover { color: var(--accent); border-color: var(--accent); }
.btn-task-del {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 2px 6px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    z-index: 2;
}
.kanban-card:hover .btn-task-del { opacity: 1; }
.btn-task-del:hover { color: #ef4444; }
.kanban-card-details {
    padding: 8px 10px;
    border-top: 1px solid var(--border);
}
.task-detail-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}
.task-detail-screens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.task-detail-screens img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.2s;
}
.task-detail-screens img:hover { opacity: 0.8; }

/* Upload file picker */
.upload-file-picker {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
    min-height: 48px;
}
.upload-file-picker:hover {
    border-color: var(--border-hover);
}
.upload-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.upload-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}

/* Fix section-header for materials */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.section-header h2 {
    margin: 0;
    white-space: nowrap;
}
.section-actions {
    flex-shrink: 0;
}

/* ── Support Page ─────────────────────────── */
.sp-note { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 12px; color: var(--text2); line-height: 1.6; margin: 12px 0 24px; }
.sp-dim { color: var(--text2); font-weight: 400; font-size: 12px; }

.sp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.sp-step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.sp-num { width: 32px; height: 32px; background: var(--accent); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }

.sp-quote { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; padding: 20px; font-size: 13px; color: var(--text2); line-height: 1.7; font-style: italic; margin-bottom: 24px; }

.sp-chain { display: none; }
.esc-flow { display: flex; align-items: stretch; gap: 0; margin-bottom: 12px; }
.esc-step { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); padding: 16px 18px; }
.esc-step:first-child { border-radius: 12px 0 0 12px; }
.esc-step:last-child { border-radius: 0 12px 12px 0; }
.esc-level { font-size: 13px; font-weight: 800; font-family: 'Space Mono', monospace; padding: 6px 10px; background: rgba(255,255,255,0.06); border-radius: 6px; white-space: nowrap; }
.esc-level.esc-warn { background: rgba(251,191,36,0.15); color: #fbbf24; }
.esc-level.esc-crit { background: rgba(248,113,113,0.15); color: #f87171; }
.esc-info { display: flex; flex-direction: column; gap: 2px; }
.esc-info strong { font-size: 13px; font-weight: 700; }
.esc-desc { font-size: 11px; color: var(--text2); }
.esc-arrow { display: flex; align-items: center; font-size: 14px; color: var(--text2); padding: 0 2px; }
.esc-warning { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); border-radius: 10px; padding: 14px 18px; font-size: 13px; color: #fca5a5; line-height: 1.5; }

.sp-scripts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.sp-script { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sp-script summary { padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; transition: background 0.15s; }
.sp-script summary:hover { background: rgba(255,255,255,0.03); }
.sp-script summary::-webkit-details-marker { display: none; }
.sp-script summary::before { content: '\25B8  '; color: var(--text2); margin-right: 6px; }
.sp-script[open] summary::before { content: '\25BE  '; }
.sp-script[open] summary { border-bottom: 1px solid var(--border); }
.sp-script-body { padding: 14px 18px; font-size: 13px; color: var(--text2); line-height: 1.7; }

.sp-forbidden { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.sp-ban { padding: 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; border-left: 3px solid #f87171; }

/* FAQ */
.sp-search { margin-bottom: 20px; }
.faq-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.faq-search-wrap { position: relative; flex: 1; max-width: 480px; }
.faq-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text2); pointer-events: none; }
.faq-search-wrap input { width: 100%; padding: 11px 14px 11px 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 13px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.faq-search-wrap input::placeholder { color: var(--text2); opacity: 0.6; }
.faq-search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,0.1); }
.faq-category { margin-bottom: 24px; }
.faq-cat-title { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: var(--text2); letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.faq-count { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; font-size: 11px; padding: 2px 10px; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; overflow: hidden; }
.faq-question { padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; transition: background 0.15s; }
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before { content: '\25B8  '; color: var(--text2); margin-right: 6px; }
.faq-item[open] .faq-question::before { content: '\25BE  '; }
.faq-item[open] .faq-question { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 14px 18px; font-size: 13px; color: var(--text2); line-height: 1.7; }
.faq-actions { margin-top: 10px; display: flex; gap: 6px; }

@media (max-width: 768px) {
    .sp-steps { grid-template-columns: 1fr 1fr; }
    .esc-flow { flex-direction: column; }
    .esc-step:first-child { border-radius: 12px 12px 0 0; }
    .esc-step:last-child { border-radius: 0 0 12px 12px; }
    .esc-arrow { justify-content: center; transform: rotate(90deg); padding: 0; }
}
