/* The creators' pages (creators.html, admin.html): the app's calm look, phone first (decision 0012). */
:root {
  --bg: #121110; --surface: #1c1b19; --surface2: #262522; --surface3: #302f2b; --line: rgba(255, 255, 255, .08);
  --text: #f3f0ea; --muted: #a39e95; --dim: #6e6a63; --accent: #ffd84d; --pink: #ff5a98; --cyan: #5ee0ec; --rec: #ff4d4d; --ok: #6fdc8c;
  --r: 14px; --font: 'Rubik', system-ui, sans-serif; --spring: cubic-bezier(.3, 1.55, .5, 1); --out: cubic-bezier(.2, .8, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* no iOS text autosizing (it enlarged some summaries in the app) */
/* Inside the iOS app only (html.app, set in each page's head): the page scrolls inside body, since the app turns off the web view's
   own scrolling (ios.scrollEnabled: false). The website keeps normal page scrolling (printing, tap-to-top, Safari's toolbar). */
html.app { height: 100%; overflow: hidden; }
html.app body { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
html.app body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top); background: var(--bg); z-index: 10; pointer-events: none; } /* text scrolling under the status bar */
main { max-width: 620px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; transition: scale .45s var(--spring), background .2s, opacity .2s; }
button:active { scale: .96; transition-duration: .08s; }
button:focus-visible, input:focus-visible, label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.logo { font: 40px 'Rubik Wet Paint', 'Rubik', sans-serif; color: var(--pink); line-height: 1; text-decoration: none; }
.tag { font: 600 13px var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 13px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; } /* back to the app: inside the iOS app there is no browser back */
h1 { font-size: 30px; line-height: 1.15; margin: 6px 0 0; }
.lead { color: var(--muted); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.gets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gets li { display: flex; gap: 10px; align-items: flex-start; }
.gets b.n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface3); color: var(--accent); font-size: 14px; margin-top: 1px; }
.want { font-size: 14px; color: var(--muted); margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 500 14px var(--font); color: var(--muted); }
.field > span i { font-style: normal; color: var(--muted); }
input[type=text], input[type=url], input[type=number], textarea {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); outline: none; font-size: 17px; -webkit-appearance: none; appearance: none; }
textarea { height: auto; padding: 10px 14px; font-size: 15px; resize: vertical; }
input:focus, textarea:focus { border-color: rgba(255, 216, 77, .5); }
input::placeholder { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; display: inline-flex; cursor: pointer; } /* the label is the chip: a tap anywhere on it picks */
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--surface3); color: var(--text); border-color: rgba(255, 216, 77, .5); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 16px; border-radius: 14px; text-align: center;
  background: var(--bg); border: 1.5px dashed rgba(255, 255, 255, .22); color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.drop b { color: var(--text); font-size: 17px; }
.drop.has { border-style: solid; border-color: rgba(255, 216, 77, .5); }
.drop.over { background: var(--surface2); }
.drop { position: relative; }
.drop input { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.licence { max-height: 220px; overflow-y: auto; font-size: 14px; line-height: 1.6; background: var(--bg); border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); overscroll-behavior: contain; }
.licence ol { margin: 6px 0; padding-inline-start: 20px; }
.licence .en { direction: ltr; text-align: left; color: var(--muted); margin-top: 10px; }
.draft { display: inline-block; font: 600 12px var(--font); color: #1a1600; background: var(--accent); border-radius: 6px; padding: 1px 7px; margin-inline-start: 6px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.agree input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
.go { height: 56px; border-radius: 16px; background: var(--accent); color: #1a1600; font: 700 20px var(--font); width: 100%; box-shadow: 0 6px 20px rgba(255, 216, 77, .16); }
.go:disabled { opacity: .45; }
.ghost { height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; width: 100%; }
.err { color: #ffb3b3; font-size: 14px; margin: 0; min-height: 1.2em; }
.progress { height: 8px; border-radius: 4px; background: var(--surface3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.done { text-align: center; align-items: center; animation: rise .45s var(--out) both; }
.done .big { font-size: 44px; }
/* the bot trap: hidden in place (an offset of -9999px makes an RTL page scroll sideways) */
.hp { position: absolute !important; inset-inline-start: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important;
  overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
[hidden] { display: none !important; }

/* admin */
.tabs { display: flex; gap: 6px; background: var(--surface); border-radius: 12px; padding: 4px; position: sticky; top: 0; z-index: 2; }
.tabs button { flex: 1; height: 40px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.tabs button.on { background: var(--surface3); color: var(--text); font-weight: 600; }
.sub { display: flex; flex-direction: column; gap: 8px; }
.sub .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sub h3 { margin: 0; font-size: 19px; }
.sub .meta { font-size: 14px; color: var(--muted); }
.sub audio { width: 100%; }
.st { font: 600 12px var(--font); border-radius: 999px; padding: 3px 10px; background: var(--surface3); }
.st.approved { background: rgba(111, 220, 140, .18); color: var(--ok); }
.st.rejected { background: rgba(255, 77, 77, .16); color: #ffb3b3; }
.st.new { background: rgba(255, 216, 77, .16); color: var(--accent); }
.acts { display: flex; gap: 8px; }
.acts button { flex: 1; height: 44px; border-radius: 12px; background: var(--surface2); font-weight: 600; }
.acts .yes { background: rgba(111, 220, 140, .18); color: var(--ok); }
.acts .no { background: rgba(255, 77, 77, .14); color: #ffb3b3; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
