@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --blue: #0756A5;
  --blue-deep: #063D78;
  --sky: #38A9E8;
  --orange: #F28C28;
  --gold: #FFD700;
  --ink: #172536;
  --muted: #6B7B8D;
  --line: #E4ECF3;
  --paper: #F3F8FC;
  --footer: #171717;
  --danger: #DC2626;
  --shadow: 0 14px 36px rgba(13, 58, 98, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #EAF5FC 0, #F8FBFE 420px, #F3F7FA 100%);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
.site-shell { width: min(1500px, 100%); margin: 0 auto; background: #fff; box-shadow: 0 0 55px rgba(13, 55, 88, .08); }

/* Header */
.site-header { background: var(--blue); color: white; overflow: hidden; }
.brand-row {
  min-height: 156px; display: grid; grid-template-columns: 150px 1fr 120px;
  align-items: center; gap: 22px; padding: 20px clamp(20px, 4vw, 58px);
  background: radial-gradient(circle at 85% 15%, rgba(89, 177, 232, .28), transparent 28%),
              linear-gradient(110deg, #064783, #0756A5 60%, #064783);
}
.school-brand { display: flex; justify-content: center; align-items: center; }
.school-logo {
  width: 112px; height: 112px; object-fit: contain; border-radius: 50%;
  background: #fff; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.heading-copy { text-align: center; line-height: 1.35; }
.heading-line { margin: 4px 0; letter-spacing: .055em; font-weight: 700; }
.heading-line-one { color: var(--gold); font-size: clamp(15px, 1.6vw, 21px); }
.heading-line-two { color: #fff; font-size: clamp(22px, 2.7vw, 35px); font-weight: 800; letter-spacing: .035em; }
.heading-line-three { color: var(--gold); font-size: clamp(11px, 1.1vw, 14px); font-weight: 500; letter-spacing: .015em; }
.header-mark { width: 86px; height: 86px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--gold); }
.mark-orbit { position: absolute; inset: 7px; border: 1px dashed rgba(255,215,0,.7); border-radius: 50%; }
.mark-text { font-family: Georgia, serif; font-size: 17px; line-height: .9; text-align: center; letter-spacing: .04em; }
.mark-text b { font-size: 10px; }
/* Thanh WELCOME chạy liên tục từ phải sang trái */
.welcome-strip {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--orange);
    color: white;
    font-weight: 700;
    letter-spacing: .16em;
    font-size: 11px;
}

.welcome-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    flex: 0 0 auto;
    animation: welcome-marquee 38s linear infinite;
    will-change: transform;
}

.welcome-group {
    display: flex;
    align-items: center;
    gap: 42px;
    flex: 0 0 auto;
    padding-right: 42px;
}

.welcome-group span:nth-child(even) {
    color: #FFE7B8;
    font-size: 15px;
}

@keyframes welcome-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.welcome-track:hover {
    animation-play-state: paused;
}

/* Three-column layout */
.main-layout { display: grid; grid-template-columns: minmax(205px,  .82fr) minmax(420px, 2fr) minmax(220px, .9fr); gap: 20px; padding: 28px clamp(16px, 2.5vw, 36px) 38px; align-items: start; background: linear-gradient(180deg, #F7FBFE, #fff 75%); }
.side-panel { min-width: 0; padding: 19px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.side-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.student-panel::before { background: linear-gradient(90deg, var(--orange), #FFC16B); }
.profile-card, .student-intro { display: flex; align-items: center; gap: 12px; padding: 4px 0 15px; }
.avatar-placeholder, .student-avatar { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 16px; background: linear-gradient(145deg, #4DB8E9, #0756A5); border: 3px solid #E8F5FC; box-shadow: 0 4px 12px rgba(7,86,165,.16); }
.student-avatar { background: linear-gradient(145deg, #FFBD68, #E97819); border-color: #FFF2E4; }
.profile-kicker, .eyebrow { margin: 0 0 5px; color: var(--sky); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.student-panel .profile-kicker { color: var(--orange); }
.profile-card h2, .student-intro h2 { margin: 0; font-size: 14px; line-height: 1.35; color: var(--blue-deep); }
.profile-note { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.auth-actions, .student-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 16px; }
.button { min-height: 36px; padding: 9px 8px; border-radius: 7px; display: inline-flex; justify-content: center; align-items: center; font-size: 11px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(7,86,165,.17); }
.button-primary { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.button-outline { background: #fff; color: var(--blue); border: 1px solid #B8D6EA; }
.status-line { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: #527083; border-top: 1px solid #EDF2F6; border-bottom: 1px solid #EDF2F6; font-size: 10px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px #E9F9EF; }
.side-nav { display: grid; gap: 4px; padding-top: 12px; }
.nav-link { min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #506579; font-size: 11px; font-weight: 600; transition: .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: #EAF5FC; }
.nav-link.active { box-shadow: inset 3px 0 0 var(--sky); }
.nav-icon { width: 19px; text-align: center; color: var(--sky); font-size: 16px; }
.nav-special { color: #C96B13; background: #FFF6EB; }
.nav-special .nav-icon { color: var(--orange); }
.nav-separator { height: 1px; background: var(--line); margin: 6px 2px; }
.side-quote { margin-top: 18px; padding: 12px; border-radius: 10px; background: #F2F9FD; color: #668096; }
.quote-mark { color: var(--sky); font-family: Georgia, serif; font-size: 27px; line-height: .7; }
.side-quote p { margin: 4px 0 0; font-family: Georgia, serif; font-style: italic; font-size: 11px; line-height: 1.5; }

/* Center stage */
.center-stage { min-width: 0; }
.stage-heading { padding: 2px 4px 17px; text-align: center; }
.stage-heading .eyebrow { color: var(--orange); }
.stage-heading h2 { margin: 3px 0 6px; color: var(--blue-deep); font-family: "Playfair Display", Georgia, serif; font-size: clamp(22px, 2.5vw, 31px); line-height: 1.2; }
.stage-heading p { margin: 0; color: #718496; font-size: 11px; }
.hero-slider {
  min-height: 390px; position: relative; isolation: isolate; overflow: hidden; border-radius: 17px;
  background: linear-gradient(90deg, rgba(4,35,65,.86), rgba(5,54,91,.54) 53%, rgba(5,54,91,.08)),
              url("../store/anh1.jpg") center/cover no-repeat,
              linear-gradient(135deg, #0C5A94, #42B3DC);
  box-shadow: 0 18px 38px rgba(6,61,120,.2);
}
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.16), transparent 24%), linear-gradient(0deg, rgba(2,29,52,.22), transparent 45%); }
.hero-content { max-width: 470px; padding: clamp(28px, 4vw, 52px); color: white; }
.hero-chip { display: inline-block; padding: 7px 11px; border: 1px solid rgba(255,255,255,.42); border-radius: 30px; color: #FFE18A; font-size: 9px; font-weight: 800; letter-spacing: .14em; background: rgba(255,255,255,.08); }
.hero-content h3 { margin: 20px 0 12px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(36px, 4.3vw, 55px); line-height: 1.02; letter-spacing: -.025em; }
.hero-content h3 em { color: #FFD36A; font-weight: 600; }
.hero-content p { max-width: 350px; color: rgba(255,255,255,.86); font-size: 12px; line-height: 1.8; }
.hero-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 12px; padding: 11px 15px; border-radius: 7px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 7px 18px rgba(0,0,0,.15); }
.hero-link span { font-size: 17px; line-height: 10px; }
.slide-indicators { position: absolute; left: 30px; bottom: 22px; display: flex; gap: 7px; }
.indicator { width: 7px; height: 7px; border-radius: 10px; background: rgba(255,255,255,.55); }
.indicator.selected { width: 24px; background: var(--gold); }
.slide-caption { position: absolute; right: 23px; bottom: 21px; color: rgba(255,255,255,.75); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.welcome-card { display: flex; gap: 15px; align-items: center; margin-top: 17px; padding: 18px; border: 1px solid #E3EEF6; border-radius: 13px; background: linear-gradient(110deg, #F1F9FE, #fff); }
.welcome-card-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 12px; background: #DDF1FC; color: var(--blue); font-size: 21px; }
.welcome-card .eyebrow { margin-bottom: 3px; }
.welcome-card h3 { margin: 0; color: var(--blue-deep); font-size: 13px; }
.welcome-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* Student area */
.student-fields { display: grid; gap: 6px; padding: 0 0 13px; }
.field-label { margin-top: 5px; color: #687D8E; font-size: 10px; font-weight: 700; }
.field-display, .student-fields select { width: 100%; min-height: 35px; padding: 8px 9px; border: 1px solid #E2EAF0; border-radius: 7px; background: #FAFCFE; color: #627487; font: inherit; font-size: 10px; outline: none; }
.student-fields select:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,169,232,.12); }
.student-nav { padding-top: 10px; }
.student-note { margin-top: 18px; padding: 12px; border-radius: 9px; background: #FFF7EE; color: #B96B20; text-align: center; font-family: Georgia, serif; font-size: 11px; font-style: italic; }

/* Footer */
.site-footer { padding: 25px clamp(20px, 3vw, 42px) 13px; color: #D5DCE3; background: var(--footer); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #353535; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-symbol { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #64798A; border-radius: 11px; color: white; font-family: Georgia, serif; font-size: 24px; font-weight: 700; }
.footer-symbol span, .footer-brand strong span { color: var(--orange); }
.footer-brand strong { display: block; color: #fff; font-size: 12px; letter-spacing: .08em; }
.footer-brand small { display: block; margin-top: 3px; color: #8795A2; font-size: 9px; letter-spacing: .08em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.5vw, 34px); }
.footer-nav a { color: #C8D0D8; font-size: 11px; font-weight: 600; }
.footer-nav a:hover { color: #FFC36E; }
.footer-bottom { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 20px; padding: 18px 0 12px; }
.contact-title { color: #FFC36E; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.contact-items { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #B7C0C8; font-size: 10px; }
.contact-items a:hover { color: #fff; }
.admin-link { color: #AEB8C1; font-size: 10px; }
.admin-link:hover { color: #fff; }
.copyright { padding-top: 11px; border-top: 1px solid #303030; color: #727D87; text-align: center; font-size: 9px; }

/* Responsive */
@media (max-width: 1050px) {
  .main-layout { grid-template-columns: minmax(185px, .8fr) minmax(360px, 1.8fr); }
  .student-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .student-panel .student-intro, .student-panel .student-auth, .student-panel .student-fields, .student-panel .status-line, .student-panel .student-nav, .student-panel .student-note { min-width: 0; }
  .student-panel .student-fields { grid-column: 2; grid-row: 1 / span 3; }
  .student-panel .status-line, .student-panel .student-nav, .student-panel .student-note { grid-column: 1; }
}
@media (max-width: 700px) {
  .brand-row { grid-template-columns: 64px 1fr; gap: 12px; min-height: 125px; padding: 15px; }
  .school-logo { width: 62px; height: 62px; padding: 5px; }
  .header-mark { display: none; }
  .heading-line-one { font-size: 11px; }
  .heading-line-two { font-size: 19px; }
  .heading-line-three { font-size: 9px; line-height: 1.5; }
  .welcome-strip { height: 32px; font-size: 9px; }
  .main-layout { display: flex; flex-direction: column; padding: 18px 13px 25px; gap: 16px; }
  .center-stage { order: 1; width: 100%; }
  .teacher-panel { order: 2; width: 100%; }
  .student-panel { order: 3; width: 100%; display: block; }
  .hero-slider { min-height: 490px; }
  .hero-content { padding: 28px 24px; }
  .hero-content h3 { font-size: 43px; }
  .slide-indicators { left: 22px; bottom: 18px; }
  .slide-caption { right: 16px; bottom: 18px; font-size: 7px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom { grid-template-columns: 1fr; gap: 11px; }
  .contact-items { flex-direction: column; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* Vẫn giữ chuyển động WELCOME theo yêu cầu */
  .welcome-track {
    animation-duration: 38s !important;
    animation-iteration-count: infinite !important;
  }
}


/* Mobile-first finishing pass: compact header, readable cards, touch-friendly controls */
@media (max-width: 700px) {
  body { font-size: 14px; }
  .site-shell { width: 100%; overflow: clip; }
  .brand-row {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 112px;
    gap: 10px;
    padding: 13px 14px;
  }
  .school-logo { width: 52px; height: 52px; padding: 4px; }
  .heading-copy { min-width: 0; }
  .heading-line { overflow-wrap: anywhere; }
  .heading-line-one { font-size: clamp(9px, 2.7vw, 12px); letter-spacing: .025em; }
  .heading-line-two { font-size: clamp(16px, 4.7vw, 21px); line-height: 1.2; }
  .heading-line-three { font-size: clamp(8px, 2.25vw, 10px); letter-spacing: 0; }
  .welcome-strip {
    height: 30px;
}

.welcome-track {
    font-size: 9px;
    letter-spacing: .12em;
}

.welcome-group {
    gap: 24px;
    padding-right: 24px;
}

  .main-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 12px 22px;
  }
  .center-stage, .side-panel { width: 100%; min-width: 0; }
  .center-stage { order: 0; }
  .teacher-panel { order: 1; }
  .student-panel { order: 2; display: block; }
  .side-panel { padding: 16px 14px; border-radius: 13px; }
  .stage-heading { padding: 0 5px 13px; }
  .stage-heading h2 { font-size: clamp(22px, 6vw, 28px); }
  .stage-heading p { max-width: 320px; margin: 0 auto; line-height: 1.6; font-size: 10px; }

  .hero-slider {
    min-height: clamp(300px, 88vw, 490px);
    border-radius: 13px;
    background-position: center;
  }
  .hero-content { max-width: 100%; padding: 28px 21px 66px; }
  .hero-chip { font-size: 8px; padding: 6px 9px; }
  .hero-content h3 { margin: 18px 0 10px; font-size: clamp(37px, 11vw, 49px); }
  .hero-content p { max-width: 290px; font-size: 11px; line-height: 1.7; }
  .hero-link { min-height: 42px; margin-top: 9px; padding: 10px 13px; font-size: 10px; }
  .slide-indicators { left: 20px; bottom: 19px; }
  .slide-caption { right: 14px; bottom: 18px; font-size: 7px; }
  .welcome-card { align-items: flex-start; padding: 14px; gap: 11px; }
  .welcome-card-icon { width: 37px; height: 37px; flex-basis: 37px; }
  .welcome-card h3 { font-size: 12px; line-height: 1.5; }
  .welcome-card p { font-size: 10px; }

  .profile-card, .student-intro { padding-bottom: 13px; }
  .auth-actions, .student-auth { gap: 9px; padding-bottom: 13px; }
  .button { min-height: 42px; font-size: 12px; }
  .nav-link { min-height: 43px; padding: 10px 11px; font-size: 12px; }
  .nav-icon { font-size: 17px; }
  .side-quote, .student-note { margin-top: 13px; }
  .student-fields { gap: 7px; }
  .field-label { font-size: 11px; }
  .field-display, .student-fields select { min-height: 42px; font-size: 12px; padding: 10px; }

  .site-footer { padding: 22px 17px 13px; }
  .footer-top { gap: 17px; padding-bottom: 16px; }
  .footer-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; }
  .footer-nav a { min-height: 30px; display: flex; align-items: center; font-size: 11px; }
  .footer-bottom { padding: 16px 0 12px; gap: 12px; }
  .contact-items { overflow-wrap: anywhere; font-size: 10px; }
  .admin-link { justify-self: start; padding: 7px 0; }
}

@media (max-width: 380px) {
  .brand-row { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 11px 10px; }
  .school-logo { width: 43px; height: 43px; }
  .heading-line-one { font-size: 8px; }
  .heading-line-two { font-size: 15px; }
  .heading-line-three { font-size: 7px; }
  .hero-content { padding-left: 17px; padding-right: 17px; }
  .hero-content h3 { font-size: 36px; }
  .slide-caption { font-size: 6px; }
  .side-panel { padding-left: 12px; padding-right: 12px; }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .main-layout { gap: 15px; padding-left: 18px; padding-right: 18px; }
  .hero-slider { min-height: 420px; }
  .student-panel { padding: 17px; }
}

@media (hover: none) {
  .button:hover { transform: none; box-shadow: none; }
  .nav-link:hover { background: transparent; color: #506579; }
  .nav-link.active { background: #EAF5FC; color: var(--blue); }
}


/* Mobile bottom navigation */
.mobile-bottom-nav { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 74px; }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 1000;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 66px;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255,255,255,.97);
    border-top: 1px solid #DCE7EF;
    box-shadow: 0 -7px 24px rgba(12,48,76,.12);
    backdrop-filter: blur(12px);
  }
  .mobile-nav-button {
    min-width: 0;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #647789;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-icon { font-size: 19px; line-height: 1.1; }
  .mobile-nav-button.is-active {
    color: var(--blue);
    background: #EAF5FC;
  }
  .mobile-admin-button { color: #B45309; }
  .mobile-admin-button .mobile-nav-icon { font-size: 17px; }

  /* Only the selected section is shown on a phone. */
  body[data-mobile-view="home"] .teacher-panel,
  body[data-mobile-view="home"] .student-panel { display: none !important; }
  body[data-mobile-view="teacher"] .center-stage,
  body[data-mobile-view="teacher"] .student-panel,
  body[data-mobile-view="student"] .center-stage,
  body[data-mobile-view="student"] .teacher-panel { display: none !important; }
  body[data-mobile-view="teacher"] .teacher-panel,
  body[data-mobile-view="student"] .student-panel {
    display: block !important;
    order: 0;
    width: 100%;
  }
}

/* =========================================
   COLLAPSIBLE TEACHER / STUDENT PANELS
========================================= */

.panel-toggle {
    width: 30px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    z-index: 5;
    border: 1px solid #DCE7EF;
    border-radius: 8px;
    background: #F4F9FD;
    color: var(--blue);
    font-size: 23px;
    font-weight: 700;
    cursor: pointer;
}

.teacher-panel > .panel-toggle {
    right: 10px;
}

.student-panel > .panel-toggle {
    left: 10px;
}

.panel-toggle:hover {
    background: #E3F2FC;
}

.toggle-arrow {
    line-height: 1;
}

.teacher-avatar,
.student-avatar {
    position: relative;
    overflow: hidden;
}

.teacher-avatar img,
.student-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
}

.teacher-avatar span,
.student-avatar span {
    display: block;
}

.teacher-panel[hidden],
.student-panel[hidden],
.auth-actions[hidden],
.student-auth[hidden],
button[hidden] {
    display: none !important;
}

/* Hai cột mặc định thu gọn trên Desktop */
@media (min-width: 1051px) {
    .main-layout {
        grid-template-columns: minmax(0, .82fr) minmax(420px, 2fr) minmax(0, .9fr);
    }

    .main-layout:has(.teacher-panel.is-collapsed):has(.student-panel.is-collapsed) {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .main-layout:has(.teacher-panel:not(.is-collapsed)):has(.student-panel.is-collapsed) {
        grid-template-columns: minmax(205px, .82fr) minmax(0, 2fr) 44px;
    }

    .main-layout:has(.teacher-panel.is-collapsed):has(.student-panel:not(.is-collapsed)) {
        grid-template-columns: 44px minmax(0, 2fr) minmax(220px, .9fr);
    }

    .side-panel.is-collapsed {
        width: 44px;
        min-height: 58px;
        padding: 8px 5px;
        overflow: visible;
        border-radius: 10px;
    }

    .side-panel.is-collapsed > :not(.panel-toggle) {
        display: none !important;
    }

    .side-panel.is-collapsed .panel-toggle {
        position: static;
        width: 32px;
        margin: 3px auto;
    }

    .teacher-panel.is-collapsed .toggle-arrow {
        transform: rotate(0deg);
    }

    .student-panel.is-collapsed .toggle-arrow {
        transform: rotate(0deg);
    }
}

/* Tablet */
@media (min-width: 701px) and (max-width: 1050px) {
    .main-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .teacher-panel.is-collapsed,
    .student-panel.is-collapsed {
        width: 44px;
        min-height: 58px;
        padding: 8px 5px;
        overflow: hidden;
    }

    .teacher-panel.is-collapsed > :not(.panel-toggle),
    .student-panel.is-collapsed > :not(.panel-toggle) {
        display: none !important;
    }

    .teacher-panel.is-collapsed .panel-toggle,
    .student-panel.is-collapsed .panel-toggle {
        position: static;
        margin: 3px auto;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .side-panel.is-collapsed {
        min-height: 55px;
        padding: 8px;
    }

    .side-panel.is-collapsed > :not(.panel-toggle) {
        display: none !important;
    }

    .side-panel.is-collapsed .panel-toggle {
        position: static;
        margin: 0 auto;
    }

    .side-panel:not(.is-collapsed) .panel-toggle {
        position: absolute;
    }

    .teacher-panel:not(.is-collapsed) > .panel-toggle {
        right: 10px;
    }

    .student-panel:not(.is-collapsed) > .panel-toggle {
        left: 10px;
    }
}


/* =========================================
   MAIN BACKGROUND SLIDESHOW
========================================= */

.hero-slider {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Hai lớp ảnh để chuyển đổi mượt */
.main-bg-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.main-bg-layer.is-visible {
    opacity: 1;
}

/* Khi Main hiển thị nội dung GV/SV */
.center-stage:not(.is-default-view) .main-bg-layer {
    opacity: 0 !important;
    transition: opacity .4s ease;
}

@media (prefers-reduced-motion: reduce) {
    .main-bg-layer {
        transition: none;
    }
}

/* Tăng chiều cao vùng hình nền Main */
.hero-slider {
    height: 490px !important;
    min-height: 490px !important;
}

@media (max-width: 700px) {
    .hero-slider {
        height: 425px !important;
        min-height: 425px !important;
    }
}

/* =========================================
   STUDENT EXAM INTERFACE
   Tách từ injectExamStyles() trong student.js
========================================= */

.student-exam-view {
    width: 100%;
    padding: 22px;
    color: #172033;
    background: #f5f7fb;
    border-radius: 18px;
    box-sizing: border-box;
    min-height: 480px;
}

.student-exam-pre-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #fbbf24;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    text-align: center;
}

.student-exam-pre-countdown[hidden] {
    display: none !important;
}

.student-exam-pre-label {
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

#student-exam-pre-timer {
    color: #b45309;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

#student-exam-pre-note {
    color: #78350f;
    font-size: 13px;
}

.student-exam-view * {
    box-sizing: border-box;
}

.student-exam-view[hidden] {
    display: none !important;
}

.student-exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.student-exam-header h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.student-exam-header p {
    margin: 0;
    color: #64748b;
}

.student-exam-card {
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.student-exam-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

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

.student-exam-fields label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.student-exam-fields select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #172033;
}

.student-exam-btn {
    border: 0;
    border-radius: 9px;
    padding: 11px 17px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.student-exam-btn:hover {
    background: #1d4ed8;
}

.student-exam-btn.secondary {
    background: #64748b;
}

.student-exam-btn.danger {
    background: #dc2626;
}

.student-exam-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.student-exam-message {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
}

.student-exam-message.error {
    background: #fef2f2;
    color: #b91c1c;
}

.student-exam-message.success {
    background: #ecfdf5;
    color: #047857;
}

.student-exam-status {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-weight: 600;
}

.student-exam-timer {
    font-size: 22px;
    font-weight: 800;
    color: #dc2626;
    font-variant-numeric: tabular-nums;
}

.student-exam-original {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    overflow-wrap: anywhere;
}

.student-exam-original p,
.student-exam-original div,
.student-exam-original span {
    max-width: 100%;
}

.student-exam-original img {
    max-width: 100%;
    height: auto;
}

.student-exam-original .student-mcq-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 9px;
    margin: 4px 0;
    border-radius: 7px;
}

.student-exam-original .student-mcq-option:hover {
    background: #f1f5f9;
}

.student-exam-original .student-mcq-option input {
    flex: 0 0 auto;
    margin-top: 4px;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.student-exam-original .student-mcq-option.is-selected {
    background: #eff6ff;
}

/* Câu trả lời đúng */
.student-exam-original .student-question-correct {
    background: #ecfdf5;
    border-left: 4px solid #15803d;
    padding: 9px 12px;
    border-radius: 7px;
}

.student-exam-original .student-mcq-option.is-correct {
    background: #dcfce7;
    border: 1px solid #86efac;
}

/* Câu trả lời sai */
.student-exam-original .student-question-wrong {
    background: #fef2f2;
    border-left: 4px solid #b91c1c;
    padding: 9px 12px;
    border-radius: 7px;
}

.student-exam-original .student-mcq-option.is-wrong {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.student-answer-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: 8px;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 900;
    vertical-align: middle;
}

.student-answer-result.correct {
    color: #14532d;
    background: #bbf7d0;
}

.student-answer-result.wrong {
    color: #991b1b;
    background: #fecaca;
}

.student-exam-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.student-exam-summary-item {
    padding: 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.student-exam-summary-item strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
}

.student-exam-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.student-exam-info-item {
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.student-exam-info-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.student-exam-info-item strong {
    overflow-wrap: anywhere;
}

.student-essay-pending {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 8px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-weight: 600;
}

@media (max-width: 700px) {
    .student-exam-summary {
        grid-template-columns: 1fr;
    }

    .student-exam-info-grid {
        grid-template-columns: 1fr;
    }
}

.student-essay-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #fff;
}

.student-essay-card textarea {
    display: block;
    width: 100%;
    min-height: 160px;
    margin-top: 12px;
    padding: 12px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.student-essay-copy {
    margin-left: 8px;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.student-exam-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.student-exam-readonly {
    padding: 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 700px) {
    .student-exam-view {
        padding: 12px;
    }

    .student-exam-card {
        padding: 14px;
    }

    .student-exam-fields {
        grid-template-columns: 1fr;
    }

    .student-exam-header h2 {
        font-size: 19px;
    }
}


/* =========================================
   TEACHER LESSON / ASSIGNMENT CONTENT
========================================= */

.center-stage.is-teacher-content-view > .stage-heading,
.center-stage.is-teacher-content-view > .hero-slider,
.center-stage.is-teacher-content-view > .welcome-card {
    display: none !important;
}

.teacher-content-view {
    width: 100%;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.teacher-content-view[hidden] {
    display: none !important;
}

.teacher-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.teacher-content-eyebrow {
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.teacher-content-header h2 {
    margin: 5px 0;
    color: var(--blue-deep);
    font-size: clamp(20px, 2.5vw, 27px);
}

.teacher-content-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.teacher-content-home,
.teacher-content-back {
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid #B8D6EA;
    border-radius: 8px;
    background: #F2F9FD;
    color: var(--blue);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.teacher-content-back {
    margin: 16px 0;
}

.teacher-content-list {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.teacher-content-card {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #E2EAF0;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.teacher-content-card:hover {
    border-color: #8CC9EB;
    background: #F5FAFE;
    transform: translateY(-1px);
}

.teacher-content-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #EAF5FC;
    color: var(--blue);
    font-size: 20px;
}

.teacher-content-card-info {
    min-width: 0;
    flex: 1;
}

.teacher-content-card-info strong {
    display: block;
    color: var(--blue-deep);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.teacher-content-card-info small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.teacher-content-arrow {
    color: var(--sky);
    font-size: 24px;
}

.teacher-content-message {
    margin: 18px 0 0;
    padding: 15px;
    border-radius: 9px;
    background: #F2F9FD;
    color: #42647D;
    line-height: 1.6;
}

.teacher-content-message.is-error {
    background: #FEF2F2;
    color: #B91C1C;
}

.teacher-content-article {
    width: 100%;
    min-width: 0;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #E4ECF3;
    border-radius: 12px;
    background: #fff;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.teacher-content-article img,
.teacher-content-article video {
    max-width: 100%;
    height: auto;
}

.teacher-content-article iframe {
    max-width: 100%;
}

.teacher-content-article table {
    max-width: 100%;
    border-collapse: collapse;
}

.teacher-content-article td,
.teacher-content-article th {
    overflow-wrap: anywhere;
}

/* Media links dưới cột Giáo viên */

.teacher-media-panel {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.teacher-media-panel[hidden] {
    display: none !important;
}

.teacher-media-panel h3 {
    margin: 0 0 11px;
    color: var(--blue-deep);
    font-size: 10px;
    letter-spacing: .08em;
}

.teacher-media-list {
    display: grid;
    gap: 7px;
}

.teacher-media-link {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #CDE4F3;
    border-radius: 8px;
    background: #F2F9FD;
    color: var(--blue);
    text-align: left;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.teacher-media-link:hover {
    background: #E2F2FC;
}

/* Media preview */

.teacher-media-preview {
    position: fixed;
    z-index: 1100;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100vw - 30px));
    height: 285px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #C9DCEB;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .24);
}

.teacher-media-preview[hidden] {
    display: none !important;
}

.teacher-preview-header {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    background: var(--blue);
    color: #fff;
}

.teacher-preview-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.teacher-preview-controls {
    display: flex;
    gap: 5px;
}

.teacher-preview-controls button {
    width: 28px;
    height: 27px;
    border: 0;
    border-radius: 5px;
    background: rgba(255,255,255,.17);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.teacher-preview-body {
    flex: 1;
    min-height: 0;
    background: #0F172A;
}

.teacher-preview-body iframe,
.teacher-preview-body video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.teacher-preview-body audio {
    width: calc(100% - 24px);
    margin: 22px 12px;
}

.teacher-media-preview.is-minimized {
    height: 43px;
}

.teacher-media-preview.is-minimized .teacher-preview-body {
    display: none;
}

.teacher-media-preview.is-expanded {
    inset: 5vh 5vw;
    width: 90vw;
    height: 90vh;
}

@media (max-width: 700px) {
    .teacher-content-view {
        padding: 14px;
    }

    .teacher-content-card {
        padding: 12px;
    }

    .teacher-content-article {
        padding: 12px;
    }

    .teacher-media-preview {
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
        height: 240px;
    }

    .teacher-media-preview.is-expanded {
        inset: 5vh 3vw;
        width: 94vw;
        height: 80vh;
    }
}


/* Mở rộng khung xem PDF và tài liệu */
.teacher-media-preview:not(.is-minimized):not(.is-expanded) {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 20px !important;
    transform: translateX(-50%);
    width: min(52vw, 900px) !important;
    height: min(78vh, 820px) !important;
    max-width: calc(100vw - 32px);
    z-index: 9999;
}

/* Vùng hiển thị nội dung PDF */
.teacher-preview-body {
    width: 100%;
    height: calc(100% - 48px);
    min-height: 0;
    overflow: hidden;
}

.teacher-preview-body iframe,
.teacher-preview-body video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0;
    border-radius: 0 0 10px 10px;
}

/* Màn hình nhỏ */
@media (max-width: 768px) {
    .teacher-media-preview:not(.is-minimized):not(.is-expanded) {
        width: calc(100vw - 20px) !important;
        height: 78vh !important;
        bottom: 10px !important;
    }
}


/* Mở rộng khung PDF/FlipHTML5 trong nội dung bài giảng và bài tập */
.teacher-content-article {
    width: 100%;
    min-width: 0;
}

.teacher-content-article iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 70vh !important;
    min-height: 680px;
    max-height: 850px;
    border: 0;
    border-radius: 8px;
}

/* Đảm bảo khung chứa iframe không bị giới hạn chiều rộng */
.teacher-content-article > div,
.teacher-content-article section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}

@media (max-width: 768px) {
    .teacher-content-article iframe {
        height: 65vh !important;
        min-height: 380px;
    }
}


/* Đưa cửa sổ MP3 / MP4 / YouTube về góc phải màn hình */
#teacher-media-preview {
    position: fixed !important;
    left: auto !important;
    right: 24px !important;
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;

    width: min(420px, calc(100vw - 32px)) !important;
    height: 300px !important;
    max-width: calc(100vw - 32px);
    z-index: 9999;
}

/* Nội dung media bên trong cửa sổ */
#teacher-media-preview .teacher-preview-body {
    width: 100%;
    height: calc(100% - 48px);
    overflow: hidden;
}

#teacher-media-preview iframe,
#teacher-media-preview video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0;
}

#teacher-media-preview audio {
    width: 100%;
    max-width: 100%;
}

/* Trên điện thoại */
@media (max-width: 600px) {
    #teacher-media-preview {
        right: 10px !important;
        bottom: 10px !important;
        width: calc(100vw - 20px) !important;
    }
}


/* =====================================
   MEDIA PREVIEW - 3 TRẠNG THÁI
===================================== */

/* 1. Trạng thái bình thường: góc phải dưới */
#teacher-media-preview:not(.is-minimized):not(.is-expanded) {
    position: fixed !important;
    left: auto !important;
    right: 24px !important;
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;
    width: min(420px, calc(100vw - 32px)) !important;
    height: 300px !important;
    z-index: 99999 !important;
}

/* 2. Thu nhỏ: chỉ còn thanh tiêu đề */
#teacher-media-preview.is-minimized {
    position: fixed !important;
    left: auto !important;
    right: 24px !important;
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;
    width: 240px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

#teacher-media-preview.is-minimized .teacher-preview-body {
    display: none !important;
}

/* 3. Phóng to: gần toàn màn hình */
#teacher-media-preview.is-expanded {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    height: 88vh !important;
    max-width: 1400px !important;
    max-height: 950px !important;
    z-index: 100000 !important;
}

/* Nội dung media */
#teacher-media-preview .teacher-preview-body {
    width: 100%;
    height: calc(100% - 48px);
    min-height: 0;
    overflow: hidden;
}

#teacher-media-preview:not(.is-minimized) iframe,
#teacher-media-preview:not(.is-minimized) video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Điện thoại */
@media (max-width: 600px) {
    #teacher-media-preview:not(.is-minimized):not(.is-expanded) {
        right: 10px !important;
        bottom: 10px !important;
        width: calc(100vw - 20px) !important;
    }

    #teacher-media-preview.is-minimized {
        right: 10px !important;
        bottom: 10px !important;
    }

    #teacher-media-preview.is-expanded {
        width: 96vw !important;
        height: 85vh !important;
    }
}

/* Không hiển thị khi đóng */
#teacher-media-preview[hidden] {
    display: none !important;
}

/* =========================================================
   GIAO DIEN THI TU LUAN - chi ap dung cho module sinh vien
   Import/append vao css/index.css
========================================================= */
.student-essay-exam-view {
    --stl-blue: #174ea6;
    --stl-blue-dark: #123b7a;
    --stl-orange: #f28c28;
    --stl-ink: #172b4d;
    --stl-muted: #64748b;
    --stl-line: #e2eaf4;
    background: linear-gradient(180deg, #f3f7fd 0%, #f8fafc 100%);
    padding: clamp(14px, 2.4vw, 28px);
    border: 1px solid #e6edf7;
}
.student-essay-exam-view [hidden] { display: none !important; }
.stl-page-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.stl-page-eyebrow { display:block; color:var(--stl-orange); font-size:11px; font-weight:900; letter-spacing:1.5px; margin-bottom:5px; }
.stl-page-heading h2 { margin:0 0 5px; color:var(--stl-ink); font-size:clamp(23px,3vw,30px); font-weight:850; }
.stl-page-heading p { margin:0; color:var(--stl-muted); font-size:14px; }
.stl-step-strip { display:flex; align-items:center; gap:10px; padding:13px 16px; margin:0 0 18px; border:1px solid var(--stl-line); border-radius:13px; background:#fff; }
.stl-step { display:flex; align-items:center; gap:8px; color:#718096; font-size:12px; font-weight:700; white-space:nowrap; }
.stl-step b { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#edf2f8; color:#64748b; font-size:12px; }
.stl-step.is-current { color:var(--stl-blue); }
.stl-step.is-current b { color:#fff; background:var(--stl-blue); }
.stl-step-strip > i { flex:1; min-width:12px; height:1px; background:#dce5f0; }
.stl-selection-card, .stl-draw-card { border:1px solid var(--stl-line); border-radius:15px; box-shadow:0 5px 18px rgba(23,55,99,.045); }
.stl-card-title { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.stl-card-icon { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:12px; color:#fff; background:linear-gradient(135deg,var(--stl-blue),#3478d4); font-size:13px; font-weight:900; }
.stl-card-title h3 { margin:0 0 4px; color:var(--stl-ink); font-size:17px; }
.stl-card-title p { margin:0; color:var(--stl-muted); font-size:12px; line-height:1.5; }
.student-essay-exam-view .student-exam-fields { gap:14px; }
.student-essay-exam-view .student-exam-fields label { color:#34445d; font-size:12px; font-weight:800; }
.student-essay-exam-view .student-exam-fields label span { display:block; margin-bottom:7px; }
.student-essay-exam-view .student-exam-fields select { min-height:46px; padding:10px 12px; border:1px solid #cbd7e6; border-radius:9px; outline:none; transition:border-color .18s,box-shadow .18s; }
.student-essay-exam-view .student-exam-fields select:focus { border-color:#4b83d1; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.stl-draw-ticket { display:flex; flex-direction:column; align-items:center; padding:21px 15px; border:1px dashed #9bb8e2; border-radius:13px; background:linear-gradient(135deg,#f4f8ff,#fff); text-align:center; }
.stl-draw-ticket > span { color:#607795; font-size:11px; font-weight:900; letter-spacing:1.5px; }
.stl-draw-ticket > strong { margin:5px 0; color:var(--stl-blue); font-size:clamp(34px,6vw,48px); line-height:1.15; font-weight:950; letter-spacing:2px; }
.stl-draw-ticket p { margin:4px 0 0; color:var(--stl-muted); font-size:12px; }
.stl-countdown-note { justify-content:center; color:#a45a08; }
.student-essay-exam-view .student-exam-actions { justify-content:center; }
.student-essay-exam-view .student-exam-btn { min-height:43px; padding:11px 20px; border-radius:9px; font-weight:800; box-shadow:0 3px 8px rgba(37,99,235,.14); }
.student-essay-exam-view .student-exam-btn.secondary { background:#64748b; box-shadow:none; }
.student-essay-exam-view .student-exam-btn.danger { background:#c83b35; }
.student-essay-exam-view .student-exam-btn:hover { filter:brightness(.96); transform:translateY(-1px); }
.student-essay-exam-view .student-exam-message { border:1px solid #d8e6fb; line-height:1.5; }
.stl-paper-wrap { display:grid; gap:16px; margin-top:20px; }
.stl-exam-banner { overflow:hidden; padding:clamp(18px,3vw,28px); border-radius:16px; color:#fff; background:linear-gradient(120deg,#123b7a 0%,#1e5ca8 65%,#2874bd 100%); box-shadow:0 9px 24px rgba(20,65,125,.16); }
.stl-exam-banner-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.stl-exam-kicker { color:#d8e8ff; font-size:10px; font-weight:850; letter-spacing:1.4px; }
.stl-exam-form-tag { padding:5px 10px; border:1px solid rgba(255,255,255,.35); border-radius:30px; color:#fff; background:rgba(255,255,255,.12); font-size:10px; font-weight:900; letter-spacing:1px; }
.stl-exam-banner h2 { margin:14px 0 4px; color:#fff; font-size:clamp(22px,3vw,29px); font-weight:900; letter-spacing:.4px; }
.stl-exam-subtitle { margin:0 0 18px; color:#e2edff; font-size:14px; }
.stl-exam-meta { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }
.stl-exam-meta > div { min-width:0; padding:10px 11px; border:1px solid rgba(255,255,255,.16); border-radius:9px; background:rgba(255,255,255,.09); }
.stl-exam-meta span { display:block; margin-bottom:4px; color:#d4e4fa; font-size:10px; }
.stl-exam-meta strong { display:block; overflow-wrap:anywhere; color:#fff; font-size:13px; }
.stl-exam-meta .stl-exam-code { color:#ffe0a8; font-size:17px; letter-spacing:1px; }
.stl-exam-clock { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding:11px 14px; border:1px solid rgba(255,255,255,.22); border-radius:10px; background:rgba(7,29,65,.22); }
.stl-exam-clock span { color:#e2edff; font-size:11px; font-weight:850; letter-spacing:.8px; }
.stl-exam-clock strong { color:#fff2c8; font-size:clamp(20px,3vw,26px); font-variant-numeric:tabular-nums; letter-spacing:1.5px; }
.stl-exam-instruction { display:flex; align-items:flex-start; gap:10px; padding:13px 15px; border:1px solid #dbeafe; border-radius:11px; background:#eff6ff; }
.stl-instruction-icon { display:grid; place-items:center; flex:0 0 21px; height:21px; border-radius:50%; color:#fff; background:#3478d4; font-size:12px; font-weight:900; }
.stl-exam-instruction p { margin:0; color:#31547f; font-size:12px; line-height:1.65; }
.stl-question-list { display:grid; gap:16px; }
.student-essay-exam-view .stl-question-card { margin:0; padding:clamp(14px,2.4vw,22px); border:1px solid var(--stl-line); border-radius:14px; box-shadow:0 4px 15px rgba(23,55,99,.04); }
.stl-question-heading { display:flex; align-items:center; gap:11px; margin-bottom:15px; }
.stl-question-number { display:grid; place-items:center; flex:0 0 39px; height:39px; border-radius:11px; color:#fff; background:linear-gradient(135deg,#174ea6,#3478d4); font-size:13px; font-weight:900; }
.stl-question-heading h3 { margin:0 0 3px; color:var(--stl-ink); font-size:16px; }
.stl-question-hint { color:#7b8798; font-size:11px; }
.stl-question-score { margin-left:auto; padding:6px 10px; border-radius:20px; color:#9a570d; background:#fff4df; font-size:11px; font-weight:850; white-space:nowrap; }
.student-essay-exam-view .student-essay-question-content { margin-bottom:17px; padding:17px; border:1px solid #e5eaf1; border-radius:10px; background:#fbfcfe; color:#202d40; font-size:15px; line-height:1.8; overflow-wrap:anywhere; }
.student-essay-exam-view .student-essay-question-content p { margin:0 0 10px; }
.student-essay-exam-view .student-essay-question-content p:last-child { margin-bottom:0; }
.student-essay-exam-view .student-essay-question-content img { max-width:100%; height:auto; }
.stl-answer-label { display:block; margin:0 0 7px; color:#42546c; font-size:10px; font-weight:900; letter-spacing:1px; }
.student-essay-exam-view .stl-question-card textarea { width:100%; min-height:210px; margin:0; padding:14px 15px; border:1px solid #cbd7e6; border-radius:10px; background:#fff; color:#1e293b; font:inherit; font-size:15px; line-height:1.75; resize:vertical; outline:none; transition:border-color .18s,box-shadow .18s; }
.student-essay-exam-view .stl-question-card textarea:focus { border-color:#4b83d1; box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.student-essay-exam-view .stl-question-card textarea:disabled { background:#f8fafc; color:#475569; cursor:not-allowed; }
.stl-answer-footer { display:flex; justify-content:space-between; gap:10px; margin-top:7px; color:#8995a5; font-size:10px; }
.stl-submit-panel { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 17px; border:1px solid #e3eaf3; border-radius:13px; background:#fff; box-shadow:0 4px 15px rgba(23,55,99,.04); }
.stl-save-indicator { display:flex; align-items:center; gap:10px; min-width:0; }
.stl-save-dot { flex:0 0 9px; height:9px; border-radius:50%; background:#22a06b; box-shadow:0 0 0 4px #e8f7ef; }
.stl-save-indicator strong, .stl-save-indicator span { display:block; }
.stl-save-indicator strong { margin-bottom:3px; color:#33445b; font-size:12px; }
.stl-save-indicator span:not(.stl-save-dot) { color:#748195; font-size:11px; overflow-wrap:anywhere; }
.stl-submit-button { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:165px; }
.stl-submit-button span { font-size:14px; }
.stl-submit-button small { font-size:9px; font-weight:500; opacity:.9; }
.stl-submitted-panel { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid #b8e4cb; border-radius:13px; background:#effaf3; color:#145c36; }
.stl-submitted-icon { display:grid; place-items:center; flex:0 0 42px; height:42px; border-radius:50%; background:#c9f0d8; color:#147344; font-size:23px; font-weight:900; }
.stl-submitted-panel h3 { margin:0 0 4px; color:#145c36; font-size:16px; }
.stl-submitted-panel p { margin:0; color:#367451; font-size:12px; line-height:1.6; }
.stl-submitted-score { display:inline-block; margin-top:8px; color:#145c36; }
@media (max-width:760px) {
    .stl-step-strip { gap:6px; padding:10px; }
    .stl-step { gap:5px; font-size:10px; }
    .stl-step b { width:24px; height:24px; }
    .stl-exam-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .stl-exam-meta > div:last-child { grid-column:span 2; }
    .stl-exam-clock { align-items:flex-start; flex-direction:column; gap:5px; }
    .stl-submit-panel { align-items:stretch; flex-direction:column; }
    .stl-submit-button { width:100%; }
}
@media (max-width:480px) {
    .stl-page-heading { align-items:flex-start; }
    .stl-page-heading > button { padding:9px 10px !important; font-size:11px; }
    .stl-step { flex-direction:column; text-align:center; white-space:normal; }
    .stl-step-strip > i { min-width:5px; }
    .stl-question-heading { align-items:flex-start; }
    .stl-question-number { flex-basis:33px; height:33px; }
    .stl-question-hint { display:none; }
    .stl-question-score { padding:5px 7px; font-size:10px; }
    .student-essay-exam-view .stl-question-card textarea { min-height:180px; font-size:14px; }
    .stl-answer-footer { font-size:9px; }
}

/* =========================================
   THI TU LUAN - THONG TIN KY THI VA KET QUA
========================================= */

.student-essay-exam-view .stl-exam-overview {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #dce7f5;
  border-radius: 13px;
  background: #fff;
}

.student-essay-exam-view .stl-overview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #174ea6;
  font-size: 12px;
  letter-spacing: .5px;
}

.student-essay-exam-view .stl-overview-heading span {
  color: #d97706;
  font-size: 11px;
  font-weight: 800;
}

.student-essay-exam-view .stl-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.student-essay-exam-view .stl-overview-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e5ebf3;
  border-radius: 9px;
  background: #f8fafc;
}

.student-essay-exam-view .stl-overview-item span {
  display: block;
  margin-bottom: 5px;
  color: #718096;
  font-size: 10px;
  font-weight: 700;
}

.student-essay-exam-view .stl-overview-item strong {
  display: block;
  color: #263b59;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.student-essay-exam-view .stl-exam-submitted-time {
  padding: 11px 14px;
  border: 1px solid #dce7f5;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.student-essay-exam-view .stl-submitted-panel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid #b8e4cb;
  border-radius: 13px;
  background: #effaf3;
  color: #145c36;
}

.student-essay-exam-view .stl-submitted-content {
  min-width: 0;
}

.student-essay-exam-view .stl-submitted-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
}

.student-essay-exam-view .stl-submitted-details span {
  color: #367451;
}

.student-essay-exam-view .stl-submitted-details strong {
  color: #145c36;
}

.student-essay-exam-view .stl-submitted-note {
  margin-top: 9px;
  color: #367451;
  font-size: 11px;
}

@media (max-width: 760px) {
  .student-essay-exam-view .stl-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .student-essay-exam-view .stl-overview-grid {
    grid-template-columns: 1fr;
  }

  .student-essay-exam-view .stl-overview-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}



/* =========================================================
   ENGLISHCOMMERCE DN - STUDENT ORAL EXAM
   Premium dark / blue / violet design
   Scope: #student-oral-exam
========================================================= */

#student-oral-exam {
    --oral-bg: #071326;
    --oral-panel: rgba(15, 32, 59, .88);
    --oral-panel-2: #102442;
    --oral-border: rgba(148, 181, 230, .17);
    --oral-text: #edf5ff;
    --oral-muted: #9db1cd;
    --oral-blue: #39a9ff;
    --oral-cyan: #49e0e6;
    --oral-purple: #9275ff;
    --oral-gold: #ffd27a;
    --oral-green: #45d6a0;
    --oral-red: #ff7387;

    position: relative;
    isolation: isolate;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(14px, 3vw, 34px);
    color: var(--oral-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(45, 129, 255, .23), transparent 36%),
        radial-gradient(ellipse at 92% 14%, rgba(132, 91, 255, .20), transparent 32%),
        linear-gradient(145deg, #071326 0%, #0a1b35 48%, #10142f 100%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

#student-oral-exam,
#student-oral-exam * {
    box-sizing: border-box;
}

#student-oral-exam [hidden] {
    display: none !important;
}

#student-oral-exam::before,
#student-oral-exam::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

#student-oral-exam::before {
    width: 340px;
    height: 340px;
    top: 280px;
    right: -210px;
    background: rgba(49, 166, 255, .09);
}

#student-oral-exam::after {
    width: 280px;
    height: 280px;
    bottom: 100px;
    left: -190px;
    background: rgba(139, 102, 255, .10);
}

/* ================= HEADER ================= */

#student-oral-exam .student-oral-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid var(--oral-border);
    border-radius: 20px;
    background: rgba(13, 30, 55, .76);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
}

#student-oral-exam .student-oral-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

#student-oral-exam .student-oral-brand-mark {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: #071326;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffe5a6, #ffba57 52%, #ffdf9a);
    box-shadow: 0 8px 28px rgba(255, 190, 91, .24);
}

#student-oral-exam .student-oral-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--oral-cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
}

#student-oral-exam .student-oral-brand h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(15px, 2vw, 21px);
    font-weight: 850;
    letter-spacing: .2px;
}

#student-oral-exam .student-oral-brand p {
    margin: 3px 0 0;
    color: var(--oral-muted);
    font-size: 12px;
}

/* ================= HERO ================= */

#student-oral-exam .student-oral-intro {
    position: relative;
    padding: 7px 28px 17px;
    margin-bottom: 28px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(107, 177, 255, .25);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 120%, rgba(65, 192, 255, .25), transparent 45%),
        linear-gradient(115deg, rgba(21, 65, 119, .94), rgba(45, 45, 112, .94));
    box-shadow: 0 20px 55px rgba(0, 0, 0, .22);
}

#student-oral-exam .student-oral-intro::before {
    content: "LIVE";
    position: absolute;
    top: 22px;
    right: 24px;
    padding: 5px 12px;
    border: 1px solid rgba(87, 237, 217, .3);
    border-radius: 30px;
    color: #70f4dd;
    background: rgba(20, 210, 176, .10);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

#student-oral-exam .student-oral-kicker {
    display: inline-block;
    padding: 7px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 30px;
    color: #b9eaff;
    background: rgba(255, 255, 255, .08);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 3px;
}

#student-oral-exam .student-oral-intro h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5.5vw, 55px);
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: 1px;
    text-shadow: 0 5px 30px rgba(0, 0, 0, .2);
}

#student-oral-exam .student-oral-intro p {
    max-width: 650px;
    margin: 15px auto 0;
    color: #d0e4ff;
    font-size: 14px;
}

/* ================= MAIN CARDS ================= */

#student-oral-exam .student-oral-card {
    position: relative;
    padding: clamp(19px, 3vw, 30px);
    margin-bottom: 22px;
    border: 1px solid var(--oral-border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(19, 41, 72, .96), rgba(11, 27, 51, .96));
    box-shadow:
        0 15px 45px rgba(0, 0, 0, .19),
        inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(16px);
    animation: oralFadeUp .45s ease both;
}

#student-oral-exam .student-oral-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

#student-oral-exam .student-oral-step {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(70, 180, 255, .3);
    border-radius: 15px;
    color: #9ee5ff;
    background: linear-gradient(145deg, rgba(35, 143, 255, .25), rgba(113, 91, 255, .2));
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 7px 20px rgba(43, 139, 255, .12);
}

#student-oral-exam .student-oral-section-heading h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2.4vw, 23px);
    font-weight: 850;
}

#student-oral-exam .student-oral-section-heading p {
    margin: 3px 0 0;
    color: var(--oral-muted);
    font-size: 12px;
}

#student-oral-exam .student-oral-step-live {
    color: #fff;
    background: linear-gradient(135deg, #ff5375, #bd3768);
    border-color: rgba(255, 115, 135, .5);
}

/* ================= TEACHER OPTIONS ================= */

#student-oral-exam .student-oral-teacher-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 13px;
}

#student-oral-exam .student-oral-teacher-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 16px;
    text-align: left;
    color: var(--oral-text);
    border: 1px solid rgba(135, 174, 226, .17);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(28, 54, 88, .9), rgba(17, 37, 66, .9));
    cursor: pointer;
    transition: .22s ease;
}

#student-oral-exam .student-oral-teacher-option:hover {
    transform: translateY(-3px);
    border-color: rgba(69, 194, 255, .55);
    background: linear-gradient(145deg, rgba(35, 82, 131, .95), rgba(27, 47, 91, .95));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

#student-oral-exam .student-oral-teacher-option.is-selected {
    border-color: var(--oral-cyan);
    background: linear-gradient(130deg, rgba(24, 111, 150, .38), rgba(69, 86, 169, .32));
    box-shadow: 0 0 0 2px rgba(73, 224, 230, .10), 0 12px 28px rgba(0, 0, 0, .2);
}

#student-oral-exam .student-oral-teacher-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#student-oral-exam .student-oral-teacher-avatar {
    display: grid;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #32b9e9, #6d70ff);
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(52, 150, 255, .22);
}

#student-oral-exam .student-oral-teacher-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

#student-oral-exam .student-oral-teacher-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#student-oral-exam .student-oral-teacher-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: #a9c0dc;
    font-size: 10px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#student-oral-exam .student-oral-online {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(69, 214, 160, .22);
    border-radius: 30px;
    color: #75e9b9;
    background: rgba(69, 214, 160, .09);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .5px;
}

/* ================= FILTERS ================= */

#student-oral-exam .student-oral-filter-panel {
    padding: 20px;
    margin-top: 22px;
    border: 1px solid rgba(118, 165, 220, .16);
    border-radius: 18px;
    background: rgba(5, 17, 34, .42);
}

#student-oral-exam .student-oral-filter-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #dcecff;
    font-size: 13px;
}

#student-oral-exam .student-oral-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--oral-green);
    box-shadow: 0 0 13px rgba(69, 214, 160, .8);
}

#student-oral-exam .student-oral-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

#student-oral-exam .student-oral-field {
    display: grid;
    gap: 8px;
}

#student-oral-exam .student-oral-field label {
    color: #afc5df;
    font-size: 12px;
    font-weight: 750;
}

#student-oral-exam select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    outline: none;
    border: 1px solid rgba(133, 173, 224, .24);
    border-radius: 12px;
    color: #edf6ff;
    background-color: #142b4a;
    font: inherit;
    font-size: 13px;
    transition: .2s ease;
}

#student-oral-exam select:focus {
    border-color: var(--oral-blue);
    box-shadow: 0 0 0 3px rgba(57, 169, 255, .13);
}

#student-oral-exam select:disabled {
    opacity: .48;
    cursor: not-allowed;
}

#student-oral-exam select option {
    color: #fff;
    background: #142b4a;
}

#student-oral-exam .student-oral-compat-select {
    display: none !important;
}

/* ================= DRAW BOARD ================= */

#student-oral-exam .student-oral-draw-board {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
}

#student-oral-exam .student-oral-draw-code,
#student-oral-exam .student-oral-draw-count {
    display: flex;
    min-height: 155px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(117, 174, 255, .23);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(66, 177, 255, .17), transparent 70%),
        linear-gradient(145deg, rgba(24, 58, 101, .85), rgba(16, 32, 65, .9));
}

#student-oral-exam .student-oral-draw-code span,
#student-oral-exam .student-oral-draw-count span {
    color: #9ebbdc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

#student-oral-exam .student-oral-draw-code strong {
    color: #fff;
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: 5px;
    text-shadow: 0 0 30px rgba(61, 190, 255, .42);
}

#student-oral-exam .student-oral-draw-count strong {
    color: var(--oral-gold);
    font-size: clamp(34px, 5vw, 49px);
    font-weight: 950;
}

#student-oral-exam .student-oral-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* ================= BUTTONS ================= */

#student-oral-exam .oral-btn {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .1px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#student-oral-exam .oral-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

#student-oral-exam .oral-btn:active:not(:disabled) {
    transform: translateY(0);
}

#student-oral-exam .oral-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    filter: grayscale(.35);
}

#student-oral-exam .oral-btn-primary {
    color: #06172b;
    border-color: rgba(255, 255, 255, .18);
    background: linear-gradient(110deg, #58d7f4, #59aaff 55%, #a18aff);
    box-shadow: 0 8px 23px rgba(63, 161, 255, .24);
}

#student-oral-exam .oral-btn-primary:hover:not(:disabled) {
    box-shadow: 0 12px 30px rgba(63, 161, 255, .36);
}

#student-oral-exam .oral-btn-secondary {
    color: #dcecff;
    border-color: rgba(145, 183, 229, .27);
    background: linear-gradient(145deg, rgba(46, 73, 110, .85), rgba(25, 45, 77, .9));
}

#student-oral-exam .oral-btn-secondary:hover:not(:disabled) {
    border-color: rgba(84, 195, 255, .65);
    background: rgba(43, 83, 130, .95);
}

#student-oral-exam .student-oral-load-button,
#student-oral-exam .student-oral-check-button,
#student-oral-exam .student-oral-enter-button {
    margin-top: 16px;
}

#student-oral-exam .student-oral-enter-button {
    width: 100%;
    min-height: 54px;
    font-size: 15px;
}

/* ================= MESSAGES ================= */

#student-oral-exam .oral-message {
    margin: 14px 0 0;
    color: #a9c1dd;
    font-size: 12px;
    line-height: 1.7;
}

#student-oral-exam .oral-message.is-error {
    color: #ff91a0;
}

#student-oral-exam .student-oral-ready-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    margin-top: 20px;
    border: 1px solid rgba(71, 177, 255, .19);
    border-radius: 13px;
    background: rgba(40, 113, 178, .10);
}

#student-oral-exam .student-oral-ready-icon {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #071326;
    background: #72d9ff;
    font-size: 12px;
    font-weight: 900;
}

#student-oral-exam .student-oral-ready-message .oral-message {
    margin: 0;
}

/* ================= DEVICE CHECK ================= */

#student-oral-exam .student-oral-device-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr);
    gap: 18px;
}

#student-oral-exam .student-oral-video-preview {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(104, 173, 255, .26);
    border-radius: 18px;
    background:
        radial-gradient(circle at center, rgba(62, 122, 194, .2), transparent 65%),
        #030b17;
}

#student-oral-exam .student-oral-video-preview video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

#student-oral-exam .student-oral-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #a8c3e5;
    background: linear-gradient(145deg, rgba(13, 32, 58, .86), rgba(4, 14, 29, .93));
    text-align: center;
}

#student-oral-exam .student-oral-video-placeholder span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(105, 187, 255, .35);
    border-radius: 18px;
    color: #80d9ff;
    background: rgba(48, 132, 208, .16);
    font-size: 27px;
}

#student-oral-exam .student-oral-video-placeholder strong {
    color: #fff;
    font-size: 15px;
}

#student-oral-exam .student-oral-video-placeholder small {
    color: #91aac8;
    font-size: 11px;
}

#student-oral-exam .student-oral-device-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#student-oral-exam .student-oral-device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid rgba(139, 177, 224, .17);
    border-radius: 14px;
    background: rgba(22, 45, 75, .75);
}

#student-oral-exam .student-oral-device-icon {
    display: grid;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    color: #8edfff;
    background: rgba(61, 157, 225, .16);
    font-size: 18px;
}

#student-oral-exam .student-oral-device-item > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 3px;
}

#student-oral-exam .student-oral-device-item small {
    color: #91aac8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

#student-oral-exam .student-oral-device-item strong {
    color: #e7f2ff;
    font-size: 12px;
}

#student-oral-exam .student-oral-state-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #75869b;
}

#student-oral-exam .student-oral-device-item.is-ready .student-oral-state-indicator {
    background: var(--oral-green);
    box-shadow: 0 0 12px rgba(69, 214, 160, .8);
}

#student-oral-exam .student-oral-device-item.is-error .student-oral-state-indicator {
    background: var(--oral-red);
    box-shadow: 0 0 12px rgba(255, 115, 135, .7);
}

/* ================= LIVE EXAM ================= */

#student-oral-exam .oral-status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 100, 128, .22);
    border-radius: 12px;
    color: #ff9aab;
    background: rgba(255, 71, 112, .08);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

#student-oral-exam .oral-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8494a8;
}

#student-oral-exam .oral-status-dot.is-live {
    background: #ff5478;
    box-shadow: 0 0 0 5px rgba(255, 84, 120, .13), 0 0 15px #ff5478;
    animation: oralPulse 1.5s infinite;
}

#student-oral-exam .oral-status-dot.is-waiting {
    background: var(--oral-gold);
    box-shadow: 0 0 12px rgba(255, 210, 122, .6);
}

#student-oral-exam .oral-video-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#student-oral-exam .oral-video-card {
    overflow: hidden;
    border: 1px solid rgba(111, 172, 237, .2);
    border-radius: 17px;
    background: #030b17;
}

#student-oral-exam .oral-video-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    color: #fff;
    background: linear-gradient(90deg, #173c66, #202b59);
}

#student-oral-exam .oral-video-heading strong {
    font-size: 13px;
}

#student-oral-exam .oral-video-heading span {
    color: #a9c8ed;
    font-size: 10px;
}

#student-oral-exam .oral-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #020711;
}

#student-oral-exam .oral-exam-content {
    padding: 20px;
    margin-top: 18px;
    border: 1px solid rgba(113, 174, 239, .2);
    border-radius: 16px;
    background: rgba(5, 17, 34, .58);
}

#student-oral-exam .oral-exam-content h3 {
    margin: 0 0 12px;
    color: #8edfff;
    font-size: 15px;
}

#student-oral-exam #student-oral-question-content {
    color: #e2edfa;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

#student-oral-exam .oral-live-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* ================= UPLOAD / COMPLETED ================= */

#student-oral-exam .oral-empty-state {
    padding: 28px 15px;
    text-align: center;
}

#student-oral-exam .oral-empty-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin: 0 auto 17px;
    border: 1px solid rgba(89, 220, 180, .32);
    border-radius: 24px;
    color: #8af0c9;
    background: linear-gradient(145deg, rgba(48, 190, 151, .2), rgba(50, 128, 185, .18));
    box-shadow: 0 10px 35px rgba(36, 190, 147, .12);
    font-size: 34px;
    font-weight: 900;
}

#student-oral-exam .oral-empty-state h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

#student-oral-exam .oral-empty-state p {
    max-width: 580px;
    margin: 9px auto 0;
    color: var(--oral-muted);
    font-size: 13px;
}

#student-oral-exam .oral-upload-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}

#student-oral-exam .oral-upload-progress-track {
    flex: 1;
    height: 11px;
    overflow: hidden;
    border-radius: 20px;
    background: #09172a;
}

#student-oral-exam #student-oral-upload-progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #43d9c1, #43aaff, #9b7dff);
    box-shadow: 0 0 16px rgba(67, 170, 255, .35);
    transition: width .25s ease;
}

#student-oral-exam #student-oral-upload-percent {
    min-width: 42px;
    color: #a8eaff;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

#student-oral-exam .oral-session-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

#student-oral-exam .oral-session-info > div {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid rgba(130, 174, 226, .17);
    border-radius: 13px;
    background: rgba(5, 17, 34, .45);
}

#student-oral-exam .oral-session-info span {
    color: #91aac8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#student-oral-exam .oral-session-info strong {
    color: #fff;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* ================= EMPTY / NOTICE ================= */

#student-oral-exam .student-oral-empty {
    display: flex;
    min-height: 125px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 22px;
    border: 1px dashed rgba(129, 173, 226, .25);
    border-radius: 16px;
    color: #a9c1dc;
    background: rgba(8, 22, 42, .4);
    text-align: center;
}

#student-oral-exam .student-oral-empty strong {
    color: #e5f1ff;
    font-size: 14px;
}

#student-oral-exam .student-oral-empty span {
    font-size: 11px;
}

#student-oral-exam .student-oral-empty-icon {
    color: #72cfff;
    font-size: 25px;
}

#student-oral-exam .oral-notice {
    position: sticky;
    z-index: 10;
    bottom: 15px;
    padding: 14px 18px;
    margin-top: 15px;
    border: 1px solid rgba(78, 193, 255, .35);
    border-radius: 14px;
    color: #e6f6ff;
    background: rgba(13, 49, 83, .96);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .3);
    backdrop-filter: blur(15px);
}

/* ================= FOCUS / ACCESSIBILITY ================= */

#student-oral-exam button:focus-visible,
#student-oral-exam select:focus-visible {
    outline: 3px solid rgba(73, 224, 230, .7);
    outline-offset: 3px;
}

#student-oral-exam button,
#student-oral-exam select {
    -webkit-tap-highlight-color: transparent;
}

/* ================= ANIMATIONS ================= */

@keyframes oralFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes oralPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .65;
        transform: scale(.82);
    }
}

/* ================= TABLET ================= */

@media (max-width: 900px) {
    #student-oral-exam {
        padding: 16px;
        border-radius: 20px;
    }

    #student-oral-exam .student-oral-device-layout {
        grid-template-columns: 1fr;
    }

    #student-oral-exam .student-oral-video-preview,
    #student-oral-exam .student-oral-video-preview video {
        min-height: 300px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
    #student-oral-exam {
        padding: 10px;
        border-radius: 15px;
    }

    #student-oral-exam .student-oral-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
        gap: 13px;
        border-radius: 16px;
    }

    #student-oral-exam .student-oral-brand-mark {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 18px;
    }

    #student-oral-exam .student-oral-brand p {
        font-size: 10px;
    }

    #student-oral-exam .student-oral-header > button {
        width: 100%;
    }

    #student-oral-exam .student-oral-intro {
        padding: 30px 16px 25px;
        margin-bottom: 15px;
        border-radius: 19px;
    }

    #student-oral-exam .student-oral-intro::before {
        top: 12px;
        right: 12px;
        font-size: 8px;
    }

    #student-oral-exam .student-oral-intro h1 {
        font-size: clamp(27px, 8vw, 39px);
    }

    #student-oral-exam .student-oral-intro p {
        font-size: 12px;
    }

    #student-oral-exam .student-oral-card {
        padding: 16px 13px;
        margin-bottom: 14px;
        border-radius: 17px;
    }

    #student-oral-exam .student-oral-section-heading {
        gap: 11px;
        margin-bottom: 17px;
    }

    #student-oral-exam .student-oral-step {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    #student-oral-exam .student-oral-section-heading h3 {
        font-size: 17px;
    }

    #student-oral-exam .student-oral-section-heading p {
        font-size: 10px;
    }

    #student-oral-exam .student-oral-teacher-list {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    #student-oral-exam .student-oral-teacher-option {
        padding: 12px;
    }

    #student-oral-exam .student-oral-filter-panel {
        padding: 14px;
        margin-top: 15px;
    }

    #student-oral-exam .student-oral-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #student-oral-exam .student-oral-draw-board {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #student-oral-exam .student-oral-draw-code,
    #student-oral-exam .student-oral-draw-count {
        min-height: 115px;
    }

    #student-oral-exam .student-oral-draw-code strong {
        font-size: 51px;
    }

    #student-oral-exam .student-oral-actions {
        flex-direction: column;
    }

    #student-oral-exam .student-oral-actions .oral-btn {
        width: 100%;
    }

    #student-oral-exam .student-oral-video-preview,
    #student-oral-exam .student-oral-video-preview video {
        min-height: 220px;
    }

    #student-oral-exam .oral-video-layout {
        grid-template-columns: 1fr;
    }

    #student-oral-exam .oral-live-controls {
        flex-direction: column;
    }

    #student-oral-exam .oral-live-controls .oral-btn {
        width: 100%;
    }

    #student-oral-exam .oral-session-info {
        grid-template-columns: 1fr;
    }

    #student-oral-exam .oral-empty-state h3 {
        font-size: 19px;
    }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    #student-oral-exam *,
    #student-oral-exam *::before,
    #student-oral-exam *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* Đánh giá sao giáo viên */
.teacher-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0 3px;
    font-size: 10px;
    line-height: 1.4;
}

.teacher-rating[hidden] {
    display: none !important;
}

.teacher-rating-stars {
    color: #F4A623;
    font-size: 15px;
    letter-spacing: 1px;
    white-space: nowrap;
}

#teacher-rating-summary {
    color: #647789;
    font-size: 10px;
    font-weight: 600;
}

/* =====================================
   TEACHER RATINGS - FOOTER / MAIN
===================================== */

.footer-rating-button {
    border: 1px solid rgba(255, 195, 110, .55);
    border-radius: 7px;
    padding: 8px 12px;
    background: rgba(242, 140, 40, .15);
    color: #FFC36E;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.footer-rating-button:hover {
    background: rgba(242, 140, 40, .3);
    color: #fff;
}

.teacher-ratings-view {
    width: 100%;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.teacher-ratings-view[hidden] {
    display: none !important;
}

.teacher-ratings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.teacher-ratings-eyebrow {
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.teacher-ratings-header h2 {
    margin: 6px 0;
    color: var(--blue-deep);
    font-size: clamp(20px, 2.5vw, 28px);
}

.teacher-ratings-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.teacher-ratings-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.teacher-ratings-actions button,
.teacher-ratings-pagination button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #B8D6EA;
    border-radius: 8px;
    background: #F2F9FD;
    color: var(--blue);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.teacher-ratings-actions button:disabled,
.teacher-ratings-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.teacher-ratings-filters {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.teacher-ratings-filters label {
    display: grid;
    gap: 7px;
    color: #506579;
    font-size: 11px;
    font-weight: 700;
}

.teacher-ratings-filters select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #D5E1EA;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}

.teacher-ratings-message {
    margin: 12px 0;
    padding: 10px 13px;
    border-radius: 8px;
    background: #F2F9FD;
    color: #42647D;
    font-size: 12px;
}

.teacher-ratings-message.is-success {
    background: #E8F5E9;
    color: #246B35;
}

.teacher-ratings-message.is-error {
    background: #FEF2F2;
    color: #B91C1C;
}

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

.teacher-ratings-stat {
    padding: 17px;
    border: 1px solid #E2EAF0;
    border-radius: 11px;
    background: #F8FBFE;
}

.teacher-ratings-stat span {
    display: block;
    color: #718496;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
}

.teacher-ratings-stat strong {
    display: block;
    margin-top: 8px;
    color: var(--blue-deep);
    font-size: 25px;
    font-weight: 800;
}

.teacher-ratings-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.teacher-ratings-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #E2EAF0;
    border-radius: 12px;
    background: #fff;
}

.teacher-ratings-card h3 {
    margin: 0;
    color: var(--blue-deep);
    font-size: 14px;
}

.teacher-ratings-description {
    margin: 6px 0 16px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.ratings-distribution {
    display: grid;
    gap: 14px;
}

.ratings-distribution-row {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.ratings-distribution-label {
    color: #66798B;
    font-weight: 600;
}

.ratings-distribution-track {
    height: 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #EDF2F6;
}

.ratings-distribution-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #F6B84C, #E78B22);
    transition: width .3s ease;
}

.ratings-distribution-row strong {
    color: var(--ink);
    text-align: right;
}

.ratings-weekly-chart {
    min-height: 185px;
    overflow-x: auto;
}

.ratings-weekly-list {
    min-width: max-content;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 8px 4px 0;
}

.ratings-weekly-item {
    width: 58px;
    height: 175px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 10px;
}

.ratings-weekly-item strong {
    color: var(--blue);
    font-size: 12px;
}

.ratings-weekly-column {
    width: 28px;
    height: 105px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    background: #EDF2F6;
}

.ratings-weekly-bar {
    width: 100%;
    min-height: 3px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #56B5E5, #0756A5);
}

.ratings-weekly-item > span {
    color: #526A7E;
    font-weight: 700;
}

.ratings-weekly-item small {
    color: #8291A0;
    font-size: 9px;
}

.teacher-ratings-reviews {
    margin-top: 14px;
}

.teacher-ratings-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ratings-review-item {
    padding: 15px 0;
    border-bottom: 1px solid #EDF2F6;
}

.ratings-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ratings-review-top strong {
    color: var(--blue-deep);
    font-size: 12px;
}

.ratings-review-stars {
    color: #F4A623;
    font-size: 15px;
    letter-spacing: 1px;
}

.ratings-review-item p {
    margin: 9px 0;
    color: #405568;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.ratings-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #8795A2;
    font-size: 10px;
}

.ratings-empty {
    padding: 22px 10px;
    color: #8291A0;
    text-align: center;
    font-size: 12px;
}

.teacher-ratings-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 16px;
    color: #647789;
    font-size: 11px;
}

@media (max-width: 700px) {
    .teacher-ratings-view {
        padding: 13px;
    }

    .teacher-ratings-filters {
        grid-template-columns: 1fr 1fr;
    }

    .teacher-ratings-filters label:first-child {
        grid-column: 1 / -1;
    }

    .teacher-ratings-stats {
        grid-template-columns: 1fr;
    }

    .teacher-ratings-stat {
        padding: 13px;
    }

    .teacher-ratings-stat strong {
        font-size: 21px;
    }

    .teacher-ratings-charts {
        grid-template-columns: 1fr;
    }

    .teacher-ratings-card {
        padding: 14px;
    }

    .teacher-ratings-header {
        align-items: flex-start;
    }

    .teacher-ratings-actions {
        width: 100%;
    }

    .teacher-ratings-actions button {
        flex: 1;
    }
}

/* Mobile usability pass 1: responsive containment and touch targets */

@media (max-width: 700px) {
  .site-shell,
  .site-header,
  .main-layout,
  .center-stage,
  .side-panel {
    min-width: 0;
    max-width: 100%;
  }

  .brand-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .school-logo {
    width: 52px;
    height: 52px;
  }

  .heading-copy {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .heading-line-one {
    font-size: clamp(9px, 2.7vw, 11px);
    line-height: 1.35;
  }

  .heading-line-two {
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.25;
  }

  .heading-line-three {
    font-size: 9px;
    overflow-wrap: anywhere;
  }

  .main-layout {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .side-panel,
  .center-stage {
    overflow: hidden;
  }

  .side-panel button,
  .side-panel a,
  .mobile-nav-button {
    touch-action: manipulation;
  }

  .side-panel button,
  .side-panel a {
    min-height: 42px;
  }

  .footer-top,
  .footer-bottom,
  .contact-items {
    min-width: 0;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .brand-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .school-logo {
    width: 44px;
    height: 44px;
  }

  .heading-line-two {
    font-size: 16px;
  }

  .mobile-nav-button {
    font-size: 9px;
  }
}

