:root {
    --bg: #0f1117;
    --bg2: #1a1d27;
    --bg3: #222635;
    --border: #2e3248;
    --accent: #5b6ef5;
    --accent2: #7c8fff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #e2e6f3;
    --text2: #9aa0be;
    --text3: #5c6280;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --transition: 0.18s ease;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--text); }

/* ── LAYOUT ── */
.wrapper { display: flex; min-height: 100vh; }

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

.sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}
.sidebar-logo span { color: var(--accent2); }
.sidebar-logo p { font-size: 11px; color: var(--text3); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 14px 10px; }
.nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text3);
    padding: 10px 10px 6px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    cursor: pointer;
}
.nav-item:hover, .nav-item.active {
    background: var(--bg3);
    color: var(--text);
}
.nav-item.active { color: var(--accent2); }
.nav-item svg { flex-shrink: 0; opacity: 0.8; }

.sidebar-footer {
    padding: 16px 10px;
    border-top: 1px solid var(--border);
}

.main {
    margin-left: 230px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar h2 { font-size: 17px; font-weight: 600; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.content { padding: 28px; flex: 1; }

/* ── CARDS ── */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.88; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.88; }
.btn-ghost {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-xs { padding: 3px 9px; font-size: 12px; }
.btn-warning { background: var(--warning); color: #000; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 6px;
}
input[type=text], input[type=password], input[type=date],
select, textarea {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text3);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(46,50,72,0.5);
    vertical-align: middle;
    font-size: 14px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(91,110,245,0.04); }

/* ── BADGES ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-draft { background: rgba(156,163,175,0.15); color: #9ca3af; }
.badge-sent { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-revision { background: rgba(245,158,11,0.15); color: var(--warning); }

/* ── SEARCH/FILTER BAR ── */
.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.filter-bar input, .filter-bar select {
    width: auto;
    min-width: 180px;
}

/* ── REPORT ITEMS (edit page) ── */
.report-item-block {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
}
.item-handle {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    color: var(--text3);
    font-size: 18px;
}
.item-images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.img-thumb {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg2);
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb .del-img {
    position: absolute;
    top: 3px; right: 3px;
    background: rgba(239,68,68,0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px; height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-item-btn {
    border: 2px dashed var(--border);
    background: transparent;
    color: var(--text3);
    border-radius: var(--radius);
    padding: 14px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}
.add-item-btn:hover { border-color: var(--accent); color: var(--accent2); }

/* ── COPY LINK ── */
.copy-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}
.copy-link-box input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
}

/* ── LOGIN PAGE ── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at 30% 30%, rgba(91,110,245,0.12) 0%, transparent 60%), var(--bg);
}
.login-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px;
    width: 380px;
    box-shadow: var(--shadow);
}
.login-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.login-card p { color: var(--text2); font-size: 14px; margin-bottom: 28px; }

/* ── PUBLIC VIEW ── */
.public-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.public-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.public-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.public-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text2); font-size: 14px; }
.public-meta span { display: flex; align-items: center; gap: 5px; }
.report-section { margin-bottom: 36px; }
.report-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.report-section .body-text {
    color: var(--text2);
    line-height: 1.8;
    white-space: pre-wrap;
}
.section-images {
    display: block;
    margin-top: 16px;
}
.img-figure {
    display: inline-block;
    margin: 0 0 18px 0;
    max-width: 100%;
}
.img-figure img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    display: block;
}
.img-figure figcaption {
    font-size: 13px;
    color: var(--text3);
    margin-top: 6px;
    font-style: italic;
    line-height: 1.5;
}

/* ── ALERTS ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-success { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.alert-error { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* ── STATS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--accent2); }
.stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* ── IMPORT PREVIEW ── */
.import-preview {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 16px;
}
.import-preview h4 { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.preview-item {
    border-left: 3px solid var(--accent);
    padding: 8px 12px;
    margin-bottom: 10px;
    background: var(--bg2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.preview-item .pi-head { font-size: 13px; font-weight: 600; color: var(--accent2); }
.preview-item .pi-body { font-size: 13px; color: var(--text2); margin-top: 3px; white-space: pre-wrap; }

/* ── MODAL ── */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: min(520px, 94vw);
    box-shadow: var(--shadow);
}
.modal h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

/* ── IMG THUMB WRAP (admin edit) ── */
.img-thumb-wrap {
    margin-bottom: 10px;
}

/* ── LIGHTBOX ── */
#lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 300;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
#lightbox.open { display: flex; }
.lb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 88vw;
}
#lightbox img { max-width: 88vw; max-height: 82vh; border-radius: var(--radius-sm); display: block; }
.lb-caption {
    color: #e2e6f3;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
    max-width: 600px;
    font-style: italic;
}
.lb-counter {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin-top: 4px;
}
#lightbox .lb-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 28px; cursor: pointer; background: none; border: none;
}
.lb-nav {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }

/* ── ITEM COLLAPSE ── */
.item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
    user-select: none;
}
.item-header:hover { background: rgba(255,255,255,0.04); }
.item-heading-preview {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-header-actions { display: flex; gap: 4px; }
.item-toggle-icon { font-size: 11px; color: var(--text3); flex-shrink: 0; }
.item-cat-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.item-drag-handle { cursor: grab; color: var(--text3); font-size: 20px; flex-shrink: 0; }

.item-body { display: none; border-top: 1px solid var(--border); }
.item-body--open { display: block; }

/* ── DRAG SORT ── */
.sortable-ghost { opacity: 0.4; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

@media (max-width: 768px) {
    .sidebar { width: 200px; }
    .main { margin-left: 200px; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── REF SIDEBAR (public view) ── */
.page-with-sidebar {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}
.ref-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    background: var(--bg2);
    padding: 28px 16px 40px;
    scrollbar-width: thin;
}
.ref-sidebar-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.ref-entry {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background var(--transition);
}
.ref-entry:hover { background: var(--bg3); border-color: var(--border); }
.ref-entry-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.4;
}
.ref-entry-content {
    font-size: 12px;
    color: var(--text3);
    line-height: 1.5;
    word-break: break-all;
}
.ref-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--text2);
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-with-sidebar .public-wrap {
    flex: 1;
    min-width: 0;
}

/* ── REF tab / drop zone (global refs edit) ── */
.ref-tab {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text2);
    cursor: pointer;
    transition: var(--transition);
}
.ref-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ref-tab:hover:not(.active) { background: var(--bg3); color: var(--text); }
.ref-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text3);
    font-size: 13px;
}
.ref-drop-zone small { font-size: 11px; color: var(--text3); opacity: 0.7; }
.ref-drop-zone:hover, .ref-drop-zone.drag-over { border-color: var(--accent); color: var(--accent2); background: rgba(91,110,245,0.05); }
.ref-drop-zone.ref-has-file { border-style: solid; border-color: var(--success); color: var(--success); opacity: 0.6; }
.ref-drop-zone.uploading { opacity: 0.5; pointer-events: none; }
.ref-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text2);
}
.ref-filename { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── GLOBAL REFS (edit page) ── */
.gref-add-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg3);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

/* ── Public tabs ──────────────────────────────────────────────────────────── */
.pub-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}
.pub-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.pub-tab:hover { color: var(--text); }
.pub-tab.active { color: var(--accent2); border-bottom-color: var(--accent2); font-weight: 600; }
.pub-tab-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.4;
}

/* ── Public request items ─────────────────────────────────────────────────── */
.pub-req-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.pub-req-received { opacity: 0.6; }
.pub-req-check { flex-shrink: 0; padding-top: 1px; color: var(--text3); }
.pub-req-body { flex: 1; }
.pub-req-heading { font-size: 15px; font-weight: 500; line-height: 1.4; }
.pub-req-detail { font-size: 13px; color: var(--text2); margin-top: 4px; white-space: pre-wrap; }
.pub-req-due { font-size: 12px; color: var(--text3); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ── Admin request rows ───────────────────────────────────────────────────── */
.req-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    background: var(--bg2);
    overflow: hidden;
}
.req-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
.req-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.req-pending  { background: #f59e0b; }
.req-received { background: #22c55e; }
.req-info { flex: 1; min-width: 0; }
.req-heading { font-size: 14px; font-weight: 500; }
.req-detail  { font-size: 12px; color: var(--text3); margin-top: 2px; }
.req-due { font-size: 12px; color: var(--text3); white-space: nowrap; }
.req-edit-form { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg3); }
.req-add-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg3);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.gref-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}
.gref-icon { color: var(--text3); flex-shrink: 0; }
.gref-info { flex: 1; min-width: 0; }
.gref-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.gref-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gref-wrap {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    overflow: hidden;
}
.gref-wrap .gref-row {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}
.gref-edit-form {
    border-top: 1px solid var(--border);
    padding: 12px 14px;
    background: var(--bg2);
}

/* ── GLOBAL REFS sidebar ── */
.ref-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text3);
    padding: 4px 12px 6px;
}
.ref-entry-global { background: rgba(91,110,245,0.04); }

/* ── CATEGORY FILTER (public view) ── */
#cat-filter {
    margin-bottom: 20px;
}
.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text2);
    transition: all 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.cat-btn:hover { background: var(--bg3); color: var(--text); }
.cat-btn.active { background: var(--bg3); color: var(--text); font-weight: 600; }
.cat-btn[style] { color: var(--c, var(--text2)); }
.cat-btn[style]:hover { background: color-mix(in srgb, var(--c, #5b6ef5) 12%, transparent); }
.cat-btn[style].active { background: color-mix(in srgb, var(--c, #5b6ef5) 15%, transparent); color: var(--c); }
.cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c, var(--accent));
    flex-shrink: 0;
    opacity: 0.85;
}

/* ── PASTE ZONE ── */
.paste-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    background: transparent;
}
.paste-zone:hover, .paste-zone.drag-over {
    border-color: var(--accent);
    background: rgba(91,110,245,0.06);
}
.paste-hint {
    font-size: 12px;
    color: var(--text3);
    pointer-events: none;
}
.paste-zone.drag-over .paste-hint { color: var(--accent2); }
.loading-thumb {
    background: var(--bg3);
    animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
