.portal-module.chess .module-icon { color:#424c88; background:#eef0fa; }
:root {
  --ink:#18314f;
  --muted:#6f8195;
  --line:#dbe5ef;
  --blue:#347ed6;
  --paper:#fff;
  --shadow:0 14px 34px rgba(40,67,98,.09);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:linear-gradient(180deg,#f3f7fb,#f8fafc 45%,#f1f5fa); font-family:"Nunito","PingFang SC","Microsoft YaHei",system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }
.skip-link { position:fixed; z-index:100; top:8px; left:8px; padding:10px 14px; border-radius:10px; background:#fff; transform:translateY(-150%); }
.skip-link:focus { transform:translateY(0); }
.portal-header { position:sticky; z-index:30; top:0; min-height:72px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:22px; padding:0 max(24px,calc((100vw - 1220px)/2)); border-bottom:1px solid var(--line); background:rgba(255,255,255,.94); box-shadow:0 4px 18px rgba(31,57,87,.05); backdrop-filter:blur(14px); }
.portal-brand { display:flex; align-items:center; gap:10px; justify-self:start; }
.portal-brand>span:first-child { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; color:#fff; background:var(--blue); font-size:22px; }
.portal-brand>span:last-child,.portal-profile>span:last-child { display:flex; flex-direction:column; }
.portal-brand b { font-size:17px; }.portal-brand small,.portal-profile small { margin-top:2px; color:var(--muted); font-size:12px; }
.portal-header nav { display:flex; gap:4px; padding:4px; border-radius:13px; background:#f1f5f9; }
.portal-header nav a { min-height:40px; display:flex; align-items:center; padding:0 15px; border-radius:9px; color:#60748a; font-weight:850; }
.portal-header nav a:hover { color:#245f9f; background:#fff; }
.portal-profile { display:flex; align-items:center; gap:9px; justify-self:end; padding:6px 9px; border-radius:13px; }
.portal-profile>span:first-child { width:39px; height:39px; display:grid; place-items:center; border-radius:12px; background:#e6f5ef; font-size:22px; }
.portal-profile b { font-size:13px; }
.portal-shell { width:min(1120px,calc(100% - 44px)); margin:24px auto 70px; }
.portal-hero { min-height:190px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:30px 36px; overflow:hidden; border:1px solid #d7e4f0; border-radius:24px; background:radial-gradient(circle at 88% 12%,rgba(255,202,73,.22),transparent 25%),linear-gradient(120deg,#edf6ff,#fff 62%,#fff8e8); box-shadow:var(--shadow); }
.portal-eyebrow { display:inline-flex; padding:7px 10px; border-radius:99px; color:#28649f; background:#dfefff; font-size:13px; font-weight:900; }
.portal-hero h1 { max-width:780px; margin:14px 0 8px; font-size:clamp(29px,4vw,42px); line-height:1.18; }
.portal-hero>p { max-width:760px; margin:0; color:#61758b; font-size:15px; line-height:1.65; }
.portal-schedule-shortcut { min-height:82px; display:grid; grid-template-columns:50px minmax(0,1fr) auto; align-items:center; gap:13px; margin-top:14px; padding:13px 16px; border:1px solid #c9dfec; border-radius:18px; color:#315c78; background:linear-gradient(125deg,#eef8fd,#fff 68%,#fff8e9); box-shadow:0 8px 22px rgba(40,67,98,.06); transition:.16s; }
.portal-schedule-shortcut:hover { border-color:#91bdd5; box-shadow:0 12px 26px rgba(40,76,112,.1); transform:translateY(-1px); }
.portal-schedule-icon { width:50px; height:50px; display:grid; place-items:center; border-radius:15px; background:#dceff8; font-size:25px; }
.portal-schedule-shortcut>span:nth-child(2) { min-width:0; display:grid; grid-template-columns:auto 1fr; gap:2px 9px; align-items:baseline; }
.portal-schedule-shortcut small { grid-column:1 / -1; overflow:hidden; color:#6e8493; font-size:11px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.portal-schedule-shortcut b { font-size:17px; }
.portal-schedule-shortcut em { color:#4b7e94; font-size:12px; font-style:normal; font-weight:850; }
.portal-schedule-shortcut strong { min-height:42px; display:flex; align-items:center; padding:0 13px; border-radius:11px; color:#fff; background:#397fac; font-size:12px; white-space:nowrap; }
.portal-section { margin-top:26px; }
.portal-section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:14px; }
.portal-section-heading small { color:#3472ad; font-weight:900; letter-spacing:.08em; }.portal-section-heading h2 { margin:4px 0 0; font-size:25px; }.portal-section-heading>span { color:#7a8c9f; font-size:13px; }
.portal-module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.portal-module { min-width:0; min-height:108px; display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:12px; align-items:center; padding:15px 16px; border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:0 8px 22px rgba(40,67,98,.055); transition:.16s; }
.portal-module:hover { border-color:#a9c7e2; box-shadow:0 13px 28px rgba(40,76,112,.1); transform:translateY(-2px); }
.portal-module[data-state="resume"],.portal-module[data-state="continue"] { border-color:#82b9a7; background:linear-gradient(135deg,#f5fffb,#fff); box-shadow:0 10px 25px rgba(45,115,91,.1); }
.portal-module[data-state="resume"] .module-icon,.portal-module[data-state="continue"] .module-icon { color:#246b57; background:#dff4ec; }
.portal-module[data-state="resume"] em,.portal-module[data-state="continue"] em { color:#27745e; }
.portal-module[data-state="done"] { border-color:#c8ddd4; background:#f8fcfa; box-shadow:none; }
.portal-module[data-state="done"] .module-icon { color:#397462; background:#e5f2ed; }
.portal-module[data-state="done"] em { color:#527a6e; }
.module-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; color:#24598d; background:#e7f2ff; font-size:21px; font-weight:950; }
.portal-module.math .module-icon { color:#9a6218; background:#fff0c8; }.portal-module.poem .module-icon { color:#a85838; background:#ffe7dc; }.portal-module.explore .module-icon { color:#257a66; background:#ddf4ec; }.portal-module.documentary .module-icon { color:#684ea4; background:#eee7ff; }.portal-module.code .module-icon { color:#356b58; background:#e2f3e9; }
.portal-module>span:nth-child(2) { min-width:0; }.portal-module b,.portal-module small { display:block; }.portal-module b { font-size:17px; }.portal-module small { margin-top:5px; overflow:hidden; color:var(--muted); font-size:12px; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }.portal-module em { color:#3472ad; font-size:11px; font-style:normal; font-weight:900; white-space:nowrap; }
.portal-mobile-nav { display:none; }
a:focus-visible { outline:3px solid rgba(52,126,214,.35); outline-offset:3px; }

@media (max-width:900px) {
  body { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .portal-header { grid-template-columns:1fr auto; padding:0 20px; }.portal-header nav { display:none; }.portal-profile { grid-column:2; }
  .portal-hero { padding:28px; }
  .portal-module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-mobile-nav { position:fixed; z-index:40; left:0; right:0; bottom:0; height:calc(64px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(5,1fr); padding:4px 5px env(safe-area-inset-bottom); border-top:1px solid var(--line); background:rgba(255,255,255,.96); backdrop-filter:blur(14px); }
  .portal-mobile-nav a { min-height:54px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:2px; color:#718297; font-size:16px; }
  .portal-mobile-nav a b { font-size:10px; }
  .portal-mobile-nav a.active { color:#2d71b6; background:#edf5ff; border-radius:13px; }
}
@media (max-width:600px) {
  .portal-header { min-height:64px; padding:0 13px; }.portal-brand>span:first-child { width:38px; height:38px; }.portal-brand small,.portal-profile span:last-child { display:none; }.portal-profile { padding:4px; }
  .portal-shell { width:calc(100% - 20px); margin-top:10px; }
  .portal-hero { min-height:128px; padding:18px 17px; border-radius:19px; }.portal-hero h1 { margin:10px 0 0; font-size:27px; }.portal-hero>p { display:none; }
  .portal-schedule-shortcut { min-height:76px; grid-template-columns:44px minmax(0,1fr) auto; gap:10px; margin-top:9px; padding:10px 11px; border-radius:16px; }.portal-schedule-icon { width:44px; height:44px; border-radius:13px; font-size:22px; }.portal-schedule-shortcut>span:nth-child(2) { display:flex; align-items:flex-start; flex-direction:column; gap:1px; }.portal-schedule-shortcut small { max-width:100%; }.portal-schedule-shortcut b { font-size:15px; }.portal-schedule-shortcut em { font-size:11px; }.portal-schedule-shortcut strong { min-height:44px; padding:0 10px; font-size:11px; }
  .portal-section { margin-top:16px; scroll-margin-top:74px; }.portal-section-heading { margin-bottom:10px; }.portal-section-heading small,.portal-section-heading>span { display:none; }.portal-section-heading h2 { margin:0; font-size:21px; }
  .portal-module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.portal-module { min-height:118px; display:flex; align-items:flex-start; flex-direction:column; gap:8px; padding:12px; }.portal-module .module-icon { width:42px; height:42px; border-radius:12px; font-size:18px; }.portal-module b { font-size:15px; }.portal-module small { display:-webkit-box; margin-top:3px; overflow:hidden; line-height:1.35; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.portal-module em { display:none; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; } }
