:root {
  --pink: #ff0066;
  --pink-dark: #d80057;
  --gold: #ffb71a;
  --gold-soft: #fff6df;
  --teal: #009896;
  --teal-soft: #e3f4f3;
  --blush: #fdf0f3;
  --ink: #333333;
  --muted: #6b6b6b;
  --line: #f0dde2;
  --card: #ffffff;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font: 16px/1.55 Roboto, system-ui, sans-serif;
}
h1, h2, h3, .brand, .btn { font-family: 'News Cycle', Roboto, sans-serif; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .5rem; color: var(--pink); }
h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
a { color: var(--pink-dark); }
p { margin: 0 0 1rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 20px; max-width: 1100px; margin: 0 auto; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .palm { width: 34px; height: 34px; }
.brand .w1 { color: var(--gold); font-size: 1.35rem; }
.brand .w2 { color: var(--pink); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.top nav { display: flex; gap: 14px; align-items: center; font-size: .95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--pink); }

main { max-width: 680px; margin: 0 auto; padding: 8px 16px 64px; }
main.wide { max-width: 1100px; }

.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(255,0,102,.06); margin-bottom: 20px; }
.card.hero { text-align: center; padding: 36px 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: .4rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 28px; font-size: 1.1rem; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--pink); color: #fff; letter-spacing: .02em; }
.btn:hover { background: var(--pink-dark); }
.btn.gold { background: var(--gold); color: #3b2a00; }
.btn.ghost { background: transparent; color: var(--pink-dark); border: 2px solid var(--pink); padding: 10px 20px; font-size: 1rem; }
.btn.small { padding: 8px 16px; font-size: .95rem; }
.btn.teal { background: var(--teal); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--pink-dark); text-decoration: underline; cursor: pointer; font: inherit; }

form.stack { display: grid; gap: 14px; text-align: left; }
label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
input[type=text], input[type=email], textarea, select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 220px; }

/* Progress */
.progress { display: flex; align-items: flex-start; margin: 8px 0 28px; }
.step { flex: 1; text-align: center; position: relative; font-size: .8rem; color: var(--muted); }
.step .dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 700; background: #fff; border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1; }
.step::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.step:first-child::before { display: none; }
.step.done .dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.step.done::before, .step.current::before { background: var(--teal); }
.step.current .dot { border-color: var(--gold); background: var(--gold); color: #3b2a00; }
.step.done, .step.current { color: var(--ink); font-weight: 600; }

.bar { height: 12px; background: var(--blush); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #20b3a8); border-radius: 999px; }

.status-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }

/* Tasks */
.next { border: 3px solid var(--gold); }
.due { display: inline-block; font-weight: 700; font-size: .9rem; padding: 3px 12px; border-radius: 999px; background: var(--gold-soft); color: #7a5200; margin-bottom: 10px; }
.due.late { background: #ffe3ec; color: var(--pink-dark); }
.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.tasks li:first-child { border-top: 0; }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; margin-top: 2px; }
.tasks li.done .check { background: var(--teal); border-color: var(--teal); color: #fff; }
.tasks li.done .t { text-decoration: line-through; color: var(--muted); }
.tasks .when { margin-left: auto; white-space: nowrap; font-size: .9rem; color: var(--muted); }

.notice { padding: 12px 16px; border-radius: 12px; background: var(--teal-soft); margin-bottom: 16px; }
.notice.warn { background: #ffe3ec; }
.devlink { margin-top: 16px; padding: 12px; background: #fffbe6; border: 1px dashed var(--gold); border-radius: 12px; font-size: .85rem; word-break: break-all; }

/* Admin */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 14px; border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-size: .9rem; border: 1px solid var(--line); }
.tabs a.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; font-family: 'News Cycle', sans-serif; }
.tablewrap { overflow-x: auto; background: #fff; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fffafb; }
tr:hover td { background: #fffafb; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill.not_submitted { background: #eee; color: #666; }
.pill.submitted { background: var(--gold-soft); color: #7a5200; }
.pill.accepted { background: var(--teal-soft); color: #00605f; }
.pill.waitlisted { background: #ece6ff; color: #4b2ca8; }
.pill.declined { background: #ffe3ec; color: var(--pink-dark); }
.flag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .78rem; margin: 1px 2px 1px 0; }
.flag.agree { background: #e8f0ff; color: #1d4ed8; }
.flag.overlap { background: #fff0d6; color: #8a4b00; }
.flag.follow { background: #ffe3ec; color: var(--pink-dark); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
dl.answers dt { font-weight: 700; font-size: .85rem; color: var(--muted); margin-top: 12px; }
dl.answers dd { margin: 2px 0 0; white-space: pre-wrap; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.emaillog { font-size: .88rem; }
.emaillog li { margin-bottom: 6px; }

@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  h1 { font-size: 1.6rem; }
  .brand .w1, .brand .w2 { font-size: 1.1rem; }
  .step { font-size: .7rem; }
  .tasks li { flex-wrap: wrap; }
  .tasks .when { margin-left: 36px; }
}

/* Uploads & alerts */
.upload { margin-top: 8px; }
.filepick { cursor: pointer; }
.uprog .bar { margin-top: 6px; }
.flag.swap { background: #ece6ff; color: #4b2ca8; }
.alerts { border: 3px solid #b9a6ff; }
.alertlist { list-style: none; padding: 0; margin: 0; }
.alertlist li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.alertlist li:first-child { border-top: 0; }
details summary { cursor: pointer; color: var(--pink-dark); }
.thumb { display: block; margin-top: 8px; width: fit-content; }
.thumb img { display: block; max-width: 140px; max-height: 140px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
