@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/vendor/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}

:root {
  --pla: #eceef0;          /* unpainted PLA – page */
  --pla-2: #e1e5e9;        /* recessed surfaces */
  --paper: #ffffff;
  --ink: #1b2430;          /* deep slate */
  --ink-2: #4d5866;
  --ink-3: #737e8b;
  --line: #cfd5db;
  --line-2: #e2e6ea;
  --pei: #b8892b;          /* textured PEI build plate – the one accent */
  --pei-hover: #c99a3a;
  --pei-ink: #7c5a12;
  --pei-soft: #f4ead0;
  --turf: #2f7d4a;         /* field insert */
  --turf-soft: #dcefe2;
  --danger: #b3261e;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --float: 0 1px 2px rgba(27, 36, 48, .08), 0 10px 30px rgba(27, 36, 48, .14);
  --font: "Archivo", system-ui, sans-serif;
  --header: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--pla);
  font-variant-numeric: tabular-nums;
}
body.no-scroll { overflow: hidden; }
a { color: var(--pei-ink); }
:focus-visible { outline: 2px solid var(--pei); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================================================================ buttons + inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14.5px; font-weight: 600;
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2c3949; }
.btn.accent { background: var(--pei); border-color: var(--pei); color: #1b1407; }
.btn.accent:hover { background: var(--pei-hover); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(27, 36, 48, .06); }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: 13.5px; }
.btn.big { min-height: 52px; font-size: 16px; padding: 12px 20px; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--danger); }
.btn-sub { font-weight: 400; opacity: .75; font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: rgba(27, 36, 48, .07); color: var(--ink); }

input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], select, textarea {
  font: inherit; font-size: 15px;
  width: 100%;
  min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--paper); color: var(--ink);
}
textarea { resize: vertical; min-height: 64px; font-size: 14px; }
input[type=range] { width: 100%; accent-color: var(--pei); margin: 6px 0 0; }
label.field { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }
label.field > span { display: flex; justify-content: space-between; margin-bottom: 4px; }
label.field output { color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-top: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pei); margin: 0; }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.error { color: var(--danger); font-size: 13.5px; margin-top: 10px; }
.notice { background: var(--pei-soft); border-radius: var(--r-s); padding: 10px 12px; font-size: 13.5px; margin-top: 14px; }

.seg { display: flex; padding: 3px; gap: 3px; background: var(--pla-2); border-radius: var(--r-s); }
.seg button {
  flex: 1; font: inherit; font-size: 13.5px; font-weight: 500;
  min-height: 32px; padding: 4px 10px; border: 0; border-radius: 4px;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(27, 36, 48, .12); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 14px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--pei); }
.switch input:checked::after { transform: translateX(16px); }

/* ================================================================ header */
.site-header {
  height: var(--header);
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px;
  background: var(--pla);
  border-bottom: 1px solid var(--line-2);
  position: relative; z-index: 1100;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-stretch: 125%; font-weight: 800; font-size: 21px; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: 22px; font-size: 14.5px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current=page] { color: var(--ink); border-color: var(--pei); }
.account { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px; border-radius: 99px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: rgba(27, 36, 48, .06); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.menu-name { font-size: 14px; font-weight: 600; color: var(--ink); padding-right: 8px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--float); padding: 6px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { font: inherit; font-size: 14px; text-align: left; padding: 9px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--pla); }
.menu-who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; min-width: 0; }
.menu-who strong { font-size: 14.5px; }
.menu-email { font-size: 12.5px; color: var(--ink-3); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-badge { margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; background: var(--pla); color: var(--ink-2); border: 1px solid var(--line-2); }
.plan-badge.admin { background: #f6edd9; color: #7a5a17; border-color: #e6d3a6; }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.name-row input { min-width: 0; }
@media (max-width: 480px) { .name-row { grid-template-columns: 1fr; } }

/* ================================================================ homepage */
.home main { overflow-x: clip; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; padding: 40px 0 24px; min-height: calc(100vh - var(--header) - 40px); max-height: 860px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); font-stretch: 118%; font-weight: 800; letter-spacing: -0.025em; line-height: 0.98; }
.hero .lede { font-size: 18.5px; color: var(--ink-2); margin-top: 22px; max-width: 30em; line-height: 1.55; }
.hero-search { display: flex; gap: 8px; margin-top: 30px; max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px; box-shadow: 0 1px 2px rgba(27,36,48,.06); }
.hero-search input { border: 0; min-height: 46px; font-size: 16.5px; padding-left: 12px; background: transparent; }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { border-color: var(--pei); box-shadow: 0 0 0 3px rgba(184, 137, 43, .2); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.picks a { color: var(--ink-2); text-decoration: none; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); }
.picks a:hover { border-color: var(--ink-3); color: var(--ink); }
.hero-note { font-size: 13.5px; color: var(--ink-3); margin-top: 22px; }
.hero-stage { position: relative; aspect-ratio: 1 / 0.92; width: 100%; }
.hero-stage canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.hero-stage figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px; text-align: center; font-size: 13px; color: var(--ink-3); padding: 0 12px; }

.band { padding: 88px 0; border-top: 1px solid var(--line-2); }
.band h2 { font-size: clamp(28px, 3.2vw, 40px); font-stretch: 115%; font-weight: 800; letter-spacing: -0.015em; max-width: 18em; }
.band .sub { color: var(--ink-2); font-size: 17px; margin-top: 12px; max-width: 36em; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-stretch: 125%; font-weight: 800; font-size: 44px; line-height: 1; color: var(--pei); margin-bottom: 14px; }
.steps h3 { font-size: 19px; font-stretch: 110%; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 44px; }
.outputs { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 8px 22px; }
.outputs li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.outputs li:last-child { border-bottom: 0; }
.outputs ul { list-style: none; margin: 0; padding: 0; }
.file-ico { width: 40px; height: 48px; border-radius: 4px 12px 4px 4px; background: var(--pla-2); display: grid; place-items: end center; padding-bottom: 6px; font-size: 10px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.file-ico.turf { background: var(--turf-soft); color: var(--turf); }
.file-ico.gold { background: var(--pei-soft); color: var(--pei-ink); }
.outputs strong { display: block; font-size: 15px; }
.outputs small { color: var(--ink-2); font-size: 13.5px; }
.outputs .size { font-size: 13px; color: var(--ink-3); }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.facts-list h3 { font-size: 17px; font-stretch: 110%; margin-bottom: 4px; }
.facts-list p { color: var(--ink-2); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; max-width: 860px; }
.plan { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); }
.plan h3 { font-size: 22px; font-stretch: 115%; }
.plan .price { color: var(--ink-2); margin: 6px 0 18px; font-size: 14.5px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; margin-top: 3px; color: var(--turf); }
.plan .btn { margin-top: auto; }

.coverage-band { display: flex; gap: 40px; align-items: baseline; flex-wrap: wrap; }
.coverage-band dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0; font-size: 15px; }
.coverage-band dt { font-weight: 700; }
.coverage-band dd { margin: 0; color: var(--ink-2); }

.site-footer { border-top: 1px solid var(--line-2); padding: 34px 0 48px; font-size: 13px; color: var(--ink-3); }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer p { max-width: 60em; }

/* ================================================================ studio */
.studio { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.studio-body { position: relative; flex: 1; min-height: 0; }
.studio-map { position: absolute; inset: 0; }
.map-search { position: absolute; top: 16px; left: 16px; z-index: 900; width: min(420px, calc(100% - 32px - var(--panel-w, 0px))); }
.map-search form { display: flex; align-items: center; gap: 4px; background: var(--paper); border-radius: var(--r-m); box-shadow: var(--float); padding: 4px 4px 4px 12px; }
.map-search svg { flex: none; color: var(--ink-3); }
.map-search input { border: 0; min-height: 42px; background: transparent; }
.map-search input:focus-visible { outline: none; }
.map-search form:focus-within { box-shadow: 0 0 0 3px rgba(184, 137, 43, .35), var(--float); }
.results { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--paper); border-radius: var(--r-m); box-shadow: var(--float); max-height: 50vh; overflow: auto; }
.results button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; padding: 9px 10px; border: 0; background: none; border-radius: var(--r-s); cursor: pointer; color: var(--ink); }
.results button small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results button:hover, .results button:focus-visible { background: var(--pla); outline: none; }
.map-layers { position: absolute; left: 16px; bottom: 28px; z-index: 900; box-shadow: var(--float); background: var(--paper); }
.map-layers.seg { background: var(--paper); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--float) !important; border-radius: var(--r-s) !important; overflow: hidden; }
.leaflet-container { font-family: var(--font); background: #dfe3e6; }
.studio .leaflet-top.leaflet-left { top: 70px; }
.studio .leaflet-bottom.leaflet-left { bottom: 66px; }
.studio .leaflet-bottom.leaflet-right { right: var(--panel-w, 0px); }

.frame-label { background: var(--ink); color: #fff; font-family: var(--font); font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 4px; border: 0; box-shadow: none; white-space: nowrap; text-align: center; line-height: 1.35; }
.frame-label small { display: block; font-weight: 400; opacity: .8; font-size: 11.5px; }
.frame-label::before { display: none; }
.field-handle { width: 16px !important; height: 16px !important; margin: -8px 0 0 -8px !important; border-radius: 4px; background: var(--turf); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); cursor: move; }

.panel {
  position: absolute; top: 16px; right: 16px; bottom: 16px; z-index: 950;
  width: 380px;
  background: var(--paper);
  border-radius: var(--r-l);
  box-shadow: var(--float);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-head { padding: 18px 20px 12px; }
.panel-head input { font-size: 20px; font-weight: 700; font-stretch: 112%; border: 1px solid transparent; padding: 4px 6px; margin-left: -7px; min-height: 0; background: transparent; }
.panel-head input:hover { border-color: var(--line); }
.panel-head input:focus-visible { outline: none; border-color: var(--pei); background: var(--paper); }
.panel-scroll { flex: 1; overflow-y: auto; padding: 0 20px 12px; }
.step { border-top: 1px solid var(--line-2); padding: 16px 0 18px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; font-stretch: 110%; margin-bottom: 12px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; font-stretch: 100%; flex: none; }
.step-title .opt { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 400; font-stretch: 100%; }
.readout { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.readout strong { color: var(--ink); font-size: 15px; }
.status { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); margin-top: 6px; flex: none; }
.status.good .dot { background: var(--turf); }
.status.warn .dot { background: var(--pei); }
.status.bad { color: var(--danger); }
.status.bad .dot { background: var(--danger); }
.link-btn { font: inherit; font-size: 13px; color: var(--pei-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.coords-box { margin-top: 12px; padding: 12px; background: var(--pla); border-radius: var(--r-m); }
.coords { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 10px; font-size: 13px; margin: 0 0 10px; }
.coords dt { color: var(--ink-3); }
.coords dd { margin: 0; font-weight: 600; }

.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fields button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  padding: 10px 4px 8px; border-radius: var(--r-m); border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer;
}
.fields button svg { width: 42px; height: 30px; }
.fields button:hover { border-color: var(--line); color: var(--ink); }
.fields button[aria-pressed=true] { border-color: var(--turf); background: var(--turf-soft); color: var(--ink); }
.fields button:disabled { opacity: .4; cursor: not-allowed; }
.more summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "– "; }

.panel-foot { border-top: 1px solid var(--line-2); padding: 14px 20px 18px; background: var(--paper); }
.panel-foot .summary { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.panel-foot .summary strong { color: var(--ink); }
.job { margin-bottom: 12px; }
.job-top { display: flex; justify-content: space-between; font-size: 13.5px; }
.job-top strong { font-size: 14px; }
.progress { height: 6px; background: var(--pla-2); border-radius: 3px; overflow: hidden; margin: 8px 0 6px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--pei); transition: width .6s ease; }

/* ================================================================ dialogs */
dialog { border: 0; border-radius: var(--r-l); padding: 0; max-width: min(420px, calc(100vw - 32px)); width: 100%; color: var(--ink); background: var(--paper); box-shadow: 0 20px 60px rgba(27, 36, 48, .3); }
dialog::backdrop { background: rgba(27, 36, 48, .5); }
/* password managers inject their icons and suggestion menus inside the form: let those show over the
   edge of the box instead of giving it scrollbars. Only a window too short for the box scrolls it. */
dialog { overflow: visible; }
@media (max-height: 620px) { dialog { overflow-x: hidden; overflow-y: auto; max-height: calc(100dvh - 24px); } }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 6px; }
.dlg-head h2 { font-size: 20px; font-stretch: 112%; }
.dlg-body { padding: 8px 22px 22px; }
.dlg-body > .btn { margin-top: 18px; }
.close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 4px 8px; border-radius: 50%; }
.close:hover { color: var(--ink); background: var(--pla); }
.tabs { display: flex; gap: 20px; margin: 4px 0 6px; border-bottom: 1px solid var(--line-2); }
.tabs button { background: none; border: 0; font: inherit; font-size: 14.5px; padding: 8px 0; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected=true] { color: var(--ink); border-color: var(--pei); font-weight: 600; }
.account-link { font: inherit; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; cursor: pointer; padding: 0; }
.account-link:hover { color: var(--ink); }

/* ================================================================ viewer */
.viewer { position: fixed; inset: 0; z-index: 2000; background: var(--pla); display: grid; grid-template-columns: 1fr 400px; }
.viewer-stage { position: relative; min-height: 0; background: radial-gradient(ellipse at 50% 35%, #fbfcfd, #dde2e7 75%); }
.viewer-stage canvas { display: block; width: 100%; height: 100%; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 14px; }
.viewer-tools { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); box-shadow: var(--float); background: var(--paper); }
.viewer-side { background: var(--paper); border-left: 1px solid var(--line-2); overflow-y: auto; display: flex; flex-direction: column; }
.viewer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 8px; }
.viewer-kicker { font-size: 13px; color: var(--turf); font-weight: 600; }
.viewer-head h2 { font-size: 24px; font-stretch: 112%; margin-top: 2px; }
.viewer-body { padding: 10px 22px 8px; }
.viewer-body .big { margin: 6px 0 8px; }
.files { list-style: none; padding: 0; margin: 0 0 6px; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.files .what strong { display: block; font-size: 14.5px; }
.files .what .size { font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-left: 4px; }
.files .what small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; margin: 18px 0 0; }
.facts dt { color: var(--ink-3); }
.facts .model-id { font-size: 12px; user-select: all; word-break: break-all; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.check-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.check-line svg { color: var(--turf); flex: none; margin-top: 2px; }
.credits { font-size: 11.5px; color: var(--ink-3); padding: 12px 22px 18px; margin-top: auto; }

/* ================================================================ content pages */
.page { max-width: 1120px; margin: 0 auto; padding: 36px 24px 72px; }
.page h1 { font-stretch: 118%; font-size: 34px; letter-spacing: -0.015em; }
.page .lede { color: var(--ink-2); margin: 8px 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tile { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; }
.tile .thumb { aspect-ratio: 1; background: var(--pla-2); display: grid; place-items: center; color: var(--ink-2); font-size: 13px; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile h3 { font-size: 16px; }
.tile .meta { font-size: 13px; color: var(--ink-2); }
.tile .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.badge { font-size: 12.5px; font-weight: 600; }
.badge.failed { color: var(--danger); }
.badge.running, .badge.queued { color: var(--pei-ink); }
.empty { padding: 64px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-l); color: var(--ink-2); display: grid; gap: 16px; justify-items: center; }
.card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 22px; max-width: 520px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 18px; font-stretch: 112%; margin-bottom: 6px; }
.row { display: flex; gap: 8px; align-items: center; }

/* ================================================================ responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: 28px; }
  .hero-stage { max-width: 640px; margin: 0 auto 40px !important; }
  .steps, .split { grid-template-columns: 1fr; gap: 28px; }
  .band { padding: 60px 0; }
}
@media (max-width: 760px) {
  .site-header { padding: 0 16px; gap: 16px; }
  .site-nav { display: none; }
  .account .btn.primary { display: none; }
  .wrap { padding: 0 16px; }
  .studio-body { display: flex; flex-direction: column; }
  .studio-map { position: relative; inset: auto; height: 46dvh; flex: none; }
  .map-search { top: 10px; left: 10px; width: calc(100% - 20px); }
  .map-layers { top: calc(46dvh - 58px); bottom: auto; left: auto; right: 10px; }
  .studio .leaflet-top.leaflet-left { top: 62px; }
  .studio .leaflet-bottom.leaflet-left { bottom: 70px; }
  .panel { position: relative; inset: auto; width: auto; flex: 1; min-height: 0; border-radius: var(--r-l) var(--r-l) 0 0; margin-top: -14px; box-shadow: 0 -6px 24px rgba(27,36,48,.12); }
  .viewer { grid-template-columns: 1fr; grid-template-rows: 48dvh 1fr; }
  .viewer-side { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.dlg-brand { display: flex; align-items: center; gap: 10px; }
.dlg-brand .logo-mark { width: 26px; height: 26px; }

/* homepage texts come from the admin settings: hide the built-in copy until they arrive */
.home:not(.site-ready) [data-text], .home:not(.site-ready) [data-popular] a { visibility: hidden; }

/* ---- admin ------------------------------------------------------------------------------ */
.admin table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin th { font-weight: 600; color: var(--ink-2); font-size: 13px; }
.admin td select { width: auto; padding: 4px 6px; min-height: 34px; }
.table-wrap { overflow-x: auto; }
.stats { display: flex; gap: 28px; margin: 0 0 22px; flex-wrap: wrap; }
.stats div strong { display: block; font-size: 24px; font-stretch: 115%; }
.stats div { color: var(--ink-2); font-size: 13px; }
.muted { color: var(--ink-3); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-tabs button { padding: 7px 14px; white-space: nowrap; }
.admin-sub { font-size: 18px; font-stretch: 112%; margin: 32px 0 12px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wide-card { max-width: none; }
.admin-preview { position: sticky; top: 84px; }
.preview-stage { position: relative; aspect-ratio: 1 / 0.85; background: var(--pla-2); border-radius: var(--r-l); overflow: hidden; }
.preview-stage canvas { width: 100%; height: 100%; display: block; }
.preview-stage .viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-3); font-size: 14px; }
.saved { font-size: 13.5px; color: var(--turf); font-weight: 600; }
.swatch { width: 48px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); cursor: pointer; }
.pop-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pop-row { display: grid; grid-template-columns: 1fr 1.2fr 76px auto; gap: 8px; align-items: center; }
.pop-tools { display: flex; }
.pop-tools .icon-btn { width: 32px; height: 32px; font-size: 15px; }
.icon-btn.danger:hover { color: var(--danger); }
.text-group { margin: 0 0 18px; }
.text-group + .text-group { margin-top: 0; }
.text-group label.field > span .account-link { font-size: 12.5px; }
.text-group label.changed input, .text-group label.changed textarea { border-color: var(--pei); box-shadow: 0 0 0 1px var(--pei); }
.save-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--float); }
.save-bar [data-dirty] { margin: 0 auto 0 0; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-preview { position: static; order: -1; }
}
@media (max-width: 560px) {
  .pop-row { grid-template-columns: 1fr 1fr; }
  .pop-row [data-k=area_km2] { grid-column: 1; }
}
.viewer-admin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 22px 12px; }

/* ---- closed beta pages ---- */
.invite-page { display: grid; place-items: start center; padding-top: 56px; }
.invite-card { width: 100%; max-width: 460px; padding: 30px; }
.invite-card h1 { font-size: 26px; font-stretch: 115%; letter-spacing: -0.01em; }
.invite-card .lede { margin: 10px 0 18px; }
.invite-ok { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--turf); color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--pei); color: #1b1407; font-size: 11.5px; font-weight: 700; }
.beta-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.beta-toggle h2 { margin: 0; }
.status-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--pla); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.status-pill.pending { background: #f6edd9; border-color: #e6d3a6; color: #7a5a17; }
.status-pill.accepted { background: #e3f1e7; border-color: #bfdcc8; color: #23603a; }
.status-pill.declined { background: #f8e4e2; border-color: #eac3bf; color: #8a2a22; }
.invite-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
#invite-filter button { white-space: nowrap; padding: 7px 12px; }
#invite-filter { flex-wrap: wrap; }

.turnstile-slot:not(:empty) { margin-top: 14px; }
.turnstile-slot iframe { max-width: 100%; }
