:root {
  --gold: #c98f14;
  --gold-strong: #f3b61f;
  --maroon: #9b2f20;
  --maroon-soft: #f8e6df;
  --navy: #102018;
  --navy-2: #183528;
  --ink: #17231d;
  --muted: #63766d;
  --line: #e2ddd2;
  --soft: #f7f3ec;
  --white: #ffffff;
  --success: #0f7a5a;
  --danger: #b52d1f;
  --warning: #9f6400;
  --shadow: 0 18px 50px rgba(16, 32, 24, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--soft);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.app-loading img {
  width: 220px;
  max-width: 72vw;
}

.public-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 8%, rgba(255, 204, 64, 0.7), transparent 21rem),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.92), transparent 24rem),
    linear-gradient(128deg, rgba(250, 255, 246, 0.98), rgba(232, 248, 235, 0.92) 38%, rgba(255, 240, 182, 0.94) 68%, rgba(255, 250, 236, 0.98)),
    linear-gradient(180deg, #fafff5 0, #fff7db 640px, var(--soft) 641px);
  background-size: 140% 140%, auto, 180% 180%, auto;
  animation: pageGlow 16s ease-in-out infinite;
  position: relative;
  overflow-x: hidden;
}

.public-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  pointer-events: none;
  background:
    linear-gradient(rgba(16, 32, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 24, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  animation: gridDrift 18s linear infinite;
}

.public-shell::after {
  content: "";
  position: absolute;
  inset: 120px auto auto 8%;
  width: 52vw;
  max-width: 680px;
  height: 52vw;
  max-height: 680px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.86), transparent 42%),
    conic-gradient(from 90deg, rgba(243, 182, 31, 0.3), rgba(15, 122, 90, 0.22), rgba(155, 47, 32, 0.16), rgba(243, 182, 31, 0.3));
  filter: blur(2px);
  opacity: 0.7;
  animation: haloSpin 24s linear infinite;
}

.public-nav,
.admin-topbar {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 170px;
  max-width: 46vw;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.92rem;
  line-height: 1.15;
}

.brand-copy span {
  color: rgba(16, 32, 24, 0.62);
  font-size: 0.76rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn,
.icon-btn {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(7, 21, 37, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(7, 21, 37, 0.14);
}

.btn.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd45c, var(--gold), #f7b51e);
  color: var(--navy);
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), transparent);
  transform: skewX(-18deg);
  animation: buttonShine 3.4s ease-in-out infinite;
}

.btn.maroon {
  background: var(--maroon);
  color: var(--white);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(16, 32, 24, 0.12), 0 12px 30px rgba(7, 21, 37, 0.08);
  backdrop-filter: blur(14px);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.danger {
  background: var(--danger);
  color: var(--white);
}

.btn.small,
.icon-btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.86rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero,
.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  z-index: 1;
  color: var(--navy);
  padding: 62px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 44px;
  align-items: start;
  min-height: calc(100vh - 98px);
}

.hero-copy {
  position: relative;
  max-width: 760px;
  padding-top: 48px;
  animation: riseIn 760ms ease both;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
}

.orb-one {
  width: 220px;
  height: 220px;
  left: -80px;
  top: 110px;
  background: rgba(243, 182, 31, 0.28);
  animation: floatOrb 9s ease-in-out infinite;
}

.orb-two {
  width: 170px;
  height: 170px;
  right: 28%;
  bottom: 56px;
  background: rgba(15, 122, 90, 0.18);
  animation: floatOrb 11s ease-in-out infinite reverse;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-kicker {
  width: fit-content;
  color: #8a5b00;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(201, 143, 20, 0.22);
  border-radius: 999px;
  padding: 9px 13px;
  box-shadow: 0 14px 32px rgba(201, 143, 20, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5.4vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: 0;
  color: var(--navy);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.12;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lead {
  color: rgba(23, 35, 29, 0.76);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 720px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(23, 35, 29, 0.86);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 32, 24, 0.08);
  box-shadow: 0 14px 32px rgba(7, 21, 37, 0.08);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-weight: 800;
  animation: pillFloat 4.6s ease-in-out infinite;
}

.hero-proof span:nth-child(2) {
  animation-delay: 0.35s;
}

.hero-proof span:nth-child(3) {
  animation-delay: 0.7s;
}

.hero-proof strong {
  color: var(--gold-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 226, 0.82)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 34px 90px rgba(82, 61, 11, 0.18);
  backdrop-filter: blur(16px);
}

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

.hero-command {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: visible;
  animation: riseIn 840ms 120ms ease both;
}

.hero-command::before {
  content: "";
  position: absolute;
  inset: -70px -90px auto auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(243, 182, 31, 0.24);
  filter: blur(8px);
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-command > * {
  position: relative;
}

.hero-command-top,
.hero-training-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hero-command-top h2 {
  max-width: 420px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2.5rem);
  margin: 0;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold-strong);
  font-weight: 950;
  font-size: 0.78rem;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(15, 122, 90, 0.18);
  animation: livePulse 1.6s ease-in-out infinite;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: stretch;
}

.impact-score {
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 32, 24, 0.92), rgba(24, 53, 40, 0.72)),
    radial-gradient(circle at 85% 20%, rgba(243, 182, 31, 0.34), transparent 12rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 6px;
}

.impact-score span,
.impact-score small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.impact-score strong {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 0.95;
  color: var(--gold-strong);
}

.pulse-ring {
  min-height: 148px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--navy);
  background:
    radial-gradient(circle at center, #fff 0 44%, transparent 45%),
    conic-gradient(var(--success) 0 84%, rgba(16, 32, 24, 0.11) 84% 100%);
  border: 1px solid rgba(16, 32, 24, 0.08);
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.78);
  animation: ringBreathe 3.2s ease-in-out infinite;
}

.pulse-ring span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse-ring strong {
  font-size: 1.9rem;
  color: var(--success);
}

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

.insight-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  color: rgba(23, 35, 29, 0.82);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 32, 24, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.floating-note {
  position: absolute;
  min-width: 116px;
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(7, 21, 37, 0.13);
  backdrop-filter: blur(14px);
}

.floating-note strong {
  font-size: 1.25rem;
  color: var(--success);
}

.floating-note span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.note-one {
  top: 116px;
  right: -38px;
  animation: noteFloat 4.8s ease-in-out infinite;
}

.note-two {
  bottom: 86px;
  left: -34px;
  animation: noteFloat 5.4s ease-in-out infinite reverse;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 12px;
}

.section-heading.compact h2 {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 0;
}

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

.training-pick {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(16, 32, 24, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.training-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(16, 32, 24, 0.2);
}

.training-pick img {
  width: 118px;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  background: var(--navy);
}

.training-pick-body {
  padding: 13px 13px 13px 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.training-pick-body h3 {
  margin-bottom: 0;
  line-height: 1.18;
}

.training-pick-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.training-pick-body .training-meta {
  gap: 6px;
}

.training-pick-body .training-meta span {
  padding: 5px 8px;
  font-size: 0.72rem;
}

.training-pick-body .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.public-section {
  padding: 34px 0;
}

.employee-access {
  padding: 34px 0 56px;
}

.employee-hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 28px;
  align-items: center;
  color: var(--white);
}

.employee-hero-copy {
  display: grid;
  gap: 18px;
}

.employee-hero-copy h1 {
  max-width: 760px;
}

.employee-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-hero-badges span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 32, 24, 0.1);
  box-shadow: 0 10px 28px rgba(16, 32, 24, 0.08);
  font-weight: 850;
  font-size: 0.88rem;
}

.access-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(16, 32, 24, 0.28);
  display: grid;
  gap: 16px;
}

.access-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.access-lock {
  color: var(--gold);
  font-weight: 950;
}

.access-selected {
  display: grid;
  gap: 14px;
}

.access-selected img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--navy);
}

.access-selected p {
  color: var(--muted);
  line-height: 1.5;
}

.employee-programmes,
.employee-flow {
  margin-top: 26px;
}

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

.employee-training-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  box-shadow: 0 16px 38px rgba(16, 32, 24, 0.1);
}

.employee-training-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 143, 20, 0.2), 0 16px 38px rgba(16, 32, 24, 0.1);
}

.employee-training-card img {
  width: calc(100% + 32px);
  margin: 0 -16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy);
}

.employee-training-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.employee-flow {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.card,
.metric-card,
.panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(7, 21, 37, 0.08);
  backdrop-filter: blur(14px);
}

.card,
.panel {
  padding: 20px;
}

.training-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.training-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(7, 21, 37, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  max-width: 382px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.training-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 62px rgba(7, 21, 37, 0.14);
}

.training-card img,
.training-admin-card > img,
.selected-training img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy);
}

.training-card > img {
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

.training-card-body {
  padding: 18px 16px 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.training-card-body p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.training-card-body h3 {
  font-size: 1.08rem;
  line-height: 1.28;
  margin-bottom: 0;
}

.training-card-summary {
  min-height: 48px;
}

.training-card-details {
  border-top: 1px solid rgba(16, 32, 24, 0.08);
  padding-top: 10px;
}

.training-card-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 900;
  list-style: none;
}

.training-card-details summary::-webkit-details-marker {
  display: none;
}

.training-card-details summary::after {
  content: " +";
}

.training-card-details[open] summary::after {
  content: " -";
}

.training-card-details p {
  margin-top: 10px;
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

.training-image-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
  margin-top: 8px;
}

.training-image-preview img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.upload-row input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-row .help {
  margin: 0;
  flex: 1 1 220px;
}

.training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 9px;
}

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

.metric-card {
  padding: 17px;
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card strong {
  font-size: 1.75rem;
  color: var(--navy);
}

.metric-card small {
  color: var(--muted);
}

.status,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  background: #edf2f7;
  color: var(--ink);
}

.status.Open,
.status.Pass,
.pill.good {
  background: #e7f6ee;
  color: var(--success);
}

.status.Closed,
.status.used {
  background: #edf1f6;
  color: #425466;
}

.status.Archived,
.status.Deactivated,
.status.Fail,
.pill.bad {
  background: #fde8e4;
  color: var(--danger);
}

.status.Draft,
.status.unused,
.pill.warn {
  background: #fff3d6;
  color: var(--warning);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.check-field input {
  width: auto;
  min-height: 0;
}

label,
.label {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  min-height: 42px;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 154, 0, 0.17);
}

.help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.notice {
  border-left: 5px solid var(--gold);
  background: #fff8e8;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.55;
}

.completion-panel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
  padding: 44px;
}

.completion-panel::before {
  content: "";
  position: absolute;
  inset: -120px auto auto 50%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 182, 31, 0.28), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.completion-panel > * {
  position: relative;
}

.completion-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(135deg, var(--success), #12a879);
  box-shadow: 0 18px 46px rgba(15, 122, 90, 0.28);
  animation: completionPop 720ms ease both, ringBreathe 3s ease-in-out 900ms infinite;
}

.completion-icon span {
  font-size: 1.6rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
}

.completion-panel h2 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
}

.completion-lead {
  max-width: 610px;
  margin: 0 auto 24px;
  color: rgba(23, 35, 29, 0.75);
  font-size: 1.08rem;
  line-height: 1.65;
}

.completion-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.38fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 18px;
}

.completion-ticket div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 32, 24, 0.08);
  box-shadow: 0 14px 34px rgba(7, 21, 37, 0.07);
}

.completion-ticket span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.completion-ticket strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.completion-note {
  max-width: 700px;
  margin: 0 auto;
  padding: 15px 16px;
  border-radius: 8px;
  color: #315246;
  background: rgba(231, 246, 238, 0.82);
  border: 1px solid rgba(15, 122, 90, 0.16);
  line-height: 1.55;
}

.error,
.success {
  display: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 750;
}

.error.show {
  display: block;
  background: #fde8e4;
  color: var(--danger);
}

.success.show {
  display: block;
  background: #e7f6ee;
  color: var(--success);
}

.token-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 850;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.stepper span {
  border-radius: 8px;
  padding: 10px;
  background: #e9eef5;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.stepper span.active {
  background: var(--gold);
  color: var(--navy);
}

.emoji-row,
.rating-row,
.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.emoji-choice,
.rating-choice,
.option-choice {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 13px;
  font-weight: 850;
}

.rating-choice {
  display: grid;
  gap: 2px;
  min-width: 120px;
  text-align: left;
}

.rating-choice small {
  color: var(--muted);
  font-weight: 750;
}

.emoji-choice {
  min-width: 128px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.emoji-choice.active,
.rating-choice.active,
.option-choice.active {
  border-color: var(--gold);
  background: #fff5d8;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.question-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.survey-progress {
  display: grid;
  gap: 9px;
}

.survey-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.86rem;
}

.survey-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e8e0d2;
  overflow: hidden;
}

.survey-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
}

.survey-slide {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 94% 10%, rgba(201, 143, 20, 0.18), transparent 14rem),
    var(--white);
  display: grid;
  align-content: center;
  gap: 18px;
}

.survey-slide h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.slide-visual {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-size: 2.25rem;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.reaction-banner,
.learning-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #fff7df, #f7ebe8);
  border: 1px solid #f2d8a5;
}

.reaction-banner p,
.learning-banner p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.reaction-art {
  min-height: 112px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  font-size: 2rem;
}

.learning-count {
  min-height: 112px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.learning-count strong {
  color: var(--gold);
  font-size: 3rem;
  line-height: 1;
}

.learning-count span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.selected-training {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.selected-training img {
  min-height: 180px;
  border-radius: 8px;
}

.training-admin-card {
  overflow: hidden;
}

.training-admin-card > img {
  display: block;
  height: 180px;
  margin: -20px -20px 18px;
  width: calc(100% + 40px);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  background: var(--soft);
}

.sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.sidebar .brand {
  margin-bottom: 24px;
}

.sidebar .brand img {
  width: 202px;
  max-width: 100%;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  border-radius: 8px;
  padding: 12px 13px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.main {
  min-width: 0;
}

.admin-topbar {
  color: var(--ink);
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar-wrap {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 46px;
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f5f9;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.toolbar .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.personalized-token-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.token-bulk-panel,
.analytics-control-panel,
.analytics-command-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 221, 0.86)),
    radial-gradient(circle at 88% 12%, rgba(243, 182, 31, 0.2), transparent 14rem);
}

.token-bulk-panel {
  display: grid;
  gap: 14px;
}

.token-bulk-actions,
.token-date-delete,
.token-list-head,
.analytics-control-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.token-date-delete {
  justify-content: flex-start;
}

.token-date-delete select,
.token-date-delete input,
.analytics-control-panel select {
  width: auto;
  min-width: 180px;
}

.token-list-head {
  margin: 18px 0 12px;
}

.token-inventory {
  align-items: stretch;
}

.token-card {
  position: relative;
  padding-top: 46px;
  min-width: 0;
}

.token-card > div {
  min-width: 0;
}

.token-card .mono {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.token-card.expired-token {
  box-shadow: inset 0 0 0 1px rgba(181, 45, 31, 0.14), 0 18px 48px rgba(7, 21, 37, 0.08);
}

.token-select {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.token-select input {
  width: auto;
  min-height: 0;
}

.analytics-control-panel {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(7, 21, 37, 0.08);
}

.analytics-command-panel {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(7, 21, 37, 0.1);
  display: grid;
  gap: 18px;
  animation: riseIn 520ms ease both;
}

.analytics-command-panel::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(15, 122, 90, 0.12);
  animation: floatOrb 8s ease-in-out infinite;
}

.analytics-command-panel > * {
  position: relative;
}

.analytics-command-copy {
  max-width: 860px;
}

.analytics-command-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.analytics-command-copy p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.analytics-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-viz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr);
  gap: 14px;
}

.analytics-viz-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 226, 0.76)),
    radial-gradient(circle at 85% 12%, rgba(243, 182, 31, 0.2), transparent 12rem);
  border: 1px solid rgba(16, 32, 24, 0.08);
  box-shadow: 0 16px 42px rgba(7, 21, 37, 0.08);
  display: grid;
  gap: 14px;
  align-content: start;
}

.analytics-viz-card.wide {
  grid-row: span 2;
}

.analytics-viz-card::after {
  content: "";
  position: absolute;
  right: -64px;
  top: -64px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(15, 122, 90, 0.08);
  animation: floatOrb 9s ease-in-out infinite;
}

.analytics-viz-card > * {
  position: relative;
}

.viz-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.viz-heading span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.viz-heading strong {
  color: var(--navy);
  font-size: 1rem;
}

.viz-donut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.viz-card {
  min-height: 260px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 32, 24, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.viz-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.viz-card p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.viz-donut {
  --value: 0;
  --accent: var(--success);
  width: 142px;
  height: 142px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(16, 32, 24, 0.1) 0);
  box-shadow: 0 18px 42px rgba(7, 21, 37, 0.12), inset 0 0 0 10px rgba(255, 255, 255, 0.68);
  animation: ringBreathe 3.2s ease-in-out infinite;
}

.viz-donut strong {
  color: var(--navy);
  font-size: 1.55rem;
}

.mini-bars {
  display: grid;
  gap: 12px;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: 28px minmax(88px, 0.9fr) minmax(120px, 1.3fr) 56px;
  gap: 10px;
  align-items: center;
}

.mini-bar-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 32, 24, 0.08);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 950;
}

.mini-bar-row p {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-bar-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 32, 24, 0.08);
}

.mini-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  animation: growBar 780ms ease both;
}

.mini-bar-row strong {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.analytics-focus-card {
  min-height: 150px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 32, 24, 0.08);
  box-shadow: 0 14px 34px rgba(7, 21, 37, 0.07);
  display: grid;
  align-content: space-between;
  animation: pillFloat 5s ease-in-out infinite;
}

.analytics-focus-card:nth-child(2) {
  animation-delay: 0.3s;
}

.analytics-focus-card:nth-child(3) {
  animation-delay: 0.6s;
}

.analytics-focus-card:nth-child(4) {
  animation-delay: 0.9s;
}

.analytics-focus-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-focus-card strong {
  color: var(--success);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.analytics-focus-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.analytics-action-plan {
  padding: 18px;
  border-radius: 8px;
  background: rgba(16, 32, 24, 0.94);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.analytics-action-plan h3 {
  color: var(--gold-strong);
}

.analytics-action-plan ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.analytics-action-plan li {
  line-height: 1.45;
}

.toolbar select,
.toolbar input {
  width: auto;
  min-width: 190px;
}

.chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(150px, 1.5fr) 54px;
  gap: 10px;
  align-items: center;
}

.bar-label {
  color: var(--ink);
  font-weight: 750;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 12px;
  background: #edf1f5;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
}

.bar-value {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 8px auto 16px;
  position: relative;
}

.donut::after {
  content: "";
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
}

.donut strong {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: 1.4rem;
}

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

.insight-list li {
  background: #fff8e8;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
  line-height: 1.45;
}

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

.qr-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.qr-card svg {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  background: var(--white);
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.report {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.report-header img {
  width: 190px;
  object-fit: contain;
  align-self: flex-start;
}

.report-section {
  break-inside: avoid;
  margin-top: 22px;
}

.empty {
  border: 1px dashed #c7d0dc;
  background: #f8fafc;
  color: var(--muted);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.mobile-menu {
  display: none;
}

@keyframes pageGlow {
  0%,
  100% {
    background-position: 0% 50%, center, 0% 50%, center;
  }
  50% {
    background-position: 100% 50%, center, 100% 50%, center;
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes haloSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

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

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -18px, 0) scale(1.06);
  }
}

@keyframes pillFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes buttonShine {
  0%,
  55% {
    left: -70%;
  }
  100% {
    left: 124%;
  }
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(15, 122, 90, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(15, 122, 90, 0.08);
  }
}

@keyframes ringBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes noteFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(1deg);
  }
}

@keyframes completionPop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  70% {
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes growBar {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.role-badge {
  border: 1px solid rgba(15, 44, 32, 0.14);
  background: linear-gradient(135deg, rgba(238, 175, 22, 0.2), rgba(255, 255, 255, 0.8));
  color: var(--green);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.forgot-panel {
  margin-top: 18px;
  border-top: 1px solid rgba(15, 44, 32, 0.1);
  padding-top: 14px;
}

.forgot-panel summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--green);
}

.access-hero,
.site-popup {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(238, 175, 22, 0.25);
  background:
    radial-gradient(circle at top right, rgba(238, 175, 22, 0.28), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff7dc 48%, #eaf7ef);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.access-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 20px;
  padding: 28px;
  margin-bottom: 16px;
}

.access-hero h3 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 0 10px;
}

.access-orbit {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 180deg, var(--gold), var(--green), #d8f5df, var(--gold));
  animation: spinGlow 8s linear infinite;
}

.access-orbit span {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--green);
  font-size: 32px;
  font-weight: 950;
}

.role-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.role-stack span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 44, 32, 0.06);
  color: var(--muted);
  font-weight: 800;
}

.role-stack strong {
  color: var(--green);
  font-size: 20px;
}

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

.check-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 44, 32, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  color: var(--green);
}

.check-tile input {
  width: auto;
  accent-color: var(--gold);
}

.user-grid,
.notification-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.user-card {
  border: 1px solid rgba(15, 44, 32, 0.1);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.user-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.user-card-head h3 {
  margin: 0 0 4px;
}

.password-reset-form input {
  max-width: 260px;
}

.notification-manager,
.notification-card {
  margin-bottom: 16px;
}

.site-popup {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: min(430px, calc(100% - 32px));
  padding: 22px;
  animation: popupRise 0.6s ease both;
}

.site-popup h2 {
  margin: 0 34px 8px 0;
  font-size: 28px;
}

.site-popup p {
  color: var(--muted);
}

.site-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 44, 32, 0.1);
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.countdown-grid span {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(15, 44, 32, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-grid strong {
  color: var(--green);
  font-size: 22px;
  letter-spacing: 0;
}

.audit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(15, 44, 32, 0.1);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at top right, rgba(14, 135, 92, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f7fff9);
  box-shadow: var(--shadow-soft);
}

.audit-hero h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.audit-pulse {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--success), var(--gold), var(--success));
  color: var(--green);
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.audit-pulse span,
.audit-pulse small {
  grid-area: 1 / 1;
}

.audit-pulse span {
  align-self: center;
  font-size: 34px;
  font-weight: 950;
  transform: translateY(-8px);
}

.audit-pulse small {
  align-self: center;
  transform: translateY(24px);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.audit-pulse::before {
  content: "";
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--white);
  grid-area: 1 / 1;
}

.audit-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.audit-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(15, 44, 32, 0.1);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.audit-dot {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(238, 175, 22, 0.16);
}

.audit-item h3 {
  margin: 0 0 4px;
}

.audit-item h3 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.audit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.audit-details span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 44, 32, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audit-details strong {
  color: var(--green);
  text-transform: capitalize;
}

@keyframes popupRise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

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

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

@media (max-width: 980px) {
  .hero,
  .split,
  .employee-hero,
  .employee-flow {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four,
  .metric-grid,
  .training-showcase,
  .employee-training-grid,
  .analytics-viz-grid,
  .analytics-focus-grid,
  .permission-grid,
  .audit-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-viz-card.wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .training-card {
    grid-template-columns: 1fr;
  }

  .training-card img {
    height: auto;
  }

  .training-pick {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .training-pick img {
    width: 132px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero-dashboard {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .floating-note {
    display: none;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: none;
  }

  .sidebar.open {
    display: block;
  }

  .mobile-menu {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .public-nav,
  .admin-topbar {
    width: min(100% - 24px, 1180px);
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero,
  .page-wrap,
  .admin-content {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 32px 0 28px;
  }

  .brand img {
    width: 150px;
  }

  .insight-strip {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    grid-template-columns: 1fr;
  }

  .pulse-ring {
    min-height: 116px;
  }

  .completion-panel {
    padding: 30px 18px;
  }

  .completion-ticket {
    grid-template-columns: 1fr;
  }

  .hero-proof span {
    width: 100%;
    justify-content: center;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .metric-grid,
  .form-grid,
  .analytics-viz-grid,
  .viz-donut-grid,
  .analytics-focus-grid,
  .permission-grid,
  .access-hero,
  .audit-hero,
  .training-showcase,
  .reaction-banner,
  .learning-banner,
  .employee-training-grid,
  .personalized-token-panel {
    grid-template-columns: 1fr;
  }

  .access-orbit {
    width: 120px;
    height: 120px;
  }

  .access-orbit span {
    width: 90px;
    height: 90px;
  }

  .site-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

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

  .employee-hero {
    min-height: 0;
    padding-top: 18px;
  }

  .stepper {
    grid-template-columns: 1fr 1fr;
  }

  .page-title,
  .report-header {
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar .filters,
  .toolbar select,
  .toolbar input,
  .toolbar .btn,
  .token-date-delete select,
  .token-date-delete input,
  .token-date-delete .btn,
  .analytics-control-panel select {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mini-bar-row {
    grid-template-columns: 28px minmax(0, 1fr) 48px;
  }

  .mini-bar-row div {
    grid-column: 2 / -1;
  }

  .bar-value {
    text-align: left;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }

  .training-pick {
    grid-template-columns: 1fr;
  }

  .training-pick img {
    width: 100%;
    height: 190px;
    min-height: 0;
  }

  .training-pick-body {
    padding: 14px;
  }

  .survey-slide {
    min-height: 0;
    padding: 18px;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .sidebar,
  .admin-topbar-wrap,
  .no-print,
  .public-nav {
    display: none !important;
  }

  .admin-shell {
    display: block;
  }

  .admin-content {
    width: 100%;
    padding: 0;
  }

  .report {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

.structured-question-form {
  gap: 18px;
}

.assessment-option-builder {
  border: 1px solid rgba(15, 36, 59, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.option-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.assessment-option-row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.correct-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--forest);
}

.correct-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}

.question-option-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
}

.question-option-list li {
  border: 1px solid rgba(15, 36, 59, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.question-option-list li.is-correct {
  border-color: rgba(46, 125, 50, 0.35);
  background: rgba(46, 125, 50, 0.08);
}

.correct-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.12);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 900;
}

.option-check {
  margin-right: 8px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .option-builder-head,
  .assessment-option-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.onboarded-users {
  margin-top: 18px;
}

.onboarded-users .section-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.user-register {
  display: grid;
  gap: 16px;
}

.user-register-card {
  display: grid;
  gap: 14px;
}

.user-register-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.user-register-fields input[disabled] {
  background: rgba(15, 44, 32, 0.04);
  color: var(--muted);
  cursor: not-allowed;
}

.permission-details {
  border: 1px solid rgba(15, 44, 32, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
}

.permission-details summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--green);
}

.permission-details .permission-grid {
  margin-top: 12px;
}

.user-access-actions {
  justify-content: flex-start;
}

.password-reset-inline {
  border-top: 1px solid rgba(15, 44, 32, 0.1);
  padding-top: 14px;
}

.password-reset-inline label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
  color: var(--green);
}

.password-reset-inline .nav-actions {
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .user-register-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .user-register-fields {
    grid-template-columns: 1fr;
  }
}

.report-infographic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 22px 0;
  padding: 22px;
  border: 1px solid rgba(216, 154, 0, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 8%, rgba(216, 154, 0, 0.18), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(46, 125, 80, 0.16), transparent 30%),
    linear-gradient(135deg, #fffaf0, #f4fbf8 58%, #ffffff);
  overflow: hidden;
  break-inside: avoid;
}

.report-infographic-hero h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 4px 0 8px;
}

.report-rings,
.report-story-grid,
.report-visual-grid {
  display: grid;
  gap: 14px;
}

.report-rings {
  grid-template-columns: repeat(3, 104px);
}

.report-ring {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring-color) var(--ring), rgba(15, 44, 32, 0.08) 0);
  box-shadow: 0 18px 30px rgba(15, 44, 32, 0.12);
}

.report-ring::before {
  content: "";
  position: absolute;
}

.report-ring div {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: #fff;
  text-align: center;
}

.report-ring strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.report-ring span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-ring.gold { --ring-color: var(--gold); }
.report-ring.green { --ring-color: var(--success); }
.report-ring.maroon { --ring-color: var(--maroon); }

.report-story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

.report-story-card,
.report-chart-card {
  border: 1px solid rgba(15, 44, 32, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(15, 44, 32, 0.08);
  break-inside: avoid;
}

.report-story-card {
  padding: 18px;
  border-top: 8px solid var(--gold);
}

.report-story-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-story-card span i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  color: var(--success);
  background: #e7f7ef;
  font-style: normal;
}

.report-story-card span i .lucide {
  width: 16px;
  height: 16px;
}

.report-story-card strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: 1.45rem;
}

.report-story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.report-story-card.accent-green { border-top-color: var(--success); }
.report-story-card.accent-maroon { border-top-color: var(--maroon); }
.report-story-card.accent-navy { border-top-color: var(--navy); }

.report-visual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.report-chart-card {
  padding: 20px;
}

.report-chart-card h3 {
  margin-top: 0;
}

.rating-distribution {
  display: grid;
  gap: 12px;
}

.rating-bar-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.rating-bar-row span,
.rating-bar-row strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.rating-bar-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 44, 32, 0.08);
}

.rating-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
}

.report-donut-wrap {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.report-donut,
.report-impact-pie {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.78), 0 18px 38px rgba(15, 44, 32, 0.12);
}

.report-donut {
  background: conic-gradient(var(--success) calc(var(--pass) * 1%), var(--danger) 0);
}

.report-donut::before {
  content: "";
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #fff;
  grid-area: 1 / 1;
}

.report-donut strong,
.report-donut span {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
}

.report-donut strong {
  align-self: center;
  color: var(--navy);
  font-size: 1.35rem;
  transform: translateY(-8px);
}

.report-donut span {
  align-self: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(20px);
}

.report-impact-pie {
  background:
    conic-gradient(
      var(--gold) 0 calc(var(--response) * 1%),
      var(--success) 0 calc((var(--response) + var(--learning)) * 0.5%),
      var(--maroon) 0
    );
}

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

.report-legend-list span {
  min-height: 38px;
  border: 1px solid rgba(15, 44, 32, 0.08);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 850;
}

.report-legend-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.report-legend-list i.green { background: var(--success); }
.report-legend-list i.red { background: var(--danger); }
.report-legend-list i.gold { background: var(--gold); }
.report-legend-list i.maroon { background: var(--maroon); }

.report-legend-list b {
  color: var(--navy);
}

.report-pie-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.report-pie-card h3 {
  grid-column: 1 / -1;
}

.admin-login-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background: #f7f7f2;
}

.admin-login-canvas {
  position: relative;
  width: min(1820px, 100%);
  min-height: min(920px, calc(100vh - 56px));
  border: 1px solid rgba(15, 44, 32, 0.08);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1fr);
  align-items: center;
  gap: 64px;
  padding: 72px 116px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.92) 49%, rgba(255, 255, 255, 0.98)),
    url("/assets/admin-login-background.png") left center / cover no-repeat;
  box-shadow: 0 28px 90px rgba(16, 32, 24, 0.18);
}

.login-theme-toggle {
  position: absolute;
  top: 24px;
  right: 34px;
  z-index: 2;
  min-height: 44px;
  border: 1px solid rgba(15, 44, 32, 0.12);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 850;
  box-shadow: 0 12px 32px rgba(16, 32, 24, 0.08);
}

.login-brand-panel,
.login-card-pro {
  position: relative;
  z-index: 1;
}

.login-brand-panel {
  max-width: 560px;
  color: var(--navy);
}

.login-brand-panel img {
  width: 310px;
  max-width: 80%;
  height: auto;
  object-fit: contain;
  margin-bottom: 28px;
}

.login-brand-panel h1 {
  margin: 0;
  color: #0f3f30;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.login-brand-panel > p {
  margin: 6px 0 0;
  color: #5d6d69;
  font-size: 1.08rem;
}

.login-divider {
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  margin: 38px 0;
  background: var(--gold);
}

.login-brand-panel h2 {
  margin: 0 0 12px;
  color: #0f3f30;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.login-brand-panel h2 b {
  color: #d49400;
}

.login-intro {
  max-width: 480px;
  line-height: 1.55;
}

.login-benefits {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.login-benefits article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.login-benefits article > span {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 122, 90, 0.15);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--success);
  background: rgba(231, 247, 239, 0.88);
  box-shadow: 0 12px 28px rgba(16, 32, 24, 0.08);
}

.login-benefits article:nth-child(2) > span { color: #b26f00; background: #fff3d1; }
.login-benefits article:nth-child(3) > span { color: #6d35c5; background: #efe8ff; }
.login-benefits article:nth-child(4) > span { color: #0f766e; background: #e0f7f4; }

.login-benefits strong,
.login-benefits small {
  display: block;
}

.login-benefits strong {
  color: #25352f;
  font-weight: 950;
}

.login-benefits small {
  margin-top: 3px;
  color: #5f7069;
  line-height: 1.35;
}

.login-card-pro {
  width: min(100%, 610px);
  justify-self: center;
  border: 1px solid rgba(15, 44, 32, 0.08);
  border-radius: 18px;
  padding: 46px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(16, 32, 24, 0.12);
  backdrop-filter: blur(18px);
}

.secure-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--success);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secure-kicker span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e7f7ef;
}

.login-card-pro h2 {
  margin: 0 0 8px;
  color: #0f3f30;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.login-form-pro {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-input-field {
  position: relative;
}

.login-input-field > span {
  position: absolute;
  left: 16px;
  bottom: 13px;
  color: var(--success);
}

.login-input-field input {
  min-height: 54px;
  padding-left: 58px;
  border-radius: 10px;
  border-color: rgba(15, 44, 32, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.login-label-row,
.remember-row,
.login-security-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.login-label-row a,
.remember-row em {
  color: var(--success);
  font-style: normal;
  font-weight: 850;
  text-decoration: none;
}

.remember-row {
  color: #273a33;
  font-weight: 800;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}

.remember-row span {
  margin-right: auto;
}

.remember-row em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-submit {
  min-height: 54px;
  border-radius: 10px;
  font-size: 1rem;
}

.login-card-pro .forgot-panel {
  margin-top: 22px;
}

.login-security-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 44, 32, 0.1);
  color: #6b7780;
  font-size: 0.88rem;
  justify-content: center;
}

.login-security-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #8a948e;
  font-size: 0.86rem;
}

@media (max-width: 1120px) {
  .admin-login-canvas {
    grid-template-columns: 1fr;
    padding: 86px 28px 72px;
  }

  .login-brand-panel {
    display: none;
  }
}

@media (max-width: 680px) {
  .admin-login-shell {
    padding: 0;
  }

  .admin-login-canvas {
    min-height: 100vh;
    border-radius: 0;
  }

  .login-card-pro {
    padding: 28px 20px;
  }

  .remember-row,
  .login-security-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-theme-toggle {
    right: 16px;
  }
}

.report-metric-grid {
  margin-top: 18px;
}

.submission-bulk-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.submission-checkbox,
#select-all-submissions {
  width: 18px;
  height: 18px;
  accent-color: var(--maroon);
}

@media (max-width: 1024px) {
  .report-infographic-hero,
  .report-visual-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .report-rings,
  .report-story-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .report-infographic-hero,
  .report-story-card,
  .report-chart-card {
    box-shadow: none;
  }

  .report-story-grid,
  .report-visual-grid {
    break-inside: avoid;
  }
}

/* V2 polish layer */
:root {
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --deep-green: #0d2c20;
  --sage: #e7efe7;
  --steel: #426056;
  --focus-ring: 0 0 0 4px rgba(201, 143, 20, 0.18);
  --shadow-soft: 0 20px 54px rgba(16, 32, 24, 0.13);
  --shadow-lift: 0 28px 70px rgba(16, 32, 24, 0.18);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 251, 240, 0.9), rgba(239, 247, 240, 0.92)),
    var(--soft);
}

.public-shell {
  background:
    radial-gradient(circle at 10% 48%, rgba(243, 182, 31, 0.32), transparent 12rem),
    radial-gradient(circle at 34% 54%, rgba(243, 182, 31, 0.2), transparent 22rem),
    radial-gradient(circle at 88% 24%, rgba(255, 204, 64, 0.45), transparent 20rem),
    linear-gradient(135deg, rgba(255, 248, 229, 0.98) 0%, rgba(236, 247, 238, 0.98) 43%, rgba(255, 255, 255, 0.98) 100%),
    var(--soft);
}

.public-shell::after,
.hero-orb {
  display: block;
}

.public-shell::before {
  height: 620px;
  background:
    linear-gradient(rgba(16, 32, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 24, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}

.public-shell::after {
  inset: 118px auto auto 6%;
  width: min(56vw, 720px);
  height: min(56vw, 720px);
  opacity: 0.82;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.76), transparent 42%),
    conic-gradient(from 95deg, rgba(243, 182, 31, 0.34), rgba(15, 122, 90, 0.18), rgba(155, 47, 32, 0.13), rgba(243, 182, 31, 0.34));
}

.orb-one {
  width: 238px;
  height: 238px;
  left: -72px;
  top: 104px;
  background: rgba(243, 182, 31, 0.34);
  filter: blur(0.5px);
}

.orb-two {
  width: 190px;
  height: 190px;
  right: 25%;
  bottom: 42px;
  background: rgba(15, 122, 90, 0.2);
  filter: blur(0.5px);
}

.public-nav,
.admin-topbar {
  border-bottom: 1px solid rgba(16, 32, 24, 0.08);
}

.hero {
  min-height: auto;
  padding-top: 54px;
}

.hero-copy {
  padding-top: 32px;
}

.hero-copy h1,
.employee-hero-copy h1 {
  max-width: 780px;
  letter-spacing: 0;
}

.lead {
  color: rgba(23, 35, 29, 0.76);
}

.hero-panel,
.access-card,
.panel,
.card,
.metric-card,
.training-card,
.employee-training-card,
.training-admin-card,
.analytics-viz-card,
.viz-card,
.report-chart-card,
.report-story-card,
.user-register-card,
.notification-card {
  border: 1px solid rgba(16, 32, 24, 0.1);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-command {
  overflow: visible;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 243, 0.86)),
    var(--surface-strong);
}

.hero-command::before {
  background:
    linear-gradient(90deg, rgba(201, 143, 20, 0.22), rgba(15, 122, 90, 0.2)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.6));
}

.hero-proof span,
.employee-hero-badges span,
.pill,
.role-badge {
  border: 1px solid rgba(16, 32, 24, 0.1);
  box-shadow: 0 8px 24px rgba(16, 32, 24, 0.07);
}

.btn,
.icon-btn,
.chip {
  will-change: transform;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.chip:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 14px 38px rgba(7, 21, 37, 0.11);
}

.btn.primary {
  background: linear-gradient(135deg, #ffe08a, #d99a00 52%, #a86708);
}

.btn.maroon {
  background: linear-gradient(135deg, #b8442e, #842515);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.72);
}

.training-card:hover,
.employee-training-card:hover,
.card:hover,
.metric-card:hover,
.analytics-viz-card:hover {
  box-shadow: var(--shadow-lift);
}

.sidebar {
  background:
    linear-gradient(180deg, #0d2c20, #143d2d 58%, #102018),
    var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .brand {
  padding: 18px 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  border-radius: 8px;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(255, 224, 138, 0.96), rgba(201, 143, 20, 0.92));
  color: #102018;
}

.main {
  background:
    linear-gradient(180deg, rgba(246, 250, 245, 0.98), rgba(255, 250, 238, 0.92)),
    var(--soft);
}

.admin-content {
  animation: none;
}

.page-title {
  align-items: end;
  border-bottom: 1px solid rgba(16, 32, 24, 0.08);
  padding-bottom: 18px;
}

.table-wrap,
table {
  border-radius: 8px;
}

table th {
  background: rgba(231, 239, 231, 0.86);
  color: var(--deep-green);
}

input,
select,
textarea {
  border-color: rgba(66, 96, 86, 0.22);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: var(--focus-ring);
}

.live-dot {
  box-shadow: 0 0 0 6px rgba(15, 122, 90, 0.1);
}

.floating-note {
  border: 1px solid rgba(16, 32, 24, 0.1);
  box-shadow: var(--shadow-soft);
  z-index: 4;
}

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

/* Enterprise dashboard V2 */
.lucide {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.admin-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  background: #f6f8fa;
}

.sidebar {
  padding: 20px 12px;
  background:
    radial-gradient(circle at 70% 0%, rgba(22, 163, 74, 0.26), transparent 16rem),
    linear-gradient(180deg, #003f2a, #003421 54%, #042719);
}

.admin-brand {
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 8px 6px 18px;
}

.admin-brand img {
  width: 205px;
}

.sidebar-collapse {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.nav-list {
  gap: 8px;
}

.nav-link {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.nav-link-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-link.active {
  background: linear-gradient(135deg, #0f9f5f, #04754b);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-status {
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 16px;
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.sidebar-usage div,
.sidebar-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.sidebar-usage i,
.dash-token-bar {
  height: 7px;
  border-radius: 999px;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  margin: 10px 0 6px;
}

.sidebar-usage b,
.dash-token-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #10b981);
}

.sidebar-kv strong {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sidebar-kv i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.16);
}

.sidebar-support {
  min-height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
}

.sidebar-copy {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.admin-topbar {
  width: 100%;
  min-height: 86px;
  padding: 0 28px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-top-left {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-top-left div {
  display: grid;
  gap: 2px;
}

.admin-top-left strong {
  color: #0f172a;
  font-size: 1.08rem;
}

.admin-top-left span,
.admin-profile small {
  color: #64748b;
  font-size: 0.82rem;
}

.admin-search {
  flex: 1 1 360px;
  max-width: 520px;
  height: 48px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #fff;
  color: #64748b;
}

.admin-search input {
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

.admin-search span {
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.78rem;
  color: #475569;
  white-space: nowrap;
}

.admin-workspace-pill {
  height: 48px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  font-weight: 800;
  color: #334155;
}

.admin-top-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-top-icons .icon-btn {
  position: relative;
  box-shadow: none;
  border: 1px solid transparent;
  background: transparent;
}

.notify-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #dc2626;
  font-size: 0.62rem;
  font-weight: 900;
}

.notify-badge.green {
  background: #16a34a;
}

.admin-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}

.admin-profile > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d99a00;
  font-weight: 950;
}

.admin-profile div {
  display: grid;
}

.admin-profile strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.admin-content {
  width: min(1540px, calc(100% - 56px));
  padding: 28px 0 48px;
}

.dash-breadcrumb {
  color: #94a3b8;
  font-size: 0.86rem;
  margin-bottom: 22px;
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.dash-hero h1 {
  font-size: 2rem;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 8px;
}

.dash-hero p:last-child {
  color: #475569;
  margin-bottom: 0;
}

.dash-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-actions .btn {
  gap: 8px;
}

.dash-date,
.dash-select,
.dash-filter-bar button {
  min-height: 44px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  padding: 0 14px;
  font-weight: 800;
}

.dash-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dash-kpi-card,
.dash-panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.dash-kpi-card {
  padding: 20px;
  min-height: 168px;
  display: grid;
  gap: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dash-kpi-card:hover,
.dash-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.1);
}

.dash-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.dash-kpi-card.green .dash-kpi-icon { background: linear-gradient(135deg, #16a34a, #087b45); }
.dash-kpi-card.blue .dash-kpi-icon { background: linear-gradient(135deg, #f2b705, #d49400); color: #13231c; }
.dash-kpi-card.purple .dash-kpi-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.dash-kpi-card.orange .dash-kpi-icon { background: linear-gradient(135deg, #f59e0b, #ea8a04); }

.dash-kpi-change {
  color: #16a34a;
  font-size: 0.82rem;
  font-weight: 900;
}

.dash-kpi-card p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-kpi-card strong {
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
}

.dash-kpi-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
}

.dash-sparkline {
  width: 100%;
  height: 38px;
  margin-top: 2px;
}

.dash-board-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr;
  gap: 16px;
}

.dash-panel {
  padding: 18px;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dash-panel.span-2 {
  grid-column: span 1;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-panel h3 {
  color: #0f172a;
  font-size: 1rem;
  margin: 0;
}

.dash-select {
  min-height: 34px;
  font-size: 0.8rem;
}

.dash-rating-list {
  display: grid;
  gap: 16px;
}

.dash-rating-row {
  display: grid;
  grid-template-columns: 18px 18px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-weight: 800;
}

.dash-rating-row b {
  color: #f59e0b;
}

.dash-rating-row i,
.dash-dept-row i {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
}

.dash-rating-row em,
.dash-dept-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #16a34a;
}

.dash-rating-row strong {
  color: #64748b;
  font-size: 0.82rem;
}

.dash-pass-ring {
  width: 168px;
  height: 168px;
  margin: 8px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: conic-gradient(#16a34a var(--pass), #eef2f7 0);
  position: relative;
}

.dash-pass-ring::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #fff;
}

.dash-pass-ring strong,
.dash-pass-ring span {
  position: relative;
  z-index: 1;
}

.dash-pass-ring strong {
  color: #0f172a;
  font-size: 1.65rem;
}

.dash-pass-ring span {
  color: #475569;
  font-size: 0.82rem;
}

.dash-pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dash-pass-grid span {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 0.86rem;
}

.dash-pass-grid i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dash-pass-grid .good { background: #16a34a; }
.dash-pass-grid .bad { background: #dc2626; }

.dash-insights,
.dash-activity-list,
.dash-dept-list {
  display: grid;
  gap: 10px;
}

.dash-insight,
.dash-activity {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #fff;
}

.dash-insight {
  border-left: 4px solid #16a34a;
}

.dash-insight.orange { border-left-color: #f59e0b; }
.dash-insight.blue { border-left-color: #0f766e; }
.dash-insight.purple { border-left-color: #8b5cf6; }

.dash-insight > span,
.dash-activity > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #16a34a;
  background: #dcfce7;
}

.dash-insight.orange > span { color: #f59e0b; background: #fff7ed; }
.dash-insight.blue > span { color: #0f766e; background: #dff7ef; }
.dash-insight.purple > span { color: #8b5cf6; background: #f3e8ff; }

.dash-insight strong,
.dash-activity strong {
  color: #0f172a;
  display: block;
  margin-bottom: 3px;
}

.dash-insight p,
.dash-activity p {
  color: #475569;
  margin: 0;
  line-height: 1.4;
  font-size: 0.86rem;
}

.dash-dept-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.dash-dept-row span {
  color: #0f172a;
  font-weight: 800;
  font-size: 0.86rem;
}

.dash-dept-row strong {
  color: #334155;
}

.dash-activity {
  align-items: center;
}

.dash-activity b {
  margin-left: auto;
  border-radius: 999px;
  padding: 4px 9px;
  color: #087b45;
  background: #dcfce7;
  font-size: 0.72rem;
}

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

.dash-token-grid span {
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fafc;
  color: #0f766e;
}

.dash-token-grid strong {
  color: #0f172a;
  font-size: 1.3rem;
}

.dash-token-grid small,
.dash-token-caption {
  color: #64748b;
  font-size: 0.82rem;
}

.dash-token-caption {
  text-align: right;
  margin: 8px 0 0;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .admin-top-icons,
  .admin-workspace-pill {
    display: none;
  }

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

  .dash-board-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

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

  .dash-kpi-grid,
  .dash-board-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard polish pass: compact, clean, functional chrome */
.admin-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  font-size: 0.92rem;
  transition: grid-template-columns 220ms ease;
}

.sidebar {
  overflow: hidden;
  padding: 18px 10px;
}

.admin-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 4px 8px;
  border-bottom: 0;
}

.admin-brand {
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.sidebar .admin-brand {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-brand img {
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.sidebar-collapse {
  width: 34px;
  height: 34px;
  margin-left: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background 160ms ease, transform 160ms ease;
}

.sidebar-collapse:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-list {
  gap: 5px;
  padding-top: 4px;
}

.nav-link {
  min-height: 43px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.nav-link-main {
  gap: 10px;
}

.nav-link .lucide {
  width: 16px;
  height: 16px;
}

.sidebar-status {
  margin-top: 18px;
  gap: 11px;
  padding: 12px;
  border-radius: 12px;
}

.sidebar-usage div,
.sidebar-kv,
.sidebar-support,
.sidebar-copy {
  font-size: 0.78rem;
}

.sidebar-support {
  min-height: 36px;
}

.admin-topbar {
  min-height: 64px;
  padding: 0 16px;
  gap: 12px;
}

.admin-top-left {
  min-width: 310px;
  max-width: 340px;
}

.admin-top-left strong {
  font-size: 0.96rem;
  line-height: 1.25;
  display: block;
  text-wrap: balance;
}

.admin-search {
  flex: 1 1 240px;
  max-width: 460px;
  height: 42px;
  border-radius: 12px;
  position: relative;
  min-width: 260px;
}

.admin-search input {
  font-size: 0.86rem;
}

.admin-search span {
  padding: 3px 7px;
}

.admin-workspace-pill {
  max-width: 230px;
  height: 42px;
  border-radius: 12px;
  line-height: 1.15;
  white-space: normal;
  text-align: left;
}

.admin-workspace-pill span {
  display: block;
  max-width: 168px;
  line-height: 1.1;
  font-size: 0.82rem;
}

.admin-top-icons {
  position: relative;
}

.admin-top-icons .icon-btn {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.admin-profile > span {
  width: 38px;
  height: 38px;
}

.admin-profile strong {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shell.sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

.admin-shell.sidebar-collapsed .sidebar {
  padding: 14px 8px;
}

.admin-shell.sidebar-collapsed .admin-brand-row {
  display: flex;
  justify-content: center;
  padding: 8px 0 14px;
}

.admin-shell.sidebar-collapsed .admin-brand {
  display: none;
}

.admin-shell.sidebar-collapsed .sidebar-collapse {
  width: 40px;
  height: 40px;
}

.admin-shell.sidebar-collapsed .nav-link {
  min-height: 42px;
  justify-content: center;
  padding: 0;
}

.admin-shell.sidebar-collapsed .nav-link-main {
  gap: 0;
}

.admin-shell.sidebar-collapsed .nav-link-main span,
.admin-shell.sidebar-collapsed .nav-link > span:last-child,
.admin-shell.sidebar-collapsed .sidebar-status {
  display: none;
}

.admin-shell.sidebar-collapsed .nav-link .lucide {
  width: 18px;
  height: 18px;
}

.admin-content {
  width: min(1600px, calc(100% - 36px));
  padding-top: 18px;
}

.dash-hero {
  align-items: center;
  margin-bottom: 18px;
}

.dash-breadcrumb {
  margin-bottom: 16px;
}

.dash-hero h1 {
  max-width: 620px;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  text-wrap: balance;
}

.dash-actions {
  gap: 9px;
}

.dash-actions .btn,
.dash-date,
.dash-filter-bar button {
  min-height: 38px;
  border-radius: 10px;
}

.dash-filter-bar {
  margin-bottom: 14px;
}

.dash-kpi-grid {
  gap: 14px;
  margin-bottom: 14px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dash-kpi-card {
  min-height: 126px;
  padding: 14px;
  gap: 5px;
}

.dash-kpi-icon {
  width: 38px;
  height: 38px;
}

.dash-kpi-card strong {
  font-size: 1.35rem;
}

.dash-kpi-card p {
  font-size: 0.66rem;
  line-height: 1.15;
}

.dash-kpi-foot {
  font-size: 0.66rem;
}

.dash-sparkline {
  height: 26px;
}

.dash-board-grid {
  gap: 14px;
  grid-template-columns: 1.75fr 1fr 1.35fr;
}

.dash-panel {
  padding: 16px;
  border-radius: 14px;
}

.dash-panel-head {
  margin-bottom: 12px;
}

.dash-rating-list {
  gap: 12px;
}

.dash-pass-ring {
  width: 138px;
  height: 138px;
  margin-bottom: 12px;
}

.dash-pass-ring::before {
  inset: 20px;
}

.dash-overview-panel {
  min-height: 214px;
}

.dash-line-chart {
  width: 100%;
  height: 202px;
}

.dash-line-chart .grid-lines path,
.dash-small-chart .grid-lines path {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.dash-line-chart .line,
.dash-small-chart .line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-line-chart .green,
.dash-small-chart .green {
  stroke: #0f9f5f;
}

.dash-line-chart .orange {
  stroke: #f59e0b;
}

.dash-line-chart text,
.dash-small-chart text {
  fill: #64748b;
  font-size: 12px;
}

.dash-small-chart {
  width: 100%;
  height: 150px;
}

.dash-small-chart .area {
  fill: rgba(22, 163, 74, 0.13);
  stroke: none;
}

.dash-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: -6px 0 6px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.dash-legend i {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.dash-legend .green { background: #0f9f5f; }
.dash-legend .orange { background: #f59e0b; }

.dash-actions-panel {
  min-height: 194px;
}

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

.dash-action-grid a {
  min-height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  background: #fff;
}

.dash-action-grid a:hover {
  background: #f8fafc;
}

.dash-table-panel {
  grid-column: span 1;
}

.dash-table {
  display: grid;
  gap: 0;
  font-size: 0.78rem;
}

.dash-table-head,
.dash-table-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr 0.95fr 72px;
  gap: 10px;
  align-items: center;
  padding: 9px 8px;
}

.dash-table-head {
  color: #64748b;
  font-weight: 900;
  border-bottom: 1px solid #e2e8f0;
}

.dash-table-row {
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.dash-user-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dash-user-dot i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d99a00;
  font-style: normal;
  font-size: 0.72rem;
}

.dash-table-row b {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #087b45;
  background: #dcfce7;
  font-size: 0.7rem;
}

.dash-deadline-list,
.dash-health-list,
.dash-export-list {
  display: grid;
  gap: 9px;
}

.dash-deadline-list article,
.dash-export-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 10px;
  background: #f8fafc;
}

.dash-deadline-list svg,
.dash-export-list svg {
  color: #16a34a;
}

.dash-deadline-list strong,
.dash-export-list strong {
  color: #0f172a;
  display: block;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-deadline-list span,
.dash-export-list small {
  color: #64748b;
  font-size: 0.72rem;
}

.dash-deadline-list b {
  border-radius: 999px;
  padding: 4px 7px;
  color: #087b45;
  background: #dcfce7;
  font-size: 0.68rem;
}

.dash-deadline-list .orange b { color: #92400e; background: #fef3c7; }
.dash-deadline-list .red b { color: #b91c1c; background: #fee2e2; }

.dash-health-list span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 0.78rem;
}

.dash-health-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.dash-health-list b {
  color: #16a34a;
  font-size: 0.74rem;
}

.dash-export-list article {
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
}

.dash-export-list span.pdf,
.dash-export-list span.excel,
.dash-export-list span.csv {
  width: fit-content;
  border-radius: 5px;
  padding: 2px 5px;
  color: #fff;
  background: #dc2626;
  font-size: 0.62rem;
  font-weight: 900;
}

.dash-export-list span.excel { background: #16a34a; }
.dash-export-list span.csv { background: #0f766e; }

.admin-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 320px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.admin-search .admin-popover {
  left: 0;
  right: auto;
  width: min(420px, 78vw);
}

.admin-popover[hidden] {
  display: none;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px;
  color: #0f172a;
}

.popover-head span {
  border: 0;
  padding: 0;
  color: #64748b;
  font-size: 0.76rem;
}

.admin-popover a,
.popover-empty {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  padding: 10px;
  color: #0f172a;
  text-decoration: none;
}

.admin-popover a:hover {
  background: #f8fafc;
}

.admin-popover b {
  font-size: 0.88rem;
}

.admin-popover small,
.popover-empty {
  color: #64748b;
  font-size: 0.8rem;
}

.dashboard-compact .dash-kpi-card,
.dashboard-compact .dash-panel,
.dashboard-compact .dash-mini-card,
.dashboard-compact .dash-impact-card {
  transform: scale(0.985);
  transform-origin: top center;
}

.dashboard-compact .admin-content {
  width: min(1500px, calc(100% - 34px));
}

@media (max-height: 760px) and (min-width: 861px) {
  .sidebar-status {
    display: none;
  }

  .nav-link {
    min-height: 41px;
  }
}

@media (max-width: 1380px) {
  .admin-topbar {
    gap: 10px;
  }

  .admin-search {
    max-width: 230px;
  }

  .admin-workspace-pill {
    max-width: 136px;
    padding: 0 10px;
  }

  .admin-topbar .nav-actions .btn.outline {
    display: none;
  }

  .admin-profile div {
    display: none;
  }
}

@media (max-width: 1500px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dash-board-grid {
    grid-template-columns: 1.45fr 1fr;
  }

  .dash-overview-panel,
  .dash-table-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .dash-kpi-grid,
  .dash-board-grid {
    grid-template-columns: 1fr;
  }

  .dash-table-head,
  .dash-table-row {
    grid-template-columns: 1fr;
  }
}

/* Reference-inspired dashboard polish */
.admin-shell {
  background:
    radial-gradient(circle at 82% 8%, rgba(16, 185, 129, 0.08), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #f3f6f8 100%);
}

.admin-content {
  width: min(1680px, calc(100% - 28px));
  max-width: calc(100% - 28px);
  padding-top: 14px;
}

.admin-shell,
.main,
.admin-content,
.dash-pro-board {
  overflow-x: clip;
}

.dash-pro-board {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.06), transparent 18rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 80px rgba(15, 23, 42, 0.08);
}

.dash-pro-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dash-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-tabs a {
  min-height: 38px;
  min-width: 86px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dash-tabs a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.dash-tabs a.active {
  color: #13231c;
  border-color: #d49400;
  background: linear-gradient(135deg, #ffe08a, #f2b705, #d49400);
  box-shadow: 0 16px 32px rgba(212, 148, 0, 0.22);
}

.dash-pro-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dash-icon-action,
.dash-avatar-mini,
.dash-open-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dash-avatar-mini {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #d99a00, #f2b705);
  font-weight: 950;
}

.dash-pro-hero {
  align-items: flex-start;
  padding: 4px 2px 8px;
  margin-bottom: 14px;
}

.dash-pro-hero .dash-breadcrumb {
  margin-bottom: 14px;
}

.dash-pro-hero h1 {
  max-width: 720px;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  letter-spacing: 0;
}

.dash-pro-hero p:last-child {
  max-width: 760px;
  line-height: 1.55;
}

.dash-pro-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(7, minmax(132px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin: 2px 0 14px;
}

.dash-filter-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.dash-filter-field span {
  color: #64736c;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dash-filter-field select,
.dash-filter-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dfe7e2;
  border-radius: 11px;
  padding: 0 11px;
  color: #13231c;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.dash-filter-field select:focus,
.dash-filter-field input:focus {
  outline: 0;
  border-color: #d49400;
  box-shadow: 0 0 0 3px rgba(212, 148, 0, 0.16);
}

.dash-clear-filters {
  min-height: 38px;
  border: 1px solid #dfe7e2;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #13231c;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.9);
}

.dash-active-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-active-filters span {
  min-height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #0f6b4d;
  background: #e7f6ee;
  font-size: 0.76rem;
  font-weight: 850;
}

.dash-showcase-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.35fr);
  gap: 14px;
  margin-bottom: 14px;
}

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

.dash-mini-card,
.dash-impact-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.dash-mini-card {
  min-height: 130px;
  padding: 15px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.dash-mini-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(15, 159, 95, 0.1);
}

.dash-mini-card.blue::after { background: rgba(212, 148, 0, 0.13); }
.dash-mini-card.purple::after { background: rgba(139, 92, 246, 0.12); }
.dash-mini-card.orange::after { background: rgba(245, 158, 11, 0.14); }

.dash-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.dash-mini-head > span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0f9f5f;
  background: #dcfce7;
}

.dash-mini-card.blue .dash-mini-head > span { color: #7a4f00; background: #fff1bf; }
.dash-mini-card.purple .dash-mini-head > span { color: #7c3aed; background: #ede9fe; }
.dash-mini-card.orange .dash-mini-head > span { color: #d97706; background: #fef3c7; }

.dash-mini-head a {
  color: #0f172a;
  opacity: 0.78;
}

.dash-mini-card strong {
  position: relative;
  z-index: 1;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1;
}

.dash-mini-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.dash-mini-card small {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.25;
}

.dash-mini-card small b {
  color: #0f9f5f;
  white-space: nowrap;
}

.dash-impact-card {
  min-height: 270px;
  padding: 20px;
  display: grid;
  align-content: space-between;
}

.dash-impact-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.dash-impact-head p {
  margin: 0 0 6px;
  color: #0f172a;
  font-weight: 950;
  font-size: 1.05rem;
}

.dash-impact-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.dash-impact-head span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
}

.dash-impact-head > strong {
  color: #10b981;
  font-size: 1.05rem;
  white-space: nowrap;
}

.dash-bar-chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
  padding-top: 18px;
}

.dash-bar-chart div {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.dash-bar-chart i {
  width: 100%;
  min-height: 24px;
  height: var(--bar);
  border-radius: 10px;
  display: block;
  background: linear-gradient(180deg, #a78bfa, #8b5cf6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dash-bar-chart .featured i {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 4px, transparent 4px 8px),
    linear-gradient(180deg, #f8d86b, #d49400);
}

.dash-bar-chart span {
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 800;
}

.dash-pro-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.95fr 1.25fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}

.dash-pro-grid .dash-panel {
  min-height: 230px;
}

.dash-open-link {
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.dash-gauge {
  height: 132px;
  position: relative;
  display: grid;
  place-items: end center;
  margin-top: 4px;
}

.dash-gauge i {
  --angle: calc(-86deg + (var(--step) * 10deg));
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 12px;
  height: 58px;
  border-radius: 999px;
  transform-origin: 50% 72px;
  transform: translateX(-50%) rotate(var(--angle));
  background: #eef2f7;
}

.dash-gauge i.on {
  background: linear-gradient(180deg, #f8de79, #eab308);
}

.dash-gauge div {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 86px;
  border-radius: 86px 86px 18px 18px;
  display: grid;
  place-items: center;
  align-content: center;
  background: #fff;
}

.dash-gauge strong {
  color: #0f172a;
  font-size: 1.7rem;
  line-height: 1;
}

.dash-gauge span,
.dash-gauge-footer span {
  color: #64748b;
  font-size: 0.78rem;
}

.dash-gauge-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.dash-gauge-footer span {
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
}

.dash-gauge-footer b {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.dash-mix-bars {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
}

.dash-mix-bars div {
  min-height: 54px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.dash-mix-bars div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--mix);
  background: rgba(239, 68, 68, 0.16);
}

.dash-mix-bars .used::before {
  background: rgba(16, 185, 129, 0.18);
}

.dash-mix-bars span,
.dash-mix-bars strong {
  position: relative;
  z-index: 1;
}

.dash-mix-card p {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dash-country-list,
.dash-customer-list {
  display: grid;
  gap: 9px;
}

.dash-country-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 56px 48px;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: #0f172a;
  font-size: 0.78rem;
}

.dash-country-list span,
.dash-customer-list > article > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0f9f5f;
  font-size: 0.72rem;
  font-weight: 900;
}

.dash-country-list b,
.dash-customer-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-country-list small {
  color: #64748b;
  font-weight: 800;
}

.dash-country-list strong,
.dash-customer-list b {
  color: #0f9f5f;
  font-size: 0.76rem;
  text-align: right;
}

.dash-customer-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.dash-customer-list small {
  color: #94a3b8;
  font-size: 0.72rem;
}

.dash-premium-card {
  min-height: 112px;
  border-radius: 16px;
  margin-top: 14px;
  padding: 16px;
  display: grid;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.24), transparent 8rem),
    linear-gradient(135deg, #053d2b, #086b4d 56%, #b47b00);
  box-shadow: 0 18px 38px rgba(8, 107, 77, 0.22);
}

.dash-premium-card strong {
  font-size: 1.05rem;
}

.dash-premium-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.dash-premium-card em {
  width: fit-content;
  border-radius: 999px;
  margin-top: 4px;
  padding: 8px 14px;
  color: #0f172a;
  background: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: 0.78rem;
}

.legacy-kpi-grid {
  display: none;
}

.dash-pro-lower {
  grid-template-columns: 1.55fr 0.92fr 1.08fr;
}

.dash-pro-lower .dash-overview-panel {
  min-height: 260px;
}

.dash-pro-lower .dash-line-chart {
  height: 236px;
}

.dash-pro-lower .dash-panel,
.dash-mini-card,
.dash-impact-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dash-pro-lower .dash-panel:hover,
.dash-mini-card:hover,
.dash-impact-card:hover {
  border-color: rgba(148, 163, 184, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.1);
}

@media (max-width: 1500px) {
  .dash-pro-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dash-clear-filters {
    width: 100%;
  }

  .dash-pro-grid,
  .dash-pro-lower {
    grid-template-columns: 1fr 1fr;
  }

  .dash-pro-lower .dash-overview-panel,
  .dash-pro-lower .dash-table-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .dash-showcase-grid {
    grid-template-columns: 1fr;
  }

  .dash-impact-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .dash-pro-board {
    padding: 14px;
    border-radius: 18px;
  }

  .dash-pro-head,
  .dash-pro-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dash-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .dash-showcase-grid,
  .dash-pro-grid,
  .dash-pro-lower,
  .dash-mini-card-grid,
  .dash-pro-filters {
    grid-template-columns: 1fr;
  }

  .dash-impact-card {
    min-height: 250px;
  }

  .dash-bar-chart {
    gap: 8px;
  }
}

/* UI UX Pro Max enterprise SaaS refinement */
:root {
  --enterprise-bg: #f8faf7;
  --enterprise-surface: #ffffff;
  --enterprise-surface-soft: #fbfcf8;
  --enterprise-ink: #102018;
  --enterprise-muted: #66776e;
  --enterprise-line: #dde7df;
  --enterprise-gold: #d49400;
  --enterprise-gold-strong: #f2b705;
  --enterprise-green: #086b4d;
  --enterprise-green-2: #0f9f5f;
  --enterprise-teal: #0f766e;
  --enterprise-purple: #7c3aed;
  --enterprise-orange: #d97706;
  --enterprise-shadow: 0 18px 48px rgba(15, 32, 24, 0.08);
  --enterprise-shadow-hover: 0 24px 64px rgba(15, 32, 24, 0.12);
}

.admin-shell {
  background:
    radial-gradient(circle at 78% 5%, rgba(212, 148, 0, 0.12), transparent 24rem),
    radial-gradient(circle at 14% 12%, rgba(15, 159, 95, 0.09), transparent 22rem),
    linear-gradient(180deg, var(--enterprise-bg) 0%, #f3f7f1 100%);
  color: var(--enterprise-ink);
}

.admin-content {
  width: min(1720px, calc(100% - 28px));
}

.main {
  min-width: 0;
}

.admin-topbar {
  border-bottom: 1px solid rgba(221, 231, 223, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.admin-top-left strong,
.admin-workspace-pill span,
.admin-profile strong {
  overflow-wrap: anywhere;
}

.admin-search,
.admin-workspace-pill,
.admin-top-icons .icon-btn,
.admin-profile > span {
  border-color: var(--enterprise-line);
  box-shadow: 0 10px 26px rgba(15, 32, 24, 0.05);
}

.admin-search:focus-within,
.admin-workspace-pill:focus-visible,
.admin-top-icons .icon-btn:focus-visible,
.admin-profile:focus-visible,
.dash-tabs a:focus-visible,
.dash-icon-action:focus-visible,
.dash-avatar-mini:focus-visible,
.dash-open-link:focus-visible,
.dash-action-grid a:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid rgba(212, 148, 0, 0.24);
  outline-offset: 2px;
}

.btn.primary,
.dash-tabs a.active,
.dash-clear-filters:hover {
  color: #13231c;
  border-color: rgba(212, 148, 0, 0.56);
  background: linear-gradient(135deg, #ffe08a, var(--enterprise-gold-strong), var(--enterprise-gold));
  box-shadow: 0 16px 36px rgba(212, 148, 0, 0.22);
}

.btn.primary svg,
.dash-tabs a.active svg {
  color: #13231c;
}

.btn.outline,
.dash-date,
.dash-select,
.dash-filter-field select,
.dash-filter-field input,
.dash-clear-filters {
  border-color: var(--enterprise-line);
  background: rgba(255, 255, 255, 0.92);
}

.dash-pro-board {
  border-color: rgba(221, 231, 223, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.91)),
    radial-gradient(circle at 16% 10%, rgba(212, 148, 0, 0.08), transparent 20rem),
    radial-gradient(circle at 86% 8%, rgba(15, 159, 95, 0.07), transparent 22rem);
  box-shadow: var(--enterprise-shadow);
}

.dash-pro-head {
  border-bottom: 1px solid rgba(221, 231, 223, 0.86);
  padding-bottom: 14px;
}

.dash-tabs a {
  min-width: 98px;
  border-color: rgba(221, 231, 223, 0.92);
  color: #26382f;
  background: rgba(255, 255, 255, 0.9);
}

.dash-tabs a:hover {
  border-color: rgba(212, 148, 0, 0.36);
  background: #fffaf0;
}

.dash-pro-hero {
  padding: 18px 0 8px;
}

.dash-pro-hero h1 {
  max-width: 720px;
  color: #081811;
  letter-spacing: 0;
}

.dash-pro-hero p:last-child,
.dash-filter-field span,
.dash-live-strip small,
.dash-mini-card small,
.dash-impact-head span,
.dash-mix-card p,
.dash-country-list small,
.dash-customer-list small {
  color: var(--enterprise-muted);
}

.dash-actions {
  max-width: 740px;
  justify-content: flex-end;
}

.dash-actions .btn,
.dash-date {
  min-height: 40px;
  white-space: nowrap;
}

.dash-pro-filters {
  border: 1px solid rgba(221, 231, 223, 0.92);
  border-radius: 18px;
  padding: 14px;
  background: rgba(251, 252, 248, 0.92);
}

.dash-filter-field select,
.dash-filter-field input {
  min-height: 42px;
}

.dash-live-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.dash-live-strip article {
  min-width: 0;
  border: 1px solid rgba(221, 231, 223, 0.92);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 30px rgba(15, 32, 24, 0.05);
}

.dash-live-strip span,
.dash-live-strip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-live-strip span {
  color: #46584f;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-live-strip strong {
  display: block;
  margin: 4px 0 2px;
  color: #0d2017;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dash-live-strip small {
  font-size: 0.74rem;
}

.dash-mini-card,
.dash-impact-card,
.dash-panel,
.card,
.panel,
.report {
  border-color: rgba(221, 231, 223, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--enterprise-shadow);
}

.dash-mini-card:hover,
.dash-impact-card:hover,
.dash-pro-lower .dash-panel:hover,
.card:hover,
.panel:hover {
  box-shadow: var(--enterprise-shadow-hover);
}

.dash-mini-card.gold::after,
.dash-mini-card.blue::after {
  background: rgba(212, 148, 0, 0.13);
}

.dash-mini-card.gold .dash-mini-head > span,
.dash-mini-card.blue .dash-mini-head > span,
.dash-kpi-card.blue .dash-kpi-icon {
  color: #7a4f00;
  background: #fff1bf;
}

.dash-mini-card.purple .dash-mini-head > span {
  color: var(--enterprise-teal);
  background: #dff7ef;
}

.dash-mini-card.orange .dash-mini-head > span {
  color: #925100;
  background: #fff2cf;
}

.dash-mini-card strong,
.dash-impact-head h2,
.dash-panel h3,
.dash-gauge strong,
.dash-pass-ring strong,
.dash-token-grid strong {
  color: #0b1d14;
  font-variant-numeric: tabular-nums;
}

.dash-mini-card p,
.dash-impact-head p,
.dash-country-list b,
.dash-customer-list strong,
.dash-deadline-list strong,
.dash-export-list strong {
  color: #142820;
}

.dash-impact-head > strong,
.dash-mini-card small b,
.dash-country-list strong,
.dash-customer-list b,
.dash-health-list b {
  color: var(--enterprise-green);
}

.dash-bar-chart i {
  background: linear-gradient(180deg, #c8e8d7, #0f9f5f);
}

.dash-bar-chart .featured i {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.3) 0 4px, transparent 4px 8px),
    linear-gradient(180deg, #f8d86b, var(--enterprise-gold));
}

.dash-gauge i.on {
  background: linear-gradient(180deg, #ffe08a, var(--enterprise-gold));
}

.dash-premium-card {
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.24), transparent 8rem),
    linear-gradient(135deg, #053d2b, #086b4d 56%, #b47b00);
  box-shadow: 0 18px 38px rgba(8, 107, 77, 0.22);
}

.dash-premium-card span {
  color: rgba(255, 255, 255, 0.86);
}

.dash-premium-card em {
  color: #13231c;
  background: #ffe08a;
}

.dash-insight.blue {
  border-left-color: var(--enterprise-teal);
}

.dash-insight.blue > span {
  color: var(--enterprise-teal);
  background: #dff7ef;
}

.dash-export-list span.csv {
  background: var(--enterprise-teal);
}

.dash-line-chart .green,
.dash-small-chart .green {
  stroke: var(--enterprise-green-2);
}

.dash-line-chart .orange {
  stroke: var(--enterprise-gold);
  stroke-dasharray: 7 7;
}

.dash-legend .green {
  background: var(--enterprise-green-2);
}

.dash-legend .orange {
  background: var(--enterprise-gold);
}

.live-empty {
  min-height: 126px;
  display: grid;
  place-items: center;
  color: var(--enterprise-muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(251, 252, 248, 0.9)),
    repeating-linear-gradient(45deg, rgba(15, 32, 24, 0.025) 0 8px, transparent 8px 16px);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--enterprise-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.page-title,
.access-hero,
.audit-hero,
.notification-manager,
.user-card,
.training-admin-card,
.token-card,
.question-block,
.report-chart-card,
.report-story-card {
  border-color: rgba(221, 231, 223, 0.96);
  box-shadow: var(--enterprise-shadow);
}

.page-title {
  border-radius: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 96% 20%, rgba(212, 148, 0, 0.12), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 252, 248, 0.94));
}

.page-title h1,
.page-title h2,
.card h3,
.panel h3 {
  color: #0b1d14;
  letter-spacing: 0;
}

.toolbar,
.filters {
  gap: 10px;
}

.toolbar {
  border: 1px solid rgba(221, 231, 223, 0.9);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.table-wrap,
.dash-table {
  overflow-x: auto;
}

.metric-grid {
  gap: 12px;
}

.metric-card,
.card,
.panel {
  border-radius: 16px;
}

.permission-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.check-tile {
  min-height: 44px;
  border-color: rgba(221, 231, 223, 0.94);
}

@media (max-width: 1380px) {
  .dash-live-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-content {
    width: min(100% - 20px, 1720px);
    max-width: calc(100% - 20px);
  }

  .dash-live-strip {
    grid-template-columns: 1fr 1fr;
  }

  .dash-actions {
    justify-content: flex-start;
  }

  .dash-table-head,
  .dash-table-row {
    min-width: 720px;
  }
}

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

/* Admin menu polish: question studio and mobile-friendly workspace */
.question-studio,
.question-workspace-grid,
.question-stat-grid,
.question-list {
  display: grid;
  gap: 14px;
}

.question-command,
.question-builder-card,
.question-form-card,
.question-item-card,
.admin-content > .toolbar,
.table-wrap,
.onboarded-users,
.notification-manager {
  border: 1px solid rgba(221, 231, 223, 0.96);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--enterprise-shadow);
}

.question-command {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 96% 20%, rgba(212, 148, 0, 0.14), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 247, 0.94));
}

.question-command h3 {
  margin: 2px 0 4px;
  color: #0b1d14;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.question-command p {
  margin: 0;
  color: var(--enterprise-muted);
}

.question-training-picker {
  display: grid;
  gap: 7px;
}

.question-training-picker span {
  color: var(--enterprise-muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.question-training-picker select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(15, 44, 32, 0.14);
  border-radius: 12px;
  padding: 0 12px;
  color: #102018;
  background: #fff;
  font-weight: 800;
}

.question-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.question-stat-grid .metric-card {
  min-height: 112px;
  border-top: 4px solid var(--enterprise-gold);
}

.question-workspace-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.question-builder-card {
  min-width: 0;
  border-radius: 18px;
  padding: 18px;
}

.question-builder-card.featured {
  background:
    radial-gradient(circle at 94% 6%, rgba(15, 159, 95, 0.08), transparent 14rem),
    rgba(255, 255, 255, 0.95);
}

.section-head.compact {
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-head.compact h3 {
  margin: 2px 0 4px;
}

.question-count {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #102018;
  background: linear-gradient(135deg, #ffe08a, var(--enterprise-gold));
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.question-form-card {
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.question-form-card .form-grid {
  gap: 10px;
}

.question-form-card input,
.question-form-card select,
.question-form-card textarea,
.structured-question-form input,
.structured-question-form select {
  min-height: 44px;
}

.assessment-option-builder {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.72), rgba(248, 252, 247, 0.86));
}

.option-builder-head {
  gap: 12px;
}

.assessment-option-row {
  grid-template-columns: 112px minmax(0, 1fr) auto;
}

.correct-option {
  min-height: 42px;
  justify-content: center;
  border-radius: 10px;
  background: #e7f7ef;
}

.question-item-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border-radius: 16px;
  padding: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.question-item-card:hover {
  border-color: rgba(212, 148, 0, 0.32);
  transform: translateY(-1px);
  box-shadow: var(--enterprise-shadow-hover);
}

.question-item-index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--enterprise-green), #0f9f5f);
  font-weight: 950;
}

.question-item-card.assessment .question-item-index {
  color: #102018;
  background: linear-gradient(135deg, #ffe08a, var(--enterprise-gold));
}

.question-item-meta,
.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-item-meta {
  margin-bottom: 8px;
}

.question-item-meta span {
  min-height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--enterprise-green);
  background: #e7f7ef;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.question-item-card h3 {
  margin: 0 0 12px;
  color: #102018;
  font-size: 1rem;
  line-height: 1.35;
}

.question-actions .btn {
  min-height: 34px;
}

.question-empty {
  min-height: 116px;
  display: grid;
  place-items: center;
}

.question-option-list {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.question-option-list li {
  border: 1px solid rgba(15, 44, 32, 0.08);
  border-radius: 10px;
  padding: 9px 10px;
  color: #475a51;
  background: #fbfcf8;
}

.question-option-list li.is-correct {
  border-color: rgba(15, 122, 90, 0.2);
  color: #0f5f45;
  background: #eaf8f0;
}

.correct-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 0 8px;
  color: #fff;
  background: var(--enterprise-green);
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-content > .grid.two,
.role-permission-list,
.notification-list,
.user-grid {
  gap: 14px;
}

.card,
.panel,
.metric-card,
.user-card,
.training-admin-card,
.token-card,
.audit-item,
.report-chart-card,
.analytics-viz-card {
  border-color: rgba(221, 231, 223, 0.96);
}

.token-card,
.training-admin-card,
.user-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.token-card:hover,
.training-admin-card:hover,
.user-card:hover {
  border-color: rgba(212, 148, 0, 0.28);
  transform: translateY(-1px);
  box-shadow: var(--enterprise-shadow-hover);
}

.toolbar select,
.toolbar input,
.filters select,
.filters input {
  min-height: 42px;
  border-radius: 12px;
}

table {
  min-width: 760px;
}

@media (max-width: 1180px) {
  .question-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-workspace-grid,
  .question-command {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-shell .sidebar {
    padding: 12px 8px;
  }

  .admin-shell .admin-brand {
    display: none;
  }

  .admin-shell .admin-brand-row {
    justify-content: center;
    padding: 8px 0 12px;
  }

  .admin-shell .nav-link {
    justify-content: center;
    padding: 0;
  }

  .admin-shell .nav-link-main span,
  .admin-shell .nav-link > span:last-child,
  .admin-shell .sidebar-status {
    display: none;
  }

  .admin-topbar {
    flex-wrap: wrap;
    min-height: auto;
    padding: 10px 12px;
  }

  .admin-top-left {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }

  .admin-search {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
  }

  .admin-profile strong,
  .admin-profile small {
    display: none;
  }

  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title .nav-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: auto;
    display: block;
    overflow-x: auto;
    padding: 8px;
  }

  .admin-brand-row,
  .sidebar-status {
    display: none;
  }

  .nav-list {
    display: flex;
    min-width: max-content;
    gap: 8px;
    padding: 0;
  }

  .nav-link {
    width: auto;
    min-width: 46px;
    padding: 0 12px;
  }

  .nav-link-main span {
    display: inline;
    font-size: 0.78rem;
  }

  .admin-content {
    width: min(100% - 18px, 1720px);
    max-width: calc(100% - 18px);
    padding-top: 10px;
  }

  .question-stat-grid,
  .metric-grid,
  .dash-live-strip {
    grid-template-columns: 1fr;
  }

  .question-builder-card,
  .question-command,
  .page-title,
  .card,
  .panel {
    border-radius: 14px;
    padding: 14px;
  }

  .assessment-option-row {
    grid-template-columns: 1fr;
  }

  .question-item-card {
    grid-template-columns: 1fr;
  }

  .question-item-index {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .toolbar,
  .filters,
  .nav-actions,
  .question-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar .btn,
  .filters select,
  .nav-actions .btn,
  .question-actions .btn {
    width: 100%;
  }
}
