:root {
  color-scheme: light;
  --page-bg: #474747;
  --canvas: #cfcfcd;
  --surface: rgba(231, 231, 228, .8);
  --surface-alt: rgba(200, 200, 198, .48);
  --ink: #080808;
  --muted: #5f5f5c;
  --line: rgba(8, 8, 8, .72);
  --line-soft: rgba(8, 8, 8, .17);
  --danger: #9d1616;
  --radius-card: 16px;
  --radius-control: 10px;
  --shadow-card: 0 14px 34px rgba(0, 0, 0, .10), 0 2px 7px rgba(0, 0, 0, .07);
  --shadow-control: 0 4px 12px rgba(0, 0, 0, .07);
  --canvas-max: 1320px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html {
  min-width: 300px;
  background: var(--canvas);
  scrollbar-width: thin;
  scrollbar-color: #5b5b58 var(--canvas);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page-bg);
  font-family: var(--sans);
  font-weight: 500;
}

*::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
*::-webkit-scrollbar-track { border: 0; background: transparent; }
*::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #5b5b58;
}
*::-webkit-scrollbar-thumb:hover { background: #242424; }
*::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(132deg, transparent 0 45%, rgba(255,255,255,.12) 45.1% 59%, transparent 59.1%),
    radial-gradient(circle at 14% 25%, #111 0 1px, transparent 2px),
    radial-gradient(circle at 84% 78%, #111 0 1px, transparent 2px);
  background-size: auto, 380px 380px, 520px 520px;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.ambient {
  position: fixed;
  width: 370px;
  height: 370px;
  border-radius: 50%;
  filter: blur(145px);
  pointer-events: none;
}
.ambient-one { top: -120px; right: 5%; background: #fff; opacity: .09; }
.ambient-two { bottom: -200px; left: 7%; background: #000; opacity: .07; }

.shell {
  position: relative;
  display: grid;
  place-items: safe center;
  width: min(var(--canvas-max), 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-inline: clamp(20px, 3vw, 46px);
  overflow: hidden;
  isolation: isolate;
  border-inline: 1px solid #171717;
  background:
    linear-gradient(145deg, rgba(255,255,255,.09) 0 36%, transparent 36.2%),
    var(--canvas);
}
.shell > section { position: relative; z-index: 2; }

.construct { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.construct i { position: absolute; display: block; }
.construct i:nth-child(1) { width: 44%; height: 30%; left: 14%; top: 6%; background: rgba(255,255,255,.15); clip-path: polygon(34% 0, 100% 0, 58% 100%, 0 68%); }
.construct i:nth-child(2) { width: 37%; height: 33%; right: -8%; bottom: 4%; background: rgba(45,45,45,.055); clip-path: polygon(44% 0, 100% 34%, 71% 100%, 0 75%); }
.construct i:nth-child(3) { width: 1px; height: 56%; left: 3.5%; top: 22%; background: #171717; opacity: .72; }
.construct i:nth-child(4) { width: 1px; height: 52%; right: 3.5%; top: 17%; background: #171717; opacity: .72; }
.construct i:nth-child(5) { width: 7px; height: 7px; left: 12%; top: 13%; border-radius: 50%; background: #111; box-shadow: 18vw 80px 0 -2px #777, 53vw -26px 0 -1px #111, 61vw 430px 0 -2px #555; }
.construct i:nth-child(6) { width: 28%; height: 1px; left: -40px; bottom: 18%; background: #777; transform: rotate(-17deg); transform-origin: left; }
.construct i:nth-child(7) { width: 18%; height: 96px; right: 6%; top: 29%; border-block: 1px solid rgba(0,0,0,.28); transform: skewY(-10deg); opacity: .6; }

.card {
  background: var(--surface);
  border: 1px solid rgba(8, 8, 8, .24);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(7px) grayscale(1);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  color: #e3e3e0;
  background: var(--ink);
  box-shadow: 7px 7px 0 rgba(0,0,0,.13);
  font: 700 23px/1 var(--serif);
}
.brand-mark.small { width: 39px; height: 39px; font-size: 17px; }

.eyebrow {
  margin: 0;
  color: #656563;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--ink); }
.muted { color: var(--muted); line-height: 1.6; }
code { padding: 3px 7px; color: var(--ink); background: rgba(0,0,0,.08); border-bottom: 1px solid var(--ink); overflow-wrap: anywhere; }

label { display: block; margin-bottom: 9px; color: #242424; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: rgba(238,238,235,.58);
  border: 1px solid rgba(8, 8, 8, .2);
  border-radius: var(--radius-control);
  outline: 0;
  box-shadow: var(--shadow-control);
}
input:focus, select:focus, textarea:focus { border-color: rgba(8,8,8,.58); box-shadow: 0 0 0 3px rgba(0,0,0,.07), var(--shadow-control); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

select {
  appearance: none;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 8px;
}

input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }

input[type="range"] { appearance: none; height: 22px; padding: 0; border: 0; background: transparent; box-shadow: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(90deg, #141414, #b8b8b5); }
input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5.5px; appearance: none; border: 2px solid #f1f1ee; border-radius: 50%; background: #111; box-shadow: 0 2px 6px rgba(0,0,0,.28); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 99px; background: #aaa; }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 99px; background: #111; }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid #f1f1ee; border-radius: 50%; background: #111; box-shadow: 0 2px 6px rgba(0,0,0,.28); }

.switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: absolute; inset: 0; border: 1px solid rgba(8,8,8,.32); border-radius: 99px; background: #b8b8b5; box-shadow: inset 0 1px 3px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.08); transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: #f1f1ee; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .32s cubic-bezier(.22,1,.36,1), background-color .24s ease, box-shadow .24s ease; }
.switch:hover span::after { box-shadow: 0 2px 6px rgba(0,0,0,.27); }
.switch:active span::after { transform: scale(.88); }
.switch input:checked + span { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 1px 3px rgba(0,0,0,.18), 0 3px 9px rgba(0,0,0,.16); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch:active input:checked + span::after { transform: translateX(18px) scale(.88); }

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100% - 48px));
  padding: 12px 15px;
  color: #eee;
  background: var(--ink);
  border: 1px solid #000;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.error { min-height: 19px; color: var(--danger); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
