:root { --green: #176b4d; --green-dark: #0f4c37; --green-light: #e8f2ed; --ink: #1f2a25; --muted: #66736d; --border: #d7dfdb; --surface: #fff; --danger: #9e2f2f; --warning: #fff5d6; }
* { box-sizing: border-box; }
body { margin: 0; background: #f6f8f7; color: var(--ink); font-family: system-ui, -apple-system, sans-serif; line-height: 1.45; }
a { color: var(--green-dark); }
.site-header { min-height: 4rem; padding: .8rem max(1.25rem, calc((100vw - 90rem) / 2)); background: var(--green-dark); color: white; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header a, .site-header span { color: white; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { display: block; width: auto; height: 2.75rem; max-width: min(13rem, 40vw); object-fit: contain; }
.link-button { border: 0; background: transparent; color: white; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.container { max-width: 90rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.flash-region { max-width: 90rem; margin: 0 auto; padding: 0 1.25rem; }
.flash { margin-top: 1rem; padding: .8rem 1rem; border-radius: .35rem; background: var(--green-light); }
.flash--alert { background: #fbe5e5; color: #6f1f1f; }
h1 { margin: 0 0 .35rem; line-height: 1.15; } h2 { margin-top: 0; font-size: 1.2rem; } p { margin-top: .35rem; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.actions, .form-actions, .filter-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.button { display: inline-block; border: 1px solid var(--green); border-radius: .35rem; background: var(--green); color: white; padding: .62rem .9rem; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
.button--secondary { background: white; color: var(--green-dark); }.button--quiet { background: transparent; color: var(--green-dark); border-color: var(--border); }
.filters, .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }.filters { background: white; border: 1px solid var(--border); padding: 1rem; border-radius: .45rem; margin-bottom: 1.5rem; }.field--wide, .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }.field label, dt { font-weight: 650; }.field small, .muted { color: var(--muted); }
input, select, textarea { width: 100%; border: 1px solid #aebbb4; border-radius: .3rem; padding: .58rem .65rem; color: var(--ink); background: white; font: inherit; } textarea { resize: vertical; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--border); border-radius: .45rem; }table { border-collapse: collapse; width: 100%; font-size: .9rem; }th, td { padding: .7rem .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }th { background: #edf3f0; white-space: nowrap; }.cell-title { min-width: 18rem; }.row-actions { white-space: nowrap; }.badge { display: inline-block; background: var(--green-light); border-radius: 999px; padding: .15rem .5rem; white-space: nowrap; }
.pagination { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }.empty-state { text-align: center; padding: 2rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: .45rem; padding: 1.2rem; margin-bottom: 1rem; }.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }.detail-grid div { min-width: 0; }.detail-grid dd { margin: .25rem 0 0; overflow-wrap: anywhere; }.detail-grid dd span { margin: 0; }
.form-section legend { font-size: 1.2rem; font-weight: 700; padding: 0 .35rem; }.form-actions { position: sticky; bottom: 0; background: rgba(246,248,247,.95); padding: 1rem 0; }
.error-summary, .warning { border-radius: .4rem; padding: 1rem; margin-bottom: 1rem; }.error-summary { background: #fbe5e5; border: 1px solid #d48a8a; color: #6f1f1f; }.warning { background: var(--warning); border: 1px solid #dbc16d; }.error-summary h2, .warning h2 { font-size: 1rem; }
.auth-card, .narrow-form { max-width: 32rem; margin: 5rem auto; }.auth-card { background: white; border: 1px solid var(--border); border-radius: .5rem; padding: 2rem; }.stack { display: flex; flex-direction: column; gap: 1rem; }.checkbox { display: flex; gap: .5rem; align-items: center; }.checkbox input { width: auto; }.audit-list li { margin-bottom: .75rem; }.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
@media (max-width: 800px) { .filters, .form-grid, .detail-grid { grid-template-columns: 1fr; }.field--wide, .field--full { grid-column: auto; }.page-heading, .site-header { flex-direction: column; }.container { padding-top: 1.25rem; } }
