/* =========================================================
   FINO TEACHER EXPERIENCE v1
   ========================================================= */

.fino-teacher-home {
  margin: 26px 0;
  display: grid;
  gap: 18px;
}

.fino-teacher-hero,
.fino-teacher-panel {
  border: 1px solid rgba(66, 153, 225, .18);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 38px rgba(34, 82, 116, .08);
}

.fino-teacher-hero {
  border-radius: 26px;
  padding: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.99),
      rgba(237,247,255,.98)
    );
}

.fino-teacher-eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #56758e;
}

.fino-teacher-title {
  margin: 0;
  color: #172f43;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.fino-teacher-subtitle {
  margin: 9px 0 0;
  max-width: 760px;
  color: #63798b;
  font-size: 16px;
  line-height: 1.45;
}

.fino-teacher-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fino-teacher-stat {
  min-height: 112px;
  padding: 19px;
  border: 1px solid #e4edf4;
  border-radius: 19px;
  background: #fff;
}

.fino-teacher-stat-value {
  display: block;
  margin-bottom: 6px;
  color: #19496e;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.fino-teacher-stat-label {
  color: #677c8e;
  font-size: 14px;
  font-weight: 750;
}

.fino-teacher-stat.is-attention {
  background: #fff7f1;
  border-color: rgba(224, 109, 51, .28);
}

.fino-teacher-stat.is-attention .fino-teacher-stat-value {
  color: #b45323;
}

.fino-teacher-panel {
  padding: 23px;
  border-radius: 23px;
}

.fino-teacher-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.fino-teacher-panel h2 {
  margin: 0;
  color: #183247;
  font-size: 21px;
}

.fino-teacher-panel-sub {
  margin: 5px 0 0;
  color: #748696;
}

.fino-teacher-empty {
  padding: 18px;
  border-radius: 16px;
  background: #eefaf4;
  color: #286f51;
  font-weight: 750;
}

.fino-teacher-attention-list,
.fino-teacher-student-list {
  display: grid;
  gap: 10px;
}

.fino-teacher-attention-card {
  padding: 18px;
  border-radius: 17px;
  border: 1px solid rgba(216, 101, 43, .25);
  background: #fff8f3;
}

.fino-teacher-attention-card strong {
  display: block;
  margin-bottom: 4px;
  color: #743816;
  font-size: 17px;
}

.fino-teacher-attention-card p {
  margin: 5px 0;
  color: #735b4e;
}

.fino-teacher-attention-card .recommendation {
  margin-top: 10px;
  font-weight: 800;
  color: #9b4f28;
}

.fino-teacher-student {
  display: grid;
  grid-template-columns:
    minmax(130px, 1.1fr)
    minmax(125px, .9fr)
    minmax(180px, 1.5fr)
    85px;
  gap: 13px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid #e5edf3;
  border-radius: 16px;
  background: #fff;
}

.fino-teacher-student-name {
  color: #19354a;
  font-weight: 850;
}

.fino-teacher-focus {
  overflow: hidden;
  color: #687d8e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fino-teacher-accuracy {
  color: #235879;
  font-weight: 850;
  text-align: right;
}

.fino-teacher-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2b6697;
  font-size: 12px;
  font-weight: 850;
}

.fino-teacher-status[data-status="SELF_GUIDED"] {
  background: #edf9f3;
  color: #267252;
}

.fino-teacher-status[data-status="OBSERVING"] {
  background: #eef6ff;
  color: #2c6798;
}

.fino-teacher-status[data-status="TRAINING"],
.fino-teacher-status[data-status="RETEST"] {
  background: #fff7e7;
  color: #966416;
}

.fino-teacher-status[data-status="NEEDS_ATTENTION"] {
  background: #fff0e7;
  color: #ae4c1f;
}

.fino-teacher-manage-button {
  min-height: 52px;
  padding: 0 20px;
  border: 2px solid #7cc4f4;
  border-radius: 999px;
  background: #fff;
  color: #205b87;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.fino-teacher-manage-button:hover {
  background: #f1f9ff;
}

.fino-teacher-admin-header {
  margin: 26px 0 15px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #eef7fd;
  color: #244e6c;
}

.fino-teacher-admin-header strong {
  display: block;
  font-size: 19px;
}

.fino-teacher-admin-header span {
  display: block;
  margin-top: 3px;
  color: #698093;
}

[data-fino-admin-content="true"] {
  display: none !important;
}

.fino-teacher-admin-open [data-fino-admin-content="true"] {
  display: revert !important;
}

.fino-teacher-admin-header {
  display: none;
}

.fino-teacher-admin-open .fino-teacher-admin-header {
  display: block;
}


/* =========================================================
   LESSON FINISH
   ========================================================= */

.fino-finish-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px !important;
}

.fino-continue-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 66px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #216db8,
      #428bd2
    );
  box-shadow: 0 12px 26px rgba(33,109,184,.24);
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}

.fino-continue-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(33,109,184,.29);
}

.fino-continue-button:active {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .fino-teacher-stats {
    grid-template-columns: 1fr;
  }

  .fino-teacher-student {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fino-teacher-focus {
    white-space: normal;
  }

  .fino-teacher-accuracy {
    text-align: left;
  }

  .fino-finish-actions {
    grid-template-columns: 1fr;
  }

  .fino-continue-button {
    grid-column: auto;
  }
}


/* =========================================================
   FINO TEACHER DASHBOARD v2
   ========================================================= */

.fino-teacher-class-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #e2ebf2;
  border-radius: 17px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}

.fino-teacher-class-strip > div {
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fino-teacher-class-strip > div + div {
  border-left: 1px solid #e2ebf2;
}

.fino-teacher-class-strip strong {
  color: #214f70;
  font-size: 18px;
}

.fino-teacher-class-strip span {
  color: #718495;
  font-size: 13px;
  font-weight: 700;
}


.fino-teacher-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fino-teacher-filter {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d4e4ef;
  border-radius: 999px;
  background: #fff;
  color: #496c84;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.fino-teacher-filter:hover {
  background: #f3f9fd;
}

.fino-teacher-filter.is-active {
  border-color: #75bcef;
  background: #eaf6ff;
  color: #195f92;
}


button.fino-teacher-student {
  width: 100%;
  grid-template-columns:
    minmax(130px, 1.1fr)
    minmax(130px, .85fr)
    minmax(180px, 1.5fr)
    34px
    80px;

  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;

  transition:
    transform .12s ease,
    border-color .12s ease,
    box-shadow .12s ease;
}

button.fino-teacher-student:hover {
  transform: translateY(-1px);
  border-color: #add5f0;
  box-shadow: 0 6px 18px rgba(34,82,116,.07);
}

.fino-teacher-trend {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #8293a1;
}

.fino-teacher-trend[data-trend="IMPROVING"] {
  color: #2c8b62;
}

.fino-teacher-trend[data-trend="DECLINING"] {
  color: #c05a32;
}

.fino-teacher-trend[data-trend="STABLE"] {
  color: #54748c;
}


.fino-teacher-attention-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}


/* =========================================================
   STUDENT DETAIL
   ========================================================= */

body.fino-teacher-detail-open {
  overflow: hidden;
}

.fino-teacher-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: flex-end;

  padding: 20px;

  background:
    rgba(20, 41, 57, .22);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.fino-teacher-detail-backdrop[hidden] {
  display: none !important;
}

.fino-teacher-detail {
  position: relative;

  width: min(470px, 100%);
  height: 100%;

  overflow-y: auto;

  padding: 30px;

  border: 1px solid rgba(75,151,205,.22);
  border-radius: 25px;

  background: #fff;

  box-shadow:
    0 24px 70px rgba(20,51,72,.22);
}

.fino-teacher-detail-close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border: 1px solid #dce8f0;
  border-radius: 999px;

  background: #f7fbfe;
  color: #376784;

  font: inherit;
  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}

.fino-teacher-detail-name {
  margin: 4px 55px 12px 0;
  color: #153147;
  font-size: 30px;
}

.fino-teacher-detail-summary {
  margin-top: 20px;
  padding: 16px 17px;

  border-radius: 16px;

  background: #eff7fd;
  color: #365d76;

  font-weight: 700;
  line-height: 1.45;
}


.fino-teacher-detail-grid {
  margin-top: 18px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fino-teacher-detail-grid > div {
  padding: 14px;

  border: 1px solid #e4edf3;
  border-radius: 15px;

  background: #fbfdff;
}

.fino-teacher-detail-grid span {
  display: block;

  margin-bottom: 5px;

  color: #7a8d9d;
  font-size: 12px;
  font-weight: 750;
}

.fino-teacher-detail-grid strong {
  color: #214e6d;
  font-size: 18px;
}


.fino-teacher-detail-section {
  margin-top: 24px;
}

.fino-teacher-detail-section h3 {
  margin: 0 0 10px;

  color: #19374d;
  font-size: 17px;
}

.fino-teacher-detail-section p {
  margin: 0;

  color: #63788a;
  line-height: 1.55;
}


.fino-teacher-focus-card {
  display: grid;
  gap: 6px;

  padding: 16px;

  border: 1px solid #dbeaf4;
  border-radius: 16px;

  background: #f7fbfe;
}

.fino-teacher-focus-card strong {
  color: #1c5277;
  font-size: 18px;
}

.fino-teacher-focus-card span {
  color: #718493;
}


.fino-teacher-detail-section.is-recommendation {
  padding: 17px;

  border: 1px solid #dcebdc;
  border-radius: 17px;

  background: #f2faf5;
}

.fino-teacher-detail-section.is-recommendation h3 {
  color: #27684d;
}

.fino-teacher-detail-section.is-recommendation p {
  color: #3e6956;
  font-weight: 700;
}


@media (max-width: 760px) {
  .fino-teacher-class-strip {
    grid-template-columns: 1fr;
  }

  .fino-teacher-class-strip > div + div {
    border-left: 0;
    border-top: 1px solid #e2ebf2;
  }

  button.fino-teacher-student {
    grid-template-columns: 1fr;
  }

  .fino-teacher-trend {
    text-align: left;
  }

  .fino-teacher-detail-backdrop {
    padding: 8px;
  }

  .fino-teacher-detail {
    border-radius: 20px;
    padding: 24px;
  }
}


/* =========================================================
   TEACHER CURRICULUM POSITION
   ========================================================= */

button.fino-teacher-student {
  grid-template-columns:
    minmax(125px, 1fr)
    minmax(120px, .8fr)
    minmax(150px, 1fr)
    minmax(160px, 1.15fr)
    34px
    75px;
}

.fino-teacher-curriculum {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fino-teacher-curriculum strong {
  color: #234e6c;
  font-size: 14px;
  white-space: nowrap;
}

.fino-teacher-curriculum span {
  color: #8293a0;
  font-size: 11px;
  font-weight: 700;
}


.fino-teacher-learning-position {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.fino-teacher-learning-position > div {
  padding: 13px 14px;
  border: 1px solid #e2ebf2;
  border-radius: 14px;
  background: #f9fcfe;
}

.fino-teacher-learning-position span {
  display: block;
  margin-bottom: 4px;
  color: #8293a0;
  font-size: 11px;
  font-weight: 750;
}

.fino-teacher-learning-position strong {
  color: #214f6e;
  font-size: 16px;
}


@media (max-width: 900px) {
  button.fino-teacher-student {
    grid-template-columns:
      1fr
      1fr;
  }

  .fino-teacher-curriculum {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  button.fino-teacher-student {
    grid-template-columns: 1fr;
  }

  .fino-teacher-curriculum {
    grid-column: auto;
  }
}


/* =========================================================
   CLASS ROSTER STATUS
   ========================================================= */

.fino-teacher-status[data-status="NOT_STARTED"] {
  background: #f2f4f6;
  color: #6d7d88;
}

button.fino-teacher-student:has(
  .fino-teacher-status[data-status="NOT_STARTED"]
) {
  background: #fbfcfd;
}

button.fino-teacher-student:has(
  .fino-teacher-status[data-status="NOT_STARTED"]
)
.fino-teacher-accuracy {
  color: #9aa7b0;
}
