:root {
  --canvas: #F3F7F4;
  --surface: #FFFFFF;
  --ink: #17201C;
  --muted: #66736C;
  --faint: #616D66;
  --line: #E4EBE7;
  --green: #20A66A;
  --green-dark: #0B6841;
  --green-soft: #E5F7EE;
  --coral: #F26D58;
  --coral-soft: #FDECE8;
  --red: #D94141;
  --red-soft: #FDEAEA;
  --radius-md: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 24px;
}

.brand { font-size: 20px; font-weight: 800; color: var(--green-dark); }
.brand em { font-style: normal; color: var(--muted); font-weight: 700; font-size: 13px; margin-left: 6px; vertical-align: middle; }

.session-info { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(23, 32, 28, 0.08);
  margin-bottom: 20px;
}

.card h2 { margin: 0 0 6px; font-size: 20px; }
.card p.copy { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }

.eyebrow {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  background: #FAFCFB;
  color: var(--ink);
}

button {
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

button.primary { background: var(--green-dark); color: #fff; width: 100%; margin-top: 16px; }
button.primary:disabled { opacity: .5; cursor: default; }
button.secondary { background: var(--green-soft); color: var(--green-dark); }
button.ghost { background: transparent; color: var(--muted); font-weight: 700; padding: 6px 8px; }
button.danger { background: var(--red-soft); color: var(--red); }

.error { color: var(--red); font-size: 14px; margin-top: 10px; }
.hint { color: var(--faint); font-size: 13px; margin-top: 8px; }

.release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.release:last-child { border-bottom: none; }
.release .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.empty { color: var(--faint); font-style: italic; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--faint); font-weight: 700; font-size: 12px; text-transform: uppercase; }

.invite-link {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 12px;
  word-break: break-all;
  font-size: 13px;
}
.invite-link code { flex: 1; }

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.qr-box svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.ready { background: var(--green); }
.status-dot.starting { background: #D88913; }
.status-dot.error { background: var(--red); }
.status-dot.idle { background: var(--line); }
