:root {
  --bg: #0b1220;
  --card: #0f172a;
  --border: #24324a;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --danger: #f87171;
}

* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, sans-serif; background: var(--bg); color: var(--fg); }
a { color: var(--accent); text-decoration: none; }

.topbar {
  display:flex; justify-content: space-between; align-items:center;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,0.9);
}
.brand { font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.nav a { margin-left: 12px; }

.container { max-width: 1100px; margin: 20px auto; padding: 0 14px; }

.card {
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 16px;
  padding: 16px;
}

h1 { margin: 0 0 12px; }
h2 { margin: 18px 0 10px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

label { display:block; font-size: 12px; color: var(--muted); margin: 8px 0 6px; }
input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: #020617;
  color: var(--fg);
}

button, .btn {
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.7);
  background: rgba(56,189,248,0.12);
  color: var(--fg);
  cursor:pointer;
}

.btn.danger, button.danger {
  border-color: rgba(248,113,113,0.7);
  background: rgba(248,113,113,0.12);
}

.row { display:flex; gap: 12px; flex-wrap: wrap; align-items: center; }
table { width:100%; border-collapse: collapse; margin-top: 10px; }
th, td { border-bottom: 1px solid rgba(148,163,184,0.2); padding: 10px; text-align:left; }
code { background:#020617; padding: 2px 6px; border-radius: 8px; border: 1px solid rgba(148,163,184,0.2); }
.error { color: var(--danger); margin-bottom: 10px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.btn.warn {
  border-color: rgba(245,158,11,0.7);
  background: rgba(245,158,11,0.12);
}

/* --- Form grid used on "Add presenter" --- */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: start;   /* <-- key change */
  margin-top: 10px;
}

.form-grid .field .hint{
  min-height: 18px;     /* reserve space so both columns line up */
  margin-top: 6px;
}

/* each field block */
.form-grid .field{
  display: flex;
  flex-direction: column;
}

/* keep label spacing consistent */
.form-grid .field label{
  margin: 0 0 6px;
}

/* make selects same height/feel as inputs */
.form-grid select,
.form-grid input{
  height: 42px;
}

/* right column: button */
.form-grid .actions{
  display: flex;
  align-items: end;
}

/* on small screens stack vertically */
@media (max-width: 720px){
  .form-grid{
    grid-template-columns: 1fr;
  }
  .form-grid .actions{
    justify-content: stretch;
  }
  .form-grid .actions button{
    width: 100%;
  }
}

/* --- Slot hint should not change the grid row height --- */
.control-with-hint{
  position: relative;
  padding-bottom: 16px; /* reserve space for the overlay hint */
}

.control-with-hint .hint-below{
  position: absolute;
  left: 12px;
  bottom: -2px;        /* visually under the pill */
  margin: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
}

