
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin:0; background:#0b1020; color:#e8ecf1; }
header { display:flex; justify-content:space-between; align-items:center; padding:16px 24px; background:#101a33; border-bottom:1px solid #2a3558; }
h1 { font-size:20px; margin:0; }
#status { font-size:14px; color:#9fb3d4; }

main { display:grid; grid-template-columns: 1fr 1fr; gap:16px; padding:16px; }
#upload { grid-column:span 2; display:flex; gap:8px; }
.btn, button { background:#1a2454; color:#fff; border:none; padding:10px 14px; border-radius:12px; cursor:pointer; }
.btn:hover, button:hover { background:#263079; }

#preview { background:#0f172a; padding:12px; border-radius:16px; border:1px solid #22305a; }
#canvas { width:100%; height:auto; display:block; border-radius:8px; }

#lines { background:#0f172a; padding:12px; border-radius:16px; border:1px solid #22305a; }
.lineItem { border:1px solid #2a3558; border-radius:12px; padding:10px; margin-bottom:8px; background:#0b1430; }
.coords { font-size:12px; color:#8fa3c9; margin-bottom:6px; }
.suggestions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.suggestions .opt { background:#1a2454; padding:6px 10px; border-radius:10px; }
.edit { width:100%; padding:8px; border-radius:8px; border:1px solid #2a3558; background:#0b1020; color:#e8ecf1; display:none; }
.actions { display:flex; gap:6px; margin-top:6px; }
.hints { color:#8fa3c9; font-size:12px; margin-top:8px; }
.active { outline:2px solid #6aa3ff; }
