:root {
  --accent: #3563e9;
  --accent-soft: #edf2ff;
  --ink: #17243b;
  --muted: #7b869b;
  --line: #e5eaf2;
  --bg: #f6f8fb;
  --surface: #fff;
  --green: #24966b;
  --amber: #bc771c;
  --red: #c84852;
  --radius: 11px;
  --rail: 230px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible {
  outline: 3px solid #b3c7ff;
  outline-offset: 2px;
}
button {
  color: inherit;
}
input,
textarea,
select {
  min-width: 0;
}
img,
video {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.nowrap {
  white-space: nowrap;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.full {
  width: 100%;
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.stack > * + * {
  margin-top: 16px;
}
.mb {
  margin-bottom: 20px;
}
.mt {
  margin-top: 20px;
}
.danger-text {
  color: var(--red);
}
.success-text {
  color: var(--green);
}
.initial-loader {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}
.loader-dot {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 35;
  padding: 25px 14px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.3px;
  color: #12203b;
  padding: 0 12px 24px;
}
.brand svg {
  width: 37px;
  height: 37px;
  color: var(--accent);
}
.brand-logo {
  display: block;
  width: 164px;
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
}
.org-picker {
  position: relative;
  margin: 0 4px 23px;
}
.org-picker > .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  pointer-events: none;
}
.org-picker select {
  width: 100%;
  height: 45px;
  padding: 8px 25px 8px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}
.nav-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 1px 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 7px;
  margin-bottom: 4px;
  color: #40516b;
  font-weight: 500;
  font-size: 13px;
  min-height: 44px;
}
.nav-link:hover {
  background: #f7f9fd;
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 650;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 650;
  color: #9ba4b5;
  padding: 20px 13px 8px;
}
.sidebar-bottom {
  padding-top: 10px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.profile .icon-btn {
  margin-left: auto;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #edf2ff;
  color: #3860bd;
  font-size: 11px;
  font-weight: 650;
  flex-shrink: 0;
}
.avatar.green {
  background: #e7f6ed;
  color: #388660;
}
.avatar.rose {
  background: #fff0f3;
  color: #b65375;
}
.avatar.amber {
  background: #fff4de;
  color: #a57224;
}
.avatar.purple {
  background: #f0eaff;
  color: #8062bf;
}
.workspace {
  margin-left: var(--rail);
  min-height: 100vh;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  background: #ffffffb3;
  position: relative;
  z-index: 20;
}
.breadcrumbs {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  min-width: 140px;
}
.breadcrumbs strong {
  font-weight: 550;
  color: var(--ink);
}
.top-search {
  position: relative;
  width: 300px;
  margin-left: auto;
}
.top-search .icon {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 17px;
  height: 17px;
  color: #8d99ae;
}
.top-search input {
  width: 100%;
  height: 37px;
  padding: 8px 13px 8px 37px;
  border: 1px solid #dee5f0;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
}
.topbar .mode-btn {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.notify-btn {
  position: relative;
}
.notify-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  border-radius: 10px;
  background: var(--accent);
  border: 2px solid white;
  color: white;
  font-size: 8px;
  display: grid;
  place-items: center;
}
.page {
  padding: 29px 32px 40px;
  max-width: 1800px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head h1 {
  font-size: 29px;
  letter-spacing: -1.05px;
  line-height: 1.25;
  margin: 0 0 7px;
  font-weight: 720;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  min-height: 39px;
  border: 1px solid #dce3ef;
  border-radius: 7px;
  background: #fff;
  font-weight: 550;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn:hover {
  background: #f7f9ff;
  border-color: #bac9e4;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 3px #3563e91a;
}
.btn.primary:hover {
  filter: brightness(0.97);
}
.btn.soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.btn.danger {
  color: var(--red);
  border-color: #f0ccd0;
}
.btn.tiny {
  padding: 5px 9px;
  min-height: 29px;
  font-size: 11px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-btn.outline {
  border-color: var(--line);
  background: white;
}
.text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 550;
  font-size: 12px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kpi-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf3ff;
  color: var(--accent);
  flex-shrink: 0;
}
.kpi-icon .icon {
  width: 27px;
  height: 27px;
}
.kpi.green .kpi-icon {
  background: #eaf8ef;
  color: #2aa467;
}
.kpi.amber .kpi-icon {
  background: #fff4e4;
  color: #c68930;
}
.kpi strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.kpi small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 20px 21px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  margin: 0;
}
.panel-body {
  padding: 20px 21px;
}
.panel-body:first-child {
  padding-top: 21px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(265px, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 21px 16px;
}
.filters input,
.filters select {
  font-size: 11px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 240px;
  background: white;
  min-height: 35px;
}
.table-scroll {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.data-table th {
  background: #f8faff;
  font-weight: 450;
  color: var(--muted);
  padding: 11px 18px;
  font-size: 11px;
  white-space: nowrap;
  border-top: 1px solid #f0f3f8;
  border-bottom: 1px solid #f0f3f8;
}
.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f3f7;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fcfdff;
}
.data-table .person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
}
.data-table .person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.data-table .row-title {
  font-weight: 550;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.6;
  color: #6d7c95;
  background: #f0f3f8;
  white-space: nowrap;
}
.badge.blue {
  background: #ebf1ff;
  color: #3563d8;
}
.badge.green {
  background: #eaf8f0;
  color: #25895e;
}
.badge.amber {
  background: #fff2dc;
  color: #ad721f;
}
.badge.red {
  background: #fff0f1;
  color: #bf4c58;
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}
.progress-wrap span {
  font-size: 11px;
  color: var(--accent);
  min-width: 28px;
}
.progress {
  height: 6px;
  border-radius: 5px;
  background: #edf0f5;
  overflow: hidden;
  width: 100%;
  min-width: 45px;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.progress.green > i {
  background: #37b482;
}
.task-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}
.task {
  padding: 12px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 11px;
}
.task .count {
  margin-left: auto;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 3px 7px;
}
.task .icon:last-child {
  width: 13px;
  color: var(--muted);
}
.callout {
  background: #f0f5ff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin: 0 18px 18px;
}
.callout > .icon {
  color: var(--accent);
  width: 26px;
  height: 26px;
}
.callout strong {
  display: block;
  color: #3159b9;
  font-size: 12px;
}
.callout p {
  font-size: 11px;
  color: #7284a3;
  margin: 5px 0 7px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.course-card:hover {
  border-color: #c5d3ec;
  transform: translateY(-2px);
}
.course-cover {
  height: 110px;
  background: #edf3ff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4775d9;
}
.course-cover .icon {
  width: 49px;
  height: 49px;
  stroke-width: 1.1;
  z-index: 1;
}
.course-cover:before,
.course-cover:after {
  content: "";
  position: absolute;
  border: 1px solid #cbdcfb;
  border-radius: 17px;
  width: 125px;
  height: 125px;
  transform: rotate(-25deg);
  left: 20%;
}
.course-cover:after {
  width: 170px;
  height: 170px;
  left: 52%;
  transform: rotate(26deg);
}
.course-cover.shield {
  background: #eef0ff;
  color: #7167cc;
}
.course-cover.shield:before,
.course-cover.shield:after {
  border-color: #d6d6fc;
}
.course-cover.team {
  background: #eaf7f4;
  color: #389b8f;
}
.course-cover .badge {
  position: absolute;
  right: 13px;
  top: 12px;
  background: #ffffffdc;
}
.course-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-info h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.2px;
  line-height: 1.4;
}
.course-info p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}
.course-meta {
  display: flex;
  gap: 13px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 16px;
}
.course-meta .icon {
  width: 14px;
  height: 14px;
}
.course-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}
.course-actions .btn:first-child {
  flex: 1;
}
.compact-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 0 20px 20px;
}
.compact-course {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  gap: 14px;
  align-items: center;
}
.compact-art {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: #edf3ff;
  color: var(--accent);
  border-radius: 6px;
  flex-shrink: 0;
}
.compact-art .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.3;
}
.compact-course .info {
  flex: 1;
  min-width: 0;
}
.compact-course strong {
  font-size: 12px;
  display: block;
}
.compact-course small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin: 4px 0 10px;
}
.compact-course a {
  color: var(--ink);
}
.list-toolbar {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.list-toolbar input {
  min-width: 240px;
  flex: 1;
  max-width: 360px;
}
.empty {
  padding: 55px 25px;
  text-align: center;
  background: white;
  border: 1px dashed #d9e2f2;
  border-radius: 12px;
}
.empty > .icon {
  width: 46px;
  height: 46px;
  color: #99add0;
  stroke-width: 1.15;
}
.empty h3 {
  font-size: 18px;
  margin: 15px 0 7px;
}
.empty p {
  color: var(--muted);
  max-width: 450px;
  margin: 0 auto 18px;
  font-size: 13px;
}
.notice-box {
  padding: 13px 17px;
  background: #eff4ff;
  color: #425f99;
  border: 1px solid #e0e9ff;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}
.notice-box.danger {
  background: #fff3f4;
  color: #ae4c58;
  border-color: #f4d8dd;
}
.notice-box.success {
  background: #eff9f3;
  color: #2b8c61;
  border-color: #d6efdf;
}
.notice-box.amber {
  background: #fff9eb;
  color: #997132;
  border-color: #f4e5c2;
}
.org-banner {
  margin: 0;
  padding: 11px 32px;
  border-bottom: 1px solid #f0ddba;
  background: #fff9ec;
  color: #936722;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tab {
  display: inline-flex;
  padding: 13px 1px;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6f7d95;
  font-size: 12px;
  font-weight: 550;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 550;
  color: #41516a;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.input {
  width: 100%;
  border: 1px solid #dce3ee;
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  min-height: 39px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 400;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.65;
}
.field small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0;
  cursor: pointer;
}
.check-row input {
  accent-color: var(--accent);
  margin-top: 3px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 9px 0;
}
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 21px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch span {
  position: absolute;
  inset: 0;
  background: #c8d0dd;
  border-radius: 20px;
  transition: 0.15s;
}
.switch span:before {
  content: "";
  width: 15px;
  height: 15px;
  position: absolute;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: 0.15s;
}
.switch input:checked + span {
  background: var(--accent);
}
.switch input:checked + span:before {
  transform: translateX(15px);
}
.switch input:focus-visible + span {
  outline: 3px solid #b3c7ff;
  outline-offset: 3px;
}
.choice-list {
  display: grid;
  gap: 9px;
}
.choice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.choice input {
  accent-color: var(--accent);
}
.choice:has(input:checked) {
  border-color: #7f9df4;
  background: #f4f7ff;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #14244065;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 25px;
}
.modal {
  background: white;
  border-radius: 13px;
  box-shadow: 0 20px 100px #10275030;
  width: 540px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.wide {
  width: 850px;
}
.modal-head {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0;
}
.modal-body {
  padding: 22px 24px;
  overflow: auto;
}
.modal-foot {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.modal .field:last-child {
  margin-bottom: 0;
}
.modal h3 {
  font-size: 14px;
}
.checklist {
  border: 1px solid var(--line);
  border-radius: 7px;
  max-height: 250px;
  overflow: auto;
  padding: 0 12px;
}
.checklist .check-row {
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid #f0f3f7;
}
.checklist .check-row:last-child {
  border: 0;
}
.toast-stack {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 430px;
}
.toast {
  padding: 14px 18px;
  border-radius: 9px;
  background: #173048;
  color: white;
  font-size: 12px;
  box-shadow: 0 8px 30px #14345226;
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.error {
  background: #ad3d4d;
}
.toast .icon {
  width: 19px;
  height: 19px;
}
.loading-panel {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.section-title {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0 0 15px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.metric-value {
  font-size: 22px;
  font-weight: 650;
}
.inbox-item {
  padding: 20px;
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.inbox-item.unread {
  background: #f9fbff;
}
.inbox-item h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.inbox-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.inbox-item time {
  font-size: 10px;
  color: #98a1b1;
}
.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f3f6fc;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 11px;
  font-size: 11px;
  margin: 4px 6px 4px 0;
}
.file-pill .icon {
  width: 15px;
  height: 15px;
}
.file-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.certificate {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: white;
  display: flex;
  gap: 20px;
  align-items: center;
}
.certificate > .icon {
  width: 50px;
  height: 50px;
  color: var(--accent);
  stroke-width: 1.1;
}
.certificate h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.certificate p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.certificate .btn {
  margin-left: auto;
}
.mobile-menu {
  display: none;
}
.mobile-close {
  display: none;
}
.mobile-scrim {
  display: none;
}
.split-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.split-row > * {
  flex: 1;
}
.row-link {
  color: var(--ink);
  font-weight: 550;
}
.row-link:hover {
  color: var(--accent);
}
.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.drag-over {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1700px) {
  :root {
    --rail: 248px;
  }
  .sidebar {
    padding-top: 30px;
  }
  .page {
    padding: 36px 40px;
  }
  .topbar {
    padding: 0 40px;
    height: 77px;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .nav-link {
    font-size: 14px;
    padding: 12px 15px;
  }
  .kpi {
    padding: 25px;
  }
  .kpi strong {
    font-size: 32px;
  }
  .data-table td {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 1200px) {
  :root {
    --rail: 210px;
  }
  .page {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .top-search {
    width: 220px;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi {
    padding: 16px 13px;
    gap: 10px;
  }
  .kpi strong {
    font-size: 24px;
  }
  .kpi-icon {
    width: 37px;
    height: 37px;
  }
  .kpi-icon .icon {
    width: 23px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-tasks .task-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-tasks .callout {
    display: none;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar .mode-btn {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 850px) {
  :root {
    --rail: 0px;
  }
  .sidebar {
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .app-shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
  }
  .mobile-close {
    display: inline-flex;
    position: absolute;
    top: 17px;
    right: 12px;
  }
  .app-shell.menu-open .mobile-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #15274566;
    z-index: 30;
  }
  .topbar {
    padding: 0 18px;
    gap: 12px;
    height: 64px;
  }
  .top-search {
    width: 220px;
  }
  .breadcrumbs {
    display: none;
  }
  .page {
    padding: 22px 18px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head {
    align-items: flex-start;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-courses {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .org-banner {
    padding: 11px 18px;
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal {
    max-height: 94vh;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding: 18px;
  }
  .dashboard-tasks .task-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .page {
    padding: 20px 14px;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .top-search {
    width: auto;
    flex: 1;
  }
  .topbar .mode-btn {
    display: none;
  }
  .page-head {
    display: block;
  }
  .page-head p {
    font-size: 12px;
  }
  .head-actions {
    margin-top: 16px;
    justify-content: flex-start;
  }
  .head-actions .btn {
    font-size: 11px;
  }
  .kpi {
    padding: 15px 12px;
  }
  .kpi strong {
    font-size: 23px;
  }
  .kpi small {
    font-size: 10px;
  }
  .kpi-icon {
    width: 34px;
    height: 34px;
  }
  .panel-head,
  .panel-body {
    padding: 17px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .compact-course {
    gap: 10px;
  }
  .compact-art {
    width: 62px;
    height: 70px;
  }
  .tabs {
    gap: 19px;
  }
  .toast-stack {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
  .certificate {
    display: block;
  }
  .certificate .btn {
    margin: 17px 0 0;
  }
  .data-table {
    min-width: 640px;
  }
  .list-toolbar input {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .btn.full-mobile {
    width: 100%;
  }
  .profile .avatar {
    width: 34px;
  }
  .split-row {
    flex-direction: column;
    align-items: stretch;
  }
  .split-row > * {
    width: 100%;
  }
  .course-cover {
    height: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
