:root,
[data-theme="light"] {
    --bg-color: #fcfcfc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --text-color: #1a1a1a;
    --border-color: #eaeaea;
    --brand-color: #007aff;
    --ui-text-color: #666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --node-bg: transparent;
    --node-focus-bg: white;
    --node-hover-border: rgba(0, 0, 0, 0.05);
    --delete-btn-bg: rgba(255, 255, 255, 0.5);
    --delete-btn-hold-color: #000;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --text-color: #e0e0e0;
    --border-color: #333;
    --brand-color: #0a84ff;
    --ui-text-color: #aaa;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --node-bg: transparent;
    --node-focus-bg: #1e1e1e;
    --node-hover-border: rgba(255, 255, 255, 0.1);
    --delete-btn-bg: rgba(0, 0, 0, 0.5);
    --delete-btn-hold-color: #fff;
}

#empty-hint {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    pointer-events: none;
    z-index: 1;
    padding: 24px;
    text-align: center;
    color: var(--ui-text-color);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
body.is-empty #empty-hint {
    display: grid;
    animation: empty-hint-in 0.6s ease-out both;
}
@keyframes empty-hint-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.empty-hint-inner {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
#empty-hint h2 {
    font-size: clamp(22px, 3.6vw, 30px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-color);
    margin: 0;
    opacity: 0.82;
}
#empty-hint .surface-word::before { content: attr(data-light); }
[data-theme="dark"] #empty-hint .surface-word::before { content: attr(data-dark); }
#empty-hint ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.75;
}
#empty-hint ul strong {
    color: var(--text-color);
    font-weight: 600;
}

#bottom-bar {
    display: contents;
}

.delete-btn-wrap {
    display: contents;
}

.delete-btn-tip {
    display: none;
}

#undo-btn {
    position: absolute;
    bottom: 24px;
    right: 204px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    color: var(--ui-text-color);
    display: none; /* hidden on desktop non-touch; shown in mobile/touch media query below */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    z-index: 1000;
}

#undo-btn:hover:not(:disabled) {
    background: var(--bg-color);
}

#undo-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#theme-toggle, #eraser-toggle {
    position: absolute;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    color: var(--ui-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    z-index: 1000;
}

#theme-toggle {
    right: 24px;
}

#eraser-toggle {
    right: 84px;
}

#eraser-toggle:hover, #theme-toggle:hover {
    color: var(--text-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

#eraser-toggle:active, #theme-toggle:active {
    transform: scale(0.95);
}

#eraser-toggle.active {
    background: #ff3b30;
    color: white;
    border-color: #ff3b30;
}

#color-picker {
    position: absolute;
    bottom: 24px;
    right: 144px;
    display: flex;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    align-items: center;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    outline: none;
    padding: 0;
}

.color-btn[data-color="var(--text-color)"] {
    background-color: var(--text-color);
}

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

.color-btn.active {
    border-color: var(--brand-color);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--brand-color);
}

[data-eraser="true"] #canvas {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="23" fill="none" stroke="black" stroke-width="2" stroke-dasharray="4,4"/><circle cx="24" cy="24" r="23" fill="none" stroke="white" stroke-width="2" stroke-dasharray="4,4" stroke-dashoffset="4"/></svg>') 24 24, crosshair !important;
}

[data-eraser="true"] .text-node, [data-eraser="true"] .stroke-node path {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="23" fill="none" stroke="black" stroke-width="2" stroke-dasharray="4,4"/><circle cx="24" cy="24" r="23" fill="none" stroke="white" stroke-width="2" stroke-dasharray="4,4" stroke-dashoffset="4"/></svg>') 24 24, crosshair !important;
}

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

body, html {
    width: 100vw;
    height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    overscroll-behavior: none;
    cursor: crosshair;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.text-node[contenteditable="true"],
.text-node-body,
input,
textarea {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.postit-touch-hint {
    position: fixed;
    transform: translate(-50%, 0);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--ui-text-color);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.2;
    pointer-events: none;
    box-shadow: var(--shadow);
    z-index: 3500;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    max-width: 90vw;
}

.postit-touch-hint.visible {
    opacity: 1;
}

:root[data-postit-discovered] .postit-touch-hint {
    display: none;
}

.eraser-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 3000;
    opacity: 0;
    background-size: 48px 48px;
    background-repeat: no-repeat;
    transform: translate(-24px, -24px);
}

.eraser-preview.visible {
    opacity: 1;
}

.eraser-preview.eraser-mode {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><circle cx='24' cy='24' r='23' fill='none' stroke='black' stroke-width='2' stroke-dasharray='4,4'/><circle cx='24' cy='24' r='23' fill='none' stroke='white' stroke-width='2' stroke-dasharray='4,4' stroke-dashoffset='4'/></svg>");
}

.eraser-preview.crosshair-mode {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M24 10v28M10 24h28' stroke='black' stroke-width='2' stroke-linecap='round'/><path d='M24 10v28M10 24h28' stroke='white' stroke-width='1' stroke-linecap='round'/></svg>");
}

#about-link {
    position: fixed;
    top: 20px;
    left: 20px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--ui-text-color);
    opacity: 0.5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    z-index: 1000;
    line-height: 1;
}

#about-link:hover {
    opacity: 1;
    color: var(--text-color);
}

@media (max-width: 1000px) {
    .about-link-suffix {
        display: none;
    }
}

@media (max-width: 490px), (hover: none) and (pointer: coarse) {
    #about-link {
        display: none;
    }
}

#top-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 1000;
    cursor: default;
    transition: all 0.2s ease;
    min-width: 800px;
    max-width: 95vw;
}

#top-bar:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

#board-url-display {
    font-size: 13px;
    color: var(--ui-text-color);
    font-weight: 500;
    user-select: all;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

@media (hover: hover) {
    #top-bar {
        min-width: 0;
    }
    #top-bar #board-url-display,
    #top-bar #copy-btn span,
    #top-bar #new-canvas-btn span,
    #top-bar #print-btn span {
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        vertical-align: middle;
        max-width: 0;
        opacity: 0;
        margin-left: -6px;
        transition: max-width 0.5s ease, opacity 0.5s ease, margin-left 0.5s ease;
    }
    #top-bar.expanded #board-url-display,
    #top-bar.expanded #copy-btn span,
    #top-bar.expanded #new-canvas-btn span,
    #top-bar.expanded #print-btn span {
        max-width: 400px;
        opacity: 1;
        margin-left: 0;
        transition: none;
    }
}

@media (hover: none) {
    #top-bar {
        position: fixed;
        min-width: 0;
        padding: 6px 10px;
        gap: 8px;
    }
    #board-url-display {
        display: none;
    }
    #copy-btn span,
    #new-canvas-btn span,
    #print-btn span {
        display: none;
    }
    #copy-btn,
    #new-canvas-btn,
    #print-btn {
        padding: 6px 8px;
    }
}

#canvas {
    transition: filter 0.25s ease;
}
#canvas.deleting {
    filter: blur(18px);
    transition: filter 5s linear;
}

#erased-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#erased-overlay[hidden] {
    display: none;
}

.erased-card {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1.5px solid #ff3b30;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.erased-card h1 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #ff3b30;
}

#erased-new-btn {
    background: var(--brand-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

#erased-new-btn:hover {
    background: #005bb5;
}

#delete-board-btn {
    position: fixed;
    bottom: 30px;
    left: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: var(--delete-btn-bg);
    backdrop-filter: blur(8px);
    color: #ff3b30;
    border: none;
    box-shadow: inset 0 0 0 1.5px #ff3b30;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    line-height: 1;
    overflow: hidden;
    isolation: isolate;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

#delete-board-btn svg {
    flex-shrink: 0;
}

#delete-board-btn:hover {
    background: rgba(255, 59, 48, 0.08);
}

#delete-board-btn:active {
    transform: scale(0.97);
}

#delete-board-btn.holding {
    background: rgba(255, 59, 48, 0.08);
}

.delete-btn-progress {
    position: absolute;
    inset: 0;
    background: #ff3b30;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
}

#delete-board-btn.holding .delete-btn-progress {
    transform: scaleX(1);
    transition: transform 5s linear;
}

.delete-btn-label {
    position: relative;
    display: inline-block;
    text-align: left;
}

.delete-btn-label::before {
    content: attr(data-hold);
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    text-align: left;
}

#delete-board-btn.holding {
    color: var(--delete-btn-hold-color);
}

#copy-btn,
#new-canvas-btn,
#print-btn {
    background: #5a5a5c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

#copy-btn svg,
#new-canvas-btn svg,
#print-btn svg {
    flex-shrink: 0;
}

#copy-btn:hover,
#new-canvas-btn:hover,
#print-btn:hover {
    background: #7a7a7c;
}

#copy-btn:active,
#new-canvas-btn:active,
#print-btn:active {
    transform: scale(0.95);
}

#canvas {
    width: 100%;
    height: 100%;
    position: relative;
    isolation: isolate; /* Contain canvas children z-index so UI chrome (z-index ≥1000) always stays above. */
    cursor: crosshair;
    touch-action: none; /* Prevent scrolling while drawing on touch devices */
    overscroll-behavior: none;
    user-select: none; /* prevent text highlighting while drag-erasing */
}

.stroke-node path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.image-node {
    position: absolute;
    user-select: none;
    pointer-events: auto;
    border-radius: 4px;
    cursor: crosshair;
    overflow: visible;
    touch-action: none;
    isolation: isolate;
}

.image-node-content {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    max-width: none;
    max-height: none;
    border-radius: 4px;
}

.text-node.dragging,
.image-node.dragging {
    cursor: grabbing !important;
    opacity: 0.9;
}

.image-resize-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: transparent;
    border: 0;
    opacity: 0;
    pointer-events: auto;
}

.image-drag-handle {
    position: absolute;
    pointer-events: auto;
    background: transparent;
}

.image-drag-handle::after,
.image-resize-handle::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    mix-blend-mode: difference;
}

.image-node:hover .image-drag-handle::after,
.image-node:hover .image-resize-handle::after {
    opacity: 1;
}

.image-drag-handle-top,
.image-drag-handle-bottom {
    left: 18px;
    right: 18px;
    height: 32px;
    cursor: grab;
}

.image-drag-handle-top {
    top: 0;
}

.image-drag-handle-bottom {
    bottom: 0;
}

.image-drag-handle-left,
.image-drag-handle-right {
    top: 18px;
    bottom: 18px;
    width: 32px;
    cursor: grab;
}

.image-drag-handle-left {
    left: 0;
}

.image-drag-handle-right {
    right: 0;
}

.image-drag-handle-top::after,
.image-drag-handle-bottom::after {
    left: 4px;
    right: 4px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.image-drag-handle-top::after {
    top: 4px;
}

.image-drag-handle-bottom::after {
    bottom: 4px;
}

.image-drag-handle-left::after,
.image-drag-handle-right::after {
    top: 4px;
    bottom: 4px;
    width: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.image-drag-handle-left::after {
    left: 4px;
}

.image-drag-handle-right::after {
    right: 4px;
}

.image-resize-handle-nw {
    top: -9px;
    left: -9px;
    cursor: nwse-resize;
}

.image-resize-handle-ne {
    top: -9px;
    right: -9px;
    cursor: nesw-resize;
}

.image-resize-handle-sw {
    bottom: -9px;
    left: -9px;
    cursor: nesw-resize;
}

.image-resize-handle-se {
    right: -9px;
    bottom: -9px;
    cursor: nwse-resize;
}

.image-resize-handle::after {
    inset: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.85);
}

.image-node:hover .image-resize-handle::after {
    transform: scale(1);
}

.image-node.dragging .image-drag-handle::after,
.image-node.dragging .image-resize-handle::after,
.image-node.resizing .image-drag-handle::after,
.image-node.resizing .image-resize-handle::after {
    opacity: 0;
}

[data-pan-ready="true"] #canvas,
[data-pan-ready="true"] .text-node,
[data-pan-ready="true"] .image-node,
[data-pan-ready="true"] .image-node * {
    cursor: grab !important;
}

[data-panning="true"] #canvas,
[data-panning="true"] .text-node,
[data-panning="true"] .image-node,
[data-panning="true"] .image-node * {
    cursor: grabbing !important;
}

[data-eraser="true"] .image-node {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="23" fill="none" stroke="black" stroke-width="2" stroke-dasharray="4,4"/><circle cx="24" cy="24" r="23" fill="none" stroke="white" stroke-width="2" stroke-dasharray="4,4" stroke-dashoffset="4"/></svg>') 24 24, crosshair !important;
}

[data-eraser="true"] .image-node * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="23" fill="none" stroke="black" stroke-width="2" stroke-dasharray="4,4"/><circle cx="24" cy="24" r="23" fill="none" stroke="white" stroke-width="2" stroke-dasharray="4,4" stroke-dashoffset="4"/></svg>') 24 24, crosshair !important;
}

@media (max-width: 490px), (hover: none) and (pointer: coarse) {
    #bottom-bar {
        display: flex;
        position: fixed;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        gap: 12px;
        background: var(--glass-bg);
        backdrop-filter: blur(8px);
        border: 1px solid var(--border-color);
        border-radius: 28px;
        padding: 8px 14px;
        box-shadow: var(--shadow);
        z-index: 1000;
        max-width: calc(100vw - 24px);
    }

    #bottom-bar > #theme-toggle,
    #bottom-bar > #eraser-toggle,
    #bottom-bar > #undo-btn,
    #bottom-bar > #color-picker {
        position: static;
        bottom: auto;
        left: auto;
        right: auto;
        box-shadow: none;
        backdrop-filter: none;
    }

    #bottom-bar > .delete-btn-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #bottom-bar > .delete-btn-wrap > #delete-board-btn {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        box-shadow: none;
        backdrop-filter: none;
    }

    .delete-btn-tip {
        display: none;
    }

    .delete-btn-wrap:has(#delete-board-btn.holding) .delete-btn-tip {
        display: block;
        position: absolute;
        bottom: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        background: #ff3b30;
        color: white;
        padding: 5px 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        pointer-events: none;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    }

    .delete-btn-wrap:has(#delete-board-btn.holding) .delete-btn-tip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: #ff3b30;
    }

    #bottom-bar > #color-picker {
        background: transparent;
        border: none;
        padding: 0;
        gap: 14px;
        border-radius: 0;
    }

    #theme-toggle, #eraser-toggle, #undo-btn {
        width: 40px;
        height: 40px;
        border-color: transparent;
        background: transparent;
    }

    #theme-toggle .theme-icon,
    #eraser-toggle svg,
    #undo-btn svg {
        width: 22px;
        height: 22px;
    }

    #undo-btn {
        display: inline-flex;
    }

    .color-btn {
        width: 26px;
        height: 26px;
        border-width: 2px;
    }

    .color-btn.active {
        box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--brand-color);
    }

    #delete-board-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        background: transparent;
    }

    #delete-board-btn .delete-btn-label {
        display: none;
    }

    #delete-board-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 415px) {
    #bottom-bar {
        gap: 8px;
        padding: 6px 10px;
        border-radius: 22px;
        bottom: 10px;
    }

    #bottom-bar > #color-picker {
        gap: 10px;
    }

    #theme-toggle, #eraser-toggle, #undo-btn, #delete-board-btn {
        width: 34px;
        height: 34px;
    }

    #theme-toggle .theme-icon,
    #eraser-toggle svg,
    #undo-btn svg {
        width: 18px;
        height: 18px;
    }

    .color-btn {
        width: 22px;
        height: 22px;
        border-width: 1.5px;
    }

    .color-btn.active {
        box-shadow: 0 0 0 1.5px var(--bg-color), 0 0 0 3px var(--brand-color);
    }

    #delete-board-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 330px) {
    #bottom-bar > #color-picker {
        display: none;
    }
}

#drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.08);
    border: 3px dashed var(--brand-color);
    box-sizing: border-box;
}

body.drop-active #drop-overlay {
    display: flex;
}

.drop-overlay-inner {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 18px 26px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
