:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #192821;
  background: #f1f3ee;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
main { width: min(100% - 32px, 430px); margin-block: 2rem; }
header { margin-bottom: 1rem; }
.brand { font-size: 1.1rem; font-weight: 750; text-decoration: none; color: #192821; }
section {
  padding: clamp(1.25rem, 5vw, 2rem);
  background: #fff;
  border: 1px solid #c8d3c8;
  border-radius: 12px;
}
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.12rem; }
p { margin: 0; }
form { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; font-weight: 550; }
input, select, button { font: inherit; }
input, select { width: 100%; padding: .57rem .65rem; border: 1px solid #98a899; border-radius: 6px; background: #fff; color: inherit; }
button { padding: .62rem .9rem; border-radius: 6px; border: 1px solid transparent; cursor: pointer; }
button[type="submit"] { background: #1b5438; color: white; font-weight: 650; }
button:disabled { opacity: .62; cursor: wait; }
.actions { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
a, .link { color: #1b5438; }
.link { background: none; text-decoration: underline; padding: .4rem 0; justify-self: start; }
.hint { color: #526256; font-size: .88rem; }
:focus-visible { outline: 2px solid #276f48; outline-offset: 2px; }
#message { margin-block: .75rem; }
#message:empty { margin-block: 0 .95rem; }
#message.error { color: #842e24; }
#account { display: grid; gap: .6rem; }
main.wide { width: min(100% - 32px, 1180px); align-self: start; }
.staff-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
section > h2 { margin-top: 1.7rem; }
#add-staff { margin-top: .4rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.with-button { display: flex; gap: .4rem; }
.with-button input { min-width: 0; flex: 1; font-family: ui-monospace, Menlo, monospace; }
.with-button button, .row-actions button, .actions button[type="button"]:not(.link) { background: #eef3ee; border-color: #c8d3c8; color: #1b5438; }
.table-scroll { overflow-x: auto; margin-top: .6rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .5rem .55rem; border-bottom: 1px solid #e1e8e1; vertical-align: middle; }
th { font-size: .78rem; color: #526256; font-weight: 650; white-space: nowrap; }
td select { width: auto; padding: .3rem .45rem; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.row-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.row-actions button { padding: .28rem .55rem; font-size: .84rem; }
.row-actions .danger, .status-disabled { color: #842e24; }
.events { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .4rem; font-size: .92rem; }
.events time { color: #526256; margin-right: .6rem; }
dialog { border: 1px solid #c8d3c8; border-radius: 12px; padding: 1.4rem; width: min(100% - 32px, 440px); }
dialog::backdrop { background: #19282155; }
@media (min-width: 760px) { .fields label:has(.with-button) { grid-column: span 2; } }
#message { overflow-wrap: anywhere; }
