/* HAIGA Reel Editor: night background, mist text, sunrise for the one thing to act on. One sans font. */
:root {
  --night: #0B1426;
  --night-2: #111D33;
  --night-3: #18263F;
  --night-4: #22324F;
  --mist: #F4F1EB;
  --mist-2: #B9BFCB;
  --mist-3: #7D879A;
  --sunrise: #FF7A1A;
  --sunrise-2: #FF9A4D;
  --good: #6FCF97;
  --bad: #FF6B5A;
  --cap: #3B5B8C;
  --card: #6A4E8F;
  --title: #A8561F;
  --music: #2F6B5E;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 6px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--night); color: var(--mist); font: 15px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
h1, h2, h3 { margin: 0; font-weight: 650; }
h1 { font-size: 1.15rem; }
h2 { font-size: 0.95rem; margin-bottom: 0.5rem; }
h3 { font-size: 0.85rem; color: var(--mist-2); margin: 0.6rem 0 0.2rem; }
p { margin: 0 0 0.5rem; }
a { color: var(--mist); }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  background: var(--night-4); border: 0; border-radius: var(--r); padding: 0.55rem 0.85rem; min-height: 40px;
  cursor: pointer; touch-action: manipulation;
}
button:hover { background: #2B3D5E; }
button:disabled { color: var(--mist-3); cursor: default; background: var(--night-3); }
button[aria-pressed="true"] { background: var(--mist); color: var(--night); }
button.primary { background: var(--sunrise); color: var(--night); font-weight: 650; }
button.primary:hover { background: var(--sunrise-2); }
button.primary:disabled { background: var(--night-3); color: var(--mist-3); }
button.danger { color: var(--bad); }
:focus-visible { outline: 2px solid var(--sunrise); outline-offset: 2px; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  background: var(--night); border: 0; border-radius: var(--r); padding: 0.55rem 0.7rem; min-height: 40px; width: 100%;
  box-shadow: inset 0 0 0 1px var(--night-4);
}
textarea { resize: vertical; }
.quiet { color: var(--mist-3); }
.hint { color: var(--mist-3); font-size: 0.85rem; margin-top: 0.6rem; }
.pad { padding: 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grow { flex: 1; }

/* login */
.login { max-width: 360px; margin: 18vh auto 0; padding: 0 1.25rem; display: grid; gap: 0.8rem; }
.login p { color: var(--mist-2); }

/* project list */
.list { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.list h1 { font-size: 1.4rem; margin-bottom: 1rem; }
.list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.list a { display: flex; gap: 0.9rem; align-items: center; padding: 0.55rem; border-radius: var(--r); text-decoration: none; background: var(--night-2); }
.list a:hover { background: var(--night-3); }
.list img, .nothumb { width: 60px; height: 107px; object-fit: cover; border-radius: 4px; background: var(--night-3); flex: none; }
.meta { display: grid; gap: 0.15rem; flex: 1; min-width: 0; }
.meta strong { overflow-wrap: anywhere; }
.meta span { color: var(--mist-3); font-size: 0.88rem; }
.st { font-size: 0.88rem; color: var(--mist-2); white-space: nowrap; }
.st-approved { color: var(--good); }
.st-preview-sent { color: var(--sunrise-2); }

#toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 2rem); visibility: hidden; pointer-events: none;
  background: var(--mist); color: var(--night); padding: 0.65rem 1rem; border-radius: var(--r); max-width: min(92vw, 520px);
  transition: transform 0.2s; z-index: 50; font-weight: 550;
}
#toast.show { transform: translate(-50%, 0); visibility: visible; }
#toast.bad { background: var(--bad); color: var(--night); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
