:root {
  color-scheme: light;
  --ink: #152933;
  --muted: #4f6571;
  --blue: #15576d;
  --paper: #fff;
  --bg: #f0f4f5;
  --line: #ccd9de;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: #145874; text-underline-offset: 3px; }
.top { padding: .8rem clamp(1rem, 4vw, 3.5rem); background: #102f3b; color: white; display: flex;
  flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; }
.top a { color: white; }
.brand { display: inline-flex; gap: .6rem; align-items: center; font-size: 1.2rem; font-weight: 750; text-decoration: none; }
.brand span { background: #bde0df; color: #102f3b; padding: .25rem .45rem; border-radius: 5px; font-size: .9rem; }
.account, nav, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; }
main { max-width: 1440px; padding: 1.5rem clamp(1rem, 4vw, 3.5rem) 3rem; margin: auto; }
nav { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
nav a { font-weight: 650; }
h1 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); margin: 0 0 .85rem; letter-spacing: -.025em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
p { margin: 0 0 .85rem; }
.eyebrow { font-size: .83rem; color: var(--muted); font-weight: 700; margin-bottom: .25rem; }
section { margin-block: 1.2rem; }
.panel, .table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.panel { padding: 1.2rem; }
.login { max-width: 410px; margin: 7vh auto 0; }
.narrow { max-width: 700px; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(100%, 270px),1fr)); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem .85rem; border-bottom: 1px solid #e0e9ec; font-variant-numeric: tabular-nums; }
th { background: #e1ecef; white-space: nowrap; font-size: .84rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8fafb; }
label { font-weight: 600; display: block; }
input:not([type=checkbox]), select, textarea { font: inherit; display: block; width: 100%; color: var(--ink); padding: .5rem;
  border: 1px solid #aabfc7; border-radius: 5px; background: white; min-height: 2.5rem; }
input:disabled, select:disabled { background: #e9eff1; color: #4c5e63; }
button, .button { display: inline-block; border: 1px solid transparent; padding: .5rem .9rem; background: var(--blue);
  border-radius: 5px; font: inherit; font-weight: 650; cursor: pointer; color: white; text-decoration: none; }
.secondary { background: white; border-color: var(--line); color: var(--blue); }
.quiet { background: transparent; border-color: #9bb2bb; }
.toolbar { align-items: flex-end; margin: 1rem 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr)); gap: .6rem 1rem; }
.form-grid p { margin: 0; }
.activity { margin-bottom: .6rem; }
.errorlist, .error { color: #822b11; }
.notice { background: #edf6fa; border: 1px solid #b9d1da; padding: .7rem .9rem; border-radius: 5px; }
.notice.error { background: #fff3ec; border-color: #e1bda9; }
.tag { background: #edf1f2; border-radius: 5px; padding: .25rem .5rem; white-space: nowrap; display: inline-block; }
.tag.saved { background: #dcefe7; color: #154b37; }
.tag.waiting { background: #fff1cf; color: #64460c; }
:focus-visible { outline: 3px solid #1d75a6; outline-offset: 2px; }
