/* CSYP Audition System
   Design: matches csyp.org and registration page
   Deep purple-black, gold accent, Libre Baskerville + Source Sans 3
   Mobile-first throughout */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --bg:          #0e0b16;
  --bg-card:     #16121f;
  --bg-input:    rgba(255,255,255,0.06);
  --bg-deep:     #0b0913;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --cream:       #f0ebe0;
  --muted:       #9e9488;
  --border:      rgba(201,168,76,0.18);
  --border-soft: rgba(255,255,255,0.08);
  --success:     #4caf7d;
  --danger:      #e05555;
  --warn:        #d4924a;
  --purple:      #b09de0;
  --r:           10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Typography ── */
h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
}
h1 em { font-style: italic; color: var(--gold-light); }
h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
}
h3 {
  font-size: .68rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}
p { color: var(--muted); font-size: .9rem; }

/* ── Eyebrow ── */
.eyebrow {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

/* ── Layout ── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.wordmark {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .02em;
}
.wordmark span {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .72rem;
  font-weight: 300;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.top-bar-actions { display: flex; align-items: center; gap: 8px; }

.page {
  flex: 1;
  padding: 24px 18px 40px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.page-wide { max-width: 960px; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.card.scored::before { background: rgba(76,175,125,.5); }
.card.scored { border-color: rgba(76,175,125,.2); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* ── Section title (form-title style) ── */
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--cream);
  margin: 22px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.section-title:first-child { margin-top: 0; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem;
  font-weight: 300;
  padding: 10px 13px;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input::placeholder { color: rgba(255,255,255,.18); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9488' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
select option { background: #1c1628; }
textarea { resize: vertical; min-height: 90px; }

/* ── Upload zone ── */
.upload-zone {
  border: 1px dashed rgba(201,168,76,.3);
  border-radius: var(--r);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
  background: rgba(201,168,76,.02);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201,168,76,.05);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.upload-zone p { font-size: .85rem; }
.upload-zone .file-name {
  margin-top: 8px;
  font-size: .82rem;
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--gold); color: #0e0b16; }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost    { background: transparent; color: var(--muted); border: 1px solid var(--border-soft); }
.btn-ghost:hover { color: var(--cream); border-color: var(--border); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-success  { background: var(--success); color: #0e0b16; }
.btn-sm       { font-size: .75rem; padding: 5px 12px; }
.btn-full     { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── Star Rating ── */
.star-rating {
  display: flex;
  gap: 8px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.star-rating input[type="radio"] { display: none; }
.star-rating label {
  font-size: 2.2rem;
  color: rgba(255,255,255,.1);
  cursor: pointer;
  transition: color .15s;
  margin: 0;
  padding: 4px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--gold);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid;
}
.badge-review    { color: var(--muted); border-color: var(--border-soft); }
.badge-shortlist { color: var(--gold); border-color: rgba(201,168,76,.4); }
.badge-selected  { color: var(--success); border-color: rgba(76,175,125,.35); }
.badge-alternate { color: var(--warn); border-color: rgba(212,146,74,.35); }
.badge-passed    { color: var(--danger); border-color: rgba(224,85,85,.3); }
.badge-draft     { color: var(--muted); border-color: var(--border-soft); }
.badge-active    { color: var(--success); border-color: rgba(76,175,125,.35); }
.badge-closed    { color: var(--muted); border-color: var(--border-soft); }
.badge-singing   { color: var(--gold); border-color: rgba(201,168,76,.4); }
.badge-dance     { color: var(--purple); border-color: rgba(176,157,224,.35); }
.badge-admin     { color: var(--gold); border-color: rgba(201,168,76,.4); }
.badge-staff     { color: var(--muted); border-color: var(--border-soft); }
.badge-inactive  { color: var(--danger); border-color: rgba(224,85,85,.3); }

/* ── Performer card elements ── */
.performer-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
}
.performer-meta {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 12px;
}

/* ── Score display (admin only) ── */
.score-avg {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}
.score-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201,168,76,.07);
  border: 1px solid var(--border);
}
.score-dot.empty { color: var(--muted); }

/* ── Rank ── */
.rank-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.15);
}
.rank-num.top { color: var(--gold); }

/* ── Tie flag ── */
.tie-flag {
  font-size: .6rem;
  font-weight: 600;
  background: rgba(212,146,74,.1);
  color: var(--warn);
  border-radius: 3px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid rgba(212,146,74,.25);
}

/* ── Video player ── */
.video-wrap {
  border-radius: 7px;
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
}
.video-wrap video {
  width: 100%;
  display: block;
  max-height: 340px;
  object-fit: contain;
}

/* ── Link copy box ── */
.link-box {
  background: rgba(201,168,76,.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 13px;
  margin-bottom: 12px;
}
.link-box .link-label {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.link-box code {
  font-size: .78rem;
  color: var(--gold);
  word-break: break-all;
  font-family: monospace;
}

/* ── Copy box (cast list) ── */
.copy-box {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 16px;
  font-size: .88rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  color: var(--cream);
  font-weight: 300;
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border-soft); margin: 18px 0; }

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}
.tab {
  padding: 8px 14px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Flash messages ── */
.flash {
  border-radius: 7px;
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: .88rem;
  font-weight: 400;
}
.flash-success { background: rgba(76,175,125,.1); color: var(--success); border: 1px solid rgba(76,175,125,.2); }
.flash-error   { background: rgba(224,85,85,.08); color: var(--danger); border: 1px solid rgba(224,85,85,.2); }
.flash-info    { background: rgba(201,168,76,.07); color: var(--gold); border: 1px solid var(--border); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 52px 20px;
  color: var(--muted);
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }

/* ── Progress bar ── */
.progress-bar {
  height: 3px;
  background: var(--border-soft);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
  display: none;
}
.progress-bar .fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width .2s;
}

/* ── Results table ── */
.results-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.results-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-soft);
}
.results-table td { padding: 10px 8px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }

.status-sel {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--cream);
  font-size: .75rem;
  padding: 5px 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  cursor: pointer;
  width: auto;
}

/* ── Login page ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,168,76,.06) 0%, transparent 70%);
  pointer-events: none;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  position: relative;
  z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h1 { color: var(--gold); font-size: 2rem; margin-bottom: 4px; }
.login-logo p  { font-size: .85rem; font-style: italic; }

/* ── Public submission page ── */
.public-wrap { min-height: 100vh; }
.public-hero {
  background: linear-gradient(160deg, rgba(201,168,76,.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
  padding: 32px 20px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.public-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201,168,76,.05) 0%, transparent 70%);
  pointer-events: none;
}
.public-hero .show-name {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 5px;
  position: relative;
}
.public-hero .show-name em { font-style: italic; color: var(--gold-light); }
.public-hero p { font-size: .88rem; position: relative; }
.public-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 18px 52px;
}

/* ── Utility ── */
.flex           { display: flex; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-6          { gap: 6px; }
.gap-8          { gap: 8px; }
.gap-12         { gap: 12px; }
.mt-4           { margin-top: 4px; }
.mt-8           { margin-top: 8px; }
.mt-16          { margin-top: 16px; }
.mb-0           { margin-bottom: 0; }
.w-full         { width: 100%; }
.text-gold      { color: var(--gold); }
.text-muted     { color: var(--muted); }
.text-sm        { font-size: .82rem; }
.italic         { font-style: italic; }
.fw-600         { font-weight: 600; }

@media (min-width: 640px) {
  .page { padding: 32px 24px 48px; }
  .public-form { padding: 36px 24px 64px; }
}

/* ── Profile: preference rows ── */
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.pref-row:last-of-type { border-bottom: none; }
.pref-label { font-size: .88rem; color: var(--cream); margin-bottom: 2px; }
.pref-sub   { font-size: .74rem; color: var(--muted); font-style: italic; }

/* ── iOS-style switch ── */
.ios-switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; cursor: pointer; }
.ios-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ios-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  border-radius: 26px;
  transition: background .2s;
}
.ios-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.ios-switch input:checked + .ios-slider { background: var(--gold); }
.ios-switch input:checked + .ios-slider::before { transform: translateX(18px); }

/* ── Segmented control (radio-based, reliable across environments) ── */
.seg-ctrl {
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.seg-ctrl input[type="radio"] { display: none; }
.seg-ctrl label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  padding: 7px 16px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: none;
  text-transform: none;
  letter-spacing: 0;
  transition: all .15s;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.08);
}
.seg-ctrl label:last-child { border-right: none; }
.seg-ctrl input[type="radio"]:checked + label {
  background: var(--gold);
  color: #0e0b16;
  font-weight: 600;
}

/* ── Star ring (submission confirmation) ── */
.star-ring {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

/* ── Empty state ring (no emoji) ── */
.empty-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.empty-ring.amber {
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.2);
}
.empty-ring.muted {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.empty-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.empty-body {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

/* ── Results: inline expand ── */
.sub-row { border-bottom: 1px solid rgba(255,255,255,.06); }
.sub-hdr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sub-name {
  font-family: 'Libre Baskerville', serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 2px;
}
.sub-solo { font-size: .72rem; color: var(--muted); font-style: italic; margin-bottom: 5px; }
.sub-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.chev { font-size: .85rem; color: var(--muted); transition: transform .2s; display: inline-block; }
.chev.open { transform: rotate(180deg); }
.sub-exp { display: none; padding: 0 0 16px 30px; }
.sub-exp.open { display: block; }

/* ── Score dots ── */
.score-dots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 5px; }
.sdot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .1s;
}
.sdot:active { transform: scale(.88); }
.sdot.voted  { color: var(--gold); background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.25); }
.sdot.missing{ color: var(--muted); background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18); }
.sdot.missing:hover { border-color: rgba(201,168,76,.4); }
.pending-note { font-size: .65rem; color: var(--danger); font-style: italic; margin-top: 3px; }

/* ── Score dot popover ── */
.dot-popover {
  position: absolute;
  background: #1e1929;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 160px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.dot-popover.show { opacity: 1; pointer-events: auto; }
.dot-popover .pop-title {
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 7px;
}
.pop-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .75rem; }
.pop-row:last-child { margin-bottom: 0; }
.pop-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pop-dot.y { background: var(--success); }
.pop-dot.n { background: var(--danger); }
.pop-sc { color: var(--muted); margin-left: auto; font-size: .7rem; }

/* ── Comment thread ── */
.cm-label {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.cm-row { display: flex; gap: 8px; margin-bottom: 10px; }
.cm-row:last-child { margin-bottom: 0; }
.cm-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.cm-body { flex: 1; min-width: 0; }
.cm-meta { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.cm-name  { font-size: .72rem; font-weight: 600; color: var(--cream); }
.cm-stars { font-size: .68rem; color: var(--gold); }
.cm-text  { font-size: .75rem; color: var(--muted); font-style: italic; line-height: 1.5; }
.cm-none  { font-size: .72rem; color: rgba(255,255,255,.2); font-style: italic; }

/* ── Inline status row ── */
.inline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.inline-status .slabel {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.status-sel {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--cream);
  font-size: .75rem;
  padding: 6px 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  cursor: pointer;
  flex: 1;
  width: auto;
}

/* ── Submission confirmation ── */
.conf-wrap {
  padding: 40px 24px 52px;
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}
.conf-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.2;
}
.conf-title em { font-style: italic; color: var(--gold-light); }
.conf-body {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.receipt {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .8rem;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .rk { color: var(--muted); }
.receipt-row .rv { color: var(--cream); font-style: italic; text-align: right; max-width: 180px; }

/* ── New cycle stepper ── */
.step-bar { display: flex; align-items: center; margin-bottom: 22px; }
.step-item { display: flex; align-items: center; gap: 6px; }
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 600; flex-shrink: 0;
}
.step-item.done   .step-num { background: rgba(76,175,125,.15); color: var(--success); border: 1px solid rgba(76,175,125,.3); }
.step-item.active .step-num { background: rgba(201,168,76,.15); color: var(--gold);    border: 1px solid rgba(201,168,76,.35); }
.step-item.future .step-num { background: transparent;           color: var(--muted);  border: 1px solid rgba(255,255,255,.1); }
.step-lbl { font-size: .7rem; font-weight: 500; }
.step-item.done   .step-lbl { color: var(--success); }
.step-item.active .step-lbl { color: var(--cream); }
.step-item.future .step-lbl { color: var(--muted); }
.step-line { flex: 1; height: 1px; background: var(--border-soft); margin: 0 6px; }

/* ── Type cards ── */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.type-card {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px 12px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.type-card.selected {
  border-color: rgba(201,168,76,.45);
  background: rgba(201,168,76,.06);
}
.type-icon  { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.type-name  { font-family: 'Libre Baskerville', serif; font-size: .9rem; font-weight: 700; color: var(--cream); margin-bottom: 2px; }
.type-desc  { font-size: .72rem; color: var(--muted); }

/* ── Solo pills ── */
.solo-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.solo-pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  font-size: .75rem;
  color: var(--gold-light);
}
.solo-pill button {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .82rem; padding: 0; line-height: 1;
}
.solo-pill button:hover { color: var(--danger); }
.add-solo-row { display: flex; gap: 8px; }
.add-solo-row input { flex: 1; }
.add-solo-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .75rem; font-weight: 600;
  padding: 0 14px; border-radius: 7px;
  border: 1px solid rgba(201,168,76,.3);
  background: rgba(201,168,76,.07);
  color: var(--gold); cursor: pointer;
  white-space: nowrap;
}

/* ── Review preview card ── */
.preview-card {
  background: rgba(201,168,76,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}
.preview-card .preview-label {
  font-size: .62rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 500; margin-bottom: 10px;
}
.preview-row {
  display: flex; justify-content: space-between;
  margin-bottom: 6px; font-size: .82rem;
}
.preview-row:last-child { margin-bottom: 0; }
.preview-row .pk { color: var(--muted); }
.preview-row .pv { color: var(--cream); font-style: italic; text-align: right; max-width: 200px; }
.preview-row .pv.gold { color: var(--gold); }

/* ── Success ring (cycle activated) ── */
.success-ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(76,175,125,.12);
  border: 1px solid rgba(76,175,125,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.2rem; color: var(--success);
}

/* ── Avatar button (top bar) ── */
.avatar-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.avatar-btn:hover { background: rgba(201,168,76,.2); }

/* ── Link box ── */
.link-box {
  background: rgba(201,168,76,.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 13px;
  margin-bottom: 12px;
}
.link-label {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
