@import url("/learninghub-content-bounds.css");
@import url("/maihoc-brand.css");
@import url("/learninghub-credit.css");
.lh-admin {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
  line-height: 1.6;
}
.lh-admin h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 16px 0;
}
.lh-admin h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 12px 0;
}
.lh-admin p {
  margin: 10px 0;
}
.lh-admin .lh-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}
.lh-admin input:not([type="checkbox"]):not([type="range"]),
.lh-admin textarea,
.lh-admin select {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: 8px;
  padding: 10px;
  max-width: 100%;
  width: 100%;
  color: hsl(var(--foreground));
}
.lh-admin input[type="checkbox"] {
  width: auto;
}
.lh-admin button,
.lh-admin .lh-button {
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  margin: 3px;
}
.lh-admin button:disabled {
  opacity: 0.5;
  cursor: default;
}
.lh-admin a {
  color: hsl(var(--primary));
  text-decoration: underline;
}
.lh-admin [aria-current="page"] {
  font-weight: 700;
}
.lh-admin .lh-card {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
  min-width: 0;
}
.lh-admin .lh-stats,
.lh-admin .lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
.lh-admin .lh-stats strong {
  display: block;
  font-size: 2rem;
}
.lh-admin .lh-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.lh-admin .lh-actions input {
  max-width: 320px;
}
.lh-admin .lh-status {
  border-left: 4px solid hsl(var(--primary));
  padding: 10px 16px;
  background: hsl(var(--muted));
}
.lh-admin .lh-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 18px 0;
}
.lh-admin table {
  width: 100%;
  border-collapse: collapse;
}
.lh-admin th,
.lh-admin td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}
.lh-admin .lh-break {
  overflow-wrap: anywhere;
  max-width: 270px;
}
.lh-admin fieldset {
  border: 0;
  min-width: 0;
}
.lh-admin .lh-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}
.lh-admin .lh-preview {
  border: 1px solid hsl(var(--border));
  padding: 24px;
  border-radius: 12px;
  margin: 18px 0;
}
.lh-admin .lh-preview h1 {
  font-size: 2rem;
  font-weight: 700;
}
.lh-admin .lh-preview h2 {
  font-size: 1.5rem;
}
.lh-admin .lh-preview ul {
  list-style: disc;
  padding-left: 24px;
}
.lh-admin .lh-preview ol {
  list-style: decimal;
  padding-left: 24px;
}
.lh-admin .lh-preview pre {
  overflow: auto;
  background: hsl(var(--muted));
  padding: 16px;
}
.lh-admin .lh-preview table {
  display: block;
  overflow: auto;
}
.lh-admin .lh-thumbnail,
.lh-admin .lh-preview img {
  max-height: 240px;
  max-width: 100%;
  object-fit: contain;
}
.lh-admin details {
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 14px;
  margin: 18px 0;
}
.lh-admin summary {
  cursor: pointer;
  font-weight: 650;
}
@media (max-width: 600px) {
  .lh-admin {
    padding: 14px;
  }
  .lh-admin h2 {
    font-size: 1.35rem;
  }
  .lh-admin .lh-actions {
    gap: 6px;
  }
  .lh-admin .lh-preview {
    padding: 14px;
  }
}
/* Admin navigation already provides links to course tools. Keep floating shortcuts clear of forms. */
body:has(.lh-admin) #learninghub-local-navigation {
  display: none;
}

/* Integrated console navigation replaces the archived sidebar and spacer. */
.group\/sidebar-wrapper:has(.lh-admin) [data-sidebar="sidebar"],
.group\/sidebar-wrapper:has(.lh-admin) > div > .group.peer,
.group\/sidebar-wrapper:has(.lh-admin) header > button {
  display: none !important;
}
.lh-admin > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.lh-admin > nav a {
  padding: 8px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  text-decoration: none;
}
.lh-admin > nav a[aria-current="page"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}

/* Shared administration surfaces: scoped to the existing console. */
.lh-admin {
  --lh-admin-ink: #183b39;
  --lh-admin-accent: #176b57;
  max-width: 1440px;
  padding: clamp(16px, 3vw, 40px);
  color: hsl(var(--foreground));
}
.lh-admin > nav {
  padding: 12px;
  gap: 6px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  box-shadow: 0 8px 28px #183b3906;
}
.lh-admin > nav a {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 550;
  color: hsl(var(--muted-foreground));
}
.lh-admin > nav a:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.lh-admin > nav a[aria-current="page"] {
  background: var(--lh-admin-accent);
  color: #fff;
}
.lh-admin h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 12px 0 16px;
}
.lh-admin h3 {
  letter-spacing: -0.02em;
}
.lh-admin .lh-field {
  font-size: 14px;
  font-weight: 550;
  gap: 8px;
  margin: 14px 0;
}
.lh-admin input:not([type="checkbox"]):not([type="range"]),
.lh-admin textarea,
.lh-admin select {
  border-radius: 11px;
  padding: 12px 14px;
  line-height: 1.55;
  font-size: 15px;
  font-weight: 400;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.lh-admin textarea {
  resize: vertical;
  min-height: 110px;
}
.lh-admin :is(input, textarea, select, button, a):focus-visible {
  outline: 3px solid #73b9a7;
  outline-offset: 3px;
}
.lh-admin :is(input, textarea, select):focus {
  border-color: var(--lh-admin-accent);
  box-shadow: 0 0 0 3px #176b5710;
}
.lh-admin button,
.lh-admin .lh-button {
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 550;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.lh-admin button:hover:not(:disabled) {
  background: hsl(var(--muted));
  box-shadow: 0 2px 8px #183b3910;
}
.lh-admin button.lh-primary {
  background: var(--lh-admin-accent);
  border-color: var(--lh-admin-accent);
  color: #fff;
  box-shadow: 0 4px 12px #176b571c;
}
.lh-admin button.lh-primary:hover:not(:disabled) {
  background: #115541;
}
.lh-admin .lh-actions {
  gap: 8px;
  align-items: center;
}
.lh-admin details {
  padding: 18px 20px;
  border-radius: 14px;
  background: hsl(var(--background));
}
.lh-admin summary {
  line-height: 1.6;
}
.lh-admin .lh-status {
  background: #edf6f1;
  border: 1px solid #cce1d5;
  border-radius: 12px;
  padding: 13px 16px;
  color: #184b3b;
  overflow-wrap: anywhere;
}
.lh-admin table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.lh-admin th {
  background: hsl(var(--muted));
  font-weight: 650;
  font-size: 13px;
}
.lh-admin :is(th, td) {
  padding: 14px 12px;
  vertical-align: top;
}
.lh-admin tbody tr:hover {
  background: #176b5705;
}
.lh-admin .lh-preview {
  background: hsl(var(--background));
  padding: clamp(16px, 3vw, 32px);
  border-radius: 18px;
}
@media (max-width: 700px) {
  .lh-admin > nav {
    flex-wrap: nowrap;
    overflow: auto;
    max-width: 100%;
  }
  .lh-admin > nav a {
    flex: none;
  }
  .lh-admin details {
    padding: 14px;
  }
  .lh-admin .lh-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lh-admin * {
    transition: none !important;
  }
}

/* Course overview shared by the public and learner course header. */
.lh-course-overview {
  margin-top: 20px;
  color: hsl(var(--foreground));
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.lh-course-overview h2 {
  font-size: 15px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 10px;
  line-height: 1.5;
  letter-spacing: 0;
}
.lh-course-intro {
  max-width: 78ch;
  margin-bottom: 22px;
}
.lh-course-intro .lh-course-copy-prose {
  font-size: 16px;
  color: hsl(var(--muted-foreground));
}
.lh-course-copy-prose p {
  margin: 0 0 10px;
  white-space: pre-line;
}
.lh-course-copy-prose p:last-child {
  margin-bottom: 0;
}
.lh-course-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lh-course-copy-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--muted) / 0.22);
}
.lh-course-copy-card.lh-course-outcomes {
  background: #eef7f3;
  border-color: #cee3d9;
}
.lh-course-outcomes h2 {
  color: #1c634d;
}
.lh-course-copy-card.lh-course-roadmap {
  background: #f1f6fc;
  border-color: #d7e3f2;
}
.lh-course-copy-card.lh-course-state {
  grid-column: 1/-1;
  background: #fff9ec;
  border-color: #ecdfbf;
}
.lh-course-state h2 {
  color: #72591e;
}
.lh-course-copy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lh-course-copy-list li {
  position: relative;
  padding-left: 21px;
  margin: 9px 0;
}
.lh-course-copy-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d8870;
}
.lh-course-roadmap .lh-course-copy-list {
  counter-reset: course-step;
}
.lh-course-roadmap .lh-course-copy-list li {
  counter-increment: course-step;
  padding-left: 30px;
}
.lh-course-roadmap .lh-course-copy-list li::before {
  content: counter(course-step);
  top: 0.25em;
  left: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e0eaf7;
  color: #315c8b;
  font-size: 11px;
  font-weight: 700;
}
.lh-course-overview > .lh-course-outcomes {
  margin-top: 16px;
}
@media (max-width: 700px) {
  .lh-course-copy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .lh-course-copy-card {
    padding: 16px;
  }
  .lh-course-intro .lh-course-copy-prose {
    font-size: 15px;
  }
}
.lh-workshop-heading {
  padding: 24px;
  border: 1px solid #cde1da;
  border-radius: 18px;
  background: linear-gradient(120deg, #ecf7f1, #f1f7fc);
  margin-bottom: 22px;
}
.lh-workshop-heading small {
  color: #357360;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}
.lh-workshop-heading p {
  color: #54716b;
  max-width: 760px;
}
.lh-workshop-free {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #bbd7cb;
  border-radius: 30px;
  font-size: 12px;
  background: #fff;
  color: #265f49;
}
.lh-workshop-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.lh-workshop-metrics span {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  font-size: 13px;
  background: hsl(var(--background));
}
.lh-workshop-task,
.lh-workshop-source {
  padding: 18px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  margin: 14px 0;
  background: hsl(var(--background));
}
.lh-workshop-task small {
  font-family: ui-monospace, monospace;
  color: hsl(var(--muted-foreground));
  overflow-wrap: anywhere;
}
.lh-workshop-error {
  color: #a13b36;
  border-left: 3px solid #d69086;
  padding-left: 10px;
}
.lh-workshop :is(p, li) {
  overflow-wrap: anywhere;
}
.lh-workshop ul {
  list-style: disc;
  padding-left: 22px;
}
.lh-workshop textarea {
  width: 100%;
}
