/* SkillMetric Design System
   Neutral platform primitives and shell. Organization branding is injected
   through semantic --ds-* tokens; feature presentation lives in styles.css. */
:root {--ds-bg: #f7f9f8;
  --ds-surface: #ffffff;
  --ds-text: #1a211e;
  --ds-text-primary: var(--ds-text);
  --ds-text-secondary: color-mix(in srgb, var(--ds-text) 72%, var(--ds-surface) 28%);
  --ds-text-muted: #5f6563;
  --ds-border: #d7dad9;
  --ds-border-strong: color-mix(in srgb, var(--ds-border) 72%, var(--ds-text) 28%);
  --ds-surface-subtle: color-mix(in srgb, var(--ds-surface) 92%, var(--ds-bg) 8%);
  --ds-surface-muted: color-mix(in srgb, var(--ds-surface) 82%, var(--ds-bg) 18%);
  --ds-accent: #067a6f;
  --ds-accent-hover: #075f57;
  --ds-accent-strong: var(--ds-accent-hover);
  --ds-accent-subtle: color-mix(in srgb, var(--ds-accent) 7%, var(--ds-surface) 93%);
  --ds-accent-soft: color-mix(in srgb, var(--ds-accent) 13%, var(--ds-surface) 87%);
  --ds-accent-border: color-mix(in srgb, var(--ds-accent) 38%, var(--ds-border) 62%);
  --ds-success: #256a4a;
  --ds-success-soft: color-mix(in srgb, var(--ds-success) 11%, var(--ds-surface) 89%);
  --ds-warning: #725714;
  --ds-warning-soft: #fff4d6;
  --ds-danger: #9f2f35;
  --ds-danger-hover: #7f252a;
  --ds-danger-soft: color-mix(in srgb, var(--ds-danger) 10%, var(--ds-surface) 90%);
  --ds-focus: var(--ds-accent);
  --ds-shadow-sm: 0 1px 2px rgba(26, 33, 30, .06);
  --ds-shadow-md: 0 12px 30px rgba(26, 33, 30, .08);
  --ds-shadow-lg: 0 28px 70px rgba(27, 54, 35, .18);
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 18px;
  --ds-radius-xl: 22px;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-control: 46px;
  --ds-control-sm: 38px;
  --ds-sidebar-width: 248px;
  --ds-topbar-height: 88px;

  
}
* {box-sizing: border-box;}
html,
body {margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ds-text); background: var(--ds-bg);}
button,
input,
select,
textarea {font: inherit;}
button {cursor: pointer;}
a {color: inherit;}
.hidden {display: none !important;}
.muted {color: var(--ds-text-muted);}
.small {font-size: 13px;}
.stack {display: grid; gap: 14px;}
.row {display: flex; align-items: center; gap: 10px;}
.row-wrap {display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
.spacer {flex: 1;}
.login-page {min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: linear-gradient(135deg, #f4f7fb 0%, #eef3ff 100%);}
.login-brand {position: relative;
  overflow: hidden;
  padding: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background: linear-gradient(145deg, #17233d 0%, #243a70 58%, #3867f2 100%);}
.login-brand::after {content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  right: -190px;
  bottom: -180px;
  box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 150px rgba(255,255,255,.025);}
.brand-mark {display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; font-size: 24px; position: relative; z-index: 1;}
.brand-logo {width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: white; color: var(--ds-accent); font-weight: 900;}
.login-hero {max-width: 640px; position: relative; z-index: 1;}
.login-hero h1 {font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -.05em; margin: 0 0 24px;}
.login-hero p {margin: 0; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.65; max-width: 580px;}
.login-badges {display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1;}
.login-badge {border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); padding: 9px 12px; border-radius: 999px; font-size: 13px;}
.login-panel {display: grid; place-items: center; padding: 40px;}
.login-card {width: min(440px, 100%); background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 26px; box-shadow: var(--ds-shadow-md); padding: 34px;}
.login-card h2 {margin: 0 0 8px; font-size: 30px; letter-spacing: -.03em;}
.login-card > p {margin: 0 0 28px; color: var(--ds-text-muted);}
.field {display: grid; gap: 8px; margin-bottom: 16px;}
.field label {font-size: 13px; font-weight: 700; color: #4b566c;}
.sidebar {position: sticky; top: 0; height: 100vh; background: var(--ds-surface); color: white; padding: 22px 16px; display: flex; flex-direction: column; z-index: 20;}
.sidebar .brand-mark {padding: 4px 8px 24px; font-size: 20px;}
.sidebar .brand-logo {width: 36px; height: 36px; border-radius: 11px;}
.nav-label {color: #7182a7; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; padding: 12px 12px 8px;}
.nav {display: grid; gap: 5px;}
.nav-item {border: 0; background: transparent; color: var(--ds-text-muted); width: 100%; text-align: left; display: flex; align-items: center; gap: 11px; border-radius: 11px; padding: 11px 12px; font-weight: 650;}
.nav-item:hover {background: rgba(255,255,255,.06); color: white;}
.nav-item.active {background: rgba(255,255,255,.11); color: white;}
.nav-icon {width: 22px; text-align: center; font-size: 17px;}
.sidebar-footer {margin-top: auto; border-top: 1px solid rgba(255,255,255,.09); padding: 16px 8px 4px; color: var(--ds-text-muted); font-size: 12px;}
.topbar {height: var(--ds-topbar-height); background: rgba(255,255,255,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--ds-border); display: flex; align-items: center; padding: 0 28px; position: sticky; top: 0; z-index: 15;}
.page-title {font-weight: 800; letter-spacing: -.02em; font-size: 19px;}
.user-chip {display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 1px solid var(--ds-border); background: white; border-radius: 13px;}
.avatar {width: 34px; height: 34px; border-radius: 10px; background: var(--ds-accent-soft); color: var(--ds-accent); display: grid; place-items: center; font-weight: 800;}
.user-meta {line-height: 1.15;}
.user-name {font-size: 13px; font-weight: 800;}
.user-role {font-size: 11px; color: var(--ds-text-muted); margin-top: 3px;}
.hero {display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px;}
.hero h1 {margin: 0 0 8px; font-size: 32px; letter-spacing: -.035em;}
.hero p {margin: 0; color: var(--ds-text-muted); max-width: 760px;}
.metrics {display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px;}
.metric {background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 14px; padding: 18px;}
.metric-label {color: var(--ds-text-muted); font-size: 12px; font-weight: 700; margin-bottom: 9px;}
.metric-value {font-size: 27px; font-weight: 850; letter-spacing: -.035em;}
.grid {display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px;}
.col-8 {grid-column: span 8;}
.col-7 {grid-column: span 7;}
.col-6 {grid-column: span 6;}
.col-5 {grid-column: span 5;}
.col-4 {grid-column: span 4;}
.col-12 {grid-column: span 12;}
.card {background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 20px; box-shadow: 0 5px 18px rgba(28,39,60,.035); overflow: hidden;}
.card-head {padding: 20px 22px 0; display: flex; gap: 12px; align-items: center;}
.card-title {font-size: 16px; font-weight: 850; letter-spacing: -.015em;}
.card-body {padding: 20px 22px 22px;}
.course-grid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;}
.course-card {background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 18px; padding: 20px; display: grid; gap: 18px; min-height: 230px; transition: transform .18s ease, box-shadow .18s ease;}
.course-card:hover {transform: translateY(-3px); box-shadow: var(--ds-shadow-md);}
.course-card h3 {margin: 0 0 8px; font-size: 19px; letter-spacing: -.025em;}
.course-card p {margin: 0; color: var(--ds-text-muted); line-height: 1.5; font-size: 14px;}
.badge {display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 800; background: var(--ds-accent-soft); color: var(--ds-accent);}
.badge.success {background: var(--ds-success-soft); color: var(--ds-success);}
.badge.warning {background: var(--ds-warning-soft); color: var(--ds-warning);}
.badge.gray {background: #eef1f5; color: #697487;}
.course-meta {display: flex; gap: 14px; flex-wrap: wrap; color: var(--ds-text-muted); font-size: 12px;}
.progress-track {height: 7px; background: #edf0f5; border-radius: 99px; overflow: hidden;}
.progress-fill {height: 100%; background: var(--ds-accent); border-radius: inherit; transition: width .2s ease;}
table {width: 100%; border-collapse: collapse;}
th,
td {text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--ds-border); vertical-align: middle;}
th {color: var(--ds-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .045em; font-weight: 800;}
td {font-size: 13px;}
tr:last-child td {border-bottom: 0;}
.empty {padding: 44px 20px; text-align: center; color: var(--ds-text-muted);}
.empty strong {display: block; color: var(--ds-text); font-size: 16px; margin-bottom: 6px;}
.toolbar {display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px;}
.modal-backdrop {position: fixed; inset: 0; background: rgba(13,22,40,.46); display: grid; place-items: center; z-index: 100; padding: 24px;}
.modal {width: min(620px, 100%); max-height: 88vh; overflow-y: auto; background: white; border-radius: 22px; box-shadow: 0 30px 80px rgba(13,22,40,.24);}
.modal-head {display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--ds-border);}
.modal-body {padding: 22px;}
.toast-stack {position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 200;}
.toast {min-width: 280px; max-width: 430px; padding: 13px 15px; background: #172033; color: white; border-radius: 12px; box-shadow: var(--ds-shadow-md); font-size: 13px;}
.toast.error {background: #8e2e2e;}
.toast.success {background: #176a55;}
.mobile-menu {display: none;}
@media (max-width: 1100px) {
.metrics {grid-template-columns: repeat(2, minmax(0, 1fr));}
.course-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
.col-8,
.col-7,
.col-6,
.col-5,
.col-4 {grid-column: span 12;}
}
@media (max-width: 860px) {
.sidebar {display: none; position: fixed; width: 260px; left: 0; top: 0;}
.sidebar.open {display: flex;}
.mobile-menu {display: inline-grid; place-items: center;}
.topbar {padding: 0 16px; gap: 10px;}
.login-page {grid-template-columns: 1fr;}
.login-brand {display: none;}
.login-panel {min-height: 100vh; padding: 20px;}
}
@media (max-width: 620px) {
.metrics,
.course-grid {grid-template-columns: 1fr;}
.hero {align-items: flex-start; flex-direction: column;}
.user-meta {display: none;}
}
.modal-wide {width: min(820px, 100%);}
.modal-actions {display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ds-border);}
.import-tools {display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;}
.import-dropzone {border: 1.5px dashed #b9c5da; border-radius: 16px; background: #f8faff; min-height: 126px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: left; outline: none; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;}
.import-dropzone:hover,
.import-dropzone:focus,
.import-dropzone.dragging {border-color: var(--ds-accent); background: var(--ds-accent-soft); box-shadow: 0 0 0 4px rgba(56,103,242,.08);}
.import-drop-icon {width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: var(--ds-accent); color: white; font-size: 12px; font-weight: 900; letter-spacing: .05em;}
.import-file-meta {margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--ds-border); border-radius: 12px; background: var(--ds-surface-subtle);}
.import-status {margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ds-accent-soft); color: var(--ds-accent-hover); font-size: 13px; font-weight: 750;}
.import-errors {margin-top: 14px; padding: 16px; border: 1px solid #efc5c5; border-radius: 14px; background: var(--ds-danger-soft); color: #762d2d;}
.import-errors .import-panel-title {font-weight: 850; margin-bottom: 8px; color: var(--ds-danger);}
.import-errors p {margin: 0 0 12px;}
.import-errors ol {margin: 8px 0 14px; padding-left: 22px; display: grid; gap: 10px;}
.import-errors li {padding-left: 3px;}
.import-errors code {display: inline-block; margin-bottom: 3px; color: #643030; font-size: 12px; overflow-wrap: anywhere;}
.import-preview {margin-top: 16px; border: 1px solid var(--ds-border); border-radius: 16px; overflow: hidden;}
.import-valid {display: flex; gap: 10px; align-items: center; padding: 13px 16px; background: var(--ds-success-soft); color: var(--ds-success);}
.import-valid > span {width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: white; font-weight: 900;}
.import-preview-head {display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px;}
.import-preview-head .eyebrow {color: var(--ds-accent); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em;}
.import-preview-head h3 {margin: 5px 0 4px; font-size: 20px;}
.import-meta-grid {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border);}
.import-meta-grid > div {padding: 13px 16px; border-right: 1px solid var(--ds-border); min-width: 0;}
.import-meta-grid > div:last-child {border-right: 0;}
.import-meta-grid span,
.import-stat-grid span {display: block; color: var(--ds-text-muted); font-size: 11px; margin-bottom: 4px;}
.import-meta-grid strong {font-size: 13px; overflow-wrap: anywhere;}
.import-stat-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); padding: 14px 10px; background: var(--ds-surface-subtle);}
.import-stat-grid > div {text-align: center; padding: 4px;}
.import-stat-grid strong {display: block; font-size: 19px; margin-bottom: 2px;}
.import-warning-list {padding: 14px 16px; display: grid; gap: 7px; border-top: 1px solid var(--ds-border); background: var(--ds-warning-soft); color: #765020; font-size: 12px;}
.import-warning {padding: 11px 13px; border-radius: 11px; background: var(--ds-warning-soft); color: #765020; font-size: 12px;}
.import-conflict {margin: 16px; padding: 14px; border: 1px solid #efcc9d; border-radius: 13px; background: var(--ds-warning-soft); color: #65461f;}
.import-conflict > strong {display: block; margin-bottom: 5px;}
.import-success {padding: 30px 12px 18px; text-align: center;}
.import-success-icon {width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--ds-success-soft); color: var(--ds-success); font-size: 30px; font-weight: 900;}
.import-success h3 {margin: 0 0 8px; font-size: 24px;}
.import-success p {max-width: 560px; margin: 0 auto 20px; color: var(--ds-text-muted); line-height: 1.55;}
@media (max-width: 700px) {
.import-meta-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
.import-meta-grid > div:nth-child(2) {border-right: 0;}
.import-meta-grid > div:nth-child(-n/**/+2) {border-bottom: 1px solid var(--ds-border);}
.import-stat-grid {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 0;}
.import-preview-head {flex-direction: column;}
.modal-actions {flex-direction: column-reverse;}
.modal-actions .btn {width: 100%;}
}
.access-item {display:grid; grid-template-columns:20px minmax(0,1fr); gap:10px; align-items:start; border:1px solid var(--ds-border); border-radius:12px; padding:12px 14px; cursor:pointer;}
.access-item:hover {background:#fafbfe;}
.access-item span {display:grid; gap:3px;}
.access-item small {color:var(--ds-text-muted);}
html {-webkit-text-size-adjust: 100%;}
body {overflow-x: hidden;}
@media (min-width: 1560px) {
.course-grid {grid-template-columns: repeat(4, minmax(0, 1fr));}
}
@media (max-width: 760px) {
.topbar {min-height: var(--ds-topbar-height); height: auto;}
.page-title {font-size: 16px;}
table {min-width: 640px;}
.modal-backdrop {padding: 10px;}
.modal {border-radius: 16px; max-height: 94svh;}
.modal-head,
.modal-body {padding: 16px;}
.toast-stack {left: 12px; right: 12px; bottom: 12px;}
.toast {min-width: 0; width: 100%; max-width: none;}
}
@media (max-width: 520px) {
.metrics {gap: 10px;}
.metric {padding: 14px;}
.metric-value {font-size: 23px;}
.hero h1 {font-size: 27px;}
.course-card {padding: 16px; min-height: 0;}
}
.access-item.disabled {opacity: .58; cursor: not-allowed; background: #f7f8fb;}
.access-item.disabled input {cursor: not-allowed;}
.nav-label {color: #a7b6d4;}
.sidebar-backdrop {display: none;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, .44);}
.action-menu {position: relative;}
.action-menu > summary {list-style: none;}
.action-menu > summary::-webkit-details-marker {display: none;}
.action-menu-trigger {min-width: 42px; padding-inline: 12px; font-size: 18px; line-height: 1;}
.action-menu-popover {position: absolute;
  z-index: 60;
  right: 0;
  top: calc(100% + 7px);
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(22,32,51,.15);}
.action-menu-popover button {display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 11px;
  background: transparent;
  color: var(--ds-text);
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 650;}
.action-menu-popover button:hover {background: #f4f6fa;}
.action-menu-popover button.danger {color: var(--ds-danger);}
.load-error {min-height: 320px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;}
.load-error-icon {width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
  font-size: 24px;
  font-weight: 900;}
.load-error h2 {margin: 0 0 6px;}
.load-error p {margin: 0; color: var(--ds-text-muted);}
.user-toolbar {justify-content: flex-end;}
.user-toolbar .search {width: min(400px, 100%);}
@media (max-width: 860px) {
.sidebar {display: flex;
    width: min(82vw, 280px);
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 18px 0 50px rgba(15,23,42,.20);}
.sidebar.open {display: flex; transform: translateX(0);}
.sidebar-backdrop {position: fixed;
    inset: 0;
    z-index: 19;
    opacity: 0;
    pointer-events: none;
    display: block;
    transition: opacity .18s ease;}
.sidebar-backdrop.open {opacity: 1; pointer-events: auto;}
}
@media (max-width: 760px) {
.load-error {grid-template-columns: 1fr; min-height: 0; padding: 22px 18px;}
.load-error .btn {width: 100%;}
.action-menu-popover {position: static; margin-top: 6px; box-shadow: none;}
}
@media (max-width: 520px) {
.user-toolbar .search {width: 100%;}
}
.metrics.metrics-4 {grid-template-columns: repeat(4, minmax(0, 1fr));}
@media (max-width: 1100px) {
.metrics.metrics-4 {grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 620px) {
.metrics.metrics-4 {grid-template-columns: 1fr;}
}
.credential-generator-head {display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;}
.password-input-row {display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;}
.credential-success {text-align: center;}
.credential-success h3 {margin: 10px 0 6px;}
.credential-card {margin: 20px auto;
  max-width: 620px;
  text-align: left;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;}
.credential-person {padding: 15px 17px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--ds-border);
  font-weight: 800;}
.credential-row {display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--ds-border);}
.credential-row > span {color: var(--ds-text-muted); font-size: 13px; font-weight: 700;}
.credential-row code {display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #f5f7fa;
  color: #23324a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;}
.credential-course-count {padding: 12px 17px; color: var(--ds-text-muted); font-size: 13px;}
.credential-actions {display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;}
@media (max-width: 760px) {
.password-input-row {grid-template-columns: 1fr;}
.credential-row {grid-template-columns: 1fr; gap: 7px;}
.credential-row .btn {width: 100%;}
.credential-actions {flex-direction: column;}
.credential-actions .btn {width: 100%;}
}
.import-valid > span .ui-icon {width: 16px; height: 16px;}
.import-success-icon .ui-icon {width: 30px; height: 30px;}
.import-warning-list > div {display: flex; align-items: flex-start; gap: 8px;}
.import-warning-list .ui-icon {width: 17px; height: 17px; margin-top: 2px;}
.check-marker .ui-icon {width: 12px; height: 12px;}
.badge {align-items: center;}
.content-external-link .ui-icon {width: 14px; height: 14px;}
.modal-analytics {width: min(1180px, 100%);}
html {scroll-behavior: smooth; scroll-padding-top: 100px;}
html,
body {font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 16px; line-height: 1.5;}
body {overflow-x: clip;}
button,
input,
select,
textarea {font: inherit;}
button,
a,
input,
select,
textarea,
summary {-webkit-tap-highlight-color: transparent;}
:focus-visible {outline: 3px solid var(--ds-accent); outline-offset: 4px;}
input[type="checkbox"],
input[type="radio"] {accent-color: var(--ds-accent); width: 19px; height: 19px; flex: 0 0 auto;}
a {text-underline-offset: 3px;}
.ui-icon {width: 21px; height: 21px; display: block; flex: 0 0 auto; vertical-align: middle; fill: currentColor; overflow: visible; pointer-events: none;}
.skip-link {position: fixed; top: -100px; left: 16px; z-index: 2000; padding: 12px 20px; background: var(--ds-accent); color: #fff; border-radius: 10px;}
.skip-link:focus {top: 14px;}
.small {font-size: 14px;}
.eyebrow {color: var(--ds-accent); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em;}
.field {gap: 9px; margin-bottom: 21px;}
.field label {font-size: 14px; font-weight: 650; color: var(--ds-text);}
.login-page {min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; background: var(--ds-bg);}
.login-panel {display: grid; grid-template-columns: .92fr 1.08fr; width: min(980px, 100%); padding: 0; background: #fff; border: 1px solid var(--ds-border); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 70px rgba(50, 69, 50, .08); align-items: stretch;}
.login-identity {display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 44px 34px; background: var(--ds-accent-subtle); border-right: 1px solid var(--ds-border); text-align: center;}
.login-identity-copy h1 {margin: 4px 0 12px; font-size: 44px; line-height: 1.15; letter-spacing: -.035em; font-weight: 750;}
.login-identity-copy p {margin: 0; color: #546c60; font-size: 18px; line-height: 1.65;}
.login-identity-copy .eyebrow {font-size: 11px;}
.login-card {width: 100%; padding: 64px 46px 46px; border: 0; border-radius: 0; box-shadow: none; display: block; align-self: center;}
.login-card h2 {margin: 12px 0 12px; font-size: clamp(26px, 2.5vw, 32px); line-height: 1.18; letter-spacing: -.035em;}
.login-card > p {margin: 0 0 30px; line-height: 1.65; font-size: 16px;}
.login-card > .login-help {margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--ds-border); font-size: 13px; line-height: 1.75;}
.password-control {position: relative;}
.password-control .input {padding-right: 52px;}
.password-toggle {position: absolute; right: 5px; top: 3px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--ds-text-muted);}
.password-toggle:hover,
.password-toggle[aria-pressed="true"] {color: var(--ds-accent); background: var(--ds-accent-soft);}
.login-footer {padding-top: 28px; font-size: 12px; color: var(--ds-text-muted); text-align: center;}
.login-panel {min-height: 0;}
.import-dropzone {background: var(--ds-accent-subtle); border-color: var(--ds-accent-border);}
.platform-header {position: sticky; top: 0; z-index: 40; display: flex; gap: clamp(14px, 2.3vw, 36px); align-items: center; min-height: var(--ds-topbar-height); padding: 10px max(24px, calc((100vw - 1432px) / 2)); background: #fff; border-bottom: 1px solid var(--ds-border);}
.platform-home {flex: 0 0 auto; text-decoration: none; border-radius: 10px;}
.brand-mark {font-size: 18px; gap: 11px; color: var(--ds-text);}
.brand-logo {display: block; width: 48px; height: 48px; padding: 3px; object-fit: contain; border: 1px solid var(--ds-border); border-radius: 12px; background: #fff;}
.brand-wordmark {display: grid; gap: 2px;}
.brand-wordmark strong {font-size: 17px; font-weight: 800; letter-spacing: .12em; line-height: 1.3;}
.brand-wordmark small {font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--ds-text-muted);}
.sidebar {position: static; display: block; height: auto; width: auto; padding: 0; background: transparent; color: var(--ds-text); z-index: auto; transform: none; box-shadow: none; flex: 1;}
.nav {display: flex; align-items: center; justify-content: center; gap: 4px;}
.nav-item {width: auto; min-height: 46px; text-decoration: none; padding: 11px 13px; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ds-text-muted); white-space: nowrap;}
.nav-item:hover {background: var(--ds-surface-subtle); color: var(--ds-accent);}
.nav-item.active {background: var(--ds-accent-soft); color: var(--ds-accent);}
.nav-icon {width: 19px; height: 19px;}
.mobile-brand,
.sidebar-footer,
.sidebar-backdrop,
.mobile-menu {display: none;}
.topbar {position: static; display: flex; flex: 0 1 auto; gap: 9px; height: auto; padding: 0; border: 0; background: transparent; backdrop-filter: none; z-index: auto; min-width: 0;}
.user-chip {border: 0; background: transparent; padding: 0; gap: 11px; min-width: 0; border-radius: 0;}
.avatar {width: 43px; height: 43px; flex: 0 0 auto; border-radius: 50%; background: var(--ds-accent-soft); color: var(--ds-accent-hover); font-size: 14px; font-weight: 700;}
.user-meta {min-width: 0; line-height: 1.35; max-width: 175px;}
.user-name {font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.user-role {font-size: 12px; margin-top: 2px;}
.platform-footer {display: flex; justify-content: space-between; gap: 18px; width: min(1384px, calc(100% - 56px)); margin: auto auto 0; padding: 22px 0; border-top: 1px solid var(--ds-border); color: var(--ds-text-muted); font-size: 12px;}
.platform-footer > span:first-child {font-weight: 700; color: var(--ds-text-secondary);}
.hero {align-items: center; gap: 24px; margin-bottom: 30px;}
.hero h1 {font-size: clamp(28px, 2.8vw, 36px); letter-spacing: -.035em; line-height: 1.2; margin-bottom: 10px;}
.hero p {font-size: 16px; line-height: 1.65;}
.hero > .btn {flex-shrink: 0;}
.card {border-radius: 18px; box-shadow: none;}
.card-head {padding: 24px 24px 0;}
.card-title {font-size: 18px; font-weight: 700;}
.card-body {padding: 22px 24px 24px;}
.metrics {gap: 16px; margin-bottom: 28px;}
.metric {padding: 22px 24px; border-radius: 16px; background: #e5f1e9; border-color: #d9e6db;}
.metric:nth-child(4n + 2) {background: #e5f3f1; border-color: #d3e7e1;}
.metric:nth-child(4n + 3) {background: #fbf0db; border-color: #eee2c5;}
.metric:nth-child(4n + 4) {background: #f8e9e0; border-color: #efded2;}
.metric:nth-child(4n + 5) {background: #edf0e2; border-color: #e2e6d2;}
.metric-label {font-size: 14px; font-weight: 500; color: var(--ds-text-secondary); margin-bottom: 12px;}
.metric-value {font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.045em;}
.progress-track {height: 8px; background: var(--ds-border);}
.progress-fill {background: var(--ds-accent);}
.badge {font-size: 12px; font-weight: 650; padding: 6px 10px; gap: 5px;}
.badge.gray {background: var(--ds-surface-muted); color: var(--ds-text-muted);}
.course-grid {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;}
.course-card {overflow: hidden; border-radius: 18px; padding: 0; display: flex; flex-direction: column; gap: 0; min-height: 340px; transition: box-shadow .18s, border-color .18s;}
.course-card:hover {transform: none; border-color: var(--ds-accent-border); box-shadow: var(--ds-shadow-md);}
.course-cover {padding: 22px 24px; background: var(--ds-accent-subtle); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 90px;}
.course-card:nth-child(3n + 2) .course-cover {background: #fcf0d9;}
.course-card:nth-child(3n + 3) .course-cover {background: #f8e6db;}
.course-cover > .ui-icon {width: 34px; height: 34px; color: var(--ds-accent);}
.course-cover .badge {background: rgba(255, 255, 255, .75); color: var(--ds-text-secondary);}
.course-card-body {padding: 24px 24px 16px; flex: 1;}
.course-card h3 {margin: 0 0 12px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere;}
.course-card p {font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;}
.course-card-footer {padding: 6px 24px 24px;}
.course-card-footer > .btn {width: 100%; margin-top: 20px; justify-content: space-between;}
.course-meta {gap: 16px; font-size: 13px; margin-top: 16px;}
.course-search {display: flex; align-items: center; gap: 12px; margin: 0 0 24px;}
.course-search .input {width: min(460px, 100%);}
.course-search > span {margin-left: auto; white-space: nowrap; font-size: 14px; color: var(--ds-text-muted);}
.course-grid > .empty {grid-column: 1 / -1; background: #fff; border: 1px dashed var(--ds-border-strong); border-radius: 18px;}
.empty {padding: 48px 24px; font-size: 15px; line-height: 1.7;}
.empty strong {font-size: 21px; font-weight: 650; margin-bottom: 10px;}
table {font-size: 15px;}
th {background: var(--ds-surface-subtle); color: var(--ds-text-muted); font-size: 12px; font-weight: 650; padding: 15px 18px;}
td {padding: 18px; font-size: 15px; line-height: 1.5;}
tbody tr:hover {background: var(--ds-surface-subtle);}
.toolbar .input {background: #fff;}
.action-menu-popover {border-radius: 12px; border-color: var(--ds-border); padding: 6px;}
.action-menu-popover button {font-size: 14px; min-height: 42px;}
.action-menu-popover button:hover {background: var(--ds-accent-soft);}
.modal-backdrop {background: rgba(29, 53, 41, .35); backdrop-filter: blur(3px);}
.modal {border-radius: 22px; box-shadow: 0 28px 70px rgba(27, 54, 35, .18);}
.modal-head {padding: 22px 26px;}
.modal-body {padding: 26px;}
.modal-head h2,
.modal-head h3 {font-size: 22px;}
.import-drop {background: var(--ds-accent-subtle); border-color: var(--ds-accent-border);}
.import-drop-icon {background: var(--ds-accent); border-radius: 13px;}
.import-preview-head .eyebrow {font-size: 12px;}
.import-meta-grid span,
.import-stat-grid span {font-size: 12px;}
.import-meta-grid strong,
.import-status,
.import-warning-list,
.import-warning,
.confirm-check {font-size: 14px;}
.credential-card {background: #f5f8f0; border-color: #d8e4cb;}
.credential-row code {background: #eaf1e3; color: #3b5735; border-color: #d1dfc5; font-size: 15px;}
.access-item:hover {background: #f2f7ee;}
.access-item {font-size: 15px; padding: 14px;}
.access-item small {font-size: 13px;}
.toast {border-radius: 13px; font-size: 15px;}
.load-error {background: #fff; border-color: var(--ds-border);}
@media (max-width: 1250px) {
.platform-header {gap: 18px; padding-inline: 24px;}
.platform-header .user-meta {display: none;}
.nav-item {padding-inline: 12px;}
}
@media (max-width: 1000px) {
.brand-wordmark small {display: none;}
.brand-logo {width: 43px; height: 43px;}
.platform-header {gap: 12px; padding-inline: 18px;}
.nav-item {font-size: 14px; padding-inline: 10px;}
.nav-item .nav-icon {display: none;}
.course-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
.metrics {grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 760px) {
.platform-header {min-height: 76px; padding: 12px 18px; gap: 12px;}
.platform-home {margin-right: auto;}
.brand-wordmark strong {font-size: 16px;}
.brand-wordmark small {display: block; font-size: 10px;}
.topbar {gap: 7px;}
.topbar .user-chip {display: none;}
.mobile-menu {display: inline-flex;}
.sidebar {position: fixed; inset: 0 auto 0 0; width: min(86vw, 330px); height: 100svh; display: flex; flex-direction: column; padding: 24px 18px; background: #fff; z-index: 61; transform: translateX(-110%); transition: transform .18s; box-shadow: 12px 0 44px rgba(33, 66, 39, .12);}
.sidebar.open {transform: translateX(0);}
.mobile-brand {display: block; padding: 4px 8px 30px;}
.sidebar .brand-mark {padding: 0;}
.sidebar .brand-logo {width: 44px; height: 44px;}
.nav {display: grid; gap: 8px;}
.nav-item {font-size: 16px; min-height: 52px; padding: 14px; width: 100%;}
.nav-item .nav-icon {display: block; width: 21px; height: 21px;}
.sidebar-footer {display: block; margin-top: auto; border-top: 1px solid var(--ds-border); color: var(--ds-text-muted); padding: 20px 8px 0;}
.sidebar-backdrop {display: block; position: fixed; inset: 0; z-index: 60; background: rgba(29, 53, 41, .35); opacity: 0; pointer-events: none;}
.sidebar-backdrop.open {opacity: 1; pointer-events: auto;}
.hero {align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 25px;}
.hero h1 {font-size: 29px;}
.hero > .btn {width: 100%;}
.hero p {font-size: 15px;}
.metrics,
.metrics.metrics-4 {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;}
.metric {padding: 19px 17px;}
.metric-value {font-size: 30px;}
.metric-label {font-size: 13px;}
.course-grid {gap: 16px;}
.course-card-body,
.course-cover {padding: 21px;}
.course-card-footer {padding: 4px 21px 21px;}
.course-search {flex-wrap: wrap;}
.course-search .input {width: 100%;}
.course-search > span {margin-left: 0;}
.card-head {padding: 21px 20px 0;}
.card-body {padding: 20px;}
.platform-footer {width: calc(100% - 36px); font-size: 11px;}
.login-page {padding: 24px 16px; justify-content: flex-start;}
.login-panel {grid-template-columns: 1fr; max-width: 500px; border-radius: 22px;}
.login-identity {flex-direction: row; gap: 22px; padding: 24px; border-right: 0; border-bottom: 1px solid var(--ds-border); text-align: left;}
.login-identity-copy h1 {font-size: 32px; margin: 5px 0;}
.login-identity-copy p {font-size: 14px;}
.login-identity-copy .eyebrow {font-size: 10px; letter-spacing: .08em;}
.login-card {padding: 30px 28px;}
.login-card h2 {font-size: 29px;}
.login-card > p {margin-bottom: 24px;}
.modal-backdrop {padding: 14px;}
.modal-head,
.modal-body {padding: 21px;}
}
@media (min-width: 761px) and (max-width: 860px) {
.sidebar {transform: none; display: block; width: auto; height: auto; box-shadow: none;}
.sidebar-backdrop,
.mobile-menu {display: none;}
.brand-wordmark small {display: none;}
.platform-header .user-chip {display: none;}
}
@media (max-width: 560px) {
.course-grid {grid-template-columns: minmax(0, 1fr);}
.course-card {min-height: 0;}
.course-cover {min-height: 80px;}
.platform-footer {flex-direction: column; gap: 4px;}
}
@media (max-width: 380px) {
.brand-wordmark small {display: none;}
.login-identity {gap: 16px; padding: 22px 18px;}
.login-card {padding: 28px 22px;}
.metrics,
.metrics.metrics-4 {grid-template-columns: minmax(0, 1fr);}
.hero h1 {font-size: 27px;}
}
@media (prefers-reduced-motion: reduce) {
html {scroll-behavior: auto;}
}
.btn > .ui-icon,
.btn-icon > .ui-icon,
.nav-item > .ui-icon {align-self: center;}
.action-menu-popover button,
.action-menu-popover .action-menu-link {display: flex; align-items: center; gap: 10px;}
.action-menu-popover .ui-icon {width: 17px; height: 17px;}
.input,
.select,
.textarea {width: 100%;
  border: 1px solid #dbe1ea;
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ds-text);
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;}
.textarea {min-height: 130px; resize: vertical;}
.input:focus,
.select:focus,
.textarea:focus {border-color: #9fb4ff; box-shadow: 0 0 0 4px rgba(56,103,242,.10);}
.btn {border: 0; border-radius: 11px; padding: 10px 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, background .15s ease, opacity .15s ease;}
.btn:hover {transform: translateY(-1px);}
.btn:disabled {opacity: .55; cursor: not-allowed; transform: none;}
.btn-primary {background: var(--ds-accent); color: white;}
.btn-primary:hover {background: var(--ds-accent-hover);}
.btn-secondary {background: #eef2f7; color: #2f3a50;}
.btn-danger {background: var(--ds-danger-soft); color: var(--ds-danger);}
.btn-success {background: var(--ds-success-soft); color: var(--ds-success);}
.btn-block {width: 100%; padding: 13px 16px;}
.btn-icon {width: 38px; height: 38px; padding: 0; border-radius: 11px; background: var(--ds-surface-subtle); color: var(--ds-text); border: 1px solid var(--ds-border);}
.btn-small {padding: 7px 10px; font-size: 12px;}
@media (max-width: 520px) {
.btn {min-height: 42px;}
}
@media (max-width: 760px) {
.btn-icon {min-width: 44px; width: 44px; height: 44px;}
}
@media (max-width: 720px) {
.assessment-submit-actions .btn {width: 100%;}
}
@media (max-width: 820px) {
.analytics-export-actions .btn {flex:1 1 180px;}
}
@media (max-width: 760px) {
.teacher-enrollment-row .btn {width: 100%;}
}
@media (max-width: 680px) {
.teacher-profile-actions .btn,
.teacher-assignment-card .btn {width: 100%;}
}
.btn {min-height: 46px; padding: 11px 19px; border-radius: 12px; font-size: 15px; font-weight: 650; line-height: 1.4; text-decoration: none;}
.btn:hover {transform: none;}
.btn-primary {background: var(--ds-accent); color: #fff; box-shadow: 0 3px 0 rgba(25, 86, 82, .10);}
.btn-primary:hover {background: var(--ds-accent-hover);}
.btn-secondary {background: var(--ds-surface-muted); color: var(--ds-accent-hover); border: 1px solid var(--ds-border);}
.btn-secondary:hover {background: var(--ds-surface-muted);}
.btn-danger:hover {background: #fbe0da;}
.btn-success {background: #e4f1e7; color: #2c7255;}
.btn-small {min-height: 40px; padding: 8px 13px; font-size: 14px;}
.btn-block {min-height: 54px; gap: 20px;}
.btn-icon {display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--ds-surface-subtle); color: var(--ds-accent);}
.btn-icon:hover {background: var(--ds-accent-soft);}
.input,
.select,
.textarea {min-height: 48px; border-color: #d7dfd4; border-radius: 12px; padding: 12px 15px; font-size: 16px;}
.input::placeholder,
.textarea::placeholder {color: var(--ds-text-muted); opacity: 1;}
.input:focus,
.select:focus,
.textarea:focus {border-color: var(--ds-accent); box-shadow: 0 0 0 3px #e0f0e9;}
.input::placeholder,
.textarea::placeholder {color: var(--ds-text-muted); opacity: 1;}
body {color: var(--ds-text);
  background: var(--ds-bg);}
:focus-visible {outline: 3px solid var(--ds-focus);
  outline-offset: 3px;}
.btn {min-height: var(--ds-control);
  border-radius: var(--ds-radius-md);
  font-weight: 650;
  box-shadow: none;}
.btn-primary {color: #fff;
  background: var(--ds-accent);
  border-color: var(--ds-accent);}
.btn-primary:hover {background: var(--ds-accent-hover); border-color: var(--ds-accent-hover);}
.btn-secondary {color: var(--ds-text);
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);}
.btn-secondary:hover {background: var(--ds-surface-muted); border-color: var(--ds-border-strong);}
.btn-ghost {color: var(--ds-accent);
  background: transparent;
  border: 1px solid transparent;}
.btn-ghost:hover {background: var(--ds-accent-soft);}
.btn-danger {color: #fff;
  background: var(--ds-danger);
  border-color: var(--ds-danger);}
.btn-danger:hover {color: #fff; background: var(--ds-danger-hover); border-color: var(--ds-danger-hover);}
.btn-small {min-height: var(--ds-control-sm); padding: 7px 12px;}
.btn-icon {width: 42px;
  height: 42px;
  color: var(--ds-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);}
.btn-icon:hover {color: var(--ds-accent); background: var(--ds-accent-soft);}
.btn-icon .ui-icon {width: 20px; height: 20px;}
.input,
.select,
.textarea {color: var(--ds-text);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);}
.input:hover,
.select:hover,
.textarea:hover {border-color: var(--ds-border-strong);}
.input:focus,
.select:focus,
.textarea:focus {border-color: var(--ds-accent);
  box-shadow: 0 0 0 3px rgba(14, 152, 136, .15);}
.input:disabled,
.select:disabled,
.textarea:disabled {color: var(--ds-text-muted);
  background: var(--ds-surface-muted);
  border-color: var(--ds-border);
  cursor: not-allowed;}
.input::placeholder,
.textarea::placeholder {color: var(--ds-text-muted); opacity: 1;}
.field-error {display: block;
  margin-top: 7px;
  color: var(--ds-danger);
  font-size: 13px;
  line-height: 1.45;}
.input[aria-invalid="true"] {border-color: var(--ds-danger); box-shadow: 0 0 0 3px rgba(159, 47, 53, .10);}
.page-header {display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ds-space-6);
  margin: 0 0 var(--ds-space-6);
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--ds-border);}
.page-header-copy {min-width: 0;}
.page-header h1 {margin: 0 0 6px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.035em;}
.page-header p {margin: 0; color: var(--ds-text-secondary); line-height: 1.6;}
.page-header-actions {display: flex; gap: 10px; flex: 0 0 auto;}
.card {background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: none;}
.card-head {border-color: var(--ds-border);}
.card-title {color: var(--ds-text);}
.metric,
.metric:nth-child(n) {background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-sm);}
.metric-label {color: var(--ds-text-secondary);}
.metric-value {color: var(--ds-text);}
.metric[data-tone="attention"] {background: var(--ds-warning-soft); border-color: #ead89f;}
.metric[data-tone="success"] {background: var(--ds-success-soft); border-color: #c9e5d4;}
.course-card {border-color: var(--ds-border); background: var(--ds-surface);}
.course-card:hover {border-color: #83cdc1; box-shadow: var(--ds-shadow-md);}
.course-cover,
.course-card:nth-child(n) .course-cover {background: linear-gradient(135deg, #edf7f3 0%, #f5f8f6 100%);
  border-bottom: 1px solid var(--ds-border);}
.course-cover > .ui-icon {color: var(--ds-accent);}
.course-cover .badge {background: rgba(255,255,255,.92); color: var(--ds-text-secondary); border: 1px solid var(--ds-border);}
.course-meta {color: var(--ds-text-secondary);}
.course-meta-compact {display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--ds-text-secondary); font-size: 14px;}
.badge {border: 1px solid transparent;}
.badge.gray {color: var(--ds-text-secondary); background: var(--ds-surface-muted); border-color: var(--ds-border);}
.badge.success {color: var(--ds-success); background: var(--ds-success-soft); border-color: #c9e5d4;}
.badge.warning {color: var(--ds-warning); background: var(--ds-warning-soft); border-color: #ead89f;}
.badge.danger {color: var(--ds-danger); background: var(--ds-danger-soft); border-color: #ecc9c9;}
.toolbar,
.course-search {display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;}
.toolbar-meta {color: var(--ds-text-secondary); font-size: 14px; white-space: nowrap;}
.search-shell {position: relative; width: min(480px, 100%);}
.search-shell > .ui-icon {position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: var(--ds-text-muted); transform: translateY(-50%); pointer-events: none;}
.search-shell .input {width: 100%; padding-left: 42px;}
.table-wrap {border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); overflow: auto; background: var(--ds-surface);}
table {width: 100%;}
tbody tr:hover {background: #fbfdfc;}
.row-actions {display: flex; align-items: center; justify-content: flex-end; gap: 8px;}
.action-menu-trigger {min-width: 40px; padding: 7px 9px;}
.action-menu-trigger .ui-icon {width: 18px; height: 18px;}
.action-menu-popover {border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); box-shadow: var(--ds-shadow-md); background: var(--ds-surface);}
.action-menu-popover button,
.action-menu-popover .action-menu-link {display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ds-text);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;}
.action-menu-popover button:hover,
.action-menu-popover .action-menu-link:hover {background: var(--ds-surface-subtle);}
.action-menu-popover button.danger {color: var(--ds-danger);}
.modal-backdrop {background: rgba(26, 33, 30, .42); backdrop-filter: blur(4px);}
.modal {overflow: hidden; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-xl); box-shadow: var(--ds-shadow-lg);}
.modal-head {padding: 22px 24px; border-bottom: 1px solid var(--ds-border);}
.modal-body {padding: 24px;}
.modal-footer,
.modal-actions {display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  margin: 0;
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);}
.modal-body > .modal-actions:last-child {margin: 24px -24px -24px;}
.modal-confirm {width: min(500px, 100%);}
.modal-confirm-copy {margin: 0; color: var(--ds-text-secondary); line-height: 1.65;}
.access-item {border-color: var(--ds-border); background: var(--ds-surface);}
.access-item:hover {background: var(--ds-surface-subtle);}
.access-item.disabled {opacity: 1;
  color: var(--ds-text-muted);
  background: var(--ds-surface-muted);
  border-color: var(--ds-border);
  cursor: not-allowed;}
.access-item.disabled strong,
.access-item.disabled small {color: var(--ds-text-muted);}
.empty {display: grid;
  justify-items: center;
  gap: 8px;
  padding: 46px 24px;
  color: var(--ds-text-secondary);
  text-align: center;
  background: var(--ds-surface);
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);}
.empty strong {color: var(--ds-text);}
.empty-icon {display: grid; place-items: center; width: 48px; height: 48px; color: var(--ds-accent); background: var(--ds-accent-soft); border-radius: 14px;}
.empty-icon .ui-icon {width: 24px; height: 24px;}
.toast {color: var(--ds-text); background: var(--ds-surface); border-color: var(--ds-border); box-shadow: var(--ds-shadow-md);}
.toast.success {border-left-color: var(--ds-success);}
.toast.error {border-left-color: var(--ds-danger);}
@media (max-width: 860px) {
.page-header {align-items: flex-start; flex-direction: column;}
.page-header-actions {width: 100%;}
.page-header-actions .btn {width: 100%;}
}
@media (max-width: 640px) {
.toolbar,
.course-search {align-items: stretch; flex-direction: column;}
.search-shell {width: 100%;}
.toolbar-meta {white-space: normal;}
.modal-footer,
.modal-actions {flex-direction: column-reverse;}
.modal-footer .btn,
.modal-actions .btn {width: 100%;}
.row-actions {justify-content: flex-start;}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important;}
}
.modal {display: flex;
  flex-direction: column;
  max-height: min(88vh, 920px);
  max-height: min(88dvh, 920px);}
.modal-head {flex: 0 0 auto;}
.modal-body {min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;}
.modal-body > .modal-actions:last-child {position: sticky;
  bottom: -24px;
  z-index: 2;
  box-shadow: 0 -10px 24px rgba(26, 33, 30, .06);}
@media (max-width: 680px) {
.modal {max-height: 94dvh;}
}
.input-compact {min-height: 40px;}
.course-cover,
.course-card:nth-child(n) .course-cover {position: relative;
  min-height: 150px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e6f5ef 0%, #f4faf7 100%);}
.course-cover-image {display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;}
.course-cover-placeholder {display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  background:
    radial-gradient(circle at 78% 26%, rgba(242, 196, 84, .22), transparent 20%),
    radial-gradient(circle at 20% 75%, rgba(34, 148, 125, .16), transparent 28%),
    linear-gradient(135deg, #e7f5f0 0%, #f6faf7 100%);}
.course-cover-placeholder .ui-icon {width: 54px;
  height: 54px;
  color: var(--ds-accent);
  opacity: .86;}
.course-cover-badges {position: absolute;
  inset: 16px 16px auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;}
.course-cover-badges .badge {background: rgba(255, 255, 255, .94) !important;
  color: #205d50 !important;
  border: 1px solid rgba(89, 139, 125, .28) !important;
  box-shadow: 0 5px 18px rgba(22, 72, 61, .08);
  backdrop-filter: blur(8px);}
.course-cover-badges .badge.success {color: var(--ds-success) !important;}
.course-cover-badges .badge.gray {color: var(--ds-text-secondary) !important;}
.course-card-body {padding-top: 20px;}
.course-meta-modal {width: min(1040px, calc(100vw - 32px));}
.course-meta-editor-grid {display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 28px;
  align-items: start;}
.course-meta-two-columns {display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;}
.course-meta-textarea {min-height: 110px;
  resize: vertical;
  line-height: 1.55;}
.course-meta-tech {display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--ds-border);}
.course-meta-tech > div {display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: var(--ds-surface-muted);}
.course-meta-tech span {color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;}
.course-meta-tech strong {overflow: hidden;
  color: var(--ds-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;}
.course-cover-editor {display: grid;
  gap: 12px;
  position: sticky;
  top: 0;}
.field-label {color: var(--ds-text);
  font-size: 14px;
  font-weight: 700;}
.course-cover-preview {position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #e7f5f0, #f8fbf9);}
.course-cover-preview > img {display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;}
.course-cover-preview-empty {display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: var(--ds-text-muted);
  text-align: center;
  font-size: 13px;}
.course-cover-preview-empty .ui-icon {width: 42px;
  height: 42px;
  color: var(--ds-accent);}
.course-cover-preview-badge {position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;}
@media (max-width: 860px) {
.course-meta-editor-grid {grid-template-columns: 1fr;}
.course-cover-editor {position: static;}
}
@media (max-width: 560px) {
.course-meta-two-columns,
.course-meta-tech {grid-template-columns: 1fr;}
.course-cover-image,
.course-cover-placeholder {height: 132px;}
.course-cover,
.course-card:nth-child(n) .course-cover {min-height: 132px;}
}
.btn-icon {display: inline-flex; align-items: center; justify-content: center;}
.action-menu-popover button,
.action-menu-popover .action-menu-link {display: flex; align-items: center; gap: 10px;}
.security-card-icon .ui-icon {width: 19px; height: 19px;}
.password-rules {display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: -4px 0 20px;
  padding: 0;
  list-style: none;}
.password-rule {display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-text-muted);
  font-size: 13px;
  line-height: 1.4;}
.password-rule .ui-icon {width: 15px; height: 15px; flex: 0 0 auto;}
.password-rule.passed {color: var(--ds-success);}
.security-warning .ui-icon {width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--ds-warning);}
@media (max-width: 560px) {
.password-rules {grid-template-columns: 1fr;}
.security-actions .btn {width: 100%;}
}
.password-generator-actions {display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px;}
.author-portrait-badge .ui-icon {width: 21px; height: 21px;}
.author-social-link .ui-icon {width: 16px; height: 16px;}
.author-profile-hero .btn-secondary {color: #123b35; background: rgba(255,255,255,.93); border-color: transparent;}
.author-profile-hero .btn-secondary:hover {background: #fff;}
.course-card-author {width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: -1px;
  color: var(--ds-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;}
.course-card-author:hover {text-decoration: underline; text-underline-offset: 3px;}
.course-card-author.is-static {color: var(--ds-text-secondary);}
.course-card-author.is-static:hover {text-decoration: none;}
.course-card-author .ui-icon {width: 15px; height: 15px; flex: 0 0 auto;}
.course-card-author span {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.course-author-chip-arrow .ui-icon {width: 18px; height: 18px;}
.author-admin-intro .ui-icon {flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--ds-accent);}
.btn-icon.danger {color: var(--ds-danger); border-color: #efcccc; background: var(--ds-danger-soft);}
.btn-icon.danger:hover {color: #fff; background: var(--ds-danger); border-color: var(--ds-danger);}
.author-editor-photo-column > .btn {width: 100%;}
.author-id-input .input {border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;}
.field-row-between {display: flex; align-items: center; justify-content: space-between; gap: 10px;}
.course-meta-author-field {padding: 13px; background: var(--ds-surface-subtle); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md);}
@media (max-width: 440px) {
.author-profile-hero .btn-secondary {width: 100%;}
}
.course-admin-date-filter .input {min-width: 146px;}
.course-list-group > .card {margin: 0; border: 0; border-top: 1px solid var(--ds-border); border-radius: 0; box-shadow: none;}
.course-picker-toolbar .search-shell {flex: 1 1 auto;}
.course-picker-group .access-item {border: 0; border-radius: 10px;}
@media (max-width: 760px) {
.course-admin-date-filter .input {width: 100%;}
}
.table-wrap {overflow-x: auto;}
.confirm-check {display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font-size: 12px; line-height: 1.45; font-weight: 650; cursor: pointer;}
.confirm-check input {margin-top: 2px;}
img,
video,
svg {max-width: 100%;}
@media (max-width: 760px) {
.table-wrap {-webkit-overflow-scrolling: touch;}
}
del {color: #64748b;}
.badge .ui-icon {width: 14px; height: 14px;}
button,
.btn,
.nav-item {touch-action: manipulation;}
.site-logo {width: 210px; height: auto; mix-blend-mode: multiply;}
@media (max-width: 760px) {
.site-logo {width: 95px;}
}
@media (max-width: 380px) {
.site-logo {width: 76px;}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {animation-duration: .01ms !important; transition-duration: .01ms !important;}
}
.input::placeholder,
.textarea::placeholder,
.badge.gray,
del {color: var(--ds-text-muted);}
body {color: var(--ds-text);}
.muted,
.small.muted {color: var(--ds-text-muted);}
