:root {
  color-scheme: light;
  --paper: #f5f6f0;
  --white: #fff;
  --ink: #1c2725;
  --muted: #4c5d5a;
  --line: #d5ded7;
  --accent: #075d4f;
  --tint: #e9f6ed;
  font: 16px/1.5 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #1b826d; outline-offset: 3px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .6rem; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4rem; padding: .75rem 1.4rem; max-width: 75rem; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.mark { display: grid; place-items: center; height: 2rem; width: 2rem; color: var(--white); background: var(--accent); border-radius: .45rem; }
.badge { background: var(--tint); color: var(--accent); font-size: .78rem; font-weight: 650; padding: .2rem .55rem; border-radius: 2rem; }
.top-actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; font-size: .9rem; }
.layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; max-width: 75rem; margin: auto; padding: 2rem 1.4rem 4rem; }
.sidebar { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; }
.sidebar .eyebrow { padding: .6rem .75rem; }
.sidebar a { font-weight: 600; padding: .65rem .75rem; border-radius: .45rem; color: var(--muted); text-decoration: none; }
.sidebar a:hover { background: var(--white); }
.sidebar a[aria-current="page"] { background: var(--tint); color: var(--accent); }
.page-heading { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .085em; }
h1, h2 { line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.18rem; }
p { color: var(--muted); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 3vw, 1.7rem); margin-bottom: 1rem; }
.auth { max-width: 31rem; margin: clamp(1rem, 5vw, 4.5rem) auto; width: calc(100% - 2rem); }
.auth h1 { margin-top: .35rem; }
.fields { display: grid; gap: 1rem; }
.fields h2:not(:first-of-type) { padding-top: 1rem; border-top: 1px solid var(--line); }
.fields p { margin: 0; }
.field { display: grid; min-width: 0; gap: .3rem; font-size: .92rem; font-weight: 650; }
small { display: block; color: var(--muted); font-size: .83rem; font-weight: 400; }
input:not([type="checkbox"], [type="hidden"]), select, textarea { width: 100%; border: 1px solid #a5b6ac; border-radius: .4rem; padding: .6rem .65rem; color: var(--ink); background: var(--white); font: inherit; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #59716b; opacity: 1; }
textarea { resize: vertical; min-height: 4rem; }
button { justify-self: start; font: inherit; font-weight: 650; border: 1px solid var(--accent); border-radius: .4rem; padding: .6rem .85rem; cursor: pointer; background: var(--accent); color: var(--white); }
button.secondary { border-color: #a5b6ac; color: var(--accent); background: var(--white); }
button:hover { filter: brightness(.95); }
button:disabled { opacity: .55; cursor: not-allowed; }
.toggle { display: flex; gap: .65rem; align-items: start; padding: .7rem; border: 1px solid var(--line); border-radius: .4rem; }
.toggle input { margin-top: .3rem; accent-color: var(--accent); width: 1rem; height: 1rem; flex: none; }
.notice { background: var(--tint); color: var(--accent); border: 1px solid #bfdcc8; border-radius: .4rem; padding: .7rem .9rem; }
.notice.error { background: #fff1ec; color: #802809; border-color: #f0c5b4; }
.page-selector { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: end; gap: .75rem; }
.page-selector select { min-width: 0; }
.page-link { display: inline-block; margin-top: .6rem; }
@media (max-width: 700px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem 1rem 3rem; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar .eyebrow { display: none; }
  .sidebar a { font-size: .87rem; padding: .45rem .55rem; }
  .top-inner { padding-inline: 1rem; }
}
@media (max-width: 440px) {
  .brand .badge { display: none; }
  .page-selector { grid-template-columns: minmax(0, 1fr); }
}
