:root {
  --bg: #0c0a16; --panel: #16132a; --panel-2: #1d1938; --line: rgba(255,255,255,.08);
  --text: #ece9f8; --muted: #9a95b8; --accent: #6366f1; --accent-2: #ec4899;
  --grad: linear-gradient(135deg,#6366f1,#ec4899);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 -apple-system,"PingFang SC",system-ui,sans-serif; word-break: keep-all; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 12px 22px; background: rgba(12,10,22,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .logo { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); }
.bar .spacer { flex: 1; }
.field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.field select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
.ghost:hover { background: var(--panel-2); border-color: var(--accent); }
.status { font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 120px; }

.drop { padding: 60px 22px; display: flex; justify-content: center; }
.drop.hidden { display: none; }
.drop-inner { border: 2px dashed var(--line); border-radius: 18px; padding: 54px 70px; text-align: center; color: var(--muted); max-width: 600px; }
.drop.over .drop-inner { border-color: var(--accent); background: rgba(99,102,241,.06); }
.drop-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; background: var(--grad); opacity: .9; }
.drop .link { color: var(--accent-2); cursor: pointer; text-decoration: underline; }
.drop small { display: block; margin-top: 10px; font-size: 12px; opacity: .8; }

.stage { display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding: 22px; align-items: start; }
.stage.hidden { display: none; }
.imgwrap { position: relative; line-height: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.imgwrap img { width: 100%; height: auto; display: block; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.obox {
  position: absolute; pointer-events: auto;
  background: rgba(12,10,22,.86); color: #fff;
  border-radius: 4px; padding: 1px 3px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: 600 13px/1.2 -apple-system,"PingFang SC",system-ui,sans-serif;
  word-break: keep-all; border: 1px solid rgba(236,72,153,.4);
}
.obox.loading { color: var(--muted); }
.obox.err { border-color: #f87171; color: #f87171; background: rgba(12,10,22,.7); }

.list { display: flex; flex-direction: column; gap: 10px; }
.list h3 { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.lrow { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.lrow .lo { font-size: 12.5px; color: var(--muted); }
.lrow .lt { font-size: 14.5px; margin-top: 4px; text-wrap: pretty; }
.lrow .lt.loading { color: var(--muted); font-style: italic; }
.err { color: #f87171; }
