/* G Street DJs planner — black & white with Tony Spinning G orange accent */
:root {
  --black: #0b0b0b;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --soft: #f5f5f4;
  --white: #ffffff;
  --accent: #e67300;
  --accent-soft: #fff1e4;
  --danger: #b42318;
  --ok: #1f7a3a;
  --radius: 14px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--soft);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Header ---------- */
.topbar {
  background: var(--black);
  color: var(--white);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.topbar-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
}
.topbar .logo { width: 72px; height: 72px; }
.brand { line-height: 1.1; }
.brand b { font-family: var(--head); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.brand small { display: block; color: #bdbdbd; font-size: 12px; letter-spacing: .04em; }
.save-state { margin-left: auto; font-size: 12px; color: #bdbdbd; white-space: nowrap; }
.save-state.saved::before { content: "● "; color: #4ade80; }
.save-state.saving::before { content: "● "; color: #facc15; }
.save-state.offline::before, .save-state.locked::before, .save-state.failed::before { content: "● "; color: #f87171; }
.acct-btn {
  display: none; border: 1px solid #3a3a3a; background: transparent; color: var(--white);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
body.cloud.signed-in .acct-btn { display: inline-block; }
body.cloud.no-plan .save-state { margin-left: auto; }
@media (max-width: 420px) { .acct-btn span { display: none; } .brand small { display: none; } }

/* screens without an open plan (sign in, my events) */
body.no-plan .steps, body.no-plan .progress, body.no-plan .navbar { display: none; }
body.no-plan main { padding-bottom: 40px; }

/* ---------- Accounts ---------- */
.auth { max-width: 440px; margin: 10px auto 0; }
.auth-card { padding: 28px 24px; }
.auth-logo { width: 120px; margin: -14px auto -6px; }
.auth-card h1 { text-align: center; font-size: 26px; }
.auth-card .lead { text-align: center; }
.auth-form { display: grid; gap: 14px; }
.auth-form .btn { width: 100%; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 14px; }
.spam-notice {
  display: grid; gap: 4px; margin: 16px 0; padding: 14px 16px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid #f6c89b; font-size: 14px; line-height: 1.45;
}
.spam-notice b:first-child { font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; background: #f3f3f3; }
.form-msg.error { background: #fde8e7; color: var(--danger); }
.form-msg.ok { background: #e7f6ec; color: var(--ok); }

.event-row {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px;
}
.event-row:hover { border-color: var(--black); }
.event-row .ic { font-size: 26px; flex: none; }
.ev-main { flex: 1; min-width: 0; }
.ev-main b { display: block; }
.ev-main small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.mini-progress { display: block; height: 4px; background: #eee; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: var(--accent); }
.status { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eee; }
.status.submitted { background: #e7f6ec; color: var(--ok); }
.status.locked { background: #333; color: #fff; }
.status.unlocked { background: var(--accent-soft); color: #9a4d00; }

.progress { height: 4px; background: #2a2a2a; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* Step tabs */
.steps {
  max-width: 860px; margin: 0 auto;
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.steps button {
  flex: none; border: 1px solid #3a3a3a; background: transparent; color: #cfcfcf;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.steps button.done { color: var(--white); border-color: #5a5a5a; }
.steps button.done::before { content: "✓ "; color: var(--accent); }
.steps button.active { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600; }

/* ---------- Layout ---------- */
main { max-width: 860px; margin: 0 auto; padding: 20px 16px 120px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .02em; margin: 0 0 6px; }
h1 { font-size: 30px; text-transform: uppercase; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.hint a { color: var(--accent); }

.hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--black); }
.hero img { width: 100%; }

.banner {
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px;
  background: var(--accent-soft); border: 1px solid #f6c89b;
}
.banner.locked { background: #f3f3f3; border-color: #cfcfcf; }
.banner-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.danger-link { background: none; border: 0; padding: 0; color: var(--danger); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ---------- Form fields ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

label.field { display: block; }
label.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.field > span em { font-style: normal; color: var(--accent); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=password],
input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 12px 12px; border: 1px solid #cfcfcf; border-radius: 10px; background: var(--white);
  min-height: 46px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input:disabled, select:disabled, textarea:disabled { background: #f3f3f3; color: #555; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid #cfcfcf; background: var(--white); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-size: 14px; min-height: 40px;
}
.chip.on { background: var(--black); color: var(--white); border-color: var(--black); }
.chip:disabled { cursor: default; opacity: .7; }

/* Event type tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 16px 12px;
  text-align: left; cursor: pointer; min-height: 84px;
}
.tile .ic { font-size: 26px; display: block; margin-bottom: 6px; }
.tile b { font-size: 15px; }
.tile.on { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); background: #fafafa; }

/* ---------- Timeline ---------- */
.moment { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--white); }
.moment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.moment-head .num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--white);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.moment-head input { font-weight: 600; }
.icon-btn {
  flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 16px;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn.del { color: var(--danger); }
.moment-grid {
  display: grid; gap: 10px; grid-template-columns: 130px 1fr 1fr;
  grid-template-areas: "time song artist" ". link link" "notes notes notes";
}
.t-time { grid-area: time; } .t-song { grid-area: song; } .t-artist { grid-area: artist; }
.t-link { grid-area: link; } .t-notes { grid-area: notes; }
@media (max-width: 620px) {
  .moment-head { flex-wrap: wrap; }
  .moment-head input { order: 5; flex-basis: 100%; }
  .moment-head .num + input + .icon-btn { margin-left: auto; }
  .moment-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "song song" "artist time" "link link" "notes notes"; }
}

/* ---------- Songs ---------- */
.song-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; margin-bottom: 8px; align-items: start; }
.song-row .link { grid-column: 1 / 3; }
.song-row + .song-row { padding-top: 8px; border-top: 1px dashed var(--line); }
.yt {
  display: flex; gap: 10px; align-items: center; grid-column: 1 / 3;
  background: var(--soft); border-radius: 10px; padding: 6px; font-size: 13px;
}
.yt img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; }
.yt a { color: var(--ink); }

.list-section { border-left: 4px solid var(--black); }
.list-section.must { border-left-color: var(--accent); }
.list-section.dnp { border-left-color: var(--danger); }
.list-section.dnp h2 { color: var(--danger); }

/* ---------- Genres ---------- */
.decade { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--white); }
.decade-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.decade-head h3 { margin: 0; min-width: 70px; font-size: 22px; }
.rate { display: flex; gap: 6px; margin-left: auto; }
.rate .chip { padding: 6px 12px; min-height: 36px; }
.rate .chip.on.love { background: var(--accent); border-color: var(--accent); }
.rate .chip.on.skip { background: #777; border-color: #777; }
.styles { padding: 4px 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; }
.style {
  text-align: left; border: 1px solid #d6d6d6; border-radius: 10px; padding: 10px 12px; background: var(--white); cursor: pointer;
}
.style b { display: block; font-size: 14px; }
.style small { color: var(--muted); font-size: 12px; }
.style.on { border-color: var(--black); background: var(--black); color: var(--white); }
.style.on small { color: #cfcfcf; }
.style.on b::before { content: "✓ "; color: var(--accent); }

.energy { margin-bottom: 14px; }
.energy-top { display: flex; justify-content: space-between; font-size: 14px; }
.energy-top b { color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); height: 32px; }

/* ---------- Buttons / nav ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 12px 18px; min-height: 46px; cursor: pointer;
  border: 1px solid var(--black); background: var(--white); color: var(--black); font-weight: 600; text-decoration: none;
}
.btn.primary { background: var(--black); color: var(--white); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.ghost { border-color: var(--line); }
.btn.small { padding: 8px 12px; min-height: 38px; font-size: 14px; }
.add { margin-top: 4px; }

.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.navbar-inner { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 10px; align-items: center; }
.navbar .count { font-size: 13px; color: var(--muted); margin: 0 auto; }

/* ---------- Review ---------- */
.review-block { border-top: 1px solid var(--line); padding: 12px 0; }
.review-block:first-of-type { border-top: 0; }
.review-block dl { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; margin: 6px 0 0; font-size: 14px; }
.review-block dt { color: var(--muted); }
.review-block dd { margin: 0; }
@media (max-width: 620px) { .review-block dl { grid-template-columns: 84px 1fr; } }
.missing { color: var(--danger); font-size: 14px; }
.ok { color: var(--ok); }
.edit-link { font-size: 13px; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; }

.proto { margin-top: 28px; text-align: center; font-size: 13px; color: var(--muted); }
.proto button { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

.done-screen { text-align: center; padding: 36px 20px; }
.done-screen img { width: 120px; margin: 0 auto 12px; }
