:root {
  color-scheme: light;
  --ink: #223229;
  --muted: #59665d;
  --line: #dedfd4;
  --paper: #fffefa;
  --green: #2e5744;
  --cream: #f5f4ed;
  --rust: #943d23;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .23em; }
a:hover { color: #173a29; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.15rem, 5vw, 3.65rem); overflow-wrap: anywhere; }
h2 { font-size: 1.5rem; }
h3 { margin-top: 1rem; font-size: .98rem; }
small { display: block; color: var(--muted); }
strong, dd { font-variant-numeric: tabular-nums; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner, .shell { max-width: 1240px; margin: auto; padding: 1rem clamp(1rem, 3vw, 2rem); }
.top-inner, .heading, .account, .actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.top-inner, .heading { justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.22rem; }
.mark { display: grid; place-items: center; background: var(--green); color: white; width: 2rem; height: 2rem; border-radius: 6px; font-family: Georgia, serif; }
nav { display: flex; gap: .25rem; flex-wrap: wrap; }
nav a, .account a, .quiet { padding: .38rem .55rem; text-decoration: none; font-size: .88rem; }
nav a.active { background: #e7eee6; border-radius: 6px; font-weight: 700; }
.shell { padding-top: 2rem; padding-bottom: 4rem; }
.heading { margin: .25rem 0 1.4rem; }
.heading.small { margin-bottom: .5rem; }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.panel, .metric, .login { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.panel { padding: clamp(.85rem, 2vw, 1.35rem); margin: 0 0 1rem; min-width: 0; }
.setup { background: #e7eee6; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .65rem; margin-bottom: 1rem; }
.metric { min-width: 0; padding: .8rem 1rem; }
.metric > span, .metric > a { display: block; font-size: .88rem; color: var(--muted); }
.metric strong { font-size: clamp(1.13rem, 2.4vw, 1.62rem); overflow-wrap: anywhere; }
.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); }
.compact .metric { padding: .5rem .65rem; }
.compact .metric strong { font-size: 1.04rem; }
.accent, .warning { background: #f7e8d8; color: #78351c; }
.warning { padding: .7rem 1rem; border-radius: 8px; }
.block { display: block; margin-bottom: 1rem; }
.bad { color: var(--rust); }
.columns, .comparison { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 340px),1fr)); gap: 1rem; }
.comparison { grid-template-columns: repeat(auto-fit,minmax(min(100%, 240px),1fr)); }
.comparison article { border: 1px solid var(--line); padding: .8rem; border-radius: 8px; }
.line, .position-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.line strong:last-child { white-space: normal; }
.position-row { flex-wrap: wrap; }
.position-row dl { display: flex; gap: .65rem 1.1rem; flex-wrap: wrap; }
dl { margin: .35rem 0; }
dt { color: var(--muted); font-size: .8rem; }
dd { margin: 0; font-weight: 600; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; padding-bottom: .35rem; }
.muted { color: var(--muted); overflow-wrap: anywhere; }
.pill { background: #e7eee6; padding: .24rem .65rem; border-radius: 1rem; font-size: .85rem; }
.fields, .filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 205px),1fr)); align-items: end; gap: .7rem; margin: .8rem 0 .4rem; }
.fields.nested { margin: .6rem 0 0; }
.fields .wide { grid-column: 1 / -1; }
.filters { margin-bottom: 1.15rem; }
.stack { display: grid; gap: .8rem; }
label { display: grid; gap: .25rem; font-size: .88rem; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .45rem; color: var(--ink); min-height: 2.35rem; }
[hidden] { display: none !important; }
input,select,textarea,button,.button { font: inherit; }
input:not([type=checkbox]),select,textarea { width: 100%; min-width: 0; border: 1px solid #aeb9af; border-radius: 6px; background: white; color: var(--ink); padding: .45rem .55rem; }
button,.button { background: var(--green); color: white; border: 1px solid var(--green); border-radius: 6px; padding: .45rem .75rem; cursor: pointer; display: inline-block; text-decoration: none; }
button:hover,.button:hover { background: #244835; color: white; }
.secondary, .quiet { background: transparent; color: var(--green); }
.quiet { border-color: transparent; }
summary { cursor: pointer; font-weight: 650; }
details { padding: .5rem 0; }
details + details { border-top: 1px solid var(--line); }
.login { width: min(94%, 420px); margin: 10vh auto; padding: 2rem; }
.login .brand { margin-bottom: 1.6rem; }
:focus-visible { outline: 3px solid #a95f35; outline-offset: 3px; }
@media (max-width: 650px) {
  .top-inner { gap: .45rem; }
  nav { order: 2; width: 100%; }
  nav a, .account a, .quiet { padding: .32rem .38rem; }
  .account { gap: .15rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric { padding: .65rem; }
  .line { flex-wrap: wrap; }
  .position-row dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
}
