:root {
  --canvas: #f3f5f7;
  --surface: #ffffff;
  --surface-subtle: #f8faf9;
  --surface-raised: #ffffff;
  --text: #18201e;
  --text-secondary: #56615e;
  --text-tertiary: #84908c;
  --border: #dfe5e2;
  --border-strong: #cbd4d0;
  --sidebar: #182321;
  --sidebar-hover: #263532;
  --sidebar-active: #334b46;
  --accent: #16836b;
  --accent-hover: #106d59;
  --accent-soft: #e8f5f1;
  --accent-border: #a9d9cb;
  --blue: #3867d6;
  --blue-soft: #edf2ff;
  --amber: #a96008;
  --amber-soft: #fff5df;
  --amber-border: #e9ca8a;
  --danger: #c13e3e;
  --danger-soft: #fff0ef;
  --shadow-sm: 0 1px 2px rgba(19, 35, 31, 0.05);
  --shadow-md: 0 8px 28px rgba(19, 35, 31, 0.09);
  --focus: 0 0 0 3px rgba(22, 131, 107, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, "SF Pro Text", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input[type="date"],
input[type="checkbox"] {
  cursor: pointer;
}

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: #f5f8f7;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: #247d6a;
  font-size: 17px;
  font-weight: 800;
}

.sidebar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}

.sidebar p {
  margin: 3px 0 0;
  color: #99aaa6;
  font-size: 12px;
}

nav {
  display: grid;
  gap: 4px;
}

.nav {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #bdc9c6;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 560;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav:hover {
  color: #ffffff;
  background: var(--sidebar-hover);
}

.nav.active {
  color: #ffffff;
  background: var(--sidebar-active);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 #58c4a9;
}

.sidebar-foot {
  margin-top: auto;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #91a39e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56c79e;
  box-shadow: 0 0 0 3px rgba(86, 199, 158, 0.12);
}

main {
  width: 100%;
  max-width: 1680px;
  min-width: 0;
  padding: 30px 34px 48px;
  overflow: auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 180ms ease-out;
}

.hidden {
  display: none !important;
}

.profileMatch {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  font-size: 13px;
}

.profileMatch span {
  margin-right: 8px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profileMatch.matched {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.profileMatch.history {
  border-color: var(--amber-border);
  color: var(--amber);
  background: var(--amber-soft);
}

.compact-list {
  display: grid;
  gap: 12px;
}

.batch-item.selected {
  border-color: var(--accent-border);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-sm);
}

.quick-note-panel.empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.quick-head {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.quick-head strong {
  display: block;
  font-size: 16px;
}

.quick-students {
  display: grid;
  gap: 12px;
}

.quick-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.quick-card-title {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quick-card-title span {
  color: var(--text-tertiary);
  font-size: 12px;
}

.quickNote {
  margin-bottom: 12px;
}

.course-image-uploader {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
}

.course-image-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.course-image-list.empty {
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--text-tertiary);
  background: var(--surface-subtle);
}

.course-image-row {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
}

.course-image-row strong {
  display: block;
}

.course-image-row span {
  display: block;
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.course-image-row small {
  display: block;
  max-width: 760px;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.material-check-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.material-check-result {
  margin-top: 10px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid rgba(39, 151, 134, 0.35);
  border-radius: 8px;
  background: rgba(39, 151, 134, 0.08);
  color: var(--text-primary);
  line-height: 1.75;
  white-space: pre-wrap;
}

.material-check-result.empty {
  min-height: auto;
  border-style: dashed;
  background: var(--surface-subtle);
  color: var(--text-tertiary);
}

.material-check-result.loading {
  color: var(--text-secondary);
}

.material-check-result.error {
  border-color: rgba(215, 75, 94, 0.45);
  background: rgba(215, 75, 94, 0.08);
  color: var(--danger);
}

.checkbox-row {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.checkbox-row input {
  width: 16px;
  height: 16px;
}

.workflow-list,
.workflow-grid {
  display: grid;
  gap: 12px;
}

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

.workflow-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.workflow-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.workflow-card-head strong,
.workflow-card-head span {
  display: block;
}

.workflow-card-head span {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.workflow-status {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  white-space: nowrap;
}

.qualityBox {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}

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

.qualityBox.pass {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.qualityBox.warn {
  border-color: var(--amber-border);
  color: var(--amber);
  background: var(--amber-soft);
}

.qualityBox ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  min-height: 56px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

h2,
h3 {
  margin: 0;
  color: var(--text);
}

h2 {
  font-size: 23px;
  font-weight: 760;
  line-height: 1.3;
}

h3 {
  font-size: 15px;
  font-weight: 720;
}

.topbar p,
.hint {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.grid.two {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two.compact {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.panel {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.panel.narrow {
  max-width: 780px;
}

.panel > h3 {
  padding-bottom: 13px;
  border-bottom: 1px solid #edf0ef;
}

label {
  display: block;
  margin: 15px 0 6px;
  color: #394440;
  font-size: 12px;
  font-weight: 680;
}

.required-mark {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input,
select {
  height: 40px;
  padding: 0 11px;
}

textarea {
  min-height: 88px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.62;
}

input::placeholder,
textarea::placeholder {
  color: #a0aaa7;
}

.course-search {
  margin-bottom: 6px;
}

.search-meta {
  margin: -1px 0 7px;
  color: var(--text-tertiary);
  font-size: 12px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b7c3be;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.field-invalid {
  border-color: var(--danger) !important;
  background: var(--danger-soft) !important;
  box-shadow: 0 0 0 3px rgba(194, 56, 75, 0.12) !important;
}

button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: #303a37;
  background: var(--surface);
  font-weight: 620;
  white-space: nowrap;
  transition: transform 100ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

button:hover {
  border-color: #aebbb6;
  background: #f7f9f8;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button.primary {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 2px 7px rgba(22, 131, 107, 0.2);
}

button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

button.danger {
  color: var(--danger);
  border-color: #e6b8b5;
  background: #ffffff;
}

button.danger:hover {
  border-color: #dc8f89;
  background: var(--danger-soft);
}

button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.actions,
.inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inline {
  margin-top: 10px;
}

.sectionHead {
  min-height: 38px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  min-width: 46px;
  height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 720;
}

.students,
.list {
  display: grid;
  gap: 12px;
}

.empty {
  min-height: 110px;
  padding: 30px 20px;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  border: 1px dashed #cbd5d1;
  border-radius: 8px;
  background: #fafcfb;
  text-align: center;
}

.studentCard {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
  box-shadow: var(--shadow-sm);
}

.studentCard::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: #6e9f92;
  border-radius: 8px 0 0 8px;
}

.studentTop {
  display: grid;
  grid-template-columns: minmax(150px, 0.58fr) minmax(180px, 0.72fr) minmax(280px, 2fr);
  gap: 12px;
  align-items: end;
}

.studentTop label {
  margin-top: 0;
}

.predictionBox {
  position: relative;
  margin-top: 15px;
  padding: 13px 14px;
  border: 1px solid #aacfd1;
  border-left: 3px solid #268ca2;
  border-radius: 4px;
  background: #f1f9fa;
}

.predictionBox::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  content: "";
  border-top: 1px solid #3ba5b4;
  border-right: 1px solid #3ba5b4;
}

.predictionHead,
.predictionActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.predictionHead span,
.predictionHead b,
.predictionActions small {
  font-family: Consolas, "SFMono-Regular", monospace;
}

.predictionHead span {
  color: #167b8e;
  font-size: 9px;
  font-weight: 800;
}

.predictionHead b {
  color: #658089;
  font-size: 10px;
}

.predictionBox p {
  margin: 9px 0 0;
  color: #344e57;
  line-height: 1.65;
}

.predictionActions {
  margin-top: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.predictionActions small {
  margin-right: auto;
  color: #7a9098;
  font-size: 9px;
}

.predictionActions button,
.predictionBox.error > button {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.predictionBox.loading {
  min-height: 48px;
  overflow: hidden;
}

.predictionBox.loading::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #49aabd;
  transform-origin: left;
  animation: prediction-loading 1.2s ease-in-out infinite;
}

.predictionBox.error {
  border-color: #deb6bb;
  border-left-color: #bd5261;
  background: #fff7f8;
}

@keyframes prediction-loading {
  0% {
    transform: scaleX(0.05);
  }
  55% {
    transform: scaleX(0.72);
  }
  100% {
    transform: scaleX(1);
    opacity: 0.2;
  }
}

.tagGroup {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e8ecea;
}

.tagTitle {
  margin-bottom: 9px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 32px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #44504c;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.35;
  user-select: none;
  transition: border-color 130ms ease, color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.chip:hover {
  border-color: #b8c5c0;
  box-shadow: 0 1px 4px rgba(20, 40, 34, 0.06);
}

.chip input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

.chip button {
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
}

.chip.shine:has(input:checked) {
  color: #0c6c57;
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.chip.improve:has(input:checked) {
  color: #855108;
  border-color: var(--amber-border);
  background: var(--amber-soft);
}

.reviewBox {
  margin-top: 16px;
  padding-top: 16px;
  display: grid;
  gap: 9px;
  border-top: 1px solid #e1e7e4;
}

.reviewBox textarea {
  min-height: 178px;
  background: var(--surface);
}

.draftStatus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.draftStatus span,
.draftStatus b {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
}

.draftStatus span {
  color: #087f74;
  font-weight: 800;
}

.draftStatus b {
  color: #71858e;
}

.draft-loading {
  position: relative;
  min-height: 62px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #a8d1cc;
  background: #f1faf8;
}

.draft-loading::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #29a997;
  transform-origin: left;
  animation: prediction-loading 1.2s ease-in-out infinite;
}

.draft-error {
  padding: 14px;
  border: 1px solid #dfb5ba;
  background: #fff7f8;
}

.item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.item:hover {
  border-color: #cbd5d1;
  box-shadow: 0 5px 16px rgba(19, 35, 31, 0.06);
}

.itemHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.itemHead strong {
  color: #202a27;
  font-size: 15px;
  font-weight: 730;
}

.item p {
  margin: 12px 0 0;
  color: #4f5b57;
  white-space: pre-wrap;
  line-height: 1.72;
}

.meta {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 12px;
}

dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 40px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 24px 80px rgba(13, 26, 22, 0.24);
}

dialog::backdrop {
  background: rgba(18, 29, 26, 0.5);
  backdrop-filter: blur(3px);
}

.dialog {
  padding: 22px;
}

.dialog h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}

.dialogActions {
  position: sticky;
  bottom: -22px;
  margin: 20px -22px -22px;
  padding: 13px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #ffffff;
  background: #1b2926;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  main {
    padding: 26px 24px 42px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .studentTop {
    grid-template-columns: 1fr 1fr;
  }

  .studentTop > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    width: 100%;
    height: auto;
    padding: 12px;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(17, 31, 27, 0.16);
  }

  .brand {
    min-height: 38px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand p,
  .sidebar-foot {
    display: none;
  }

  nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .nav {
    width: auto;
    min-width: max-content;
    height: 36px;
    padding: 0 11px;
    text-align: center;
  }

  .nav.active {
    box-shadow: inset 0 -2px 0 #58c4a9;
  }

  main {
    padding: 20px 14px 36px;
  }

  .topbar {
    min-height: 0;
    margin-bottom: 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  h2 {
    font-size: 21px;
  }

  .topbar .actions {
    width: 100%;
  }

  .topbar .actions button {
    flex: 1;
  }

  .panel,
  .studentCard,
  .item {
    padding: 15px;
  }

  .grid.two,
  .grid.two.compact,
  .studentTop {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .studentTop > div:last-child {
    grid-column: auto;
  }

  .predictionHead,
  .predictionActions {
    align-items: flex-start;
    flex-direction: column;
  }

  .predictionActions button {
    width: 100%;
  }

  .sectionHead {
    align-items: flex-start;
  }

  .itemHead {
    flex-direction: column;
  }

  .itemHead .actions {
    width: 100%;
  }

  .itemHead .actions button {
    flex: 1 1 auto;
  }

  .chip {
    max-width: 100%;
  }

  dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Technology workbench */
:root {
  --canvas: #eef2f5;
  --surface: #ffffff;
  --surface-subtle: #f6f9fa;
  --surface-raised: #ffffff;
  --text: #111b22;
  --text-secondary: #4e5e68;
  --text-tertiary: #7b8b95;
  --border: #d9e2e7;
  --border-strong: #bdcbd3;
  --sidebar: #0c151a;
  --sidebar-hover: #14242b;
  --sidebar-active: #17353a;
  --accent: #008f83;
  --accent-hover: #00766d;
  --accent-soft: #e4f6f3;
  --accent-border: #86cec5;
  --blue: #3168e8;
  --blue-soft: #eaf0ff;
  --amber: #a75c00;
  --amber-soft: #fff3d9;
  --amber-border: #e4bf71;
  --danger: #c2384b;
  --danger-soft: #fff0f2;
  --shadow-sm: 0 1px 2px rgba(16, 33, 42, 0.05);
  --shadow-md: 0 16px 44px rgba(16, 33, 42, 0.12);
  --focus: 0 0 0 3px rgba(0, 143, 131, 0.14);
}

body {
  background: #e9eef1;
}

.app {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  padding: 24px 18px 18px;
  gap: 20px;
  background: #0c151a;
  border-right: 1px solid #26343b;
  box-shadow: 12px 0 40px rgba(10, 21, 27, 0.08);
}

.sidebar::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 112px;
  content: "";
  background: #22b8a7;
}

.brand {
  min-height: 52px;
  padding: 0 4px;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 1px solid #39756e;
  border-radius: 6px;
  background: #153d3b;
  box-shadow: inset 0 0 0 1px rgba(64, 220, 198, 0.08), 0 0 20px rgba(38, 190, 169, 0.1);
}

.brand-mark::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 1px solid #4fd0bf;
  border-bottom: 1px solid #4fd0bf;
}

.sidebar h1 {
  font-size: 18px;
}

.sidebar p {
  color: #7f949d;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.nav-label {
  margin: 6px 10px -10px;
  color: #536872;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 700;
}

nav {
  gap: 6px;
}

.nav {
  position: relative;
  height: 44px;
  padding: 0 12px 0 50px;
  border-radius: 4px;
  color: #9eb0b8;
  overflow: hidden;
}

.nav::before {
  position: absolute;
  left: 12px;
  width: 25px;
  color: #55707b;
  content: attr(data-code);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

.nav::after {
  position: absolute;
  left: 40px;
  width: 1px;
  height: 16px;
  content: "";
  background: #2b3d45;
}

.nav:hover {
  color: #eef7f6;
  background: #14242b;
}

.nav.active {
  color: #ffffff;
  border-color: #285551;
  background: #17353a;
  box-shadow: inset 3px 0 0 #41c7b6, 0 8px 18px rgba(0, 0, 0, 0.12);
}

.nav.active::before {
  color: #63ddcc;
}

.nav.active::after {
  background: #39736d;
}

.sidebar-foot {
  color: #71868f;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

main {
  max-width: none;
  padding: 0 32px 52px;
}

.system-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 52px;
  margin: 0 -32px 28px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #d3dde2;
  background: rgba(238, 242, 245, 0.94);
  backdrop-filter: blur(14px);
}

.system-context,
.system-signals {
  display: flex;
  align-items: center;
}

.system-context {
  gap: 18px;
}

.system-kicker,
.system-path,
.system-signals {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

.system-kicker {
  color: #008f83;
  font-weight: 800;
}

.system-path {
  padding-left: 18px;
  color: #80909a;
  border-left: 1px solid #c9d4da;
}

.system-path strong {
  color: #35464f;
}

.system-signals {
  gap: 18px;
  color: #60717a;
}

.system-signals > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.signal {
  width: 6px;
  height: 6px;
  display: inline-block;
  border: 1px solid #8ba0aa;
  background: #ffffff;
}

.signal-live {
  border-color: #2cc5a5;
  background: #2cc5a5;
  box-shadow: 0 0 0 3px rgba(44, 197, 165, 0.12), 0 0 10px rgba(44, 197, 165, 0.35);
}

.topbar {
  min-height: 64px;
  margin-bottom: 20px;
}

.eyebrow {
  margin-bottom: 5px;
  color: #008f83;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 800;
}

h2 {
  font-size: 27px;
  font-weight: 780;
}

h3 {
  font-size: 16px;
}

.metrics {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  border: 1px solid #cad6dc;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.metric {
  position: relative;
  min-height: 104px;
  padding: 17px 18px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid #dce4e8;
}

.metric:last-child {
  border-right: 0;
}

.metric::after {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 42px;
  height: 2px;
  content: "";
  background: #178f84;
}

.metric:nth-child(2)::after {
  background: #3168e8;
}

.metric:nth-child(3)::after {
  background: #c47c20;
}

.metric:nth-child(4)::after {
  background: #7758d6;
}

.metric-index {
  color: #8a99a1;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
  font-weight: 700;
}

.metric strong {
  max-width: 100%;
  color: #14212a;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 27px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-status strong {
  color: #6c4bc2;
  font-size: 18px;
}

.metric small {
  color: #65757e;
  font-size: 11px;
}

.grid.two {
  grid-template-columns: minmax(400px, 0.92fr) minmax(430px, 1.08fr);
}

.panel {
  position: relative;
  border-color: #d2dde2;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(14, 32, 41, 0.04), 0 12px 30px rgba(14, 32, 41, 0.035);
}

.module-panel {
  padding-top: 0;
  overflow: hidden;
}

.module-panel::after,
.resource-item::after,
.history-item::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  content: "";
  border-top: 2px solid #5dcabb;
  border-right: 2px solid #5dcabb;
}

.module-heading {
  min-height: 58px;
  margin: 0 -20px 4px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e0e7ea;
  background: #f8fafb;
}

.sectionHead .module-heading {
  flex: 1;
  margin-bottom: 0;
}

.module-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-heading span,
.module-heading b {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
}

.module-heading span {
  padding: 4px 6px;
  color: #08786e;
  border: 1px solid #a9d8d1;
  background: #eaf7f5;
}

.module-heading b {
  color: #9aa8af;
}

.student-module .sectionHead {
  min-height: 58px;
  margin-bottom: 14px;
}

.student-module .badge {
  margin-left: 16px;
}

label {
  color: #3c4c54;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

input,
select,
textarea {
  border-radius: 4px;
  border-color: #c7d3d9;
  background: #fbfcfd;
}

input:focus,
select:focus,
textarea:focus {
  background: #ffffff;
}

button {
  border-radius: 4px;
}

button.primary {
  position: relative;
  border-color: #008f83;
  background: #008f83;
  box-shadow: 0 5px 14px rgba(0, 143, 131, 0.18);
}

button.primary::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  content: "";
  background: rgba(255, 255, 255, 0.7);
}

.badge,
.chip {
  border-radius: 4px;
}

.students {
  counter-reset: student;
}

.studentCard {
  counter-increment: student;
  padding: 20px;
  border-radius: 6px;
  background: #f8fafb;
}

.studentCard::before {
  width: 4px;
  border-radius: 0;
  background: #148f84;
}

.studentCard::after {
  position: absolute;
  top: 13px;
  right: 15px;
  color: #a2afb5;
  content: "STUDENT / " counter(student, decimal-leading-zero);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
}

.tagTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.tagTitle::before {
  width: 12px;
  height: 2px;
  content: "";
  background: #139487;
}

.tagGroup + .tagGroup .tagTitle::before {
  background: #d08a2d;
}

.chip {
  min-height: 30px;
  border-color: #d2dde2;
  background: #ffffff;
}

.chip.shine:has(input:checked) {
  box-shadow: inset 3px 0 0 #13a491;
}

.chip.improve:has(input:checked) {
  box-shadow: inset 3px 0 0 #d28a25;
}

.list {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  align-items: start;
}

#courseList {
  align-items: stretch;
}

#courseList .resource-item {
  min-height: 184px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#courseList .resource-item .itemHead {
  flex: 0 0 auto;
}

#courseList .resource-item p {
  margin-top: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

#courseList .empty-description {
  color: #98a6ad;
  font-style: italic;
}

#tagList,
#historyList {
  grid-template-columns: 1fr;
}

.item {
  position: relative;
  min-width: 0;
  padding: 19px 20px 19px 58px;
  border-radius: 6px;
  overflow: hidden;
}

.item::before {
  position: absolute;
  top: 20px;
  left: 17px;
  color: #009486;
  content: attr(data-index);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 800;
}

.item:hover {
  border-color: #a9c1c9;
  box-shadow: 0 12px 30px rgba(18, 43, 54, 0.08);
  transform: translateY(-1px);
}

.itemHead strong,
.resource-title strong {
  font-size: 16px;
}

.meta {
  color: #788b95;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

.resource-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-title > span {
  color: #778a94;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
}

.history-item {
  padding-left: 64px;
}

.history-filter-panel {
  margin-bottom: 14px;
  border: 1px solid #cbd8de;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-heading {
  min-height: 54px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dce5e9;
  background: #f7fafb;
}

.filter-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-heading > div:first-child span {
  color: #07857a;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
  font-weight: 800;
}

.filter-heading strong {
  font-size: 15px;
}

.filter-result {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #71828b;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

.filter-result b {
  color: #07857a;
  font-size: 18px;
}

.history-filters {
  padding: 13px 15px 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.history-filters > div:nth-child(2) {
  grid-column: span 2;
}

.history-filters label {
  margin-top: 0;
}

.history-filters input,
.history-filters select,
.filter-clear {
  height: 38px;
}

.history-batch-bar {
  min-height: 64px;
  margin-bottom: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #cbd8de;
  border-left: 3px solid #168f83;
  border-radius: 5px;
  background: #f8fbfc;
  box-shadow: var(--shadow-sm);
}

.batch-select-all {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.batch-select-all input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.batch-count {
  min-width: 68px;
  color: #087a70;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
}

.batch-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#historyBatchAction {
  width: 190px;
}

.batch-parameter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-parameter select {
  width: 210px;
}

.batch-parameter input,
.batch-date {
  width: 190px;
}

#historyBatchApplyBtn.danger {
  border-color: #d98792;
  background: #fff4f5;
}

.history-selector {
  position: absolute;
  top: 46px;
  left: 17px;
  z-index: 2;
  width: 20px;
  height: 20px;
  margin: 0;
  display: grid;
  place-items: center;
}

.history-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.history-selector span {
  width: 16px;
  height: 16px;
  border: 1px solid #aebfc7;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px #ffffff;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.history-selector:hover span {
  border-color: #168f83;
}

.history-selector input:checked + span {
  border-color: #168f83;
  background: #168f83;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.history-item.selected {
  border-color: #78bcb4;
  background: #f7fcfb;
  box-shadow: inset 3px 0 0 #168f83, 0 8px 24px rgba(17, 77, 70, 0.07);
}

.history-item > p {
  max-height: 128px;
  padding: 14px;
  overflow: auto;
  border-left: 2px solid #b6c9d0;
  background: #f6f8f9;
  font-size: 13px;
}

.learning-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 0 14px;
}

.learning-toolbar label {
  margin-top: 0;
}

.learning-status {
  min-height: 42px;
  margin-bottom: 16px;
  padding: 10px 12px;
  color: var(--text-secondary);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 13px;
}

.learning-content {
  display: grid;
  gap: 16px;
}

.learning-summary,
.learning-section {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.learning-summary {
  border-left: 3px solid var(--blue);
}

.learning-summary > span {
  color: var(--blue);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
}

.learning-summary p,
.learning-copy {
  margin: 9px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: pre-wrap;
}

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

.learning-section h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.learning-section h4 {
  margin: 16px 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.learning-section h4:first-of-type {
  margin-top: 0;
}

.learning-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-list li {
  padding: 10px 12px;
  border-left: 2px solid var(--accent-border);
  background: var(--surface-subtle);
  line-height: 1.6;
}

.learning-list p {
  margin: 5px 0 0;
  color: var(--text-secondary);
}

.learning-evidence {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.knowledge-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 110px minmax(230px, 1.6fr);
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border-top: 1px solid var(--border);
}

.knowledge-row:first-child {
  border-top: 0;
}

.knowledge-head {
  color: var(--text-secondary);
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 700;
}

.knowledge-status {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.knowledge-status.mastered { color: #08785f; background: #e8f5f1; }
.knowledge-status.progress { color: #2856b8; background: var(--blue-soft); }
.knowledge-status.needs-work { color: #98600b; background: var(--amber-soft); }
.knowledge-status.observing { color: #5b6562; background: #edf0ef; }

.empty-copy {
  margin: 0;
  color: var(--text-tertiary);
}

dialog {
  border-radius: 6px;
  border-color: #afc0c8;
}

#toast {
  border-radius: 4px;
  background: #101d23;
  font-family: Consolas, "SFMono-Regular", monospace;
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid #dce4e8;
  }

  .list {
    grid-template-columns: 1fr;
  }

  .history-filters {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .history-filters > div:nth-child(2) {
    grid-column: span 2;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }

  .filter-clear {
    width: 100%;
  }

  #courseList .resource-item {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  main {
    padding: 0 14px 36px;
  }

  .sidebar {
    padding: 10px 12px;
  }

  .sidebar::after,
  .nav-label {
    display: none;
  }

  .brand {
    min-height: 36px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .nav {
    height: 34px;
    padding: 0 11px;
  }

  .nav::before,
  .nav::after {
    display: none;
  }

  .system-bar {
    min-height: 40px;
    margin: 0 -14px 20px;
    padding: 0 14px;
  }

  .system-kicker,
  .system-path {
    display: none;
  }

  .system-signals {
    width: 100%;
    justify-content: space-between;
  }

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

  .metric {
    min-height: 88px;
    padding: 13px 14px;
  }

  .metric strong {
    font-size: 22px;
  }

  .metric-status strong {
    font-size: 15px;
  }

  .module-heading {
    min-height: 54px;
    margin-right: -15px;
    margin-left: -15px;
    padding: 0 15px;
  }

  .module-heading b {
    display: none;
  }

  .sectionHead .module-heading {
    margin-right: 0;
  }

  .student-module .sectionHead {
    align-items: center;
  }

  .item {
    padding: 16px 15px 16px 48px;
  }

  .history-item {
    padding-left: 48px;
  }

  .history-batch-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .filter-heading {
    min-height: 50px;
  }

  .filter-heading > div:first-child span {
    display: none;
  }

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

  .history-filters > div:nth-child(2) {
    grid-column: auto;
  }

  .learning-toolbar,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .knowledge-head {
    display: none;
  }

  .batch-controls {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  #historyBatchAction,
  .batch-parameter {
    width: 100%;
  }

  .batch-parameter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .batch-controls select,
  .batch-controls input {
    width: 100%;
  }

  .history-selector {
    left: 14px;
  }
}

[hidden] {
  display: none !important;
}

.account-layout {
  width: min(100% - 32px, 600px);
  margin: 32px auto;
}

.account-layout .brand,
.account-actions {
  margin-bottom: 16px;
}

.account-layout .panel {
  margin-bottom: 16px;
}

.account-layout form label,
.account-layout form button {
  margin-top: 12px;
}

.account-message {
  min-height: 1.5em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 24px;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-list {
  list-style: none;
  padding: 0;
}

.teacher-list li {
  padding: 12px 0;
  border-top: 1px solid currentColor;
}

.workspace-account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-navigation {
  display: none;
}

.install-guide p {
  margin: 12px 0;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .sidebar nav {
    display: none;
  }

  .sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-navigation label {
    margin: 0;
    color: #d0e7e4;
  }

  .mobile-navigation select {
    min-width: 120px;
    margin: 0;
  }

  .system-bar {
    position: static;
  }

  .system-context,
  .system-signals > span {
    display: none;
  }

  .system-signals {
    min-width: 0;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .workspace-account {
    min-width: 0;
  }

  .workspace-account a,
  .history-review-text {
    overflow-wrap: anywhere;
  }

  .account-page button,
  .install-guide button,
  .system-signals button,
  .studentCard button,
  .history-item button,
  .mobile-navigation select {
    min-height: 44px;
  }

  .app input:not([type="checkbox"]):not([type="radio"]),
  .app select,
  .app textarea,
  .account-page input,
  dialog input,
  dialog select,
  dialog textarea {
    font-size: 16px;
  }

  .panel,
  .studentCard,
  .studentTop > div,
  .history-item {
    min-width: 0;
  }
}
