:root {
  --ink: #e7f5ff;
  --muted: #8ea5b8;
  --soft: #c9d9e6;
  --line: rgba(126, 178, 209, .18);
  --line-strong: rgba(126, 231, 255, .34);
  --panel: rgba(10, 20, 34, .74);
  --panel-solid: #0d1a2b;
  --canvas: #060b14;
  --cyan: #61e7ff;
  --mint: #3df2bd;
  --blue: #5aa7ff;
  --violet: #8d7dff;
  --amber: #f1b84b;
  --red: #ff7777;
  --green: #56f0a2;
  --shadow: 0 26px 90px rgba(0, 0, 0, .38);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--canvas);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 16px;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 42%, rgba(97, 231, 255, .15), transparent 28%),
    var(--canvas);
}

.loader-mark {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(142, 165, 184, .24);
  border-top-color: var(--cyan);
  border-radius: 999px;
  animation: spin .8s linear infinite;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding: clamp(24px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(125, 249, 255, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(125, 249, 255, .065) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(34, 211, 238, .24), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(20, 184, 166, .18), transparent 30%),
    linear-gradient(135deg, #06111f 0%, #0b1628 46%, #081d28 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  overflow: hidden;
  overflow-x: hidden;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: clamp(6px, .7vw, 10px);
  background: linear-gradient(180deg, #22d3ee, #14b8a6 48%, #8b5cf6);
  box-shadow: 0 0 28px rgba(34, 211, 238, .45);
}

.login-page::after {
  content: "";
  position: fixed;
  right: -16vw;
  bottom: -24vh;
  width: min(46vw, 620px);
  height: min(46vw, 620px);
  border: 1px solid rgba(125, 249, 255, .13);
  border-radius: 50%;
  box-shadow: inset 0 0 0 42px rgba(34, 211, 238, .03), 0 0 120px rgba(20, 184, 166, .12);
  pointer-events: none;
}

.login-identity {
  position: relative;
  min-height: min(700px, calc(100vh - 72px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  min-width: 0;
}

.login-identity__brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #e6fbff;
  font-weight: 900;
  animation: rise .42s ease both;
}

.login-brand-mark,
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #03111c;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(97, 231, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .58);
  font-weight: 900;
}

.login-identity__copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  align-self: center;
  animation: rise .5s ease .04s both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-identity__copy h1 {
  margin: 0;
  max-width: 620px;
  color: #f8feff;
  font-size: clamp(46px, 6.5vw, 86px);
  line-height: .98;
  letter-spacing: 0;
}

.login-identity__copy p:last-child {
  max-width: 420px;
  margin: 20px 0 0;
  color: rgba(230, 251, 255, .68);
  font-size: 17px;
  line-height: 1.8;
}

.access-orbit {
  position: relative;
  z-index: 1;
  width: min(58vw, 560px);
  height: 220px;
  align-self: end;
  border: 1px solid rgba(125, 249, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(125, 249, 255, .08), transparent 42%),
    rgba(7, 19, 34, .58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: rise .55s ease .12s both;
}

.access-orbit::before,
.access-orbit::after {
  content: "";
  position: absolute;
  inset: 28px 38px;
  border: 1px solid rgba(125, 249, 255, .2);
  border-radius: 50%;
}

.access-orbit::after {
  inset: 58px 108px;
  border-color: rgba(20, 184, 166, .34);
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #05131f;
  background: linear-gradient(135deg, #7df9ff, #14b8a6);
  border-radius: 18px;
  box-shadow: 0 0 48px rgba(34, 211, 238, .42), 0 20px 44px rgba(0, 0, 0, .28);
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 900;
}

.orbit-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #7df9ff;
  box-shadow: 0 0 0 9px rgba(125, 249, 255, .12), 0 0 26px rgba(125, 249, 255, .72);
  animation: orbit-pulse 2.8s ease-in-out infinite;
}

.orbit-node--one {
  left: 18%;
  top: 36%;
}

.orbit-node--two {
  right: 18%;
  top: 30%;
  background: #14b8a6;
  box-shadow: 0 0 0 9px rgba(20, 184, 166, .12), 0 0 26px rgba(20, 184, 166, .68);
  animation-delay: .45s;
}

.orbit-node--three {
  left: 62%;
  bottom: 20%;
  background: #8b5cf6;
  box-shadow: 0 0 0 9px rgba(139, 92, 246, .12), 0 0 26px rgba(139, 92, 246, .62);
  animation-delay: .9s;
}

.orbit-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 249, 255, .52), transparent);
  transform-origin: left center;
}

.orbit-line--a {
  left: 20%;
  top: 42%;
  width: 32%;
  transform: rotate(8deg);
}

.orbit-line--b {
  left: 53%;
  top: 46%;
  width: 31%;
  transform: rotate(-14deg);
}

.orbit-line--c {
  left: 52%;
  top: 58%;
  width: 22%;
  transform: rotate(38deg);
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px;
  color: #e6fbff;
  background:
    linear-gradient(145deg, rgba(125, 249, 255, .12), transparent 34%),
    rgba(7, 19, 34, .78);
  border: 1px solid rgba(125, 249, 255, .2);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px);
  animation: panel-in .5s ease .03s both;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 5px;
  background: linear-gradient(90deg, #7df9ff, #14b8a6, #8b5cf6);
  border-radius: 0 0 8px 8px;
}

.login-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #7df9ff;
  font-size: 13px;
  font-weight: 900;
}

.login-card__topline i {
  width: 72px;
  height: 1px;
  background: rgba(125, 249, 255, .34);
}

.login-card__heading h2,
.directory-hero h1,
.empty-state h2,
.project-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-card__heading h2 {
  margin-top: 12px;
  color: #f8feff;
  font-size: 38px;
  line-height: 1.16;
}

.login-card__heading p {
  margin: 10px 0 28px;
  color: rgba(230, 251, 255, .62);
}

.login-form {
  display: grid;
  gap: 14px;
}

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

.login-card label {
  color: rgba(230, 251, 255, .72);
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(4, 12, 23, .64);
  border: 1px solid rgba(125, 249, 255, .18);
  border-radius: 8px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input::placeholder {
  color: rgba(201, 217, 230, .42);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(97, 231, 255, .12), 0 0 28px rgba(97, 231, 255, .13);
}

.primary-button,
.ghost-button,
.copy-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.primary-button {
  position: relative;
  overflow: hidden;
  padding: 0 18px;
  color: #03111c;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 18px 34px rgba(61, 242, 189, .2), 0 0 26px rgba(97, 231, 255, .16);
}

.primary-button.is-loading {
  color: rgba(3, 17, 28, .78);
}

.primary-button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .52), transparent);
  transform: translateX(-120%);
  animation: button-scan 1s ease-in-out infinite;
}

.ghost-button {
  padding: 0 14px;
  color: var(--soft);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(126, 231, 255, .18);
}

.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgba(126, 231, 255, .38);
  background: rgba(97, 231, 255, .08);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #fca5a5;
  font-size: 13px;
}

.form-message.is-info {
  color: var(--cyan);
}

.workspace {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(97, 231, 255, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(97, 231, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, rgba(90, 167, 255, .22), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(61, 242, 189, .16), transparent 24%),
    radial-gradient(circle at 70% 88%, rgba(141, 125, 255, .14), transparent 28%),
    linear-gradient(145deg, #050911 0%, #071523 52%, #06101c 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto, auto;
}

.workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 46%, rgba(97, 231, 255, .08) 46.2%, transparent 46.5% 100%),
    linear-gradient(70deg, transparent 0 62%, rgba(61, 242, 189, .07) 62.2%, transparent 62.5% 100%);
  pointer-events: none;
}

.directory-shell {
  position: relative;
  z-index: 1;
  width: min(1680px, 100%);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  margin: 0 auto;
  padding: 20px clamp(14px, 2vw, 28px) 36px;
}

.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #eefbff;
  font-weight: 900;
}

.brand-lockup span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(97, 231, 255, .08), transparent 38%),
    rgba(8, 18, 31, .72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
}

.project-grid {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: auto;
}

.project-card {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: clamp(16px, 1.8vw, 24px);
  animation: rise .34s ease both;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(97, 231, 255, .34), transparent 28%),
    linear-gradient(180deg, rgba(61, 242, 189, .12), transparent 36%);
  opacity: .42;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(97, 231, 255, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 22px rgba(97, 231, 255, .035), 0 0 48px rgba(61, 242, 189, .08);
  pointer-events: none;
}

.project-card__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.project-card__meta > span:not(.chip) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.project-card h2 {
  color: #f8feff;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.08;
}

.project-card__header p {
  max-width: 680px;
  margin: 7px 0 0;
  color: rgba(231, 245, 255, .68);
  font-size: 13px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 8px;
  max-width: 360px;
}

.project-card__tags span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.project-card__tags span {
  color: var(--soft);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(126, 178, 209, .16);
}

.chip {
  color: #052315;
  background: var(--green);
}

.chip--testing {
  color: #2a1900;
  background: var(--amber);
}

.chip--paused {
  color: #06101c;
  background: #99a8b8;
}

.project-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 14px;
}

.project-card__body section {
  min-width: 0;
}

.project-card__body h3 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.readonly-link-grid,
.readonly-account-stack {
  display: grid;
  gap: 8px;
}

.readonly-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

@media (min-width: 1180px) {
  .readonly-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.readonly-link,
.readonly-account {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  color: var(--soft);
  background: rgba(3, 11, 20, .42);
  border: 1px solid rgba(126, 178, 209, .16);
  border-radius: 8px;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.readonly-link:hover,
.readonly-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(97, 231, 255, .66);
  background:
    linear-gradient(135deg, rgba(97, 231, 255, .16), transparent 54%),
    rgba(3, 11, 20, .54);
  box-shadow: 0 18px 38px rgba(97, 231, 255, .1);
}

.readonly-link strong,
.readonly-account strong {
  min-width: 0;
  overflow: hidden;
  color: #f8feff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readonly-link strong {
  padding-right: 0;
}

.readonly-link small {
  min-width: 0;
  overflow: hidden;
  color: var(--cyan);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: rgba(97, 231, 255, .42);
  text-underline-offset: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readonly-link:hover small,
.readonly-link:focus-visible small {
  color: #f8feff;
  text-decoration-color: rgba(248, 254, 255, .7);
}

.readonly-link em {
  min-width: 0;
  overflow: hidden;
  color: rgba(201, 217, 230, .62);
  font-size: 11.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readonly-account code {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f8feff;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readonly-account > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.readonly-account span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.readonly-account p,
.note-text {
  margin: 0;
  overflow: hidden;
  color: rgba(201, 217, 230, .68);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 28px;
  padding: 0 8px;
  color: #03111c;
  background: var(--cyan);
  border: 1px solid rgba(97, 231, 255, .54);
  font-size: 12px;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.empty-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(97, 231, 255, .3);
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(97, 231, 255, .82) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(97, 231, 255, .82) 46% 54%, transparent 54%),
    rgba(97, 231, 255, .09);
  box-shadow: 0 0 34px rgba(97, 231, 255, .2);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: .62;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes button-scan {
  to {
    transform: translateX(120%);
  }
}

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

@media (max-width: 1100px) {
  .login-page,
  .project-card__body {
    grid-template-columns: 1fr;
  }

  .login-page {
    gap: 26px;
    overflow: auto;
  }

  .login-identity {
    min-height: auto;
  }

  .access-orbit {
    width: 100%;
  }

  .readonly-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .login-page {
    padding: 14px;
  }

  .login-identity {
    gap: 26px;
  }

  .login-identity__copy h1 {
    font-size: 38px;
  }

  .access-orbit {
    height: 160px;
  }

  .orbit-core {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .login-card {
    padding: 24px;
  }

  .directory-shell {
    padding: 16px 12px 28px;
  }

  .directory-header {
    align-items: flex-start;
  }

  .brand-lockup {
    max-width: calc(100% - 112px);
  }

  .project-card {
    padding: 16px;
  }

  .project-card::after {
    display: none;
  }

  .project-card__header,
  .readonly-link-grid {
    grid-template-columns: 1fr;
  }

  .project-card__tags {
    justify-content: flex-start;
  }

  .readonly-account > div {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: max-content;
  }
}
