/* Tests & Exams suite (#/writing home + pickers). Scoped to #te-suite. */
#section-writing.te-on > :not(#te-suite), #section-vocab.te-on > :not(#vp-suite) { display: none !important; }
.te { max-width: 900px; margin: 0 auto; padding: 4px 4px 12px; font-family: 'Nunito', system-ui, sans-serif; color: #2D2D2D; }
.te button { font: inherit; cursor: pointer; }
.te-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.te-top h2 { font-family: 'Poppins', sans-serif; font-weight: 800; color: #012169; font-size: 26px; margin: 0; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.te-back { border: 2px solid #012169; border-radius: 999px; padding: 6px 14px; font-family: 'Poppins', sans-serif !important; font-weight: 700; font-size: 12px; color: #012169; background: #fff; white-space: nowrap; }
.te-lang { display: flex; border: 2px solid #012169; border-radius: 999px; overflow: hidden; flex: none; }
.te-lang button { border: 0; background: #fff; color: #012169; font-family: 'Poppins', sans-serif !important; font-weight: 700; font-size: 11px; padding: 5px 10px; }
.te-lang button.on { background: #012169; color: #fff; }
.te-lead { color: #5A5A5A; margin: 4px 0 12px; font-size: 14px; }
.te-crumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.te-crumb { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1.5px solid #C8102E; color: #C8102E; }
.te-crumb.on { background: #C8102E; color: #fff; }
.te-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.te-card { background: #fff; border: 2px solid #C8102E; border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 14px rgba(200,16,46,.08); display: flex; gap: 12px; align-items: center; text-align: left; color: inherit; transition: transform .15s, box-shadow .15s; }
.te-card:hover, .te-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(200,16,46,.16); }
.te-card { position: relative; }
.te-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; gap: 14px; }
.te-grid--2 .te-card { padding: 18px 18px; }
.te-grid--2 .te-ic { width: 54px; height: 54px; font-size: 24px; }
.te-grid--2 .te-txt b { font-size: 19px; }
.te-grid--2 .te-txt small { font-size: 13px; }
.te-lock { display: inline-block; vertical-align: middle; margin-left: 4px; letter-spacing: 0; line-height: 1.3; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #fff4d6; color: #8a5a00; border: 1px solid #f2c94c; }
.te-lock i { font-size: 9px; }
.te-bubble .te-lock { margin-left: 8px; font-size: 10px; }
.te-card.is-soon { opacity: .6; border-style: dashed; }
.te-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; }
.te-ic--sm { width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }
.te-txt b { display: block; font-family: 'Luckiest Guy', cursive; color: #012169; font-weight: 400; font-size: 17px; letter-spacing: .3px; margin: 0 0 2px; line-height: 1.15; }
.te-txt small { display: block; font-size: 12px; color: #5A5A5A; line-height: 1.3; }
.te-tag { display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 10px; padding: 1px 8px; border-radius: 999px; background: #fdeaea; color: #C8102E; margin-left: 4px; vertical-align: middle; letter-spacing: 0; }
.te-sec { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px; color: #012169; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.te-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.te-mini button { background: #fff; border: 1.5px solid #e9b9c1; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: #012169; }
.te-mini button.is-soon { opacity: .65; }
.te-ai { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 22px auto 0; background: none; border: 0; padding: 4px; }
.te-bot { position: relative; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8b5cf6, #4c1d95); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 6px 18px rgba(107,43,191,.35), 0 0 0 5px #fff, 0 0 0 7px #d9c6f5; }
.te-spark { position: absolute; top: -6px; right: -8px; font-size: 17px; color: #f2a900; }
.te-bubble { position: relative; background: linear-gradient(135deg, #6b2bbf, #C8102E); color: #fff; font-family: 'Luckiest Guy', cursive; font-size: 21px; letter-spacing: .5px; padding: 12px 24px; border-radius: 22px; box-shadow: 0 6px 16px rgba(107,43,191,.3); }
.te-bubble::before { content: ""; position: absolute; left: -11px; top: 50%; margin-top: -9px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 12px solid #6b2bbf; }
.te-ai:hover .te-bubble { filter: brightness(1.08); }
@media (max-width: 600px) {
  .te { padding: 0 0 8px; }
  .te-top { gap: 8px; }
  .te-top h2 { font-size: 18px; gap: 6px; }
  .te-back { padding: 4px 10px; font-size: 11px; }
  [data-te-back="home"] .te-back-l { display: none; }
  .te-lead { font-size: 12.5px; margin-bottom: 8px; }
  .te-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .te-grid--2 .te-card { padding: 12px 10px; }
  .te-grid--2 .te-ic { width: 36px; height: 36px; font-size: 17px; }
  .te-grid--2 .te-txt b { font-size: 15px; }
  .te-grid--2 .te-txt small { font-size: 11.5px !important; }
  #section-writing.te-on, #section-vocab.te-on { margin-top: -18px; }
  .te-card { flex-direction: column; align-items: flex-start; gap: 3px; padding: 7px 9px; border-radius: 14px; }
  .te-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10.5px !important; }
  .te-top h2 { font-size: 16px !important; line-height: 1.1; }
  .te-top h2 .te-ic--sm { display: none; }
  .te-top + .te-lead { display: none; }
  .te-lead { margin: 2px 0 6px !important; }
  .te-ic { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
  .te-ic--sm { width: 28px; height: 28px; font-size: 14px; }
  .te-txt b { font-size: 13px; }
  .te-lock { font-size: 9px; padding: 0 5px; }
  .te-txt small { font-size: 11px; }
  .te-sec { margin: 10px 0 5px; }
  .te-ai { margin-top: 4px; gap: 12px; }
  .te-bot { width: 42px; height: 42px; font-size: 19px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d9c6f5; }
  .te-bubble { font-size: 16px; padding: 9px 16px; }
}

.te-cross { text-align: center; margin: 14px 0 0; }
.te-cross button { background: none; border: 0; color: #012169; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .te-cross { margin-top: 6px; } .te-cross button { font-size: 11.5px; } }
