.instructor,
.instructor-dialog {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  color: #17242a;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}
.instructor *,
.instructor-dialog * {
  box-sizing: border-box;
}
.instructor {
  min-height: 100vh;
  background: #f4f6f7;
}
.instructor button,
.instructor input,
.instructor select,
.instructor textarea,
.instructor-dialog button,
.instructor-dialog input,
.instructor-dialog select,
.instructor-dialog textarea {
  font: inherit;
}
.instructor button,
.instructor-dialog button {
  cursor: pointer;
}
.instructor button:disabled,
.instructor-dialog button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.instructor a {
  color: inherit;
  text-decoration: none;
}
.ia-header {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #e3e9eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.ia-brand,
.ia-header-actions,
.ia-button,
.ia-icon-button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ia-brand {
  gap: 12px;
  font-size: 18px;
  font-weight: 650;
  color: #0d514e !important;
}
.ia-brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #7a868b;
  margin-top: 1px;
}
.ia-header-actions {
  gap: 12px;
}
.ia-private {
  font-size: 13px;
  color: #47726b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
}
.ia-button {
  display: inline-flex;
  justify-content: center;
  background: #fff;
  border: 1px solid #d8e1e4;
  border-radius: 7px;
  padding: 9px 15px;
  font-weight: 550;
  color: #273b43;
  min-height: 39px;
  white-space: nowrap;
  transition: background 0.15s;
}
.ia-button:hover {
  background: #f4f8f8;
}
.ia-primary {
  color: #fff;
  background: #0c817c;
  border-color: #0c817c;
}
.ia-primary:hover {
  background: #076e69;
}
.ia-danger {
  background: #c93943;
  color: #fff;
  border-color: #c93943;
}
.ia-danger:hover {
  background: #b22c35;
}
.ia-danger-outline {
  color: #bb3340;
  border-color: #edc4c7;
}
.ia-danger-outline:hover {
  background: #fff3f4;
}
.ia-icon-button {
  justify-content: center;
  padding: 8px;
  background: transparent;
  border: 0;
  color: #6c7c82;
  border-radius: 6px;
}
.ia-icon-button:hover {
  background: #eef3f4;
}
.ia-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1720px;
  margin: auto;
}
.ia-nav {
  padding: 30px 20px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
}
.ia-nav > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5c7079;
  padding: 13px 16px;
  text-align: left;
  margin-bottom: 5px;
  font-weight: 550;
}
.ia-nav > button:hover {
  background: #e9eeee;
}
.ia-nav > button.active {
  color: #08766f;
  background: #e1efec;
}
.ia-nav-note {
  font-size: 12px;
  line-height: 1.8;
  color: #8d9ba0;
  padding: 25px 16px;
}
.ia-main {
  padding: 32px 36px 20px;
  min-width: 0;
}
.ia-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.ia-section-heading h1 {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.ia-section-heading p,
.ia-card > p,
.ia-card-heading p {
  color: #788b93;
  margin: 0;
  font-size: 14px;
}
.ia-card {
  background: white;
  border: 1px solid #e3e9eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 2px 4px #162d3510;
}
.ia-card h2 {
  font-size: 17px;
  margin: 0 0 15px;
  font-weight: 650;
}
.ia-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.ia-card-heading h2 {
  margin: 0;
}
.ia-card-heading > span {
  font-size: 12px;
  color: #81969d;
  background: #f2f6f7;
  padding: 3px 9px;
  border-radius: 4px;
}
.ia-card-heading p {
  margin-top: 5px;
}
.ia-metric-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.ia-metric-periods > .ia-card {
  margin: 0;
}
.ia-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
.ia-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
}
.ia-field > span {
  color: #546a73;
  font-size: 13px;
}
.ia-field input,
.ia-field select,
.ia-field textarea {
  width: 100%;
  min-width: 0;
  color: #263b44;
  background: #fff;
  border: 1px solid #d8e2e6;
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  min-height: 41px;
}
.ia-field input:focus,
.ia-field select:focus,
.ia-field textarea:focus,
.ia-search:focus-within {
  border-color: #0b827c;
  box-shadow: 0 0 0 3px #0b827c13;
}
.ia-field input:read-only {
  background: #f2f5f6;
  color: #78898e;
}
.ia-metric-field > .ia-field:first-child input {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.ia-metric-field > .ia-field + .ia-field {
  margin-top: 10px;
}
.ia-metric-field > .ia-field + .ia-field > span {
  font-size: 11px;
  color: #91a0a7;
}
.ia-metric-field > .ia-field + .ia-field > input {
  font-size: 13px;
  min-height: 35px;
  padding: 7px 10px;
  background: #fafcfc;
}
.ia-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  margin-bottom: 22px;
}
.ia-savebar p,
.ia-savebar > span {
  color: #819097;
  font-size: 12px;
  margin: 0;
}
.ia-card .ia-savebar {
  border-top: 1px solid #edf1f2;
  margin: 25px 0 0;
}
.ia-pill {
  display: inline-block;
  color: #697f87;
  background: #eef3f5;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 500;
}
.ia-product-status-live {
  color: #2d8069;
  background: #e6f4ed;
}
.ia-product-status-rejected {
  color: #b4464f;
  background: #fbecef;
}
.ia-course-preset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8fbfa;
  border-color: #dbe9e6;
  margin-top: 6px;
}
.ia-course-preset > div {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #0c817c;
}
.ia-course-preset h2 {
  margin-bottom: 4px;
  font-size: 15px;
}
.ia-course-preset p {
  margin: 0;
  color: #83938f;
  font-size: 12px;
}
.ia-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.ia-span-all {
  grid-column: 1/-1;
}
.ia-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.ia-table-toolbar > span {
  color: #82939b;
  font-size: 13px;
}
.ia-search {
  display: flex;
  align-items: center;
  border: 1px solid #d8e2e6;
  border-radius: 6px;
  gap: 8px;
  padding: 0 12px;
  max-width: 400px;
  width: 100%;
  color: #90a0a7;
}
.ia-search input {
  border: 0;
  outline: none;
  min-width: 0;
  padding: 10px 0;
  background: none;
  width: 100%;
  color: #273b43;
}
.ia-table-wrap {
  overflow: auto;
  width: 100%;
}
.ia-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
.ia-table th {
  font-weight: 500;
  color: #7f919a;
  background: #f7f9fa;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edef;
}
.ia-table td {
  padding: 17px 14px;
  border-bottom: 1px solid #eef2f3;
  vertical-align: middle;
}
.ia-table tr:last-child td {
  border-bottom: 0;
}
.ia-table td > small {
  display: block;
  font-size: 11px;
  color: #8a9ba3;
  margin-top: 4px;
}
.ia-table td > strong {
  display: block;
  font-weight: 550;
}
.ia-product-cell {
  display: flex;
  gap: 12px;
  min-width: 300px;
  max-width: 500px;
  white-space: normal;
}
.ia-product-cell img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  background: #f4f5f6;
  border: 1px solid #e5eaec;
  border-radius: 5px;
  flex-shrink: 0;
}
.ia-product-cell strong {
  font-size: 12px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.ia-product-cell small {
  display: block;
  font-size: 10px;
  color: #8c9ca4;
  margin-top: 4px;
}
.ia-text-button {
  border: 0;
  background: transparent;
  color: #0a8279;
  font: inherit;
  font-weight: 550;
  padding: 5px 0;
  white-space: nowrap;
}
.ia-text-button:hover {
  text-decoration: underline;
}
.ia-empty {
  text-align: center !important;
  padding: 45px !important;
  color: #91a2ab;
}
.ia-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ia-data-grid .ia-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ia-data-grid .ia-card h2 {
  margin: 14px 0 9px;
}
.ia-data-grid .ia-card p {
  font-size: 13px;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
}
.ia-feature-icon {
  background: #e8f4f0;
  color: #1a8a7b;
  padding: 12px;
  border-radius: 8px;
  display: flex;
}
.ia-reset-card {
  border-color: #efd7d8;
  background: #fffafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.ia-reset-card h2 {
  color: #a54148;
  margin-bottom: 8px;
  font-size: 15px;
}
.ia-reset-card p {
  font-size: 12px;
  color: #a68487;
  margin: 0;
}
.ia-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.ia-footer {
  display: flex;
  justify-content: space-between;
  color: #a0adb3;
  font-size: 11px;
  padding: 10px 0 20px;
  gap: 20px;
}
.ia-status:empty {
  display: none;
}
.ia-status {
  padding: 10px 14px;
  background: #e6f3ee;
  color: #167a63;
  border-radius: 6px;
  margin-bottom: 18px;
}
.ia-status[data-type="error"] {
  background: #fff0f0;
  color: #be3943;
}
.ia-loading {
  display: grid;
  place-items: center;
  color: #7c9098;
}
.ia-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background:
    radial-gradient(ellipse at 20% 0, #e7f1ed, transparent 60%), #f6f8f9;
}
.ia-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #277c71;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 28px;
}
.ia-login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  background: #fff;
  border: 1px solid #e0e9e6;
  border-radius: 14px;
  box-shadow: 0 16px 50px #27483e0b;
}
.ia-eyebrow {
  color: #6a9a8f;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 650;
}
.ia-login-card h1 {
  font-size: 26px;
  margin: 12px 0;
}
.ia-login-card > p {
  font-size: 14px;
  color: #82958f;
  line-height: 1.8;
  margin: 0 0 28px;
}
.ia-login-card a {
  display: block;
  text-align: center;
  color: #317f75;
  font-size: 13px;
  margin-top: 23px;
}
.ia-login-note {
  color: #acb8b4;
  text-align: center;
  font-size: 11px;
  margin-top: 25px;
  border-top: 1px solid #edf2f0;
  padding-top: 20px;
}
.ia-login-error {
  color: #bb3946;
  font-size: 12px;
  min-height: 18px;
  margin: 10px 0;
}
.ia-wide {
  width: 100%;
}
.instructor-dialog {
  padding: 0;
  border: 1px solid #dce6e7;
  border-radius: 12px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 25px 100px #0a232a40;
  background: #fff;
  overflow: auto;
}
.instructor-dialog::backdrop {
  background: #10252d66;
  backdrop-filter: blur(2px);
}
.ia-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid #e8edef;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
.ia-dialog-heading h2 {
  font-size: 19px;
  font-weight: 650;
  margin: 0;
}
.ia-dialog-body {
  padding: 26px;
}
.ia-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e8edef;
  padding: 16px 26px;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.ia-dialog-error {
  color: #bd3b45;
  font-size: 12px;
  margin: 0 26px 15px;
}
.ia-dialog-error:empty {
  display: none;
}
.ia-confirm-text {
  margin: 0;
  line-height: 1.9;
  color: #6d8089;
}
.ia-help {
  font-size: 12px;
  line-height: 1.8;
  color: #899aa1;
  margin: 20px 0 0;
}
@media (min-width: 1700px) {
  .ia-main {
    padding-right: 70px;
  }
}
@media (max-width: 1200px) {
  .ia-main {
    padding: 28px 24px;
  }
  .ia-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .ia-nav {
    padding: 28px 12px;
  }
  .ia-metric-periods {
    grid-template-columns: 1fr;
  }
  .ia-data-grid {
    grid-template-columns: 1fr;
  }
  .ia-data-grid .ia-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
    margin: 0;
  }
  .ia-data-grid .ia-card .ia-feature-icon {
    grid-row: 1/3;
  }
  .ia-data-grid .ia-card h2 {
    margin: 0 0 5px;
  }
  .ia-data-grid .ia-card p {
    grid-column: 2;
    margin: 0;
  }
  .ia-data-grid .ia-card button {
    grid-column: 3;
    grid-row: 1/3;
  }
  .ia-data-grid {
    margin-bottom: 22px;
  }
  .ia-private {
    display: none;
  }
}
@media (max-width: 800px) {
  .ia-header {
    height: 70px;
    padding: 0 18px;
  }
  .ia-brand {
    font-size: 16px;
  }
  .ia-header-actions {
    gap: 7px;
  }
  .ia-header-actions > .ia-button {
    font-size: 12px;
    padding: 7px 9px;
    min-height: 34px;
  }
  .ia-header-actions > [data-admin-click="reload"] {
    display: none;
  }
  .ia-layout {
    display: block;
  }
  .ia-nav {
    display: flex;
    gap: 4px;
    overflow: auto;
    height: auto;
    position: sticky;
    top: 70px;
    z-index: 8;
    background: #f4f6f7;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e7e8;
  }
  .ia-nav > button {
    min-width: max-content;
    padding: 10px 12px;
    margin: 0;
    width: auto;
    gap: 7px;
    font-size: 13px;
  }
  .ia-nav-note {
    display: none;
  }
  .ia-main {
    padding: 24px 18px;
  }
  .ia-section-heading h1 {
    font-size: 24px;
  }
  .ia-section-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .ia-section-heading p {
    font-size: 12px;
    max-width: 400px;
  }
  .ia-section-heading > .ia-pill {
    display: none;
  }
  .ia-card {
    padding: 20px;
  }
  .ia-course-preset {
    align-items: flex-start;
    flex-direction: column;
  }
  .ia-savebar {
    align-items: flex-start;
    gap: 15px;
  }
  .ia-savebar > p {
    max-width: 180px;
  }
  .ia-data-grid .ia-card {
    display: flex;
    align-items: flex-start;
  }
  .ia-data-grid .ia-card h2 {
    margin: 0;
  }
  .ia-data-grid .ia-card p {
    margin: 8px 0 16px;
  }
  .ia-data-grid .ia-card .ia-feature-icon {
    display: none;
  }
  .ia-reset-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .ia-table-toolbar {
    gap: 12px;
  }
  .ia-table-toolbar > span {
    white-space: nowrap;
  }
  .ia-footer {
    flex-direction: column;
    gap: 5px;
  }
  .ia-dialog-heading,
  .ia-dialog-body,
  .ia-dialog-footer {
    padding: 20px;
  }
  .ia-dialog-error {
    margin-left: 20px;
    margin-right: 20px;
  }
}
@media (max-width: 480px) {
  .ia-header {
    padding: 0 12px;
  }
  .ia-brand {
    font-size: 14px;
    gap: 8px;
  }
  .ia-brand small {
    font-size: 10px;
  }
  .ia-brand > svg {
    width: 23px;
  }
  .ia-header-actions > [data-admin-click="seller"] {
    font-size: 11px;
    padding: 6px 8px;
  }
  .ia-nav {
    padding: 10px;
    gap: 1px;
  }
  .ia-nav > button {
    padding: 9px 10px;
    font-size: 12px;
  }
  .ia-nav > button svg {
    display: none;
  }
  .ia-main {
    padding: 20px 12px;
  }
  .ia-card {
    padding: 17px;
    border-radius: 8px;
  }
  .ia-metric-grid {
    gap: 20px 12px;
  }
  .ia-metric-field > .ia-field:first-child input {
    font-size: 20px;
    padding: 8px 10px;
  }
  .ia-metric-field > .ia-field + .ia-field > span {
    font-size: 10px;
  }
  .ia-field {
    gap: 6px;
  }
  .ia-field > span {
    font-size: 12px;
  }
  .ia-field input,
  .ia-field select,
  .ia-field textarea {
    padding: 9px 10px;
    font-size: 14px;
  }
  .ia-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ia-section-heading .ia-button {
    font-size: 12px;
    padding: 8px 10px;
    min-height: 35px;
  }
  .ia-section-heading h1 {
    font-size: 22px;
  }
  .ia-section-heading p {
    font-size: 12px;
  }
  .ia-savebar {
    flex-direction: column;
    align-items: stretch;
  }
  .ia-savebar > p {
    max-width: none;
  }
  .ia-savebar > .ia-button {
    width: 100%;
  }
  .ia-login-card {
    padding: 30px 25px;
  }
  .ia-login-card h1 {
    font-size: 24px;
  }
  .ia-dialog-body .ia-form-grid {
    grid-template-columns: 1fr;
  }
  .ia-dialog-heading h2 {
    font-size: 18px;
  }
  .ia-header-actions .ia-icon-button {
    padding: 6px;
  }
  .ia-table th,
  .ia-table td {
    padding: 12px 10px;
  }
  .ia-table-toolbar > .ia-search input {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .instructor .ia-field input,
  .instructor .ia-field select,
  .instructor .ia-field textarea,
  .instructor-dialog .ia-field input,
  .instructor-dialog .ia-field select,
  .instructor-dialog .ia-field textarea,
  .ia-table-toolbar > .ia-search input {
    font-size: 16px;
  }
}
