:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f6;
  color: #17221c;
}

* { box-sizing: border-box; }

body { margin: 0; }

button, input { font: inherit; }

.shell { width: min(100% - 2rem, 72rem); margin: 0 auto; padding: 1.25rem 0 3rem; }

.topbar, .page-heading, .section-heading, .case-row, .inline-form {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar, .page-heading, .section-heading, .case-row { justify-content: space-between; }

.topbar { margin-bottom: 2rem; }

.brand { color: #1b5e3a; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }

.auth-card, .panel { background: #fff; border: 1px solid #d9e2dc; border-radius: .75rem; box-shadow: 0 1px 2px rgb(20 38 28 / 5%); padding: 1.5rem; }

.auth-card { width: min(100%, 28rem); margin: 4rem auto; }

.panel { margin-top: 1.25rem; }

.eyebrow { color: #27754a; font-size: .78rem; font-weight: 700; letter-spacing: .08em; margin: 0 0 .35rem; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .5rem; }
h2 { margin-bottom: .5rem; font-size: 1.1rem; }
h3 { margin-bottom: .25rem; font-size: 1rem; }

form { display: grid; gap: .65rem; }

label { font-weight: 600; }

input { border: 1px solid #aabbb0; border-radius: .4rem; min-height: 2.6rem; padding: .55rem .7rem; width: 100%; }
input:focus-visible, button:focus-visible, pre:focus-visible { outline: 3px solid #8dcdaa; outline-offset: 2px; }

.button { background: #1b6942; border: 1px solid #1b6942; border-radius: .4rem; color: #fff; cursor: pointer; font-weight: 700; min-height: 2.6rem; padding: .5rem .8rem; }
.button:hover { background: #145133; }
.button:disabled { cursor: wait; opacity: .6; }
.button.secondary { background: #fff; color: #1b6942; }
.button.secondary:hover { background: #edf7f0; }

.notice { border: 1px solid; border-radius: .45rem; margin-bottom: 1rem; padding: .75rem 1rem; }
.notice.info { background: #edf5fd; border-color: #a6c5e9; }
.notice.success { background: #edf8f0; border-color: #a6d7b3; }
.notice.error { background: #fff0ef; border-color: #e8b0aa; color: #7a2118; }

.muted { color: #5d6b63; }
.cases-list { display: grid; gap: .75rem; }
.case-row { border-top: 1px solid #e3e9e5; padding: 1rem 0; }
.case-row p { margin-bottom: .2rem; }
.case-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
pre { background: #15221b; border-radius: .45rem; color: #e8f4ea; max-height: 35rem; overflow: auto; padding: 1rem; white-space: pre-wrap; word-break: break-word; }
.hidden { display: none !important; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 40rem) {
  .page-heading, .case-row, .inline-form { align-items: stretch; flex-direction: column; }
  .case-actions { width: 100%; }
  .case-actions .button { flex: 1; }
}
