:root {
  --bg: #06100d;
  --bg-deep: #040b09;
  --surface: rgba(13, 29, 23, 0.82);
  --surface-solid: #0d1d17;
  --surface-raised: #11271f;
  --surface-input: #081611;
  --line: rgba(166, 255, 204, 0.11);
  --line-strong: rgba(166, 255, 204, 0.22);
  --text: #eefaf3;
  --text-soft: #c7d8ce;
  --muted: #8ba397;
  --faint: #617b6e;
  --accent: #7df7b2;
  --accent-bright: #a6ffca;
  --accent-strong: #35dc8a;
  --accent-ink: #04150c;
  --accent-soft: rgba(125, 247, 178, 0.1);
  --danger: #ff8089;
  --danger-soft: rgba(255, 128, 137, 0.09);
  --warning: #ffd37a;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 100px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.26);
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 8% -8%, rgba(40, 208, 124, 0.14), transparent 62%),
    radial-gradient(760px 540px at 105% 4%, rgba(33, 198, 164, 0.08), transparent 60%),
    linear-gradient(rgba(144, 255, 188, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 255, 188, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.app-page {
  display: flex;
  flex-direction: column;
}

body.auth-page {
  background-image:
    radial-gradient(1000px 720px at 12% 6%, rgba(44, 218, 134, 0.16), transparent 60%),
    radial-gradient(800px 600px at 92% 100%, rgba(27, 183, 152, 0.08), transparent 58%),
    linear-gradient(rgba(144, 255, 188, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 255, 188, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}

::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
}

.shell {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.page {
  flex: 1;
  padding-top: 22px;
  padding-bottom: 72px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.copy-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(125, 247, 178, 0.08), 0 0 14px rgba(125, 247, 178, 0.7);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 14, 11, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background:
    radial-gradient(circle at 30% 20%, rgba(125, 247, 178, 0.16), transparent 65%),
    rgba(16, 38, 29, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.runtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  background: rgba(255, 255, 255, 0.02);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.account-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(125, 247, 178, 0.24);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent-soft);
}

.header-actions form {
  display: flex;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 0.77rem;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

/* Buttons and form controls */

.btn {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn--primary {
  color: var(--accent-ink);
  border-color: rgba(190, 255, 214, 0.38);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 58%, #62ec9f);
  box-shadow: 0 8px 28px rgba(66, 230, 144, 0.14);
}

.btn--primary:hover {
  box-shadow: 0 12px 35px rgba(85, 245, 162, 0.22);
}

.btn--ghost {
  color: var(--text-soft);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(166, 255, 204, 0.36);
  background: rgba(125, 247, 178, 0.055);
}

.btn--danger {
  color: var(--danger);
  border-color: rgba(255, 128, 137, 0.28);
  background: var(--danger-soft);
}

.btn--danger:hover {
  border-color: rgba(255, 128, 137, 0.48);
  background: rgba(255, 128, 137, 0.15);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 48px;
  padding: 13px 20px;
  font-size: 0.9rem;
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:focus-visible,
.icon-button:focus-visible,
.copy-button:focus-visible,
.password-toggle:focus-visible,
.delete-button:focus-visible,
.flash-close:focus-visible,
input:focus-visible,
.dropzone:focus-visible,
.search-box:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: var(--surface-input);
  font-size: 0.9rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.input-wrap input::placeholder {
  color: var(--faint);
}

.input-wrap input:hover {
  border-color: rgba(166, 255, 204, 0.3);
}

.input-wrap input:focus {
  border-color: rgba(125, 247, 178, 0.62);
  background: #091b14;
  box-shadow: 0 0 0 4px rgba(125, 247, 178, 0.07);
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--faint);
  pointer-events: none;
}

.input-wrap .input-icon + input {
  padding-left: 43px;
}

.input-wrap--compact input {
  height: 44px;
  padding-left: 14px;
  font-family: var(--font-mono);
}

.input-prefix {
  position: absolute;
  left: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  pointer-events: none;
}

/* Flash */

.flash {
  position: fixed;
  top: calc(var(--header-height) + 18px);
  right: 24px;
  z-index: 60;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  align-items: flex-start;
  gap: 11px;
  padding: 14px 14px 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(11, 27, 21, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  animation: toast-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.flash--success {
  border-color: rgba(125, 247, 178, 0.28);
}

.flash--error {
  border-color: rgba(255, 128, 137, 0.32);
}

.flash-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
}

.flash-icon svg {
  width: 17px;
  height: 17px;
}

.flash--error .flash-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.flash p {
  flex: 1;
  padding-top: 3px;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.5;
}

.flash-close {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--faint);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.flash-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Dashboard hero */

.hero {
  padding: 34px 0 26px;
}

.hero-copy {
  animation: rise-in 500ms ease both;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-seal {
  position: relative;
  display: grid;
  width: 196px;
  height: 196px;
  place-items: center;
  justify-self: end;
}

.seal-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(125, 247, 178, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 247, 178, 0.045), transparent 62%);
}

.seal-ring::before,
.seal-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.seal-ring::before {
  inset: 18px;
  border: 1px dashed rgba(125, 247, 178, 0.22);
  animation: slow-spin 28s linear infinite;
}

.seal-ring::after {
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(125, 247, 178, 0.8);
}

.seal-ring--inner {
  inset: 34px;
  border-color: rgba(125, 247, 178, 0.09);
  background: transparent;
}

.seal-ring--inner::before {
  inset: -1px;
  border-style: solid;
  border-color: rgba(125, 247, 178, 0.25) transparent transparent;
  animation: slow-spin 12s linear infinite reverse;
}

.seal-ring--inner::after {
  display: none;
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

.seal-core {
  position: relative;
  z-index: 1;
  display: flex;
  width: 98px;
  height: 98px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(125, 247, 178, 0.13), rgba(8, 22, 16, 0.94) 62%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-md);
  font-family: var(--font-mono);
}

.seal-core span {
  color: var(--accent);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.seal-core small {
  color: var(--faint);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

/* Stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  animation: rise-in 520ms 80ms ease both;
}

.stat-card {
  position: relative;
  display: flex;
  min-height: 136px;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(24, 50, 38, 0.5), rgba(9, 21, 16, 0.65)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 247, 178, 0.28), transparent);
}

.stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(125, 247, 178, 0.055);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.stat-note {
  margin-top: 5px;
  color: var(--faint);
  font-size: 0.72rem;
}

/* Section heading */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 38px 0 16px;
}

.section-heading h2 {
  margin-top: 0;
  font-size: 1.52rem;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.search-box {
  display: flex;
  width: 248px;
  height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease;
}

.search-box svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--faint);
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--text);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.8rem;
}

.search-box input::placeholder {
  color: var(--faint);
}

.search-box:focus-within {
  border-color: rgba(125, 247, 178, 0.38);
  background: rgba(125, 247, 178, 0.03);
}

.search-empty {
  padding: 36px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.012);
}

/* Project cards */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 17px;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 170px at 100% 0%, rgba(88, 240, 158, 0.06), transparent 68%),
    linear-gradient(145deg, rgba(19, 40, 31, 0.78), rgba(9, 21, 17, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: rise-in 500ms ease both;
}

.project-card:nth-child(2) {
  animation-delay: 50ms;
}

.project-card:nth-child(3) {
  animation-delay: 100ms;
}

.project-card:nth-child(4) {
  animation-delay: 150ms;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 21px;
  width: 55px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 255, 204, 0.22);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-identity {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.project-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.project-identity h2,
.project-identity h3 {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  color: var(--faint);
  font-size: 0.7rem;
}

.endpoint-row {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 5px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 14, 10, 0.56);
}

.endpoint-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.copy-button svg {
  width: 16px;
  height: 16px;
}

.copy-button:hover {
  color: var(--accent);
  background: rgba(125, 247, 178, 0.08);
}

.copy-button.is-copied {
  width: auto;
  padding-inline: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  white-space: nowrap;
}

.project-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.project-actions .btn--primary {
  flex: 1;
}

.project-actions .btn--ghost {
  flex: 0 0 auto;
}

/* Empty state */

.empty-state {
  position: relative;
  overflow: hidden;
  padding: 46px 28px 42px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 280px at 50% -25%, rgba(125, 247, 178, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.012);
  text-align: center;
}

.empty-visual {
  position: relative;
  width: 112px;
  height: 86px;
  margin: 0 auto 20px;
}

.empty-cube {
  position: absolute;
  top: 12px;
  left: 26px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(125, 247, 178, 0.28);
  border-radius: 12px;
  background: rgba(125, 247, 178, 0.045);
  transform: rotate(8deg);
}

.empty-line {
  position: absolute;
  top: 45px;
  right: 0;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.empty-tag {
  position: absolute;
  bottom: 5px;
  left: 0;
  padding: 3px 7px;
  color: var(--accent);
  border: 1px solid rgba(125, 247, 178, 0.24);
  border-radius: 5px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.empty-state .eyebrow {
  justify-content: center;
}

.empty-state h2 {
  margin: 10px 0 7px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 440px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Create panel */

.create-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(125, 247, 178, 0.045), transparent 42%),
    rgba(11, 25, 19, 0.64);
}

.create-copy h2 {
  margin: 0 0 7px;
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.create-copy p {
  color: var(--muted);
  font-size: 0.8rem;
}

.create-copy code {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.create-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.create-field {
  flex: 1;
  min-width: 0;
}

.create-form .btn {
  height: 44px;
  flex: 0 0 auto;
}

.create-note {
  grid-column: 1 / -1;
  margin-top: -12px;
  color: var(--faint);
  font-size: 0.67rem;
}

/* Breadcrumb */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 150ms ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Project detail */

.project-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 38px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(650px 340px at 5% -10%, rgba(70, 229, 148, 0.11), transparent 68%),
    linear-gradient(145deg, rgba(22, 48, 36, 0.66), rgba(8, 20, 15, 0.88));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.project-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.project-hero-copy {
  min-width: 0;
}

.project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
}

.project-title-row h1 {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.title-prefix {
  margin-right: 0.24em;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: var(--accent);
  border: 1px solid rgba(125, 247, 178, 0.2);
  border-radius: 999px;
  background: rgba(125, 247, 178, 0.055);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

.project-description {
  max-width: 630px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.project-description strong {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-weight: 600;
}

.endpoint-box {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding: 10px 10px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 13, 9, 0.58);
}

.endpoint-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
}

.endpoint-icon svg {
  width: 16px;
  height: 16px;
}

.endpoint-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.endpoint-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.endpoint-content code {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button--text {
  width: auto;
  flex: 0 0 auto;
  gap: 6px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 0.67rem;
  white-space: nowrap;
}

.copy-button--text svg {
  width: 14px;
  height: 14px;
}

.copy-button--text.is-copied {
  font-size: 0.67rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.random-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 0.68rem;
}

.random-note svg {
  width: 15px;
  height: 15px;
}

.project-stats {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.project-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.project-stats-head h2 {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-stats dl {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-stats dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(166, 255, 204, 0.07);
}

.project-stats dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.project-stats dd {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
}

.project-stats dd small {
  margin-left: 2px;
  color: var(--faint);
  font-size: 0.58rem;
}

.project-stats .project-stats-date,
.project-stats .project-stats-mode {
  font-family: var(--font-sans);
  font-size: 0.72rem;
}

.project-stats-mode {
  color: var(--accent) !important;
}

.pool-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.09em;
}

.pool-bars {
  display: flex;
  height: 16px;
  align-items: flex-end;
  gap: 3px;
}

.pool-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--accent-strong), var(--accent));
  animation: meter 1.9s ease-in-out infinite;
}

.pool-bars i:nth-child(1) {
  height: 6px;
  animation-delay: -0.2s;
}

.pool-bars i:nth-child(2) {
  height: 11px;
  animation-delay: -0.5s;
}

.pool-bars i:nth-child(3) {
  height: 8px;
  animation-delay: -0.8s;
}

.pool-bars i:nth-child(4) {
  height: 15px;
  animation-delay: -0.35s;
}

.pool-bars i:nth-child(5) {
  height: 9px;
  animation-delay: -0.65s;
}

@keyframes meter {
  0%,
  100% {
    transform: scaleY(0.62);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Panels */

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(19, 39, 31, 0.5), rgba(8, 19, 15, 0.68)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.panel-index {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dropzone {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 26px;
  border: 1px dashed rgba(166, 255, 204, 0.24);
  border-radius: var(--radius-md);
  background:
    radial-gradient(340px 160px at 50% 0%, rgba(125, 247, 178, 0.055), transparent 70%),
    rgba(4, 14, 10, 0.35);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: rgba(125, 247, 178, 0.52);
  background:
    radial-gradient(360px 180px at 50% 0%, rgba(125, 247, 178, 0.1), transparent 70%),
    rgba(8, 24, 17, 0.5);
}

.dropzone.needs-file {
  border-color: rgba(255, 128, 137, 0.6);
  background: rgba(255, 128, 137, 0.045);
}

.dropzone-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  margin-bottom: 3px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(125, 247, 178, 0.06);
}

.dropzone-icon svg {
  width: 21px;
  height: 21px;
}

.dropzone-title {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.dropzone-hint {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.035em;
}

.selected-files {
  display: grid;
  gap: 6px;
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.72rem;
}

.selected-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-size {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.upload-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.upload-note {
  color: var(--faint);
  font-size: 0.67rem;
}

.how-panel {
  display: flex;
  flex-direction: column;
}

.rule-list {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.rule-list li {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(166, 255, 204, 0.075);
}

.rule-list li:first-child {
  padding-top: 2px;
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-number {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.rule-list strong {
  display: block;
  color: var(--text-soft);
  font-size: 0.79rem;
  font-weight: 600;
}

.rule-list p {
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.69rem;
  line-height: 1.6;
}

.rule-list code {
  color: var(--muted);
  font-size: 0.66rem;
}

.path-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 14, 10, 0.44);
}

.path-note span {
  color: var(--faint);
  font-size: 0.62rem;
}

.path-note code {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* File list */

.files-panel {
  margin-top: 18px;
  padding-bottom: 8px;
}

.panel-heading--files {
  align-items: center;
  margin-bottom: 15px;
}

.heading-count {
  display: inline-flex;
  min-width: 24px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 0 7px;
  color: var(--accent);
  border: 1px solid rgba(125, 247, 178, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  font-weight: 500;
  vertical-align: 3px;
}

.files-caption {
  color: var(--faint);
  font-size: 0.68rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.file-table th {
  padding: 10px 8px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.file-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(166, 255, 204, 0.06);
  vertical-align: middle;
}

.file-table tbody tr {
  transition: background 150ms ease;
}

.file-table tbody tr:hover {
  background: rgba(125, 247, 178, 0.025);
}

.file-table tbody tr:last-child td {
  border-bottom: 0;
}

.file-name-cell {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 10px;
}

.file-type {
  display: inline-flex;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 6px;
  color: var(--accent);
  border: 1px solid rgba(125, 247, 178, 0.17);
  border-radius: 5px;
  background: rgba(125, 247, 178, 0.055);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.file-name {
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono-cell {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  white-space: nowrap;
}

.muted-cell {
  color: var(--faint);
  font-size: 0.68rem;
  white-space: nowrap;
}

.table-action-column {
  width: 54px;
  text-align: right !important;
}

.delete-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--faint);
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.delete-button svg {
  width: 16px;
  height: 16px;
}

.delete-button:hover {
  color: var(--danger);
  border-color: rgba(255, 128, 137, 0.16);
  background: var(--danger-soft);
}

.files-empty {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.files-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 6px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.files-empty-icon svg {
  width: 20px;
  height: 20px;
}

.files-empty strong {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.files-empty p {
  color: var(--faint);
  font-size: 0.7rem;
}

/* Danger zone */

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 21px 24px;
  border: 1px solid rgba(255, 128, 137, 0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(255, 128, 137, 0.045), transparent 50%);
}

.danger-zone .eyebrow {
  color: var(--danger);
  opacity: 0.7;
}

.danger-zone h3 {
  margin: 4px 0 2px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.danger-zone p {
  color: var(--faint);
  font-size: 0.68rem;
}

.danger-zone form {
  flex: 0 0 auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.footer-brand {
  color: var(--muted);
  font-family: var(--font-sans);
}

.footer-brand span {
  color: var(--accent);
  opacity: 0.6;
}

/* Login */

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.24fr) minmax(430px, 0.76fr);
}

.auth-intro {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 6vw, 88px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(720px 480px at 4% 12%, rgba(49, 225, 138, 0.08), transparent 66%),
    linear-gradient(155deg, rgba(16, 39, 29, 0.38), rgba(5, 14, 11, 0.22));
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

.auth-glow--one {
  top: -180px;
  left: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(60, 241, 151, 0.12), transparent 68%);
}

.auth-glow--two {
  right: 3%;
  bottom: -160px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(58, 224, 185, 0.07), transparent 68%);
}

.auth-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-copy {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin-block: auto;
  padding: 30px 0;
  animation: rise-in 600ms ease both;
}

.auth-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.9rem, 5.2vw, 5.3rem);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.auth-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.auth-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.auth-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.auth-metrics > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-metrics strong {
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-metrics small {
  color: var(--faint);
  font-size: 0.64rem;
}

.auth-orbit {
  position: absolute;
  right: -85px;
  bottom: 112px;
  display: grid;
  width: 330px;
  height: 330px;
  place-items: center;
  opacity: 0.44;
  pointer-events: none;
}

.orbit {
  position: absolute;
  border-radius: 50%;
}

.orbit--outer {
  inset: 0;
  border: 1px solid rgba(125, 247, 178, 0.16);
}

.orbit--outer::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 22%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(125, 247, 178, 0.8);
}

.orbit--inner {
  inset: 56px;
  border: 1px dashed rgba(125, 247, 178, 0.18);
  animation: slow-spin 34s linear infinite;
}

.orbit-core {
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(125, 247, 178, 0.2);
  border-radius: 26px;
  background: rgba(8, 24, 17, 0.7);
  box-shadow: 0 0 60px rgba(64, 237, 147, 0.09);
  transform: rotate(12deg);
}

.orbit-core svg {
  width: 36px;
  height: 36px;
  transform: rotate(-12deg);
}

.orbit-point {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(125, 247, 178, 0.8);
}

.auth-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
  padding: 40px;
  background:
    radial-gradient(500px 400px at 90% 10%, rgba(125, 247, 178, 0.045), transparent 65%),
    rgba(6, 16, 12, 0.48);
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(21, 43, 33, 0.8), rgba(8, 20, 15, 0.92)),
    var(--surface-solid);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: rise-in 500ms 100ms ease both;
}

.login-heading h2 {
  margin: 0 0 5px;
  font-size: 1.85rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.login-heading p {
  color: var(--muted);
  font-size: 0.79rem;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 12px;
  color: var(--danger);
  border: 1px solid rgba(255, 128, 137, 0.2);
  border-radius: 9px;
  background: var(--danger-soft);
  font-size: 0.73rem;
  line-height: 1.55;
}

.form-alert svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 23px;
}

.auth-form .input-wrap input {
  height: 49px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  padding: 6px 8px;
  color: var(--faint);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.password-toggle:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
}

.auth-form .password-input {
  padding-right: 54px;
}

.login-submit {
  min-height: 50px;
  margin-top: 5px;
  font-size: 0.88rem;
}

.login-submit svg {
  transition: transform 180ms ease;
}

.login-submit:hover svg {
  transform: translateX(3px);
}

.login-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 16px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 0.63rem;
}

.auth-signature {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.11em;
}

.auth-signature span {
  margin-inline: 4px;
  color: var(--accent);
  opacity: 0.55;
}

/* Error */

.error-shell {
  display: flex;
  flex: 1;
  min-height: 62vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 80px;
  text-align: center;
}

.error-visual {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  margin-bottom: 28px;
}

.error-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(125, 247, 178, 0.18);
  border-radius: 50%;
  animation: slow-spin 35s linear infinite;
}

.error-ring::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(125, 247, 178, 0.7);
}

.error-code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.error-shell h1 {
  margin: 12px 0 9px;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.error-shell > p {
  max-width: 520px;
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 0.85rem;
}


/* Compact pages */

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card--standalone {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.login-title {
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 24px;
}

.page-heading h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.page-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.project-summary {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.project-summary span {
  margin-inline: 7px;
  color: var(--faint);
}

.endpoint-panel {
  padding: 20px 22px;
}

.endpoint-panel .field-label {
  margin-bottom: 9px;
}

.endpoint-panel .endpoint-box {
  margin-top: 0;
}

.upload-panel {
  margin-top: 18px;
}

.create-panel-simple {
  margin-top: 24px;
}

.create-panel-simple h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 620;
}

.create-panel-simple .create-form {
  max-width: 540px;
}

.empty-state--simple {
  padding: 42px 24px;
}

.empty-state--simple h2 {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

/* Responsive */

@media (max-width: 1050px) {
  .hero-seal {
    width: 164px;
    height: 164px;
  }

  .seal-core {
    width: 84px;
    height: 84px;
  }

  .project-hero {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 28px;
  }

  .project-stats {
    padding-left: 25px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
  }

  .project-stats {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-stats dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
  }

  .project-stats-head {
    display: none;
  }

  .project-stats dl > div {
    padding: 9px 0;
  }

  .project-stats dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .how-panel {
    min-height: auto;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
    gap: 26px;
    padding: 30px 32px 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-copy {
    padding: 12px 0 6px;
  }

  .auth-copy h1 {
    max-width: 700px;
    font-size: clamp(2.45rem, 6.5vw, 3.6rem);
  }

  .auth-copy p {
    font-size: 0.85rem;
  }

  .auth-metrics,
  .auth-orbit,
  .auth-glow--two {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    padding: 38px 24px 48px;
  }

  .auth-signature {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: min(100% - 36px, 1180px);
  }

  .page {
    padding-top: 12px;
    padding-bottom: 52px;
  }

  .header-inner {
    gap: 12px;
  }

  .runtime-badge {
    display: none;
  }

  .account-chip > span:last-child {
    display: none;
  }

  .hero {
    padding: 36px 0 30px;
  }

  .hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .hero-copy p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .hero-seal {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 128px;
    padding: 17px 18px;
  }

  .stat-icon {
    top: 17px;
    right: 17px;
  }

  .stat-value {
    padding-top: 11px;
    font-size: 1.75rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 42px;
  }

  .search-box {
    width: 100%;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
  }

  .page-heading-actions {
    align-items: stretch;
  }

  .page-heading-actions .btn {
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .create-panel-simple .create-form {
    align-items: stretch;
    flex-direction: column;
  }

  .create-panel-simple .create-form .btn {
    width: 100%;
  }

  .endpoint-panel {
    padding: 17px;
  }

  .login-page {
    padding: 16px;
  }

  .login-card--standalone {
    padding: 25px 21px;
  }

  .login-brand {
    margin-bottom: 22px;
  }

  .project-card {
    padding: 18px;
  }

  .create-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
    margin-top: 36px;
  }

  .create-form {
    align-items: stretch;
    flex-direction: column;
  }

  .create-form .btn {
    width: 100%;
  }

  .create-note {
    margin-top: -8px;
  }

  .breadcrumb {
    padding-bottom: 13px;
  }

  .project-hero {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .project-hero::after {
    left: 20px;
  }

  .project-title-row h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .endpoint-box {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .endpoint-content {
    width: calc(100% - 52px);
  }

  .copy-button--text {
    margin-left: 41px;
    padding: 0;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .project-stats dl {
    grid-template-columns: 1fr;
  }

  .project-stats dl > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(166, 255, 204, 0.07);
  }

  .project-stats dl > div:last-child {
    border-bottom: 0;
  }

  .panel {
    padding: 20px;
    border-radius: 18px;
  }

  .upload-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-footer .btn {
    width: 100%;
  }

  .files-caption {
    display: none;
  }

  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .danger-zone form,
  .danger-zone .btn {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
  }

  .flash {
    top: calc(var(--header-height) + 12px);
    right: 16px;
    left: 16px;
    width: auto;
  }

  .auth-intro {
    padding: 22px 20px 28px;
  }

  .auth-brand-row .runtime-badge {
    display: none;
  }

  .auth-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
    line-height: 1.13;
  }

  .auth-panel {
    padding: 28px 16px 40px;
  }

  .login-card {
    padding: 25px 21px;
    border-radius: 18px;
  }

  .login-heading h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 440px) {
  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .account-chip {
    display: none;
  }

  .logout-button {
    padding-inline: 6px;
  }

  .logout-button span {
    display: none;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn {
    width: 100%;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .file-name-cell {
    min-width: 170px;
  }

  .file-name {
    max-width: 160px;
  }

  .selected-file {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .endpoint-content code {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
