/* Word reference alignment pass (2026-10-09).
   The source screenshots use a compact admin shell: narrow tree navigation,
   light tabs, single-row filters, and dense white list rows. This layer sits
   after the product theme so it can reduce the presentation-card treatment
   without changing routes, permissions, or data contracts. */
:root {
  --word-blue: #2f8eea;
  --word-blue-deep: #1675ce;
  --word-blue-soft: #eaf5ff;
  --word-line: #e9edf3;
  --word-ink: #2b3440;
  --word-muted: #7a8797;
  --word-canvas: #f7f8fa;
}

body { background: var(--word-canvas) !important; color: var(--word-ink) !important; }
.sidebar {
  width: 166px !important; min-width: 166px !important; padding: 13px 8px 11px !important;
  border-right: 1px solid #e5e9ef !important; box-shadow: 2px 0 8px rgba(28,57,91,.04) !important;
}
.auth-brand, .sidebar .auth-brand { gap: 7px !important; padding: 0 6px 14px !important; }
.sidebar .brand-logo-frame { width: 32px !important; height: 32px !important; border-radius: 6px !important; }
.sidebar .brand-logo { width: 27px !important; height: 27px !important; }
#sidebar-brand-name { font-size: 14px !important; }
#sidebar-brand-subtitle { font-size: 9px !important; margin-top: 2px !important; }
.module-nav { gap: 1px !important; padding: 2px 0 !important; }
.module-link {
  min-height: 31px !important; padding: 0 7px !important; border-radius: 3px !important;
  font-size: 11px !important; font-weight: 600 !important;
}
.module-link .module-index { width: 16px !important; font-size: 9px !important; }
.module-link.is-active { border-left: 3px solid var(--word-blue) !important; border-radius: 0 3px 3px 0 !important; }
.sidebar-user-chip { margin: auto 0 8px !important; padding: 7px !important; border-radius: 5px !important; font-size: 10px !important; }
.sidebar-note { font-size: 8px !important; }
.main-content { padding: 10px 14px 30px !important; background: var(--word-canvas) !important; }
.topbar { min-height: 24px !important; margin: 0 0 7px !important; }
.topbar h1 { font-size: 20px !important; font-weight: 650 !important; letter-spacing: 0 !important; }
footer { margin-top: 18px !important; }

/* The source pages use flat tabs rather than a second hero block. */
.workspace-section-nav {
  min-height: 33px !important; gap: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important;
  margin: 0 0 10px !important; padding: 0 !important; border-bottom: 1px solid #dce4ed !important;
}
.workspace-section-nav button {
  min-height: 33px !important; padding: 7px 13px !important; border-radius: 0 !important;
  color: #536273 !important; background: transparent !important; font-size: 11px !important; font-weight: 600 !important;
  white-space: nowrap !important; box-shadow: none !important;
}
.workspace-section-nav button:hover { color: var(--word-blue-deep) !important; background: #f2f8ff !important; }
.workspace-section-nav button.is-active {
  color: var(--word-blue-deep) !important; background: #fff !important; box-shadow: inset 0 -2px 0 var(--word-blue) !important;
}
.workspace-section-nav button small { display: none !important; }

/* Keep the source work area flat and compact. */
.panel, .pc-panel, .oc-panel, .ec-panel, .lc-panel, .p1-surface-panel {
  border: 1px solid var(--word-line) !important; border-radius: 3px !important; box-shadow: 0 2px 7px rgba(35,61,91,.035) !important;
}
.panel { padding: 10px !important; }
.panel-heading { min-height: 27px !important; gap: 8px !important; margin-bottom: 8px !important; }
.panel-heading h2, .pc-panel h2, .oc-panel h2, .ec-panel h2 { font-size: 15px !important; font-weight: 650 !important; }
.panel-meta, .form-hint, .panel-subtitle { font-size: 10px !important; }
.eyebrow { font-size: 8px !important; letter-spacing: .06em !important; }
.primary-action, .tiny-action.primary-tiny {
  min-height: 29px !important; padding: 6px 11px !important; border-radius: 3px !important;
  background: var(--word-blue) !important; border-color: var(--word-blue) !important; box-shadow: none !important; font-size: 11px !important;
}
.secondary-action, .tiny-action { min-height: 28px !important; padding: 5px 10px !important; border-radius: 3px !important; font-size: 11px !important; }
input, select, textarea { min-height: 29px !important; border-radius: 3px !important; font-size: 11px !important; }
.learning-filter-toolbar, .people-filter-toolbar, .report-toolbar, .dashboard-toolbar, .governance-toolbar {
  margin: 0 0 8px !important; padding: 7px 9px !important; border: 1px solid #e2e8f0 !important; border-radius: 2px !important; background: #fff !important;
}
.learning-filter-toolbar label, .people-filter-toolbar label, .report-toolbar label, .dashboard-toolbar label, .governance-toolbar label { font-size: 10px !important; }
.learning-filter-toolbar input, .learning-filter-toolbar select, .people-filter-toolbar input, .people-filter-toolbar select { min-width: 150px !important; }

/* The implementation overview is useful on the overview tab, but it is not
   part of the source screenshot's list pages. */
body[data-workspace-section]:not([data-workspace-section="overview"]) #p1-home-surface,
body[data-workspace-section]:not([data-workspace-section="overview"]) #p1-learning-surface,
body[data-workspace-section]:not([data-workspace-section="overview"]) #p1-exam-surface,
body[data-workspace-section]:not([data-workspace-section="overview"]) #p1-people-surface,
body[data-workspace-section]:not([data-workspace-section="overview"]) #p1-operations-surface,
body[data-workspace-section]:not([data-workspace-section="overview"]) #p1-points-surface,
body[data-workspace-section]:not([data-workspace-section="overview"]) #p1-analytics-surface { display: none !important; }

/* Learning pages: category tree + table on materials; one dense list on the
   other tabs, matching image25/image27 in the Word reference. */
.learning-grid { gap: 10px !important; }
.learning-grid > .panel { min-width: 0 !important; background: #fff !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-grid { grid-template-columns: 214px minmax(0, 1fr) !important; align-items: start !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-category-panel { grid-column: 1 !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-material-panel { grid-column: 2 !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .material-capacity { display: none !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="courses"] .learning-grid,
body[data-workspace-module="LEARNING"][data-workspace-section="training"] .learning-grid,
body[data-workspace-module="LEARNING"][data-workspace-section="paths"] .learning-grid { grid-template-columns: minmax(0, 1fr) !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="courses"] .learning-category-panel { display: none !important; }
.learning-category-panel { padding: 8px !important; }
.learning-category-panel .panel-heading { border-bottom: 1px solid var(--word-line) !important; padding-bottom: 7px !important; }
.learning-chip-list { display: grid !important; gap: 0 !important; }
.learning-chip-list > * { min-height: 29px !important; padding: 6px 8px !important; border: 0 !important; border-bottom: 1px solid #f0f2f5 !important; border-radius: 0 !important; background: #fff !important; font-size: 11px !important; }
.learning-material-panel, .learning-course-panel, .learning-training-panel, .learning-map-panel { padding: 8px !important; }
.learning-card-list { gap: 0 !important; }
.learning-card { min-height: 54px !important; gap: 8px !important; padding: 8px 9px !important; border-width: 0 0 1px !important; border-radius: 0 !important; background: #fff !important; }
.learning-card-main strong { font-size: 11px !important; }
.learning-card-main span { font-size: 9px !important; }
.learning-card-side { min-width: 48px !important; }
.learning-card-side b { font-size: 11px !important; }
.learning-card-side em { font-size: 9px !important; }
.learning-card-actions { gap: 4px !important; margin-top: 3px !important; padding-top: 0 !important; }
.learning-card-actions .tiny-action { min-height: 24px !important; padding: 3px 7px !important; font-size: 9px !important; }
.learning-course-panel .learning-card-main span[data-course-credits], .learning-course-panel .learning-card-main span[data-course-earned-credits], .learning-course-panel .learning-card-main span[data-course-credit-decision] { display: none !important; }

/* Examination, people, and operations lists use the same low-height row
   language as the original administration screenshots. */
.phase1-admin-row, .person-row, .lecturer-card, .operations-news-card, .operations-survey-card, .operations-certificate-card {
  min-height: 48px !important; padding: 8px 10px !important; border-width: 0 0 1px !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important;
}
.phase1-admin-row strong, .person-row strong, .lecturer-card strong { font-size: 11px !important; }
.phase1-admin-row span, .person-row span, .lecturer-card span { font-size: 9px !important; }
.exam-list, .people-grid, .operations-grid, .points-grid { gap: 10px !important; }
.exam-admin-panel, .people-list-panel, .department-panel, .lecturer-panel, .operations-survey-panel, .points-rules-panel, .points-ledger-panel { padding: 8px !important; }
.person-avatar { width: 27px !important; height: 27px !important; }
.person-actions button, .person-row button, .lecturer-card button { min-height: 24px !important; padding: 3px 7px !important; font-size: 9px !important; }

/* Home: compact primary area with a narrow information rail. */
#source-admin-dashboard .source-admin-grid { grid-template-columns: minmax(0, 1fr) 218px !important; gap: 10px !important; }
.source-shortcuts, .source-activity { padding: 10px !important; }
.source-shortcut-list { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 5px !important; }
.source-shortcut-list button { min-height: 53px !important; padding: 8px !important; border-radius: 2px !important; background: #f3f9ff !important; border-color: #e0edf8 !important; }
.source-shortcut-list strong { font-size: 10px !important; }
.source-shortcut-list span { font-size: 9px !important; }
.source-activity-list { gap: 8px !important; }
.source-activity-row strong { font-size: 10px !important; }
.source-activity-row small { font-size: 9px !important; }
#p1-home-surface { margin-top: 0 !important; }

@media (max-width: 980px) {
  .sidebar { width: 166px !important; min-width: 166px !important; }
  body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-grid { grid-template-columns: 1fr !important; }
  body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-category-panel,
  body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-material-panel { grid-column: 1 !important; }
  #source-admin-dashboard .source-admin-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .sidebar { width: 100% !important; min-width: 0 !important; padding: 8px !important; }
  .main-content { padding: 9px 10px 70px !important; }
  .source-shortcut-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Keep the implementation-only completion editor out of source-style list pages.
   The Word screens begin with the list toolbar and rows; completion editors remain
   available from their dedicated actions/pages. */
body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-material-panel .learning-completion,
body[data-workspace-module="LEARNING"][data-workspace-section="courses"] .learning-course-panel .learning-completion {
  display: none !important;
}
body[data-workspace-module="LEARNING"][data-workspace-section="materials"] .learning-material-panel .panel-heading,
body[data-workspace-module="LEARNING"][data-workspace-section="courses"] .learning-course-panel .panel-heading {
  margin-bottom: 6px !important;
}
body[data-workspace-module="LEARNING"][data-workspace-section="courses"] .learning-card-actions {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
}
body[data-workspace-module="LEARNING"][data-workspace-section="courses"] .learning-card-actions .tiny-action {
  flex: 0 0 auto !important;
}

/* Category rows keep the name readable inside the compact left tree. */
.learning-category-summary { align-items: center !important; }
.learning-category-name { flex: 1 1 100% !important; display: grid !important; grid-template-columns: 30px minmax(0, 1fr) !important; gap: 5px !important; align-items: center !important; min-width: 0 !important; }
.learning-category-name span, .learning-category-name strong { writing-mode: horizontal-tb !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; overflow-wrap: normal !important; min-width: 0 !important; }
.learning-category-name strong { font-size: 11px !important; }
.learning-category-name span { font-size: 10px !important; }
.learning-category-summary > .learning-category-status { margin-left: 0 !important; }
.learning-category-summary > .tiny-action { min-height: 24px !important; padding: 3px 6px !important; font-size: 9px !important; }

/* Home overview follows the source dashboard composition: four KPI cards, a
   compact shortcut block, and a single activity rail. Detailed implementation
   explanations and learner-only task panels stay on their own sections. */
body[data-workspace-module="HOME"][data-workspace-section="overview"] #source-kpi-grid .source-kpi-card:nth-child(n+5),
body[data-workspace-module="HOME"][data-workspace-section="overview"] #p1-home-surface,
body[data-workspace-module="HOME"][data-workspace-section="overview"] #home-training-tasks-desktop { display: none !important; }
.source-shortcut-list button { position: relative !important; grid-template-columns: 22px minmax(0, 1fr) !important; grid-template-rows: auto auto !important; column-gap: 6px !important; align-items: center !important; }
.source-shortcut-list button::before { grid-row: 1 / -1; display: grid; place-items: center; width: 20px; height: 20px; color: #2f86d7; font-size: 16px; font-weight: 700; }
.source-shortcut-list button:nth-child(1)::before { content: "⌁"; }
.source-shortcut-list button:nth-child(2)::before { content: "＋"; }
.source-shortcut-list button:nth-child(3)::before { content: "⌕"; }
.source-shortcut-list button:nth-child(4)::before { content: "◇"; }
.source-shortcut-list button strong, .source-shortcut-list button span { grid-column: 2; }
body[data-workspace-module="HOME"][data-workspace-section="overview"]:has(#source-admin-dashboard:not(.is-hidden)) #learning-hub,
body[data-workspace-module="HOME"][data-workspace-section="overview"]:has(#source-admin-dashboard:not(.is-hidden)) #people-completion-panel { display: none !important; }

/* Tasks and notifications use the same compact management density as the
   material/course lists. Descriptive copy remains available in the editor,
   while the list page leads with status, title and action. */
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-task-panel,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub { padding: 9px !important; margin-block: 0 10px !important; border-radius: 2px !important; box-shadow: none !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-task-panel .panel-heading,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel .training-tasks-heading,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-heading { min-height: 28px !important; margin-bottom: 5px !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-task-panel .workspace-section-note,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel .training-tasks-note,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel .training-tasks-status,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-heading p { margin: 2px 0 !important; font-size: 10px !important; line-height: 1.45 !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-task-panel .learning-task-row { min-height: 40px !important; padding: 6px 8px !important; background: #fff !important; border-bottom: 1px solid #e7edf3 !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-task-panel .learning-task-dot { width: 20px !important; height: 20px !important; flex-basis: 20px !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel .training-tasks-list,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub [data-homework-list] { gap: 0 !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel .training-task-card,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-homework { padding: 8px 9px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #e7edf3 !important; border-radius: 0 !important; background: #fff !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel .training-task-card > p,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-homework > p { margin: 2px 0 !important; font-size: 10px !important; line-height: 1.45 !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-preserve { display: -webkit-box !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-actions { gap: 5px !important; margin: 4px 0 0 !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-actions button,
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-training-tasks-panel .tiny-action { min-height: 24px !important; padding: 3px 7px !important; font-size: 9px !important; }
body[data-workspace-module="LEARNING"][data-workspace-section="tasks"] #learning-hub .hub-empty { padding: 12px !important; border-radius: 0 !important; font-size: 11px !important; }

/* Exam action hierarchy: one compact primary action, neutral row actions,
   and a clearly marked state-changing close/publish control. */
body[data-workspace-module="EXAM"][data-workspace-section]:not([data-workspace-section="overview"]) #exam-completion-panel { display: none !important; }
body[data-workspace-module="EXAM"][data-workspace-section="question-bank"] #exam-admin-panel { padding: 9px !important; }
body[data-workspace-module="EXAM"][data-workspace-section="question-bank"] #exam-admin-panel .panel-heading { margin-bottom: 5px !important; }
body[data-workspace-module="EXAM"][data-workspace-section="question-bank"] #exam-admin-panel .phase1-admin-row { min-height: 54px !important; padding: 8px 9px !important; }
body[data-workspace-module="EXAM"][data-workspace-section="question-bank"] #exam-question-manager { gap: 5px !important; margin-top: 4px !important; padding: 8px !important; border-radius: 2px !important; background: #fff !important; }
body[data-workspace-module="EXAM"][data-workspace-section="question-bank"] #exam-question-manager .exam-question-row { gap: 3px !important; padding: 7px 8px !important; border-width: 0 0 1px !important; border-radius: 0 !important; background: #fff !important; }
body[data-workspace-module="EXAM"][data-workspace-section="question-bank"] #exam-question-manager .exam-question-row strong { font-size: 11px !important; }
body[data-workspace-module="EXAM"][data-workspace-section="question-bank"] #exam-question-manager .exam-question-row small { font-size: 9px !important; }
.exam-admin-panel .exam-row-actions { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 4px !important; flex-wrap: wrap !important; }
.exam-admin-panel .tiny-action, .exam-admin-panel .secondary-action { min-height: 26px !important; padding: 4px 8px !important; border-radius: 3px !important; font-size: 10px !important; box-shadow: none !important; }
.exam-admin-panel .primary-tiny { background: #2f80d2 !important; border-color: #2f80d2 !important; color: #fff !important; }
.exam-admin-panel .phase1-bank-status, .exam-admin-panel .phase1-exam-publish { color: #a34e4e !important; border-color: #e6bcbc !important; background: #fff8f8 !important; }
.exam-admin-panel .exam-bank-manage, .exam-admin-panel .exam-question-edit, .exam-admin-panel .exam-statistics, .exam-admin-panel .exam-configure { color: #2c619b !important; border-color: #c8d9eb !important; background: #fff !important; }

/* List action cleanup: keep one clear action in the row and move the rest into
   a predictable menu. The menu remains plain HTML details so keyboard users
   can open it without an additional script or route change. */
button { line-height: 1.2 !important; }
.learning-card-actions { position: relative !important; align-items: center !important; overflow: visible !important; }
.learning-card-actions > .tiny-action { flex: 0 0 auto !important; }
.learning-card-more { position: relative !important; flex: 0 0 auto !important; }
.learning-card-more > summary {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-height: 24px !important; padding: 3px 8px !important; border: 1px solid #c8d9eb !important;
  border-radius: 3px !important; background: #fff !important; color: #2c619b !important;
  cursor: pointer !important; font-size: 9px !important; font-weight: 600 !important; list-style: none !important;
  white-space: nowrap !important;
}
.learning-card-more > summary::-webkit-details-marker { display: none !important; }
.learning-card-more > summary::after { content: "⌄"; margin-left: 4px; font-size: 10px; color: #7b91a9; }
.learning-card-more[open] > summary { border-color: #8fb3d8 !important; background: #f2f7fd !important; color: #1675ce !important; }
.learning-card-more[open] > summary::after { content: "⌃"; }
.learning-card-more-menu {
  position: absolute !important; z-index: 20 !important; right: 0 !important; top: calc(100% + 4px) !important;
  display: grid !important; gap: 3px !important; min-width: 104px !important; padding: 5px !important;
  border: 1px solid #d9e3ef !important; border-radius: 3px !important; background: #fff !important;
  box-shadow: 0 8px 22px rgba(39, 69, 104, .14) !important;
}
.learning-card-more-menu .tiny-action { width: 100% !important; justify-content: flex-start !important; text-align: left !important; }
.learning-card-actions [data-learning-action="close-course"],
.learning-card-actions [data-learning-action="mark-training-absent"] {
  color: #a34e4e !important; border-color: #e6bcbc !important; background: #fff8f8 !important;
}
.learning-card-actions [data-learning-action="close-course"]:hover,
.learning-card-actions [data-learning-action="mark-training-absent"]:hover { background: #fff0f0 !important; border-color: #d99b9b !important; }
.learning-card-actions [data-learning-action="publish-training"] { background: var(--word-blue) !important; border-color: var(--word-blue) !important; color: #fff !important; }
.learning-card-actions [data-learning-action="publish-training"]:hover { background: var(--word-blue-deep) !important; }
.learning-card-actions button:focus-visible,
.learning-card-more > summary:focus-visible { outline: 2px solid #2f8eea !important; outline-offset: 2px !important; }
.learning-card-actions button:disabled { opacity: .55 !important; cursor: wait !important; }

@media (max-width: 720px) {
  .learning-card-actions { flex-wrap: wrap !important; justify-content: flex-start !important; }
  .learning-card-more-menu { right: auto !important; left: 0 !important; }
}

body[data-workspace-module="LEARNING"][data-workspace-section="courses"] .learning-card-actions {
  overflow-x: visible !important; overflow-y: visible !important;
}
