@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f3f4f6;
  --canvas: #e9ebef;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --border: #e3e6eb;
  --border-strong: #cfd4dc;
  --text: #0e1726;
  --text-2: #3d4757;
  --muted: #6b7484;
  --faint: #9aa2af;
  --brand: #17375e;
  --brand-hover: #0f2a4a;
  --brand-soft: #e8eef6;
  --accent: #e8662a;
  --accent-soft: #fdf0e9;
  --focus: #2563eb;
  --focus-soft: rgba(37, 99, 235, .14);
  --ok: #12805c;
  --ok-soft: #e7f5ef;
  --danger: #c53030;
  --danger-soft: #fdecec;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --topbar-h: 58px;
  --panel-w: 368px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- Butoane UI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 13px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text-2);
  font-weight: 550; font-size: 13.5px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: var(--panel-2); border-color: #bfc5cf; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(14, 23, 38, .05); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: #f2c4c4; color: var(--danger); }
.btn-icon { width: 34px; padding: 0; }
.btn-sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.btn-sm.btn-icon { width: 28px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 40;
  display: flex; align-items: center; gap: 16px; padding: 0 14px 0 18px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 750; font-size: 13px; letter-spacing: -.02em; position: relative; overflow: hidden;
}
.brand-mark::after { content: ''; position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.brand-text span { font-size: 12px; color: var(--muted); }
.topbar-divider { width: 1px; height: 26px; background: var(--border); }
.doc-chip {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 420px;
  color: var(--text-2); font-size: 13px;
}
.doc-chip .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.doc-chip .meta { color: var(--faint); white-space: nowrap; }
.topbar-spacer { flex: 1; }
.zoom {
  display: flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2);
}
.zoom .btn { height: 28px; }
.zoom-value { min-width: 50px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 550; background: none; border: 0; height: 28px; border-radius: 5px; }
.zoom-value:hover { background: rgba(14, 23, 38, .05); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Layout ---------- */
.workspace { position: fixed; inset: var(--topbar-h) 0 0 0; display: flex; }
.stage { flex: 1; position: relative; overflow: auto; background: var(--canvas); }
.stage-inner { min-height: 100%; padding: 32px 40px 80px; display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* ---------- Gol / drop centralizator ---------- */
.empty {
  position: absolute; inset: 0; overflow-y: auto; padding: 40px 32px;
  display: flex; justify-content: center; align-items: flex-start;
}
.empty-col { width: min(560px, 100%); margin: auto 0; display: flex; flex-direction: column; gap: 28px; }

/* Lucrările utilizatorului */
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.recent-head h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.recent-head span { font-size: 12px; color: var(--muted); }
.recent-list { display: flex; flex-direction: column; gap: 6px; }
.project {
  display: flex; align-items: center; gap: 12px; padding: 11px 10px 11px 12px; width: 100%; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.project:hover { border-color: #c4cad3; box-shadow: var(--shadow); }
.project-icon { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.project-body { flex: 1; min-width: 0; }
.project-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.project-meta .done { color: var(--ok); font-weight: 600; }
.project .item-actions { opacity: 0; }
.project:hover .item-actions, .project:focus-within .item-actions { opacity: 1; }

/* Indicator salvare automată */
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 0 6px; white-space: nowrap; }
.save-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save-state.is-saving .dot { background: var(--faint); animation: blink 1s ease-in-out infinite; }
.save-state.is-error { color: var(--danger); }
.save-state.is-error .dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }
.dropzone-hero {
  width: min(560px, 100%);
  padding: 44px 40px 36px; text-align: center;
  background: var(--panel); border: 1.5px dashed var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow); transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.dropzone-hero.is-over { border-color: var(--focus); background: #f6f9ff; transform: scale(1.01); }
.hero-icon {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.dropzone-hero h1 { margin: 0 0 6px; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.dropzone-hero p { margin: 0 0 22px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; text-align: left; }
.step { padding: 12px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--border); }
.step b { display: block; font-size: 11px; color: var(--accent); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.step span { font-size: 12.5px; color: var(--text-2); line-height: 1.35; display: block; }

/* ---------- Pagini PDF ---------- */
.page {
  position: relative; background: #fff; flex: none;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .06), 0 2px 4px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .08);
  border-radius: 2px;
}
.page canvas { display: block; width: 100%; height: 100%; border-radius: 2px; }
.page-label {
  position: absolute; top: -20px; left: 0; font-size: 11.5px; color: var(--muted); font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.page-overlay { position: absolute; inset: 0; }
.page.is-drop-target { box-shadow: 0 0 0 2px var(--focus), 0 10px 30px rgba(16, 24, 40, .1); }
.drop-ghost {
  position: absolute; pointer-events: none; border-radius: 4px;
  border: 1.5px dashed var(--focus); background: var(--focus-soft);
}

/* Butonul plasat pe pagină (arată ca în PDF-ul final) */
.pbtn {
  position: absolute; display: flex; align-items: center; justify-content: center; gap: .35em;
  border-radius: 4px; cursor: grab; user-select: none; touch-action: none;
  font-weight: 600; white-space: nowrap; overflow: hidden; line-height: 1;
  transition: box-shadow .12s;
}
.pbtn:active { cursor: grabbing; }
.pbtn .pbtn-arrow { width: .8em; height: .8em; flex: none; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pbtn.s-navy { background: #17375e; color: #fff; }
.pbtn.s-orange { background: #e8662a; color: #fff; }
.pbtn.s-outline { background: #fff; color: #17375e; box-shadow: inset 0 0 0 1px #17375e; }
.pbtn.s-teal { background: #0f766e; color: #fff; }
.pbtn:hover { box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); }
.pbtn.s-outline:hover { box-shadow: inset 0 0 0 1px #17375e, 0 0 0 2px rgba(37, 99, 235, .35); }
.pbtn.is-selected { box-shadow: 0 0 0 2px var(--focus), 0 0 0 5px var(--focus-soft); z-index: 3; }
.pbtn.s-outline.is-selected { box-shadow: inset 0 0 0 1px #17375e, 0 0 0 2px var(--focus), 0 0 0 5px var(--focus-soft); }
.pbtn.is-missing { outline: 2px dashed var(--danger); outline-offset: 2px; }
.pbtn-handle {
  position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; border-radius: 3px;
  background: #fff; border: 1.5px solid var(--focus); cursor: nwse-resize; display: none;
}
.pbtn.is-selected .pbtn-handle { display: block; }

/* Toolbar flotant pentru butonul selectat */
.floatbar {
  position: absolute; z-index: 20; display: flex; align-items: center; gap: 4px;
  padding: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); animation: pop .14s var(--ease);
}
.floatbar input {
  width: 150px; height: 28px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--panel-2); font-size: 13px;
}
.floatbar input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-soft); background: #fff; }
.swatches { display: flex; gap: 3px; padding: 0 4px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-strong); padding: 0; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--focus); }
.swatch[data-style="navy"] { background: #17375e; }
.swatch[data-style="orange"] { background: #e8662a; }
.swatch[data-style="teal"] { background: #0f766e; }
.swatch[data-style="outline"] { background: #fff; box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 2px #17375e; }
.swatch[data-style="outline"].is-active { box-shadow: 0 0 0 2px var(--focus), inset 0 0 0 2px #17375e; }
.floatbar-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.floatbar .target { max-width: 170px; font-size: 12px; color: var(--muted); padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Panou dreapta ---------- */
.panel {
  width: var(--panel-w); flex: none; display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--border); min-height: 0;
}
.panel-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.section { padding: 18px 18px 6px; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: -.005em; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.section-hint { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }

.dropzone-sm {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--panel-2);
  color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone-sm:hover { border-color: #aab2be; background: #f3f5f8; }
.dropzone-sm.is-over { border-color: var(--focus); background: #f3f7ff; }
.dropzone-sm .dz-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--brand); flex: none; }
.dropzone-sm strong { display: block; font-size: 13px; font-weight: 600; }
.dropzone-sm span { display: block; font-size: 12px; color: var(--muted); }

.list { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.item {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px 9px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  cursor: grab; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.item:hover { border-color: #c4cad3; box-shadow: var(--shadow); }
.item:active { cursor: grabbing; }
.item.is-dragging { opacity: .5; }
.item.is-uploading { cursor: default; opacity: .7; }
.item-grip { color: var(--faint); flex: none; }
.item-badge {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.item-badge.offer { background: var(--brand-soft); color: var(--brand); }
.item-badge.cond { background: var(--accent-soft); color: #b9481a; }
.item-body { flex: 1; min-width: 0; }
.item-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-2); }
.tag-ok { background: var(--ok-soft); border-color: #bfe3d3; color: var(--ok); }
.item-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.item:hover .item-actions, .item:focus-within .item-actions { opacity: 1; }
.item-actions .btn { color: var(--muted); }
.progress { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; width: 100%; background: var(--focus); transform: scaleX(0); transform-origin: left; transition: transform .2s; }

/* Condiții: butoane gata de tras, câte unul per asigurător */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chip {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel);
  cursor: grab; user-select: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.chip:hover { border-color: #17375e; box-shadow: var(--shadow); }
.chip:active { cursor: grabbing; }
.chip.is-dragging { opacity: .5; }
.chip.is-used { background: var(--panel-2); }
.chip-badge {
  width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: #b9481a; font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.chip-text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.25; color: var(--text-2); overflow: hidden; }
.chip-text strong { font-weight: 650; color: var(--text); }
.chip-text .chip-pre { color: var(--muted); }
.chip-text em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-used { color: var(--ok); display: grid; place-items: center; flex: none; }


.search {
  position: relative; margin-bottom: 10px;
}
.search input {
  width: 100%; height: 34px; padding: 0 10px 0 32px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel-2); font-size: 13px;
}
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-soft); background: #fff; }
.search .icon { position: absolute; left: 10px; top: 9px; color: var(--faint); }
.group-label { font-size: 11px; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin: 6px 2px 2px; }
.empty-note { padding: 14px; border-radius: var(--radius); background: var(--panel-2); color: var(--muted); font-size: 12.5px; text-align: center; margin-bottom: 12px; }
.empty-note .btn { margin-top: 8px; }

.panel-foot {
  border-top: 1px solid var(--border); padding: 12px 18px; background: var(--panel-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted);
}
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 19px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: #fff; font-size: 11px; font-weight: 600; color: var(--text-2); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(14, 23, 38, .38); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 24px; animation: fade .15s;
}
.modal {
  width: min(760px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column;
  background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.modal-body { padding: 18px 22px 22px; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field input[type="text"] { height: 36px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; font-size: 13.5px; }
.field input[type="text"]:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-soft); }
.field-full { grid-column: 1 / -1; }
.file-pick { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--muted); font-size: 13px; cursor: pointer; }
.file-pick:hover { border-color: #aab2be; }
.file-pick.is-over { border-color: var(--focus); border-style: dashed; background: #f3f7ff; color: var(--focus); }
.file-pick.has-file { color: var(--text); border-style: solid; }
.file-pick .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 10px 8px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; justify-content: flex-end; gap: 4px; }
.link-cell { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; max-width: 250px; }
.link-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 100; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  background: #0e1726; color: #fff; font-size: 13px; box-shadow: var(--shadow-lg); pointer-events: auto;
  animation: pop .2s var(--ease); max-width: 520px;
}
.toast .icon { color: #7dd3b0; }
.toast.is-error .icon { color: #f8a5a5; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .2s; }

/* Overlay la tragerea fișierelor peste fereastră */
.global-drop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none;
  background: rgba(23, 55, 94, .1); border: 2px dashed var(--focus); animation: fade .12s;
}
.global-drop div { padding: 14px 20px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-lg); font-weight: 600; display: flex; gap: 10px; align-items: center; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn:not(.btn-primary) .spinner { border-color: var(--border); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  :root { --panel-w: 320px; }
  .doc-chip { display: none; }
}
@media (max-width: 760px) {
  .workspace { flex-direction: column; }
  .panel { width: 100%; height: 45%; border-left: 0; border-top: 1px solid var(--border); }
  .brand-text span, .topbar-divider, .zoom { display: none; }
  .stage-inner { padding: 24px 16px 60px; }
  .steps { grid-template-columns: 1fr; }
}
