*{box-sizing:border-box}
:root{
  --bg:#f4f7fc;
  --bg2:#eef4fb;
  --panel:#ffffff;
  --text:#1f2a44;
  --muted:#60708a;
  --line:#e2eaf5;
  --primary:#4a90e2;
  --primary-dark:#2f6fba;
  --primary-soft:#eef5ff;
  --shadow:0 10px 30px rgba(39,73,124,.08);
}

html,body{margin:0;padding:0}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,var(--bg2),var(--bg));
}

a{
  text-decoration:none;
  color:inherit;
}

/* ===== Navbar ===== */

.navbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(255,255,255,.82);
  border-bottom:1px solid rgba(226,234,245,.9);
  box-shadow:0 6px 20px rgba(39,73,124,.06);
}

.nav-inner{
  max-width:1180px;
  margin:0 auto;
  padding:10px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.logo{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.05;
  min-width:max-content;
}

.logo-main{
  font-size:18px;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--text);
}

.logo-sub{
  margin-top:3px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  scrollbar-width:none;
}

.nav-links::-webkit-scrollbar{
  display:none;
}

.auth-nav{display:flex;align-items:center;gap:8px;min-width:max-content}
.auth-nav button{border:0;border-radius:999px;padding:8px 13px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.auth-account{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-login,.auth-account{background:var(--primary-soft);color:var(--primary-dark)}
.auth-signup{background:var(--primary);color:#fff}
.auth-logout{background:#edf1f7;color:var(--muted)}
.auth-loading{font-size:12px;color:var(--muted)}
.auth-modal{display:none;position:fixed;inset:0;z-index:5000;align-items:center;justify-content:center;padding:20px}
.auth-modal.open{display:flex}.auth-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(4px)}
body.auth-practice-locked{overflow:hidden}
body.auth-practice-locked > :not(#authModal){pointer-events:none;user-select:none;filter:blur(2px)}
body.auth-practice-locked .auth-close,body.auth-practice-locked [data-auth-close]{display:none}
.auth-dialog{position:relative;width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 25px 70px rgba(15,23,42,.25)}
.auth-close{position:absolute;right:16px;top:14px;border:0;background:transparent;color:var(--muted);font-size:26px;cursor:pointer}
.auth-kicker{color:var(--primary-dark);font-weight:900;font-size:13px;letter-spacing:.06em;text-transform:uppercase}.auth-dialog h2{font-size:30px;margin:8px 0}.auth-intro{margin:0 0 20px;color:var(--muted);line-height:1.6}
.auth-dialog label{display:block;font-size:13px;font-weight:800;margin:13px 0;color:var(--text)}.auth-dialog input{display:block;width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:12px;padding:12px 13px;font:inherit;outline:none}.auth-dialog input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.auth-submit{width:100%;margin-top:8px;border:0;border-radius:12px;padding:13px;background:var(--primary);color:#fff;font:inherit;font-weight:900;cursor:pointer}.auth-submit:disabled{opacity:.65;cursor:wait}
.auth-message{min-height:22px;margin-top:12px;font-size:13px;text-align:center;color:var(--muted)}.auth-message.success{color:#15803d}.auth-message.error{color:#b91c1c}
.auth-switches{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:8px}.auth-switches button{border:0;background:transparent;color:var(--primary-dark);font:inherit;font-size:13px;font-weight:800;cursor:pointer}

@media (max-width:760px){
  .nav-inner{align-items:flex-start;flex-wrap:wrap}
  .nav-links{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
  .auth-nav{margin-left:auto}
  .auth-dialog{padding:24px 20px}
}

.nav-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  color:var(--muted);
  transition:.2s;
}

.nav-links a:hover{
  background:var(--primary-soft);
  color:var(--primary-dark);
}

.nav-links a.active{
  background:var(--primary-soft);
  color:var(--primary-dark);
}

.page-shell{
  max-width:1180px;
  margin:0 auto;
  padding:96px 20px 60px;
}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}

/* ===== Home ===== */

.hero{
  padding:34px 36px 28px;
  margin-bottom:28px;
}

.badge{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary-dark);
  font-weight:700;
  font-size:14px;
  margin-bottom:14px;
}

.hero h1{
  margin:0 0 14px;
  font-size:64px;
}

.hero p{
  margin:0;
  color:var(--muted);
  font-size:20px;
  line-height:1.7;
}

.hero .encourage{
  margin-top:12px;
  color:#345a94;
  font-weight:700;
}

.home-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  margin-bottom:28px;
}

.module-card{
  display:block;
  padding:28px;
  transition:.25s ease;
}

.module-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(39,73,124,.12);
}

.home-card{
  min-height:200px;
}

.icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary-soft);
  font-size:27px;
  margin-bottom:16px;
}

.module-card h2{
  margin:0 0 10px;
  font-size:30px;
  line-height:1.2;
}

.desc{
  margin:0;
  color:var(--muted);
  line-height:1.8;
  font-size:17px;
}

/* ===== Home footer follow ===== */

.footer-follow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  padding:28px 30px;
}

.footer-follow-main{
  flex:1;
  min-width:0;
}

.footer-follow-title{
  font-size:20px;
  font-weight:800;
  margin-bottom:10px;
  color:var(--text);
}

.footer-follow-text{
  margin:0;
  color:var(--muted);
  line-height:1.8;
  font-size:16px;
}

.footer-follow-qr{
  flex-shrink:0;
}

.footer-follow-qr img{
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
}

/* ===== Common ===== */

.top-link{
  color:var(--primary-dark);
  font-weight:700;
  display:inline-block;
  margin-bottom:16px;
}

.page-title h1{
  font-size:34px;
  margin:0 0 10px;
}

.page-subtitle{
  color:var(--muted);
}

/* ===== Card grid for section pages ===== */

.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.card-grid .card{
  display:block;
  padding:24px;
  transition:.2s;
}

.card-grid .card:hover{
  transform:translateY(-2px);
}

.card-grid h3{
  margin:0 0 10px;
  font-size:20px;
}

.card-grid p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

/* ===== Scene cards ===== */

.scene-card{
  margin-bottom:14px;
  overflow:hidden;
}

.scene-header{
  width:100%;
  border:none;
  padding:18px 20px;
  background:#f7faff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
}

.scene-name{
  font-size:20px;
  font-weight:700;
  text-align:left;
  line-height:1.4;
}

.scene-arrow{
  color:#9bb3d6;
  font-size:18px;
}

.scene-content{
  display:none;
  padding:18px;
  border-top:1px solid var(--line);
}

.scene-content.open{
  display:block;
}

.lr-instruction-panel{
  padding:20px 18px 24px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  text-align:center;
}

.lr-instruction-text{
  max-width:980px;
  margin:0 auto 16px;
  color:#0f172a;
  font-size:28px;
  font-weight:900;
  line-height:1.35;
}

.lr-instruction-controls{
  display:flex;
  justify-content:center;
}

.lr-instruction-image{
  display:block;
  width:min(520px, 100%);
  height:auto;
  margin:10px auto 18px;
  border:1px solid #d1d5db;
  background:#fff;
}

.lr-practice-layout{
  display:grid;
  grid-template-columns:minmax(260px, 420px) minmax(0, 1fr);
  gap:18px;
  align-items:start;
}

.lr-practice-stack{
  min-width:0;
}

.lr-visual-panel{
  position:sticky;
  top:96px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
}

.lr-practice-image{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #d1d5db;
  background:#fff;
}

.lr-flow-panel{
  margin-bottom:14px;
  padding:14px;
  border:1px solid #dbeafe;
  border-radius:16px;
  background:#eff6ff;
}

.lr-flow-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.lr-flow-status{
  color:#475569;
  font-size:14px;
  line-height:1.6;
}

.lr-countdown{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:900;
  color:#1e3a8a;
}

.lr-countdown-number{
  min-width:52px;
  text-align:center;
  border-radius:999px;
  padding:8px 12px;
  background:#fff;
  border:1px solid #bfdbfe;
  font-size:22px;
}

.line-item.active{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
  background:#f8fbff;
}

.scene-card.exam-running .manual-control{
  display:none;
}

.scene-card.exam-running .mine-btn{
  opacity:.45;
  pointer-events:none;
}

.scene-card.exam-running .line-item{
  opacity:.6;
}

.scene-card.exam-running .line-item.active,
.scene-card.exam-running .line-item.recorded-in-flow{
  opacity:1;
}

.scene-card.exam-running .line-item.active .record-status{
  color:#1e3a8a;
  font-weight:700;
}

/* ===== Speaking ===== */

.line-item{
  display:flex;
  gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  margin-bottom:10px;
}

.sentence-controls{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.play-btn,.record-btn,.mine-btn,.text-toggle-btn{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
}

.play-btn{
  background:var(--primary-soft);
}

.line-text{
  font-size:18px;
  line-height:1.7;
}

.hidden-text{
  display:none;
}

.hidden-text.show{
  display:block;
}

.vocab-grid{
  display:none;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.vocab-grid.show{
  display:grid;
}

.vocab-item{
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
}

.toolbar{
  padding:20px;
  margin:18px 0 22px;
}

.helper{
  color:var(--muted);
  font-size:14px;
}

.select{
  margin-top:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  font-size:14px;
}

.notice{
  margin-top:12px;
  color:var(--muted);
  line-height:1.6;
}

.set-header{
  margin:18px 0;
}

.set-header h2{
  margin:0 0 8px;
  font-size:26px;
}

.block-title{
  margin:18px 0 10px;
  font-size:18px;
}

.line-label{
  font-weight:700;
  margin-bottom:8px;
}

.record-status{
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.sentence-wrap{
  flex:1;
}

/* ===== Mobile ===== */

@media (max-width:900px){
  .lr-practice-layout{
    grid-template-columns:1fr;
  }

  .lr-visual-panel{
    position:static;
  }

  .card-grid{
    grid-template-columns:1fr;
  }

  .home-grid{
    grid-template-columns:1fr;
  }

  .footer-follow{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-follow-qr img{
    width:140px;
    height:140px;
  }
}

@media (max-width:700px){
  .nav-inner{
    flex-direction:column;
    align-items:flex-start;
    padding:10px 16px;
  }

  .nav-links{
    width:100%;
    gap:8px;
  }

  .nav-links a{
    padding:8px 12px;
    font-size:14px;
  }

  .page-shell{
    padding-top:188px;
  }

  .hero h1{
    font-size:44px;
  }

  .module-card h2{
    font-size:26px;
  }

  .logo-main{
    font-size:16px;
  }
}

/* ===== Listening Hub ===== */

.listening-type-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px 34px 10px;
  flex-wrap:wrap;
}

.listening-type-label{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

.listening-type-tabs{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.listening-type-tab{
  border:none;
  background:#f2f5fb;
  color:#5f6c82;
  font-size:17px;
  font-weight:800;
  padding:18px 28px;
  border-radius:16px;
  cursor:pointer;
  transition:.2s ease;
}

.listening-type-tab:hover{
  background:#eaf1ff;
  color:var(--primary-dark);
}

.listening-type-tab.active{
  background:#6574f7;
  color:#fff;
  box-shadow:0 12px 24px rgba(101,116,247,.22);
}

.listening-panel{
  padding:28px 34px 34px;
}

.listening-panel-head{
  margin-bottom:18px;
}

.listening-panel-head h2{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.25;
}

.listening-panel-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.listening-list-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.listening-card{
  display:block;
  min-height:178px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
  transition:.18s ease;
}

.listening-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(24,39,75,.09);
}

.listening-card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  color:#7a869a;
  font-size:13px;
  font-weight:700;
}

.listening-card-title{
  color:var(--text);
  font-size:18px;
  font-weight:800;
  line-height:1.4;
  margin-bottom:8px;
}

.listening-card-sub{
  color:var(--primary-dark);
  font-size:14px;
  font-weight:600;
  line-height:1.6;
  min-height:44px;
  margin-bottom:10px;
}

.listening-card-foot{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.listening-empty{
  color:#dc3545;
  font-size:15px;
  padding:18px 0;
}

@media (max-width:900px){
  .listening-list-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:700px){
  .listening-type-row{
    padding:20px 20px 8px;
    gap:12px;
  }

  .listening-type-label{
    width:100%;
    font-size:16px;
  }

  .listening-type-tabs{
    width:100%;
  }

  .listening-type-tab{
    padding:14px 18px;
    font-size:15px;
    border-radius:14px;
  }

  .listening-panel{
    padding:16px 20px 24px;
  }

  .listening-panel-head h2{
    font-size:24px;
  }

  .listening-list-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .listening-card{
    min-height:0;
    padding:18px;
    border-radius:18px;
  }
}

@media (max-width:600px){
  .scene-name{
    font-size:18px;
  }

  .lr-instruction-text{
    font-size:20px;
    line-height:1.45;
  }

  .scene-header{
    align-items:flex-start;
  }

  .line-item{
    flex-direction:column;
  }

  .sentence-controls{
    flex-direction:row;
    flex-wrap:wrap;
  }

  .vocab-grid{
    grid-template-columns:1fr;
  }
}

/* ===== Simple Page (子页面统一风格) ===== */

.page-simple{
  max-width:900px;
  margin:0 auto;
  padding:110px 20px 60px;
}

.page-simple h1{
  font-size:48px;
  margin-bottom:12px;
}

.page-desc{
  color:var(--muted);
  margin-bottom:28px;
  font-size:16px;
}

/* 列表 */

.section-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.section-item{
  display:block;
  padding:18px 20px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--line);
  transition:.2s;
}

.section-item:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}

.section-title{
  display:block;
  font-weight:700;
  font-size:18px;
  margin-bottom:4px;
}

.section-sub{
  color:var(--muted);
  font-size:14px;
}

/* ===== Reading Hub ===== */

.reading-hub{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.reading-hub-header{
  padding:34px 34px 20px;
  border-bottom:1px solid var(--line);
}

.reading-hub-header h1{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.2;
}

.reading-hub-header p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.reading-type-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px 34px 10px;
  flex-wrap:wrap;
}

.reading-type-label{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

.reading-type-tabs{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.reading-type-tab{
  border:none;
  background:#f2f5fb;
  color:#5f6c82;
  font-size:17px;
  font-weight:800;
  padding:18px 28px;
  border-radius:16px;
  cursor:pointer;
  transition:.2s ease;
}

.reading-type-tab:hover{
  background:#eaf1ff;
  color:var(--primary-dark);
}

.reading-type-tab.active{
  background:#6574f7;
  color:#fff;
  box-shadow:0 12px 24px rgba(101,116,247,.22);
}

.reading-panel{
  padding:18px 34px 34px;
}

.reading-panel-head{
  margin-bottom:18px;
}

.reading-panel-head h2{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.25;
}

.reading-panel-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.reading-list-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.reading-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
  transition:.18s ease;
}

.reading-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(24,39,75,.09);
}

.reading-card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  color:#7a869a;
  font-size:13px;
  font-weight:700;
}

.reading-card-title{
  font-size:18px;
  font-weight:800;
  line-height:1.4;
  color:var(--text);
  margin-bottom:8px;
}

.reading-card-sub{
  color:var(--primary-dark);
  font-size:14px;
  line-height:1.6;
  min-height:22px;
  margin-bottom:10px;
  font-weight:600;
}

.reading-card-foot{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  min-height:22px;
}

.reading-empty{
  color:#dc3545;
  font-size:15px;
  padding:18px 0;
}

/* ===== Reading Hub Mobile ===== */

@media (max-width:900px){
  .reading-list-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:700px){
  .reading-hub-header{
    padding:26px 20px 16px;
  }

  .reading-hub-header h1{
    font-size:34px;
  }

  .reading-type-row{
    padding:20px 20px 8px;
    gap:12px;
  }

  .reading-type-label{
    width:100%;
    font-size:16px;
  }

  .reading-type-tabs{
    width:100%;
  }

  .reading-type-tab{
    padding:14px 18px;
    font-size:15px;
    border-radius:14px;
  }

  .reading-panel{
    padding:16px 20px 24px;
  }

  .reading-panel-head h2{
    font-size:24px;
  }

  .reading-list-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .reading-card{
    padding:18px;
    border-radius:18px;
  }

  .reading-card-title{
    font-size:17px;
  }
}

/* ===== Writing Hub ===== */

.writing-hub{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.writing-hub-header{
  padding:34px 34px 20px;
  border-bottom:1px solid var(--line);
  text-align: left;
}

.writing-hub-header h1{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.2;
}

.writing-hub-header p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.writing-type-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px 34px 10px;
  flex-wrap:wrap;
}

.writing-type-label{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

.writing-type-tabs{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.writing-type-tab{
  border:none;
  background:#f2f5fb;
  color:#5f6c82;
  font-size:17px;
  font-weight:800;
  padding:18px 28px;
  border-radius:16px;
  cursor:pointer;
  transition:.2s ease;
}

.writing-type-tab:hover{
  background:#eaf1ff;
  color:var(--primary-dark);
}

.writing-type-tab.active{
  background:#6574f7;
  color:#fff;
  box-shadow:0 12px 24px rgba(101,116,247,.22);
}

.writing-panel{
  padding:18px 34px 34px;
}

.writing-panel-head{
  margin-bottom:18px;
}

.writing-panel-head h2{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.25;
}

.writing-panel-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.writing-list-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.writing-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
  transition:.18s ease;
}

.writing-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(24,39,75,.09);
}

.writing-card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  color:#7a869a;
  font-size:13px;
  font-weight:700;
}

.writing-card-title{
  font-size:18px;
  font-weight:800;
  line-height:1.4;
  color:var(--text);
  margin-bottom:8px;
}

.writing-card-sub{
  color:var(--primary-dark);
  font-size:14px;
  line-height:1.6;
  min-height:22px;
  margin-bottom:10px;
  font-weight:600;
}

.writing-card-foot{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  min-height:22px;
}

.writing-empty-card{
  background:#fff;
  border:1px dashed #cbd5e1;
  border-radius:20px;
  padding:26px;
}

.writing-empty-title{
  font-size:20px;
  font-weight:800;
  margin-bottom:8px;
  color:var(--text);
}

.writing-empty-text{
  font-size:15px;
  line-height:1.8;
  color:var(--muted);
}

@media (max-width:900px){
  .writing-list-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:700px){
  .writing-hub-header{
    padding:26px 20px 16px;
  }

  .writing-hub-header h1{
    font-size:34px;
  }

  .writing-type-row{
    padding:20px 20px 8px;
    gap:12px;
  }

  .writing-type-label{
    width:100%;
    font-size:16px;
  }

  .writing-type-tabs{
    width:100%;
  }

  .writing-type-tab{
    padding:14px 18px;
    font-size:15px;
    border-radius:14px;
  }

  .writing-panel{
    padding:16px 20px 24px;
  }

  .writing-panel-head h2{
    font-size:24px;
  }

  .writing-list-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .writing-card{
    padding:18px;
    border-radius:18px;
  }

  .writing-card-title{
    font-size:17px;
  }
}

/* ===== Academic Discussion ===== */

.discussion-page{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  padding:28px;
}

.discussion-header{
  margin-bottom:20px;
}

.discussion-header h1{
  margin:0 0 8px;
  font-size:40px;
  line-height:1.2;
}

.discussion-header p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.discussion-list-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.discussion-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
  transition:.18s ease;
}

.discussion-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(24,39,75,.09);
}

.discussion-card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  color:#7a869a;
  font-size:13px;
  font-weight:700;
}

.discussion-card-title{
  font-size:18px;
  font-weight:800;
  line-height:1.5;
  color:var(--text);
  margin-bottom:10px;
}

.discussion-card-foot{
  color:var(--muted);
  font-size:14px;
}

.discussion-single-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
  box-shadow:0 6px 20px rgba(24,39,75,.06);
}

.discussion-single-label{
  display:inline-block;
  font-size:13px;
  font-weight:800;
  color:#6574f7;
  background:#eef1ff;
  border-radius:999px;
  padding:7px 12px;
  margin-bottom:16px;
}

.discussion-single-text{
  font-size:18px;
  line-height:1.9;
  color:var(--text);
  white-space:normal;
}

.discussion-single-actions{
  margin-top:24px;
}

.discussion-back-btn{
  display:inline-block;
  color:#2563eb;
  font-weight:700;
  text-decoration:none;
}

.discussion-back-btn:hover{
  text-decoration:underline;
}

@media (max-width:900px){
  .discussion-list-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:700px){
  .discussion-page{
    padding:20px;
    border-radius:24px;
  }

  .discussion-header h1{
    font-size:32px;
  }

  .discussion-list-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .discussion-card,
  .discussion-single-card{
    padding:20px;
    border-radius:18px;
  }

  .discussion-single-text{
    font-size:16px;
    line-height:1.8;
  }
}

/* ===== Write an Email ===== */

.email-list-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.email-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
  transition:.18s ease;
}

.email-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(24,39,75,.09);
}

.email-card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.email-card-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary-dark);
  font-size:12px;
  font-weight:800;
}

.email-card-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.email-card-status.draft{
  background:#ecfdf3;
  color:#15803d;
}

.email-card-status.empty{
  background:#f8fafc;
  color:#64748b;
}

.email-card-title{
  font-size:19px;
  font-weight:800;
  line-height:1.45;
  color:var(--text);
  margin-bottom:10px;
}

.email-card-sub{
  font-size:14px;
  line-height:1.7;
  color:var(--primary-dark);
  margin-bottom:4px;
  font-weight:600;
}

.email-card-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.email-page{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  padding:28px;
}

.email-page-header{
  margin-bottom:18px;
}

.email-page-header h1{
  margin:0 0 8px;
  font-size:40px;
  line-height:1.2;
}

.email-page-header p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.email-practice-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.email-practice-progress{
  font-size:16px;
  font-weight:800;
  color:#334155;
}

.email-practice-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.email-timer{
  min-width:86px;
  text-align:center;
  font-size:18px;
  font-weight:800;
  color:#2563eb;
  background:#eef4ff;
  border-radius:12px;
  padding:10px 14px;
}

.email-nav-btn{
  padding:10px 16px;
  border:none;
  border-radius:10px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.email-nav-btn.primary{
  background:#2563eb;
  color:#fff;
}

.email-nav-btn.secondary{
  background:#e5e7eb;
  color:#111827;
}

.email-nav-btn.dark{
  background:#111827;
  color:#fff;
}

.email-practice-layout{
  display:grid;
  grid-template-columns:1.02fr 1.18fr;
  gap:24px;
}

.email-prompt-card,
.email-compose-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 6px 20px rgba(24,39,75,.06);
  padding:22px;
}

.email-prompt-text{
  font-size:17px;
  line-height:1.75;
  color:var(--text);
  margin-bottom:18px;
  white-space:pre-line;
}

.email-prompt-title{
  font-size:18px;
  font-weight:800;
  line-height:1.55;
  margin-bottom:12px;
}

.email-task-list{
  margin:0 0 18px 0;
  padding-left:26px;
}

.email-task-list li{
  margin-bottom:10px;
  font-size:17px;
  line-height:1.7;
}

.email-note{
  font-size:17px;
  line-height:1.7;
  color:#334155;
}

.email-compose-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:14px;
}

.email-meta-line{
  font-size:17px;
  font-weight:800;
  margin-bottom:10px;
  line-height:1.6;
  color:#111827;
}

.email-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin:16px 0 14px;
  flex-wrap:wrap;
}

.email-toolbar-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.email-tool-btn{
  padding:10px 14px;
  border:none;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.email-tool-btn.primary{
  background:#12a594;
  color:#fff;
}

.email-tool-btn.light{
  background:#f1f5f9;
  color:#334155;
}

.email-word-count{
  font-size:15px;
  font-weight:700;
  color:#64748b;
}

.email-textarea{
  width:100%;
  min-height:520px;
  border:2px solid #9dd5dd;
  border-radius:20px;
  padding:18px;
  font-size:18px;
  line-height:1.8;
  font-family:inherit;
  resize:vertical;
  outline:none;
  background:#fff;
}

.email-textarea:focus{
  border-color:#38b2ac;
  box-shadow:0 0 0 4px rgba(56,178,172,.12);
}

.email-bottom-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-top:16px;
  flex-wrap:wrap;
}

.email-save-status{
  font-size:14px;
  color:#64748b;
  line-height:1.6;
}

.email-bottom-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.email-empty-state{
  background:#fff;
  border:1px dashed #cbd5e1;
  border-radius:20px;
  padding:26px;
  color:var(--muted);
  line-height:1.8;
}

@media (max-width:980px){
  .email-practice-layout{
    grid-template-columns:1fr;
  }

  .email-list-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .email-page{
    padding:20px;
    border-radius:24px;
  }

  .email-page-header h1{
    font-size:32px;
  }

  .email-prompt-card,
  .email-compose-card{
    padding:18px;
    border-radius:18px;
  }

  .email-textarea{
    min-height:360px;
    font-size:16px;
    line-height:1.75;
  }

  .email-prompt-text,
  .email-task-list li,
  .email-note,
  .email-meta-line{
    font-size:16px;
  }
}

/* ===== Speaking Hub ===== */

.speaking-hub{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.speaking-hub-header{
  padding:34px 34px 20px;
  border-bottom:1px solid var(--line);
}

.speaking-hub-header h1{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.2;
}

.speaking-hub-header p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.speaking-type-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px 34px 10px;
  flex-wrap:wrap;
}

.speaking-type-label{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

.speaking-type-tabs{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.speaking-type-tab{
  border:none;
  background:#f2f5fb;
  color:#5f6c82;
  font-size:17px;
  font-weight:800;
  padding:18px 28px;
  border-radius:16px;
  cursor:pointer;
  transition:.2s ease;
}

.speaking-type-tab:hover{
  background:#eaf1ff;
  color:var(--primary-dark);
}

.speaking-type-tab.active{
  background:#6574f7;
  color:#fff;
  box-shadow:0 12px 24px rgba(101,116,247,.22);
}

.speaking-panel{
  padding:18px 34px 34px;
}

.speaking-panel-head{
  margin-bottom:18px;
}

.speaking-panel-head h2{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.25;
}

.speaking-panel-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.speaking-list-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.speaking-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
  text-decoration:none;
  transition:.18s ease;
}

.speaking-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(24,39,75,.09);
}

.speaking-card.locked{
  border-color:#d8e0ef;
  background:#f8fafc;
  color:#64748b;
}

.speaking-card.locked .speaking-card-title{
  color:#334155;
}

.speaking-card-title{
  color:var(--text);
  font-size:18px;
  font-weight:800;
  line-height:1.4;
  margin-bottom:10px;
}

.speaking-card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:700;
  color:#7a869a;
  margin-bottom:10px;
}

.speaking-card-foot{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

@media (max-width:900px){
  .speaking-list-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:700px){
  .speaking-hub-header{
    padding:26px 20px 16px;
  }

  .speaking-hub-header h1{
    font-size:34px;
  }

  .speaking-type-row{
    padding:20px 20px 8px;
    gap:12px;
  }

  .speaking-type-label{
    width:100%;
    font-size:16px;
  }

  .speaking-type-tabs{
    width:100%;
  }

  .speaking-type-tab{
    padding:14px 18px;
    font-size:15px;
    border-radius:14px;
  }

  .speaking-panel{
    padding:16px 20px 24px;
  }

  .speaking-panel-head h2{
    font-size:24px;
  }

  .speaking-list-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .speaking-card{
    padding:18px;
    border-radius:18px;
  }

  .speaking-card-title{
    font-size:17px;
  }
}

.scene-date{
  margin-left:auto;
  color:#7a869a;
  font-size:13px;
  font-weight:800;
}

.lr-locked-panel{
  text-align:center;
  padding:38px 24px;
}

.lr-locked-panel h2{
  margin:0 0 10px;
}

.lr-locked-panel p{
  margin:0 auto 18px;
  max-width:520px;
  color:#64748b;
  line-height:1.7;
}

/* ===== Listening Pages ===== */

.listening-hub,
.listening-page,
.listening-type-shell,
.listening-test-shell{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.listening-hub-header,
.listening-type-header,
.listening-test-header{
  padding:34px 34px 20px;
  border-bottom:1px solid var(--line);
}

.listening-hub-header h1,
.listening-type-header h1,
.listening-test-header h1{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.2;
}

.listening-hub-header p,
.listening-type-header p,
.listening-test-header p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.listening-type-grid,
.listening-item-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  padding:28px 34px 34px;
}

.listening-entry-card,
.listening-item-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 16px rgba(24,39,75,.05);
  transition:.18s ease;
}

.listening-entry-card:hover,
.listening-item-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(24,39,75,.09);
}

.listening-entry-card h3{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.35;
}

.listening-entry-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  font-size:15px;
}

.listening-item-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.listening-item-title{
  font-size:20px;
  font-weight:900;
  color:var(--text);
  line-height:1.35;
}

.listening-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary-dark);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.listening-item-meta{
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  margin-bottom:14px;
}

.listening-item-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.listening-score-text{
  color:#64748b;
  font-size:14px;
  font-weight:700;
}

.listening-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:12px;
  padding:10px 16px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  background:#e5e7eb;
  color:#111827;
  text-decoration:none;
  font-family:inherit;
}

.listening-btn.primary{
  background:#2563eb;
  color:#fff;
}

.listening-btn.dark{
  background:#111827;
  color:#fff;
}

.listening-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.listening-empty-state{
  background:#fff;
  border:1px dashed #cbd5e1;
  border-radius:20px;
  padding:26px;
  color:var(--muted);
  line-height:1.8;
}

/* ===== Listening Test List ===== */

.listening-test-list{
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:28px 34px 34px;
}

.listening-test-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  padding:24px;
  box-shadow:0 6px 20px rgba(24,39,75,.06);
}

.listening-test-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.listening-test-title{
  font-size:28px;
  font-weight:900;
  color:var(--text);
  line-height:1.3;
}

.listening-test-meta{
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
  margin-top:6px;
}

.listening-module-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:16px;
}

.listening-module-card{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:18px;
}

.listening-module-title{
  font-size:20px;
  font-weight:900;
  margin-bottom:10px;
  color:#111827;
}

.listening-module-meta{
  color:#64748b;
  font-size:14px;
  line-height:1.8;
  margin-bottom:14px;
}

.listening-module-items{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.listening-module-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px 14px;
}

.listening-module-item-left{
  line-height:1.5;
}

.listening-module-item-title{
  font-size:15px;
  font-weight:800;
  color:#111827;
}

.listening-module-item-sub{
  color:#64748b;
  font-size:13px;
}

/* ===== Listening Practice Page ===== */

.listening-page{
  padding:28px;
  overflow:visible;
}

.listening-practice-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.listening-practice-header h1{
  margin:0 0 8px;
  font-size:36px;
  line-height:1.2;
}

.listening-meta{
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}

.listening-top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.listening-stage{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:24px;
  align-items:start;
}

.listening-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:0 6px 20px rgba(24,39,75,.06);
}

.audio-box-title{
  font-size:18px;
  font-weight:900;
  margin-bottom:10px;
  color:var(--text);
}

.audio-instruction{
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
  margin-bottom:16px;
}

.audio-player{
  width:100%;
  margin:10px 0 14px;
}

.listening-status{
  padding:14px 16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475569;
  line-height:1.7;
  font-size:15px;
}

.timer-box{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#eef4ff;
  color:#2563eb;
  border-radius:16px;
  padding:14px 16px;
  font-weight:900;
}

.timer-number{
  font-size:26px;
  letter-spacing:.02em;
}

.question-area.locked{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:360px;
  text-align:center;
  color:#64748b;
  line-height:1.8;
  background:linear-gradient(180deg,#f8fafc,#fff);
}

.locked-icon{
  font-size:34px;
  margin-bottom:12px;
}

.question-block{
  border-bottom:1px solid var(--line);
  padding:0 0 18px;
  margin-bottom:18px;
}

.question-block:last-child{
  border-bottom:none;
  margin-bottom:0;
  padding-bottom:0;
}

.question-number{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:900;
  margin-bottom:10px;
}

.speaker-line{
  font-size:17px;
  line-height:1.7;
  padding:12px 14px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  margin:0 0 12px;
  color:#334155;
}

.question-text{
  font-size:19px;
  font-weight:900;
  line-height:1.55;
  margin-bottom:14px;
  color:var(--text);
}

.option-row{
  display:block;
  border:1px solid #dbe4f0;
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:10px;
  cursor:pointer;
  line-height:1.6;
  transition:.15s ease;
  background:#fff;
}

.option-row:hover{
  background:#f8fafc;
}

.option-row input{
  margin-right:8px;
  transform:translateY(1px);
}

.option-row.selected{
  border-color:#2563eb;
  background:#eef4ff;
}

.option-row.correct{
  border-color:#16a34a;
  background:#ecfdf3;
}

.option-row.wrong{
  border-color:#dc2626;
  background:#fef2f2;
}

.explanation-box{
  display:none;
  margin-top:12px;
  padding:14px 16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  line-height:1.8;
  color:#334155;
  font-size:15px;
}

.explanation-box.show{
  display:block;
}

.result-box{
  display:none;
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#334155;
  line-height:1.8;
}

.result-box.show{
  display:block;
}

.result-score{
  font-size:22px;
  font-weight:900;
  color:#111827;
  margin-bottom:6px;
}

.practice-bottom-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

@media (max-width:900px){
  .listening-type-grid,
  .listening-item-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .listening-stage{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .listening-hub-header,
  .listening-type-header,
  .listening-test-header{
    padding:26px 20px 16px;
  }

  .listening-hub-header h1,
  .listening-type-header h1,
  .listening-test-header h1{
    font-size:34px;
  }

  .listening-type-grid,
  .listening-item-grid,
  .listening-test-list{
    grid-template-columns:1fr;
    padding:20px;
    gap:14px;
  }

  .listening-page{
    padding:20px;
    border-radius:24px;
  }

  .listening-practice-header h1{
    font-size:30px;
  }

  .listening-card,
  .listening-entry-card,
  .listening-item-card,
  .listening-test-card{
    padding:18px;
    border-radius:18px;
  }

  .question-text{
    font-size:17px;
  }
}
