:root {
  --bg: #f5f5f7;
  --nav-height: 52px;
  --page-gutter: clamp(20px, 5vw, 80px);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.08);
  --blue: #2997ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  margin: 0;
  background: #000;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.45;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231d1d1f' stroke-width='1.4' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
:focus-visible { outline: 2px solid #1d1d1f; outline-offset: 2px; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  height: var(--nav-height); padding: 10px var(--page-gutter);
  background: rgba(0,0,0,.55);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 640; letter-spacing: -.02em; flex: none; }
.brand-ico { width: 20px; height: 20px; flex: none; display: block; }
.nav nav { display: flex; align-items: center; min-width: 0; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a { flex: none; }
.nav a, .nav button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #d2d2d7; font-size: 13px;
}
.nav a:hover, .nav a.on, .nav button:hover, .nav button.on { color: #fff; }
.eyebrow {
  margin: 0 0 12px; font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: #a1a1a6;
}
.lede { max-width: 720px; margin: 8px 0 0; color: #a1a1a6; font-size: 14px; font-weight: 400; }
.mast { padding: calc(var(--nav-height) + 32px) var(--page-gutter) 32px; }
.mast-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mast h1 {
  margin: 0; font-size: clamp(26px, 2vw, 32px); line-height: 1.15;
  letter-spacing: -.03em; font-weight: 640;
}
.pill-link {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 0; border: 1px solid rgba(255,255,255,.32); font-size: 14px;
}
.pill-link:hover { background: #fff; color: #000; }
.sheet {
  background: var(--bg); color: var(--ink); color-scheme: light;
  border-radius: 0; min-height: calc(100dvh - 210px); padding: 24px var(--page-gutter) 48px;
}
.card {
  background: #fff; border-radius: 0; padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.045);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { display: block; line-height: 1.2; font-size: 12px; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 38px; border-radius: 0; border: 1px solid #d2d2d7;
  background-color: #fff; color: var(--ink); padding: 0 12px;
}
.field select { padding-right: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border: 0; border-radius: 0;
  background: #1d1d1f; color: #fff; cursor: pointer; white-space: nowrap;
}
.btn.ghost { background: #fff; color: #1d1d1f; border: 1px solid #d2d2d7; }
.btn.warn { background: #fff; color: #9f1d14; border: 1px solid #f0c8c4; }
.btn:disabled { opacity: .4; cursor: default; }
.err { min-height: 22px; margin: 10px 2px 0; color: #b42318; font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translateX(-50%) translateY(10px);
  background: rgba(28,28,30,.94); color: #fff;
  padding: 12px 18px; border-radius: 0; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: #7a1f16; }
@media (max-width: 720px) {
  :root { --page-gutter: 18px; }
  .nav { gap: 20px; padding: 10px var(--page-gutter); }
  .nav nav { gap: 16px; }
  .mast, .sheet { padding-left: 18px; padding-right: 18px; }
  .mast-head { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 20px;
  text-align: center;
  color: #6e6e73;
  background: #000;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.foot a:hover { color: #d2d2d7; }
