.fc-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:26px 0}.fc-specialty{display:flex;flex-direction:column;gap:6px;padding:24px;border:1px solid #d4e4ef;border-radius:18px;background:linear-gradient(155deg,#fff,#f2f9ff);min-width:0}.fc-specialty h2{font-size:23px;margin:4px 0}.fc-specialty p{margin:3px 0;line-height:1.6}.fc-specialty small{color:#4a7999;letter-spacing:.05em}.fc-specialty a{margin-top:auto;align-self:start}.fc-icon{font-size:30px}.fc-ready{color:#13754e;font-weight:650}.fc-pending{color:#616e79;font-size:14px}.fc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.fc-stats div{background:#eff7ff;border:1px solid #d6e8f4;border-radius:14px;padding:16px;display:grid;gap:6px}.fc-stats b{font-size:26px;color:#17659b}.fc-stats span{font-size:14px;color:#526e82}.fc-lesson .bg-steps.fc-steps{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.fc-status-buttons{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.fc-status-buttons button{font-size:12px!important;padding:7px 8px!important}.fc-status-buttons button.active{background:#e4f5eb!important;border-color:#329d73!important;color:#12623f!important}.fc-lesson-nav{display:flex;justify-content:space-between;gap:14px;padding:20px;flex-wrap:wrap}.fc-lesson-nav a{color:#216b9d}.fc-reading{background:#f2f8fd;padding:16px;border-radius:12px;margin:16px 0}.fc-lesson .bg-choices .bg-zh{font-size:21px;margin:0}.fc-lesson .bg-choices .bg-py,.fc-lesson .bg-choices .bg-vi{font-size:15px}.fc-lesson .bg-question{margin-top:18px}.fc-sidebar h3{font-size:15px;margin:20px 10px 5px}.fc-lesson .bg-controls button{font-size:13px}.fc-lesson .bg-question .bg-audio{margin:5px}.fc-lesson [lang=zh-CN]{font-family:'Noto Sans SC','Microsoft YaHei','PingFang SC',sans-serif}.fc-lesson p{overflow-wrap:anywhere}.fc-lesson .mt-word .mt-flip .bg-zh:not(:first-child){font-size:22px}.fc-lesson .bg-content>.sc-btn{margin-top:12px}.fc-lesson .bg-choices button span{min-width:0}.fc-lesson .bg-steps button{min-width:0}.fc-lesson .bg-steps small{font-size:10px}
@media(max-width:1000px){.fc-catalog{grid-template-columns:1fr}.fc-specialty{padding:20px}.fc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.fc-lesson .bg-steps.fc-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.fc-lesson .bg-steps button{font-size:11px;padding:8px 3px}.fc-stats div{padding:12px}.fc-lesson .bg-steps span{line-height:1.3}.fc-lesson .bg-choices .bg-zh{font-size:20px}.fc-lesson .bg-pager{flex-wrap:wrap}.fc-lesson .mt-filters form{width:100%}}
@media(max-width:380px){.fc-lesson .mt-word-grid{grid-template-columns:1fr}.fc-lesson .bg-steps.fc-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}

.fc-matching{display:grid;gap:14px}.fc-matching label{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:16px;align-items:center}.fc-matching select{width:100%;min-width:0;padding:12px;border:1px solid #b9d7df;border-radius:10px;background:white;color:#13465a;font:inherit}.fc-matching b{font-size:1.3rem}.fc-lesson .bg-feedback{overflow-wrap:anywhere}.fc-lesson .bg-note:empty{display:none}@media(max-width:600px){.fc-matching label{grid-template-columns:1fr;gap:6px}.fc-matching b{font-size:1.2rem}}

/* Keep the long course menu inside its own scroll area, independent of the
   legacy global aside height/width. On mobile, the expanded menu flows with
   the page so touch scrolling can reach every specialty and lesson. */
.fc-layout .fc-sidebar{
  display:block;
  width:100%;
  min-width:0;
  height:auto;
  max-height:calc(100vh - 36px);
  max-height:calc(100dvh - 36px);
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:#91b8cc #f1f7fb;
}
.fc-sidebar nav a>span{display:block;min-width:0;overflow-wrap:anywhere}
.fc-sidebar:focus-visible{outline:3px solid #2c7bbc;outline-offset:3px}
@media(max-width:800px){
  .fc-layout .fc-sidebar{
    position:static;
    max-height:none;
    overflow:visible;
    scrollbar-gutter:auto;
  }
}
