:root {
  color-scheme: dark;
  --page: #10191b;
  --card: #192528;
  --raised: #243437;
  --edge: #3a4b4d;
  --ink: #edf2e8;
  --muted: #bac8c5;
  --mint: #a4e0bd;
  --peach: #ffc2a2;
  font: 100%/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
header { border-bottom: 1px solid var(--edge); }
.topbar, main { width: min(69rem, 100%); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 4.25rem; gap: .75rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-size: 1.18rem; font-weight: 750; text-decoration: none; color: var(--ink); }
.mark { display: inline-block; width: 1.15rem; height: 1.15rem; border: 3px solid var(--mint); border-radius: .25rem .25rem .25rem 0; transform: rotate(-8deg); box-shadow: inset -.2rem -.2rem 0 #518166; }
main { padding-block: clamp(1.35rem, 5vw, 3rem) 4rem; }
.intro { margin-bottom: 1.25rem; }
h1, h2 { line-height: 1.16; margin: 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 4vw, 2.45rem); }
h2 { font-size: 1.3rem; }
.hint, .field-hint { color: var(--muted); }
.hint { margin: .45rem 0 0; }
.field-hint { font-size: .9rem; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; padding: clamp(1.05rem, 3vw, 1.55rem); background: var(--card); border: 1px solid var(--edge); border-radius: .8rem; }
.narrow { max-width: 38rem; }
.login { max-width: 27rem; margin: min(8vh, 3.75rem) auto; }
.health { margin-bottom: 1rem; }
.recent { margin-top: 1rem; }
.recent ul { margin-block: .8rem 0; padding-left: 1.25rem; }
.recent li + li { margin-top: .4rem; }
.section-head, .links, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.3rem; }
.section-head { justify-content: space-between; }
.links { border-top: 1px solid var(--edge); padding-top: 1rem; margin-top: 1rem; }
.card form { display: grid; gap: .5rem; margin-top: 1.05rem; }
label { margin-top: .2rem; font-size: .95rem; font-weight: 625; }
input, textarea, select, button { font: inherit; }
input, textarea, select { margin: 0; width: 100%; min-width: 0; padding: .62rem .75rem; color: var(--ink); border: 1px solid #718481; border-radius: .4rem; background: var(--page); }
textarea { resize: vertical; }
details { padding-block: .2rem; }
summary { color: var(--mint); cursor: pointer; }
details label { display: block; margin-block: .6rem .35rem; }
details .field-hint { margin-top: .5rem; }
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { color: #d3ffe1; }
button, .button { display: inline-block; justify-self: start; border: 1px solid transparent; border-radius: .45rem; padding: .62rem .95rem; cursor: pointer; background: var(--mint); color: #0e2920; font-weight: 680; text-decoration: none; line-height: 1.4; }
.card form > button { margin-top: .45rem; }
button:hover { background: #c1efd3; }
.secondary { background: var(--raised); border-color: #69817c; color: var(--ink); }
.secondary:hover { background: #324845; color: var(--ink); }
.danger { background: var(--peach); color: #421f12; }
.danger:hover { background: #ffd5bf; }
.text-button { padding: .4rem; border: 0; font-weight: 550; color: var(--muted); background: transparent; }
.text-button:hover { background: transparent; text-decoration: underline; color: var(--ink); }
:focus-visible { outline: 3px solid #ffe096; outline-offset: 3px; }
.output { white-space: pre-wrap; overflow-wrap: anywhere; border-radius: .4rem; background: var(--page); padding: 1rem; font: .9rem/1.6 ui-monospace, Consolas, monospace; margin-bottom: 0; }
.notice { border-left: .2rem solid var(--mint); padding: .65rem .85rem; background: var(--raised); }
.error { border-color: var(--peach); }
.back { display: inline-block; margin-bottom: 1rem; }
.skip { position: absolute; left: 1rem; top: -10rem; padding: .55rem .85rem; background: var(--page); z-index: 1; }
.skip:focus { top: .65rem; }
.summary { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 45rem) {
  .grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
}
