:root {
  --template-ink: #1b2230;
  --template-muted: #5a677d;
  --template-accent: #0f7c67;
  --template-accent-deep: #0a5c4d;
  --template-highlight: #ffcc68;
  --template-paper: rgba(255, 255, 255, 0.74);
  --template-paper-strong: rgba(255, 255, 255, 0.88);
  --template-border: rgba(27, 34, 48, 0.1);
  --template-shadow: 0 18px 60px rgba(28, 37, 49, 0.14);
}

html {
  min-height: 100%;
  font-size: 15px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--template-ink);
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 204, 104, 0.3), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(15, 124, 103, 0.2), transparent 26%),
    linear-gradient(180deg, #fbf8f1 0%, #edf2f4 48%, #e6ecea 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 34, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 34, 48, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

a {
  color: var(--template-accent-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--template-accent);
}

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

.wrapper {
  min-width: 0;
}

.sidebar {
  --cui-sidebar-width: 17rem;
  color: rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(180deg, rgba(21, 28, 40, 0.98), rgba(14, 18, 28, 0.98)),
    linear-gradient(120deg, rgba(15, 124, 103, 0.22), transparent 45%);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1rem;
}

.app-brand {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
  color: #ffffff;
  text-decoration: none;
}

.app-brand:hover,
.app-brand:focus {
  color: #ffffff;
}

.app-brand-wordmark {
  display: block;
  width: auto;
  height: 42px;
  max-width: 12.25rem;
  object-fit: contain;
  object-position: left center;
}

.app-brand-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.auth-brand-wordmark {
  width: auto;
  height: 64px;
  max-width: min(100%, 18rem);
  object-fit: contain;
}

.sidebar-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}

.sidebar-body:hover {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
}

.sidebar-body:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.sidebar .nav-title {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sidebar .nav-link {
  margin-bottom: 0.35rem;
  border-radius: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-summary {
  margin-top: auto;
  color: var(--template-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 247, 0.95));
}

.sidebar-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--template-muted);
}

.app-topbar {
  backdrop-filter: blur(16px);
  background: rgba(251, 248, 241, 0.72);
}

.app-main {
  position: relative;
  z-index: 1;
}

.app-footer {
  background: rgba(255, 255, 255, 0.42);
}

.hero-card {
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 204, 104, 0.24), transparent 28%),
    linear-gradient(135deg, #1a2231 0%, #142a3f 42%, #0c6958 100%);
}

.hero-card::after {
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 14rem;
  height: 14rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.template-card {
  background: var(--template-paper);
  border: 1px solid var(--template-border);
  box-shadow: var(--template-shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-orb {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, #24c19b 0%, #0f7c67 70%);
  box-shadow: 0 0 0 0.45rem rgba(15, 124, 103, 0.14);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-grid article {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--template-paper-strong);
  border: 1px solid rgba(27, 34, 48, 0.08);
}

.metric-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--template-muted);
}

.check-list {
  padding-left: 1.15rem;
  color: var(--template-ink);
}

.check-list li + li {
  margin-top: 0.55rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-note {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--template-accent-deep);
  background: rgba(15, 124, 103, 0.1);
}

.code-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  padding: 1.15rem;
  border-radius: 1rem;
  background: rgba(27, 34, 48, 0.94);
  color: #f5f7fa;
}

.code-panel code {
  color: #ffdd90;
  font-size: 0.95rem;
}

.code-panel-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.reveal-group .reveal-item {
  animation: rise-in 0.55s ease both;
}

.reveal-group .reveal-item:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal-group .reveal-item:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 767.98px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .app-main {
    padding-top: 0.25rem;
  }
}

@media (min-width: 992px) {
  .wrapper {
    width: calc(100% - var(--cui-sidebar-width, 17rem));
    margin-left: var(--cui-sidebar-width, 17rem);
  }
}
