:root {
  color-scheme: dark;
  --background: #101113;
  --panel: #181a1e;
  --line: #343237;
  --ink: #f5f2e9;
  --muted: #c0bdba;
  --gold: #edc677;
  font: 16px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
header { border-bottom: 1px solid var(--line); }
.bar, main, footer { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--gold); color: #161311; border-radius: .4rem; font-weight: 850; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--gold); }
section { margin-block: 2.7rem; scroll-margin-top: 1.5rem; }
.hero { border: 1px solid #52442d; border-radius: 1.15rem; background: radial-gradient(ellipse at 95% 0%, #47351d, transparent 67%), #191817; }
.hero-inner { padding: clamp(1.5rem, 6vw, 4.25rem); }
.eyebrow { color: var(--gold); font-size: .875rem; letter-spacing: .18em; font-weight: 750; margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 9vw, 6.5rem); line-height: .99; letter-spacing: -.07em; margin: .55rem 0 1.2rem; }
h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); letter-spacing: -.04em; margin-bottom: 1rem; }
h3, legend { font-size: 1.13rem; font-weight: 720; }
.intro { max-width: 44ch; font-size: 1.16rem; color: #dfd9cd; margin-bottom: 1.55rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: .85rem; padding: 1.25rem; min-width: 0; margin: 0; }
article.card { display: flex; flex-direction: column; align-items: flex-start; }
.icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #57482e; background: #29241c; border-radius: .55rem; color: var(--gold); font-size: 1.45rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .35rem; }
.card p, .muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .48rem .85rem; border: 1px solid #665437; border-radius: .5rem; color: var(--gold); text-decoration: none; font-weight: 680; }
article .button { margin-top: auto; }
.button:hover { background: #32291d; }
.primary { background: var(--gold); color: #161311; }
.primary:hover { background: #ffdb95; }
.training-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.training-header h2, .training-header p { margin-bottom: .15rem; }
.meter { width: min(100%, 14rem); color: var(--gold); font-weight: 650; }
progress { display: block; width: 100%; accent-color: var(--gold); margin-top: .3rem; }
legend { padding-inline: .4rem; }
fieldset label { display: flex; align-items: flex-start; gap: .65rem; padding: .65rem 0; cursor: pointer; }
fieldset label + label { border-top: 1px solid var(--line); }
input { width: 1.1rem; height: 1.1rem; flex: none; margin: .23rem 0 0; accent-color: var(--gold); }
footer { color: var(--muted); border-top: 1px solid var(--line); padding-block: 1.3rem; }
@media (max-width: 52rem) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 28rem) {
  .bar, main, footer { width: calc(100% - 1.5rem); }
  .bar { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .6rem; }
}
.lead-form, .lead-row { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.lead-form label { flex: 1 1 9rem; }
.lead-form input, .lead-form select, .lead-filter {
  display: block; width: 100%; min-height: 2.65rem; margin-top: .25rem;
  padding: .4rem .6rem; font: inherit; color: inherit;
  background: var(--background); border: 1px solid var(--line); border-radius: .4rem;
}
.lead-filter { max-width: 22rem; margin-bottom: 1rem; }
.lead-row { align-items: center; justify-content: space-between; }
.lead-row small { display: block; color: var(--muted); font-size: .875rem; }
.lead-list { display: grid; gap: .6rem; }
.lead-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
button.button { background: var(--panel); cursor: pointer; font: inherit; }
button.button:hover { background: #32291d; }
@media (min-width: 70rem) { .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 52.01rem) and (max-width: 69.99rem) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
