.sl-student-unified,
.sl-student-unified * {
  box-sizing: border-box;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: 0;
}

#students .trPlatformCard,
#students .trPlatformForm,
#students .trPlatformGrid,
#students input,
#students select,
#students textarea,
#students button {
  font-size: 15px;
  line-height: 1.45;
  zoom: 1;
  transform: none;
}

.sl-student-unified .trPlatformHero {
  align-items: start;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sl-student-register-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.sl-student-register-launcher h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.sl-student-register-launcher p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.sl-student-register-launcher button {
  width: auto;
  min-height: 42px;
  padding: 9px 16px;
}

.sl-student-register-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10015;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.sl-student-register-backdrop.open {
  display: flex;
}

.sl-student-register-dialog {
  width: min(860px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
}

[data-sl-student-register-form="1"] {
  padding: 18px;
}

.sl-student-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sl-student-form-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

[data-sl-student-register-form="1"] .trPlatformForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

[data-sl-student-register-form="1"] input,
[data-sl-student-register-form="1"] select,
[data-sl-student-register-form="1"] textarea {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
}

[data-sl-student-register-form="1"] textarea {
  grid-column: 1 / -1;
}

.sl-student-parent-note {
  display: grid;
  gap: 3px;
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.35;
}

.sl-student-parent-note b {
  color: #0f3f9f;
  font-size: 14px;
}

[data-sl-student-register-form="1"] textarea {
  min-height: 74px;
}

[data-sl-student-register-form="1"] input[type="file"] {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
}

.sl-student-register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.sl-student-register-actions button {
  width: auto;
  min-width: 110px;
  min-height: 42px;
  padding: 9px 16px;
}

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

.sl-vehicle-pro-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.sl-vehicle-pro-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

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

.sl-vehicle-schedule-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
}

.sl-vehicle-schedule-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.sl-vehicle-schedule-card.is-editing {
  grid-column: 1 / -1;
}

.sl-vehicle-schedule-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sl-vehicle-schedule-title small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 700;
}

.sl-vehicle-schedule-actions,
.sl-vehicle-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sl-vehicle-schedule-actions button,
.sl-vehicle-row-actions button,
.sl-vehicle-row-add {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.sl-vehicle-schedule-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.sl-vehicle-schedule-table-wrap {
  min-width: 0;
}

.sl-vehicle-schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sl-vehicle-schedule-table th,
.sl-vehicle-schedule-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.sl-vehicle-schedule-table th {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.sl-vehicle-schedule-table td {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.sl-vehicle-schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.sl-vehicle-schedule-table input,
.sl-vehicle-schedule-table select {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.sl-vehicle-schedule-table select[multiple] {
  min-height: 92px;
}

.sl-vehicle-row-add {
  margin-top: 12px;
}

.sl-vehicle-empty-row {
  color: #64748b !important;
  text-align: center !important;
}

.sl-vehicle-pro-list {
  display: grid;
  gap: 10px;
}

.sl-vehicle-pro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

.sl-vehicle-pro-card h4 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.25;
}

.sl-vehicle-pro-card p {
  margin: 2px 0;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.sl-vehicle-number {
  color: #1769e0 !important;
}

.sl-vehicle-pro-card button {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
}

.sl-student-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sl-student-toolbar h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.sl-student-source {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

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

.sl-student-card {
  position: relative;
  display: flex;
  height: 150px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
  font-size: 15px;
  line-height: 1.45;
}

.sl-student-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.sl-student-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sl-student-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(44px, .7fr) minmax(54px, .85fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.sl-student-card-header input,
.sl-student-bulk-actions input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.sl-student-card h4 {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.sl-student-card-detail {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(100, 116, 139, .22);
}

.sl-student-card-detail span,
.sl-student-card-detail strong {
  display: block;
  overflow-wrap: anywhere;
}

.sl-student-card-detail span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.sl-student-card-detail strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.3;
}

.sl-student-card small,
.sl-student-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

.sl-student-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.sl-student-card dt,
.sl-student-card dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.sl-student-card dt {
  color: #64748b;
  font-weight: 900;
}

.sl-student-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 8px;
  border-left: 1px solid rgba(100, 116, 139, .22);
  flex: 0 0 auto;
}

.sl-student-actions button { width: max-content; white-space: nowrap; }

.sl-student-card .sl-student-card-summary,
.sl-student-card .sl-student-card-header,
.sl-student-card .sl-student-card-detail {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sl-student-card .sl-student-card-detail,
.sl-student-card .sl-student-actions {
  border-left: 1px solid rgba(100, 116, 139, .22);
}

.sl-student-card .sl-student-actions button {
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.sl-student-bulk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sl-student-bulk-actions label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.sl-student-bulk-actions button:disabled { opacity: 0.45; cursor: not-allowed; }

.sl-student-actions button,
.sl-student-toolbar button,
.sl-student-modal-actions button {
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.sl-student-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.5);
}

.sl-student-modal-backdrop.open {
  display: flex;
}

.sl-student-modal {
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
  font-size: 15px;
  line-height: 1.45;
}

.sl-student-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.sl-student-modal-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.sl-student-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sl-student-field {
  display: grid;
  gap: 5px;
}

.sl-student-field.full {
  grid-column: 1 / -1;
}

.sl-student-field label {
  color: #334155;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.sl-student-field[hidden] {
  display: none;
}

.sl-student-field input,
.sl-student-field select,
.sl-student-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.sl-student-field textarea {
  min-height: 86px;
  resize: vertical;
}

.sl-student-qr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.sl-student-qr-panel[hidden] { display: none; }
.sl-student-qr-panel p { margin: 3px 0 0; color: #64748b; font-size: 13px; }
.sl-student-qr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sl-student-qr-preview {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(300px, 100%);
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  outline: none;
  scroll-margin: 24px;
}
.sl-student-qr-preview.issued { animation: slStudentQrIssued 1.8s ease-out; }
.sl-student-qr-success { color: #166534 !important; font-weight: 900; }
.sl-student-qr-image { width: min(260px, 100%); margin: 10px auto; }
.sl-student-qr-image svg { display: block; width: 100%; max-width: 100%; height: auto; background: #fff; }
.sl-student-qr-name { display: block; color: #0f172a; overflow-wrap: anywhere; }
.sl-student-qr-panel small { grid-column: 1 / -1; color: #475569; text-align: center; }

@keyframes slStudentQrIssued {
  0%, 35% { border-color: #16a34a; box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.16); }
  100% { border-color: transparent; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-student-qr-preview.issued { animation: none; border-color: #16a34a; }
}

.sl-student-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 1199px) and (min-width: 760px) {
  .sl-student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .sl-student-qr-panel { grid-template-columns: 1fr; }
  .sl-student-qr-actions { justify-content: flex-start; }

  .sl-vehicle-schedule-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sl-vehicle-schedule-card {
    padding: 14px;
  }

  .sl-vehicle-schedule-title {
    align-items: stretch;
    flex-direction: column;
  }

  .sl-vehicle-schedule-actions button {
    flex: 1 1 auto;
  }

  .sl-vehicle-schedule-table thead {
    display: none;
  }

  .sl-vehicle-schedule-table,
  .sl-vehicle-schedule-table tbody,
  .sl-vehicle-schedule-table tr,
  .sl-vehicle-schedule-table td {
    display: block;
    width: 100%;
  }

  .sl-vehicle-schedule-table tr {
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  }

  .sl-vehicle-schedule-table tbody tr:last-child {
    border-bottom: 0;
  }

  .sl-vehicle-schedule-table td {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
    border-bottom: 0;
  }

  .sl-vehicle-schedule-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
  }

  .sl-vehicle-schedule-table .sl-vehicle-empty-row {
    display: block;
  }

  .sl-vehicle-schedule-table .sl-vehicle-empty-row::before {
    content: none;
  }

  .sl-student-register-launcher {
    align-items: stretch;
    flex-direction: column;
  }

  .sl-vehicle-pro-head,
  .sl-vehicle-pro-card {
    align-items: stretch;
    flex-direction: column;
  }

  .sl-student-unified .trPlatformHero {
    grid-template-columns: 1fr;
  }

  [data-sl-student-register-form="1"] .trPlatformForm {
    grid-template-columns: 1fr;
  }

  .sl-student-form-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sl-student-grid { grid-template-columns: minmax(0, 1fr); }

  .sl-student-card {
    height: auto;
    min-height: 180px;
  }

  .sl-student-card-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }

  .sl-student-card-header {
    grid-column: 1 / -1;
  }

  .sl-student-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    margin-top: 2px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(100, 116, 139, .22);
    border-left: 0;
  }

  .sl-student-actions button { width: 100%; }

  .sl-student-card h4 {
    font-size: 22px;
  }

  .sl-student-card-header + .sl-student-card-detail {
    padding-left: 0;
    border-left: 0;
  }

  .sl-student-form-grid {
    grid-template-columns: 1fr;
  }

  .sl-student-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
