:root {
  color-scheme: light;
  font: 16px/1.65 Tahoma, Arial, sans-serif;
  color: #15232d;
  background: #f3f6f7;
  --primary: #00675d;
  --border: #d7e1e3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem max(1rem, calc((100% - 1120px) / 2));
  background: white;
  border-bottom: 1px solid var(--border);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.brand { color: #15232d; font-size: 1.2rem; font-weight: bold; white-space: nowrap; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; }
main { max-width: 1152px; margin: auto; padding: 2rem 1rem 4rem; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 1.25rem; }
h2, legend { font-size: 1rem; font-weight: bold; margin-top: 0; }
.card, .table, .empty {
  background: white;
  border: 1px solid var(--border);
  border-radius: .9rem;
}
.card, .empty { padding: clamp(1rem, 3vw, 1.6rem); margin: 0 0 1.25rem; }
.login { max-width: 420px; }
fieldset { padding: 0; border: 0; margin: 0 0 1.2rem; min-width: 0; }
legend { margin-bottom: .55rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
input, select, textarea, output {
  font: inherit;
  color: inherit;
  min-width: 0;
  border: 1px solid #b8c8cc;
  border-radius: .5rem;
  padding: .55rem .7rem;
  min-height: 42px;
  background: white;
}
output { background: #edf7f5; }
textarea { resize: vertical; min-height: 88px; }
details { margin-top: .75rem; }
summary { cursor: pointer; color: var(--primary); margin-bottom: .55rem; }
button, .button {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: .5rem;
  font: inherit;
  padding: .55rem .9rem;
  background: var(--primary);
  color: white;
  cursor: pointer;
}
.card > button, .actions { margin-top: 1rem; }
.actions { margin-bottom: 1rem; }
.quiet, .secondary { background: #e3f3ef; color: var(--primary); }
:focus-visible { outline: 3px solid #008477; outline-offset: 3px; }
.table { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: right; }
th, td { padding: .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #eaf3f2; white-space: nowrap; }
td { min-width: 5rem; overflow-wrap: anywhere; white-space: pre-wrap; }
tr:last-child td { border-bottom: 0; }
.alert { color: #842119; background: #fff0ee; border-radius: .5rem; padding: .6rem .8rem; }
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  main { padding-top: 1.25rem; }
}
