/* Panel Atlas guidebook: thumbnail navigation, image stage, then the next action. */
.studio .gb-top{padding:12px 20px;gap:10px;min-height:64px}
.studio .gb-top select{max-width:260px;min-width:0}
.studio .gb-top .btn{font-size:12px;min-height:34px}
.studio .gb-body{position:relative;flex-direction:row;overflow:hidden}
.studio .gb-toc{width:248px;max-height:none;padding:18px 12px;overscroll-behavior:contain;background:var(--bg);flex:none;border-right:1px solid var(--border-soft)}
.studio .gb-contents-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px 16px;color:var(--text);font-size:13px}
.studio .gb-contents-heading span{font-size:11px;color:var(--muted-2)}
.studio .gb-item{width:100%;display:flex;align-items:center;gap:11px;margin:0 0 5px;padding:8px;border:1px solid transparent;background:none;text-align:left;white-space:normal;font:inherit;font-size:12px;line-height:1.45;border-radius:10px;min-height:64px}
.studio .gb-item.cur{background:var(--bg-soft);border-color:var(--accent);box-shadow:0 3px 12px #24304409;color:var(--text)}
.studio .gb-item:hover{background:var(--panel)}
.studio .gb-item.depth2,.studio .gb-item.depth3{margin-left:8px;width:calc(100% - 8px)}
.studio .gb-thumb{flex:none;width:58px;height:46px;padding:2px;background:var(--panel);border:1px solid var(--border-soft);border-radius:5px;display:grid;place-items:center;overflow:hidden}
.studio .gb-thumb img{width:100%;height:100%;object-fit:contain}
.studio .gb-step-name{min-width:0;overflow-wrap:anywhere}
.studio .gb-sec{text-transform:none;letter-spacing:0;padding:14px 8px 6px;font-size:12px;line-height:1.5;font-weight:600;color:var(--text)}
.studio .gb-main{padding:24px;min-width:0;overscroll-behavior:contain}
.studio .gb-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;max-width:none;margin:0;align-items:start}
.studio .gb-shot{position:relative;width:100%;max-width:none;height:calc(100dvh - 114px);min-height:260px;border:1px solid var(--border-soft);background:var(--bg-soft);background-image:none;border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:center}
.studio .gb-image{position:absolute;inset:14px;display:flex;align-items:center;justify-content:center;width:auto;height:auto;padding:0;border:0;background:none;cursor:zoom-in;border-radius:5px;min-width:0}
.studio .gb-image img{width:100%;height:100%;object-fit:contain;max-height:none;filter:drop-shadow(0 3px 10px #17213b18)}
.studio .gb-doc{padding:8px 0;min-width:0;width:100%}
.studio .gb-crumb{line-height:1.6;margin-bottom:15px;font-size:11px}
.studio .gb-h1{font-size:24px;line-height:1.2;letter-spacing:-.6px;margin-bottom:16px}
.studio .gb-capture-details{font-size:11px;color:var(--muted-2);margin-bottom:22px}
.studio .gb-capture-details summary{cursor:pointer}.studio .gb-capture-details .gb-meta{margin:10px 0;line-height:1.5}
.studio .gb-note-field{font-size:14px;line-height:1.7}
.studio .gb-graph{display:block}.studio .gb-graph-cur{max-width:100%;width:fit-content}
.studio .gb-graph-kids{margin:18px 0 0 12px;padding-left:14px;gap:9px;border-left:1px solid var(--border)}
.studio .gb-graph-kids:before,.studio .gb-graph-kids:after{display:none}
.studio .gb-graph-kid{min-height:40px;height:auto;line-height:1.45;padding:9px 12px}
.studio .gb-graph-kid:before{width:14px;left:-15px}
.studio .gb-graph-lbl{white-space:normal;overflow-wrap:anywhere}
.studio .gb-lbl{text-transform:none;letter-spacing:0;font-size:12px}
.studio .gb-nav{gap:10px;justify-content:space-between;border-top:1px solid var(--border-soft);padding-top:18px}
.studio .gb-steps-toggle,.studio .gb-steps-shade{display:none}
@media(max-width:1250px){
 .studio .gb-toc{width:210px}.studio .gb-thumb{width:48px;height:42px}
 .studio .gb-main{padding:20px}.studio .gb-wrap{grid-template-columns:minmax(0,1fr);gap:20px}
 .studio .gb-shot{height:auto;aspect-ratio:var(--guide-ratio,1.5);max-height:min(800px,70dvh);min-height:160px}
 .studio .gb-doc{max-width:760px}.studio .gb-h1{font-size:22px}
}
@media(max-width:700px){
 .studio .gb-top{padding:9px 12px;gap:8px}.studio .gb-top .gb-title{font-size:13px}.studio .gb-top select{max-width:calc(100% - 180px);font-size:12px}
 .studio .gb-top .save-status{margin-left:auto;font-size:10px}.studio .gb-top .btn{min-height:34px;font-size:11px;padding:6px 9px}
 .studio .gb-body{flex-direction:row}.studio .gb-main{padding:14px;flex:1}
 .studio .gb-toc{display:none;position:absolute;inset:0 auto 0 0;width:min(310px,85%);z-index:3;max-height:none;border-bottom:0;box-shadow:var(--shadow)}
 .studio .gb-steps-toggle{display:block}.studio[data-theme] .guidebook[data-steps=open] .gb-toc{display:block}
 .studio .guidebook[data-steps=open] .gb-steps-shade{display:block;position:absolute;inset:0;background:#10172866;border:0;z-index:2}
 .studio .gb-shot{height:auto;aspect-ratio:var(--guide-ratio,1.5);min-height:160px;max-height:62dvh;padding:8px;border-radius:9px}
 .studio .gb-wrap{gap:18px}.studio .gb-doc{padding:0 2px}.studio .gb-h1{font-size:21px}
}
.studio .gb-tools{position:relative;flex:none;font-size:12px}
.studio .gb-tools summary{cursor:pointer;list-style:none;min-height:34px;padding:8px 11px;border:1px solid var(--border);border-radius:8px;background:var(--bg-soft);color:var(--text)}
.studio .gb-tools-menu{position:absolute;right:0;top:42px;width:160px;z-index:10;display:grid;gap:7px;padding:9px;background:var(--bg-soft);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow)}
.studio .gb-tools:not([open]) .gb-tools-menu{display:none}

@media(max-width:700px){.studio .gb-image{inset:8px}}

.guide-hotspots{position:absolute;pointer-events:none}
.guide-hotspot{position:absolute;pointer-events:auto;border:1px solid #4b99ff60;border-radius:5px;background:#3087ff10;cursor:pointer;padding:0;min-width:0;min-height:0}
.guide-hotspot:hover,.guide-hotspot:focus-visible{background:#3087ff40;border-color:#2782f9;outline:2px solid #9fc7ff;outline-offset:2px}
.guide-hotspots.pulse .guide-hotspot{animation:hotspot-pulse .65s ease-in-out 2}
.studio .gb-image.interactive{cursor:default}
@keyframes hotspot-pulse{50%{background:#3087ff66;box-shadow:0 0 0 5px #3087ff22;border-color:#4095ff}}
.studio .guidebook.reader .gb-main{padding:12px 12px 80px}
.studio .guidebook.reader .gb-wrap{grid-template-columns:minmax(0,1fr)}
.studio .guidebook.reader .gb-doc{max-width:800px;margin:auto}
.studio .guidebook.reader .gb-toc{display:none;position:absolute;inset:auto 0 0;width:100%;height:min(70dvh,700px);z-index:5;border:1px solid var(--border);border-radius:22px 22px 0 0;box-shadow:var(--shadow);padding:16px max(18px,calc((100% - 700px)/2));overflow:auto}
.studio .guidebook.reader[data-steps=open] .gb-toc{display:block}
.studio .guidebook.reader .gb-steps-toggle{display:block;position:absolute;bottom:max(10px,env(safe-area-inset-bottom));left:16px;right:16px;width:calc(100% - 32px);z-index:4;min-height:52px;border-radius:18px;border:1px solid var(--border);box-shadow:var(--shadow);background:var(--panel);text-align:left;padding:12px 20px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio .guidebook.reader .gb-steps-toggle:before{content:'↑';margin-right:14px;color:var(--accent)}
.studio .guidebook.reader[data-steps=open] .gb-steps-shade{display:block;position:absolute;inset:0;background:#10172866;border:0;z-index:4}
.studio .guidebook.reader .gb-shot{height:calc(100dvh - 190px);max-height:none;min-height:180px;aspect-ratio:auto}
.studio .guidebook.reader .gb-top .gb-title{max-width:100px;overflow:hidden;text-overflow:ellipsis}
.studio .guidebook.reader .gb-top select{max-width:220px;flex:1}
.studio .guidebook.reader .gb-coreseg{display:none}
.studio .guidebook.reader .gb-note{font-size:14px;line-height:1.6}
.studio .guidebook.reader .gb-tools-menu{width:220px}
@media(max-width:700px){.studio .guidebook.reader .gb-top{flex-wrap:nowrap}.studio .guidebook.reader .gb-top .gb-title{display:none}.studio .guidebook.reader .gb-top select{max-width:calc(100% - 150px)}}
@media(prefers-reduced-motion:reduce){.guide-hotspots.pulse .guide-hotspot{animation:none;background:#3087ff40;border-color:#2782f9}}
