:root {
  --za-bg: #f5f7fb;
  --za-panel: #ffffff;
  --za-panel-soft: #f8faff;
  --za-border: #dfe6f2;
  --za-text: #16233a;
  --za-muted: #5f6f89;
  --za-primary: #2563eb;
  --za-primary-soft: #e8f0ff;
  --za-success: #059669;
  --za-warning: #d97706;
  --za-danger: #dc2626;
  --za-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --za-radius-lg: 16px;
  --za-radius-md: 12px;
  --za-radius-sm: 8px;
  --za-sidebar-bg: #161a31;
  --za-sidebar-bg-soft: #1d2240;
  --za-sidebar-border: #2a3158;
  --za-sidebar-text: #d3ddff;
  --za-sidebar-muted: #8fa0cb;
  --za-sidebar-active: #5f66f0;
}

* {
  box-sizing: border-box;
}

.za-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.za-admin-body,
.za-admin-body * {
  scrollbar-width: thin;
  scrollbar-color: #7e92ba #e7edf8;
}

.za-admin-body *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.za-admin-body *::-webkit-scrollbar-track {
  background: #e7edf8;
  border-radius: 999px;
}

.za-admin-body *::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid #e7edf8;
  background: linear-gradient(180deg, #9aaccc 0%, #6f86b5 100%);
}

.za-admin-body *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #869bc4 0%, #5f77aa 100%);
}

.za-admin-body *::-webkit-scrollbar-corner {
  background: transparent;
}

body.za-admin-body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  color: var(--za-text);
  background: #e8ecf4;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.za-shell {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 248px 1fr;
  overflow: hidden;
}

.za-sidebar {
  background: linear-gradient(180deg, var(--za-sidebar-bg) 0%, #171a2f 100%);
  border-right: 1px solid var(--za-sidebar-border);
  color: var(--za-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  height: 100vh;
  height: 100svh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  scrollbar-color: #697ea9 #1b2140;
}

.za-sidebar::-webkit-scrollbar-track {
  background: #1b2140;
}

.za-sidebar::-webkit-scrollbar-thumb {
  border-color: #1b2140;
  background: linear-gradient(180deg, #7288b6 0%, #5d72a1 100%);
}

.za-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid var(--za-sidebar-border);
  margin-bottom: 10px;
}

.za-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #6670ff, #4f55df);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 55, 140, 0.45);
}

.za-brand-name {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.za-org-card {
  border: 1px solid #3b436d;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px;
  margin: 2px 2px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.za-org-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3f64d2, #1944b8);
  display: grid;
  place-items: center;
  color: #dbe8ff;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.za-org-name {
  margin: 0;
  color: #f2f5ff;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.za-org-sub {
  margin: 2px 0 0;
  color: var(--za-sidebar-muted);
  font-size: 0.76rem;
}

.za-side-group {
  margin: 0 0 10px;
}

.za-side-heading {
  margin: 12px 8px 8px;
  color: var(--za-sidebar-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.za-side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  margin: 2px 0;
  border-radius: 12px;
  color: #eff3ff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.za-side-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.za-side-link.is-active {
  background: linear-gradient(90deg, var(--za-sidebar-active), #6770f3);
  border-color: #7f86ff;
  color: #fff;
}

.za-side-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d8e1ff;
  flex-shrink: 0;
}

.za-side-footer {
  margin-top: auto;
  border-top: 1px solid var(--za-sidebar-border);
  padding: 12px 6px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.za-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffcaa0, #f28f59);
  color: #3b1f09;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.za-user-meta {
  min-width: 0;
}

.za-user-name {
  margin: 0;
  color: #f2f5ff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.za-user-role {
  margin: 2px 0 0;
  color: var(--za-sidebar-muted);
  font-size: 0.76rem;
}

.za-main-wrap {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.za-topbar {
  background: #fff;
  border-bottom: 1px solid #dde5f2;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.za-topbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.za-menu-toggle {
  display: none;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border: 1px solid #dde5f2;
  border-radius: 10px;
  background: #fff;
  color: #334b73;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.za-back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7e2f4;
  border-radius: 10px;
  background: #f6f9ff;
  color: #315082;
  padding: 5px 10px;
  margin-bottom: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.za-topbar-title {
  margin: 0;
  font-size: 1.02rem;
}

.za-topbar-sub {
  margin: 2px 0 0;
  color: #7a8ca9;
  font-size: 0.85rem;
}

.za-topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.za-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dde5f2;
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 260px;
  background: #fbfcff;
  color: #7f8da7;
  font-size: 0.86rem;
}

.za-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dde5f2;
  background: #fff;
  color: #3b4f71;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.za-sidebar-close {
  display: none;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 1px solid #3b4674;
  border-radius: 10px;
  color: #d7e3ff;
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.za-sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(8, 13, 30, 0.56);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.za-content-wrap {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.za-action-banner {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border: 1px solid #d7e4ff;
  border-radius: 12px;
  background: #eef4ff;
  color: #244481;
  font-size: 0.9rem;
  font-weight: 600;
}

.za-main-panel,
.za-main-panel * {
  box-sizing: border-box;
}

.za-main-panel {
  width: 100%;
  min-height: 100%;
  padding: clamp(13px, 2vw, 24px);
  background: radial-gradient(circle at 15% -10%, #e8f0ff 0, rgba(232, 240, 255, 0) 45%), var(--za-bg);
}

.za-module {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--za-text);
}

.za-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.za-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.za-title {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.za-subtitle {
  margin: 0;
  color: var(--za-muted);
  font-size: 0.88rem;
}

.za-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.za-btn {
  border: 1px solid var(--za-border);
  background: #fff;
  color: var(--za-text);
  font-size: 0.88rem;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.za-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.za-btn-primary {
  background: var(--za-primary);
  border-color: var(--za-primary);
  color: #fff;
}

.za-btn-soft {
  background: var(--za-primary-soft);
  border-color: #c9d9ff;
  color: #1e4dc8;
}

.za-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2e4c84;
  background: #edf3ff;
  border: 1px solid #d6e5ff;
  border-radius: 999px;
  padding: 4px 10px;
}

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

.za-kpi-card {
  border: 1px solid var(--za-border);
  border-radius: var(--za-radius-md);
  background: var(--za-panel);
  box-shadow: var(--za-shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.za-kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.za-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.za-kpi-icon svg {
  width: 20px;
  height: 20px;
}

.za-kpi-icon-blue {
  background: #e6ecff;
  color: #4452ef;
}

.za-kpi-icon-mint {
  background: #e6f8f2;
  color: #0f9d82;
}

.za-kpi-icon-green {
  background: #e8f8ef;
  color: #16a34a;
}

.za-kpi-icon-amber {
  background: #fff4dd;
  color: #de8a00;
}

.za-kpi-icon-violet {
  background: #efe9ff;
  color: #7a4df0;
}

.za-kpi-icon-cyan {
  background: #e6f8ff;
  color: #0e87b8;
}

.za-kpi-trend {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #6a7e9e;
  font-weight: 600;
}

.za-kpi-label {
  font-size: 0.82rem;
  color: var(--za-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.za-kpi-value {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.1;
}

.za-kpi-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--za-muted);
}

.za-up {
  color: var(--za-success);
  font-weight: 700;
}

.za-down {
  color: var(--za-danger);
  font-weight: 700;
}

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

.za-panel {
  border: 1px solid var(--za-border);
  border-radius: var(--za-radius-lg);
  background: var(--za-panel);
  box-shadow: var(--za-shadow);
  padding: 14px;
  min-width: 0;
}

.za-panel-span-2 {
  grid-column: span 2;
}

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

.za-panel-title {
  margin: 0;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.za-title-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.za-title-icon-blue {
  color: #295ef2;
  background: #e8efff;
}

.za-title-icon-violet {
  color: #7246ec;
  background: #f0e9ff;
}

.za-title-icon-green {
  color: #159a4b;
  background: #e5f8ef;
}

.za-title-icon-cyan {
  color: #048db8;
  background: #e5f8ff;
}

.za-select-pill {
  border: 1px solid #d7e1f4;
  border-radius: 10px;
  background: #f8fbff;
  color: #28456d;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 7px 12px;
}

.za-link-inline {
  color: #3d5afe;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.za-course-toolbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.za-course-kpi-card .za-kpi-value {
  font-size: 1.48rem;
}

.za-course-kpi-card .za-kpi-label {
  font-size: 0.85rem;
}

.za-course-toolbar-left,
.za-course-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.za-course-search {
  min-width: min(380px, 100%);
  border: 1px solid #d8e1f1;
  border-radius: 12px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7687a3;
  background: #fcfdff;
}

.za-course-search input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: #2e446a;
  min-width: 240px;
}

.za-course-search input::placeholder {
  color: #8b9bb4;
}

.za-course-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.za-filter-pill {
  border: 1px solid #d4ddeb;
  border-radius: 11px;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: #2f4467;
  text-decoration: none;
  background: #fff;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.za-filter-pill.is-active {
  background: linear-gradient(90deg, #5d66f2, #6a72f3);
  border-color: #5d66f2;
  color: #fff;
}

.za-view-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid #d4ddeb;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #62748f;
  background: #fff;
  text-decoration: none;
}

.za-view-toggle.is-active {
  border-color: #5d66f2;
  background: #5d66f2;
  color: #fff;
}

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

.za-course-card {
  border: 1px solid #d9e3f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 41, 59, 0.08);
  overflow: hidden;
}

.za-course-cover {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.za-course-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 48%);
}

.za-course-cover-ml {
  background:
    radial-gradient(circle at 65% 54%, rgba(44, 179, 255, 0.4), transparent 25%),
    radial-gradient(circle at 32% 38%, rgba(46, 109, 255, 0.35), transparent 30%),
    linear-gradient(120deg, #06173f, #082b76 52%, #163da0);
}

.za-course-cover-fullstack {
  background:
    radial-gradient(circle at 60% 20%, rgba(67, 255, 225, 0.26), transparent 34%),
    linear-gradient(120deg, #03243f, #055260 55%, #096b73);
}

.za-course-cover-analytics {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 175, 120, 0.35), transparent 34%),
    radial-gradient(circle at 34% 66%, rgba(81, 222, 255, 0.28), transparent 36%),
    linear-gradient(120deg, #066a85, #2aa1aa 52%, #1ac5dc);
}

.za-course-cover-design {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(120deg, #f2c5c0, #efb7ad 55%, #ecafa2);
}

.za-course-cover-cloud {
  background:
    radial-gradient(circle at 20% 42%, rgba(255, 145, 34, 0.32), transparent 30%),
    radial-gradient(circle at 78% 70%, rgba(255, 196, 90, 0.24), transparent 36%),
    linear-gradient(120deg, #f17f00, #ff9f15 58%, #ffbe43);
}

.za-course-cover-product {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.35), transparent 34%),
    radial-gradient(circle at 20% 70%, rgba(74, 243, 219, 0.38), transparent 38%),
    linear-gradient(120deg, #0e8c5b, #1cc08e 56%, #45e7bb);
}

.za-course-badge,
.za-course-level {
  position: absolute;
  top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 4px 10px;
  z-index: 2;
}

.za-course-badge {
  left: 10px;
  color: #087f5b;
  background: #e9fff3;
}

.za-course-badge-draft {
  color: #aa5f00;
  background: #fff4df;
}

.za-course-badge-archived {
  color: #475569;
  background: #eef2f7;
}

.za-course-level {
  right: 10px;
  color: #324de7;
  background: #edf1ff;
}

.za-course-content {
  padding: 14px 14px 13px;
}

.za-course-title {
  margin: 0 0 6px;
  font-size: 1.01rem;
  line-height: 1.3;
}

.za-course-copy {
  margin: 0 0 9px;
  color: #70829d;
  font-size: 0.88rem;
  line-height: 1.4;
}

.za-course-meta,
.za-course-stats {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #566b88;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.za-course-meta span:not(:last-child)::after {
  content: '.';
  margin-left: 8px;
  color: #9caac0;
}

.za-course-stats {
  margin-top: 6px;
}

.za-course-progress-head {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #5e7191;
}

.za-course-progress-head strong {
  color: #1f3b68;
}

.za-progress-track {
  margin-top: 5px;
  height: 7px;
  border-radius: 999px;
  background: #e5ebf4;
  overflow: hidden;
}

.za-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7079f5, #5d66f2);
}

.za-course-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.za-course-action {
  text-decoration: none;
  border: 1px solid #d4ddeb;
  background: #fff;
  color: #223a67;
  border-radius: 11px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 600;
}

.za-course-action-edit {
  background: #edf1ff;
  color: #344fe7;
  border-color: #d5ddff;
}

.za-builder-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}

.za-builder-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.za-builder-side-title {
  margin: 0 0 10px;
  color: #7c8aa1;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.za-builder-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.za-step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ecf1fa;
  color: #667793;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  flex-shrink: 0;
}

.za-step-check,
.za-step-cross {
  display: none;
  align-items: center;
  justify-content: center;
}

.za-builder-step-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 10px;
  color: #7a8ca6;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.za-builder-step-list li.is-active .za-builder-step-link {
  background: #edf1ff;
  border-color: #d9e1ff;
  color: #3048d7;
}

.za-builder-step-list li.is-active .za-step-indicator {
  background: #5d66f2;
  color: #fff;
}

.za-builder-step-list li.is-complete .za-step-indicator {
  background: #dcfce7;
  color: #15803d;
}

.za-builder-step-list li.is-complete .za-step-number {
  display: none;
}

.za-builder-step-list li.is-complete .za-step-check {
  display: inline-flex;
}

.za-builder-step-list li.is-error .za-step-indicator {
  background: #fee2e2;
  color: #b91c1c;
}

.za-builder-step-list li.is-error .za-step-number {
  display: none;
}

.za-builder-step-list li.is-error .za-step-cross {
  display: inline-flex;
}

.za-builder-progress p {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f7f97;
  font-size: 0.9rem;
}

.za-builder-progress p strong {
  color: #465a78;
}

.za-builder-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.za-builder-form-head h2 {
  margin: 0;
  font-size: 1.42rem;
}

.za-builder-form-head p {
  margin: 4px 0 0;
  color: #70829d;
  font-size: 0.95rem;
}

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

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

.za-label em {
  font-style: normal;
  color: #dc2626;
}

.za-field small {
  color: #7687a1;
  font-size: 0.84rem;
}

.za-builder-textarea {
  min-height: 116px;
}

.za-builder-char-count {
  text-align: right;
}

.za-builder-footer {
  margin-top: 6px;
  border-top: 1px solid #e7edf8;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.za-field-has-error .za-input,
.za-field-has-error .za-select,
.za-field-has-error .za-textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.za-builder-validation {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: #b91c1c;
  font-weight: 600;
}

.za-builder-step-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.za-builder-step-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #dde4f2;
}

.za-builder-step-dots span.is-active {
  width: 18px;
  background: #5d66f2;
}

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

.za-users-kpi-card .za-kpi-value {
  font-size: 2.05rem;
}

.za-users-kpi-card .za-kpi-label {
  font-size: 0.89rem;
}

.za-users-directory-panel {
  padding: 0;
  overflow: hidden;
}

.za-users-toolbar {
  padding: 14px;
  border-bottom: 1px solid #e7edf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.za-users-search {
  min-width: min(360px, 100%);
  border: 1px solid #d8e1f1;
  border-radius: 11px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7687a3;
  background: #fcfdff;
}

.za-users-search input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: #2e446a;
  min-width: 200px;
}

.za-users-search input::placeholder {
  color: #8b9bb4;
}

.za-users-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.za-users-table th {
  color: #8495af;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.za-users-table th,
.za-users-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.za-users-usercell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.za-users-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d7def0;
  display: inline-flex;
  flex-shrink: 0;
}

.za-users-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #182842;
}

.za-users-email {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: #7b8ea8;
}

.za-users-role-pill,
.za-users-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  padding: 4px 10px;
  border: 1px solid #e4eaf5;
  background: #f8fbff;
  font-size: 0.9rem;
  font-weight: 700;
  color: #213858;
}

.za-users-role-instructor {
  color: #008a78;
  background: #e8f8f4;
  border-color: #c7eee4;
}

.za-users-status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.za-users-status-active {
  color: #16a34a;
  background: #eaf8ef;
  border-color: #cdefdb;
}

.za-users-status-inactive {
  color: #7888a1;
  background: #f3f6fb;
  border-color: #e2e8f4;
}

.za-users-status-pending {
  color: #c98400;
  background: #fff5dd;
  border-color: #ffe4a7;
}

.za-users-actions-cell {
  white-space: nowrap;
}

.za-users-row-action {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #7589a7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.za-users-row-action:hover {
  border-color: #d9e2f1;
  background: #f6f9ff;
  color: #365487;
}

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

.za-assign-summary-card {
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--za-shadow);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.za-assign-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.za-assign-summary-icon-blue {
  background: #e8ecff;
  color: #4a59ef;
}

.za-assign-summary-icon-cyan {
  background: #e8f7f6;
  color: #0596a0;
}

.za-assign-summary-icon-green {
  background: #eaf8ef;
  color: #14984a;
}

.za-assign-summary-icon-red {
  background: #feeeee;
  color: #dc2626;
}

.za-assign-summary-value {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.za-assign-summary-label {
  margin: 3px 0 0;
  color: #59708f;
  font-size: 0.94rem;
}

.za-assign-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.za-assign-table-panel {
  padding: 0;
  overflow: hidden;
}

.za-assign-table th {
  color: #7388a7;
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: 0;
}

.za-assign-table th,
.za-assign-table td {
  padding: 13px 14px;
  vertical-align: middle;
}

.za-assign-student {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.za-assign-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d7def0;
  display: inline-flex;
  flex-shrink: 0;
}

.za-assign-progress {
  width: 92px;
  height: 7px;
  border-radius: 999px;
  background: #e5ebf4;
  overflow: hidden;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 8px;
}

.za-assign-progress span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #717cf4, #5d66f2);
}

.za-assign-progress-text {
  color: #5d7392;
  font-weight: 600;
  font-size: 0.9rem;
}

.za-assign-status {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 4px 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.za-assign-status-progress {
  background: #e8f8f4;
  color: #008d7a;
}

.za-assign-status-complete {
  background: #e7f9ec;
  color: #159b46;
}

.za-assign-status-assigned {
  background: #eef1ff;
  color: #3d53ea;
}

.za-assign-status-overdue {
  background: #feeeee;
  color: #dc2626;
}

.za-assign-date-overdue {
  color: #dc2626;
  font-weight: 700;
}

.za-assign-action {
  color: #7d8da6;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
}

.za-assign-footnote {
  margin: 0;
  border-top: 1px solid #e7edf8;
  padding: 12px 14px 14px;
  color: #6e82a2;
  font-size: 0.92rem;
}

.za-panel-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--za-muted);
}

.za-line-chart {
  position: relative;
  height: 240px;
  border-radius: 12px;
  background:
    linear-gradient(to top, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.02) 45%, transparent 100%),
    repeating-linear-gradient(to right, transparent 0, transparent 54px, rgba(148, 163, 184, 0.2) 54px, rgba(148, 163, 184, 0.2) 55px),
    repeating-linear-gradient(to top, transparent 0, transparent 43px, rgba(148, 163, 184, 0.2) 43px, rgba(148, 163, 184, 0.2) 44px),
    #f8fbff;
  border: 1px solid #deebff;
  overflow: hidden;
}

.za-line-chart-advanced {
  border: 1px solid #e0e9f8;
  background:
    linear-gradient(180deg, rgba(79, 103, 255, 0.06) 0%, rgba(79, 103, 255, 0.01) 45%, transparent 100%),
    repeating-linear-gradient(to right, rgba(145, 163, 193, 0.16) 0, rgba(145, 163, 193, 0.16) 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(to top, rgba(145, 163, 193, 0.14) 0, rgba(145, 163, 193, 0.14) 1px, transparent 1px, transparent 46px),
    #fbfdff;
}

.za-line-svg {
  width: 100%;
  height: 100%;
}

.za-line-blue {
  fill: none;
  stroke: #4f67ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.za-line-cyan {
  fill: none;
  stroke: #0ea5c6;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.za-line-points circle {
  fill: #4f67ff;
  stroke: #fff;
  stroke-width: 2.4;
}

.za-line {
  position: absolute;
  inset: 0;
}

.za-line span {
  position: absolute;
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: 20px;
  transform-origin: left center;
}

.za-line .l1 { left: 8%; bottom: 36%; width: 13%; transform: rotate(-10deg); }
.za-line .l2 { left: 20%; bottom: 34%; width: 14%; transform: rotate(20deg); }
.za-line .l3 { left: 34%; bottom: 40%; width: 12%; transform: rotate(-8deg); }
.za-line .l4 { left: 45%; bottom: 39%; width: 16%; transform: rotate(19deg); }
.za-line .l5 { left: 61%; bottom: 47%; width: 11%; transform: rotate(-5deg); }
.za-line .l6 { left: 71%; bottom: 46%; width: 16%; transform: rotate(17deg); }

.za-point {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.za-point.p1 { left: 18%; bottom: 33%; }
.za-point.p2 { left: 31%; bottom: 39%; }
.za-point.p3 { left: 43%; bottom: 37%; }
.za-point.p4 { left: 59%; bottom: 48%; }
.za-point.p5 { left: 70%; bottom: 45%; }
.za-point.p6 { left: 86%; bottom: 54%; }

.za-chart-legend {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--za-muted);
}

.za-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.za-dot-primary {
  background: var(--za-primary);
}

.za-dot-success {
  background: #22c55e;
}

.za-dot-cyan {
  background: #0ea5c6;
}

.za-dot-orange {
  background: #f59e0b;
}

.za-dot-violet {
  background: #7b4df0;
}

.za-dot-green {
  background: #16a34a;
}

.za-chart-legend-wrap {
  flex-wrap: wrap;
  row-gap: 6px;
}

.za-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 210px;
  gap: 8px;
  padding: 4px 0;
}

.za-bar-wrap {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.za-bar {
  display: block;
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.za-bar-muted {
  background: linear-gradient(180deg, #c6d7f9 0%, #93b2ef 100%);
}

.za-x-label {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--za-muted);
}

.za-bars-advanced {
  border: 1px solid #e4ebf8;
  border-radius: 12px;
  padding: 14px 10px 8px;
  background:
    repeating-linear-gradient(to top, rgba(145, 163, 193, 0.15) 0, rgba(145, 163, 193, 0.15) 1px, transparent 1px, transparent 33px),
    #f9fbff;
}

.za-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.za-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e8edf7;
  background: #fbfcff;
}

.za-list-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.za-list-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--za-muted);
}

.za-status {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.za-status-success {
  color: #087f5b;
  background: #dcfce7;
}

.za-status-warning {
  color: #9a6506;
  background: #fef3c7;
}

.za-status-danger {
  color: #b42318;
  background: #fee2e2;
}

.za-status-info {
  color: #1e3a8a;
  background: #dbeafe;
}

.za-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.za-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.za-table th,
.za-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf8;
  text-align: left;
  font-size: 0.86rem;
}

.za-table th {
  color: var(--za-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.za-table tr:last-child td {
  border-bottom: none;
}

.za-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.za-pill {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid #d9e4f7;
  background: #f4f8ff;
  color: #35507a;
}

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

.za-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.za-label {
  font-size: 0.8rem;
  color: var(--za-muted);
  font-weight: 600;
}

.za-input,
.za-select,
.za-textarea {
  width: 100%;
  border: 1px solid #d7e2f3;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fcfdff;
  font-size: 0.88rem;
  color: #223450;
}

.za-textarea {
  min-height: 96px;
  resize: vertical;
}

.za-inline-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 0.86rem;
}

.za-inline-stat strong {
  font-size: 1.05rem;
}

.za-donut {
  width: 180px;
  aspect-ratio: 1;
  margin: 6px auto 14px;
  border-radius: 50%;
  background: conic-gradient(#2563eb 0 46%, #22c55e 46% 74%, #f59e0b 74% 88%, #cbd5e1 88% 100%);
  position: relative;
}

.za-donut::after {
  content: '';
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #fff;
}

.za-donut-categories {
  background: conic-gradient(#5962f3 0 39%, #7b4df0 39% 64%, #0ea5c6 64% 81%, #f59e0b 81% 93%, #16a34a 93% 100%);
}

.za-donut-course-mix {
  background: conic-gradient(#4f67ff 0 34%, #7b4df0 34% 58%, #0ea5c6 58% 72%, #f59e0b 72% 87%, #16a34a 87% 100%);
}

.za-donut-role-mix {
  background: conic-gradient(#4f67ff 0 46%, #7b4df0 46% 74%, #0ea5c6 74% 88%, #22c55e 88% 100%);
}

.za-donut-device-mix {
  background: conic-gradient(#4f67ff 0 52%, #0ea5c6 52% 90%, #7b4df0 90% 100%);
}

.za-center-empty {
  min-height: 52vh;
  display: grid;
  place-items: center;
}

.za-empty-card {
  width: min(520px, 100%);
  text-align: center;
  padding: 34px 20px;
  border: 1px solid var(--za-border);
  border-radius: var(--za-radius-lg);
  background: var(--za-panel);
  box-shadow: var(--za-shadow);
}

.za-empty-card h2 {
  margin: 0 0 8px;
}

.za-empty-card p {
  margin: 0 0 16px;
  color: var(--za-muted);
}

.za-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(12, 22, 44, 0.5);
  padding: 16px;
}

.za-modal-backdrop[hidden] {
  display: none !important;
}

.za-modal {
  width: min(560px, 100%);
  max-height: min(92svh, 780px);
  overflow-y: auto;
  border: 1px solid var(--za-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.28);
  padding: 16px;
}

.za-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.za-modal-title {
  margin: 0;
  font-size: 1.2rem;
}

.za-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #dce5f3;
  border-radius: 10px;
  background: #fff;
  color: #5e7292;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.za-modal-subtitle {
  margin: 8px 0 12px;
  color: #60718d;
  font-size: 0.9rem;
}

.za-modal-body {
  padding: 4px 0;
}

.za-modal-note {
  margin: 0;
  color: #465976;
  font-size: 0.9rem;
}

.za-modal-foot {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1200px) {
  .za-shell {
    grid-template-columns: 214px 1fr;
  }

  .za-search {
    min-width: 204px;
  }

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

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

  .za-panel-span-2 {
    grid-column: auto;
  }

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

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

  .za-builder-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .za-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 82vw);
    z-index: 45;
    transform: translateX(-102%);
    transition: transform 0.25s ease;
  }

  .za-admin-body.za-sidebar-open .za-sidebar {
    transform: translateX(0);
  }

  .za-admin-body.za-sidebar-open .za-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .za-sidebar-close,
  .za-menu-toggle {
    display: inline-flex;
  }

  .za-main-wrap {
    width: 100%;
  }

  .za-topbar {
    padding: 10px 14px;
  }

  .za-search {
    min-width: 190px;
  }
}

@media (max-width: 760px) {
  .za-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .za-topbar-tools {
    width: 100%;
    gap: 8px;
  }

  .za-topbar-left {
    width: 100%;
  }

  .za-back-link {
    max-width: 100%;
  }

  .za-search {
    min-width: 0;
    flex: 1;
  }

  .za-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .za-kpi-grid,
  .za-dashboard-grid,
  .za-module-grid,
  .za-form-grid {
    grid-template-columns: 1fr;
  }

  .za-course-kpi-grid,
  .za-users-kpi-grid {
    grid-template-columns: 1fr;
  }

  .za-main-panel {
    padding: 14px;
  }

  .za-line-chart {
    height: 210px;
  }

  .za-donut {
    width: 150px;
  }

  .za-action-banner {
    margin-inline: 14px;
  }

  .za-modal-foot {
    flex-direction: column-reverse;
  }

  .za-modal-foot .za-btn {
    width: 100%;
  }

  .za-course-toolbar {
    padding: 12px;
  }

  .za-course-search {
    min-width: 100%;
  }

  .za-course-search input {
    min-width: 120px;
  }

  .za-users-search {
    min-width: 100%;
  }

  .za-users-search input {
    min-width: 120px;
  }

  .za-course-grid {
    grid-template-columns: 1fr;
  }

  .za-builder-sidebar {
    grid-template-columns: 1fr;
  }

  .za-builder-form-grid {
    grid-template-columns: 1fr;
  }

  .za-builder-form-head h2 {
    font-size: 1.4rem;
  }

  .za-builder-form-head p {
    font-size: 0.94rem;
  }

  .za-assign-summary-grid {
    grid-template-columns: 1fr;
  }

  .za-assign-table th,
  .za-assign-table td {
    padding: 10px 10px;
  }

  .za-assign-progress {
    width: 72px;
  }

  .za-users-table {
    min-width: 860px;
  }
}

@media (max-width: 520px) {
  .za-brand-name {
    font-size: 1.5rem;
  }

  .za-org-name {
    max-width: 125px;
  }

  .za-panel,
  .za-kpi-card {
    padding: 13px;
  }

  .za-actions {
    width: 100%;
  }

  .za-btn {
    width: 100%;
    text-align: center;
  }

  .za-modal {
    padding: 14px;
    border-radius: 14px;
  }

  .za-course-actions {
    grid-template-columns: 1fr;
  }
}
