.study-panel .study-guide-entry{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:0;padding:0 3px;border:0;border-radius:6px;background:none;color:#c1d9d7;font-size:inherit;max-width:none}
.study-guide-entry svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.2;flex:none}
.study-guide-entry>span:last-child{font-size:18px;opacity:.7}
.study-panel .study-guide-entry:hover{background:rgba(140,220,214,.07);color:#fff}
.study-guide-entry:focus-visible{outline:2px solid #c1d9d7;outline-offset:2px}
.study-panel [hidden]{display:none!important}
.study-route-preview{display:flex;gap:8px;list-style:none;margin:12px 0 0;padding:0 0 3px;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:rgba(140,220,214,.4) transparent}
.study-route-preview:focus-visible{outline:1px solid #b6d6d2;outline-offset:2px}
.study-route-preview li{display:flex;align-items:center;gap:5px;min-width:0;flex:0 0 auto;color:#b6d6d2;font-size:10px;line-height:22px}
.study-route-preview b{display:inline-grid;place-items:center;width:18px;height:18px;flex:none;border:1px solid rgba(140,220,214,.45);border-radius:50%;font-size:9px;font-weight:500}
.study-route-preview li+li:before{content:'›';color:#739b98;margin-right:2px}
.study-route-preview span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.kanshan-knowledge{margin-top:18px;padding-top:16px;border-top:1px solid rgba(140,220,214,.2)}
.kanshan-knowledge p{font-size:12px;color:#b6d6d2}
.kanshan-knowledge button{min-height:44px;margin-top:10px;padding:8px 16px;border:1px solid rgba(140,220,214,.5);border-radius:24px;background:rgba(140,220,214,.07);color:#cee3e0;font-size:12px;cursor:pointer}
.kanshan-dialog{width:min(660px,calc(100vw - 32px));text-align:left}
.kanshan-dialog__inner{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.kanshan-dialog__head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid rgba(240,240,250,.12);flex:none}
.kanshan-dialog h2{margin:0;font-size:17px;letter-spacing:1px;font-weight:600;outline:none}
.kanshan-dialog__head button{min-width:44px;min-height:44px;border:1px solid rgba(240,240,250,.24);border-radius:50%;background:transparent;color:#ddd;font-size:23px;cursor:pointer}
.kanshan-dialog__body{padding:20px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.kanshan-dialog #kanshan-scope{font-size:11px;color:#9baeb5;letter-spacing:.5px}
.kanshan-dialog h3{margin:8px 0 12px;font-size:24px;line-height:1.35;overflow-wrap:anywhere}
.kanshan-dialog #kanshan-intro{font-size:12px;line-height:1.7;color:#98b6bd;margin:12px 0}
.kanshan-dialog .kanshan-goal{font-size:12px;line-height:1.65;color:#bdd4d2;margin:10px 0 16px}
.kanshan-checkpoint{margin:16px 0 0;padding:14px 16px;border-left:2px solid #7eaba8;border-radius:0 8px 8px 0;background:rgba(140,220,214,.055)}
.kanshan-checkpoint h4{font-size:11px;font-weight:500;color:#9cbeb9;margin:0 0 7px}
.kanshan-dialog #kanshan-checkpoint{font-family:"Yuanti SC",STKaiti,Helvetica,sans-serif;font-size:15px;line-height:1.7;color:#d7e1e7;margin:0}
.kanshan-dialog .kanshan-next{font-size:12px;line-height:1.7;color:#c1d9d7;margin:18px 0 0}
/* Same system-font stack as Liu Kanshan's official site and the growth narrator. */
.kanshan-dialog #kanshan-reason{font-family:"Yuanti SC",STKaiti,Helvetica,sans-serif;font-size:17px;line-height:1.65;color:#d7e1e7}
.kanshan-task-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}
.kanshan-task-heading h4{margin:0;font-size:13px;font-weight:500;color:#c1d9d7}
.kanshan-task-heading span{font-size:11px;color:#94a5ae}
.kanshan-tasks,.kanshan-stations{list-style:none;margin:0;padding:0}
.kanshan-task+.kanshan-task{margin-top:8px}
.kanshan-task__action{display:block;width:100%;border:1px solid rgba(240,240,250,.2);border-radius:10px;background:rgba(240,240,250,.025);color:#e7eaf0;padding:14px 16px;text-decoration:none;text-align:left;cursor:pointer;font:inherit;overflow-wrap:anywhere}
.kanshan-task__action:hover{background:rgba(140,220,214,.06);border-color:#7eaba8}
.kanshan-task__meta{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:7px}
.kanshan-task__meta b{font-size:10px;letter-spacing:1px;color:#a4c6c3;font-weight:500}
.kanshan-task__meta small{font-size:10px;color:#9cabb2;white-space:nowrap}
.kanshan-task__title{display:block;font-size:13px;line-height:1.65;font-weight:500}
.kanshan-task__description{display:block;font-size:11px;line-height:1.6;color:#94a0af;margin-top:5px}
.kanshan-dialog .kanshan-note{font-size:11px;line-height:1.65;color:#94a0af;margin:12px 0 16px}
.kanshan-route{border-top:1px solid rgba(240,240,250,.18);margin-top:18px}
.kanshan-route summary{min-height:44px;padding:14px 0;font-size:12px;color:#c1d9d7;cursor:pointer}
.kanshan-station button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:4px 0;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#b4bbc8;text-align:left;cursor:pointer;font-size:12px}
.kanshan-station button[aria-current=step]{border-color:rgba(140,220,214,.35);background:rgba(140,220,214,.07);color:#edf4f5}
.kanshan-station__index{font-size:10px;color:#899ba3;flex:none}
.kanshan-station b{font-weight:500;overflow-wrap:anywhere}
.kanshan-station__status{margin-left:auto;white-space:nowrap;font-size:10px;color:#a4c6c3;flex:none}
.kanshan-dialog__foot{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid rgba(240,240,250,.14);flex:none;background:#090c13}
.kanshan-dialog__foot button{min-height:44px;padding:10px 22px;border:1px solid rgba(240,240,250,.3);border-radius:24px;background:transparent;color:#d0d6df;cursor:pointer;font-size:12px}
#kanshan-go{background:#e4edec;color:#11191c;border-color:#e4edec;font-weight:600}
#kanshan-go:disabled{opacity:.4;cursor:default}
.kanshan-dialog button:focus-visible,.kanshan-dialog a:focus-visible,.kanshan-dialog summary:focus-visible{outline:2px solid #c1d9d7;outline-offset:-3px}
@media(max-width:820px) and (orientation:portrait){
  .study-panel .study-guide-entry{font-size:10px;padding:0;max-width:none;gap:5px}
  .study-guide-entry svg{width:17px;height:17px}
  .shell[data-route-visible=true] .hero-copy #study-hint{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .study-route-preview{margin:8px 0 0;gap:4px}
  .kanshan-dialog__head{padding:10px 16px}.kanshan-dialog h2{font-size:15px}
  .kanshan-dialog__body{padding:16px}.kanshan-dialog h3{font-size:21px}
  .kanshan-dialog #kanshan-reason{font-size:16px}
  .kanshan-task__action{padding:12px}.kanshan-task__title{font-size:12px}
  .kanshan-dialog__foot{padding:12px 16px}.kanshan-dialog__foot button{flex:1;padding:10px 12px}
}
@media(max-width:360px) and (orientation:portrait),(max-width:820px) and (max-height:680px) and (orientation:portrait){
  /* The route adds a third row. Explicit placement keeps auto-flow from
     giving the hint the button's column and squeezing the button vertically. */
  .shell[data-route-visible=true] .hero-copy #study-hint{grid-column:1/-1;grid-row:2}
  .hero-copy .study-route-preview{grid-column:1;grid-row:3;margin:0;align-self:center;gap:3px}
  .hero-copy .study-route-preview li{font-size:9px;gap:3px}
  .shell[data-route-visible=true] .hero-copy #study-next{grid-column:2;grid-row:3;white-space:nowrap}
}
@media(max-height:520px) and (orientation:landscape){
  .shell[data-study-level=universe][data-guidance=true] .hero-copy .study-panel h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
  .kanshan-dialog__head{padding:6px 20px}.kanshan-dialog h2{font-size:15px}
  .kanshan-dialog__body{padding:12px 20px}.kanshan-dialog h3{font-size:19px}
  .kanshan-dialog__foot{padding:8px 20px}
}
