:root { --bg: #fff; --ink: #111; --muted: #6b6b6b; --line: #e2e2e2; --soft: #f4f4f4; --accent: #38234a; --accent-ink: #fff; --error: #c33; --movie-fan-cyan: #40bcf4; --movie-fan-cyan-hover: #6fcdf7; --on-cyan: #14181c; }
@media (prefers-color-scheme: dark) { :root { --bg: #111; --ink: #eee; --muted: #9a9a9a; --line: #2c2c2c; --soft: #1b1b1b; --accent: #f7e9e0; --accent-ink: #1b1224; --error: #f07070; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 16px 8px; display: flex; flex-direction: column; justify-content: center; }
a { color: inherit; }
button, select { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
code { font-size: .95em; }

/* Empty state: one thing to do, the drop box, with the brand above it and the help beneath. */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--muted); cursor: pointer; }
.mark { border-radius: 14px; }
h1 { margin: 12px 0 2px; color: var(--ink); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.tagline { margin-bottom: 24px; }
.target { width: 100%; display: flex; flex-direction: column; gap: 2px; border: 1.5px dashed var(--muted); border-radius: 14px; padding: 36px 18px; background: var(--soft); transition: border-color .15s, background .15s; }
.target strong { color: var(--ink); font-size: 17px; font-weight: 600; }
.empty:hover .target, .empty.over .target { border-color: var(--ink); border-style: solid; }
.help { margin-top: 14px; font-size: 13px; }
#sample { margin-top: 18px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
#sample:hover { color: var(--ink); }
#error { color: var(--error); text-align: center; margin: 0; }

/* Studio: card first, then what changes it, then what you do with it, then quiet status. */
#studio { display: flex; flex-direction: column; gap: 14px; }
canvas { width: 100%; height: auto; aspect-ratio: 1080 / 1350; display: block; background: #fff; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 10px 28px rgb(0 0 0 / .10); }
#views { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); border-radius: 10px; padding: 3px; }
#views button { padding: 7px 4px; border-radius: 8px; color: var(--muted); font-size: 14px; }
#views button:hover { color: var(--ink); }
#views button[aria-selected="true"] { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.pickers { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.pickers select { color: var(--ink); font-weight: 500; }
.quiet { margin-left: auto; color: var(--muted); font-size: 13px; }
.quiet:hover { color: var(--ink); text-decoration: underline; }

.actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.actions button { height: 46px; border-radius: 999px; font-weight: 600; }
.actions .primary { background: var(--accent); color: var(--accent-ink); }
.actions .primary:hover { opacity: .88; }
.actions .secondary { border: 1.5px solid var(--ink); }
.actions .secondary:hover { background: var(--soft); }
#share-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
#share-links a, #share-links button { color: var(--ink); font-weight: 600; }
#share-links small { flex-basis: 100%; font-size: 12px; }

.status { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.status p, .status form { margin: 0; }
#lookup { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
#lookup button { color: var(--ink); font-weight: 600; text-decoration: underline; }

footer { color: var(--muted); font-size: 12px; text-align: center; padding: 28px 16px 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.support { background: var(--movie-fan-cyan); color: var(--on-cyan); font-weight: 600; font-size: 15px; text-decoration: none; padding: 11px 28px; border-radius: 8px; }
.support:hover { background: var(--movie-fan-cyan-hover); }
footer nav { display: flex; gap: 18px; font-size: 13px; }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 0; max-width: 34em; font-size: 11px; line-height: 1.5; }
body.dragging::after { content: "Drop to load"; position: fixed; inset: 12px; display: grid; place-items: center; border: 2px dashed var(--ink); border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); font-size: 22px; font-weight: 600; pointer-events: none; }
[hidden] { display: none !important; }
