:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --page: #f4f6f8;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --soft: #eef6f4;
}

body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .10), transparent 32rem),
    linear-gradient(180deg, #ffffff 0, var(--page) 26rem);
  color: var(--ink);
  min-height: 100vh;
}

.app-navbar {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(229, 231, 235, .9);
  backdrop-filter: blur(12px);
}

.app-main {
  padding-bottom: 48px;
  padding-top: 32px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.nav-user {
  background: var(--soft);
  border: 1px solid #d7ebe7;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  padding: 6px 10px;
}

.auth-shell,
.assessment-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.auth-card {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .08);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  margin: 8vh auto;
  overflow: hidden;
}

.auth-copy {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .94), rgba(17, 24, 39, .96)),
    url('../img/auth-texture.png');
  color: #fff;
  padding: 56px;
}

.auth-copy h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 18px;
}

.auth-copy p {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  max-width: 520px;
}

.auth-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.auth-stats span {
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 8px;
  color: rgba(255, 255, 255, .78);
  padding: 14px;
}

.auth-stats strong {
  color: #fff;
  display: block;
  font-size: 24px;
}

.auth-panel,
.content-panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, .05);
  padding: 26px;
}

.auth-panel {
  align-self: center;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 44px;
}

.auth-panel h2 {
  font-size: 30px;
  margin-bottom: 6px;
}

.form-control {
  border-color: #d8dee8;
  border-radius: 8px;
  min-height: 46px;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .14);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.metric strong {
  font-size: 24px;
  line-height: 1.15;
}

.metric small {
  color: var(--muted);
  display: block;
  margin-top: 10px;
}

.dashboard-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #eef6f4);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
}

.dashboard-hero h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.dashboard-hero p {
  color: var(--muted);
  margin-bottom: 0;
}

.side-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, .05);
  display: grid;
  gap: 4px;
  padding: 8px;
  position: sticky;
  top: 82px;
}

.side-nav a {
  align-items: center;
  border-radius: 7px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
}

.side-nav a:hover {
  background: var(--soft);
  color: var(--accent-strong);
}

.side-nav span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  padding: 34px;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-copy .eyebrow {
  color: rgba(255, 255, 255, .74);
}

.likert {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.likert label input {
  position: absolute;
  opacity: 0;
}

.likert label span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  gap: 6px;
  min-height: 96px;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.likert small {
  color: var(--muted);
  font-weight: 500;
}

.likert input:checked + span {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.likert input:checked + span small {
  color: #d1d5db;
}

.report h2 {
  font-size: 20px;
  margin-top: 24px;
}

.report h3 {
  font-size: 16px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .app-main {
    padding-top: 20px;
  }

  .auth-card {
    grid-template-columns: 1fr;
    margin: 2vh auto;
  }

  .auth-copy,
  .auth-panel {
    padding: 22px;
  }

  .auth-copy h1 {
    font-size: 42px;
    margin-bottom: 14px;
  }

  .auth-copy p {
    font-size: 16px;
    line-height: 1.45;
  }

  .auth-stats {
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .auth-stats span {
    border-radius: 10px;
    padding: 10px 12px;
  }

  .auth-stats strong {
    font-size: 22px;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .side-nav {
    position: static;
  }

  .likert {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .likert label span {
    gap: 4px;
    min-height: 66px;
    padding: 8px 12px;
  }
}

body {
  background:
    linear-gradient(rgba(15, 23, 42, .94), rgba(15, 23, 42, .96)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, .08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, .06) 0 1px, transparent 1px 72px);
  color: #e5edf8;
}

.app-navbar {
  background: rgba(15, 23, 42, .82);
  border-bottom-color: rgba(148, 163, 184, .18);
}

.navbar-brand,
.navbar-brand:hover {
  color: #f8fafc;
}

.brand-mark {
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
  box-shadow: 0 0 28px rgba(20, 184, 166, .35);
}

.nav-user {
  background: rgba(20, 184, 166, .12);
  border-color: rgba(20, 184, 166, .28);
  color: #99f6e4;
}

.auth-card,
.content-panel,
.metric,
.side-nav,
.dashboard-hero {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  color: #e5edf8;
}

.auth-card,
.content-panel,
.result-hero,
.analysis-core {
  backdrop-filter: blur(18px);
}

.auth-copy {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .88), rgba(59, 130, 246, .50), rgba(15, 23, 42, .98)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 16px);
}

.auth-panel {
  background: rgba(15, 23, 42, .68);
}

.form-control {
  background: rgba(2, 6, 23, .48);
  border-color: rgba(148, 163, 184, .26);
  color: #f8fafc;
}

.form-control:focus {
  background: rgba(2, 6, 23, .62);
  color: #f8fafc;
}

.form-label,
.metric strong,
.dashboard-hero h1,
.content-panel h1,
.content-panel h2,
.content-panel h3 {
  color: #f8fafc;
}

.text-muted,
.metric span,
.metric small,
.dashboard-hero p,
.side-nav span,
.likert small {
  color: #94a3b8 !important;
}

.btn-dark {
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border: 0;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .24);
}

.btn-outline-dark,
.btn-outline-secondary {
  border-color: rgba(148, 163, 184, .32);
  color: #e5edf8;
}

.btn-outline-dark:hover,
.btn-outline-secondary:hover {
  background: rgba(20, 184, 166, .14);
  border-color: rgba(20, 184, 166, .45);
  color: #ffffff;
}

.side-nav a {
  color: #cbd5e1;
}

.side-nav a:hover {
  background: rgba(20, 184, 166, .10);
  color: #99f6e4;
}

.dashboard-hero {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(59, 130, 246, .12)),
    rgba(15, 23, 42, .76);
}

.eyebrow {
  color: #5eead4;
}

.likert label span {
  background: rgba(2, 6, 23, .36);
  border-color: rgba(148, 163, 184, .22);
  color: #e5edf8;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.likert label span:hover {
  border-color: rgba(20, 184, 166, .50);
  transform: translateY(-2px);
}

.likert input:checked + span {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  border-color: rgba(94, 234, 212, .78);
}

.assessment-form.is-submitting .likert label span {
  pointer-events: none;
}

.assessment-form.is-submitting .likert input:checked + span {
  box-shadow: 0 0 0 3px rgba(94, 234, 212, .18), 0 18px 38px rgba(37, 99, 235, .20);
  transform: translateY(-1px) scale(1.01);
}

.progress {
  background: rgba(15, 23, 42, .75);
  border: 1px solid rgba(148, 163, 184, .16);
  height: 12px;
}

.progress-bar {
  background: linear-gradient(90deg, #14b8a6, #3b82f6, #f59e0b);
}

.analysis-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 150px);
  overflow: hidden;
  position: relative;
}

.analysis-grid {
  animation: gridFlow 10s linear infinite;
  background:
    repeating-linear-gradient(90deg, rgba(94, 234, 212, .10) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(59, 130, 246, .10) 0 1px, transparent 1px 56px);
  inset: -80px;
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  position: absolute;
  transform: perspective(600px) rotateX(62deg);
}

.analysis-core {
  background: rgba(15, 23, 42, .78);
  border: 1px solid rgba(94, 234, 212, .22);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .36), inset 0 0 0 1px rgba(255,255,255,.04);
  max-width: 720px;
  padding: 42px;
  position: relative;
  text-align: center;
  width: 100%;
}

.scanner-orbit {
  height: 170px;
  margin: 0 auto 24px;
  position: relative;
  width: 170px;
}

.scanner-ring,
.scanner-pulse {
  border-radius: 50%;
  inset: 0;
  position: absolute;
}

.scanner-ring {
  border: 1px solid rgba(94, 234, 212, .34);
}

.ring-one {
  animation: spin 2.8s linear infinite;
  border-top-color: #5eead4;
}

.ring-two {
  animation: spin 4.2s linear infinite reverse;
  border-left-color: #60a5fa;
  inset: 22px;
}

.scanner-pulse {
  animation: pulseCore 1.8s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(20, 184, 166, .70), rgba(37, 99, 235, .70));
  box-shadow: 0 0 42px rgba(20, 184, 166, .45);
  inset: 55px;
}

.analysis-core h1 {
  color: #f8fafc;
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 12px;
}

.analysis-core p {
  color: #cbd5e1;
}

.analysis-progress {
  background: rgba(2, 6, 23, .70);
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 999px;
  height: 12px;
  margin: 28px 0;
  overflow: hidden;
}

.analysis-progress span {
  animation: loadAnalysis 3.4s ease-in-out forwards;
  background: linear-gradient(90deg, #14b8a6, #3b82f6, #f59e0b);
  display: block;
  height: 100%;
  width: 0;
}

.analysis-steps {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.analysis-steps li {
  background: rgba(2, 6, 23, .42);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  color: #94a3b8;
  padding: 12px 14px;
}

.analysis-steps li.is-active {
  border-color: rgba(94, 234, 212, .55);
  color: #f8fafc;
}

.analysis-steps li.is-done {
  color: #5eead4;
}

.result-hero {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .24), rgba(59, 130, 246, .20), rgba(245, 158, 11, .10)),
    rgba(15, 23, 42, .82);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin-bottom: 24px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.result-hero h1 {
  color: #f8fafc;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  margin-bottom: 14px;
}

.result-hero p {
  color: #cbd5e1;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.global-score {
  align-items: center;
  background: rgba(2, 6, 23, .38);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
}

.global-score span,
.global-score small {
  color: #94a3b8;
}

.global-score strong {
  color: #5eead4;
  font-size: 64px;
  line-height: 1;
  margin: 12px 0;
}

.insight-grid,
.domain-grid {
  display: grid;
  gap: 16px;
}

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

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

.insight-card,
.domain-card {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0,0,0,.18);
  padding: 22px;
}

.insight-card span,
.data-badge {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.insight-card strong {
  color: #f8fafc;
  display: block;
  font-size: 20px;
  margin: 9px 0;
}

.insight-card p,
.domain-card p {
  color: #b6c3d4;
  margin-bottom: 0;
}

.chart-panel {
  background: rgba(2, 6, 23, .70);
}

.section-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h2,
.action-panel h2 {
  margin-bottom: 0;
}

.data-badge {
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .28);
  border-radius: 999px;
  padding: 8px 10px;
}

.domain-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.domain-head span {
  background: rgba(20, 184, 166, .14);
  border: 1px solid rgba(20, 184, 166, .30);
  border-radius: 8px;
  color: #99f6e4;
  font-weight: 800;
  padding: 6px 9px;
}

.domain-head strong {
  color: #f8fafc;
  font-size: 22px;
}

.domain-card h3 {
  color: #f8fafc;
  font-size: 18px;
  margin: 16px 0 12px;
}

.domain-meter {
  background: rgba(148, 163, 184, .14);
  border-radius: 999px;
  height: 9px;
  margin-bottom: 14px;
  overflow: hidden;
}

.domain-meter span {
  background: linear-gradient(90deg, #14b8a6, #3b82f6);
  display: block;
  height: 100%;
}

.action-panel {
  display: grid;
  gap: 22px;
  grid-template-columns: 260px 1fr;
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-item {
  align-items: center;
  background: rgba(2, 6, 23, .38);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  padding: 14px;
}

.action-item span {
  align-items: center;
  background: #f59e0b;
  border-radius: 8px;
  color: #111827;
  display: flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.action-item p {
  color: #e5edf8;
  margin: 0;
}

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

.stage-card {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0,0,0,.20);
  padding: 22px;
}

.stage-card.is-locked {
  opacity: .58;
}

.stage-card.is-locked .stage-card-head span {
  background: rgba(148, 163, 184, .22);
  color: #cbd5e1;
}

.stage-card-head,
.stage-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.stage-card-head span {
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  padding: 8px 10px;
}

.stage-card-head small,
.stage-card p,
.stage-score span {
  color: #94a3b8;
}

.stage-card h2 {
  color: #f8fafc;
  font-size: 20px;
  margin: 18px 0 8px;
}

.stage-score {
  border-top: 1px solid rgba(148, 163, 184, .14);
  margin-top: 18px;
  padding-top: 18px;
}

.stage-score strong {
  color: #5eead4;
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}

.stage-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.assessment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.assessment-meta span {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.assessment-meta.is-light span {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .20);
  color: #f8fafc;
}

.profile-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form .profile-actions,
.profile-form .alert {
  grid-column: 1 / -1;
}

.profile-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-surface {
  background:
    radial-gradient(circle at 96% 0%, rgba(20, 184, 166, .12), transparent 18rem),
    linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .74));
  border-color: rgba(148, 163, 184, .18);
  color: #e5edf8;
  overflow: hidden;
}

.admin-surface h1,
.admin-surface h2,
.admin-surface h3,
.admin-surface strong,
.admin-surface .table,
.admin-surface .table td,
.admin-surface .table th {
  color: #e5edf8;
}

.admin-surface .text-muted,
.admin-surface small {
  color: #94a3b8 !important;
}

.admin-surface .table > :not(caption) > * > * {
  border-bottom-color: rgba(148, 163, 184, .16);
  color: #e5edf8;
  padding-bottom: 18px;
  padding-top: 18px;
}

.admin-surface .table thead th {
  background: rgba(15, 23, 42, .44);
  color: #93c5fd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-surface tbody tr {
  transition: background .18s ease, transform .18s ease;
}

.admin-surface tbody tr:hover {
  background: rgba(20, 184, 166, .06);
}

.admin-surface .btn-outline-secondary,
.admin-surface .btn-outline-dark {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .30);
  color: #e5edf8;
}

.admin-surface .btn-outline-secondary:hover,
.admin-surface .btn-outline-dark:hover {
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border-color: transparent;
  color: #ffffff;
}

.admin-actions {
  min-width: 178px;
  white-space: nowrap;
}

.admin-actions .btn {
  margin: 3px;
}

.nowrap {
  white-space: nowrap;
}

.table {
  color: #dbeafe;
}

.table > :not(caption) > * > * {
  background: transparent;
  border-bottom-color: rgba(148, 163, 184, .16);
  color: inherit;
}

.table thead th {
  color: #93c5fd;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

@keyframes pulseCore {
  0%, 100% { transform: scale(.92); opacity: .72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes loadAnalysis {
  0% { width: 4%; }
  40% { width: 48%; }
  78% { width: 84%; }
  100% { width: 100%; }
}

@keyframes gridFlow {
  to { transform: perspective(600px) rotateX(62deg) translateY(56px); }
}

.admin-hero {
  align-items: center;
  background:
    radial-gradient(circle at 86% 16%, rgba(20, 184, 166, .34), transparent 18rem),
    radial-gradient(circle at 16% 4%, rgba(37, 99, 235, .22), transparent 16rem),
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(15, 23, 42, .86));
  border: 1px solid rgba(20, 184, 166, .18);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
  color: #f8fafc;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  overflow: hidden;
  min-height: 190px;
  padding: 34px 38px;
  position: relative;
}

.admin-hero::after {
  background-image:
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent, #000);
  position: absolute;
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.admin-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.04em;
  margin: 0 0 8px;
}

.admin-hero p {
  color: #b8c5d8;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.admin-hero .btn-group {
  background: rgba(15, 23, 42, .52);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  padding: 6px;
}

.admin-hero .btn {
  border-radius: 10px;
  padding-inline: 16px;
}

.metric-glow {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, .30), transparent 12rem),
    linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(20, 184, 166, .10));
  border-color: rgba(20, 184, 166, .34);
}

.metric {
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, .12), transparent 10rem),
    linear-gradient(145deg, rgba(15, 23, 42, .88), rgba(15, 23, 42, .68));
  border-color: rgba(148, 163, 184, .18);
  border-radius: 16px;
  min-height: 148px;
}

.metric span,
.metric small {
  color: #9fb1c9 !important;
}

.metric strong {
  color: #f8fafc;
  font-size: 34px;
  letter-spacing: -.04em;
  text-shadow: 0 0 28px rgba(20, 184, 166, .18);
}

.data-badge,
.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.data-badge {
  background: rgba(20, 184, 166, .16);
  border: 1px solid rgba(20, 184, 166, .28);
  color: #5eead4;
}

.status-pill.is-active {
  background: rgba(20, 184, 166, .18);
  border: 1px solid rgba(20, 184, 166, .30);
  color: #5eead4;
}

.status-pill.is-muted {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .18);
  color: #cbd5e1;
}

.admin-domain-chart {
  display: grid;
  gap: 18px;
}

.admin-domain-chart article {
  background:
    radial-gradient(circle at 92% 8%, rgba(20, 184, 166, .10), transparent 13rem),
    rgba(15, 23, 42, .40);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  padding: 16px;
}

.admin-domain-chart article strong,
.stage-bar span,
.mini-bar span,
.chart-line span,
.user-score-timeline strong {
  color: #e5edf8;
}

.chart-line,
.stage-bar,
.mini-bar,
.user-score-timeline article {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 52px 1fr 52px;
  margin-top: 10px;
}

.chart-line div,
.stage-bar div,
.mini-bar div,
.user-score-timeline div {
  background: rgba(148, 163, 184, .14);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.chart-line i,
.stage-bar i,
.mini-bar i,
.user-score-timeline i {
  background: linear-gradient(90deg, #14b8a6, #2563eb);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.chart-line b,
.stage-bar strong,
.mini-bar strong,
.user-score-timeline span {
  color: #cbd5e1;
  font-size: 13px;
  text-align: right;
}

.mini-bar {
  grid-template-columns: minmax(110px, 1fr) 1.4fr 38px;
}

.stage-bars {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.admin-filter {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.admin-filter label {
  color: #cbd5e1;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.admin-filter .form-control {
  background: rgba(2, 6, 23, .44);
  border-color: rgba(148, 163, 184, .22);
  color: #f8fafc;
}

.admin-filter .form-control::placeholder {
  color: #64748b;
}

.admin-filter .form-control option {
  background: #0f172a;
  color: #f8fafc;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-list article {
  align-items: center;
  background: rgba(15, 23, 42, .03);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.option-list small {
  color: var(--muted);
  display: block;
}

.stage-admin-list {
  display: grid;
  gap: 12px;
}

.stage-admin-list article {
  align-items: center;
  background: rgba(15, 23, 42, .38);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.stage-admin-list label {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0;
}

.stage-admin-list input {
  accent-color: #14b8a6;
  height: 20px;
  width: 20px;
}

.stage-admin-list strong {
  color: #f8fafc;
  display: block;
}

.stage-admin-list span,
.stage-admin-list small {
  color: #94a3b8;
}

.feedback-panel textarea {
  resize: vertical;
}

.feedback-scale {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feedback-scale label {
  cursor: pointer;
}

.feedback-scale input {
  opacity: 0;
  position: absolute;
}

.feedback-scale span {
  align-items: center;
  background: rgba(2, 6, 23, .36);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 86px;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.feedback-scale strong {
  color: #f8fafc;
  font-size: 24px;
}

.feedback-scale input:checked + span {
  background: linear-gradient(135deg, rgba(20, 184, 166, .36), rgba(37, 99, 235, .34));
  border-color: rgba(94, 234, 212, .72);
  color: #f8fafc;
}

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

.feedback-admin-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-admin-grid article {
  background: rgba(2, 6, 23, .28);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  padding: 12px;
}

.feedback-admin-grid p {
  color: #cbd5e1;
  margin-bottom: 0;
}

.form-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 992px) {
  .result-hero,
  .action-panel,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .domain-grid,
  .feedback-domain-grid,
  .feedback-admin-grid,
  .stage-grid,
  .profile-form,
  .admin-filter {
    grid-template-columns: 1fr;
  }

  .feedback-scale {
    grid-template-columns: 1fr;
  }

  .feedback-scale span {
    align-items: flex-start;
    min-height: 58px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}
