/* Shared navigation stays steady while the sky moves behind it. */
#shell .interface{z-index:12}
#shell .topbar{display:grid;grid-template-columns:150px minmax(180px,1fr) auto;grid-template-rows:44px 44px;gap:8px 18px;align-items:center;padding:18px 32px 8px;z-index:30}
#shell .brand{grid-column:1;grid-row:1}
#shell .topbar__meta{display:flex;grid-column:2;grid-row:1;justify-content:center;min-width:0;letter-spacing:.3px;text-transform:none}
#crumbs{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:12px}
#crumbs .crumb{min-height:44px;flex:none;border:0;background:none;color:#b6c7d3;font:inherit;padding:6px 2px;cursor:pointer}
#crumbs .crumb:hover{color:#fff}
#crumbs .crumb-cur{color:#f0f3fa;font-weight:600;flex:none}
#crumbs .crumb-sep{color:#83919e}
#shell .topbar__actions{grid-column:3;grid-row:1;align-items:center;gap:6px}
#shell .study-toolbar{grid-column:1/-1;grid-row:2;justify-self:start;gap:4px;background:#070b12a6}
#shell .study-toolbar button{font-family:inherit;font-size:12px;min-height:40px;padding:6px 12px}
#shell #study-focus{max-width:220px}
#shell #study-optional{min-width:102px;color:#c2dcdb;border-left:1px solid #c8d7e426;border-radius:0 22px 22px 0}
#shell #study-optional[aria-pressed=true]{background:#b7dfd719;color:#e8fffa}
#shell .event-status{position:static;display:flex;align-items:center;justify-content:center;translate:none;transform:none;min-height:44px;min-width:86px;padding:4px 10px;gap:2px;border:1px solid #e0edf52e;border-radius:13px;background:#c9dce70a;color:#e8f0f5;font-family:inherit;cursor:pointer}
#shell .event-status:hover{background:#d1e6f416}
#shell .event-status__ring{position:static;width:auto;height:auto}
#shell .event-status__ring svg{display:none}
#shell .event-status__ring>span{position:static;display:block;line-height:1.15;text-align:center}
#shell .event-status__ring small{display:block;color:#c0ced8;font-size:10px;letter-spacing:.2px;margin:0 0 2px}
#shell .event-status__ring b{font-size:16px;line-height:1;font-weight:650;letter-spacing:0;margin:0;color:#f0f0fa}
#shell .event-status__ring em{font-size:11px;letter-spacing:0;color:#aab8c3}
#shell .event-status__label,#shell .event-status__detail{display:none}
#shell[data-study-level=universe] #primary-action{display:none!important}
#shell .hero-copy__chapter:empty{display:none}
#shell .hero-copy__chapter{font-size:12px;letter-spacing:.3px}
#shell .dossier{z-index:10}
#shell .dossier__head{padding-top:126px;align-items:flex-start}
#shell .dossier__actions .music-button{display:none}
#shell .dossier__body{padding-bottom:86px}
.reading-heading{margin:0;color:#e9f0f4;font-size:18px;line-height:1.5;font-weight:600}
.reading-heading:focus{outline:none}
.reading-kicker{font-size:12px;letter-spacing:.4px;color:#c3dedb;margin:0 0 6px}
.reading-provenance{display:none;font-size:11px;line-height:1.65;color:#b2c2ce;margin:0 0 12px}
.reading-context{font-size:12px;line-height:1.75;color:#a8b8c8;margin:0 0 16px}
.reading-claim{margin:0;padding:17px 0;border-bottom:1px solid #b4c9d324}
.reading-claim>.vp__kind{margin:0 0 5px}
.reading-claim .prop__stmt{margin:6px 0 12px;font-size:16px;line-height:1.65}
.reading-claim .dis{margin:10px 0;padding:12px 14px;line-height:1.7}
.reading-claim .dis p{margin:6px 0 0}
.reading-references{display:flex;flex-wrap:wrap;gap:4px 14px}
.reading-reference{padding:4px 0;min-height:36px;border:0;background:none;color:#bcdad7;font:inherit;font-size:12px;cursor:pointer;text-align:left}
.reading-reference:hover{text-decoration:underline;text-underline-offset:4px}
.reading-sources-title{font-size:15px;font-weight:600;line-height:1.5;margin:24px 0 2px;color:#e1eaf0}
.reading-source{display:block;padding:18px 0;border-bottom:1px solid #b4c9d324;scroll-margin-top:12px}
.reading-source .post__title{margin:0;font-size:15px;line-height:1.65;color:#e4ecf3}
.reading-source .vp{border-left:2px solid #a7c9c849;margin:12px 0;padding-left:14px}
.reading-source blockquote,.reading-source .vp__summary{margin:5px 0;line-height:1.85;font-size:15px;color:#c9d4df}
.reading-source-context{margin:8px 0;font-size:11px;color:#91aaa9}
.reading-original{display:inline-flex;align-items:center;min-height:44px;padding:5px 0;color:#c7e4df;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.reading-completion{padding:22px 0 4px}
.reading-completion p{font-size:12px;line-height:1.8;color:#adbdc9}
.reading-complete{min-height:44px;border:1px solid #b5cfca80;border-radius:24px;padding:10px 20px;background:#c7e5df12;color:#e7f5f1;font:inherit;font-size:13px;cursor:pointer}
.reading-complete:disabled{opacity:.5;cursor:default}
#shell[data-view=planet] #study-next{display:none}
#shell #study-detail-slot .study-panel{margin-top:124px}
#shell[data-guidance=true] .dossier__head{padding-top:12px}
.study-topic-choice{display:grid;gap:7px;padding:0 30px 20px;font-size:12px;color:#c2d2de}
.study-topic-choice[hidden]{display:none}
.study-topic-choice select{width:100%;min-height:44px;border:1px solid #b0c9d34d;border-radius:9px;padding:8px 12px;background:#101722;color:#edf3f8;font:inherit}
.journey-footer{position:absolute;left:32px;right:32px;bottom:18px;z-index:15;display:flex;justify-content:space-between;gap:16px;pointer-events:none}
.journey-footer[hidden]{display:flex;visibility:hidden}
.journey-footer button{pointer-events:auto;min-height:44px;border:1px solid #c7d9e235;border-radius:24px;background:#070c15df;color:#cfdde6;padding:8px 16px;font:inherit;font-size:12px;cursor:pointer}
.journey-footer button:hover{background:#c4ddd91a;color:#fff}
.journey-footer button[aria-pressed=true]{border-color:#b5dcd2;color:#e6faf6}
.journey-footer button small{font-size:10px;margin-left:7px;color:#a0b2bf}
#shell .corner-coordinate{bottom:75px}
#shell button:focus-visible,#shell a:focus-visible,.study-topic-choice select:focus-visible{outline:2px solid #beddd8;outline-offset:3px}
.product-tour{position:fixed;z-index:45;left:30px;bottom:78px;width:min(340px,calc(100vw - 28px));box-sizing:border-box;padding:20px;border:1px solid #c4ded757;border-radius:16px;background:#09111cf5;color:#d7e4ec;box-shadow:0 12px 50px #0007;pointer-events:auto}
.product-tour[hidden],.tour-highlight[hidden]{display:none}
.product-tour__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#a7c7c2;font-size:11px}
.tour-mascot{width:38px;height:38px;object-fit:contain;flex:none}.tour-mascot[hidden]{display:none}
.product-tour #tour-copy{font-family:"Yuanti SC",STKaiti,Helvetica,sans-serif;font-size:15px;line-height:1.6}
.product-tour h2{font-size:18px;line-height:1.5;margin:12px 0 8px}
.product-tour p{font-size:13px;line-height:1.8;margin:0 0 14px;color:#b6c8d5}
.product-tour__actions{display:flex;justify-content:space-between;gap:12px}
.product-tour button{min-height:44px;border:1px solid #c4ded744;border-radius:24px;background:#c4ded70f;color:#e2efef;padding:8px 16px;font:inherit;font-size:12px;cursor:pointer}
.product-tour__meta button{border:0;background:none;min-width:44px;padding:4px}
.tour-highlight{position:fixed;z-index:40;pointer-events:none;border:1px solid #b6eee0;border-radius:12px;box-shadow:0 0 0 4px #a5dbc518,0 0 24px #a5dbc51a;box-sizing:border-box}
.immersive-dialog{width:min(450px,calc(100vw - 32px));padding:24px;border:1px solid #b7d6d74d;border-radius:18px;background:#09111c;color:#d9e7ef}
.immersive-dialog::backdrop{background:#02060bb8}
.immersive-dialog h2{margin:0 0 12px;font-size:22px}
.immersive-dialog p{font-size:14px;line-height:1.85;color:#b6c7d6}
.immersive-dialog button{min-height:44px;border:1px solid #b9d6d74d;border-radius:24px;background:#b9d6d712;color:#e4f2f2;padding:10px 20px;font:inherit;cursor:pointer}
.immersive-loading{display:none;position:relative;width:100px;height:86px;margin:0 auto 18px;perspective:260px}
#shell[data-immersive=loading] .immersive-loading{display:block}
.immersive-loading i{position:absolute;inset:8px;border:1px solid #badfd6;border-radius:50%;box-shadow:0 0 18px #a9d7ca26;animation:immersive-fold 2.4s ease-in-out infinite alternate}
.immersive-loading i:nth-child(2){inset:18px;animation-delay:-.8s;opacity:.65}
.immersive-loading i:nth-child(3){inset:28px;animation-delay:-1.6s;opacity:.45}
@keyframes immersive-fold{from{transform:rotateX(0deg) rotateY(0deg) scale(.75)}to{transform:rotateX(65deg) rotateY(30deg) scale(1)}}
@media(prefers-reduced-motion:reduce){.immersive-loading i{animation:none}}
#shell[data-motion=paused] .immersive-loading i{animation:none}
.immersive-stage{position:absolute;inset:0;z-index:80;background:#040810}
.immersive-stage[hidden]{display:none}
#shell[data-immersive=loading] .immersive-stage{opacity:0;pointer-events:none}
.immersive-canvas{position:absolute;inset:0}
.immersive-stage .xinye-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
#shell[data-immersive=active] .immersive-stage{animation:xinye-enter .28s ease-out}
@keyframes xinye-enter{from{opacity:0;transform:scale(1.012)}to{opacity:1;transform:none}}
#shell[data-motion=paused] .immersive-stage{animation:none}
@media(prefers-reduced-motion:reduce){#shell[data-immersive=active] .immersive-stage{animation:none}}
.immersive-stage .immersive-return{top:10px;right:18px;font-size:13px;z-index:2;padding:8px 16px}
.immersive-return{position:absolute;right:24px;top:24px;min-height:44px;border:1px solid #b9d6d74d;border-radius:24px;background:#09111c;color:#e4f2f2;padding:10px 20px;font:inherit;cursor:pointer}
#shell[data-immersive=active] #interface,#shell[data-immersive=active] #dossier,#shell[data-immersive=active] .journey-footer{visibility:hidden}
@media(max-width:820px) and (orientation:portrait){
  #shell .topbar{grid-template-columns:auto minmax(0,1fr);grid-template-rows:44px 36px 42px;padding:calc(8px + env(safe-area-inset-top,0px)) 14px 4px;gap:3px 8px}
  #shell .brand{max-width:76px}
  #shell .brand svg,#shell .brand small{display:none}
  #shell .brand b{font-size:12px;letter-spacing:.2px}
  #shell .topbar__actions{grid-column:2;grid-row:1;justify-content:flex-end;gap:3px}
  #shell .topbar__actions .icon-button{width:38px;min-width:38px;height:44px;padding:3px;font-size:10px;border-color:#c7d9e225}
  #shell .event-status{min-width:70px;min-height:44px;padding:4px 7px}
  #shell .event-status__ring small{font-size:9px}
  #shell .event-status__ring b{font-size:14px}
  #shell .event-status__ring em{font-size:10px}
  #shell .topbar__meta{display:flex;grid-column:1/-1;grid-row:2;justify-content:center}
  #crumbs{gap:6px;font-size:11px}
  #crumbs .crumb{min-height:36px}
  #shell .study-toolbar{grid-column:1/-1;grid-row:3;justify-self:stretch;justify-content:space-between;border:0;border-bottom:1px solid #b9cddd26;border-radius:0;padding:0;background:none;gap:2px}
  #shell .study-toolbar button{font-size:10px;min-height:42px;padding:5px 7px;flex:none}
  #shell #study-focus{max-width:none;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis}
  #shell #study-optional{min-width:88px;border-left:0;border-radius:22px}
  #shell .hero-copy,#shell[data-view=planet] .hero-copy{top:calc(144px + env(safe-area-inset-top,0px));left:16px;width:calc(100% - 32px)}
  #shell[data-study-level=constellation] .hero-copy{max-height:calc(100dvh - 144px - 112px - 200px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:88px}
  #shell .hero-copy__chapter{margin:0 0 6px;font-size:11px}
  #shell .chapter-nav{bottom:calc(56px + env(safe-area-inset-bottom,0px));padding:4px 12px 8px}
  #shell .scene-pagination{bottom:calc(114px + env(safe-area-inset-bottom,0px))}
  #shell .journey-footer{left:14px;right:14px;bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  #shell .journey-footer button{font-size:11px;padding:8px 13px}
  #shell .dossier__head,#shell[data-guidance=true] .dossier__head{padding:14px 16px 8px;gap:8px}
  #shell #study-detail-slot .study-panel{margin:0 16px}
  #shell .dossier__body{padding:0 16px 24px;margin-bottom:calc(60px + env(safe-area-inset-bottom,0px))}
  #shell[data-view=planet] .journey-footer{left:0;right:0;bottom:0;padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px));background:#04070bf2}
  .reading-heading{font-size:16px}
  .reading-claim .prop__stmt,.reading-source .post__title{font-size:15px}
  .reading-source blockquote,.reading-source .vp__summary{font-size:15px}
  .study-topic-choice{padding:0 18px 16px}
  .product-tour{left:14px;bottom:calc(66px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 210px);overflow-y:auto;padding:16px}
}
@media(max-height:520px) and (orientation:landscape){
  #shell .topbar{grid-template-columns:100px minmax(140px,1fr) auto;grid-template-rows:40px 40px;padding:6px 18px 4px;gap:2px 10px}
  #shell .study-toolbar button{min-height:36px;font-size:10px;padding:4px 9px}
  #shell .event-status{min-height:40px;padding:3px 8px}
  #shell .hero-copy{top:100px}
  #shell[data-study-level=universe] .hero-copy,#shell[data-study-level=galaxy] .hero-copy{max-height:calc(100dvh - 230px);overflow-y:auto;padding-right:4px;scrollbar-width:thin}
  #shell .scene-pagination{left:auto;right:18px;top:50px;bottom:auto;width:min(280px,38vw)}
  #shell .journey-footer{left:18px;right:18px;bottom:6px}
  #shell .chapter-nav{bottom:56px}
  #shell .dossier__head{padding:94px 18px 8px}
  #shell #study-detail-slot .study-panel{margin:94px 18px 0}
  #shell[data-guidance=true] .dossier__head{padding-top:8px}
  .product-tour{left:18px;bottom:58px;max-height:calc(100dvh - 116px);overflow-y:auto}
}
@media(prefers-reduced-motion:reduce){.tour-highlight{box-shadow:none}}
@media(min-width:360px) and (max-width:820px) and (orientation:portrait){#shell .topbar__actions .icon-button{width:44px;min-width:44px}}
@media(max-width:359px) and (orientation:portrait){
  #shell .brand{display:none}
  #shell .topbar__actions{grid-column:1/-1;justify-content:space-between}
  #shell .topbar__actions .icon-button{width:44px;min-width:44px}
}
@media(max-height:640px) and (orientation:portrait){
  #shell[data-view=planet] .hero-copy{display:none}
  .reading-provenance{display:block}
}
#shell[data-motion=paused] .aurora,#shell[data-motion=paused] .light-sweep,#shell[data-motion=paused] .primary-action__shine,#shell[data-motion=paused] .live-dot{animation-play-state:paused!important}
/* Reading actions stay available without knowledge guidance. */
.reading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.reading-actions .reading-secondary{background:transparent;color:inherit;border:1px solid rgba(173,205,215,.32)}
.reading-actions .reading-confirm{border-color:#b4dad2;background:#c2e2dc;color:#0c1720}
.reading-next-step,.reading-action-status{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.reading-action-error{color:#f0c5b6;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
/* Personal sources and explained semantic links belong in reading/progress. */
.card-library,.reading-relation,.reading-discovery{padding:18px 0;border-top:1px solid rgba(159,232,255,.18);line-height:1.8}
.card-library .mini-link,.reading-relation .mini-link,.reading-discovery .mini-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:6px 8px 6px 0;padding:8px 14px;border:1px solid rgba(159,232,255,.24);border-radius:22px;background:rgba(93,216,255,.06);color:#dcefff;cursor:pointer;text-decoration:none;font:inherit}
.reading-relation h3,.reading-discovery h3{font-size:16px;color:#dcefff;margin:0 0 10px}
.reading-relation p,.reading-discovery p{font-size:14px;color:#aebdd2}
.reading-relation blockquote{margin:12px 0;padding:8px 14px;border-left:2px solid rgba(159,232,255,.5);color:#dae5f1;font-size:14px;line-height:1.9}

/* Existing local harvest entry remains in settings and the progress card. */
#shell:not([data-study-level="universe"]) .hero-copy>.personal-growth-stage,
#shell:not([data-study-level="universe"]) .hero-copy>.growth-help{display:none!important}
#shell .hero-copy>.personal-growth-stage,#shell .hero-copy>.growth-help{display:none!important}

.topic-browser{box-sizing:border-box;position:fixed;inset:0 0 0 auto;width:min(390px,calc(100vw - 18px));height:100dvh;max-height:none;margin:0;padding:24px 18px;border:0;border-left:1px solid #ffffff20;border-radius:0;background:#101720f5;color:#e5edf3;box-shadow:-28px 0 80px #0009;overflow:auto;backdrop-filter:blur(24px)}
.topic-browser::backdrop{background:#0005}.topic-browser header{display:flex;align-items:center;justify-content:space-between;gap:12px}.topic-browser header p{margin:0 0 3px;color:#9bb6b6;font-size:11px;letter-spacing:.08em}.topic-browser h2{font-size:20px;margin:0}.topic-browser header button{font-size:24px;border:0;background:none;color:inherit;cursor:pointer;min-width:40px;min-height:40px}
.topic-browser input{box-sizing:border-box;width:100%;padding:12px;margin:18px 0 12px;border:1px solid #ffffff25;border-radius:10px;background:#ffffff07;color:inherit;font:inherit}.topic-pinned{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;padding:14px;margin:4px 0 12px;border:1px solid #a4d7ce43;border-radius:12px;background:#a4d7ce0c}.topic-pinned[hidden]{display:none}.topic-pinned span{font-size:11px;color:#9bb6b6}.topic-pinned strong{grid-row:2;font-size:14px;font-weight:600}.topic-pinned button{grid-column:2;grid-row:1/3;min-height:36px;border:1px solid #a4d7ce58;border-radius:18px;background:transparent;color:#c8ebe4;padding:6px 10px;font:inherit;font-size:11px;cursor:pointer}.topic-pinned button:disabled{opacity:.45;cursor:default}
.topic-results details{border-top:1px solid #ffffff16;padding:8px 0}.topic-results summary{cursor:pointer;padding:10px 4px;font-weight:600}.topic-row{display:flex;gap:10px;align-items:center}.topic-row button,.topic-domain{min-height:42px;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer;padding:8px 10px;font:inherit;font-size:13px}.topic-visit{flex:1}.topic-pin{color:#9ed2c6;font-size:11px!important}.topic-row button:disabled{opacity:.55;cursor:default}.topic-row button:hover,.topic-domain:hover{background:#ffffff0b;border-radius:8px}.topic-domain{color:#a7b6c2;font-size:12px}.topic-empty{padding:20px 4px;color:#9bb6b6;font-size:13px}
@media(max-width:820px) and (orientation:portrait){.topic-browser{inset:auto 0 0 0;width:100%;height:min(78dvh,680px);padding:20px 16px;border-top:1px solid #ffffff20;border-left:0;border-radius:20px 20px 0 0}.topic-browser::backdrop{background:#0008}}

body:has(#product-tour:not([hidden])) .kanshan-hub__dock{visibility:hidden}
body:has(#product-tour[data-step="account"]:not([hidden])) .account__panel{max-height:calc(100dvh - 84px);overflow:auto}
@media(max-width:820px) and (orientation:portrait){
 #shell #product-tour[data-step="settings"]{bottom:18px}
 body:has(#product-tour[data-step="settings"]:not([hidden])) #view-settings-panel{max-height:calc(100dvh - 320px);overflow:auto}
 #shell #product-tour[data-step="account"]{top:64px;bottom:auto}
 body:has(#product-tour[data-step="account"]:not([hidden])) .account__panel--sheet{max-height:calc(100dvh - 300px)}
}
@media(max-height:520px) and (orientation:landscape){
 #shell #product-tour[data-step="settings"],#shell #product-tour[data-step="account"]{width:min(300px,calc(100vw - 354px));left:12px;bottom:24px;padding:12px}
 body:has(#product-tour[data-step="account"]:not([hidden])) .account__panel--sheet{left:auto;right:12px;top:64px;bottom:12px;width:320px;max-height:calc(100dvh - 76px)}
}
