.study-toolbar{display:flex;align-items:center;gap:6px;min-width:0;padding:4px;border:1px solid rgba(240,240,250,.2);border-radius:30px;background:rgba(6,9,16,.6);pointer-events:auto}
.study-toolbar button{border:0;background:transparent;border-radius:24px;padding:8px 14px;min-height:44px;color:rgba(240,240,250,.65);font-size:12px;white-space:nowrap;cursor:pointer}
.study-toolbar button[aria-pressed=true]{background:rgba(240,240,250,.14);color:#f0f0fa}
#study-focus{max-width:190px;overflow:hidden;text-overflow:ellipsis}
.study-toolbar button:disabled,.study-panel button:disabled{opacity:.5;cursor:wait}
.study-toolbar[hidden],.study-toolbar button[hidden],.study-panel[hidden],.study-dialog [hidden]{display:none!important}
.study-invitation{display:inline-flex;vertical-align:bottom;margin:8px 0 0 8px;max-width:100%;pointer-events:auto}
.study-invitation[hidden]{display:none!important}
.study-invitation p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.study-invitation__actions{display:flex;align-items:center;gap:4px}
.study-invitation button,#study-dialog-dismiss{min-height:44px;padding:7px 12px;border:1px solid rgba(240,240,250,.35);border-radius:24px;background:rgba(240,240,250,.06);color:#f0f0fa;font:inherit;font-size:12px;cursor:pointer}
#study-invitation-dismiss,#study-dialog-dismiss{border-color:transparent;background:transparent;color:rgba(240,240,250,.7)}
.study-invitation button:hover,#study-dialog-dismiss:hover{background:rgba(240,240,250,.14);color:#fff}
.study-invitation button:focus-visible,#study-dialog-dismiss:focus-visible{outline:2px solid #c9e5e3;outline-offset:2px}
.topbar__meta{display:none}
.topbar{gap:16px;pointer-events:none}
.topbar>*{pointer-events:auto}
.dossier{z-index:9}
.study-panel{margin-top:22px;padding:16px 0 0;border-top:1px solid rgba(240,240,250,.24);max-width:400px;translate:none;pointer-events:auto}
.study-panel__meta{display:flex;justify-content:space-between;align-items:center;gap:12px;color:rgba(240,240,250,.65);font-size:11px;letter-spacing:.5px}
.study-panel__meta b{font-weight:500;color:#c1d9d7}
.study-panel h2{margin:10px 0 6px;color:#f0f0fa;font-size:16px;font-weight:600;line-height:1.5}
.study-panel p{margin:0;color:rgba(240,240,250,.74);font-size:13px;line-height:1.65}
.study-panel button{margin-top:12px;min-height:44px;max-width:100%;border:1px solid rgba(240,240,250,.45);border-radius:24px;background:rgba(240,240,250,.08);color:#f0f0fa;padding:9px 18px;font-size:12px;font-weight:600;cursor:pointer}
.study-panel button:hover,.study-toolbar button:hover{background:rgba(240,240,250,.18);color:#fff}
.shell[data-guidance=true] .hero-copy>.reward-line,.shell[data-guidance=true] .hero-copy>.primary-action,.shell[data-guidance=true] .hero-copy>.hero-copy__description{display:none}
#study-detail-slot:empty{display:none}
#study-detail-slot .study-panel{margin:90px 32px 0;max-width:none;padding:14px 0 12px}
.shell[data-guidance=true] .dossier__head{padding-top:12px}
.shell[data-guidance=true] .dossier{z-index:7}
.shell[data-guidance=true] .topbar{z-index:10}
.study-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border:1px solid rgba(240,240,250,.28);border-radius:18px;background:#090c13;color:#f0f0fa;box-shadow:0 30px 100px #0008}
.study-dialog::backdrop{background:rgba(0,3,9,.76);backdrop-filter:blur(8px)}
@media(min-width:821px),(orientation:landscape){
  .shell[data-study-level=constellation] .study-panel__meta{flex-wrap:wrap;gap:4px 8px}
}
.study-dialog__inner{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.study-dialog__intro{padding:30px 30px 18px;flex:none}
.study-dialog__intro>span{font-size:11px;letter-spacing:2px;color:#bdd4d2}
.study-dialog h2{font-size:26px;font-weight:600;line-height:1.35;margin:12px 0}
.study-dialog p{font-size:13px;line-height:1.8;margin:0;color:rgba(240,240,250,.66)}
.study-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:2px 30px 0;overflow-y:auto;min-height:0}
.study-mode{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0;min-height:216px;padding:22px;border:1px solid rgba(240,240,250,.24);border-radius:12px;background:rgba(240,240,250,.035);color:#f0f0fa;text-align:left;cursor:pointer;transition:background .18s,border-color .18s}
.study-mode:hover{border-color:#a9ccca;background:rgba(140,220,214,.08)}
.study-mode:focus-visible,.study-dialog__actions button:focus-visible{outline:2px solid #c9e5e3;outline-offset:-4px}
.study-mode svg{width:90px;height:62px;max-width:100%;fill:none;stroke:#b6d2d0;stroke-width:1;flex:none}
.study-mode svg ellipse{opacity:.35}.study-mode svg circle{fill:#c8dfdd;stroke:none}
.study-mode b{font-size:22px;font-weight:600;line-height:1.3}
.study-mode span{font-size:12px;line-height:1.8;color:rgba(240,240,250,.66)}
.study-dialog .study-dialog__note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 30px 18px;font-size:11px;color:rgba(240,240,250,.66);flex:none}
#study-dialog-dismiss{flex:none;font-size:11px}
.study-directions{margin:0;padding:0 30px 20px;border:0;overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:0}
.study-directions legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.study-direction{display:flex;align-items:center;gap:10px;min-height:66px;padding:12px;border:1px solid rgba(240,240,250,.15);border-radius:10px;cursor:pointer;background:rgba(240,240,250,.025)}
.study-direction:hover{border-color:rgba(240,240,250,.4)}
.study-direction:has(input:checked){border-color:#a9ccca;background:rgba(140,220,214,.08)}
.study-direction:focus-within{outline:2px solid #c9e5e3;outline-offset:1px}
.study-direction input{margin:0;accent-color:#a9ccca;width:16px;height:16px;flex:none}
.study-direction span{min-width:0}
.study-direction__badge{display:inline-block;margin-left:8px;padding:1px 7px;border:1px solid rgba(169,204,202,.6);border-radius:10px;font-size:10px;font-style:normal;font-weight:500;line-height:1.6;color:#c1d9d7;vertical-align:1px;white-space:nowrap}
.study-direction[data-recommended=true]{border-color:rgba(169,204,202,.55)}.study-direction b{display:block;font-size:13px;font-weight:600;line-height:1.6}.study-direction small{display:block;font-size:11px;line-height:1.6;color:rgba(240,240,250,.5)}
.study-dialog__actions{padding:16px 30px 24px;border-top:1px solid rgba(240,240,250,.12);display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;background:#090c13}
.study-dialog__actions button{min-height:44px;border-radius:25px;padding:10px 18px;font-size:12px;cursor:pointer}
#study-back{border:0;background:none;color:rgba(240,240,250,.7)}
#study-start{border:1px solid rgba(240,240,250,.6);background:#e4edec;color:#11191c;font-weight:600}
#study-start:disabled{opacity:.4;cursor:default}
@media(max-width:820px) and (orientation:portrait){
  .topbar{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:calc(8px + env(safe-area-inset-top,0px)) 14px 4px}
  .study-toolbar{grid-row:2;grid-column:1/-1;justify-content:center;padding:0;border:0;border-bottom:1px solid rgba(240,240,250,.15);border-radius:0;background:transparent;gap:4px}
  .study-toolbar button{padding:6px 12px;font-size:11px;flex:1;min-width:0}
  .study-invitation button{font-size:11px;padding:6px 8px}
  #study-focus{max-width:none;flex:1.4}
  .hero-copy{top:calc(112px + env(safe-area-inset-top,0px))}
  .shell[data-study-level=universe] .hero-copy__chapter,.shell[data-study-mode=focus][data-study-level=galaxy] .hero-copy__chapter{display:none}
  .shell[data-guidance=true] .hero-copy h1{font-size:28px}
  .study-panel{margin-top:10px;padding-top:10px;max-width:none}
  .study-panel h2{font-size:13px;line-height:1.45;margin:6px 0 4px}
  .study-panel p{font-size:12px;line-height:1.5}
  .study-panel button{margin-top:8px;padding:7px 14px;font-size:11px}
  .study-panel__meta{font-size:10px}
  .shell[data-view=planet] .hero-copy__chapter{display:none}
  .shell[data-view=planet] .hero-copy{top:calc(112px + env(safe-area-inset-top,0px))}
  #study-detail-slot .study-panel{margin:0 16px;padding:10px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;border-top:0;border-bottom:1px solid rgba(240,240,250,.18)}
  #study-detail-slot .study-panel__meta{grid-column:1/-1}
  #study-detail-slot .study-panel h2{font-size:12px;margin:3px 0;align-self:center}
  #study-detail-slot .study-panel p{grid-column:1/-1;grid-row:3;font-size:11px}
  #study-detail-slot .study-panel button{grid-column:2;grid-row:2;margin:0;padding:6px 12px}
  .shell[data-guidance=true] .dossier__head{padding-top:8px;padding-bottom:4px}
  .study-dialog__intro{padding:22px 18px 16px}.study-dialog h2{font-size:22px;margin:10px 0}.study-dialog p{font-size:12px}
  .study-modes{padding:0 18px;gap:8px}.study-mode{min-height:194px;padding:16px 12px;gap:12px}.study-mode b{font-size:20px}.study-mode span{font-size:11px}.study-mode svg{width:76px;height:52px}
  .study-dialog .study-dialog__note{padding:10px 18px 14px;font-size:10px;gap:8px}
  #study-dialog-dismiss{font-size:10px;padding:6px 8px}
  .study-directions{padding:0 18px 16px;gap:6px}.study-direction{padding:10px 8px;gap:7px;min-height:62px}.study-direction b{font-size:12px}
  .study-dialog__actions{padding:12px 18px 18px;gap:6px}.study-dialog__actions button{font-size:11px;padding:8px 12px}
}
@media(max-height:520px) and (orientation:landscape){
  .shell[data-study-level=universe] .hero-copy>.primary-action{margin-top:0;padding:10px 18px;min-height:44px}
  .topbar{gap:8px}.study-toolbar{padding:0;background:none;border:0;gap:2px}.study-toolbar button{font-size:11px;padding:6px 9px}#study-focus{max-width:150px}
  .study-invitation button{font-size:11px;padding:6px 8px}
  .study-panel{margin-top:10px;padding-top:8px}.study-panel h2{font-size:13px;margin:4px 0}.study-panel p{font-size:11px}.study-panel button{margin-top:6px}
  #study-detail-slot .study-panel{margin:64px 18px 0;padding:8px 0}.shell[data-guidance=true] .dossier__head{padding-top:6px}
  .shell[data-guidance=false] .dossier__head{padding-top:calc(76px + env(safe-area-inset-top,0px))}
  .study-dialog{width:min(660px,calc(100vw - 32px))}.study-dialog__intro{padding:16px 24px 10px}.study-dialog h2{font-size:20px;margin:6px 0}.study-directions{grid-template-columns:repeat(3,1fr);padding:0 24px 12px}.study-direction{min-height:55px;padding:7px}.study-dialog__actions{padding:8px 24px 12px}
  .study-modes{padding:0 24px;gap:12px}.study-mode{display:grid;grid-template-columns:64px 1fr;gap:6px 12px;align-content:center;min-height:120px;padding:16px}.study-mode svg{grid-row:1/3;width:64px;height:48px;align-self:center}.study-mode b{font-size:20px}.study-mode span{font-size:11px}
  .study-dialog .study-dialog__note{padding:10px 24px 16px}
}
@media(max-width:360px) and (orientation:portrait),(max-width:820px) and (max-height:680px) and (orientation:portrait){
  .shell[data-study-level=universe] .hero-copy>.primary-action{margin-top:6px}
  .hero-copy>.study-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding-top:8px}
  .hero-copy>.study-panel .study-panel__meta{grid-column:1/-1}
  .hero-copy>.study-panel h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
  .hero-copy>.study-panel p{font-size:11px;line-height:1.5;align-self:center}
  .hero-copy>.study-panel button{margin:0;padding:6px 11px;max-width:138px}
}
@media(max-height:360px) and (orientation:landscape){
  .hero-copy>.study-panel h2,.hero-copy>.study-panel p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
  .shell[data-guidance=true] .scene-pagination{left:auto;right:18px;width:min(230px,42vw)}
}
