* {
  box-sizing: border-box;
}

:root {
  --bg: #090909;
  --bg-2: #12110f;
  --ink: #f8f2e8;
  --muted: #b3aa9d;
  --soft: #756f66;
  --panel: rgba(248, 242, 232, .075);
  --panel-strong: rgba(248, 242, 232, .12);
  --field: rgba(0, 0, 0, .34);
  --line: rgba(248, 242, 232, .16);
  --line-strong: rgba(248, 242, 232, .28);
  --cyan: #82f0df;
  --cyan-soft: rgba(130, 240, 223, .14);
  --coral: #ff8d6b;
  --coral-soft: rgba(255, 141, 107, .16);
  --yellow: #f5c66d;
  --green: #7ee2a8;
  --red: #ff7b8b;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

html {
  min-height: 100%;
  background: var(--bg);
}

html,
body {
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  background:
    linear-gradient(120deg, rgba(130, 240, 223, .11), transparent 34%),
    linear-gradient(250deg, rgba(255, 141, 107, .16), transparent 36%),
    linear-gradient(180deg, #161412 0%, #090909 64%, #050505 100%);
  overflow-x: hidden;
}

.motionCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
  mix-blend-mode: screen;
}

#app {
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(248, 242, 232, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 242, 232, .028) 1px, transparent 1px);
  background-size: 74px 74px;
  animation: gridDrift 24s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0, transparent 26px, rgba(248, 242, 232, .026) 27px, transparent 28px),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .28) 100%);
  opacity: .82;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: var(--field);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(248, 242, 232, .055);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

select option {
  color: #111;
  background: #f7efe3;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(130, 240, 223, .78);
  box-shadow: 0 0 0 3px rgba(130, 240, 223, .13);
}

.primary,
.ghost,
.danger,
.actions button,
.heroActions button,
.topNav nav button,
.adminLogActionButton {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(248, 242, 232, .075);
  font-weight: 780;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.primary {
  color: #051412;
  border-color: rgba(130, 240, 223, .78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #a8fff1, var(--cyan));
  box-shadow: 0 12px 30px rgba(130, 240, 223, .22);
}

.primary:hover,
.ghost:hover,
.actions button:hover,
.heroActions button:hover,
.adminLogActionButton:hover {
  transform: translateY(-2px);
}

.primary:hover {
  box-shadow: 0 16px 42px rgba(130, 240, 223, .32);
}

.ghost:hover,
.actions button:hover,
.heroActions button:hover,
.adminLogActionButton:hover {
  border-color: rgba(255, 141, 107, .55);
  background: rgba(255, 141, 107, .12);
  color: #ffe0d5;
}

.danger {
  color: #ffd5db;
  border-color: rgba(255, 123, 139, .38);
  background: rgba(255, 123, 139, .10);
}

.danger:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 123, 139, .72);
  background: rgba(255, 123, 139, .16);
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 141, 107, .34);
  border-radius: 999px;
  color: #ffc0aa;
  background: rgba(255, 141, 107, .11);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0;
}

.authPage {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.notFoundPage {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.notFoundStage {
  position: relative;
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 56px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(130, 240, 223, .13), transparent 42%),
    linear-gradient(310deg, rgba(255, 141, 107, .18), transparent 44%),
    rgba(11, 10, 9, .74);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  animation: stageIn .7s cubic-bezier(.2, .8, .2, 1) both;
}

.notFoundStage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 62px, rgba(248, 242, 232, .045) 63px, transparent 64px),
    repeating-linear-gradient(0deg, transparent 0, transparent 62px, rgba(248, 242, 232, .035) 63px, transparent 64px);
  animation: gridDrift 30s linear infinite;
}

.notFoundStage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--coral), transparent);
  animation: lineSweep 3.2s ease-in-out infinite;
}

.notFoundStage > * {
  position: relative;
  z-index: 2;
}

.notFoundTopline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.notFoundGrid {
  position: absolute;
  inset: 92px 28px 90px;
  z-index: 1;
  border: 1px solid rgba(248, 242, 232, .10);
  opacity: .78;
}

.notFoundGrid span {
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: rgba(130, 240, 223, .40);
  border-style: solid;
}

.notFoundGrid span:nth-child(1) {
  top: 18px;
  left: 18px;
  border-width: 1px 0 0 1px;
}

.notFoundGrid span:nth-child(2) {
  top: 18px;
  right: 18px;
  border-width: 1px 1px 0 0;
}

.notFoundGrid span:nth-child(3) {
  right: 18px;
  bottom: 18px;
  border-width: 0 1px 1px 0;
}

.notFoundGrid span:nth-child(4) {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 1px 1px;
}

.notFoundCopy {
  min-height: 560px;
  max-width: 760px;
  display: grid;
  align-content: center;
  animation: fadeUp .52s .08s cubic-bezier(.2, .8, .2, 1) both;
}

.notFoundCopy h1 {
  margin: 12px 0 10px;
  color: #fff8ed;
  font-size: 132px;
  line-height: .88;
  letter-spacing: 0;
}

.notFoundCopy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.notFoundActions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notFoundActions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notFoundReadout {
  position: absolute;
  right: 42px;
  bottom: 42px;
  z-index: 2;
  width: min(360px, 34%);
  display: grid;
  gap: 8px;
}

.notFoundReadout i {
  display: block;
  height: 8px;
  border: 1px solid rgba(248, 242, 232, .11);
  background: linear-gradient(90deg, rgba(255, 141, 107, .26), transparent);
  transform-origin: left;
  animation: rowPulse 2.3s ease-in-out infinite;
}

.notFoundReadout i:nth-child(2) { animation-delay: .14s; }
.notFoundReadout i:nth-child(3) { animation-delay: .28s; }
.notFoundReadout i:nth-child(4) { animation-delay: .42s; }
.notFoundReadout i:nth-child(5) { animation-delay: .56s; }

.authStage {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(248, 242, 232, .085), rgba(248, 242, 232, .03)),
    rgba(11, 10, 9, .74);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  animation: stageIn .7s cubic-bezier(.2, .8, .2, 1) both;
}

.authStage::before,
.authCard::before,
.dashboardHero::before,
.metric::before,
.statusPanel::before,
.leaderCard::before,
.scoreTableWrap::before,
.adminForm::before,
.modal::before,
.modalCard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(130, 240, 223, .16), rgba(255, 141, 107, .075) 34%, transparent 66%);
  opacity: var(--spot, 0);
  transition: opacity .2s ease;
  mix-blend-mode: screen;
}

.authStage > *,
.authCard > *,
.dashboardHero > *,
.metric > *,
.statusPanel > *,
.leaderCard > *,
.scoreTableWrap > *,
.adminForm > *,
.modal > *,
.modalCard > * {
  position: relative;
  z-index: 1;
}

.authBrandPanel {
  position: relative;
  min-height: 620px;
  padding: 28px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
}

.authBrandPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(130, 240, 223, .16), transparent 44%),
    linear-gradient(310deg, rgba(255, 141, 107, .20), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0, transparent 54px, rgba(248, 242, 232, .045) 55px, transparent 56px);
  animation: panelLight 10s ease-in-out infinite alternate;
}

.authBrandPanel > * {
  position: relative;
}

.authTopline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 830;
}

.authStatement {
  max-width: 620px;
  align-self: center;
  animation: fadeUp .46s cubic-bezier(.2, .8, .2, 1) both;
}

.authStatement h1 {
  margin: 18px 0 12px;
  color: #fff8ed;
  font-size: 76px;
  line-height: .92;
  letter-spacing: 0;
}

.authStatement p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.authSignalField {
  position: absolute;
  right: 46px;
  bottom: 80px;
  width: 250px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: .94;
}

.authSignalField span {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(130, 240, 223, .32);
  transform: rotate(8deg);
}

.authSignalField span:nth-child(1) {
  animation: ringSpin 16s linear infinite;
}

.authSignalField span:nth-child(2) {
  inset: 54px;
  border-color: rgba(255, 141, 107, .36);
  animation: ringSpinReverse 13s linear infinite;
}

.authSignalField span:nth-child(3) {
  inset: 90px;
  border-color: rgba(248, 242, 232, .20);
  animation: ringSpin 20s linear infinite reverse;
}

.authSignalField i {
  position: absolute;
  inset: 72px;
  z-index: 4;
  border: 1px solid rgba(130, 240, 223, .26);
  background:
    linear-gradient(90deg, transparent 49%, rgba(130, 240, 223, .26) 50%, transparent 51%),
    linear-gradient(180deg, transparent 49%, rgba(255, 141, 107, .22) 50%, transparent 51%),
    rgba(0, 0, 0, .10);
  transform: translateY(-110%);
  animation: artifactFloat 5s ease-in-out infinite;
}

.authTicker {
  width: calc(100% + 56px);
  margin: 0 -28px -28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .20);
  overflow: hidden;
}

.authTicker div {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 13px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  animation: ticker 20s linear infinite;
}

.authCard {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  position: relative;
  padding: 30px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(248, 242, 232, .11), rgba(248, 242, 232, .04)),
    rgba(18, 16, 14, .82);
  display: grid;
  align-content: center;
  overflow: hidden;
  animation: fadeUp .46s .04s cubic-bezier(.2, .8, .2, 1) both;
}

.authCard h2 {
  margin: 18px 0 8px;
  color: #fff8ed;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.authCard p {
  margin: 0;
  color: var(--muted);
}

.authCard form {
  margin-top: 24px;
}

.authSwitch {
  width: fit-content;
  margin-top: 14px;
}

.layout {
  min-height: 100vh;
}

.topNav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, .72);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brandArtifactImage {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(248, 242, 232, .20);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .26);
}

.brandText {
  min-width: 0;
}

.brand strong {
  display: block;
  color: #fff8ed;
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topNav nav {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 242, 232, .04);
}

.topNav nav button {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.topNav nav button.active {
  color: #081311;
  background: var(--cyan);
  box-shadow: 0 8px 24px rgba(130, 240, 223, .22);
}

.userBox {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.userBox div {
  min-width: 0;
  text-align: right;
}

.userBox strong {
  display: block;
  overflow: hidden;
  max-width: 170px;
  color: #fff8ed;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userBox span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.content {
  width: 100%;
  min-width: 0;
  padding: 28px;
}

.screen {
  width: min(1240px, 100%);
  margin: 0 auto;
  animation: fadeUp .48s cubic-bezier(.2, .8, .2, 1) both;
}

.dashboardHero {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  position: relative;
  min-height: 390px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .7fr);
  align-items: stretch;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(130, 240, 223, .12), transparent 48%),
    linear-gradient(300deg, rgba(255, 141, 107, .15), transparent 42%),
    rgba(248, 242, 232, .055);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.dashboardHero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--cyan), transparent);
  animation: lineSweep 3.8s ease-in-out infinite;
}

.heroCopy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  max-width: 720px;
}

.heroCopy h1 {
  margin: 18px 0 12px;
  color: #fff8ed;
  font-size: 58px;
  line-height: .98;
  letter-spacing: 0;
}

.heroCopy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.heroActions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.heroInstrument {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(248, 242, 232, .08), rgba(248, 242, 232, .02)),
    rgba(0, 0, 0, .22);
  overflow: hidden;
}

.heroInstrument::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(130, 240, 223, .18);
  animation: instrumentFrame 4.4s ease-in-out infinite;
}

.instrumentTop {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.instrumentTop.onlineOnly {
  justify-content: flex-end;
}

.pulseCore {
  position: absolute;
  inset: 74px 44px 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}

.pulseCore span {
  display: block;
  min-height: 42px;
  border: 1px solid rgba(130, 240, 223, .24);
  background: linear-gradient(180deg, rgba(130, 240, 223, .34), rgba(130, 240, 223, .04));
  animation: signalBars 1.7s ease-in-out infinite alternate;
}

.pulseCore span:nth-child(2) {
  animation-delay: .22s;
}

.pulseCore span:nth-child(3) {
  animation-delay: .44s;
}

.instrumentRows {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 7px;
}

.instrumentRows i {
  display: block;
  height: 8px;
  border: 1px solid rgba(248, 242, 232, .10);
  background: linear-gradient(90deg, rgba(255, 141, 107, .24), transparent);
  transform-origin: left;
  animation: rowPulse 2.2s ease-in-out infinite;
}

.instrumentRows i:nth-child(2) { animation-delay: .15s; }
.instrumentRows i:nth-child(3) { animation-delay: .3s; }
.instrumentRows i:nth-child(4) { animation-delay: .45s; }
.instrumentRows i:nth-child(5) { animation-delay: .6s; }

.headline {
  margin-bottom: 22px;
  padding: 26px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.headline h1 {
  margin: 12px 0 6px;
  color: #fff8ed;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: 0;
}

.headline p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.dashGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.adminDashGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric,
.statusPanel,
.adminForm,
.empty,
.emptyState,
.leaderCard,
.scoreTableWrap {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(248, 242, 232, .085), rgba(248, 242, 232, .028)),
    rgba(0, 0, 0, .18);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .24);
  overflow: hidden;
  isolation: isolate;
}

.metric {
  min-height: 132px;
  padding: 18px;
  animation: fadeUp .5s cubic-bezier(.2, .8, .2, 1) both;
}

.metric:nth-child(2) { animation-delay: .06s; }
.metric:nth-child(3) { animation-delay: .12s; }

.metric span,
.leaderCard span {
  color: #ffc0aa;
  font-size: 12px;
  font-weight: 830;
}

.metric strong {
  display: block;
  margin-top: 20px;
  color: #fff8ed;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.metric p,
.statusPanel p,
.leaderCard p {
  margin: 8px 0 0;
  color: var(--muted);
}

.overviewGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.statusPanel {
  min-height: 150px;
  padding: 18px;
}

.statusPanel h2,
.leaderCard h2 {
  margin: 12px 0 0;
  color: #fff8ed;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.tasksGrid {
  display: grid;
  gap: 28px;
}

.taskCategoryBlock {
  display: grid;
  gap: 12px;
  animation: fadeUp .45s cubic-bezier(.2, .8, .2, 1) both;
}

.taskCategoryHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.taskCategoryHeader h2 {
  margin: 0;
  color: #fff8ed;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.taskCategoryHeader span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.taskGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.taskCard {
  --lift: 0px;
  --tiltX: 0deg;
  --tiltY: 0deg;
  position: relative;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(130, 240, 223, .09), transparent 45%),
    linear-gradient(320deg, rgba(255, 141, 107, .13), transparent 48%),
    rgba(248, 242, 232, .055);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .25);
  display: grid;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
  cursor: pointer;
  animation: cardIn .48s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transform: translateY(var(--lift)) rotateX(var(--tiltX)) rotateY(var(--tiltY));
  transform-style: preserve-3d;
  transition: transform .16s ease, border-color .22s ease, box-shadow .22s ease;
}

.taskCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(248, 242, 232, .16) 42%, transparent 58%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.taskCard::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  transform: scaleX(.22);
  transform-origin: left;
  opacity: .55;
  transition: transform .22s ease, opacity .22s ease;
}

.taskCard:hover {
  --lift: -5px;
  border-color: rgba(130, 240, 223, .42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .34);
}

.taskCard:hover::before {
  transform: translateX(120%);
}

.taskCard:hover::after {
  transform: scaleX(1);
  opacity: .95;
}

.taskCardTop,
.taskCardFoot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.taskCardTop > span,
.taskCardFoot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.taskCard h2 {
  position: relative;
  margin: 0;
  color: #fff8ed;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.taskCard strong {
  color: var(--cyan);
  font-size: 14px;
}

.difficultyBadge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(248, 242, 232, .065);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
}

.difficultyEasy {
  color: var(--green);
  border-color: rgba(126, 226, 168, .34);
  background: rgba(126, 226, 168, .10);
}

.difficultyMedium {
  color: var(--yellow);
  border-color: rgba(245, 198, 109, .34);
  background: rgba(245, 198, 109, .10);
}

.difficultyHard {
  color: var(--red);
  border-color: rgba(255, 123, 139, .34);
  background: rgba(255, 123, 139, .10);
}

.leaderCard {
  margin-bottom: 14px;
  padding: 18px;
}

.scoreTableWrap {
  min-height: 84px;
  overflow-x: auto;
}

.scoreTable {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.scoreTable th,
.scoreTable td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.scoreTable th {
  color: #ffc0aa;
  background: rgba(248, 242, 232, .055);
  font-size: 12px;
  font-weight: 830;
}

.scoreTable tbody tr {
  animation: fadeUp .42s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
  transition: background .16s ease;
}

.scoreTable tbody tr:hover {
  background: rgba(248, 242, 232, .045);
}

.scoreTable tbody tr:last-child td {
  border-bottom: 0;
}

.scoreTable .rank {
  color: var(--cyan);
  font-weight: 850;
}

.scoreTable td span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.adminSectionTitle {
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.adminSectionTitle h2 {
  margin: 0;
  color: #fff8ed;
  font-size: 24px;
  letter-spacing: 0;
}

.adminSectionTitle p {
  margin: 0;
  color: var(--muted);
}

.adminTasks {
  margin-top: 12px;
}

.adminForm {
  max-width: 940px;
  margin-top: 14px;
  padding: 18px;
}

.adminForm h2,
.taskFilesBox h3,
.feedbackBox h3 {
  margin: 0 0 16px;
  color: #fff8ed;
  font-size: 22px;
  letter-spacing: 0;
}

.formGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
  gap: 12px;
}

.attachForm {
  margin-top: 16px;
}

.empty,
.emptyState {
  padding: 24px;
  color: var(--muted);
}

.empty.big {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 18px;
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px);
  animation: fadeIn .22s ease both;
}

.modal,
.modalCard {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  position: relative;
  width: min(780px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(130, 240, 223, .08), transparent 42%),
    linear-gradient(300deg, rgba(255, 141, 107, .12), transparent 42%),
    #151311;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .54);
  animation: modalIn .26s cubic-bezier(.2, .8, .2, 1) both;
  isolation: isolate;
}

.modalClose {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(248, 242, 232, .07);
  font-size: 24px;
  line-height: 1;
}

.modalClose:hover {
  border-color: rgba(255, 123, 139, .62);
  color: #ffd5db;
  background: rgba(255, 123, 139, .12);
}

.taskMeta {
  margin: 0 52px 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taskMeta .tag {
  color: var(--cyan);
  border-color: rgba(130, 240, 223, .3);
  background: rgba(130, 240, 223, .10);
}

.modal h1 {
  margin: 0 0 12px;
  color: #fff8ed;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.modal p {
  color: var(--muted);
}

.taskLink,
.taskUrlButton,
.downloadBtn {
  color: var(--cyan);
  font-weight: 760;
  text-decoration: none;
}

.taskLink:hover,
.taskUrlButton:hover,
.downloadBtn:hover {
  text-decoration: underline;
}

.taskUrlButton,
.downloadBtn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  min-height: 40px;
  margin: 6px 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(130, 240, 223, .28);
  border-radius: var(--radius);
  background: rgba(130, 240, 223, .10);
}

.taskFilesBox,
.feedbackBox {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 242, 232, .055);
}

.taskFilesList {
  display: grid;
  gap: 8px;
}

.downloadBtn {
  margin: 0;
}

.downloadBtn span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

#flagForm {
  margin-top: 20px;
}

#flagInput {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.stars button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(248, 242, 232, .07);
  font-size: 20px;
}

.stars button.active {
  color: #120b08;
  border-color: rgba(255, 141, 107, .68);
  background: linear-gradient(180deg, #ffc0aa, var(--coral));
}

.modalTop {
  display: flex;
  justify-content: space-between;
  gap: 52px;
  margin-bottom: 18px;
}

.modalTop h2 {
  margin: 10px 0 4px;
  color: #fff8ed;
  font-size: 27px;
  letter-spacing: 0;
}

.modalTop p {
  margin: 0;
  color: var(--muted);
}

.adminEditForm {
  display: grid;
  gap: 14px;
}

.adminEditActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.switchLine {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switchLine input {
  width: 18px;
  min-height: 18px;
}

.ok {
  color: var(--green);
  font-weight: 820;
}

.err {
  color: var(--red);
  font-weight: 820;
}

.hidden {
  display: none !important;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 74px 74px, 74px 74px; }
}

@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-2%, 1%, 0); }
  40% { transform: translate3d(2%, -2%, 0); }
  60% { transform: translate3d(1%, 2%, 0); }
  80% { transform: translate3d(-1%, -1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) rotateX(4deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panelLight {
  from { transform: translateX(-1.5%); opacity: .72; }
  to { transform: translateX(1.5%); opacity: 1; }
}

@keyframes artifactFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes ringSpin {
  to { transform: rotate(368deg); }
}

@keyframes ringSpinReverse {
  to { transform: rotate(-352deg); }
}

@keyframes scanDown {
  0%, 24% { transform: translateY(-110%); opacity: 0; }
  34% { opacity: 1; }
  58% { transform: translateY(110%); opacity: .7; }
  100% { transform: translateY(110%); opacity: 0; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes lineSweep {
  0%, 100% { opacity: .18; transform: translateX(-18%); }
  50% { opacity: 1; transform: translateX(18%); }
}

@keyframes instrumentFrame {
  0%, 100% { transform: scale(1); opacity: .38; }
  50% { transform: scale(.975); opacity: .9; }
}

@keyframes signalBars {
  from { transform: scaleY(.38); opacity: .55; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes rowPulse {
  0%, 100% { transform: scaleX(.25); opacity: .42; }
  50% { transform: scaleX(1); opacity: 1; }
}

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

  .motionCanvas {
    display: none;
  }
}

@media (max-width: 1100px) {
  .authStage,
  .dashboardHero {
    grid-template-columns: 1fr;
  }

  .authCard {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .authSignalField {
    right: 26px;
    bottom: 70px;
    opacity: .45;
  }

  .taskGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .authPage,
  .notFoundPage,
  .content {
    padding: 16px;
  }

  .authStage {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .authBrandPanel {
    order: 2;
    min-height: 250px;
    padding: 18px;
  }

  .authStatement h1 {
    font-size: 42px;
  }

  .authStatement p {
    max-width: 280px;
    font-size: 14px;
  }

  .authCard {
    order: 1;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .authSignalField {
    right: 14px;
    bottom: 42px;
    width: 150px;
    opacity: .5;
  }

  .authTicker {
    margin: 0 -18px -18px;
  }

  .topNav {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px 16px;
  }

  .topNav nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .topNav nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .userBox {
    justify-self: stretch;
    justify-content: space-between;
  }

  .userBox div {
    text-align: left;
  }

  .headline {
    display: grid;
    align-items: start;
  }

  .headline h1,
  .heroCopy h1 {
    font-size: 38px;
  }

  .notFoundCopy {
    min-height: 540px;
  }

  .notFoundCopy h1 {
    font-size: 92px;
  }

  .notFoundReadout {
    width: 52%;
    right: 24px;
    bottom: 26px;
  }

  .formGrid,
  .dashGrid,
  .overviewGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .authPage {
    padding: 10px;
  }

  .notFoundPage {
    padding: 10px;
  }

  .authBrandPanel,
  .authCard,
  .dashboardHero,
  .notFoundStage,
  .modal,
  .modalCard {
    padding: 18px;
  }

  .authBrandPanel {
    min-height: 230px;
  }

  .authStatement h1 {
    font-size: 42px;
  }

  .notFoundGrid {
    inset: 78px 18px 86px;
  }

  .notFoundCopy {
    min-height: 500px;
  }

  .notFoundCopy h1 {
    font-size: 74px;
  }

  .notFoundCopy p {
    font-size: 16px;
  }

  .notFoundReadout {
    display: none;
  }

  .authSignalField {
    display: none;
  }

  .taskGrid {
    grid-template-columns: 1fr;
  }

  .adminSectionTitle {
    display: grid;
  }

  .scoreTable {
    min-width: 560px;
  }

  .modalBackdrop {
    padding: 14px;
  }
}
