:root {
  color-scheme: light;
  --bg: #f1f2fa;
  --text: #21203b;
  --muted: #52516a;
  --line: #dcdbea;
  --accent: #5036a1;
  --accent-dark: #3e2685;
  --tint: #eeebfa;
  font: 1rem/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
.topbar { background: #252040; color: #fff; }
.topbar-inner { max-width: 1040px; margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; gap: 12px; align-items: center; }
.mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #ded3ff; color: #392477; font: bold 1.55rem Georgia, serif; }
.brand-name,.studio { display: block; }
.brand-name { font-weight: 800; letter-spacing: .16em; line-height: 1.1; }
.studio { margin-top: 4px; color: #e0d9f1; font-size: .8rem; }
main { max-width: 800px; margin: auto; padding: 22px 24px 52px; }
.workshop-progress { margin: 0 0 18px; }
.workshop-progress ol { display: flex; gap: 6px; padding: 0; margin: 0; list-style: none; }
.workshop-progress li { flex: 1; text-align: center; padding: 8px 3px 0; border-top: 4px solid var(--line); font-size: .85rem; color: var(--muted); }
.workshop-progress li.is-complete { border-color: #a49bc9; }
.workshop-progress li[aria-current] { border-color: var(--accent); color: var(--accent-dark); font-weight: 750; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 5vw, 44px); box-shadow: 0 12px 36px #2520400b; }
h1 { font: 400 clamp(2rem, 5vw, 3.25rem)/1.08 Georgia, serif; letter-spacing: -.035em; margin: 0 0 18px; }
h1:focus { outline: none; }
h2,h3 { line-height: 1.25; }
p { margin: 0 0 14px; }
.kicker { color: var(--accent-dark); font-size: .86rem; font-weight: 750; margin-bottom: 10px; }
a { color: var(--accent-dark); }
button,textarea { font: inherit; }
button { cursor: pointer; min-height: 46px; background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 11px; padding: 10px 18px; font-weight: 700; }
button:hover { background: var(--accent-dark); }
button.secondary { background: transparent; color: inherit; border-color: currentColor; }
button.secondary:hover { background: #ffffff17; }
button:disabled { background: #e6e3ef; color: #5b566e; cursor: default; }
:focus-visible { outline: 3px solid #7955cb; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.consequence,.role-card,.prompt { background: var(--tint); border-radius: 13px; padding: 15px 18px; }
.consequence,.role-card { border-left: 4px solid #8b72cf; }
.role-card strong { display: block; margin-bottom: 5px; color: var(--accent-dark); }
.handoff { margin: 0 0 15px; display: flex; gap: 6px; }
.handoff span { height: 7px; width: 32px; border-radius: 10px; background: var(--line); }
.handoff .filled { background: var(--accent); }
fieldset { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
legend { font-weight: 750; margin-bottom: 9px; padding: 0; }
.option { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; min-height: 48px; background: #fff; }
.option:hover { border-color: var(--accent); }
.option:has(input:checked) { background: var(--tint); border-color: var(--accent); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 19px; height: 19px; margin: 0; flex: none; }
.role-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding-left: 28px; }
.role-list li::marker { color: var(--accent); font-weight: bold; }
ol.votes, ul.evidence-list { list-style: none; padding: 0; margin: 14px 0 22px; }
.votes li,.evidence-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.votes span { display: grid; place-items: center; border-radius: 9px; min-width: 32px; height: 32px; background: var(--tint); color: var(--accent-dark); font-weight: 800; }
dl { display: grid; grid-template-columns: 145px 1fr; gap: 10px 15px; }
dt { font-weight: 750; }
dd { margin: 0; }
textarea { width: 100%; min-height: 110px; border: 1px solid #9690aa; border-radius: 10px; padding: 12px; resize: vertical; display: block; margin-top: 8px; }
@media(max-width:560px) {
  main { padding: 16px 12px 34px; }
  .topbar-inner { padding: 12px; }
  button.secondary { padding-inline: 10px; }
  .workshop-progress li { display: none; }
  .workshop-progress li[aria-current] { display: block; text-align: left; }
  .actions button { width: 100%; }
  .role-list, dl { grid-template-columns: 1fr; }
  dl { gap: 4px; }
  dd { margin-bottom: 8px; }
}
.join-grid { display:flex; flex-wrap:wrap; gap:20px; align-items:center; }
.join-grid img { display:block; max-width:100%; height:auto; border:1px solid var(--line); border-radius:12px; }
.error:empty { display:none; }
.error { margin:16px 0 0; color:#9b2638; }
select { display:block; width:100%; margin:8px 0 14px; color:var(--text); background:#fff; border:1px solid #9690aa; border-radius:10px; padding:12px; font:inherit; }
