/* Student home shell — Haode */
body.hx-student {
  margin: 0;
  background: #f3f6f5;
  color: #17211f;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}
body.hx-student .topbar,
body.hx-student .container--home,
body.hx-student #password-modal { display: none !important; }

.hx-stu {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}
.hx-stu__nav {
  width: 220px;
  flex: 0 0 220px;
  background: #fff;
  border-right: 1px solid #e3ebe8;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.85rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
}
.hx-stu__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.2rem 0.55rem 1.15rem;
  text-decoration: none;
}
.hx-stu__brand-img {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}
.hx-stu__nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  flex: 1;
}
.hx-stu__nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #3d4a47;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.72rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
}
.hx-stu__nav-btn svg { width: 20px; height: 20px; flex: 0 0 auto; opacity: 0.85; }
.hx-stu__nav-btn:hover { background: #edf6f3; color: #087467; }
.hx-stu__nav-btn.is-active { background: #edf6f3; color: #087467; }
.hx-stu__nav-btn.is-active svg { opacity: 1; }
.hx-stu__start-class {
  margin-top: 0.85rem;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #087467;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(8, 116, 103, 0.22);
}
.hx-stu__start-class:disabled {
  background: #a7c4be;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}
.hx-stu__start-class.is-ready {
  background: #0a8a7a;
  animation: hxStuPulse 1.6s ease-in-out infinite;
}
@keyframes hxStuPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.hx-stu__nav-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid #e8efec; }
.hx-stu__main {
  flex: 1;
  min-width: 0;
  padding: 1.35rem 1.5rem 2.5rem;
  box-sizing: border-box;
}
.hx-stu__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.hx-stu__course {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.hx-stu__course-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: #e8efec;
  border: 1px solid #dfe7e4;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(23, 33, 31, 0.06);
}
.hx-stu__course-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a8884;
  letter-spacing: 0.02em;
}
.hx-stu__course-title {
  margin: 0.1rem 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #17211f;
  line-height: 1.15;
}
.hx-stu__course-sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #63706d;
}
.hx-stu__hello {
  background: #edf6f3;
  border-radius: 14px;
  padding: 0.75rem 1.05rem;
  max-width: 280px;
  font-size: 1rem;
}
.hx-stu__hello-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hx-stu__chat-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #d5e3da;
  border-radius: 12px;
  background: #fff;
  color: #087467;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.hx-stu__chat-btn svg { width: 20px; height: 20px; }
.hx-stu__chat-btn:hover { background: #edf6f3; }
.hx-stu__chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #c23b3b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.hx-stu__chat-badge[hidden] {
  display: none !important;
}
.hx-stu__hello-name {
  font-weight: 750;
  font-size: 1em;
  color: #0f5c52;
  line-height: 1.25;
}
.hx-stu__hello-sub {
  margin-top: 0.18rem;
  font-weight: 600;
  font-size: 0.5em;
  color: #8a9793;
  line-height: 1.3;
}
.hx-stu__pane[hidden] { display: none !important; }

.hx-stu__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}
.hx-stu__pill {
  border: 1px solid #d5e3de;
  background: #fff;
  color: #3d4a47;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.hx-stu__pill:hover { border-color: #087467; color: #087467; }
.hx-stu__pill.is-on {
  background: #087467;
  border-color: #087467;
  color: #fff;
}
.hx-stu__pill.is-on[data-type="favoritos"] {
  background: #c23b3b;
  border-color: #c23b3b;
}

.hx-stu__day {
  margin: 0 0 1.15rem;
}
.hx-stu__day-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #17211f;
}
.hx-stu__feed-empty {
  margin: 2.5rem 0;
  text-align: center;
  color: #a3b0ac;
  font-size: 1rem;
  font-weight: 600;
}

.hx-stu__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  margin: 0 0 0.55rem;
  box-shadow: 0 1px 2px rgba(23, 33, 31, 0.03);
}
.hx-stu__type-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: start;
  margin-top: 0.1rem;
}
.hx-stu__type-ico svg { width: 20px; height: 20px; }
.hx-stu__card-main { min-width: 0; }
.hx-stu__card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: #17211f;
}
.hx-stu__card-desc {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: #6b7874;
  line-height: 1.35;
}
.hx-stu__card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.hx-stu__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 750;
}
.hx-stu__card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.hx-stu__time {
  font-size: 0.78rem;
  color: #8a9793;
  font-weight: 600;
  white-space: nowrap;
}
.hx-stu__card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hx-stu__open {
  border: 1.5px solid #087467;
  background: #fff;
  color: #087467;
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
.hx-stu__open:hover { background: #edf6f3; }
.hx-stu__heart {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #9aa7a3;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0;
}
.hx-stu__heart:hover { background: #f3f6f5; color: #c23b3b; }
.hx-stu__heart.is-on { color: #c23b3b; }
.hx-stu__heart svg { width: 20px; height: 20px; }

.hx-stu__inline {
  margin-top: 0.55rem;
}
.hx-stu__inline img {
  display: block;
  max-width: min(100%, 320px);
  border-radius: 10px;
  border: 1px solid #e6eeeb;
}
.hx-stu__inline audio { width: min(100%, 320px); }
.hx-stu__inline-text {
  white-space: pre-wrap;
  font-size: 0.88rem;
  color: #3d4a47;
  background: #f7faf9;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  max-height: 8rem;
  overflow: auto;
}

.hx-stu__apos-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.hx-stu__apos-card {
  border: 1px solid #e6eeeb;
  background: #fff !important;
  color: #17211f !important;
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transform: none;
}
.hx-stu__apos-card:hover {
  border-color: #087467;
  box-shadow: 0 4px 14px rgba(8,116,103,.08);
  background: #fff !important;
  color: #17211f !important;
  transform: none;
}
.hx-stu__apos-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: #17211f !important; }
.hx-stu__apos-card p { margin: 0; color: #6b7874 !important; font-size: 0.86rem; }
.hx-stu__back {
  border: 0;
  background: transparent;
  color: #087467;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 0.85rem;
  padding: 0;
}
.hx-stu__lesson-list { display: grid; gap: 0.45rem; }
.hx-stu__lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: inherit;
}
.hx-stu__lesson:hover { border-color: #087467; }
.hx-stu__lesson strong { font-size: 0.95rem; }
.hx-stu__lesson span { color: #087467; font-weight: 700; font-size: 0.82rem; }

.hx-stu__profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 860px;
  align-items: start;
}
.hx-stu__profile-card {
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 16px;
  padding: 1.15rem;
}
#hxStuNotifCard,
#hxStuFinanceCard,
#hxStuPayCard {
  grid-column: 1 / -1;
}
.hx-stu__finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}
@media (min-width: 640px) {
  .hx-stu__finance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.hx-stu__finance-grid > div {
  background: #f7faf8;
  border: 1px solid #e3ebe8;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.hx-stu__finance-grid span {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  color: #6a7a74;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}
.hx-stu__finance-grid b {
  font-size: 1.05rem;
  color: #17211f;
}
.hx-stu__pay-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.hx-stu__notif {
  border: 1px solid #e3ebe8;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin: 0.55rem 0 0;
  background: #f7faf8;
}
.hx-stu__notif.is-unread {
  border-color: #087467;
  background: #eef8f5;
}
.hx-stu__notif strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.hx-stu__notif p {
  margin: 0;
  font-size: 0.9rem;
  color: #3d4a46;
  line-height: 1.4;
}
.hx-stu__profile-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #17211f;
}
.hx-stu__profile label {
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  color: #63706d;
  margin: 0.7rem 0 0.25rem;
}
.hx-stu__profile input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5e3de;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.hx-stu__profile .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (max-width: 800px) {
  .hx-stu__profile { grid-template-columns: 1fr; }
}
.hx-stu__btn {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  background: #087467;
  color: #fff;
}
.hx-stu__btn--ghost {
  background: #edf6f3;
  color: #0f5c52;
}
.hx-stu__cal-frame {
  width: 100%;
  min-height: 640px;
  height: 640px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  overflow: hidden;
}
body.hx-stu--cal .hx-stu__top {
  display: none;
}
body.hx-stu--cal .hx-stu__main {
  padding-top: 0.85rem;
}
body.hx-stu--cal #hxStuCal {
  margin: 0;
  padding: 0;
  background: transparent;
}
.hx-stu__msg {
  color: #8a9793;
  font-weight: 600;
  padding: 2rem 0;
  text-align: center;
}

@media (max-width: 860px) {
  .hx-stu { flex-direction: column; }
  .hx-stu__nav {
    width: 100%;
    flex: none;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    overflow-x: auto;
  }
  .hx-stu__brand { padding: 0 0.4rem 0 0; }
  .hx-stu__brand-img { height: 28px; }
  .hx-stu__nav-list { flex-direction: row; flex: 1; align-items: center; }
  .hx-stu__nav-btn {
    padding: 0.55rem 0.65rem;
    white-space: nowrap;
    justify-content: flex-start;
  }
  .hx-stu__nav-btn span { display: none; }
  .hx-stu__nav-foot { margin: 0; padding: 0; border: 0; }
  .hx-stu__main { padding: 1rem 0.85rem 2rem; }
  .hx-stu__card { grid-template-columns: auto 1fr; }
  .hx-stu__card-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
