:root {
  color-scheme: light;
  --forest: #205847;
  --deep: #15372e;
  --ink: #172f2b;
  --muted: #506862;
  --line: #d9e4db;
  --paper: #f3f6f1;
  --white: #fff;
  font: 16px/1.55 system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--forest); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a46a19; outline-offset: 3px;
}
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.bar { max-width: 1420px; margin: auto; min-height: 4.7rem; padding: .75rem clamp(.9rem, 4vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.mark { display: inline-flex; align-items: center; gap: .65rem; color: var(--deep); text-decoration: none; }
.mark strong { font-weight: 850; letter-spacing: .1em; }
.emblem { color: var(--white); background: var(--forest); border-radius: .65rem; min-width: 2rem; text-align: center; font-weight: 800; font-size: 1.05rem; padding: .18rem .25rem; }
.brand-detail, .badge, .eyebrow { font-size: .79rem; font-weight: 730; }
.brand-detail, .eyebrow { color: var(--muted); }
.bar-actions, .shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.bar-actions form { display: block; margin: 0; }
.badge { border-radius: 2rem; padding: .28rem .64rem; background: #f7f1df; color: #755018; white-space: nowrap; }
.workspace { max-width: 1420px; min-height: calc(100vh - 5rem); margin: auto; display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.sidebar { background: #eaf0e9; border-right: 1px solid var(--line); padding: 2.1rem 1rem; }
.tenant { padding: 0 .7rem 1rem; font-weight: 750; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: .25rem; }
.sidebar a { display: block; padding: .55rem .7rem; border-radius: .45rem; white-space: nowrap; color: var(--deep); text-decoration: none; font-weight: 600; }
.sidebar a:hover, .sidebar a[aria-current] { background: #d5e6da; }
.main { max-width: 1160px; width: 100%; min-width: 0; padding: 2.1rem clamp(1rem, 4vw, 3rem) 4rem; }
.standalone { max-width: 940px; margin: 0 auto; }
.welcome, .page-title { margin: 1rem 0 1.25rem; }
h1, h2, h3, p { margin: 0 0 .72rem; }
h1 { color: var(--deep); font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.14; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { color: var(--deep); font-size: 1.3rem; line-height: 1.3; }
h3 { margin-top: 1.65rem; }
.entry-grid, .card-grid { display: grid; gap: .85rem; margin-bottom: .9rem; }
.entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: .88rem; padding: clamp(1rem,3vw,1.6rem); margin-bottom: .85rem; }
.panel > :last-child { margin-bottom: 0; }
.panel > form + a { display: inline-block; margin-top: 1rem; }
.auth-panel { max-width: 32rem; }
.metric { display: grid; align-content: center; gap: .25rem; min-height: 7rem; text-decoration: none; }
.metric:hover { border-color: var(--forest); }
.metric span, .empty { color: var(--muted); font-size: .92rem; }
.metric strong, .amount { font-size: clamp(1.15rem, 2.2vw, 1.7rem); line-height: 1.22; font-weight: 800; overflow-wrap: anywhere; }
.amount small { font-size: .9rem; font-weight: 500; }
form { max-width: 38rem; display: grid; gap: .82rem; margin: .7rem 0; }
label { display: grid; gap: .25rem; font-weight: 640; }
input, select, textarea { min-height: 2.65rem; min-width: 0; width: 100%; padding: .55rem .68rem; border: 1px solid #b9cbc0; border-radius: .42rem; background: var(--white); color: var(--ink); font: inherit; }
button, .button, .secondary { min-height: 2.55rem; width: fit-content; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--forest); border-radius: .48rem; padding: .52rem .9rem; background: var(--forest); color: var(--white); font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--deep); color: var(--white); }
.secondary { background: var(--white); color: var(--forest); }
.compact { padding: .35rem .55rem; min-height: 2rem; font-size: .82rem; }
.notice, .answer { border-radius: .5rem; padding: .72rem .85rem; margin: .8rem 0; background: #f8efe0; color: #613e12; }
.success, .answer { background: #e6f1e6; color: var(--deep); }
.table-wrap { overflow: auto; margin: .8rem 0; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .93rem; }
th, td { border-bottom: 1px solid var(--line); padding: .67rem .5rem; min-width: 5.25rem; }
th { color: var(--muted); font-weight: 700; }
dt { color: var(--muted); font-size: .85rem; }
dd { margin: 0 0 .7rem; }
code { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar .tenant { padding: 0 .4rem .35rem; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: .15rem; }
  .sidebar a { padding: .3rem .4rem; font-size: .83rem; }
  .brand-detail { display: none; }
}
@media (max-width: 480px) {
  .entry-grid, .card-grid { grid-template-columns: 1fr; }
  .metric { min-height: 0; }
}
