:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  background: #f3f6fa;
  color: #172536;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.site-header { background: #172536; color: #fff; padding: 1.25rem max(1rem, calc((100vw - 76rem) / 2)); }
.site-header h1 { margin: 0; font-size: 1.5rem; }
.site-header p { margin: .2rem 0 0; color: #d4e1ed; }
main { max-width: 76rem; margin: 1.5rem auto; padding: 0 1rem 3rem; }
h2, h3 { line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; }
.panel { min-width: 0; background: #fff; padding: 1.25rem; border: 1px solid #cfdae5; border-radius: .5rem; }
#login-view { max-width: 28rem; margin: 3rem auto; }
.layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.toolbar h2 { margin: 0; }
form { display: grid; gap: .65rem; }
label, .field-label { font-weight: 650; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #718499; border-radius: .3rem; padding: .6rem; background: #fff; color: #172536; }
textarea { resize: vertical; }
button { cursor: pointer; border: 1px solid #174d78; border-radius: .3rem; background: #174d78; color: #fff; padding: .5rem .8rem; min-height: 2.6rem; }
button:hover:not(:disabled) { background: #113d61; }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary, .actions button { background: #fff; color: #174d78; }
button.secondary:hover:not(:disabled), .actions button:hover:not(:disabled) { background: #e7f1f9; }
:focus-visible { outline: 3px solid #bd5d0d; outline-offset: 2px; }
.feedback { min-height: 1.5rem; color: #89300b; overflow-wrap: anywhere; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list > li { border-top: 1px solid #e1e7ee; padding: .8rem 0; overflow-wrap: anywhere; }
.item-list > li:first-child { border-top: 0; padding-top: 0; }
.item-list > li:last-child { padding-bottom: 0; }
.item-list strong { margin-right: .75rem; }
.badge { display: inline-block; border: 1px solid #b9c9d8; border-radius: 2rem; padding: .05rem .5rem; font-size: .875rem; }
.meta, .empty { color: #40556b; font-size: .9rem; }
.meta { display: block; margin: .35rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.actions button { flex: 0 0 auto; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: .2rem 0 .85rem; }
.logs pre { margin: .3rem 0; }

@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .panel { padding: 1rem; }
  .actions button { flex: 1 1 40%; }
}
