/* Minimal styling — leans on browser defaults. */

body {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
  color: #111;
}

h1 { font-size: 1.4rem; margin: 0.5rem 0; }
h2 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 0 0 0.5rem; }

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.who { display: flex; gap: 0.75rem; align-items: center; }
.hint { color: #777; font-size: 0.85em; }

#err-banner {
  background: #fdd;
  color: #900;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #c66;
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  white-space: pre-wrap;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
  align-items: center;
}
.toolbar input {
  flex: 1;
  padding: 0.25rem 0.5rem;
}

table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.25rem 0.5rem; border-bottom: 1px solid #eee; vertical-align: top; }
th { background: #f7f7f7; font-weight: 600; }
code { font-family: ui-monospace, monospace; font-size: 0.85em; color: #555; }

button { padding: 0.25rem 0.75rem; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

dialog {
  border: 1px solid #999;
  padding: 1rem;
  min-width: 360px;
}
dialog form > * { display: block; margin-bottom: 0.5rem; }
dialog label { display: block; }
dialog fieldset { padding: 0.25rem 0.5rem; }
dialog fieldset label { display: inline-block; margin-right: 0.75rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
