/* WEES Requests — clean, neutral, works on its own page, embedded in the
   station site, or framed in the WEES Support System. Light/dark follow the
   device. Teal accent to sit with the WEES/Koast family. */
:root {
  color-scheme: light dark;
  --teal: #2f7f96; --teal-deep: #0b4a5c; --lime: #82c341; --coral: #fe6459;
  --page: #f6f8f9; --surface: #fff; --surface-2: #eef3f5;
  --ink: #0a1620; --muted: #637280; --line: #dde6ea;
  --radius: 12px; --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #061018; --surface: #0e1c27; --surface-2: #13242f; --ink: #eaf2f5; --muted: #8397a3; --line: #22333f; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--page); line-height: 1.5; }
body.embed { background: transparent; }
body.embed .wrap { padding: 0; }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 18px 40px; }
body.studio .wrap { max-width: 860px; }
h1 { font-size: 1.7rem; margin: 0 0 .2em; }
h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.sub, .muted { color: var(--muted); }
.sub { margin: 0 0 18px; }
a { color: var(--teal); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(0,29,57,.05), 0 8px 24px rgba(0,29,57,.06); }
body.embed .card { box-shadow: none; border: 0; padding: 4px; }
.embed-title { margin: 0 0 14px; font-size: 1.15rem; }

/* Form */
.req-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.req-form input, .req-form textarea { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--page); color: var(--ink); font: inherit; font-weight: 400; }
.req-form textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.req { color: var(--coral); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.btn { background: var(--lime); color: #06240a; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 800; cursor: pointer; }
.btn:hover { background: #6aa733; }
.btn:disabled { opacity: .6; cursor: default; }
.err { color: var(--coral); font-weight: 600; margin: 10px 0 0; min-height: 1.2em; }
.thanks { background: color-mix(in srgb, var(--lime) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); border-radius: 10px; padding: 16px; font-weight: 600; }
.linkbtn { background: none; border: 0; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }

/* Studio */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .bar { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin: 0 auto; padding: 12px 18px; }
.who { color: var(--muted); font-size: .9rem; }
.tag { background: var(--teal); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: .72rem; font-weight: 700; }
.counts { display: flex; gap: 10px; margin: 16px 0 4px; }
.pill { background: var(--surface-2); border-radius: 999px; padding: 5px 14px; font-size: .9rem; }
.pill.new { background: color-mix(in srgb, var(--lime) 22%, transparent); }
.pill b { font-size: 1.05rem; }
.list { display: grid; gap: 10px; }
.row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.list.played .row { opacity: .72; }
.row .song { font-size: 1.05rem; }
.row .ded { margin: 4px 0; }
.row .meta { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.row .time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal); }
.actions { display: flex; gap: 6px; flex: none; }
.mini { border: 1px solid var(--line); background: var(--page); color: var(--ink); border-radius: 8px; padding: 7px 11px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mini.play:hover { background: var(--lime); color: #06240a; border-color: var(--lime); }
.mini.hide:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.mini:disabled { opacity: .5; }
.empty { color: var(--muted); padding: 10px 2px; }
.login-card { max-width: 420px; margin: 40px auto; }
