:root { --bg:#0B0B0F; --surface:#121218; --border:#23232E; --text:#F5F5F7; --muted:#9A9AA5; --accent:#E5484D; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height:1.5; }
.topbar { padding:24px; border-bottom:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:12px; font-size:28px; font-weight:800; }
.brand-mark { display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center; background:var(--accent); border-radius:10px; }
.tagline { color:var(--muted); margin:8px 0 0; }
.layout { display:grid; grid-template-columns:1fr 1.4fr 1fr; gap:16px; padding:16px; }
@media (max-width:1000px) { .layout { grid-template-columns:1fr; } }
.panel { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:20px; }
h2 { margin:0 0 16px; font-size:19px; }
h2:not(:first-child) { margin-top:24px; }
.dropzone { border:2px dashed var(--border); border-radius:12px; padding:24px; text-align:center; }
.dropzone.drag { border-color:var(--accent); background:#1a1214; }
.btn { display:inline-block; background:var(--accent); color:#fff; border:0; border-radius:10px; padding:10px 16px; font-weight:700; cursor:pointer; text-decoration:none; }
.btn.secondary { background:transparent; color:var(--text); border:1px solid var(--border); }
.btn.secondary.active { border-color:var(--accent); color:#fff; }
.btn:disabled { opacity:.45; cursor:not-allowed; }
.row { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.selected, .status { font-weight:600; }
.dimension { font-weight:700; }
.muted { color:var(--muted); }
#previewCanvas { width:100%; height:auto; background:#000; border:1px solid var(--border); border-radius:12px; display:block; touch-action:none; cursor:grab; }
#previewCanvas:active { cursor:grabbing; }
.field { display:block; margin:14px 0; }
.field input[type="text"], .field select { width:100%; margin-top:6px; background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:10px; padding:10px; }
.field input[type="range"] { width:100%; accent-color:var(--accent); }
.frame-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.frame-card { background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:12px; padding:10px; cursor:pointer; text-align:left; display:flex; flex-direction:column; gap:6px; }
.frame-card.selected { border-color:var(--accent); outline:2px solid var(--accent); }
.frame-card .swatch { display:block; height:44px; border-radius:8px; border:1px solid var(--border); }
.frame-card .frame-name { font-weight:700; font-size:14px; }
.frame-card .frame-cat { font-size:12px; }
.footer { border-top:1px solid var(--border); padding:24px; text-align:center; color:var(--muted); }
.footer a { color:var(--text); }
