:root {
  color-scheme: light;
  --ink: #18232d;
  --muted: #52626a;
  --line: #dce2e1;
  --paper: #f5f7f6;
  --accent: #d8ee5d;
  --dark: #111e24;
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #587735; outline-offset: 4px; }
.wrap { width: min(1232px, calc(100% - 96px)); margin-inline: auto; }
.header { background: #fcfdfb; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; font-size: 1.26rem; text-decoration: none; white-space: nowrap; }
.brand > span:last-child { color: #4b5d63; }
.brand-mark { width: 28px; height: 28px; display: grid; align-content: center; justify-content: center; gap: 3px; border-radius: 5px; background: #25343a; margin-right: 5px; }
.brand-mark i { display: block; width: 13px; height: 2px; background: var(--accent); transform: skewY(-22deg); }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: clamp(12px, 2.4vw, 34px); }
nav a { font-size: .92rem; text-decoration: none; font-weight: 630; }
nav form { margin: 0; }
nav a:hover, footer a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 5px; background: var(--accent); color: #1e2917; text-decoration: none; font-weight: 720; line-height: 1.15; }
.button:hover { background: #cce54b; }
.button.outline { border-color: #bbc6c4; background: transparent; color: var(--ink); }
.button.outline:hover, .button.ghost:hover { background: #e8eeea; }
.button.ghost { background: transparent; color: var(--ink); }
.button.compact { min-height: 39px; padding-inline: 13px; font-size: .875rem; }
.intro { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(28px, 5.1vw, 77px); align-items: center; padding: 64px 0 70px; }
.hero-copy { padding: 12px 0 18px; }
.eyebrow { font-size: .82rem; letter-spacing: .13em; font-weight: 730; margin: 0 0 22px; color: #42575b; display: flex; gap: 9px; align-items: center; }
.eyebrow span { display: inline-block; width: 9px; height: 9px; background: #a4c036; border-radius: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-weight: 720; letter-spacing: -.061em; line-height: .99; font-size: clamp(2.55rem, 5.1vw, 5.25rem); margin-bottom: 24px; }
h1 em { font-style: normal; color: #44714b; }
.lead { font-size: clamp(1.02rem, 1.37vw, 1.23rem); color: var(--muted); max-width: 39ch; margin-bottom: 25px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.figure { background: var(--dark); border: 1px solid #34474a; color: #e8f1ec; border-radius: 9px; overflow: hidden; box-shadow: 0 19px 40px #26393722; min-width: 0; }
.figure-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 19px; border-bottom: 1px solid #ffffff1c; font-size: .9rem; font-weight: 650; }
.figure-head span:last-child { color: #b3c5c7; font-size: .78rem; font-family: Consolas, monospace; }
.figure-image { position: relative; }
canvas { width: 100%; height: auto; display: block; }
.legend { position: absolute; right: 5%; top: 18%; display: grid; place-items: center; gap: 5px; font: .72rem Consolas, monospace; color: #d7e4e2; }
.legend[hidden] { display: none; }
.legend i { width: 9px; height: clamp(60px, 9vw, 130px); background: linear-gradient(#ec5b3d, #f5dc60, #8cd788, #37aaba, #344e87); border: 1px solid #d6f5de52; border-radius: 2px; }
.axes { position: absolute; bottom: 12%; left: 6%; width: 23px; height: 28px; border-left: 1px solid #95bebf; border-bottom: 1px solid #95bebf; font: .7rem Consolas, monospace; color: #cbe0df; }
.axes span { position: absolute; }
.axes span:nth-child(1) { top: -12px; left: -4px; }.axes span:nth-child(2) { right: -10px; bottom: -6px; }.axes span:nth-child(3) { left: -11px; bottom: -12px; }
.figure-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 10px; border-top: 1px solid #ffffff1c; background: #16252b; }
.figure-tools button { border: 1px solid transparent; border-radius: 4px; min-height: 35px; padding: 0 13px; background: none; color: #c5d3d3; font-size: .875rem; }
.figure-tools button:hover { background: #ffffff15; }
.figure-tools button[aria-pressed="true"] { color: var(--accent); background: #d8ee5d16; border-color: #d8ee5d39; }
.work-section { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 62px; scroll-margin-top: 18px; }
.work-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 28px; margin-bottom: 25px; }
h2 { font-size: clamp(1.2rem, 2.5vw, 2rem); line-height: 1.13; letter-spacing: -.028em; margin-bottom: 12px; }
.work-title > * { margin: 0; }
.work-title p, .features p, .inner-page p { color: var(--muted); line-height: 1.56; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.features article { border-top: 1px solid var(--line); padding: 20px 13% 6px 0; }
.features article > span { display: inline-grid; place-items: center; height: 32px; width: 32px; border-radius: 4px; color: #395d40; background: #edf2e7; margin-bottom: 13px; }
.features h3 { font-size: 1.08rem; margin-bottom: 7px; }
.features p { margin-bottom: 0; }
.inner-page { padding: 59px 0 72px; }
.inner-page h1 { font-size: clamp(2.15rem, 5vw, 3.7rem); margin-bottom: 14px; }
.form-card, .card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3vw, 35px); }
.form-card { width: min(100%, 485px); margin: 10px auto; }
.form-card h1 { font-size: clamp(1.9rem, 5vw, 2.85rem); }
.stack { display: grid; gap: 16px; margin-top: 23px; }
.stack .button { justify-self: start; }
label { display: block; color: #34464b; font-size: .875rem; font-weight: 650; }
input:not([type="hidden"], [type="checkbox"]), select { display: block; width: 100%; min-height: 43px; padding: 8px 10px; margin-top: 6px; color: var(--ink); background: #fbfdfb; border: 1px solid #b9c5c1; border-radius: 5px; }
select { appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, #52626a 50%), linear-gradient(135deg, #52626a 50%, transparent 50%); background-position: right 13px center, right 8px center; background-size: 5px 5px; background-repeat: no-repeat; }
.check { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.notice { background: #f1f5e7; border-left: 3px solid #769038; border-radius: 2px; padding: 11px 13px; overflow-wrap: anywhere; }
.help-link { margin: 22px 0 0; }
.reading { max-width: 68ch; margin: 0 auto; }
.reading h2 { margin-top: 24px; }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.page-heading { margin-bottom: 24px; }
.card h2 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); overflow-wrap: anywhere; }
.state { display: inline-block; background: #f0f0ec; color: #485253; padding: 5px 8px; border-radius: 4px; font-size: .875rem; font-weight: 700; }
.state.active { background: #e6f3de; color: #356443; }
dl div, .devices li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0; }
dd { margin: 0; font-weight: 650; text-align: right; }
.product-list { margin-block: 12px 18px; }
.product-list dd.enabled { color: #356443; }
.devices { margin: 0; padding: 0; list-style: none; }
.devices small { display: block; color: var(--muted); margin-top: 3px; }
.grants { padding: 0; margin: 16px 0; list-style: none; }
.grants li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.grants small { display: block; margin-top: 3px; color: var(--muted); }
.grants form { margin: 0; }
.row-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 9px; }
.row-form input[type="number"] { max-width: 125px; }
.account-list { display: grid; gap: 14px; margin-top: 21px; }
.account-row { display: grid; grid-template-columns: minmax(180px, .65fr) 1fr; gap: 18px; }
.account-row h2 { font-size: 1.1rem; }
details summary { color: #40534c; cursor: pointer; }
.admin-actions details { margin-top: 10px; }
.admin-actions details > form { margin-top: 8px; }
details .actions { margin-top: 10px; }
footer { background: #fcfdfb; border-top: 1px solid var(--line); }
.footer-inner { min-height: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; color: #526166; font-size: .875rem; }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 56px); }
  .intro { gap: 25px; }
  h1 { font-size: clamp(2.45rem, 6.6vw, 4.2rem); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 65px; gap: 8px; }
  nav { gap: 12px; }
  nav > a:first-child { display: none; }
  .intro { grid-template-columns: 1fr; padding-block: 34px 40px; gap: 24px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(2.75rem, 10.8vw, 4.05rem); margin-bottom: 18px; }
  .hero-copy h1 br:nth-of-type(2) { display: none; }
  .lead { margin-bottom: 18px; }
  .work-section { padding-block: 30px; }
  .features, .dashboard, .account-row { grid-template-columns: 1fr; gap: 12px; }
  .features article { padding-right: 0; }
  .inner-page { padding-block: 31px; }
}
