:root {
  --bg: #0f0f0f;
  --panel: #1a1a2e;
  --panel2: #16213e;
  --line: #2a2a4a;
  --text: #eee;
  --muted: #9aa0b4;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --danger: #e94560;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
}

.lab-top {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.lab-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lab-logo { font-weight: 700; }
.lab-tag { color: var(--muted); font-size: 0.85rem; }

.lab-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.panel-head { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }

.tab-btn {
  flex: 1;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: #fff;
}

.form { display: flex; flex-direction: column; gap: 0.5rem; }
.form label { font-size: 0.85rem; color: var(--muted); }
.form input {
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 1rem;
}
.form input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.form button, .outline-btn {
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}
.form button:hover, .outline-btn:hover { background: var(--accent-strong); }
.form.row { flex-direction: row; align-items: center; }
.form.row input { flex: 1; }
.member-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.member-head h2 { font-size: 1.35rem; }
.outline-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.outline-btn:hover { background: var(--panel2); color: var(--text); }
.muted { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.4rem; }

.notes { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.notes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
.note-body { overflow-wrap: anywhere; }

.msg { min-height: 1.2em; font-size: 0.9rem; color: var(--muted); }
.msg.error { color: var(--danger); }

.hidden { display: none !important; }