:root { color-scheme: light; font: 15px/1.5 system-ui,sans-serif; color: #182c24; background: #f5f7f2; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display:flex; justify-content:space-between; align-items:center; padding: 15px clamp(16px,4vw,56px); background:#183a2d; color:white; min-height:72px; }
.brand,.toolbar,.actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.brand { font-weight:700; font-size:22px; }
.brand small { font-size:14px; font-weight:500; color:#c1d5c9; margin-left:7px; }
.monogram { display:grid; place-items:center; border-radius:12px; background:#e4eee4; color:#183a2d; width:38px; height:38px; font-family: Georgia,serif; }
.layout { max-width:1440px; margin:auto; display:grid; grid-template-columns: 188px minmax(0,1fr); }
nav { padding:28px 14px; border-right:1px solid #dbe2d7; min-height:calc(100vh - 72px); }
nav button { width:100%; text-align:left; margin-bottom:6px; background:transparent; }
nav button[aria-current] { background:#dce9db; font-weight:700; }
main { padding:28px clamp(16px,4vw,48px); }
main:has(.login) { grid-column:1/-1; }
.login { max-width:430px; margin:32px auto; }
h1 { font-size:clamp(24px,4vw,34px); margin:0 0 15px; letter-spacing:-.035em; }
h2 { font-size:19px; margin:0 0 12px; }
p { margin:0 0 12px; }
.card { background:#fff; padding:20px; border:1px solid #dbe2d7; border-radius:14px; margin-bottom:16px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(188px,1fr)); gap:12px; }
label { display:block; font-weight:600; }
input:not([type=checkbox]), select, textarea { width:100%; padding:9px; border:1px solid #b7c8bc; border-radius:7px; margin-top:4px; background:white; font:inherit; color:inherit; }
textarea { resize:vertical; min-height:75px; }
textarea.code { font-family:ui-monospace,monospace; min-height:220px; }
button,.button { border:1px solid #b7c8bc; border-radius:8px; background:#fff; padding:8px 13px; font:inherit; color:inherit; cursor:pointer; text-decoration:none; display:inline-block; }
button:hover,.button:hover { border-color:#39634c; background:#eff5ed; }
.primary { background:#24513d; border-color:#24513d; color:white; }
.primary:hover { background:#153e2c; }
.toolbar { justify-content:space-between; margin-bottom:14px; }
.toolbar h1 { margin:0; }
.actions { margin:10px 0; }
.table { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
th,td { padding:10px; border-bottom:1px solid #e1e8de; vertical-align:top; }
th { background:#f0f5ed; font-size:.9em; }
td.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.status { display:inline-block; padding:2px 8px; border-radius:20px; background:#e9eee7; white-space:nowrap; }
.alert,#notice { padding:11px; background:#fff1de; border:1px solid #e7c6a2; color:#713b18; border-radius:8px; margin-bottom:10px; }
#notice.good { background:#e8f1e7; border-color:#c4d7c4; color:#214530; }
.danger { color:#922822; }
.muted { color:#50655a; }
.formrow { display:grid; grid-template-columns: minmax(125px,2fr) 1fr auto 1fr auto; gap:9px; align-items:end; margin:8px 0; }
.check { font-weight:400; margin:5px 0; }
summary { cursor:pointer; font-weight:600; padding:8px 0; }
pre { max-height:320px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:700px) { .layout { display:block; } nav { min-height:0; border-right:0; padding:10px; } nav button { width:auto; } main { padding-top:14px; } .formrow { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.mobile-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mobile-tools a { min-height:88px; display:grid; place-items:center; text-align:center; font-weight:700; }
@media(max-width:700px) {
  body:has(.mobile-home) nav { display:none; }
  main { padding-inline:12px; }
  .card { padding:14px; }
  .grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); }
  .table { overflow:visible; }
  table, tbody, tr, td { display:block; }
  thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  tbody tr { border:1px solid #e1e8de; border-radius:8px; margin-bottom:8px; padding:6px 9px; }
  td { display:grid; grid-template-columns:minmax(92px, 35%) minmax(0,1fr); gap:5px; overflow-wrap:anywhere; padding:5px; }
  td::before { content:attr(data-label); font-weight:600; }
  td:last-child { border:0; }
  #identity span { display:none; }
  input:not([type=checkbox]), select, textarea { font-size:16px; }
}
