body {
  background-color: #020203;
  background-image:
    radial-gradient(1400px 900px at 10% -10%, rgba(255, 255, 255, 0.04), transparent 62%),
    radial-gradient(900px 650px at 115% 12%, rgba(255, 255, 255, 0.028), transparent 62%),
    radial-gradient(1100px 760px at 55% 120%, rgba(255, 255, 255, 0.02), transparent 60%),
    radial-gradient(900px 520px at 60% 10%, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.88) 60%, rgba(0, 0, 0, 0.985) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
}

body::before {
  content: '';
  position: fixed;
  inset: -30vh -30vw;
  z-index: 0;
  pointer-events: none;
  display: none;
  background:
    radial-gradient(closest-side at 24% 30%, rgba(255, 255, 255, 0.08), transparent 62%),
    radial-gradient(closest-side at 78% 62%, rgba(255, 255, 255, 0.06), transparent 64%);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

@keyframes homeBgDrift {
  0% {
    transform: translate3d(-1.5vw, -1.25vh, 0) scale(1.02);
    opacity: 0.45;
  }
  100% {
    transform: translate3d(1.5vw, 1.25vh, 0) scale(1.06);
    opacity: 0.6;
  }
}


[hidden] {
  display: none !important;
}

#dash-poly-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  filter: blur(0px) saturate(0) contrast(1.12);
  will-change: opacity;
}

html.home-prep.home-js:not(.home-ready) #dash-poly-bg {
  opacity: 0;
}

@keyframes homeCanvasIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.92;
  }
}

html.home-ready #dash-poly-bg {
  animation: homeCanvasIn 3000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  perspective: 1000px;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  text-align: center;
}

.tagline {
  margin-top: var(--spacing-md);
  color: var(--color-text-secondary);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-nav {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.home-nav-link {
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.home-nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.home {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@supports (min-height: 100svh) {
  .home {
    min-height: 100svh;
  }
}

.home-stage {
  position: relative;
  flex: 1 0 auto;
  padding-top: calc(clamp(2.75rem, 6vw, 5rem) + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(2.25rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  perspective: 1000px;
}

.home-stage-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.6vw, 1.75rem);
  align-items: start;
  transform-style: preserve-3d;
}

@media (min-width: 960px) {
  .home-stage-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: start;
  }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    display: block;
  }

  html.home-ready body::before {
    animation: homeBgDrift 14s ease-in-out infinite alternate;
  }

  #dash-poly-bg {
    display: none;
  }

  .home-stage {
    padding-top: calc(2.25rem + env(safe-area-inset-top, 0px));
    perspective: none;
  }

  .home-stage-grid {
    transform-style: flat;
  }

  .home-panel {
    padding: 1.15rem;
  }

  .logo-main {
    letter-spacing: 0.12em;
  }

  .home-panel-main .home-actions {
    justify-content: stretch;
  }

  .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-action {
    width: 100%;
  }

  .home-action-primary {
    min-width: 0;
  }
}

.home-panel {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 1.8rem);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.home-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%);
  opacity: 0.55;
  pointer-events: none;
}

.home-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0.85;
  pointer-events: none;
}

.home-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.55);
}

.home-panel-main {
  overflow: hidden;
}

.home-kicker {
  position: relative;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.logo-main {
  position: relative;
  font-family: var(--font-logo);
  font-size: clamp(3.8rem, 12.8vw, 7.25rem);
  letter-spacing: 0.15em;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.22);
  outline: none;
}

.logo-main .text-13th {
  visibility: visible;
}

.logo-main .text-xiii {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Times New Roman', serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-main .text-xiii .char {
  display: inline-block;
  opacity: 1;
  transform: translateX(0);
}

.home-tag {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 54ch;
}

.home-copy {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.home-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-message {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: none;
  position: relative;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  font-style: italic;
}

.site-message::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0.85;
}

.home-actions {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-panel-main .home-actions {
  justify-content: flex-start;
}

.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.home-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.home-action:active {
  transform: translateY(0);
}

.home-action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.home-action-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.36);
}

.home-action-primary {
  min-width: 160px;
}

.home-action-primary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.075));
  border-color: rgba(255, 255, 255, 0.34);
}

.home-action-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.16);
}

.home-action-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.26);
}

.home-action-block {
  width: 100%;
}

.home-side {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.home-side-card {
  padding: 0.95rem;
}

.home-card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  margin: 1rem 0;
  opacity: 0.85;
}

.home-card {
  position: relative;
  padding: 1rem;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.home-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(closest-side at 24% 22%, rgba(255, 255, 255, 0.06), transparent 62%);
  opacity: 0.55;
  pointer-events: none;
}

.home-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0.85;
  pointer-events: none;
}

.home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.5);
}

.home-card-title {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0.65rem;
}

.home-card-muted {
  position: relative;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.9rem;
}

.home-loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.home-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: homeSpin 900ms linear infinite;
}

.home-loading-text {
  font-size: 0.9rem;
}

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

@keyframes homePulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.home-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.home-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-user-meta {
  min-width: 0;
  flex: 1;
}

.home-user-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-user-handle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.home-user-uid {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
}

.home-list {
  position: relative;
  display: grid;
  gap: 0.55rem;
}

.home-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-list-link::after {
  content: '→';
  opacity: 0.55;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-list-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.home-list-link:hover::after {
  opacity: 0.9;
  transform: translateX(2px);
}

.home-list-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.home-footer {
  position: relative;
  z-index: 2;
  padding: 2.2rem 0 2.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

@keyframes homePopIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.975);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

html.home-prep.home-js:not(.home-ready) .home-panel,
html.home-prep.home-js:not(.home-ready) .home-side-card,
html.home-prep.home-js:not(.home-ready) .home-footer {
  opacity: 0;
  transform: translateY(22px) scale(0.975);
}

html.home-ready .home-panel {
  animation: homePopIn 1800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 180ms;
}

html.home-ready .home-side-card {
  animation: homePopIn 1800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 360ms;
}

html.home-ready .home-footer {
  animation: homePopIn 1800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 540ms;
}

@keyframes morphOut {
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes char1 {
  to {
    transform: translateX(-150px);
    opacity: 0;
  }
}

@keyframes char2 {
  to {
    transform: translateX(-75px);
    opacity: 0;
  }
}

@keyframes char3 {
  to {
    transform: translateX(75px);
    opacity: 0;
  }
}

@keyframes char4 {
  to {
    transform: translateX(150px);
    opacity: 0;
  }
}

@keyframes spawnIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.morph-out {
  animation: morphOut 1.2s ease-in forwards;
}

.morph-x-out .char:nth-child(1) {
  animation: char1 2.5s ease-in forwards;
}

.morph-x-out .char:nth-child(2) {
  animation: char2 2.5s ease-in forwards;
}

.morph-x-out .char:nth-child(3) {
  animation: char3 2.5s ease-in forwards;
}

.morph-x-out .char:nth-child(4) {
  animation: char4 2.5s ease-in forwards;
}

.morph-x-out {
  visibility: visible !important;
}

.spawn-in {
  visibility: visible !important;
  animation: spawnIn 1.5s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none !important;
  }

  .home-action,
  .home-list-link {
    transition: none;
  }

  .home-spinner {
    animation: homePulse 1000ms ease-in-out infinite;
  }

  html.home-prep.home-js:not(.home-ready) .home-panel,
  html.home-prep.home-js:not(.home-ready) .home-side-card,
  html.home-prep.home-js:not(.home-ready) .home-footer {
    opacity: 0;
    transform: none;
  }

  html.home-ready .home-panel,
  html.home-ready .home-side-card,
  html.home-ready .home-footer {
    animation: homeFadeIn 650ms ease both;
  }

  .home-stage-grid {
    transform: none !important;
  }
}

.page-title {
  font-size: clamp(2.5rem, 10vw, 5rem);
}

.page-prose {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.page-prose p {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.74);
}

.page-prose p:last-child {
  margin-bottom: 0;
}

.page-prose ul {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
}

.page-prose li {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.page-search {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  outline: none;
}

.page-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.page-search:focus {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.changelog-item {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.changelog-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.changelog-item-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
}

.changelog-item-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.changelog-item-body {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.mc-status-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mc-target {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  word-break: break-word;
}

.mc-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.mc-badge {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.mc-badge[data-state="online"] {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
}

.mc-badge[data-state="offline"] {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.mc-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mc-stat {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mc-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.mc-stat-value {
  margin-top: 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 560px) {
  .mc-stat-grid {
    grid-template-columns: 1fr;
  }
}
