/* ═══════════════════════════════════════════
   WallCraft — Styles v2
   ═══════════════════════════════════════════ */
:root {
    --coral: #FF6B6B;
    --turquoise: #4ECDC4;
    --sunshine: #FFE66D;
    --violet: #A855F7;
    --electric-blue: #3B82F6;
    --emerald: #10B981;
    --hot-pink: #EC4899;
    --orange: #F97316;
    --crimson: #EF4444;
    --teal: #14B8A6;
    --indigo: #6366F1;
    --amber: #F59E0B;
    --cyan: #06B6D4;
    --slate: #64748B;
    --lime: #84CC16;
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-hover: #F5F5F5;
    --border: #E5E7EB;
    --border-light: #F0F0F0;
    --text: #1a1a2e;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, .12);
    --topbar-height: 48px;
    --toolbar-width: 72px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --bottom-bar-height: 40px;
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    color: inherit;
}

/* ── SPLASH ── */
.splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.splash.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: splashIn .6s var(--ease-spring);
}

.splash-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: splashBounce 1s var(--ease-spring) infinite alternate;
}

.splash-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.splash-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.splash-loader {
    width: 120px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.splash-bar {
    width: 40%;
    height: 100%;
    background: var(--electric-blue);
    border-radius: 3px;
    animation: splashLoad 1s var(--ease-out) forwards;
}

@keyframes splashIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.95);
    }
}

@keyframes splashBounce {
    to {
        transform: translateY(-6px);
    }
}

@keyframes splashLoad {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* ── TOP BAR ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
    gap: 8px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.brand-icon {
    font-size: 20px;
}

.brand-name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.3px;
}

.board-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}

.board-name-wrapper:hover {
    background: var(--surface-hover);
}

.board-name-input {
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    width: 200px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all .2s;
}

.board-name-input:focus {
    background: var(--surface);
    box-shadow: 0 0 0 2px var(--electric-blue);
}

.board-name-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.topbar-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all .15s;
}

.topbar-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.topbar-btn.small {
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 600;
}

.topbar-btn.danger:hover {
    background: #FEF2F2;
    color: var(--crimson);
}

.topbar-btn:disabled {
    opacity: .35;
    cursor: default;
}

.topbar-btn:disabled:hover {
    background: transparent;
    color: var(--text-secondary);
}

.topbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--surface-hover);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.zoom-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
    user-select: none;
}

/* Mode toggle */
.mode-toggle {
    display: flex;
    background: var(--surface-hover);
    border-radius: var(--radius-sm);
    padding: 2px;
    margin-left: 8px;
}

.mode-btn {
    width: 30px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .15s;
}

.mode-btn.active {
    background: var(--electric-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.mode-btn:hover:not(.active) {
    background: var(--border-light);
}

/* ── SEARCH ── */
.search-panel {
    position: fixed;
    top: calc(var(--topbar-height)+8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    width: 380px;
    overflow: hidden;
    animation: searchIn .25s var(--ease-out);
}

.search-panel.hidden {
    display: none;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}

.search-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrap input {
    flex: 1;
    background: transparent;
    font-size: 14px;
}

.search-close {
    font-size: 18px;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.search-close:hover {
    background: var(--surface-hover);
}

.search-results {
    max-height: 240px;
    overflow-y: auto;
}

.search-result-item {
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .1s;
    font-size: 13px;
}

.search-result-item:hover {
    background: var(--surface-hover);
}

.search-result-item .result-icon {
    font-size: 16px;
}

.search-result-item .result-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.search-result-item .result-type {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--surface-hover);
    padding: 2px 6px;
    border-radius: 4px;
}

@keyframes searchIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ── LEFT TOOLBAR ── */
.toolbar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: var(--bottom-bar-height);
    width: var(--toolbar-width);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-light);
    z-index: 900;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.toolbar::-webkit-scrollbar {
    display: none;
}

.toolbar-section {
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toolbar-section+.toolbar-section {
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    padding-top: 8px;
}

.toolbar-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
    padding: 4px 6px 6px;
    user-select: none;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: var(--radius-sm);
    transition: all .15s;
}

.tool-btn:hover {
    background: var(--surface-hover);
    transform: scale(1.05);
}

.tool-btn:active {
    transform: scale(.95);
}

.tool-btn.active {
    background: var(--electric-blue);
    color: white;
}

.tool-icon {
    font-size: 20px;
    line-height: 1;
}

.tool-name {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.toolbar-footer {
    margin-top: auto;
    padding: 6px;
    border-top: 1px solid var(--border-light);
}

/* ── VIEWPORT (dot grid lives here for infinite coverage) ── */
.viewport {
    position: fixed;
    top: var(--topbar-height);
    left: var(--toolbar-width);
    right: 0;
    bottom: var(--bottom-bar-height);
    overflow: hidden;
    cursor: default;
    background-color: var(--bg);
    /* dot grid set dynamically by JS */
}

.viewport.panning {
    cursor: grab;
}

.viewport.panning:active {
    cursor: grabbing;
}

.viewport.hand-mode {
    cursor: grab;
}

.viewport.hand-mode:active {
    cursor: grabbing;
}

.viewport.connecting {
    cursor: crosshair;
}

.viewport.file-drag-over::after {
    content: '📂 Suelta archivos aquí';
    position: absolute;
    inset: 20px;
    border: 3px dashed var(--electric-blue);
    border-radius: var(--radius-xl);
    background: rgba(59, 130, 246, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--electric-blue);
    z-index: 500;
    pointer-events: none;
}

.canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
}

.connections-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.connections-layer path {
    pointer-events: stroke;
    cursor: pointer;
}

.connections-layer path:hover {
    stroke-width: 4 !important;
}

/* Selection rectangle */
.selection-rect {
    position: fixed;
    border: 2px dashed var(--electric-blue);
    background: rgba(59, 130, 246, .06);
    border-radius: 4px;
    pointer-events: none;
    z-index: 950;
}

.selection-rect.hidden {
    display: none;
}

/* ══════════════════════════════
   ELEMENTS — Base
   ══════════════════════════════ */
.wall-element {
    position: absolute;
    z-index: 10;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: box-shadow .2s, border-color .2s;
    cursor: move;
    user-select: none;
    min-width: 80px;
    min-height: 40px;
}

.wall-element:hover {
    box-shadow: var(--shadow-lg);
}

.wall-element.selected {
    border-color: var(--electric-blue);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(59, 130, 246, .15);
    z-index: 100;
}

.wall-element.dragging {
    box-shadow: var(--shadow-xl);
    opacity: .92;
    z-index: 1000;
    transition: none;
}

.wall-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--element-color, var(--electric-blue));
}

.wall-element .element-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 4px;
    user-select: none;
    gap: 6px;
}

.wall-element .element-type-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.wall-element .element-title {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wall-element .element-close {
    width: 20px;
    height: 20px;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0;
    transition: all .15s;
    flex-shrink: 0;
}

.wall-element:hover .element-close {
    opacity: 1;
}

.wall-element .element-close:hover {
    background: #FEF2F2;
    color: var(--crimson);
}

.wall-element .element-body {
    padding: 4px 10px 10px;
}

.wall-element .resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    opacity: 0;
    transition: opacity .15s;
}

.wall-element:hover .resize-handle {
    opacity: 1;
}

.wall-element .resize-handle::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    border-radius: 0 0 2px 0;
    opacity: .5;
}

/* Connection points */
.wall-element .conn-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--electric-blue);
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    opacity: 0;
    transition: opacity .15s, transform .15s;
    z-index: 20;
    cursor: crosshair;
}

.wall-element:hover .conn-point,
.viewport.connecting .wall-element .conn-point {
    opacity: 1;
}

.wall-element .conn-point:hover {
    transform: scale(1.3);
}

.wall-element .conn-point.top {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.wall-element .conn-point.bottom {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.wall-element .conn-point.left {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.wall-element .conn-point.right {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Sticky ── */
.wall-element.el-sticky {
    background: var(--element-color, var(--sunshine));
    border: none;
    box-shadow: var(--shadow-sm), 3px 3px 0 rgba(0, 0, 0, .05);
}

.wall-element.el-sticky::before {
    display: none;
}

.wall-element.el-sticky .sticky-text {
    width: 100%;
    min-height: 70px;
    padding: 8px;
    background: transparent;
    resize: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(0, 0, 0, .75);
    cursor: text;
}

.wall-element.el-sticky .sticky-text::placeholder {
    color: rgba(0, 0, 0, .3);
}

.wall-element.el-sticky .element-header .element-title,
.wall-element.el-sticky .element-header .element-type-icon {
    color: rgba(0, 0, 0, .4);
}

.wall-element.el-sticky.selected {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(59, 130, 246, .25);
    border: 2px solid var(--electric-blue);
}

/* ── Image ── */
.wall-element.el-image {
    overflow: hidden;
    padding: 0;
    --element-color: var(--electric-blue);
}

.wall-element.el-image .image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.wall-element.el-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wall-element.el-image .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .5));
    color: white;
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    transition: opacity .2s;
}

.wall-element.el-image:hover .image-overlay {
    opacity: 1;
}

.wall-element.el-image .img-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .4);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
}

/* Drop zone */
.drop-zone {
    text-align: center;
    padding: 20px !important;
    color: var(--text-muted);
    font-size: 12px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    margin: 0 10px 10px;
    cursor: pointer;
    transition: border-color .2s;
}

.drop-zone:hover {
    border-color: var(--electric-blue);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-content span {
    font-size: 11px;
}

/* ── Video ── */
.wall-element.el-video {
    overflow: hidden;
    --element-color: var(--crimson);
}

.wall-element.el-video video {
    width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: block;
}

/* ── Audio ── */
.wall-element.el-audio {
    --element-color: var(--emerald);
    min-width: 250px;
}

.wall-element.el-audio .audio-name {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wall-element.el-audio audio {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    padding: 0 10px;
}

/* ── Drawing ── */
.wall-element.el-drawing {
    --element-color: var(--violet);
    overflow: hidden;
}

.wall-element.el-drawing img {
    width: 100%;
    display: block;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: transparent !important;
}

/* ── Message ── */
.wall-element.el-message {
    --element-color: var(--hot-pink);
    max-width: 320px;
}

.wall-element.el-message .message-text {
    width: 100%;
    min-height: 40px;
    padding: 4px 0;
    background: transparent;
    resize: none;
    border: none;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text);
}

.wall-element.el-message .message-author {
    width: 100%;
    padding: 4px 0 0;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--hot-pink);
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
}

/* ── Idea ── */
.wall-element.el-idea {
    --element-color: var(--sunshine);
    text-align: center;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #FFFDF0, #FFF9DB);
}

.wall-element.el-idea .idea-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.wall-element.el-idea .idea-text {
    width: 100%;
    min-height: 30px;
    padding: 0;
    background: transparent;
    resize: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: var(--text);
}

/* ── Checklist ── */
.wall-element.el-checklist {
    --element-color: var(--amber);
}

.wall-element.el-checklist .checklist-progress {
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin: 0 10px 6px;
    overflow: hidden;
}

.wall-element.el-checklist .checklist-progress-bar {
    height: 100%;
    background: var(--emerald);
    border-radius: 3px;
    transition: width .3s var(--ease-out);
}

.wall-element.el-checklist .checklist-items {
    list-style: none;
    padding: 0 10px 6px;
}

.wall-element.el-checklist .checklist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 13px;
}

.wall-element.el-checklist .checklist-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .15s;
    position: relative;
}

.wall-element.el-checklist .checklist-item input[type="checkbox"]:checked {
    background: var(--emerald);
    border-color: var(--emerald);
}

.wall-element.el-checklist .checklist-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.wall-element.el-checklist .checklist-item.checked .checklist-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.wall-element.el-checklist .checklist-item-text {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 13px;
    padding: 2px 0;
    color: var(--text);
}

.wall-element.el-checklist .item-del {
    width: 16px;
    height: 16px;
    font-size: 12px;
    border-radius: 3px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity .15s;
}

.wall-element.el-checklist .checklist-item:hover .item-del {
    opacity: 1;
}

.wall-element.el-checklist .item-del:hover {
    color: var(--crimson);
    background: #FEF2F2;
}

.list-add {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 8px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
}

.list-add:hover {
    color: var(--text-secondary);
}

/* ── Roadmap (improved) ── */
.wall-element.el-roadmap {
    --element-color: var(--cyan);
}

.wall-element.el-roadmap .roadmap-title-input {
    width: calc(100% - 20px);
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    padding: 0 10px 4px;
}

.wall-element.el-roadmap .roadmap-overall {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 10px 8px;
    overflow: hidden;
}

.wall-element.el-roadmap .roadmap-overall-bar {
    height: 100%;
    background: var(--cyan);
    border-radius: 4px;
    transition: width .4s var(--ease-out);
}

.wall-element.el-roadmap .roadmap-items {
    padding: 0 10px 6px;
}

.wall-element.el-roadmap .roadmap-item {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    position: relative;
}

.wall-element.el-roadmap .roadmap-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 22px;
    bottom: -5px;
    width: 2px;
    background: var(--border);
}

.wall-element.el-roadmap .roadmap-item:last-child::before {
    display: none;
}

.wall-element.el-roadmap .roadmap-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 1;
}

.wall-element.el-roadmap .roadmap-item.done .roadmap-dot {
    background: var(--emerald);
    border-color: var(--emerald);
    color: white;
}

.wall-element.el-roadmap .roadmap-item.active .roadmap-dot {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    color: white;
    animation: pulse 2s infinite;
}

.wall-element.el-roadmap .roadmap-item-content {
    flex: 1;
    min-width: 0;
}

.wall-element.el-roadmap .roadmap-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wall-element.el-roadmap .roadmap-item-text {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 13px;
    padding: 2px 0;
    color: var(--text);
}

.wall-element.el-roadmap .roadmap-item.done .roadmap-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.wall-element.el-roadmap .roadmap-pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 30px;
    text-align: right;
}

.wall-element.el-roadmap .roadmap-pct-bar {
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin: 4px 0;
    overflow: hidden;
}

.wall-element.el-roadmap .roadmap-pct-fill {
    height: 100%;
    background: var(--emerald);
    border-radius: 3px;
    transition: width .3s var(--ease-out);
}

.wall-element.el-roadmap .roadmap-subs {
    margin: 4px 0 2px 4px;
}

.wall-element.el-roadmap .roadmap-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 12px;
}

.wall-element.el-roadmap .roadmap-sub-cb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all .15s;
}

.wall-element.el-roadmap .roadmap-sub-cb:checked {
    background: var(--emerald);
    border-color: var(--emerald);
}

.wall-element.el-roadmap .roadmap-sub-cb:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 9px;
    font-weight: 700;
}

.wall-element.el-roadmap .roadmap-sub.done .roadmap-sub-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.wall-element.el-roadmap .roadmap-sub-text {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-secondary);
}

.wall-element.el-roadmap .roadmap-add-sub {
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 0;
    cursor: pointer;
}

.roadmap-add-sub:hover {
    color: var(--text-secondary);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, .4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
}

/* ── Schema ── */
.wall-element.el-schema {
    --element-color: var(--teal);
}

.wall-element.el-schema .schema-text {
    width: 100%;
    min-height: 60px;
    padding: 4px 0;
    background: transparent;
    resize: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    white-space: pre;
}

/* ── Bookmark ── */
.wall-element.el-bookmark {
    --element-color: var(--indigo);
}

.wall-element.el-bookmark .bookmark-url {
    width: 100%;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-size: 12px;
    color: var(--indigo);
    margin-bottom: 6px;
}

.wall-element.el-bookmark .bookmark-desc {
    width: 100%;
    min-height: 30px;
    background: transparent;
    border: none;
    resize: none;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Label ── */
.wall-element.el-label {
    min-width: 80px;
    min-height: 32px;
    border-radius: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--element-color, var(--orange));
    border: none;
    box-shadow: var(--shadow-sm);
}

.wall-element.el-label::before {
    display: none;
}

.wall-element.el-label .label-text {
    background: transparent;
    border: none;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 16px;
    width: 100%;
}

.wall-element.el-label .label-close {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--surface);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
}

.wall-element.el-label .resize-handle,
.wall-element.el-label .element-header {
    display: none;
}

/* ── Timer ── */
.wall-element.el-timer {
    --element-color: var(--crimson);
    text-align: center;
}

.wall-element.el-timer .timer-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    padding: 6px 0;
    letter-spacing: 2px;
}

.wall-element.el-timer .timer-controls {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 4px 0 6px;
}

.wall-element.el-timer .timer-btn {
    width: 34px;
    height: 28px;
    border-radius: 6px;
    font-size: 14px;
    transition: all .15s;
}

.wall-element.el-timer .timer-btn.start {
    background: var(--emerald);
    color: white;
}

.wall-element.el-timer .timer-btn.pause {
    background: var(--amber);
    color: white;
}

.wall-element.el-timer .timer-btn.reset {
    background: var(--surface-hover);
    color: var(--text-secondary);
}

.wall-element.el-timer .timer-btn:hover {
    transform: scale(1.1);
}

/* ── Date ── */
.wall-element.el-date {
    --element-color: var(--electric-blue);
    text-align: center;
}

.wall-element.el-date .date-display {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    padding: 4px 0;
    text-transform: capitalize;
}

.wall-element.el-date .date-input {
    width: 100%;
    text-align: center;
    padding: 4px;
    font-size: 13px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.wall-element.el-date .date-note {
    width: 100%;
    background: transparent;
    border: none;
    resize: none;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    min-height: 20px;
    padding: 4px 0 0;
}

/* ── Kanban ── */
.wall-element.el-kanban {
    --element-color: var(--violet);
    border-left: 4px solid var(--element-color);
}

.wall-element.el-kanban .kanban-title {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    padding: 0 0 4px;
}

.wall-element.el-kanban .kanban-status-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.wall-element.el-kanban .kanban-status,
.wall-element.el-kanban .kanban-priority {
    flex: 1;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    background: var(--surface-hover);
    border: 1px solid var(--border);
    font-size: 11px;
    cursor: pointer;
}

.wall-element.el-kanban .kanban-desc {
    width: 100%;
    min-height: 30px;
    background: transparent;
    border: none;
    resize: none;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.wall-element.el-kanban .kanban-badge {
    position: absolute;
    bottom: 8px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

/* ── Progress Bar ── */
.wall-element.el-progress {
    --element-color: var(--emerald);
}

.wall-element.el-progress .progress-title {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding: 0 0 6px;
}

.wall-element.el-progress .progress-bar-wrap {
    height: 10px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.wall-element.el-progress .progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width .3s var(--ease-out);
}

.wall-element.el-progress .progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wall-element.el-progress .progress-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.wall-element.el-progress .progress-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--emerald);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.wall-element.el-progress .progress-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    min-width: 38px;
    text-align: right;
}

/* ── Code Block ── */
.wall-element.el-codeblock {
    --element-color: var(--slate);
    background: #1E293B;
    color: #E2E8F0;
}

.wall-element.el-codeblock::before {
    background: var(--slate);
}

.wall-element.el-codeblock .element-header .element-title {
    color: #94A3B8;
}

.wall-element.el-codeblock .element-header .element-type-icon {
    filter: none;
}

.wall-element.el-codeblock .element-close {
    color: #94A3B8;
}

.wall-element.el-codeblock .code-text {
    width: 100%;
    min-height: 80px;
    background: transparent;
    resize: none;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #E2E8F0;
    white-space: pre;
    tab-size: 2;
}

/* ── Divider / Section ── */
.wall-element.el-divider {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.wall-element.el-divider::before {
    display: none;
}

.wall-element.el-divider .divider-title {
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    width: auto;
    min-width: 60px;
}

.wall-element.el-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
}

.wall-element.el-divider .divider-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--surface);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
}

.wall-element.el-divider .resize-handle {
    display: none;
}

.wall-element.el-divider:hover {
    box-shadow: none;
}

.wall-element.el-divider.selected {
    border: 2px dashed var(--electric-blue);
    border-radius: var(--radius-sm);
}

/* ══════════════════════════════
   MINIMAP (collapsible, resizable)
   ══════════════════════════════ */
.minimap {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 240px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 800;
    overflow: hidden;
    transition: width .3s var(--ease-out), height .3s var(--ease-out);
}

.minimap.hidden {
    display: none;
}

.minimap.expanded {
    width: 360px;
}

.minimap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border-light);
}

.minimap-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
}

.minimap-controls {
    display: flex;
    gap: 2px;
}

.minimap-ctrl-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .15s;
}

.minimap-ctrl-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.minimap canvas {
    width: 100%;
    display: block;
    cursor: pointer;
}

.minimap-viewport {
    position: absolute;
    border: 2px solid var(--electric-blue);
    background: rgba(59, 130, 246, .08);
    border-radius: 2px;
    pointer-events: none;
}

.minimap-show-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.minimap-show-btn.hidden {
    display: none;
}

.minimap-show-btn:hover {
    transform: scale(1.1);
}

/* ══════════════════════════════
   CONTEXT MENUS
   ══════════════════════════════ */
.context-menu {
    position: fixed;
    z-index: 2000;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 4px;
    min-width: 170px;
    animation: ctxIn .15s var(--ease-out);
}

.context-menu.hidden {
    display: none;
}

.context-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    transition: background .1s;
}

.context-menu button:hover {
    background: var(--surface-hover);
}

.context-menu button.danger:hover {
    background: #FEF2F2;
    color: var(--crimson);
}

.context-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

@keyframes ctxIn {
    from {
        opacity: 0;
        transform: scale(.95) translateY(-4px);
    }
}

/* COLOR PICKER */
.color-picker {
    position: fixed;
    z-index: 2001;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    animation: ctxIn .15s var(--ease-out);
}

.color-picker.hidden {
    display: none;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
}

.color-swatch:hover {
    transform: scale(1.2);
    border-color: white;
    box-shadow: var(--shadow-md);
}

/* ══════════════════════════════
   MODALS
   ══════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    animation: modalIn .3s var(--ease-spring);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-hover);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .15s;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.9) translateY(20px);
    }
}

/* Help */
.help-content {
    width: 580px;
}

.help-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

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

.help-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.help-section p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    color: var(--text-secondary);
    gap: 8px;
}

kbd {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
}

/* Drawing */
.drawing-modal-content {
    width: 740px;
}

.drawing-modal-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.drawing-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.drawing-colors {
    display: flex;
    gap: 6px;
}

.draw-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
}

.draw-color.active {
    border-color: var(--text);
    transform: scale(1.15);
}

.draw-opacity {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.draw-opacity::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}

.drawing-sizes {
    display: flex;
    gap: 4px;
}

.draw-size {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--surface-hover);
    transition: all .15s;
}

.draw-size.active {
    background: var(--text);
    color: white;
}

.draw-tool {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--surface-hover);
    transition: all .15s;
}

.draw-tool:hover {
    background: var(--border);
}

#drawing-canvas {
    width: 100%;
    height: 450px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: crosshair;
    background: transparent;
    background-image: repeating-linear-gradient(45deg, #f8f8f8 25%, transparent 25%, transparent 75%, #f8f8f8 75%), repeating-linear-gradient(45deg, #f8f8f8 25%, transparent 25%, transparent 75%, #f8f8f8 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

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

.btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all .15s;
}

.btn-primary {
    background: var(--electric-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface-hover);
    color: var(--text);
}

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

/* ══════════════════════════════
   TOASTS
   ══════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: var(--text);
    color: white;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn .3s var(--ease-spring);
    white-space: nowrap;
}

.toast.toast-out {
    animation: toastOut .3s var(--ease-out) forwards;
}

.toast.success {
    background: var(--emerald);
}

.toast.error {
    background: var(--crimson);
}

.toast.warning {
    background: var(--amber);
    color: var(--text);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.95);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(.95);
    }
}

/* TEMP CONNECTION */
.temp-connection {
    stroke: var(--electric-blue);
    stroke-width: 2;
    stroke-dasharray: 6 4;
    fill: none;
    pointer-events: none;
}

/* Element enter animation */
.element-enter {
    animation: elementPop .3s var(--ease-spring);
}

@keyframes elementPop {
    from {
        opacity: 0;
        transform: scale(.8);
    }

    50% {
        transform: scale(1.03);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ── BOARDS NAV ── */
.boards-nav {
    position: fixed;
    bottom: 0;
    left: var(--toolbar-width);
    right: 0;
    height: var(--bottom-bar-height);
    background: white;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 900;
    justify-content: space-between;
}

.boards-list {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    flex: 1;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.boards-list::-webkit-scrollbar {
    display: none;
}

.board-tab {
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.board-tab:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.board-tab.active {
    color: var(--electric-blue);
    border-bottom-color: var(--electric-blue);
    background: rgba(59, 130, 246, 0.05);
}

.board-tab .tab-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: opacity .15s;
    color: var(--text-muted);
}

.board-tab:hover .tab-close {
    opacity: 1;
}

.board-tab .tab-close:hover {
    background: #FEF2F2;
    color: var(--crimson);
}

.add-board-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .15s;
    margin-left: 8px;
    flex-shrink: 0;
}

.add-board-btn:hover {
    background: var(--surface-hover);
    color: var(--electric-blue);
}

/* ── PROJECT MODAL ── */
.project-modal-content {
    width: 500px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.project-modal-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-actions {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
}

.project-list {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-light);
    transition: background .15s;
}

.project-item:hover {
    background: var(--surface-hover);
}

.project-info {
    flex: 1;
    cursor: pointer;
}

.project-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.project-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.project-item-actions {
    display: flex;
    gap: 6px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
}

.btn-primary {
    background: var(--electric-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
}

.btn-secondary {
    background: var(--surface-hover);
    color: var(--text-secondary);
}

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

.btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    color: var(--text-muted);
}

.btn-icon:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.btn-icon.danger:hover {
    background: #FEF2F2;
    color: var(--crimson);
}