/* Avex CAD's look: same fonts, greys, gradients, panels and character art (avexCAD/src/app/globals.css). */
@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: #4b515b; --accent-hover: #5d636e;
  --panel-border: 2px solid #4b515b;
  --page-bg:
    radial-gradient(70rem 45rem at 100% -10%, rgb(75 81 91 / .2), transparent 60%),
    radial-gradient(50rem 35rem at -10% 110%, rgb(75 81 91 / .1), transparent 60%),
    #f7f7f8;
  --panel-bg: radial-gradient(36rem 22rem at 100% 0%, rgb(75 81 91 / .14), transparent 70%), rgb(255 255 255 / .85);
  --island: rgb(255 255 255 / .78);
  --island-line: rgb(21 23 27 / .12);
}
[data-theme="dark"] {
  --background: #0e0f11; --surface: #16171a; --surface-2: #1f2125; --border: #2b2d32;
  --foreground: #ececee; --muted: #9b9ea6;
  --panel-border: 1px solid #2b2d32;
  --page-bg: #0e0f11;
  --panel-bg: #16171a;
  --island: rgb(22 23 26 / .72);
  --island-line: rgb(255 255 255 / .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: .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: .65rem; font: 600 .95rem Inter, sans-serif; white-space: nowrap; cursor: pointer; transition: background-color .15s, filter .15s; }
.btn.discord { background: #5865f2; color: #fff; }
.btn.discord:hover { filter: brightness(1.1); }
.btn.accent { background: var(--accent); color: #fff; }
.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: .85rem; color: #fff; background: radial-gradient(120% 120% at 30% 25%, #4b515b 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: .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); }

/* Top bar: a rounded island at the top of the page, in the middle. It stays there when you scroll. */
.nav { position: absolute; top: .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: .4rem .25rem .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 / .7); }
.nav .btn { height: 2.25rem; padding: 0 1rem; border-radius: 999px; font-size: .86rem; }
.nav .icon-tile.small { border-radius: 50%; }
.nav-brand { display: flex; align-items: center; gap: .55rem; font: 800 1rem "Inter Tight", sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.nav-links { display: flex; gap: .1rem; }
.nav-links a { padding: .35rem .75rem; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .86rem; }
.nav-links a:hover { background: var(--surface-2); color: var(--foreground); }
.nav-actions { display: flex; align-items: center; gap: .3rem; }
.nav-actions:not(:has(*)) { display: none; } /* script.js moves the theme button out; an empty box would push the island off balance */
.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 .15s, color .15s, transform .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%, #4b515b 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 / .4)); }
.banner-text { flex: 1; min-width: 0; }
.banner h1 { font: 800 2.35rem/1 "Inter Tight", sans-serif; letter-spacing: -.025em; }
.banner p { margin-top: .5rem; color: rgb(255 255 255 / .6); font-size: 1.05rem; }
.join { display: grid; grid-template-columns: auto auto; column-gap: 1rem; align-items: center; flex: none; padding: .7rem .8rem .7rem 1.1rem; border-radius: 1rem; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.join span { grid-column: 1; font-size: .78rem; font-weight: 500; color: rgb(255 255 255 / .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%, #4b515b 0%, #2c3038 45%, #111316 100%); }
.side::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6; background: radial-gradient(45% 40% at 50% 55%, rgb(255 255 255 / .14), transparent 70%); transition: opacity .5s; }
.side:hover::before { opacity: .9; }
.side-tag { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: rgb(255 255 255 / .7); }
.side h3 { position: relative; z-index: -1; margin-top: .25rem; font: 800 2.8rem/1 "Inter Tight", sans-serif; letter-spacing: -.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 / .5)); transition: transform .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 / .7) 55%, transparent); }
.side-foot p { max-width: 21rem; font-size: .95rem; line-height: 1.6; color: rgb(255 255 255 / .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: -.02em; }
.stats span { font-size: .88rem; color: var(--muted); }

.title { font: 800 2.35rem/1.05 "Inter Tight", sans-serif; letter-spacing: -.025em; }
.sub { margin-top: .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: .5rem 0 1.2rem; color: var(--muted); font-size: .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 .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: .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: .9rem; padding: 1.25rem; }
.features h3 { font: 700 1.1rem/1.2 "Inter Tight", sans-serif; }
.features p { margin-top: .3rem; font-size: .88rem; color: var(--muted); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.5rem; padding: 1.4rem max(1rem, calc((100% - 70rem) / 2)); border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.footer span:first-child { font-weight: 600; color: var(--foreground); }

/* Hero */
/* Full-width photo that fades into the page: dark on the text side, and into the page colour at the bottom. */
.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: #0e0f11; }
.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(.2, .7, .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(14 15 17 / .55) 0%, transparent 22%),
  linear-gradient(to right, rgb(14 15 17 / .94) 0%, rgb(14 15 17 / .82) 34%, rgb(14 15 17 / .28) 62%, rgb(14 15 17 / .1) 100%); }
.hero-logo { width: 4rem; height: 4rem; filter: drop-shadow(0 8px 18px rgb(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: -.03em; }
.hero-text { max-width: 30rem; margin-top: 1.1rem; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgb(255 255 255 / .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .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 / .12); color: #fff; }
.btn.ghost:hover { background: rgb(255 255 255 / .2); }
.hero .join { display: flex; align-items: center; gap: .7rem; margin-top: 1.3rem; padding: .35rem .4rem .35rem 1rem; border-radius: .9rem; }
.hero .join span { font-size: .85rem; }
.hero .join strong { font-size: 1.25rem; }
.hero .join .btn { height: 2.1rem; min-width: 4.4rem; padding: 0 .9rem; font-size: .85rem; }

/* Animation: one intro for the hero, content rising in as you scroll, and responses to the pointer. */
@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(.8); } to { opacity: 1; transform: none; } }
.intro { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-logo.intro { animation-name: pop; }
.hero h1.intro { animation-delay: .1s; }
.hero-text.intro { animation-delay: .2s; }
.hero-actions.intro { animation-delay: .3s; }
.join.intro { animation-delay: .4s; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease var(--delay, 0s), transform .65s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .side.reveal img { transform: translateX(-50%) translateY(30px) scale(.97); }
.js .side.reveal.in img { transform: translateX(-50%); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .15s; }
.js .side.reveal.in:hover img { transform: translateX(-50%) scale(1.04); transition: transform .4s; }
.btn { transition: background-color .15s, filter .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(0 0 0 / .6); }
.btn:active { transform: translateY(0) scale(.98); }
.js .panel.reveal.in { transition: transform .22s ease, border-color .22s, box-shadow .22s; }
.js .panel.reveal.in:hover { transform: translateY(-4px); border-color: #4b515b; box-shadow: 0 18px 34px -22px rgb(0 0 0 / .7); }
.panel img, .panel .icon-tile { transition: transform .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 .15s, color .15s; }

/* Wide screens: show the whole scene, fading out at the top and bottom, so SHERIFF sits to the right of the text. */
@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(14 15 17 / .92) 0%, rgb(14 15 17 / .84) calc((100vw - 68rem) / 2 + 20rem), transparent calc((100vw - 68rem) / 2 + 32rem)); }
}

/* Hero text and buttons: one title line, then one row of matching buttons. */
.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: .85rem; font-size: 1.02rem; line-height: 1.55; }
.hero-actions { align-items: center; gap: .55rem; margin-top: 1.5rem; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 2.75rem; padding: 0 1.05rem; border: 1px solid rgb(255 255 255 / .2); border-radius: .75rem; background: rgb(255 255 255 / .08); color: #fff; font: 600 .9rem Inter, sans-serif; white-space: nowrap; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .15s, border-color .15s, transform .15s; }
.hero-btn:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .34); transform: translateY(-1px); }
.hero-btn:active { transform: none; }
.hero-btn.primary { border-color: #fff; background: #fff; color: #15171b; }
.hero-btn.primary:hover { border-color: #e9eaec; background: #e9eaec; }
.hero-btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.hero-btn.code span { color: rgb(255 255 255 / .62); font-weight: 500; }
.hero-btn.code strong { font: 700 .95rem "JetBrains Mono", ui-monospace, monospace; letter-spacing: .05em; }
.hero-btn.code em { padding-left: .6rem; border-left: 1px solid rgb(255 255 255 / .22); color: rgb(255 255 255 / .75); font-size: .8rem; font-style: normal; }
@media (max-width: 620px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .hero-btn { width: 100%; }
}

/* Hero layout: centered text in the open sky, with the scene sitting underneath it. */
.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%, transparent 20%),
  linear-gradient(to bottom, rgb(14 15 17 / .5) 0%, transparent 16%),
  radial-gradient(44rem 19rem at 50% 47%, rgb(14 15 17 / .62), transparent 100%); }
@media (max-width: 620px) {
  .hero { min-height: max(40rem, 100svh); }
}

/* Get started: three steps joined by a line that draws across as they appear, instead of three boxes. */
#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 .9s cubic-bezier(.2, .7, .2, 1) calc(var(--delay, 0s) + .25s); }
.js .step.reveal.in:not(:last-child)::after { transform: scaleX(1); }
/* Clear glass: almost no fill, just a thin crisp rim. */
.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 / .025); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), inset 0 1px 0 rgb(255 255 255 / .16);
  font: 700 1.05rem "JetBrains Mono", ui-monospace, monospace; }
[data-theme="light"] .step-num { background: rgb(255 255 255 / .35); box-shadow: inset 0 0 0 1px rgb(21 23 27 / .18); }
.step h3 { margin-top: 1.1rem; font: 700 1.3rem/1.2 "Inter Tight", sans-serif; letter-spacing: -.01em; }
.steps .step p { flex: 1; max-width: 18.5rem; margin: .55rem 0 1rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.step-link { display: inline-flex; align-items: center; height: 2.3rem; padding: 0 .95rem; border: 1px solid var(--border); border-radius: 999px; font-size: .86rem; font-weight: 600; transition: background-color .15s, border-color .15s, transform .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% - .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; }
}

/* Application: progress bar at the top, then one section at a time in a single card. */
.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: -.03em; }
.wiz-head p { margin-top: .7rem; color: var(--muted); font-size: .95rem; }
.wiz-steps { display: flex; margin-top: 2.4rem; animation-delay: .08s; }
.wiz-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; font-weight: 500; transition: color .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 .45s cubic-bezier(.2, .7, .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 .86rem "JetBrains Mono", ui-monospace, monospace; transition: background-color .25s, color .25s, box-shadow .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: .95rem; }
.wiz-card { margin-top: 1.8rem; border: 1px solid var(--border); border-radius: 1.3rem; background: var(--surface); animation-delay: .16s; }
.wiz-panel { padding: clamp(1.4rem, 4vw, 2.2rem); animation: wiz-in .35s cubic-bezier(.2, .7, .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: -.02em; }
.wiz-panel h2:focus { outline: none; }
.wiz-intro { margin-top: .4rem; color: var(--muted); font-size: .94rem; }
.wiz-reqs { margin-top: 1.25rem; border-top: 1px solid var(--border); }
.wiz-reqs li { padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .94rem; line-height: 1.5; }
.wiz-check { display: flex; align-items: center; gap: .7rem; margin-top: 1.3rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: .8rem; font-size: .94rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .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: .96rem; font-weight: 600; line-height: 1.45; }
.wiz-q textarea { display: block; width: 100%; margin-top: .6rem; padding: .8rem .95rem; border: 1px solid transparent; border-radius: .8rem; background: var(--surface-2); color: var(--foreground); font: 400 .95rem/1.55 Inter, sans-serif; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.wiz-q textarea:focus { outline: none; border-color: var(--muted); box-shadow: 0 0 0 3px rgb(107 112 120 / .25); }
.wiz-q textarea[aria-invalid] { border-color: var(--danger); }
.wiz-meta { display: flex; justify-content: flex-end; gap: 1rem; margin-top: .35rem; }
.wiz-count { flex: none; color: var(--muted); font: 500 .72rem "JetBrains Mono", ui-monospace, monospace; }
.wiz-error { margin-right: auto; color: var(--danger); font-size: .84rem; }
.wiz-check + .wiz-error { margin-top: .5rem; }
.wiz-actions { display: flex; align-items: center; gap: .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: .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: .75rem; background: transparent; color: var(--foreground); font: 600 .92rem Inter, sans-serif; cursor: pointer; transition: background-color .15s, opacity .15s, transform .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: .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: .2rem .55rem; border: 0; border-radius: .45rem; background: transparent; color: var(--muted); font: 600 .84rem Inter, sans-serif; cursor: pointer; }
.wiz-edit:hover { background: var(--surface-2); color: var(--foreground); }
.wiz-review-q { margin-top: .95rem; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.wiz-review-a { margin-top: .2rem; font-size: .93rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .wiz-label { font-size: .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; }
}

/* Departments page: alternating rows of picture and details. */
.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: -.03em; }
.dept-head p { margin-top: .9rem; color: var(--muted); }
.dept-head p.intro { animation-delay: .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 / .08), 0 26px 50px -30px rgb(0 0 0 / .9); background: radial-gradient(90% 90% at 50% 45%, color-mix(in srgb, var(--c) 72%, #16171a), #101114 100%); }
.dept-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dept-badge { width: 40%; height: 62%; object-fit: contain; filter: drop-shadow(0 16px 24px rgb(0 0 0 / .5)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dept-row:hover .dept-photo, .dept-row:hover .dept-badge { transform: scale(1.04); }
.dept-chips { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; }
.dept-chips span { display: inline-flex; align-items: center; gap: .4rem; height: 1.85rem; padding: 0 .65rem; border-radius: .55rem; background: rgb(10 11 13 / .78); color: #fff; font-size: .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: -.035em; }
.dept-info > p { margin-top: .7rem; color: var(--muted); font-size: .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: .6rem 0; border-top: 1px solid var(--border); font-size: .86rem; font-weight: 600; }
.dept-links svg { width: .95rem; height: .95rem; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.dept-links a:hover svg { transform: translate(2px, -2px); }
.dept-actions { display: flex; flex-wrap: wrap; gap: .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: .7rem; font-size: .86rem; font-weight: 600; transition: background-color .15s, border-color .15s, transform .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: .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; }
}

/* JetBrains Mono: codes, numbers and department names. Everything else is Inter. */
.hero .join strong, .steps p b { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; letter-spacing: .06em; }
.hero .join strong { font-size: 1.1rem; }
.stats strong { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; letter-spacing: -.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: .8rem; letter-spacing: .04em; }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cad) { display: none; } /* phones keep the way into the CAD */
  .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: .5rem; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .hero-photo { object-position: 58% 50%; }
  .hero::after { background:
    linear-gradient(to top, var(--background) 0%, transparent 28%),
    linear-gradient(to bottom, rgb(14 15 17 / .72), rgb(14 15 17 / .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: -.025em; }

/* Application fixes: sections have a default top margin, and the error colour needs defining for both themes. */
section.wiz-panel { margin-top: 0; }
.wiz-page { --danger: #d43f3f; }
[data-theme="dark"] .wiz-page { --danger: #f07070; }

/* Top bar logo: just the logo, no circle behind it. */
.nav .icon-tile.small { width: 2rem; height: 2rem; background: none; }
.nav .icon-tile.small img { width: 100%; height: 100%; }

/* Departments without a photo: side by side, picture over details. */
.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; }
}

/* Departments without a photo: just text, side by side with a line between. */
.dept-pair { gap: 0; padding-top: 3rem; }
.dept-pair .dept-media { display: none; }
.dept-pair .dept-row { padding: .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: .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; }
}

/* Application: who's signed in, and the finished screen. */
.wiz-who { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.5rem; color: var(--muted); font-size: .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: .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: .7rem; }
.wiz-btn:disabled { opacity: .55; cursor: default; }

/* Application: multiple choice, per-question hints, and the link between forms. */
.wiz-choice { min-width: 0; margin: 1.5rem 0 0; padding: 0; border: 0; }
.wiz-choice legend { padding: 0; font-size: .96rem; font-weight: 600; line-height: 1.45; }
.wiz-q.wiz-choice label { display: flex; align-items: center; gap: .7rem; margin-top: .5rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: .75rem; font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s; }
.wiz-q.wiz-choice legend + label { margin-top: .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: .5rem; }
.wiz-hint { margin-top: .25rem; color: var(--muted); font-size: .84rem; }
.wiz-head .wiz-switch { margin-top: .35rem; font-size: .84rem; }
.wiz-switch a { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; }

/* Application: the hint under a multiple choice question. */
.wiz-choice legend + .wiz-hint { margin-bottom: .65rem; }
.wiz-q.wiz-choice .wiz-hint + label { margin-top: .5rem; }

/* Account section, top right corner. The island stays in the middle while there's room for both. */
.account { position: absolute; top: .8rem; right: 1rem; z-index: 11; display: flex; align-items: center; gap: .15rem; min-height: 3.05rem; padding: .3rem .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 / .7); }
.account-toggle { display: flex; align-items: center; gap: .6rem; padding: .15rem .35rem .15rem .15rem; border: 0; border-radius: 999px; background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: background-color .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: .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: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-words small { display: block; overflow: hidden; color: var(--muted); font-size: .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 .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 .15s, color .15s; }
.account-icon:hover { background: var(--surface-2); color: var(--foreground); }
.account-signin { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 .95rem; border-radius: 999px; color: var(--foreground); font-size: .86rem; font-weight: 600; transition: background-color .15s; }
.account-signin:hover { background: var(--surface-2); }
.account-menu { position: absolute; top: calc(100% + .5rem); right: 0; display: flex; flex-direction: column; min-width: 13rem; padding: .35rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); box-shadow: 0 20px 44px -18px rgb(0 0 0 / .8); animation: wiz-in .18s cubic-bezier(.2, .7, .2, 1); }
.account-menu[hidden] { display: none; }
.account-menu a, .account-menu button { display: block; width: 100%; padding: .55rem .75rem; border: 0; border-radius: .65rem; background: none; color: var(--foreground); font: 500 .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: .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; }
}

/* What are you looking for: the search types by itself and shows answers, in the page's own colours. */
.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: .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 .2s, box-shadow .2s; }
.finder-search:focus-within { border-color: var(--muted); box-shadow: 0 0 0 4px rgb(107 112 120 / .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: -.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: .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 .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes finder-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.finder-who { color: var(--muted); font-size: .78rem; font-weight: 600; }
.finder-card h3 { margin-top: .15rem; font: 700 1.2rem/1.25 "Inter Tight", sans-serif; letter-spacing: -.01em; }
.finder-card p { margin-top: .4rem; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.finder-card p.finder-none { margin: 0; }
.finder-also { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.finder-also button, .finder-chips button { min-height: 2.1rem; padding: .35rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--muted); font: 500 .84rem Inter, sans-serif; text-align: left; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .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: .4rem; width: min(100%, 42rem); margin-top: .9rem; }
.finder-all { width: min(100%, 42rem); margin-top: 1.1rem; text-align: left; }
.finder-all > summary { width: max-content; margin: 0 auto; padding: .4rem .6rem; border-radius: .5rem; color: var(--foreground); font-size: .9rem; font-weight: 600; cursor: pointer; }
.finder-all > summary:hover { background: var(--surface-2); }
.finder-browse { margin-top: .9rem; animation: finder-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.faq-group { margin-top: 1.5rem; }
.faq-group:first-child { margin-top: 0; }
.faq-group h3 { margin-bottom: .3rem; font: 700 1.08rem "Inter Tight", sans-serif; }
.faq-group details { border-bottom: 1px solid var(--border); }
.faq-group summary { padding: .7rem .2rem; font-size: .93rem; font-weight: 500; cursor: pointer; }
.faq-group summary:hover { color: var(--muted); }
.faq-group details p { padding: 0 .2rem .85rem; color: var(--muted); font-size: .91rem; line-height: 1.6; }
.finder-cad { margin-top: 1.4rem; }
@media (prefers-reduced-motion: reduce) {
  .finder-card, .finder-browse, .finder-caret { animation: none; }
}

/* The auto-typed examples look like hints, and the box says it can be typed in. */
.finder-search { cursor: text; }
.finder.typing .finder-search input { color: var(--muted); cursor: text; }
.finder-hint { display: none; flex: none; padding: .3rem .65rem; border: 1px solid var(--border); border-radius: .5rem; color: var(--foreground); font-size: .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 / .16); } }
@media (max-width: 620px) { .finder-hint { font-size: .72rem; } }
@media (prefers-reduced-motion: reduce) { .finder.typing .finder-search { animation: none; } }

/* Departments page: each department in a light glass box around its picture and text. */
.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 / .1);
  border-radius: 1.7rem;
  background: linear-gradient(145deg, rgb(255 255 255 / .065), rgb(255 255 255 / .02) 55%, rgb(255 255 255 / .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 / .12), 0 24px 50px -36px rgb(0 0 0 / .9);
}
.dept-list > .dept-row .dept-info { padding-inline: clamp(.2rem, 1vw, .8rem); }
.dept-pair { gap: 1.5rem; padding-top: 0; }
.dept-pair .dept-row .dept-info { padding: 1rem .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 / .1);
  background: linear-gradient(145deg, rgb(255 255 255 / .9), rgb(255 255 255 / .55));
  box-shadow: inset 0 1px 0 #fff, 0 24px 50px -38px rgb(21 23 27 / .45);
}
@media (max-width: 760px) {
  .dept-pair .dept-row, .dept-pair .dept-row:nth-child(even), .dept-pair .dept-row:first-child { padding: 1rem; }
}

/* Department dashboard. */
.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 / .45)); }
.dash-head > div { flex: 1; min-width: 14rem; }
.dash-kicker { color: var(--muted); font-size: .86rem; font-weight: 500; }
.dash-head h1 { margin-top: .15rem; font: 800 clamp(1.9rem, 4.6vw, 3rem)/1.05 "Inter Tight", sans-serif; letter-spacing: -.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 .88rem Inter, sans-serif; cursor: pointer; transition: background-color .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: .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 .15s, background-color .15s, transform .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: .2rem; color: var(--muted); font-size: .84rem; }
.dash-dept-status { flex: none; display: flex; align-items: center; gap: .4rem; font-size: .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: .3rem; overflow-x: auto; margin-top: 1.8rem; padding: .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: 2.3rem; padding: 0 1.05rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .88rem Inter, sans-serif; cursor: pointer; transition: background-color .15s, color .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 .15s; }
.dash-view.loading { opacity: .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 .3s cubic-bezier(.2, .7, .2, 1); }
.dash-summary { color: var(--muted); font-size: .9rem; }
.dash-summary b { color: var(--foreground); font-family: "JetBrains Mono", ui-monospace, monospace; }
.dash-card { border: 1px solid rgb(255 255 255 / .09); border-radius: 1.3rem; background: linear-gradient(145deg, rgb(255 255 255 / .05), rgb(255 255 255 / .018)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .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 .78rem "JetBrains Mono", ui-monospace, monospace; white-space: pre; }
.dash-vacant { padding: 0 1.25rem 1.1rem; color: var(--muted); font-size: .88rem; }
.dash-members li, .dash-charges li, .dash-board li { display: flex; align-items: center; gap: .8rem; padding: .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: .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: .92rem; font-weight: 600; }
.dash-member small { display: block; color: var(--muted); font-size: .78rem; white-space: pre-wrap; }
.dash-member small:empty { display: none; }
.dash-duties { margin-top: .1rem; }
.dash-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
.dash-tag { padding: .15rem .55rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.dash-tag.on { border-color: rgb(52 199 121 / .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: .84rem; font-weight: 700; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.dash-periods { display: flex; gap: .25rem; padding: .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 .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: .9rem; font-weight: 700; }
.dash-search { width: 100%; height: 2.9rem; padding: 0 1rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--surface); color: var(--foreground); font: 500 .95rem Inter, sans-serif; }
.dash-search:focus { outline: none; border-color: var(--muted); box-shadow: 0 0 0 3px rgb(107 112 120 / .22); }
.dash-penalty { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .9rem; flex: none; max-width: 50%; color: var(--muted); font-size: .78rem; }
@media (max-width: 620px) {
  .dash-members li, .dash-charges li, .dash-board li { padding: .65rem .9rem; }
  .dash-card-head { padding: .9rem; }
  .dash-board .dash-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dash-stack { animation: none; } }

/* Dashboard tools: LOA and the Supervisor Panel. */
.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: .4rem; color: var(--muted); font-size: .86rem; font-weight: 600; }
.tool-note { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.tool-none { padding: 1.6rem 1rem; border-radius: .85rem; background: var(--surface-2); color: var(--muted); font-size: .88rem; text-align: center; }
.tool-error { color: #f87171; font-size: .84rem; }
.tool-error:empty { display: none; }
[data-theme="light"] .tool-error { color: #b91c1c; }
.tool-grid { display: grid; gap: .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: .35rem; font-size: .86rem; font-weight: 600; }
.tool-field small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.tool-input { width: 100%; min-width: 0; min-height: 2.75rem; padding: .55rem .8rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--background); color: var(--foreground); font: 500 .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: 2.25rem; padding: 0 .9rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface); color: var(--foreground); font: 600 .82rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.tool-btn:hover { background: var(--surface-2); }
.tool-btn:disabled { opacity: .5; cursor: default; }
.tool-btn.primary { min-height: 2.75rem; padding: 0 1.3rem; border-color: transparent; background: var(--foreground); color: var(--background); }
.tool-btn.primary:hover { opacity: .88; }
.tool-btn.good { border-color: transparent; background: #15803d; color: #fff; }
.tool-btn.danger { border-color: rgb(248 113 113 / .5); color: #f87171; }
[data-theme="light"] .tool-btn.danger { color: #b91c1c; }
.tool-line { display: flex; flex-wrap: wrap; align-items: center; gap: .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: .7rem; padding: .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: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.tool-chip.pending, .tool-chip.warn { background: rgb(245 158 11 / .16); color: #fbbf24; }
.tool-chip.approved, .tool-chip.good { background: rgb(52 199 121 / .16); color: #4ade80; }
.tool-chip.active { background: rgb(56 189 248 / .16); color: #7dd3fc; }
.tool-chip.denied, .tool-chip.bad { background: rgb(248 113 113 / .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: .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: .7rem; }
.tool-stat { display: flex; flex-direction: column; gap: .15rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--background); }
.tool-stat small { color: var(--muted); font-size: .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: .72rem; }
.tool-scroll { overflow-x: auto; }
.tool-table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: .86rem; }
.tool-table th { padding: .5rem .7rem; color: var(--muted); font-size: .74rem; font-weight: 600; text-align: left; white-space: nowrap; }
.tool-table td { padding: .6rem .7rem; border-top: 1px solid var(--border); white-space: nowrap; }
.tool-unit { display: flex; align-items: center; gap: .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: .4rem; }
.tool-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tool-ask { font-size: .8rem; font-weight: 600; white-space: normal; }
.unit-head .dash-member { min-width: 12rem; }
.tool-progresses { display: flex; flex-direction: column; gap: .8rem; padding: .9rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--background); }
.tool-progress-line { display: flex; justify-content: space-between; gap: .6rem; font-size: .84rem; }
.tool-progress-line span { color: var(--muted); font-size: .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: .45rem; margin-top: .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: .4rem; padding: .8rem .9rem; border-radius: .85rem; background: var(--surface-2); font-size: .9rem; }
.tool-current small { color: var(--muted); font-size: .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: .9rem; }
.tool-dialog::backdrop { background: rgb(0 0 0 / .65); }
.tool-dialog.tool-sheet { width: min(100% - 2rem, 52rem); }
.tool-sheet img { width: 100%; height: auto; border-radius: .6rem; }
.tool-table .dash-tags { justify-content: flex-start; }
.dash-rank-count { display: flex; align-items: center; gap: .6rem; }
.dash-vacant { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding-top: .8rem; border-top: 1px solid var(--border); font-size: .78rem; }
.dash-vacant b { margin-right: .3rem; font-weight: 600; }
.dash-slot { padding: .1rem .4rem; border: 1px dashed var(--border); border-radius: .4rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem; }
.tool-chips { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2rem; }
.tool-chips li { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .4rem .25rem .7rem; border-radius: 999px; background: var(--surface-2); font-size: .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 panel. */
.core-tabs { display: flex; flex-wrap: wrap; gap: .3rem; }
.core-tabs button { flex: none; min-height: 2.1rem; padding: 0 .85rem; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--muted); font: 600 .82rem Inter, sans-serif; cursor: pointer; }
.core-tabs button:hover { color: var(--foreground); }
.core-tabs button.active { border-color: transparent; background: var(--foreground); color: var(--background); }
.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: .6rem .8rem; border-radius: .75rem; background: rgb(245 158 11 / .14); font-size: .86rem; }
.core-alert.bad { background: rgb(248 113 113 / .14); }
.core-flash { padding: .6rem .9rem; border-radius: .75rem; background: rgb(52 199 121 / .14); font-size: .88rem; font-weight: 600; }
.core-money { flex: none; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .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: .3rem; margin-top: .25rem; }
.core-details span { overflow: hidden; max-width: 100%; padding: .1rem .4rem; border-radius: .35rem; background: var(--surface-2); font-size: .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: .4rem; font-size: .86rem; }
.core-packs { display: flex; flex-wrap: wrap; gap: .5rem; }
.core-packs button { padding: .45rem .8rem; border: 1px solid var(--border); border-radius: .7rem; background: none; color: var(--foreground); font: 700 .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: .72rem; font-weight: 500; }
.core-bars li { display: grid; grid-template-columns: 6.5rem 1fr 6.5rem; align-items: center; gap: .7rem; padding: .2rem 0; font-size: .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; }

/* Reviewing applications (/applications/review). */
.rev-tabs button span { margin-left: .45rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .78rem; opacity: .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: .2rem; color: var(--muted); font-size: .88rem; }
.rev-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .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: .5rem; color: var(--muted); font-size: .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: .1rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .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: .35rem; margin-top: .6rem; }
.rev-section { margin-top: 1.8rem; font: 700 1.2rem/1.2 "Inter Tight", sans-serif; }
.rev-answers { display: grid; gap: .7rem; margin-top: .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 / .6); }
.rev-form label { display: block; margin-bottom: .5rem; font-size: .88rem; font-weight: 600; }
.rev-form label span { color: var(--muted); font-weight: 400; }
.rev-form .rev-error { margin-bottom: .7rem; color: var(--danger); font-size: .88rem; }
.rev-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: .7rem; }
.rev-actions .tool-btn { min-height: 2.75rem; padding: 0 1.4rem; }
.rev-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(8 9 11 / .72); backdrop-filter: blur(10px); text-align: center; animation: rev-fade .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: #4b515b; color: #fff; box-shadow: 0 24px 60px -18px rgb(0 0 0 / .8), inset 0 0 0 1px rgb(255 255 255 / .12); animation: rev-rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.rev-badge.done { animation: rev-pop .5s cubic-bezier(.2, 1.4, .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 .4s ease-out .12s forwards; }
.rev-badge path + path { animation-delay: .3s; }
.rev-spinner { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 3.5px solid rgb(255 255 255 / .2); border-top-color: #fff; animation: rev-spin .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: .5rem; color: rgb(255 255 255 / .7); font-size: .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(.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; }
}

/* Documents tab on the department dashboard. */
.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: .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 .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: .35rem; height: 2.35rem; padding: 0 .95rem; border-radius: 999px; background: var(--foreground); color: var(--background); font: 600 .84rem Inter, sans-serif; transition: opacity .15s; }
.doc-row:hover .doc-open { opacity: .86; }
.doc-open svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 500px) { .doc-row { gap: .75rem; padding: .9rem; } .doc-head { padding: .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: .65rem; min-height: 2.9rem; max-width: 100%; padding: .55rem .9rem .55rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--foreground); font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .15s; }
.dash-wave-button:hover { border-color: var(--muted); }
.dash-wave-arrow { flex: none; width: .5rem; height: .5rem; margin-top: -.2rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s, margin .2s; }
[aria-expanded="true"] > .dash-wave-arrow { margin-top: .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: .5rem 0 0; padding: .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 / .22); animation: wiz-in .18s cubic-bezier(.2, .7, .2, 1); }
.dash-wave-menu li { padding: .6rem .8rem; border-radius: .7rem; font-size: .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: .35rem; height: .65rem; margin-left: .8rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
/* The site's own dropdown (assets/js/select.js). The button takes the classes the select had. */
.okla-select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.okla-select { display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 0; text-align: left; cursor: pointer; }
.okla-select:disabled { opacity: .6; cursor: not-allowed; }
.okla-select-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.okla-select-label[data-empty] { opacity: .65; }
.okla-select-arrow { flex: none; width: .5rem; height: .5rem; margin: -.2rem .15rem 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s, margin .2s; }
[aria-expanded="true"] > .okla-select-arrow { margin-top: .2rem; transform: rotate(225deg); }
.okla-select-menu { position: fixed; z-index: 90; width: max-content; max-width: calc(100vw - 16px); padding: .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 / .22); animation: wiz-in .16s cubic-bezier(.2, .7, .2, 1); }
.okla-select-option { display: block; width: 100%; padding: .55rem .75rem; border: 0; border-radius: .65rem; background: transparent; color: inherit; font: inherit; font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer; }
.okla-select-option.active { background: var(--surface-2); }
.okla-select-option[aria-selected="true"] { font-weight: 800; }
.okla-select-option:disabled { opacity: .45; cursor: not-allowed; }

.okla-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); }
.okla-date-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.okla-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; }
.okla-date-head button:hover { background: var(--surface-2); }
.okla-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.okla-date-dow { padding: 4px 0; color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: center; }
.okla-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; }
.okla-date-grid button:hover:not(:disabled), .okla-date-grid button[data-active="true"] { background: var(--surface-2); }
.okla-date-grid button[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--muted); }
.okla-date-grid button[data-picked="true"] { background: var(--foreground); color: var(--background); }
.okla-date-grid button:disabled { opacity: 0.3; cursor: not-allowed; }
.okla-date-icon { flex: none; width: .95rem; height: .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: .9rem; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.dash-chooser-toggle:hover { border-color: var(--muted); }
.dash-chooser-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .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: .88rem; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, border-color .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: .7rem; }
.dash-chooser-link { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.dash-chooser-link:hover { color: var(--foreground); }

/* 404 page (404.html). The CAD has its own copy of this design in src/app/not-found.tsx. */
.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)/.9 "Inter Tight", sans-serif; letter-spacing: -.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: -.02em; }
.nf-text { margin-top: .7rem; color: var(--muted); }
.nf-call { width: 100%; margin: 1.6rem 0 0; padding: .35rem 1.1rem; text-align: left; }
.nf-call div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .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: .86rem; }
.nf-call dd { min-width: 0; margin: 0; font: 500 .84rem "JetBrains Mono", ui-monospace, monospace; text-align: right; overflow-wrap: anywhere; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .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); }
