:root {
  --text: #111;
  --muted: #555;
  --border: #ddd;
  --bg: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
}
body.speaker-mode {
  padding: 0;
  overflow: hidden;
}
.card {
  max-width: 480px;
  margin: 0 auto;
}
h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
}
p {
  margin: 0 0 16px 0;
  color: var(--muted);
}
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}
input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
}
.actions {
  margin-top: 16px;
}
button {
  border: 1px solid var(--border);
  background: #f3f3f3;
  color: #111;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.top-row .role-header {
  margin-bottom: 0;
}
.role-header {
  font-size: 20px;
  font-weight: 700;
}
.startlista-section {
  margin-top: 16px;
}
.startlista-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.startlista-controls button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.startlista-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.startlista-table th,
.startlista-table td {
  border: 1px solid var(--border);
  padding: 4px 6px;
  text-align: left;
}
.startlista-table th {
  background: #f7f7f7;
  font-weight: 600;
}
.startlista-table .group-row td {
  background: #f3f3f3;
  font-weight: 600;
}
.startlista-table .note-row td {
  color: var(--muted);
  font-style: italic;
}
.startlista-table .spacer-row td {
  border: none;
  height: 6px;
  padding: 0;
}
.startlista-table .save-row td {
  border: none;
  padding: 8px 0;
}
.startlista-table tr.saved input {
  background: #dcfce7;
  border-color: #86efac;
}
.startlista-table .save-row button.saved {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.role-header {
  display: flex;
  gap: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.positions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
body.speaker-mode #roleView,
body.speaker-mode #positions {
  height: 100vh;
}
body.speaker-mode #topRow {
  display: none;
}
body.speaker-mode .positions {
  margin: 0;
}
body.speaker-mode .speaker-embed,
body.speaker-mode .speaker-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}
