@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("lato-latin-400-normal-BEhtfm5r.woff2") format("woff2");
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("lato-latin-700-normal-BUGMgin4.woff2") format("woff2");
}

:root {
  --bg: #fff;
  --fg: #1a1a1a;
  --muted: #3a3a3a;
  --line: #e6e6e6;
  --primary: #af2f32;
  --on: #fff;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
a { color: var(--primary); }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--primary);
  color: var(--on);
  padding: 0.5rem 0.8rem;
}
.skip:focus { top: 0.5rem; z-index: 5; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--primary); font-weight: 700; font-size: 1.25rem; line-height: 1.15; text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.brand img { height: 2rem; width: auto; max-width: 9rem; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem; flex: 1 1 auto; min-width: 16rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.7rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
nav a[aria-current="page"] { color: var(--fg); font-weight: 700; box-shadow: inset 0 -2px 0 var(--primary); }
.who { margin: 0; display: flex; flex-wrap: nowrap; gap: 0.75rem; align-items: center; color: var(--muted); font-size: 0.95rem; white-space: nowrap; flex: 0 0 auto; }
.who a { white-space: nowrap; }
.role { border: 1px solid var(--line); padding: 0.1rem 0.45rem; white-space: nowrap; }
main { padding: 2rem 0 4rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.4rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.8rem; }
.lede { color: var(--muted); max-width: 42rem; margin-top: 0; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.stats li, .card, .panel { border: 1px solid var(--line); padding: 0.9rem 1rem; background: var(--bg); }
.stats strong { display: block; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 0.92rem; }
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: 0.4rem 1rem; background: var(--primary); color: var(--on); border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.ghost, button.ghost { background: var(--bg); color: var(--fg); border: 1px solid var(--line); font-weight: 400; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.flash { padding: 0.7rem 0.9rem; border: 1px solid var(--line); }
.flash.ok { border-color: #0f6b4c; }
.flash.fel { border-color: var(--primary); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.list a { font-weight: 700; }
.meta { color: var(--muted); margin: 0.15rem 0 0; font-size: 0.95rem; }
.bars { display: grid; gap: 0.55rem; }
.meter { display: grid; grid-template-columns: 9rem 1fr 2rem; gap: 0.6rem; align-items: center; }
.track { background: #f3f3f3; height: 0.7rem; }
.track span { display: block; height: 100%; background: var(--primary); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 1rem 0; }
.field { display: grid; gap: 0.25rem; min-width: min(100%, 16rem); flex: 1; }
.field span, .check span { font-size: 0.92rem; }
input, select, textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid #bdbdbd;
  min-height: 2.75rem; padding: 0.45rem 0.6rem; width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: 0.5rem; align-items: center; min-height: 2.75rem; }
.check input { width: 1.15rem; height: 1.15rem; min-height: 0; }
.grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: end; }
input::placeholder, textarea::placeholder { color: #8a8a8a; opacity: 1; }
.stack { display: grid; gap: 0.8rem; }
fieldset { border: 1px solid var(--line); margin: 0 0 1rem; padding: 1rem; }
legend { font-weight: 700; padding: 0 0.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.rail { display: flex; gap: 0; list-style: none; padding: 0; margin: 1rem 0; overflow: auto; }
.rail li { flex: 1 0 7.5rem; border-top: 3px solid var(--line); padding-top: 0.4rem; color: var(--muted); font-size: 0.85rem; }
.rail li.done { border-color: var(--primary); color: var(--fg); }
.rail li.now { border-color: var(--primary); font-weight: 700; color: var(--fg); }
.split { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
.history { display: grid; gap: 0.7rem; }
.history article { border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.history p { margin: 0.15rem 0; }
.hash { word-break: break-all; font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--muted); }
.tag { display: inline-block; border: 1px solid var(--line); padding: 0 0.35rem; font-size: 0.85rem; margin-right: 0.25rem; }
.tag.warn { border-color: var(--primary); color: var(--primary); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.55rem 0.4rem; vertical-align: top; }
.note { color: var(--muted); font-size: 0.95rem; }
.appear { display: grid; gap: 0; padding: 1rem; }
.appear h2 { margin: 0; font-size: 1.25rem; }
.appear > .note { margin: 0.25rem 0 0; font-size: 0.875rem; }
.appear form.stack { margin-top: 1rem; gap: 1rem; }
.appear .field .note { margin: 0; font-size: 0.875rem; }
.appear .field { min-width: 0; gap: 0.375rem; }
.appear .field > span { font-size: 0.875rem; font-weight: 500; }
.palette { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.palette button,
.appear button.ghost {
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #e6e6e6;
  border-radius: 0.25rem;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 400;
  box-shadow: none;
}
.palette button { gap: 0.5rem; }
.swatch { width: 1rem; height: 1rem; display: inline-block; flex: none; }
.colors { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hex { display: flex; align-items: center; gap: 0.5rem; }
.appear .hex input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 3.5rem;
  height: 2.75rem;
  min-height: 2.75rem;
  flex: 0 0 3.5rem;
  padding: 0.25rem;
  border: 1px solid #e6e6e6;
  border-radius: 0.25rem;
  background: #fff;
  cursor: pointer;
}
.appear .hex input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.appear .hex input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 0.125rem; }
.appear .hex input[type="text"] {
  height: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid #e6e6e6;
  border-radius: 0.25rem;
  padding: 0 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  background: #fff;
}
.appear input[type="file"] {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
}
.appear input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.875rem;
  height: 2.75rem;
  min-height: 2.75rem;
  margin-right: 0.75rem;
  border: 1px solid #e6e6e6;
  border-radius: 0.25rem;
  background: #fff;
  color: #1a1a1a;
  padding: 0 0.75rem;
  cursor: pointer;
}
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.logo-row img {
  height: 3rem; width: auto; max-width: 10rem; object-fit: contain;
  border: 1px solid #e6e6e6; border-radius: 0.25rem; padding: 0.25rem; background: #fff;
}
.logo-row .note { margin: 0; font-size: 0.875rem; }
.gate { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.gate-side { position: relative; display: flex; align-items: center; padding: 3rem 2.5rem; overflow: hidden; }
.gate-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.5)); }
.gate-copy { position: relative; z-index: 1; max-width: 28rem; }
.gate-title { margin: 0; font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
.gate-lead, .gate-flow { white-space: pre-wrap; }
.gate-lead { margin: 1.5rem 0 0; font-size: 1rem; line-height: 1.6; }
.gate-flow { margin: 2rem 0 0; font-size: 0.875rem; line-height: 1.55; }
.gate-form { display: flex; align-items: center; padding: 3rem 1.5rem; background: #fff; color: #1a1a1a; }
.gate-box { width: min(24rem, 100%); margin-inline: auto; }
.gate-box h1 { font-size: 1.5rem; }
.gate-box .field span, .gate-box input, .gate-box button { color: #1a1a1a; }
.gate-box input { background: #fff; border-color: #e6e6e6; border-radius: 0.25rem; }
.gate-box button[type="submit"] { background: var(--primary, #af2f32); color: #fff; border-radius: 0.25rem; }
@media (max-width: 800px) {
  .gate { grid-template-columns: 1fr; }
  .gate-side { min-height: 18rem; align-items: flex-end; }
  .split { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 1fr; }
  .colors { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
@media print {
  .top, .actions, .skip, .filters { display: none !important; }
  main { padding: 0; }
}
