:root {
  --bg: #070b12;
  --bg-2: #0b1220;
  --panel: rgba(14, 20, 33, 0.82);
  --panel-2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef3ff;
  --muted: #a7b3c7;
  --accent: #3b82f6;
  --accent-2: #1d4ed8;
  --success: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: #05070c;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(59, 130, 246, 0.18),
      transparent 45%
    ),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.12), transparent 40%),
    linear-gradient(180deg, #05070c 0%, #04060b 60%, #05070c 100%);
  background-size: 140% 140%;
  animation: aurora-drift 26s ease-in-out infinite alternate;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(
      2px 2px at 10% 20%,
      rgba(255, 255, 255, 0.95),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 40% 30%,
      rgba(255, 255, 255, 0.8),
      transparent 50%
    ),
    radial-gradient(
      2px 2px at 70% 80%,
      rgba(255, 255, 255, 0.75),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 80% 15%,
      rgba(255, 255, 255, 0.7),
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 25% 75%,
      rgba(255, 255, 255, 0.7),
      transparent 50%
    ),
    radial-gradient(
      3px 3px at 55% 55%,
      rgba(255, 255, 255, 0.6),
      transparent 50%
    ),
    radial-gradient(
      2px 2px at 15% 85%,
      rgba(96, 165, 250, 0.6),
      transparent 50%
    );
  opacity: 0.75;
  animation:
    star-drift 120s linear infinite,
    star-twinkle 6s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(
      1px 1px at 15% 60%,
      rgba(96, 165, 250, 0.9),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 55% 10%,
      rgba(59, 130, 246, 0.85),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 85% 50%,
      rgba(255, 255, 255, 0.55),
      transparent 50%
    ),
    radial-gradient(
      2px 2px at 35% 35%,
      rgba(255, 255, 255, 0.5),
      transparent 50%
    );
  opacity: 0.6;
  animation:
    star-drift 180s linear infinite reverse,
    star-twinkle 8s ease-in-out infinite reverse;
}

.sky-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sky-icons .material-icons {
  position: absolute;
  color: rgba(240, 248, 255, 0.98);
  font-size: 28px;
  text-shadow:
    0 0 18px rgba(96, 165, 250, 0.85),
    0 0 32px rgba(59, 130, 246, 0.65);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation:
    icon-wander-a 26s ease-in-out infinite,
    star-twinkle 7s ease-in-out infinite,
    icon-cycle-a 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-fill-mode: both;
}

.sky-icons .material-icons:nth-child(1) {
  top: 14%;
  left: 8%;
  font-size: 22px;
  animation-delay: 0s, 1s;
  animation-name: icon-wander-a, star-twinkle, icon-cycle-a;
}
.sky-icons .material-icons:nth-child(2) {
  top: 28%;
  left: 78%;
  font-size: 24px;
  animation-delay: 3s, 2s;
  animation-name: icon-wander-b, star-twinkle, icon-cycle-b;
}
.sky-icons .material-icons:nth-child(3) {
  top: 55%;
  left: 18%;
  font-size: 26px;
  animation-delay: 6s, 4s;
  animation-name: icon-wander-c, star-twinkle, icon-cycle-c;
}
.sky-icons .material-icons:nth-child(4) {
  top: 70%;
  left: 70%;
  font-size: 30px;
  animation-delay: 9s, 6s;
  animation-name: icon-wander-a, star-twinkle, icon-cycle-b;
}
.sky-icons .material-icons:nth-child(5) {
  top: 38%;
  left: 48%;
  font-size: 24px;
  animation-delay: 12s, 3s;
  animation-name: icon-wander-b, star-twinkle, icon-cycle-c;
}
.sky-icons .material-icons:nth-child(6) {
  top: 82%;
  left: 32%;
  font-size: 26px;
  animation-delay: 15s, 5s;
  animation-name: icon-wander-c, star-twinkle, icon-cycle-a;
}

.sky-icons .material-icons:nth-child(7) {
  top: 12%;
  left: 62%;
  font-size: 24px;
  animation-delay: 2s, 3s;
  animation-name: icon-wander-c, star-twinkle, icon-cycle-b;
}
.sky-icons .material-icons:nth-child(8) {
  top: 46%;
  left: 88%;
  font-size: 20px;
  animation-delay: 7s, 1s;
  animation-name: icon-wander-a, star-twinkle, icon-cycle-c;
}
.sky-icons .material-icons:nth-child(9) {
  top: 66%;
  left: 6%;
  font-size: 26px;
  animation-delay: 11s, 4s;
  animation-name: icon-wander-b, star-twinkle, icon-cycle-a;
}
.sky-icons .material-icons:nth-child(10) {
  top: 30%;
  left: 56%;
  font-size: 22px;
  animation-delay: 13s, 2s;
  animation-name: icon-wander-c, star-twinkle, icon-cycle-b;
}
.sky-icons .material-icons:nth-child(11) {
  top: 86%;
  left: 72%;
  font-size: 24px;
  animation-delay: 17s, 6s;
  animation-name: icon-wander-a, star-twinkle, icon-cycle-c;
}
.sky-icons .material-icons:nth-child(12) {
  top: 18%;
  left: 28%;
  font-size: 20px;
  animation-delay: 19s, 5s;
  animation-name: icon-wander-b, star-twinkle, icon-cycle-a;
}

.sky-icons .material-icons:nth-child(13) {
  top: 52%;
  left: 62%;
  font-size: 22px;
  animation-delay: 5s, 3s;
  animation-name: icon-wander-c, star-twinkle, icon-cycle-b;
}
.sky-icons .material-icons:nth-child(14) {
  top: 8%;
  left: 42%;
  font-size: 20px;
  animation-delay: 8s, 2s;
  animation-name: icon-wander-a, star-twinkle, icon-cycle-c;
}
.sky-icons .material-icons:nth-child(15) {
  top: 74%;
  left: 42%;
  font-size: 26px;
  animation-delay: 10s, 4s;
  animation-name: icon-wander-b, star-twinkle, icon-cycle-a;
}
.sky-icons .material-icons:nth-child(16) {
  top: 24%;
  left: 92%;
  font-size: 20px;
  animation-delay: 14s, 1s;
  animation-name: icon-wander-c, star-twinkle, icon-cycle-b;
}
.sky-icons .material-icons:nth-child(17) {
  top: 92%;
  left: 18%;
  font-size: 24px;
  animation-delay: 16s, 6s;
  animation-name: icon-wander-a, star-twinkle, icon-cycle-c;
}
.sky-icons .material-icons:nth-child(18) {
  top: 40%;
  left: 12%;
  font-size: 22px;
  animation-delay: 20s, 5s;
  animation-name: icon-wander-b, star-twinkle, icon-cycle-a;
}

@keyframes star-drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-60px);
  }
}

@keyframes aurora-drift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 80%;
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes icon-wander {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(8px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes icon-wander-a {
  0% {
    opacity: 0.1;
    transform: translate(0, 0) scale(0.9);
  }
  20% {
    opacity: 0.9;
  }
  50% {
    transform: translate(40px, -30px) scale(1);
  }
  75% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.1;
    transform: translate(0, 0) scale(0.9);
  }
}

@keyframes icon-wander-b {
  0% {
    opacity: 0.1;
    transform: translate(0, 0) scale(0.85);
  }
  25% {
    opacity: 0.9;
  }
  55% {
    transform: translate(-45px, 25px) scale(1.05);
  }
  80% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.1;
    transform: translate(0, 0) scale(0.85);
  }
}

@keyframes icon-wander-c {
  0% {
    opacity: 0.1;
    transform: translate(0, 0) scale(0.9);
  }
  30% {
    opacity: 0.95;
  }
  60% {
    transform: translate(30px, 35px) scale(1.05);
  }
  85% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.1;
    transform: translate(0, 0) scale(0.9);
  }
}

@keyframes icon-cycle-a {
  0% {
    opacity: 0.25;
  }
  35% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.65;
  }
  100% {
    opacity: 0.25;
  }
}

@keyframes icon-cycle-b {
  0% {
    opacity: 0.2;
  }
  30% {
    opacity: 0.9;
  }
  65% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.2;
  }
}

@keyframes icon-cycle-c {
  0% {
    opacity: 0.2;
  }
  25% {
    opacity: 0.85;
  }
  60% {
    opacity: 0.55;
  }
  100% {
    opacity: 0.2;
  }
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: none;
  background: transparent;
  border-bottom: none;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 76px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #60a5fa 55%, #93c5fd);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.brand span:last-child {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

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

.nav-link .material-icons {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.nav-bubble {
  gap: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.6);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.nav-bubble a {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-bubble a:hover {
  background: rgba(59, 130, 246, 0.18);
  color: #e9f2ff;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto 0;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.6);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav-hamburger .material-icons {
  font-size: 1.4rem;
  color: #e9f2ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
  color: white;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.28);
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.6);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.profile-user-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.profile-menu[data-auth="false"] .profile-avatar,
.profile-menu[data-auth="false"] .profile-name {
  display: none;
}

.profile-menu[data-auth="true"] .profile-user-icon {
  display: none;
}

.profile-menu[data-auth="false"] .profile-auth {
  display: grid;
}

.profile-menu[data-auth="false"] .profile-panel {
  display: none;
}

.profile-menu[data-auth="true"] .profile-auth {
  display: none;
}

.profile-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.35);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 800;
  color: #e9f2ff;
}

.profile-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.profile-caret {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(0deg);
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.profile-menu[open] .profile-caret {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 260px;
  background: rgba(9, 14, 24, 0.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  z-index: 20;
}

.profile-menu:not([open]) .profile-auth,
.profile-menu:not([open]) .auth-overlay {
  display: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}

.profile-menu[open][data-auth="false"] .auth-overlay {
  opacity: 1;
  pointer-events: auto;
}

.profile-dropdown.profile-auth {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  min-width: 0;
  padding: 32px;
  border-radius: 28px;
  text-align: center;
  gap: 18px;
  z-index: 100;
  background: rgba(9, 14, 24, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.auth-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #dbeafe;
  box-shadow: 0 10px 24px rgba(4, 8, 18, 0.5);
}

.discord-auth-btn {
  width: 100%;
}

.auth-logo {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  margin: 0 auto 6px;
}

.profile-auth h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  background: rgba(13, 24, 40, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.auth-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #d1fae5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-card p {
  margin: 0;
  color: #cbd5f5;
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
}

.profile-label,
.profile-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-user {
  font-size: 1rem;
}

.profile-link {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.profile-link:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.profile-actions {
  display: grid;
  gap: 10px;
}

.profile-actions .btn {
  width: 100%;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-center {
  justify-items: center;
}

.hero-card,
.panel,
.dept-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  padding: 38px;
  position: relative;
  overflow: hidden;
  text-align: center;
  width: min(760px, 100%);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.hero-card::before {
  width: 280px;
  height: 280px;
  background: rgba(59, 130, 246, 0.18);
  top: -120px;
  right: -120px;
}

.hero-card::after {
  width: 220px;
  height: 220px;
  background: rgba(96, 165, 250, 0.16);
  bottom: -90px;
  left: -100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.12);
  color: #cfe2ff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.highlight {
  background: linear-gradient(135deg, #dbeafe 0%, #60a5fa 35%, #3b82f6 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 20px 0 28px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
  justify-content: center;
}

.scroll-btn {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.meta-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 800;
}

.side-panel {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #b9f6c8;
  border: 1px solid rgba(34, 197, 94, 0.18);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.list-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.12);
  color: #cfe2ff;
  flex: 0 0 auto;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.section {
  padding: 28px 0;
}

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

.section-header h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.6;
}

.section-header-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header-centered p {
  margin-left: auto;
  margin-right: auto;
}

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

.stat-card {
  padding: 20px;
  text-align: left;
  display: grid;
  gap: 8px;
}

.stat-number {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-label {
  color: var(--muted);
  line-height: 1.5;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(225, 232, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.feature-card {
  padding: 26px;
  border-radius: 26px;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(7, 11, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(225, 232, 255, 0.95);
  font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 30px rgba(4, 8, 18, 0.5);
}

.material-icons {
  font-size: 1.4rem;
  line-height: 1;
}

.stat-icon .material-icons,
.feature-icon .material-icons,
.profile-link .material-icons,
.profile-actions .material-icons {
  font-size: 1.2rem;
}

.feature-card h3,
.dept-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.team-group {
  margin-top: 26px;
}

.team-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.team-group-title h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.team-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #cfe2ff;
  font-size: 0.78rem;
  font-weight: 600;
}

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

.team-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.16),
    transparent 40%
  );
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
}

.team-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  background: rgba(8, 12, 20, 0.7);
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.team-role {
  display: inline-flex;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #cfe2ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.team-desc {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.team-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.team-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.78rem;
}

.feature-card p,
.dept-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 8px 24px 80px 16px;
}

.portal-sidebar {
  background: rgba(9, 14, 24, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 96px;
  order: 0;
  margin-left: 12px;
}

.portal-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-sidebar-header .material-icons {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #dbeafe;
}

.portal-sidebar-header strong {
  display: block;
  font-size: 1rem;
}

.portal-sidebar-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.portal-nav {
  display: grid;
  gap: 8px;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.portal-nav-item .material-icons {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.portal-nav-item:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.portal-nav-item.is-active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #e9f2ff;
}

.portal-nav-item.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-nav-item.is-disabled .material-icons {
  color: rgba(255, 255, 255, 0.45);
}

.portal-nav-item.is-disabled:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-main {
  display: grid;
  gap: 24px;
  order: 1;
  padding-right: 24px;
  padding-top: 4px;
}

.portal-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #cfe2ff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.portal-header h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.portal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
}

.portal-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-content {
  display: grid;
  gap: 18px;
}

.portal-panel {
  display: none;
  min-height: 760px;
  background: rgba(9, 14, 24, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 28px 28px;
  gap: 6px;
  align-content: start;
  box-shadow: var(--shadow);
}

.portal-panel.is-active {
  display: grid;
}

.portal-panel-header h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.portal-panel-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}

.portal-panel-body {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(7, 11, 18, 0.65);
  padding: 18px;
  margin-top: 0;
  min-height: 560px;
}

.portal-placeholder {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.95rem;
}

.transcript-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.transcript-toolbar {
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 180px)) auto;
  align-items: end;
}

.transcript-field {
  display: grid;
  gap: 8px;
}

.transcript-field-compact label {
  font-size: 0.75rem;
}

.transcript-field label {
  font-size: 0.78rem;
  color: var(--muted);
}

.transcript-field input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.8);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.85rem;
}

.transcript-toolbar-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.transcript-toolbar .btn {
  padding: 8px 10px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.transcript-field input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.transcript-table-card {
  background: rgba(7, 11, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: 620px;
}

.transcript-table-meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.transcript-table-wrap {
  overflow-x: auto;
  min-height: 420px;
}

.transcript-table {
  width: 100%;
  border-collapse: collapse;
}

.transcript-table th,
.transcript-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.transcript-table th {
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}

.transcript-table td a {
  color: #93c5fd;
}

.transcript-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.transcript-table .break-all {
  word-break: break-all;
}

.transcript-table .empty {
  text-align: center;
  color: var(--muted);
  padding: 16px 0;
}

.transcript-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.transcript-pagination button {
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 24, 0.9);
  color: var(--text);
  cursor: pointer;
  min-width: 26px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.transcript-pagination button:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
}

.transcript-pagination button.is-active {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.active-staff-dashboard {
  display: grid;
  gap: 14px;
}

.active-staff-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(9, 14, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.active-staff-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.active-staff-container {
  overflow-x: auto;
  background: rgba(7, 11, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.active-staff-table {
  width: 100%;
  border-collapse: collapse;
}

.active-staff-table th,
.active-staff-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: middle;
}

.active-staff-table th {
  color: var(--muted);
  font-weight: 700;
}

.active-staff-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.active-staff-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.active-staff-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.active-staff-name-meta {
  display: grid;
  gap: 2px;
}

.active-staff-name-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}


.active-staff-empty {
  text-align: center;
  color: var(--muted);
  padding: 18px 12px;
}

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

.dept-card {
  overflow: hidden;
}

.dept-banner {
  min-height: 140px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dept-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.1);
}

.dept-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.1),
    rgba(6, 10, 18, 0.85)
  );
  pointer-events: none;
}

.dept-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: contain;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(4, 8, 18, 0.6);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

.dept-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dept-banner .badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  color: #eff6ff;
  backdrop-filter: blur(12px);
}

.dept-body {
  padding: 22px;
}

.dept-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.dept-actions .btn-primary {
  padding-inline: 20px;
}

.cta {
  margin: 28px 0 70px;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.18),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 68ch;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(6, 10, 18, 0.45);
  backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand p {
  margin: 0;
  line-height: 1.6;
}

.footer-col {
  display: grid;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.footer-col a {
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-muted {
  opacity: 0.55;
}

.footer-muted span {
  color: var(--muted);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-devs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.6);
  color: #e5edff;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fee2e2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast .material-icons {
  font-size: 1.1rem;
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

.toast-hidden {
  opacity: 0;
}

@media (max-width: 960px) {
  .editor-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tabs"
      "toolbar"
      "tools"
      "body"
      "status";
  }

  .editor-formatting-toolbar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .editor-formatting-actions {
    margin-top: 0;
    width: 100%;
  }
  .hero-grid,
  .stats-grid,
  .feature-grid,
  .dept-grid,
  .team-grid {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    grid-template-columns: 1fr;
  }

  .portal-shell {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    position: static;
  }

  .transcript-toolbar {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nav-hamburger {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    display: inline-flex;
  }

  .nav-links {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    display: none;
  }

  .nav-toggle:checked ~ .nav-links {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    display: flex;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    width: min(260px, 80vw);
    z-index: 30;
  }

  .nav-bubble a {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    width: 100%;
    text-align: center;
  }
  .section-header,
  .cta {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    .editor-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "tabs"
        "toolbar"
        "tools"
        "body"
        "status";
    }

    .editor-formatting-toolbar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .editor-formatting-actions {
      margin-top: 0;
      width: 100%;
    }
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 42px;
  }

  .hero-card,
  .panel,
  .cta {
    padding: 20px;
  }

  .brand-text {
    display: none;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .profile-name {
    display: none;
  }
}

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.training-dashboard {
  display: grid;
  gap: 14px;
}

.training-split {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 16px;
}
.training-toolbar {
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.training-toolbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.training-toolbar-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

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

.training-sidebar {
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.training-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.training-sidebar-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.training-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.training-doc .material-icons {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.training-doc:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.training-doc.is-active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #e9f2ff;
}

.training-content {
  background: rgba(7, 11, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.training-article {
  display: none;
  gap: 16px;
}

.training-article.is-active {
  display: grid;
}

.training-article-header h3 {
  margin: 8px 0 8px;
  font-size: 1.3rem;
}

.training-article-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.training-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #cfe2ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.training-body h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.training-body p,
.training-body li {
  color: var(--muted);
  line-height: 1.6;
}

.training-body ul {
  margin: 0 0 16px 18px;
}

.training-callout {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #dbeafe;
  margin: 12px 0 18px;
}

.training-image {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  .training-dashboard {
    display: grid;
    gap: 14px;
  }

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

.training-body {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  background: rgba(8, 12, 20, 0.55);
  min-height: 260px;
}

.training-body[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: rgba(226, 232, 240, 0.5);
}

.training-body[contenteditable="true"]:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

/* Training body formatting styles */
.training-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 24px 0 16px 0;
  color: #60d5ff;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 8px;
}

.training-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 0 12px 0;
  color: rgba(96, 213, 255, 0.9);
}

.training-body blockquote {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid rgba(59, 130, 246, 0.6);
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  font-style: italic;
  color: rgba(226, 232, 240, 0.8);
}

.training-body pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  color: #60d5ff;
}

.training-body code {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  color: #60d5ff;
}

.training-body hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.4),
    transparent
  );
  margin: 24px 0;
}

.training-body a {
  color: #60d5ff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.training-body a:hover {
  color: #90e5ff;
}

.training-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Tutorial Videos */
.tutorials-dashboard {
  display: grid;
  gap: 24px;
}

.tutorials-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tutorials-content h2,
.tutorials-content h3 {
  margin: 0 0 12px;
}

.tutorial-video {
  background: rgba(9, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.tutorial-video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #05070c;
}

.tutorial-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tutorial-video figcaption {
  padding: 16px 18px;
  color: rgba(167, 179, 199, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}
.training-body strong,
.training-body b {
  color: #90e5ff;
  font-weight: 700;
}

.training-body em,
.training-body i {
  color: rgba(226, 232, 240, 0.85);
  font-style: italic;
}

.handbook-dashboard {
  display: grid;
  gap: 14px;
}

.handbook-toolbar {
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.handbook-toolbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.handbook-toolbar-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.handbook-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.handbook-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.handbook-link .material-icons {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.handbook-link:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.handbook-link.is-active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #e9f2ff;
}

.handbook-content {
  background: rgba(7, 11, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.handbook-section {
  display: none;
  gap: 16px;
}

.handbook-section.is-active {
  display: grid;
}

.handbook-section header h3 {
  margin: 8px 0 8px;
  font-size: 1.3rem;
}

.handbook-section header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.handbook-body h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.handbook-body p,
.handbook-body li {
  color: var(--muted);
  line-height: 1.6;
}

.handbook-body ul {
  margin: 0 0 16px 18px;
}

.handbook-doc {
  font-size: 1rem;
  line-height: 1.6;
}

/* Handbook heading styles */
.handbook-doc h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 24px 0 16px 0;
  color: #60d5ff;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 8px;
}

.handbook-doc h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 0 12px 0;
  color: rgba(96, 213, 255, 0.9);
}

.handbook-doc h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 16px 0 10px 0;
  color: rgba(96, 213, 255, 0.8);
}

.handbook-doc p {
  margin: 12px 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(226, 232, 240, 0.9);
}

.handbook-doc ul,
.handbook-doc ol {
  margin: 12px 0;
  padding-left: 28px;
}

.handbook-doc li {
  margin: 6px 0;
  color: rgba(226, 232, 240, 0.9);
}

.handbook-doc blockquote {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid rgba(59, 130, 246, 0.6);
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  font-style: italic;
  color: rgba(226, 232, 240, 0.8);
}

.handbook-doc pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  color: #60d5ff;
}

.handbook-doc code {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  color: #60d5ff;
}

.handbook-doc hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.4),
    transparent
  );
  margin: 24px 0;
}

.handbook-doc a {
  color: #60d5ff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.handbook-doc a:hover {
  color: #90e5ff;
}

.handbook-doc img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.handbook-doc strong,
.handbook-doc b {
  color: #90e5ff;
  font-weight: 700;
}

.handbook-doc em,
.handbook-doc i {
  color: rgba(226, 232, 240, 0.85);
  font-style: italic;
}

.editor-dashboard {
  display: grid;
  gap: 20px;
}

.editor-doc-selector {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(
    180deg,
    rgba(7, 11, 18, 0.95),
    rgba(10, 16, 28, 0.9)
  );
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-document-label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.editor-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.85);
}

.editor-field select {
  min-width: 280px;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.92);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  appearance: none;
}

.editor-section-toolbar {
  background: rgba(10, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.editor-section-tabs {
  grid-area: tabs;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.6);
  border-radius: 16px 16px 0 0;
  padding: 12px 16px;
  overflow-x: auto;
  overflow-y: hidden;
}

.editor-tabs-container {
  display: flex;
  gap: 6px;
  flex: 1;
}

.editor-tab-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.editor-tab {
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    all 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  padding-right: 12px;
}

.editor-tab:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
}

.editor-tab.is-active {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: #60d5ff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.editor-tab-delete {
  position: absolute;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.editor-tab:hover .editor-tab-delete,
.editor-tab-delete:hover {
  opacity: 1;
  color: #ff6b6b;
}

.editor-tab-delete:hover {
  background: rgba(255, 107, 107, 0.15);
}

.editor-tab-add {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.editor-tab-add:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.05);
}

.editor-content {
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.96),
    rgba(7, 11, 18, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 20px;
  display: grid;
  gap: 18px 24px;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas:
    "tabs tools"
    "toolbar tools"
    "body tools"
    "status tools";
  align-items: start;
}

.editor-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  grid-area: toolbar;
}

.editor-toolbar input {
  width: 100%;
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.95);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
}

.editor-formatting-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-area: tools;
  align-self: start;
  position: sticky;
  top: 110px;
}

.editor-formatting-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-formatting-group:last-of-type {
  border-right: none;
}

.editor-format-label {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 40px;
}

.editor-formatting-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
}

.editor-media-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 12, 20, 0.8);
}

.editor-media-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

#editor-media-size {
  width: 150px;
}

#editor-media-size-value {
  min-width: 46px;
  text-align: right;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.84rem;
}

.editor-media-reset {
  padding: 8px 12px;
  min-height: auto;
}

.editor-media-controls:has(#editor-media-size:disabled) {
  opacity: 0.6;
}

.editor-tool {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(13, 19, 30, 0.9);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.editor-tool:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.editor-body {
  grid-area: body;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  background: rgba(5, 8, 16, 0.98);
  min-height: 520px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  line-height: 1.6;
}

.editor-body:empty::before {
  content: attr(data-placeholder);
  color: rgba(226, 232, 240, 0.35);
}

.editor-body:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.62);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Editor body formatting styles */
.editor-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 24px 0 16px 0;
  color: #60d5ff;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 8px;
}

.editor-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 0 12px 0;
  color: rgba(96, 213, 255, 0.9);
}

.editor-body p {
  margin: 12px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.editor-body ul,
.editor-body ol {
  margin: 12px 0;
  padding-left: 28px;
}

.editor-body li {
  margin: 6px 0;
}

.editor-body blockquote {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid rgba(59, 130, 246, 0.6);
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  font-style: italic;
  color: rgba(226, 232, 240, 0.8);
}

.editor-body pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  color: #60d5ff;
}

.editor-body hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.4),
    transparent
  );
  margin: 24px 0;
}

.editor-body a {
  color: #60d5ff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.editor-body a:hover {
  color: #90e5ff;
}

.editor-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.editor-body img.is-media-selected,
.editor-body .tutorial-video.is-media-selected {
  outline: 2px solid rgba(96, 213, 255, 0.9);
  outline-offset: 2px;
}

.editor-body .tutorial-video {
  background: rgba(9, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 24px 0;
}

.editor-body .tutorial-video figcaption {
  padding: 16px 18px;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-status {
  grid-area: status;
  font-size: 0.9rem;
  color: rgba(179, 199, 230, 0.9);
  text-align: left;
  margin-top: 8px;
}

/* Section Edit Modal */
.editor-section-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.editor-section-modal-overlay.is-open {
  display: flex;
}

.editor-section-modal {
  background: linear-gradient(
    180deg,
    rgba(14, 20, 33, 0.95),
    rgba(10, 16, 28, 0.92)
  );
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 420px;
  animation: modal-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.editor-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-modal-header h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
}

.editor-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.editor-modal-close:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.editor-modal-body {
  padding: 24px;
}

.editor-modal-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.editor-modal-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
}

.editor-modal-field input {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.95);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.editor-modal-field input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(8, 12, 20, 0.98);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.editor-modal-field input::placeholder {
  color: rgba(226, 232, 240, 0.4);
}

.editor-modal-actions {
  display: flex;
  gap: 12px;
  flex-direction: row;
}

.editor-modal-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.editor-modal-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.editor-modal-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.editor-modal-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.editor-modal-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.editor-modal-actions .btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.editor-modal-actions .btn-danger:hover {
  background: rgba(255, 107, 107, 0.25);
  border-color: rgba(255, 107, 107, 0.5);
}

.editor-tab-edit {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.3),
    rgba(96, 213, 255, 0.2)
  );
  color: #60d5ff;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0;
  font-size: 0.8rem;
}

.editor-tab-wrapper:hover .editor-tab-edit {
  opacity: 1;
  transform: scale(1.1);
}

.editor-tab-edit:hover {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.5),
    rgba(96, 213, 255, 0.4)
  );
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(96, 213, 255, 0.3);
}

/* Link Insert Modal */
.editor-link-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.editor-link-modal-overlay.is-open {
  display: flex;
}

.editor-link-modal {
  background: linear-gradient(
    180deg,
    rgba(14, 20, 33, 0.95),
    rgba(10, 16, 28, 0.92)
  );
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 480px;
  animation: modal-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Image Insert Modal */
.editor-image-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.editor-image-modal-overlay.is-open {
  display: flex;
}

.editor-image-modal {
  background: linear-gradient(
    180deg,
    rgba(14, 20, 33, 0.95),
    rgba(10, 16, 28, 0.92)
  );
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 480px;
  animation: modal-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Video Insert Modal */
.editor-video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.editor-video-modal-overlay.is-open {
  display: flex;
}

.editor-video-modal {
  background: linear-gradient(
    180deg,
    rgba(14, 20, 33, 0.95),
    rgba(10, 16, 28, 0.92)
  );
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 520px;
  animation: modal-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (max-width: 960px) {
  .editor-doc-selector,
  .editor-section-toolbar,
  .editor-content {
    background: linear-gradient(
      180deg,
      rgba(8, 12, 20, 0.96),
      rgba(7, 11, 18, 0.92)
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 20px;
    display: grid;
    gap: 18px 24px;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas:
      "tabs tools"
      "toolbar tools"
      "body tools"
      "status tools";
    align-items: start;
  }

  .editor-doc-selector {
    grid-template-columns: 1fr;
  }

  .editor-section-tabs {
    grid-area: tabs;
    overflow-x: auto;
    padding: 12px 12px;
  }

  .editor-tabs-container {
    gap: 4px;
  }

  .editor-tab {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .editor-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    grid-area: toolbar;
  }

  .editor-toolbar input {
    width: 100%;
  }

  .editor-formatting-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-area: tools;
    align-self: start;
    position: sticky;
    top: 110px;
  }

  .editor-formatting-group {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
  }

  .editor-formatting-group:last-of-type {
    border-bottom: none;
  }

  .editor-formatting-actions {
    margin-top: auto;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .editor-media-controls {
    width: 100%;
    justify-content: space-between;
  }

  #editor-media-size {
    flex: 1;
    min-width: 120px;
  }

  .editor-field select,
  .editor-tool-dropdown {
    width: 100%;
  }

  .editor-body {
    grid-area: body;
    min-height: 400px;
    padding: 16px;
  }

  /* Modal mobile styles */
  .editor-section-modal {
    width: 95%;
    max-width: none;
    max-height: 90vh;
    overflow-y: auto;
  }

  .editor-modal-header {
    padding: 20px 20px 14px 20px;
  }

  .editor-modal-body {
    padding: 20px;
  }

  .editor-modal-actions {
    flex-wrap: wrap;
  }

  .editor-modal-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
  }

  .editor-modal-actions .btn-danger {
    flex: 1 1 100%;
  }

  /* Link Modal Mobile Styles */
  .editor-link-modal {
    width: 95%;
    max-width: none;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Video Modal Mobile Styles */
  .editor-video-modal {
    width: 95%;
    max-width: none;
    max-height: 90vh;
    overflow-y: auto;
  }
}

.portal-panel.is-hidden {
  display: none;
}

.portal-nav-item.is-hidden {
  display: none;
}

/* Editor tabs + TOC */
.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.editor-tab {
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-tab:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: #e0f2fe;
}

.editor-tab.is-active {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.35),
    rgba(14, 165, 233, 0.25)
  );
  border-color: rgba(59, 130, 246, 0.7);
  color: #ffffff;
}

.editor-toc {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.4);
  margin: 10px 0 16px;
}

.editor-toc.is-hidden {
  display: none;
}

.editor-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.editor-toc-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.editor-toc-row input {
  background: rgba(9, 14, 24, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  color: #e2e8f0;
  font-size: 0.85rem;
}

.editor-toc-remove {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

.editor-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .editor-tabs-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Audit Logs */
.audit-logs-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.audit-logs-toolbar {
  background: rgba(9, 14, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.audit-logs-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: flex-end;
}

.audit-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-filter label {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-filter select {
  background: rgba(14, 20, 33, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.audit-filter select:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.audit-filter select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.audit-logs-container {
  overflow-x: auto;
  background: rgba(9, 14, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
}

.audit-logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.audit-logs-table thead {
  background: rgba(14, 20, 33, 0.9);
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  position: sticky;
  top: 0;
}

.audit-logs-table th {
  padding: 16px;
  text-align: left;
  color: rgba(96, 213, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-logs-table th:last-child {
  border-right: none;
}

.audit-logs-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.15s ease;
}

.audit-logs-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.audit-logs-table td {
  padding: 14px 16px;
  color: var(--text);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.audit-logs-table td:last-child {
  border-right: none;
}

.audit-logs-table .audit-timestamp {
  color: rgba(167, 179, 199, 0.8);
  font-size: 0.85rem;
  white-space: nowrap;
}

.audit-logs-table .audit-user {
  color: rgba(96, 213, 255, 0.9);
  font-weight: 500;
  padding: 8px 16px !important;
}

.audit-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(96, 213, 255, 0.3);
  object-fit: cover;
  transition: border-color 0.2s ease;
}

.audit-log-row:hover .audit-user-avatar {
  border-color: rgba(96, 213, 255, 0.8);
}

.audit-user-name {
  font-weight: 500;
}

.audit-expand-cell {
  width: 40px;
  text-align: center;
  padding: 8px !important;
}

.audit-expand-btn {
  background: none;
  border: none;
  color: rgba(96, 213, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.audit-expand-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: rgba(96, 213, 255, 0.9);
}

.audit-expand-btn.is-open {
  transform: rotate(180deg);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
}

.audit-log-details {
  background: rgba(9, 14, 24, 0.8);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0 !important;
}

.audit-log-details td {
  padding: 0 !important;
}

.audit-details-content {
  padding: 20px 16px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audit-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.audit-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(14, 20, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.audit-detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(96, 213, 255, 0.7);
}

.audit-detail-value {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-all;
}

.audit-changes-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-changes-section h4 {
  color: rgba(96, 213, 255, 0.9);
  font-size: 0.9rem;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-changes-pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.8rem;
  color: #60d5ff;
  overflow-x: auto;
  max-height: 300px;
}

.audit-logs-table .audit-action {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-logs-table .audit-action.saved {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.audit-logs-table .audit-action.created {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.audit-logs-table .audit-action.edited {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.audit-logs-table .audit-action.deleted {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.audit-logs-table .audit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.audit-logs-table .audit-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.audit-logs-table .audit-status.error {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.audit-logs-table .audit-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.audit-logs-table .audit-details {
  color: rgba(167, 179, 199, 0.7);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.audit-logs-table .audit-details:hover {
  color: var(--text);
}

.audit-logs-loading {
  text-align: center;
  color: rgba(167, 179, 199, 0.6);
  padding: 32px 16px !important;
}

.audit-logs-empty {
  text-align: center;
  color: rgba(167, 179, 199, 0.6);
  padding: 48px 16px;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .tutorials-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audit-logs-filters {
    grid-template-columns: 1fr 1fr;
  }

  .audit-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tutorials-content {
    grid-template-columns: 1fr;
  }
  .active-staff-table th,
  .active-staff-table td {
    padding: 9px 8px;
    font-size: 0.82rem;
  }

  .active-staff-name {
    min-width: 180px;
  }

  .audit-logs-container {
    font-size: 0.8rem;
  }

  .audit-logs-table th,
  .audit-logs-table td {
    padding: 10px 8px;
  }

  .audit-logs-filters {
    grid-template-columns: 1fr;
  }

  .audit-user-info {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .audit-user-avatar {
    width: 24px;
    height: 24px;
  }

  .audit-details-grid {
    grid-template-columns: 1fr;
  }

  .audit-details-content {
    padding: 12px 8px;
  }
}

.editor-tool.is-hidden {
  display: none;
}

.editor-tool[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.editor-video,
.training-body .editor-video,
.handbook-doc .editor-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 12, 20, 0.75);
}

.editor-video iframe,
.training-body iframe,
.handbook-doc iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.tutorial-card {
  background: rgba(9, 14, 24, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.tutorial-card-media {
  margin: 0;
}

.tutorial-card-media .tutorial-video-frame,
.tutorial-card-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.tutorial-card-caption {
  display: block;
  padding: 12px 14px;
  color: #cbd5f5;
  font-size: 0.9rem;
}

.audit-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.audit-page-btn {
  background: rgba(14, 20, 33, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audit-page-btn:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.6);
  color: #e0f2fe;
}

.audit-page-btn.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.25));
  border-color: rgba(59, 130, 246, 0.7);
  color: #ffffff;
}

.audit-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Keep editor save action visible with media controls */
.editor-formatting-actions {
  width: 100%;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.editor-media-controls {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

#editor-media-size {
  flex: 1;
  min-width: 120px;
}

#editor-save {
  width: 100%;
  justify-content: center;
}
