@font-face {
  font-family: Inter;
  src: url(../fonts/inter-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(../fonts/inter-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(../fonts/inter-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url(../fonts/tight-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url(../fonts/tight-800.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(../fonts/mono-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(../fonts/mono-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --border: #e1e3e7;
  --foreground: #15171b;
  --muted: #6b7078;
  --accent: #89cff0;
  --accent-hover: #a3dbf5;
  --on-accent: #0b2233;
  --panel-border: 2px solid #5aaee0;
  --page-bg:
    radial-gradient(70rem 45rem at 100% -10%, rgb(137 207 240 / 0.2), transparent 60%),
    radial-gradient(50rem 35rem at -10% 110%, rgb(137 207 240 / 0.1), transparent 60%), #f7f7f8;
  --panel-bg: radial-gradient(36rem 22rem at 100% 0%, rgb(137 207 240 / 0.14), transparent 70%), rgb(255 255 255 / 0.85);
  --island: rgb(255 255 255 / 0.78);
  --island-line: rgb(21 23 27 / 0.12);
}
[data-theme="dark"] {
  --background: #0b0e12;
  --surface: #13171d;
  --surface-2: #1b2028;
  --border: #262d37;
  --foreground: #ececee;
  --muted: #9aa3ae;
  --panel-border: 1px solid #262d37;
  --page-bg: #0b0e12;
  --panel-bg: #13171d;
  --island: rgb(22 23 26 / 0.72);
  --island-line: rgb(255 255 255 / 0.1);
}

* {
  box-sizing: border-box;
}
html {
  font-size: 109.375%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid #6b7280;
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--surface);
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0.65rem;
  font:
    600 0.95rem Inter,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    filter 0.15s;
}
.btn.discord {
  background: #5865f2;
  color: #fff;
}
.btn.discord:hover {
  filter: brightness(1.1);
}
.btn.accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn.accent:hover {
  background: var(--accent-hover);
}
.btn.white {
  background: #fff;
  color: #15171b;
}

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.85rem;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 25%, #5aaee0 0%, #2c3038 50%, #111316 100%);
}
.icon-tile img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.icon-tile.small {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
}
.icon-tile.small img {
  width: 78%;
  height: 78%;
}
.icon-tile.num {
  font:
    800 1.45rem "Inter Tight",
    sans-serif;
}

.panel {
  border: var(--panel-border);
  border-radius: 1.2rem;
  background: var(--panel-bg);
}

.nav {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  max-width: calc(100vw - 1.6rem);
  padding: 0.4rem 0.25rem 0.4rem 1rem;
  border: 1px solid var(--island-line);
  border-radius: 999px;
  background: var(--island);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 34px -18px rgb(0 0 0 / 0.7);
}
.nav .btn {
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
}
.nav .icon-tile.small {
  border-radius: 50%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font:
    800 1rem "Inter Tight",
    sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 0.1rem;
}
.nav-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.86rem;
}
.nav-links a:hover {
  background: var(--surface-2);
  color: var(--foreground);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-actions:not(:has(*)) {
  display: none;
}
.theme {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.35s;
}
.theme:hover {
  background: var(--surface-2);
  color: var(--foreground);
  transform: rotate(20deg);
}
.theme svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme .moon {
  display: none;
}
[data-theme="light"] .theme .sun {
  display: none;
}
[data-theme="light"] .theme .moon {
  display: block;
}

.page {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}
section {
  margin-top: 3.4rem;
}
section.stats {
  margin-top: 1.5rem;
}

.banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: 1.6rem;
  color: #fff;
  background: radial-gradient(120% 160% at 15% 50%, #5aaee0 0%, #2c3038 45%, #111316 100%);
}
.banner-logo {
  width: 4.4rem;
  height: 4.4rem;
  flex: none;
  filter: drop-shadow(0 5px 12px rgb(0 0 0 / 0.4));
}
.banner-text {
  flex: 1;
  min-width: 0;
}
.banner h1 {
  font:
    800 2.35rem/1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.025em;
}
.banner p {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.6);
  font-size: 1.05rem;
}
.join {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 1rem;
  align-items: center;
  flex: none;
  padding: 0.7rem 0.8rem 0.7rem 1.1rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
}
.join span {
  grid-column: 1;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.6);
}
.join strong {
  grid-column: 1;
  font:
    800 1.9rem/1.05 "Inter Tight",
    sans-serif;
}
.join .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 5rem;
}

.sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 35rem;
  overflow: hidden;
  padding: 2rem 1.5rem 0;
  border-radius: 1.6rem;
  color: #fff;
  text-align: center;
  background: radial-gradient(90% 70% at 50% 35%, #5aaee0 0%, #2c3038 45%, #111316 100%);
}
.side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
  background: radial-gradient(45% 40% at 50% 55%, rgb(255 255 255 / 0.14), transparent 70%);
  transition: opacity 0.5s;
}
.side:hover::before {
  opacity: 0.9;
}
.side-tag {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(255 255 255 / 0.7);
}
.side h3 {
  position: relative;
  z-index: -1;
  margin-top: 0.25rem;
  font:
    800 2.8rem/1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.025em;
}
.side img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 80%;
  max-width: none;
  transform: translateX(-50%);
  transform-origin: bottom center;
  filter: drop-shadow(0 38px 50px rgb(0 0 0 / 0.5));
  transition: transform 0.5s;
  pointer-events: none;
}
.side img.wide {
  height: 76%;
}
.side:hover img {
  transform: translateX(-50%) scale(1.03);
}
.side-foot {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.4rem 1.5rem 1.5rem;
  background: linear-gradient(to top, #0b0c0e, rgb(11 12 14 / 0.7) 55%, transparent);
}
.side-foot p {
  max-width: 21rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.85);
}
.side-foot .btn {
  height: 2.8rem;
  margin-top: 1rem;
  padding: 0 2rem;
  font-size: 1.05rem;
}

.stats {
  display: flex;
  gap: 1rem;
}
.stats .panel {
  flex: 1;
  padding: 1.1rem 1.4rem;
}
.stats .panel[hidden] {
  display: none;
}
.stats strong {
  display: block;
  font:
    800 2rem/1.1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.02em;
}
.stats span {
  font-size: 0.88rem;
  color: var(--muted);
}

.title {
  font:
    800 2.35rem/1.05 "Inter Tight",
    sans-serif;
  letter-spacing: -0.025em;
}
.sub {
  margin-top: 0.5rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}
.steps h3 {
  margin-top: 1rem;
  font:
    700 1.25rem/1.2 "Inter Tight",
    sans-serif;
}
.steps p {
  flex: 1;
  margin: 0.5rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.depts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.depts li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.15s;
}
.depts img {
  width: 3.6rem;
  height: 3.6rem;
  flex: none;
  object-fit: contain;
}
.depts h3 {
  font:
    700 1.08rem/1.2 "Inter Tight",
    sans-serif;
}
.depts span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.features li {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
}
.features h3 {
  font:
    700 1.1rem/1.2 "Inter Tight",
    sans-serif;
}
.features p {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer {
  padding: 3rem max(1rem, calc((100% - 70rem) / 2)) 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem 4rem;
}
.footer-brand {
  max-width: 22rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--foreground);
  text-decoration: none;
}
.footer-logo img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}
.footer-logo b {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-brand p {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4.5rem;
}
.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 8rem;
}
.footer-cols h4 {
  margin: 0 0 0.25rem;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
}
.footer-cols a {
  font-size: 0.95rem;
  color: var(--foreground);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.footer-cols a:hover,
.footer-cols a:focus-visible {
  opacity: 1;
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-powered {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}
.footer-powered:hover,
.footer-powered:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom small {
  font-size: 0.75rem;
}
@media (max-width: 760px) {
  .footer {
    padding-top: 2.2rem;
  }
  .footer-cols {
    gap: 1.8rem 2.5rem;
  }
}

.page {
  padding-top: 0;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100vw;
  min-height: min(88vh, 46rem);
  margin-left: calc(50% - 50vw);
  padding: 6.5rem max(1rem, calc((100vw - 68rem) / 2)) 8.5rem;
  color: #fff;
  background: #0b0e12;
}
.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 100% 50%;
  filter: blur(1.5px);
  animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to top, var(--background) 0%, transparent 30%), linear-gradient(to bottom, rgb(11 14 18 / 0.55) 0%, transparent 22%),
    linear-gradient(to right, rgb(11 14 18 / 0.94) 0%, rgb(11 14 18 / 0.82) 34%, rgb(11 14 18 / 0.28) 62%, rgb(11 14 18 / 0.1) 100%);
}
.hero-logo {
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 0.45));
}
.hero h1 {
  max-width: 12ch;
  margin-top: 1rem;
  font:
    800 clamp(2.9rem, 6.6vw, 5rem)/1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.03em;
}
.hero-text {
  max-width: 30rem;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgb(255 255 255 / 0.78);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
section.stats {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}
section.stats .panel {
  background: var(--surface);
}
.btn.big {
  height: 3rem;
  padding: 0 1.7rem;
  font-size: 1.02rem;
}
.btn.ghost {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.btn.ghost:hover {
  background: rgb(255 255 255 / 0.2);
}
.hero .join {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border-radius: 0.9rem;
}
.hero .join span {
  font-size: 0.85rem;
}
.hero .join strong {
  font-size: 1.25rem;
}
.hero .join .btn {
  height: 2.1rem;
  min-width: 4.4rem;
  padding: 0 0.9rem;
  font-size: 0.85rem;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.07);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.intro {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-logo.intro {
  animation-name: pop;
}
.hero h1.intro {
  animation-delay: 0.1s;
}
.hero-text.intro {
  animation-delay: 0.2s;
}
.hero-actions.intro {
  animation-delay: 0.3s;
}
.join.intro {
  animation-delay: 0.4s;
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease var(--delay, 0s),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .side.reveal img {
  transform: translateX(-50%) translateY(30px) scale(0.97);
}
.js .side.reveal.in img {
  transform: translateX(-50%);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.js .side.reveal.in:hover img {
  transform: translateX(-50%) scale(1.04);
  transition: transform 0.4s;
}
.btn {
  transition:
    background-color 0.15s,
    filter 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.6);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.js .panel.reveal.in {
  transition:
    transform 0.22s ease,
    border-color 0.22s,
    box-shadow 0.22s;
}
.js .panel.reveal.in:hover {
  transform: translateY(-4px);
  border-color: #5aaee0;
  box-shadow: 0 18px 34px -22px rgb(0 0 0 / 0.7);
}
.panel img,
.panel .icon-tile {
  transition: transform 0.25s ease;
}
.panel:hover img,
.panel:hover .icon-tile {
  transform: scale(1.06);
}
.panel:hover .icon-tile img {
  transform: none;
}
.nav-links a {
  transition:
    background-color 0.15s,
    color 0.15s;
}

@media (min-width: 901px) {
  .hero-photo {
    top: 0;
    bottom: 0;
    height: auto;
    aspect-ratio: 1919 / 780;
    margin: auto 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  }
  .hero::after {
    background:
      linear-gradient(to top, var(--background) 0%, transparent 16%),
      linear-gradient(
        to right,
        rgb(11 14 18 / 0.92) 0%,
        rgb(11 14 18 / 0.84) calc((100vw - 68rem) / 2 + 20rem),
        transparent calc((100vw - 68rem) / 2 + 32rem)
      );
  }
}

.hero h1 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
  line-height: 1.04;
}
.hero-text {
  max-width: 27rem;
  margin-top: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.55;
}
.hero-actions {
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 2.75rem;
  padding: 0 1.05rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font:
    600 0.9rem Inter,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.hero-btn:hover {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(255 255 255 / 0.34);
  transform: translateY(-1px);
}
.hero-btn:active {
  transform: none;
}
.hero-btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.hero-btn.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}
.hero-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}
.hero-btn.code span {
  color: rgb(255 255 255 / 0.62);
  font-weight: 500;
}
.hero-btn.code strong {
  font:
    700 0.95rem "JetBrains Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.05em;
}
.hero-btn.code em {
  padding-left: 0.6rem;
  border-left: 1px solid rgb(255 255 255 / 0.22);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.8rem;
  font-style: normal;
}
@media (max-width: 620px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .hero-btn {
    width: 100%;
  }
}

.hero {
  align-items: center;
  justify-content: center;
  min-height: max(46rem, 100vh);
  padding: 5rem 1rem 8rem;
  text-align: center;
}
.hero-text {
  max-width: 32rem;
}
.hero-actions {
  justify-content: center;
}
.hero .hero-photo {
  top: 0;
  bottom: 0;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  filter: none;
  object-position: 60% 50%;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero::after,
.hero:after {
  background:
    linear-gradient(to top, var(--background) 0%, rgb(11 14 18 / 0.85) 18%, transparent 55%),
    linear-gradient(to bottom, var(--background) 0%, rgb(11 14 18 / 0.6) 14%, transparent 34%),
    linear-gradient(to right, rgb(11 14 18 / 0.75) 0%, transparent 22%, transparent 78%, rgb(11 14 18 / 0.75) 100%),
    radial-gradient(44rem 19rem at 50% 47%, rgb(11 14 18 / 0.62), transparent 100%), rgb(11 14 18 / 0.25);
}
@media (max-width: 620px) {
  .hero {
    min-height: max(40rem, 100svh);
  }
}

#start {
  text-align: center;
}
#start .steps {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2.6rem;
}
#start .steps .step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.6rem;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(1.45rem - 1px);
  left: calc(50% + 2rem);
  width: calc(100% - 4rem);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent), var(--border));
  transform: scaleX(1);
  transform-origin: left;
}
.js .step.reveal:not(:last-child)::after {
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--delay, 0s) + 0.25s);
}
.js .step.reveal.in:not(:last-child)::after {
  transform: scaleX(1);
}

.step-num {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  color: var(--foreground);
  background: rgb(255 255 255 / 0.025);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.16);
  font:
    700 1.05rem "JetBrains Mono",
    ui-monospace,
    monospace;
}
[data-theme="light"] .step-num {
  background: rgb(255 255 255 / 0.35);
  box-shadow: inset 0 0 0 1px rgb(21 23 27 / 0.18);
}
.step h3 {
  margin-top: 1.1rem;
  font:
    700 1.3rem/1.2 "Inter Tight",
    sans-serif;
  letter-spacing: -0.01em;
}
.steps .step p {
  flex: 1;
  max-width: 18.5rem;
  margin: 0.55rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.step-link {
  display: inline-flex;
  align-items: center;
  height: 2.3rem;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.step-link:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  #start .steps {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .step:not(:last-child)::after {
    top: calc(100% - 0.6rem);
    left: 50%;
    width: 2px;
    height: 2.4rem;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    transform-origin: top;
  }
  .js .step.reveal:not(:last-child)::after {
    transform: scaleY(0);
  }
  .js .step.reveal.in:not(:last-child)::after {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .step.reveal:not(:last-child)::after {
    transform: none;
    transition: none;
  }
}

.wiz-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 7rem 1rem 4rem;
}
.wiz-head {
  text-align: center;
}
.wiz-head h1 {
  font:
    800 clamp(2rem, 5vw, 3.05rem)/1.05 "Inter Tight",
    sans-serif;
  letter-spacing: -0.03em;
}
.wiz-head p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.wiz-loading {
  padding: 4rem 0;
  color: var(--muted);
  text-align: center;
}
.apply-list {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 2rem auto 0;
}
.apply-pick {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--border));
  border-radius: 1rem;
  background: var(--surface);
  color: var(--foreground);
  text-decoration: none;
  transition:
    background-color 0.15s,
    transform 0.15s;
}
.apply-pick:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}
.apply-pick img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.apply-pick span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.apply-pick small {
  color: var(--muted);
  font-size: 0.82rem;
}
.dept-empty {
  padding: 3rem 0;
  color: var(--muted);
  text-align: center;
}
.wiz-steps {
  display: flex;
  margin-top: 2.4rem;
  animation-delay: 0.08s;
}
.wiz-steps li {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.25s;
}
.wiz-steps li:not(:last-child)::before,
.wiz-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: calc(50% + 1.45rem);
  width: calc(100% - 2.9rem);
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}
.wiz-steps li:not(:last-child)::after {
  background: var(--foreground);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wiz-steps li.done::after {
  transform: scaleX(1);
}
.wiz-dot {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--border);
  font:
    700 0.86rem "JetBrains Mono",
    ui-monospace,
    monospace;
  transition:
    background-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.wiz-steps li.current,
.wiz-steps li.done {
  color: var(--foreground);
}
.wiz-steps li.current .wiz-dot {
  color: var(--foreground);
  box-shadow: inset 0 0 0 2px var(--foreground);
}
.wiz-steps li.done .wiz-dot {
  background: var(--foreground);
  color: var(--background);
  font-size: 0;
  box-shadow: none;
}
.wiz-steps li.done .wiz-dot::before {
  content: "\2713";
  font-size: 0.95rem;
}
.wiz-card {
  margin-top: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  background: var(--surface);
  animation-delay: 0.16s;
}
.wiz-panel {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  animation: wiz-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wiz-panel[hidden] {
  display: none;
}
@keyframes wiz-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.wiz-panel h2 {
  font:
    700 1.55rem/1.15 "Inter Tight",
    sans-serif;
  letter-spacing: -0.02em;
}
.wiz-panel h2:focus {
  outline: none;
}
.wiz-intro {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.wiz-reqs {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.wiz-reqs li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  line-height: 1.5;
}
.wiz-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.wiz-check:hover {
  border-color: var(--accent);
}
.wiz-check:has(input:checked) {
  border-color: var(--foreground);
  background: var(--surface-2);
}
.wiz-check input {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin: 0;
  accent-color: var(--foreground);
  cursor: pointer;
}
.wiz-q {
  margin-top: 1.5rem;
}
.wiz-q label {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}
.wiz-q textarea {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: var(--surface-2);
  color: var(--foreground);
  font:
    400 0.95rem/1.55 Inter,
    sans-serif;
  resize: vertical;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.wiz-q textarea:focus {
  outline: none;
  border-color: var(--muted);
  box-shadow: 0 0 0 3px rgb(107 112 120 / 0.25);
}
.wiz-q textarea[aria-invalid] {
  border-color: var(--danger);
}
.wiz-meta {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.35rem;
}
.wiz-count {
  flex: none;
  color: var(--muted);
  font:
    500 0.72rem "JetBrains Mono",
    ui-monospace,
    monospace;
}
.wiz-error {
  margin-right: auto;
  color: var(--danger);
  font-size: 0.84rem;
}
.wiz-check + .wiz-error {
  margin-top: 0.5rem;
}
.wiz-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem clamp(1.4rem, 4vw, 2.2rem);
  border-top: 1px solid var(--border);
}
.wiz-actions p {
  flex: 1;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}
.wiz-actions #next {
  margin-left: auto;
}
.wiz-actions p:not(:empty) + #next {
  margin-left: 0;
}
.wiz-btn {
  flex: none;
  height: 2.7rem;
  padding: 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--foreground);
  font:
    600 0.92rem Inter,
    sans-serif;
  cursor: pointer;
  transition:
    background-color 0.15s,
    opacity 0.15s,
    transform 0.15s;
}
.wiz-btn[hidden] {
  display: none;
}
.wiz-btn:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}
.wiz-btn.primary {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.wiz-btn.primary:hover {
  background: var(--foreground);
  opacity: 0.88;
}
.wiz-review {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.wiz-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wiz-review h3 {
  font:
    700 1.05rem "Inter Tight",
    sans-serif;
}
.wiz-edit {
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--muted);
  font:
    600 0.84rem Inter,
    sans-serif;
  cursor: pointer;
}
.wiz-edit:hover {
  background: var(--surface-2);
  color: var(--foreground);
}
.wiz-review-q {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.wiz-review-a {
  margin-top: 0.2rem;
  font-size: 0.93rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .wiz-label {
    font-size: 0.72rem;
  }
  .wiz-actions {
    flex-wrap: wrap;
  }
  .wiz-actions p:not(:empty) {
    order: 3;
    flex-basis: 100%;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-panel {
    animation: none;
  }
  .wiz-steps li::after,
  .wiz-steps li {
    transition: none;
  }
}

.dept-page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 7.5rem 1.2rem 4rem;
}
.dept-head {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.dept-head h1 {
  font:
    800 clamp(2.6rem, 6vw, 3.9rem)/1.04 "Inter Tight",
    sans-serif;
  letter-spacing: -0.03em;
}
.dept-head p {
  margin-top: 0.9rem;
  color: var(--muted);
}
.dept-head p.intro {
  animation-delay: 0.1s;
}
.dept-list {
  margin-top: 3.4rem;
}
.dept-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  padding: 2.4rem 0;
}
.dept-row:first-child {
  padding-top: 0;
}
.dept-row:nth-child(even) {
  grid-template-columns: 1fr 1.55fr;
}
.dept-row:nth-child(even) .dept-media {
  order: 2;
}
.dept-media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  border-radius: 1.3rem;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 26px 50px -30px rgb(0 0 0 / 0.9);
  background: radial-gradient(90% 90% at 50% 45%, color-mix(in srgb, var(--c) 72%, #13171d), #101114 100%);
}
.dept-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dept-badge {
  width: 40%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgb(0 0 0 / 0.5));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dept-row:hover .dept-photo,
.dept-row:hover .dept-badge {
  transform: scale(1.04);
}
.dept-chips {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: flex;
  gap: 0.4rem;
}
.dept-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.85rem;
  padding: 0 0.65rem;
  border-radius: 0.55rem;
  background: rgb(10 11 13 / 0.78);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dept-chips img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}
.dept-info h2 {
  font:
    700 clamp(1.25rem, 2.3vw, 1.5rem)/1.2 "JetBrains Mono",
    ui-monospace,
    monospace;
  letter-spacing: -0.035em;
}
.dept-info > p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.dept-links {
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
}
.dept-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
}
.dept-links svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.dept-links a:hover svg {
  transform: translate(2px, -2px);
}
.dept-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 2.45rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.pill:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.pill.primary {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.pill.primary:hover {
  background: var(--foreground);
  opacity: 0.88;
}
.nav-links a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--foreground);
}
.dept-more {
  margin-top: 1.1rem;
}
@media (max-width: 760px) {
  .dept-row,
  .dept-row:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .dept-row:nth-child(even) .dept-media {
    order: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dept-photo,
  .dept-badge {
    transition: none;
  }
  .dept-row:hover .dept-photo,
  .dept-row:hover .dept-badge {
    transform: none;
  }
}

.hero .join strong,
.steps p b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero .join strong {
  font-size: 1.1rem;
}
.stats strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.icon-tile.num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 1.25rem;
}
.depts span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-cad) {
    display: none;
  }
  .sides,
  .steps {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    flex-wrap: wrap;
  }
  .stats .panel {
    flex: 1 1 40%;
  }
}
@media (max-width: 620px) {
  .nav {
    width: calc(100vw - 1.6rem);
    justify-content: space-between;
    gap: 0.5rem;
  }
  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }
  .hero-photo {
    object-position: 58% 50%;
  }
  .hero::after {
    background:
      linear-gradient(to top, var(--background) 0%, rgb(11 14 18 / 0.8) 16%, transparent 45%),
      linear-gradient(to bottom, var(--background) 0%, transparent 18%),
      linear-gradient(to bottom, rgb(11 14 18 / 0.72), rgb(11 14 18 / 0.6));
  }
  .depts {
    grid-template-columns: 1fr;
  }
  .side {
    height: 31rem;
  }
  .title {
    font-size: 1.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-photo,
  .intro {
    animation: none;
  }
  .js .reveal,
  .js .side.reveal img,
  .js .side.reveal.in:hover img,
  .js .panel.reveal.in:hover,
  .btn:hover,
  .panel:hover img,
  .panel:hover .icon-tile {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .side.reveal img,
  .js .side.reveal.in img,
  .js .side.reveal.in:hover img,
  .side:hover img {
    transform: translateX(-50%);
  }
}

.depts h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

section.wiz-panel {
  margin-top: 0;
}
.wiz-page {
  --danger: #d43f3f;
}
[data-theme="dark"] .wiz-page {
  --danger: #f07070;
}

.nav .icon-tile.small {
  width: 2rem;
  height: 2rem;
  background: none;
}
.nav .icon-tile.small img {
  width: 100%;
  height: 100%;
}

.dept-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-top: 2.4rem;
}
.dept-pair .dept-row,
.dept-pair .dept-row:nth-child(even) {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.3rem;
  padding: 0;
}
.dept-pair .dept-row:nth-child(even) .dept-media {
  order: 0;
}
@media (max-width: 760px) {
  .dept-pair {
    grid-template-columns: 1fr;
  }
}

.dept-pair {
  gap: 0;
  padding-top: 3rem;
}
.dept-pair .dept-media {
  display: none;
}
.dept-pair .dept-row {
  padding: 0.2rem clamp(1.6rem, 4vw, 3.4rem);
  text-align: center;
}
.dept-pair .dept-row:first-child {
  border-right: 1px solid var(--border);
}
.dept-pair .dept-actions {
  justify-content: center;
}
@media (max-width: 760px) {
  .dept-pair {
    gap: 2rem;
  }
  .dept-pair .dept-row {
    padding: 0;
  }
  .dept-pair .dept-row:first-child {
    padding-bottom: 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
.dept-pair .dept-row,
.dept-pair .dept-row:nth-child(even) {
  align-items: stretch;
  padding: 0.2rem clamp(1.6rem, 4vw, 3.4rem);
}
.dept-pair .dept-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.dept-pair .dept-actions {
  margin-top: auto;
  padding-top: 1.25rem;
}
@media (max-width: 760px) {
  .dept-pair .dept-row,
  .dept-pair .dept-row:nth-child(even) {
    padding: 0;
  }
  .dept-pair .dept-row:first-child {
    padding-bottom: 2rem;
  }
}

.wiz-who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.wiz-who[hidden] {
  display: none;
}
.wiz-who img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}
.wiz-who img[hidden] {
  display: none;
}
.wiz-who b {
  color: var(--foreground);
  font-weight: 600;
}
.wiz-who button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.wiz-who + .wiz-card {
  margin-top: 0.9rem;
}
.wiz-actions[hidden] {
  display: none;
}
.wiz-finished {
  text-align: center;
  padding-block: 3rem;
}
.wiz-finished .wiz-intro {
  max-width: 30rem;
  margin-inline: auto;
  margin-top: 0.7rem;
}
.wiz-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.wiz-choice {
  min-width: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}
.wiz-choice legend {
  padding: 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}
.wiz-q.wiz-choice label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.wiz-q.wiz-choice legend + label {
  margin-top: 0.65rem;
}
.wiz-q.wiz-choice label:hover {
  border-color: var(--accent);
}
.wiz-q.wiz-choice label:has(input:checked) {
  border-color: var(--foreground);
  background: var(--surface-2);
}
.wiz-choice input {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin: 0;
  accent-color: var(--foreground);
  cursor: pointer;
}
.wiz-choice .wiz-error {
  margin-top: 0.5rem;
}
.wiz-hint {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.wiz-head .wiz-switch {
  margin-top: 0.35rem;
  font-size: 0.84rem;
}
.wiz-switch a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wiz-choice legend + .wiz-hint {
  margin-bottom: 0.65rem;
}
.wiz-q.wiz-choice .wiz-hint + label {
  margin-top: 0.5rem;
}

.account {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 3.05rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--island-line);
  border-radius: 999px;
  background: var(--island);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 34px -18px rgb(0 0 0 / 0.7);
}
.account-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}
.account-toggle:hover {
  background: var(--surface-2);
}
.account-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.9rem;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-words {
  min-width: 0;
  max-width: 10.5rem;
  line-height: 1.2;
}
.account-words b {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-words small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-chevron {
  color: var(--muted);
  transition: transform 0.2s;
}
.account-toggle[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}
.account-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.account-icon:hover {
  background: var(--surface-2);
  color: var(--foreground);
}
.account-signin {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--foreground);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.15s;
}
.account-signin:hover {
  background: var(--surface-2);
}
.account-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 13rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 20px 44px -18px rgb(0 0 0 / 0.8);
  animation: wiz-in 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.account-menu[hidden] {
  display: none;
}
.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.65rem;
  background: none;
  color: var(--foreground);
  font:
    500 0.88rem Inter,
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover {
  background: var(--surface-2);
}
@media (max-width: 1480px) {
  .account-words {
    display: none;
  }
}
@media (max-width: 700px) {
  .nav {
    left: 1rem;
    transform: none;
    max-width: calc(100vw - 13rem);
  }
}
@media (max-width: 900px) {
  .nav {
    gap: 0.6rem;
    max-width: calc(100vw - 11.5rem);
  }
  .account-icon {
    display: none;
  }
  .nav .btn.discord {
    display: none;
  }
}
@media (max-width: 620px) {
  .nav {
    width: auto;
    max-width: calc(100vw - 11rem);
    justify-content: flex-start;
  }
}
@media (max-width: 460px) {
  .nav-brand {
    font-size: 0;
    gap: 0;
  }
}

.finder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.finder .title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}
.finder .sub {
  max-width: 32rem;
}
.finder-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 42rem);
  height: 3.6rem;
  margin-top: 1.7rem;
  padding: 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.finder-search:focus-within {
  border-color: var(--muted);
  box-shadow: 0 0 0 4px rgb(107 112 120 / 0.18);
}
.finder-search svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.finder-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--foreground);
  caret-color: var(--foreground);
  font:
    500 1.05rem Inter,
    sans-serif;
  text-align: left;
}
.finder-search input::placeholder {
  color: var(--muted);
}
.finder-caret {
  display: none;
}
.finder.typing .finder-search input {
  caret-color: transparent;
  field-sizing: content;
  flex: 0 1 auto;
  width: auto;
  min-width: 1px;
}
.finder.typing .finder-caret {
  display: block;
  flex: none;
  width: 2px;
  height: 1.3rem;
  margin-left: -0.7rem;
  margin-right: auto;
  background: var(--foreground);
  animation: finder-blink 1s steps(2, jump-none) infinite;
}
@keyframes finder-blink {
  50% {
    opacity: 0;
  }
}
.finder-result {
  display: grid;
  align-items: start;
  width: min(100%, 42rem);
  min-height: 9.5rem;
  margin-top: 0.8rem;
}
.finder-card {
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  text-align: left;
  animation: finder-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes finder-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.finder-who {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.finder-card h3 {
  margin-top: 0.15rem;
  font:
    700 1.2rem/1.25 "Inter Tight",
    sans-serif;
  letter-spacing: -0.01em;
}
.finder-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.finder-card p.finder-none {
  margin: 0;
}
.finder-also {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.finder-also button,
.finder-chips button {
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font:
    500 0.84rem Inter,
    sans-serif;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.finder-also button:hover,
.finder-chips button:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--foreground);
  transform: translateY(-1px);
}
.finder-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: min(100%, 42rem);
  margin-top: 0.9rem;
}
.finder-all {
  width: min(100%, 42rem);
  margin-top: 1.1rem;
  text-align: left;
}
.finder-all > summary {
  width: max-content;
  margin: 0 auto;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.finder-all > summary:hover {
  background: var(--surface-2);
}
.finder-browse {
  margin-top: 0.9rem;
  animation: finder-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.faq-group {
  margin-top: 1.5rem;
}
.faq-group:first-child {
  margin-top: 0;
}
.faq-group h3 {
  margin-bottom: 0.3rem;
  font:
    700 1.08rem "Inter Tight",
    sans-serif;
}
.faq-group details {
  border-bottom: 1px solid var(--border);
}
.faq-group summary {
  padding: 0.7rem 0.2rem;
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
}
.faq-group summary:hover {
  color: var(--muted);
}
.faq-group details p {
  padding: 0 0.2rem 0.85rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.6;
}
.finder-cad {
  margin-top: 1.4rem;
}
@media (prefers-reduced-motion: reduce) {
  .finder-card,
  .finder-browse,
  .finder-caret {
    animation: none;
  }
}

.finder-search {
  cursor: text;
}
.finder.typing .finder-search input {
  color: var(--muted);
  cursor: text;
}
.finder-hint {
  display: none;
  flex: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.finder.typing .finder-hint {
  display: block;
}
.finder.typing .finder-search {
  animation: finder-glow 2.6s ease-in-out infinite;
}
@keyframes finder-glow {
  0%,
  100% {
    border-color: var(--border);
    box-shadow: 0 0 0 0 rgb(107 112 120 / 0);
  }
  50% {
    border-color: var(--muted);
    box-shadow: 0 0 0 4px rgb(107 112 120 / 0.16);
  }
}
@media (max-width: 620px) {
  .finder-hint {
    font-size: 0.72rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .finder.typing .finder-search {
    animation: none;
  }
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dept-list > .dept-row,
.dept-list > .dept-row:first-child,
.dept-pair .dept-row,
.dept-pair .dept-row:nth-child(even),
.dept-pair .dept-row:first-child {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1.7rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.065), rgb(255 255 255 / 0.02) 55%, rgb(255 255 255 / 0.04));
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 24px 50px -36px rgb(0 0 0 / 0.9);
}
.dept-list > .dept-row .dept-info {
  padding-inline: clamp(0.2rem, 1vw, 0.8rem);
}
.dept-pair {
  gap: 1.5rem;
  padding-top: 0;
}
.dept-pair .dept-row .dept-info {
  padding: 1rem 0.6rem;
}
.dept-media {
  border-radius: 1.05rem;
}
[data-theme="light"] .dept-list > .dept-row,
[data-theme="light"] .dept-pair .dept-row,
[data-theme="light"] .dept-pair .dept-row:nth-child(even),
[data-theme="light"] .dept-pair .dept-row:first-child {
  border-color: rgb(21 23 27 / 0.1);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.55));
  box-shadow:
    inset 0 1px 0 #fff,
    0 24px 50px -38px rgb(21 23 27 / 0.45);
}
@media (max-width: 760px) {
  .dept-pair .dept-row,
  .dept-pair .dept-row:nth-child(even),
  .dept-pair .dept-row:first-child {
    padding: 1rem;
  }
}

.dash-page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 7rem 1.2rem 4rem;
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.dash-head > img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.45));
}
.dash-head > div {
  flex: 1;
  min-width: 14rem;
}
.dash-kicker {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.dash-head h1 {
  margin-top: 0.15rem;
  font:
    800 clamp(1.9rem, 4.6vw, 3rem)/1.05 "Inter Tight",
    sans-serif;
  letter-spacing: -0.03em;
}
.dash-back {
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font:
    600 0.88rem Inter,
    sans-serif;
  cursor: pointer;
  transition: background-color 0.15s;
}
.dash-back:hover {
  background: var(--surface-2);
}
.dash-back[hidden] {
  display: none;
}
.dash-summary a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dash-depts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dash-dept {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  background: var(--surface);
  color: var(--foreground);
  text-decoration: none;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.15s;
}
a.dash-dept:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}
.dash-dept > img {
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}
[data-theme="light"] .dash-apps-logo {
  filter: invert(1);
}
.dash-dept-words {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.dash-dept-words b {
  display: block;
  font:
    700 1.2rem/1.2 "Inter Tight",
    sans-serif;
}
.dash-dept-words small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.dash-dept-status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
}
.dash-dept-status svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-tabs {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  margin-top: 1.8rem;
  padding: 0.3rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.dash-tabs[hidden] {
  display: none;
}
.dash-tabs button,
.dash-periods button {
  flex: none;
  height: 2rem;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font:
    600 0.82rem Inter,
    sans-serif;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.dash-tabs button:hover,
.dash-periods button:hover {
  color: var(--foreground);
}
.dash-tabs button.active,
.dash-periods button.active {
  background: var(--foreground);
  color: var(--background);
}
.dash-view {
  margin-top: 1.3rem;
  transition: opacity 0.15s;
}
.dash-view.loading {
  opacity: 0.55;
}
.dash-note {
  color: var(--muted);
}
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 3.2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.dash-empty[hidden] {
  display: none;
}
.dash-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: wiz-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dash-summary {
  color: var(--muted);
  font-size: 0.9rem;
}
.dash-summary b {
  color: var(--foreground);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.dash-card {
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 1.3rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.018));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09);
  overflow: hidden;
}
.dash-card[hidden] {
  display: none;
}
[data-theme="light"] .dash-card {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: none;
}
.dash-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
}
.dash-card-head h2 {
  font:
    700 1.12rem/1.2 "Inter Tight",
    sans-serif;
}
.dash-card-head span {
  color: var(--muted);
  font:
    500 0.78rem "JetBrains Mono",
    ui-monospace,
    monospace;
  white-space: pre;
}
.dash-vacant {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.dash-members li,
.dash-charges li,
.dash-board li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border);
}
.dash-charges li[hidden] {
  display: none;
}
.dash-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.85rem;
}
.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-member {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.dash-member b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-weight: 600;
}
.dash-member small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: pre-wrap;
}
.dash-member small:empty {
  display: none;
}
.dash-duties {
  margin-top: 0.1rem;
}
.dash-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
}
.dash-tag {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.dash-tag.on {
  border-color: rgb(52 199 121 / 0.45);
  color: #4ade80;
}
[data-theme="light"] .dash-tag.on {
  color: #15803d;
}
.dash-callsign,
.dash-time,
.dash-penalty {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.dash-callsign {
  font-size: 0.84rem;
  font-weight: 700;
}
.dash-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.dash-periods {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.dash-board {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  background: var(--surface);
}
.dash-board li:first-child {
  border-top: 0;
}
.dash-board li.me {
  background: var(--surface-2);
}
.dash-rank {
  flex: none;
  width: 1.8rem;
  color: var(--muted);
  font:
    700 0.92rem "JetBrains Mono",
    ui-monospace,
    monospace;
  text-align: center;
}
.dash-rank.top1 {
  color: #fbbf24;
}
.dash-rank.top2 {
  color: #cbd5e1;
}
.dash-rank.top3 {
  color: #fdba74;
}
[data-theme="light"] .dash-rank.top1 {
  color: #b45309;
}
[data-theme="light"] .dash-rank.top2 {
  color: #64748b;
}
[data-theme="light"] .dash-rank.top3 {
  color: #c2410c;
}
.dash-time {
  flex: none;
  font-size: 0.9rem;
  font-weight: 700;
}
.dash-search {
  width: 100%;
  height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  color: var(--foreground);
  font:
    500 0.95rem Inter,
    sans-serif;
}
.dash-search:focus {
  outline: none;
  border-color: var(--muted);
  box-shadow: 0 0 0 3px rgb(107 112 120 / 0.22);
}
.dash-penalty {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.9rem;
  flex: none;
  max-width: 50%;
  color: var(--muted);
  font-size: 0.78rem;
}
@media (max-width: 620px) {
  .dash-members li,
  .dash-charges li,
  .dash-board li {
    padding: 0.65rem 0.9rem;
  }
  .dash-card-head {
    padding: 0.9rem;
  }
  .dash-board .dash-tag {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash-stack {
    animation: none;
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  overflow: visible;
}
.tool-title {
  font:
    700 1.12rem/1.2 "Inter Tight",
    sans-serif;
}
.tool-sub {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.tool-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.tool-none {
  padding: 1.6rem 1rem;
  border-radius: 0.85rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.tool-error {
  color: #f87171;
  font-size: 0.84rem;
}
.tool-error:empty {
  display: none;
}
[data-theme="light"] .tool-error {
  color: #b91c1c;
}
.tool-grid {
  display: grid;
  gap: 0.8rem;
}
.tool-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.tool-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.tool-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.tool-field small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}
.tool-input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  font:
    500 0.9rem Inter,
    sans-serif;
  color-scheme: dark;
}
[data-theme="light"] .tool-input {
  color-scheme: light;
}
textarea.tool-input {
  resize: vertical;
}
.tool-input:focus {
  outline: none;
  border-color: var(--muted);
}
.tool-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
  font:
    600 0.82rem Inter,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.tool-btn:hover {
  background: var(--surface-2);
}
.tool-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.tool-btn.primary {
  border-color: transparent;
  background: var(--foreground);
  color: var(--background);
}
.tool-btn.primary:hover {
  opacity: 0.88;
}
.tool-btn.good {
  border-color: transparent;
  background: #15803d;
  color: #fff;
}
.tool-btn.danger {
  border-color: rgb(248 113 113 / 0.5);
  color: #f87171;
}
[data-theme="light"] .tool-btn.danger {
  color: #b91c1c;
}
.tool-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.tool-line > .tool-input {
  flex: 1 1 12rem;
  width: auto;
}
.tool-line > .tool-title {
  flex: 1;
}
.tool-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.tool-list > li:first-child {
  border-top: 0;
}
.tool-list > li.stacked {
  flex-direction: column;
  align-items: stretch;
}
.tool-chip {
  flex: none;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.tool-chip.pending,
.tool-chip.warn {
  background: rgb(245 158 11 / 0.16);
  color: #fbbf24;
}
.tool-chip.approved,
.tool-chip.good {
  background: rgb(52 199 121 / 0.16);
  color: #4ade80;
}
.tool-chip.active {
  background: rgb(56 189 248 / 0.16);
  color: #7dd3fc;
}
.tool-chip.denied,
.tool-chip.bad {
  background: rgb(248 113 113 / 0.16);
  color: #fca5a5;
}
[data-theme="light"] .tool-chip.pending,
[data-theme="light"] .tool-chip.warn {
  color: #92400e;
}
[data-theme="light"] .tool-chip.approved,
[data-theme="light"] .tool-chip.good {
  color: #166534;
}
[data-theme="light"] .tool-chip.active {
  color: #075985;
}
[data-theme="light"] .tool-chip.denied,
[data-theme="light"] .tool-chip.bad {
  color: #991b1b;
}
.tool-chip.kind {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tool-nav {
  overflow-x: auto;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
}
.tool-nav button {
  white-space: nowrap;
}
.tool-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.7rem;
}
.tool-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--background);
}
.tool-stat small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.tool-stat b {
  font:
    700 1.35rem "Inter Tight",
    sans-serif;
}
.tool-stat b.good {
  color: #4ade80;
}
.tool-stat b.bad {
  color: #f87171;
}
[data-theme="light"] .tool-stat b.good {
  color: #15803d;
}
[data-theme="light"] .tool-stat b.bad {
  color: #b91c1c;
}
.tool-stat span {
  color: var(--muted);
  font-size: 0.72rem;
}
.tool-scroll {
  overflow-x: auto;
}
.tool-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.tool-table th {
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.tool-table td {
  padding: 0.6rem 0.7rem;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
.tool-unit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tool-unit:hover b {
  text-decoration: underline;
}
.tool-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.tool-confirm {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.tool-ask {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: normal;
}
.unit-head .dash-member {
  min-width: 12rem;
}
.tool-progresses {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--background);
}
.tool-progress-line {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.84rem;
}
.tool-progress-line span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.tool-progress-line span.met {
  color: #4ade80;
}
[data-theme="light"] .tool-progress-line span.met {
  color: #15803d;
}
.tool-bar {
  display: block;
  overflow: hidden;
  height: 0.45rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--surface-2);
}
.tool-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--muted);
}
.tool-bar span.met {
  background: #22c55e;
}
.tool-current {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: var(--surface-2);
  font-size: 0.9rem;
}
.tool-current small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.tool-current p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.tool-dialog {
  width: min(100% - 2rem, 28rem);
  margin: auto;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  background: var(--surface);
  color: var(--foreground);
}
.tool-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.tool-dialog::backdrop {
  background: rgb(0 0 0 / 0.65);
}
.tool-dialog.tool-sheet {
  width: min(100% - 2rem, 52rem);
}
.tool-sheet img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
}
.tool-table .dash-tags {
  justify-content: flex-start;
}
.dash-rank-count {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.dash-vacant {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}
.dash-vacant b {
  margin-right: 0.3rem;
  font-weight: 600;
}
.dash-slot {
  padding: 0.1rem 0.4rem;
  border: 1px dashed var(--border);
  border-radius: 0.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 2rem;
}
.tool-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.4rem 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.84rem;
  font-weight: 600;
}
.tool-chips li.empty {
  padding-left: 0;
  background: none;
  color: var(--muted);
  font-weight: 400;
}
.tool-chips button {
  width: 1.3rem;
  height: 1.3rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.tool-chips button:hover {
  background: var(--border);
  color: var(--foreground);
}

.core-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.core-tabs button {
  flex: none;
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font:
    600 0.82rem Inter,
    sans-serif;
  cursor: pointer;
}
.core-tabs button:hover {
  color: var(--foreground);
}
.core-tabs button.active {
  border-color: transparent;
  background: var(--surface-2);
  color: var(--foreground);
}
.core-balance {
  font:
    800 clamp(2rem, 5vw, 3rem)/1.1 "Inter Tight",
    sans-serif;
}
.core-balance.bad,
.core-bad {
  color: #f87171;
}
.core-good {
  color: #4ade80;
}
[data-theme="light"] .core-balance.bad,
[data-theme="light"] .core-bad {
  color: #b91c1c;
}
[data-theme="light"] .core-good {
  color: #15803d;
}
.core-alert {
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  background: rgb(245 158 11 / 0.14);
  font-size: 0.86rem;
}
.core-alert.bad {
  background: rgb(248 113 113 / 0.14);
}
.core-flash {
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  background: rgb(52 199 121 / 0.14);
  font-size: 0.88rem;
  font-weight: 600;
}
.core-money {
  flex: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
.core-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: start;
  gap: 1rem;
}
.core-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.core-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.core-details span {
  overflow: hidden;
  max-width: 100%;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--surface-2);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.core-details i {
  color: var(--muted);
  font-style: normal;
}
.core-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.core-link:hover {
  text-decoration: underline;
}
.core-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
}
.core-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.core-packs button {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: none;
  color: var(--foreground);
  font:
    700 0.88rem Inter,
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.core-packs button.active {
  border-color: var(--foreground);
  background: var(--surface-2);
}
.core-packs small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}
.core-bars li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 6.5rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.2rem 0;
  font-size: 0.84rem;
}
.core-bars .tool-bar {
  margin: 0;
}
.core-bars .tool-bar span.up {
  background: #22c55e;
}
.core-bars .tool-bar span.down {
  background: #ef4444;
}
.dash-dept.core-page {
  flex-wrap: wrap;
}
.core-balance,
.tool-stat b {
  overflow-wrap: anywhere;
}
.core-col .tool-table {
  min-width: 28rem;
}

.rev-tabs button span {
  margin-left: 0.45rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  opacity: 0.75;
}
.rev-list {
  margin-top: 1.2rem;
}
.rev-row .dash-avatar {
  width: 2.8rem;
  height: 2.8rem;
}
.rev-row .dash-dept-words b {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.rev-who {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}
.rev-who .dash-avatar {
  width: 3.6rem;
  height: 3.6rem;
  font-size: 1.1rem;
}
.rev-who h2 {
  font:
    700 1.5rem/1.2 "Inter Tight",
    sans-serif;
  overflow-wrap: anywhere;
}
.rev-who h2 span {
  color: var(--muted);
  font-weight: 500;
}
.rev-who p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.rev-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.rev-box {
  padding: 1.15rem 1.25rem;
}
.rev-box h3 {
  font:
    700 1.02rem/1.2 "Inter Tight",
    sans-serif;
}
.rev-box p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.rev-box p.bad {
  color: var(--danger);
}
.rev-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.rev-facts > div:last-child {
  border-bottom: 0;
}
.rev-facts dt {
  color: var(--muted);
}
.rev-facts dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.rev-facts a {
  color: inherit;
}
.rev-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.rev-section {
  margin-top: 1.8rem;
  font:
    700 1.2rem/1.2 "Inter Tight",
    sans-serif;
}
.rev-answers {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.rev-result {
  margin-top: 1.8rem;
}
.rev-form {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  margin-top: 1.8rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  background: var(--surface);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6);
}
.rev-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.rev-form label span {
  color: var(--muted);
  font-weight: 400;
}
.rev-form .rev-error {
  margin-bottom: 0.7rem;
  color: var(--danger);
  font-size: 0.88rem;
}
.rev-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.rev-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgb(8 9 11 / 0.72);
  backdrop-filter: blur(10px);
  text-align: center;
  animation: rev-fade 0.2s ease both;
}
.rev-overlay > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rev-badge {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: #5aaee0;
  color: #fff;
  box-shadow:
    0 24px 60px -18px rgb(0 0 0 / 0.8),
    inset 0 0 0 1px rgb(255 255 255 / 0.12);
  animation: rev-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.rev-badge.done {
  animation: rev-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.rev-badge svg {
  width: 3.5rem;
  height: 3.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rev-badge path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: rev-stroke 0.4s ease-out 0.12s forwards;
}
.rev-badge path + path {
  animation-delay: 0.3s;
}
.rev-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3.5px solid rgb(255 255 255 / 0.2);
  border-top-color: #fff;
  animation: rev-spin 0.8s linear infinite;
}
.rev-overlay b {
  margin-top: 1.2rem;
  color: #fff;
  font:
    800 1.9rem/1.2 "Inter Tight",
    sans-serif;
}
.rev-overlay small {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.88rem;
}
@keyframes rev-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rev-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rev-pop {
  from {
    transform: scale(0.72);
  }
  to {
    transform: scale(1);
  }
}
@keyframes rev-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rev-stroke {
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 700px) {
  .rev-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .rev-row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rev-overlay,
  .rev-badge,
  .rev-badge.done {
    animation: none;
  }
  .rev-badge path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .rev-spinner {
    animation-duration: 2s;
  }
}

.doc-group {
  display: block;
}
.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.doc-head h2 {
  font:
    700 1.12rem/1.2 "Inter Tight",
    sans-serif;
}
.doc-head span {
  flex: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.15s;
}
.doc-row + .doc-row {
  border-top: 1px solid var(--border);
}
.doc-row:hover {
  background: var(--surface-2);
}
.doc-row:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: -2px;
}
.doc-title {
  flex: 1;
  min-width: 0;
  font:
    600 1rem/1.3 "Inter Tight",
    sans-serif;
  overflow-wrap: anywhere;
}
.doc-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.35rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font:
    600 0.84rem Inter,
    sans-serif;
  transition: opacity 0.15s;
}
.doc-row:hover .doc-open {
  opacity: 0.86;
}
.doc-open svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 500px) {
  .doc-row {
    gap: 0.75rem;
    padding: 0.9rem;
  }
  .doc-head {
    padding: 0.9rem;
  }
}
.dash-tabs {
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar {
  display: none;
}
.dash-wave {
  position: relative;
  max-width: 100%;
}
.dash-wave-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.9rem;
  max-width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.dash-wave-button:hover {
  border-color: var(--muted);
}
.dash-wave-arrow {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.2rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition:
    transform 0.2s,
    margin 0.2s;
}
[aria-expanded="true"] > .dash-wave-arrow {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}
.dash-wave-menu {
  position: absolute;
  left: 0;
  z-index: 40;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 2rem);
  max-height: 18rem;
  margin: 0.5rem 0 0;
  padding: 0.35rem;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.22);
  animation: wiz-in 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dash-wave-menu li {
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.dash-wave-menu li.active {
  background: var(--surface-2);
}
.dash-wave-menu li.picked::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.65rem;
  margin-left: 0.8rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.avex-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.avex-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
  text-align: left;
  cursor: pointer;
}
.avex-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.avex-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avex-select-label[data-empty] {
  opacity: 0.65;
}
.avex-select-arrow {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.2rem 0.15rem 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition:
    transform 0.2s,
    margin 0.2s;
}
[aria-expanded="true"] > .avex-select-arrow {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}
.avex-select-menu {
  position: fixed;
  z-index: 90;
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 0.35rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--foreground);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.22);
  animation: wiz-in 0.16s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.avex-select-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.avex-select-option.active {
  background: var(--surface-2);
}
.avex-select-option[aria-selected="true"] {
  font-weight: 800;
}
.avex-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.avex-date {
  position: fixed;
  z-index: 90;
  width: 300px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--foreground);
  box-shadow: 0 16px 44px rgb(0 0 0 / 0.28);
}
.avex-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.avex-date-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.avex-date-head button:hover {
  background: var(--surface-2);
}
.avex-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.avex-date-dow {
  padding: 4px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}
.avex-date-grid button {
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.avex-date-grid button:hover:not(:disabled),
.avex-date-grid button[data-active="true"] {
  background: var(--surface-2);
}
.avex-date-grid button[aria-current="date"] {
  box-shadow: inset 0 0 0 1px var(--muted);
}
.avex-date-grid button[data-picked="true"] {
  background: var(--foreground);
  color: var(--background);
}
.avex-date-grid button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.avex-date-icon {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--muted);
  border-top-width: 4px;
  border-radius: 3px;
}
.dash-chooser-toggle {
  height: 2.6rem;
  padding: 0 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}
.dash-chooser-toggle:hover {
  border-color: var(--muted);
}
.dash-chooser-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.dash-chooser-chips button {
  height: 2.3rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.dash-chooser-chips button.on {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.dash-chooser-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.7rem;
}
.dash-chooser-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.dash-chooser-link:hover {
  color: var(--foreground);
}

.nf {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 6.5rem 1rem 4rem;
  text-align: center;
}
.nf-code {
  font:
    800 clamp(6rem, 24vw, 9.5rem)/0.9 "Inter Tight",
    sans-serif;
  letter-spacing: -0.05em;
  color: var(--accent-hover);
}
.nf h1 {
  margin-top: 1.1rem;
  font:
    800 clamp(1.55rem, 5vw, 2.1rem)/1.15 "Inter Tight",
    sans-serif;
  letter-spacing: -0.02em;
}
.nf-text {
  margin-top: 0.7rem;
  color: var(--muted);
}
.nf-call {
  width: 100%;
  margin: 1.6rem 0 0;
  padding: 0.35rem 1.1rem;
  text-align: left;
}
.nf-call div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
}
.nf-call div:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.nf-call div[hidden] {
  display: none;
}
.nf-call dt {
  flex: none;
  color: var(--muted);
  font-size: 0.86rem;
}
.nf-call dd {
  min-width: 0;
  margin: 0;
  font:
    500 0.84rem "JetBrains Mono",
    ui-monospace,
    monospace;
  text-align: right;
  overflow-wrap: anywhere;
}
.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.nf-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
}
.nf-ghost:hover {
  background: var(--surface-2);
}

.dl-page {
  max-width: 64rem;
  margin: 0 auto;
  padding: 7.5rem 1.2rem 4rem;
}
.dl-page section {
  margin-top: 0;
}
.dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 2.8rem;
  align-items: start;
}
.dl-card {
  padding: 1.6rem;
}
.dl-card h2 {
  font:
    800 1.45rem/1.2 "Inter Tight",
    sans-serif;
  letter-spacing: -0.02em;
}
.dl-main {
  border: 1px solid #5aaee0;
  box-shadow:
    0 0 0 1px rgb(90 174 224 / 0.25),
    0 30px 60px -40px rgb(90 174 224 / 0.5);
}
.dl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dl-version {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font:
    500 0.74rem "JetBrains Mono",
    ui-monospace,
    monospace;
  white-space: nowrap;
}
.dl-sub {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.dl-btn {
  display: flex;
  gap: 0.55rem;
  width: 100%;
  height: 3rem;
  margin-top: 1.3rem;
  font-size: 1rem;
}
.dl-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dl-size {
  margin-left: 0.2rem;
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0.7;
}
.dl-or {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.dl-ps {
  margin-top: 0.7rem;
  padding: 1.1rem;
  border: 1px solid rgb(90 174 224 / 0.45);
  border-radius: 0.9rem;
  background: rgb(137 207 240 / 0.07);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}
.dl-ps b {
  color: var(--foreground);
}
.dl-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.dl-code code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--background);
  color: var(--foreground);
  font:
    500 0.84rem "JetBrains Mono",
    ui-monospace,
    monospace;
  white-space: nowrap;
  scrollbar-width: thin;
}
.dl-copy {
  flex: none;
  height: 2.6rem;
  min-width: 5.2rem;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface-2);
  color: var(--foreground);
  font:
    600 0.84rem Inter,
    sans-serif;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.dl-copy:hover {
  border-color: var(--accent);
}
.dl-features {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.1rem;
}
.dl-features li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.dl-features li > kbd,
.dl-features .dl-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 2rem;
}
.dl-features b {
  display: block;
  font-size: 0.93rem;
}
.dl-features span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.dl-page kbd {
  padding: 0 0.45rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 0.45rem;
  background: var(--surface-2);
  color: var(--foreground);
  font:
    700 0.78rem "JetBrains Mono",
    ui-monospace,
    monospace;
}
.dl-page kbd.in {
  display: inline;
  padding: 0.05rem 0.35rem;
  font-size: 0.72rem;
}
.dl-features .dl-dot::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgb(239 68 68 / 0.2);
}
.dl-page .dl-help {
  margin-top: 1.2rem;
}
.dl-help h2 {
  font-size: 1.15rem;
}
.dl-help p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.dl-help b {
  color: var(--foreground);
}
@media (max-width: 820px) {
  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-card {
    padding: 1.25rem;
  }
}
@media (max-width: 420px) {
  .dl-code {
    flex-wrap: wrap;
  }
  .dl-copy {
    width: 100%;
  }
  .dl-size {
    display: none;
  }
}
.dl-btn:not(.accent) {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--foreground);
}
.dl-btn:not(.accent):hover {
  border-color: var(--accent);
}
.dl-btn-2 {
  margin-top: 0.6rem;
}
.dl-page .dl-what,
.dl-page .dl-help-grid {
  margin-top: 1.2rem;
}
.dl-help-grid {
  align-items: stretch;
}
.dl-page .dl-help-grid .dl-help {
  margin-top: 0;
}
.dl-what .dl-features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}
@media (max-width: 820px) {
  .dl-what .dl-features {
    grid-template-columns: minmax(0, 1fr);
  }
}

.powered-avex {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  overflow: hidden;
  border: 1px solid rgb(137 207 240 / 0.55);
  border-radius: 999px;
  background: #0b0e12;
  color: #e9f6fc;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  animation: avex-pulse 2.8s ease-in-out infinite;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
}
.powered-avex img {
  width: 1.1rem;
  height: auto;
}
.powered-avex b {
  font-weight: 800;
  color: #fff;
}
.powered-avex::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(137 207 240 / 0.35), transparent);
  transform: translateX(-150%) skewX(-18deg);
  animation: avex-shine 3.6s cubic-bezier(0.65, 0, 0.35, 1) 1s infinite;
}
.powered-avex:hover,
.powered-avex:focus-visible {
  transform: translateY(-2px);
  border-color: #89cff0;
  outline: none;
  animation-play-state: paused;
  box-shadow:
    0 0 0 1px rgb(137 207 240 / 0.4),
    0 0 26px rgb(137 207 240 / 0.65),
    0 6px 18px rgb(0 0 0 / 0.3);
}
@keyframes avex-pulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgb(137 207 240 / 0.25);
  }
  50% {
    box-shadow: 0 0 20px rgb(137 207 240 / 0.6);
  }
}
@keyframes avex-shine {
  0% {
    transform: translateX(-150%) skewX(-18deg);
  }
  45%,
  100% {
    transform: translateX(330%) skewX(-18deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .powered-avex,
  .powered-avex::after {
    animation: none;
  }
  .powered-avex {
    box-shadow: 0 0 14px rgb(137 207 240 / 0.45);
  }
}

.hero-btn[hidden] {
  display: none;
}

/* ---------- Mobile nav menu ---------- */
.nav-menu {
  display: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.nav-menu svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: currentColor;
}
.nav-menu .menu-close {
  display: none;
}
.nav-menu[aria-expanded="true"] .menu-open {
  display: none;
}
.nav-menu[aria-expanded="true"] .menu-close {
  display: block;
}

.nav-menu-list {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 1rem;
  background: color-mix(in srgb, var(--panel-bg) 90%, #000);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--island-line);
}
.nav-menu-list a {
  display: block;
  padding: 0.95rem 1.2rem;
  border-radius: 1rem;
  color: var(--foreground);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.nav-menu-list a:hover {
  background: var(--surface-2);
}

@media (max-width: 900px) {
  .nav-menu {
    display: grid;
  }
  .nav-menu-list[hidden] {
    display: none;
  }
  .nav-menu-list:not([hidden]) {
    display: flex;
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .nav {
    z-index: 60;
  }
  .nav-menu-close {
    align-self: flex-end;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--island-line);
    border-radius: 0.75rem;
    background: transparent;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
  }
}

/* Dashboard roster: district tabs, drag to move, Move dialog (lib/roster-manage.ts). */
.dash-roster-tabs {
  margin: 0;
}
.dash-roster-hint {
  font-size: 0.82rem;
}
.dash-drag-handle {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 2rem;
  margin-left: -0.6rem;
  border-radius: 0.4rem;
  color: var(--muted);
  cursor: grab;
}
.dash-drag-handle:hover {
  color: var(--foreground, var(--text));
}
.dash-dragging .dash-drag-handle,
.dash-drag-handle:active {
  cursor: grabbing;
}
.dash-members li.dash-dragging {
  opacity: 0.45;
}
.dash-card.dash-drop {
  outline: 2px dashed var(--accent, #2563ff);
  outline-offset: -2px;
}
.dash-members li.dash-drop {
  outline: 2px dashed var(--accent, #2563ff);
  outline-offset: -2px;
  background: color-mix(in srgb, var(--accent, #2563ff) 10%, transparent);
}
.dash-slot.dash-drop {
  border-color: var(--accent, #2563ff);
  color: var(--text, #fff);
  background: color-mix(in srgb, var(--accent, #2563ff) 25%, transparent);
}
.dash-move-picks {
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.dash-move-picks > b {
  width: 100%;
  font-size: 0.85rem;
}
