:root { --surface: #fffefa; --ink: #243d4c; --muted: #657675; --teal: #327e79; color-scheme: light; font: 16px/1.6 system-ui, sans-serif; color: var(--ink); background: #f4f3ee; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 1000px; }
header { background: #142d44; color: #fff; padding: 18px 36px; display: flex; align-items: center; justify-content: space-between; }
header a { color: #fff; text-decoration: none; }
nav, .heading, .actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.brand { font-size: 22px; font-weight: 700; }
main { max-width: 1600px; margin: 30px auto; padding: 0 32px 80px; }
h1, h2, h3, p { margin-top: 0; } h2 { font-size: 21px; } h3 { font-size: 18px; }
.subtle, small { color: #657675; }
section { border: 1px solid #d9dfd8; border-radius: 12px; padding: 24px; background: #fffefa; margin-bottom: 20px; min-width: 0; }
#login-panel { max-width: 520px; margin: 40px auto; }
#notice { padding: 12px 18px; background: #e5efed; border-left: 4px solid #327e79; }
#notice.error { background: #fff0ee; border-color: #af5143; }
label { display: block; margin: 10px 0; font-weight: 600; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #bfcfc5; border-radius: 6px; background: #fff; color: inherit; font: inherit; }
input[type=checkbox] { display: inline-block; width: auto; margin-right: 10px; }
textarea { min-height: 80px; resize: vertical; }
button, .button { cursor: pointer; font: inherit; padding: 9px 14px; border-radius: 6px; border: 1px solid #b8cabe; background: #edf2e8; color: #234f51; text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #257e92; outline-offset: 2px; }
.workspace-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 24px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.full { grid-column: 1 / -1; }
.list-row { border-bottom: 1px solid #e2e6df; padding: 12px 0; overflow-wrap: anywhere; }
.list-row button { text-align: left; width: 100%; background: white; }
.list-row a { display: inline-block; margin: 6px 12px 0 0; color: #216b79; }
.measurement { border: 1px solid #dbe5df; padding: 14px; margin: 14px 0; border-radius: 8px; }
.measurement h3 { margin-bottom: 4px; }
details { margin: 18px 0; } summary { cursor: pointer; font-weight: 700; }
.sticky-actions { background: #f8faf5; padding: 14px; border-top: 1px solid #d4ddd3; }
.long-form > .sticky-actions { position: sticky; bottom: 0; z-index: 2; }
.grant-row { display: grid; grid-template-columns: 1fr 150px; gap: 12px; align-items: center; }
.library-preview { display: block; width: 100%; height: auto; border: 1px solid #dbe5df; background: #f6f9f5; }
