.lm {
  --lm-action: #385bd5;
  --lm-line: #dce2eb;
  --lm-muted: #586271;
  color: #20252d;
  font:
    15px/1.55 'Pretendard-Regular',
    Pretendard,
    sans-serif;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}
.lm * {
  box-sizing: border-box;
}
.lm h1,
.lm h2,
.lm h3,
.lm h4,
.lm strong {
  font-family: 'Pretendard-Bold', Pretendard, sans-serif;
  color: #20252d;
}
.lm h1 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  margin: 0;
}
.lm h2 {
  font-size: 23px;
  margin: 0;
}
.lm h3 {
  font-size: 19px;
  margin: 0 0 0.6rem;
}
.lm h4 {
  font-size: 16px;
  margin: 0;
}
.lm p {
  margin: 0.25rem 0;
  white-space: pre-line;
}
.lm a {
  color: var(--lm-action);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lm button,
.lm input,
.lm textarea,
.lm select {
  font: inherit;
  color: inherit;
  max-width: 100%;
}
.lm button,
.lm select,
.lm input:not([type='checkbox']),
.lm textarea {
  border: 1px solid #bcc6d3;
  border-radius: 7px;
  background: white;
  padding: 7px 12px;
  line-height: 1.4;
}
.lm button {
  cursor: pointer;
  min-height: 38px;
}
.lm button:hover {
  border-color: var(--lm-action);
}
.lm button:disabled {
  opacity: 0.55;
  cursor: default;
}
.lm .lm-primary,
.lm .lm-tabs [aria-pressed='true'] {
  color: #fff;
  border-color: var(--lm-action);
  background: var(--lm-action);
}
.lm :focus-visible,
.ll-nav__link:focus-visible {
  outline: 3px solid #334db7;
  outline-offset: 3px;
}
.lm-heading,
.lm-row,
.lm-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.lm-heading {
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
}
.lm-heading .lm-bar a {
  font-size: 14px;
}
.lm-bar {
  margin: 8px 0;
}
.lm-tabs {
  gap: 4px;
  border-bottom: 1px solid var(--lm-line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.lm-tabs button {
  font-family: 'Pretendard-Bold', sans-serif;
  padding: 8px 16px;
}
.lm-row {
  justify-content: space-between;
  border-bottom: 1px solid var(--lm-line);
  padding: 14px 0;
}
.lm-row > div {
  min-width: 0;
}
.lm-row > div:first-child {
  flex: 1 1 160px;
}
.lm-row strong {
  font-size: 16px;
}
.lm-section {
  margin: 22px 0;
  padding-top: 16px;
  border-top: 2px solid #d3dbea;
}
.lm-section .lm-section {
  border-top-width: 1px;
}
.lm-meta,
.lm-pending,
.lm-field {
  color: var(--lm-muted);
  font-size: 14px;
}
.lm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  margin: 6px 0;
}
.lm-field textarea {
  width: min(100%, 560px);
}
.lm-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.lm-check input {
  accent-color: var(--lm-action);
  width: 17px;
  height: 17px;
  margin: 0;
}
.lm summary {
  cursor: pointer;
  color: #354968;
  font-weight: 600;
  padding: 8px 0;
}
.lm-dialog {
  position: fixed;
  inset: 0;
  max-width: min(720px, calc(100vw - 24px));
  width: 100%;
  max-height: 88vh;
  margin: auto;
  padding: 24px 28px;
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 64px #16213d28;
  overflow: auto;
}
.lm-dialog::backdrop {
  background: #18203470;
}
.lm-dialog > .lm-bar:first-child {
  justify-content: space-between;
  margin: 0 0 16px;
}
.lm-preview,
.lm-activity {
  background: #f6f8fc;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  padding: 15px;
  margin: 12px 0;
}
.lm-error {
  color: #913728;
  background: #fff6ef;
  padding: 10px;
  margin: 8px 0;
}
.lm-error button {
  margin-left: 8px;
}
.lm-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-height: 200px;
  overflow: auto;
  padding: 8px 2px;
}
.lm-confirm {
  margin: 12px 0;
}
.lm-answer {
  padding: 12px 0;
  border-bottom: 1px solid var(--lm-line);
}
#ll-assignment-legend {
  font:
    13px 'Pretendard-Medium',
    sans-serif;
  color: #333b7c;
}
.ll-nav__link.ll-has-assignment {
  position: relative;
}
.ll-has-assignment::after {
  content: '';
  position: absolute;
  right: 0;
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333b7c;
  box-shadow: 0 0 0 1px white;
}
.ll-assignment-overview {
  margin: 0 0 16px;
}
.ll-assignment-overview h2 {
  font-size: 21px;
}
.ll-assignment-card {
  background: #f1f5ff;
  border-left: 4px solid #455fc1;
  padding: 12px 16px;
  margin: 0 0 12px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ll-assignment-card > div:first-child {
  flex: 1 1 220px;
}
.ll-assignment-card > div:empty {
  display: none;
}
.ll-assignment-card h3 {
  margin: 2px 0;
  font-size: 18px;
}
@media (max-width: 620px) {
  .lm-heading {
    align-items: flex-start;
  }
  .lm-dialog {
    padding: 16px;
  }
  .lm-section {
    margin: 16px 0;
  }
  .lm-bar {
    gap: 8px;
  }
  .lm-field input,
  .lm-field select {
    min-width: 0;
  }
  .lm-row .lm-bar {
    margin: 0;
  }
  .lm-tabs button {
    padding: 8px 10px;
  }
  .lm-row {
    gap: 8px;
  }
  .lm-dialog .lm-activity > .lm-bar {
    align-items: flex-start;
  }
}
.lm-student-head,
.lm-student-row {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: minmax(65px, 0.85fr) minmax(110px, 1.3fr) minmax(100px, 1.2fr) minmax(
      65px,
      0.8fr
    ) minmax(64px, 0.7fr) minmax(95px, auto);
}
.lm-student-head {
  padding: 9px 12px;
  color: var(--lm-muted);
  background: #f5f7fa;
  font-size: 13px;
}
.lm-student-row {
  min-height: 46px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--lm-line);
}
.lm-dialog[open] {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.lm-dialog > .lm-bar:first-child,
.lm-dialog-footer {
  flex: none;
  padding: 12px 22px;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--lm-line);
}
.lm-dialog-body {
  overflow: auto;
  min-height: 0;
  padding: 12px 22px 18px;
}
.lm-dialog-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-bottom: 0;
  border-top: 1px solid var(--lm-line);
}
.lm-dialog-footer:empty {
  display: none;
}
.lm-dialog-footer .lm-write-state {
  flex-basis: 100%;
}
.lm-dialog-footer .lm-write-state:empty {
  display: none;
}
@media (max-width: 880px) {
  .main.lm {
    padding: 14px;
  }
  .lm-student-row {
    grid-template-columns: minmax(60px, 1fr) minmax(60px, 1fr);
    gap: 4px 12px;
    padding: 10px 0;
  }
  .lm-student-head {
    display: none;
  }
  .lm-student-row [data-column]:not(strong)::before {
    content: attr(data-column);
    margin-right: 5px;
    font-size: 13px;
    color: var(--lm-muted);
  }
  .lm-student-row strong {
    grid-column: 1;
  }
  .lm-student-row a {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

.lm-badge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}

.lm-badge-chips li {
  background: #eef2fd;
  border: 1px solid var(--lm-line);
  border-radius: 999px;
  color: var(--lm-action);
  font-size: 13px;
  padding: 3px 10px;
}
