:root{
  /* Light dashboard-style theme */
  --bg:#f6f7fb;
  --card:#ffffff;
  --stroke:rgba(15,23,42,.12);
  --text:#0f172a;
  --muted:rgba(15,23,42,.72);
  --muted2:rgba(15,23,42,.55);

  /* Gradie brand accents */
  --accent:#db7f67;
  --accent2:#f1a38e;

  --good:#16a34a;
  --bad:#dc2626;

  --shadow: 0 10px 24px rgba(15,23,42,.10);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 500px at 15% 0%, rgba(241,163,142,.22), transparent 60%),
              radial-gradient(900px 500px at 85% 10%, rgba(219,127,103,.18), transparent 60%),
              var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--stroke);
  z-index:10;
}
.topbar__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__mark{
  width:38px; height:38px;
  border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(241,163,142,.95), rgba(219,127,103,.95));
  color:#1a1a1a;
  font-weight:900;
  box-shadow: var(--shadow);
}
.brand__name{ font-weight:800; letter-spacing:.2px; }
.brand__sub{ font-size:12px; color:var(--muted2); margin-top:2px; }

.nav{ display:flex; gap:10px; }
.nav__link{
  color: var(--muted);
  text-decoration:none;
  font-size:14px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:10px;
}
.nav__link:hover{
  border-color: var(--stroke);
  background: rgba(15,23,42,.04);
}

.page{
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 30px;
}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.h1{ margin:0 0 8px; font-size:28px; line-height:1.15; }
.h2{ margin:18px 0 10px; font-size:16px; }
.muted{ color: var(--muted); }
.small{ font-size:12px; }

.grid{
  margin-top: 16px;
  display:grid;
  gap:12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.panel{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.70);
  border-radius: 14px;
  padding: 14px;
}
.panel__title{ font-weight:800; margin-bottom:8px; }
.panel__body{ color: var(--muted2); }

.pill{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.85);
  font-size:12px;
  color: var(--muted);
}

.join__header{ margin-bottom: 12px; }
.join__name{ margin: 14px 0 18px; }
.label{ display:block; margin-bottom:8px; color: var(--muted); font-size:14px; }
.row{ display:flex; gap:10px; flex-wrap:wrap; }

.input{
  flex: 1 1 240px;
  max-width: 420px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline:none;
}
.input::placeholder{ color: rgba(15,23,42,.45); }

.btn{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.85);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
}
.btn:hover{ background: rgba(15,23,42,.05); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.btn--primary{
  border-color: rgba(219,127,103,.55);
  background: rgba(219,127,103,.16);
}
.btn--primary:hover{
  background: rgba(219,127,103,.24);
}

.passage{
  white-space: pre-wrap;
  line-height: 1.65;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.85);
}

.questions{ display:flex; flex-direction:column; gap:12px; }
.qcard{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.90);
  padding: 14px;
}
.qprompt{ font-weight:800; margin-bottom:10px; line-height:1.35; }
.choice{ display:flex; align-items:flex-start; gap:10px; padding:8px 0; color: var(--text); }
textarea.input{ max-width: 100%; min-height: 90px; resize: vertical; }

.join__footer{ margin-top: 14px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.status{ color: var(--muted); }
.status--good{ color: var(--good); font-weight:800; }
.status--bad{ color: var(--bad); font-weight:800; }

.footer{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px 22px;
}