:root {
  --ink: #1c1a17;
  --paper: #fbf8f3;
  --petrol: #1e5f63;
  --amber: #e3a63a;
  --line: #e5ded2;
  --ok: #2e7d4f;
  --danger: #b3413a;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ede7dc; --paper: #161310; --line: #332d25; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
}
main { max-width: 480px; margin: 0 auto; padding: 20px 16px 100px; }
h1 { font-size: 1.4rem; margin: 0 0 4px; }
.sub { color: #8a8074; font-size: 0.9rem; margin: 0 0 20px; }
.card { background: color-mix(in srgb, var(--paper) 92%, var(--ink) 3%); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.btn { display: block; width: 100%; padding: 14px; border-radius: 10px; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; }
.btn-primary { background: var(--petrol); color: white; }
.btn-primary:disabled { opacity: 0.5; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; margin-right: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery .item { aspect-ratio: 1; background: var(--line); border-radius: 8px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.gallery .item.excluded { opacity: 0.35; }
.gallery .item.mine .del-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; cursor: pointer; border: none; }
.gallery .item .curate-btn { position: absolute; bottom: 4px; left: 4px; padding: 2px 8px; border-radius: 999px; border: none; font-size: 0.7rem; cursor: pointer; background: color-mix(in srgb, var(--paper) 85%, black 5%); color: var(--ink); }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-open { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.status-rendering { background: color-mix(in srgb, var(--amber) 25%, transparent); color: #8a5c10; }
.status-done { background: color-mix(in srgb, var(--petrol) 20%, transparent); color: var(--petrol); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: var(--petrol); width: 0%; transition: width 0.2s; }
.hint { font-size: 0.82rem; color: #8a8074; margin-top: 6px; }
a.btn-link { color: var(--petrol); font-weight: 600; text-decoration: none; }
