:root{font-family:system-ui,"Yu Gothic",sans-serif;color:#173f46;background:#eef3f0}*{box-sizing:border-box}body{margin:0;padding:8px;height:100dvh;display:grid;grid-template-rows:30px minmax(0,1fr) 22px;gap:8px}header{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:5}h1{font-size:16px;margin:0;font-weight:700}h2{font-size:15px;margin:0}main{display:grid;grid-template-rows:minmax(0,1fr) clamp(155px,23vh,230px);gap:8px;min-height:0;min-width:0}.workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:8px;min-height:0}.panel{min-width:0;min-height:0;background:white;padding:8px;border-radius:10px;display:flex;flex-direction:column;gap:6px;position:relative}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.route-toolbar{flex-shrink:0}.route-toolbar small{margin-left:auto;white-space:nowrap}button,summary{font:inherit;font-size:12px;border:1px solid #c5d5ce;border-radius:6px;background:#f5f8f6;color:#173f46;cursor:pointer;padding:7px 9px;min-height:32px}button:hover{background:#e4f0e8}button:disabled{opacity:.45;cursor:default}.primary{background:#247671;color:#fff;border-color:#247671;box-shadow:0 0 0 2px #24767118}.primary:hover{background:#1a625e}button:focus-visible,input:focus-visible,[role=button]:focus-visible,summary:focus-visible{outline:3px solid #d8a82b;outline-offset:2px}[hidden]{display:none!important}#map{flex:1;min-height:0;background:#e7eeee;overflow:hidden}#mapgate{font-size:14px;padding:18px}#status{display:block;min-height:18px;max-height:32px;overflow:auto;font-size:11px;line-height:1.4}.scene-heading{display:flex;align-items:center;gap:8px;min-height:32px;flex-shrink:0}.scene-heading button{margin-left:auto}#choice-note{font-size:11px;color:#627d79}.large-view{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:5px;flex:1;min-height:0}.rotate{padding:0;font-size:16px;font-weight:700}.rotate[aria-busy=true]{cursor:progress}.photo-frame{position:relative;isolation:isolate;background:#e9eeee;border:1px solid #cbd8d2;min-width:0;min-height:0}.official-view{position:absolute;inset:0;z-index:0;pointer-events:none}.official-view a{pointer-events:auto}.main-photo .official-view{pointer-events:auto}.planet-overlay{position:absolute;z-index:1;pointer-events:none;right:8px;top:8px;width:36px;height:36px;filter:drop-shadow(0 1px 2px #ffffffc0)}.planet-overlay svg{width:100%;height:100%}.summary-photo .planet-overlay{width:28px;height:28px;right:4px;top:4px}#empty-main{position:absolute;inset:0;display:grid;place-items:center;text-align:center;font-size:13px;padding:24px;z-index:2}.scene-toolbar{min-height:32px;flex-shrink:0}.scene-toolbar small{margin-left:auto;font-size:10px;color:#647b76}.overview{min-height:0;min-width:0}#summaries{height:100%;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.summary-card{min-width:0;min-height:0;display:grid;grid-template-rows:18px minmax(0,1fr) 17px;gap:3px;padding:5px;background:white;border:1px solid #cbd8d2;border-radius:7px;cursor:pointer}.summary-card.active{border:2px solid #247671;padding:4px;background:#e8f3eb}.summary-card strong{font-size:12px;white-space:nowrap}.summary-card small{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.candidate-panel{position:absolute;z-index:3;top:44px;bottom:46px;left:8px;right:8px;background:#fff;padding:6px;border:1px solid #a9c4b9;border-radius:8px;box-shadow:0 4px 24px #173f4630;display:flex;flex-direction:column;gap:6px}.candidate-toolbar{display:flex;justify-content:space-between;flex-shrink:0}#directions{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5px}.direction-card{display:grid;grid-template-rows:17px minmax(0,1fr);min-width:0;min-height:0;padding:4px;border:1px solid #cbd8d2;cursor:pointer}.direction-card:hover{background:#edf6f1}.direction-card strong{font-size:11px}.connection summary{list-style:none}.connection-body{position:absolute;right:0;top:36px;max-width:calc(100vw - 20px);width:440px;padding:12px;background:#fff;border:1px solid #bed0c7;border-radius:8px;box-shadow:0 4px 20px #173f4630;font-size:12px}.connection input{width:100%;display:block;margin:6px 0 8px;padding:8px;border:1px solid #bdd0c7;border-radius:5px}.connection small{display:block;font-size:11px;margin-top:6px}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;line-height:1.2;color:#617b74}footer a{color:#406f71;white-space:nowrap}footer span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:800px){body{height:auto;min-height:100dvh;grid-template-rows:30px auto auto}.workspace{grid-template-columns:minmax(0,1fr)}.map-panel{height:50svh;min-height:300px}.scene-panel{height:52svh;min-height:340px}main{grid-template-rows:auto 170px}#summaries{grid-template-columns:repeat(8,minmax(130px,1fr));overflow-x:auto}.route-toolbar small{font-size:10px}footer{flex-wrap:wrap;font-size:9px}.scene-toolbar small{display:none}}

#offset-note{font-size:11px;font-weight:700;white-space:nowrap}.route-toolbar{column-gap:4px}.route-toolbar button{padding-left:7px;padding-right:7px}

.planet-photo{width:100%;height:100%;object-fit:contain}.planet-overlay{filter:drop-shadow(0 2px 3px #10292c66)}.planet-label{position:absolute;right:0;top:0;width:18px!important;height:18px!important}.planet-overlay[data-placement=center]{left:50%;top:50%;right:auto;transform:translate(-50%,-50%)}.summary-photo .planet-overlay{right:6px;top:6px}.summary-photo .planet-overlay[data-placement=center]{left:50%;top:50%;right:auto}.summary-card{grid-template-rows:18px minmax(0,1fr) 24px}.summary-top{display:flex;align-items:center;justify-content:space-between;gap:3px;min-width:0}.summary-top small{font-size:9px;max-width:50%;color:#627d79}.planet-comment{width:100%;min-width:0;border:1px solid #cbd8d2;border-radius:4px;padding:3px 4px;font:inherit;font-size:11px;color:#173f46;background:#fff;height:24px}.scene-heading{gap:5px}.scene-heading button,.scene-heading select{font-size:11px;padding:6px 7px}.scene-heading select{min-width:95px;border:1px solid #c5d5ce;border-radius:6px;min-height:32px}.scene-heading #place-center{margin-left:0}.scene-toolbar small{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;font-size:9px}

.planet-label{display:none}

.planet-hit{position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%);pointer-events:auto;padding:0;border:0;background:transparent;min-height:44px;min-width:44px;cursor:pointer;border-radius:50%}.planet-hit:hover{background:transparent}.planet-hit:focus-visible{outline:3px solid #d8a82b;outline-offset:2px}
.comment-band{position:absolute;z-index:2;pointer-events:none;left:50%;transform:translateX(-50%);bottom:56px;width:max-content;min-width:min(70%,440px);max-width:calc(100% - 24px);padding:6px 14px;border-radius:2px;background:var(--band-bg);color:var(--band-color);font-size:clamp(18px,1.6vw,26px);font-weight:800;line-height:1.3;text-align:center;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
body{--band-bg:#ff7908;--band-color:#111}body[data-band-theme=cream]{--band-bg:#fff0ce;--band-color:#191919}body[data-band-theme=dark]{--band-bg:#111827cc;--band-color:#fff}body[data-band-theme=light]{--band-bg:#ffffffcc;--band-color:#173f46}
.summary-photo .comment-band{left:6px;right:6px;transform:none;bottom:38px;width:auto;min-width:0;max-width:none;padding:3px 4px;font-size:11px;line-height:1.25}.summary-photo[data-has-comment=true] .planet-overlay[data-placement=center]{top:calc(50% - 14px)}
#gallery-toggle{margin-left:14px}header .connection{margin-left:auto}#sun-note{font-size:9px;color:#946616;white-space:nowrap}
body.gallery .workspace{display:none}body.gallery main{grid-template-rows:minmax(0,1fr)}body.gallery #summaries{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}body.gallery .summary-card{grid-template-rows:24px minmax(0,1fr) 28px}body.gallery .summary-card strong{font-size:15px}body.gallery .summary-photo .comment-band{font-size:17px;padding:5px 8px;bottom:50px}body.gallery .summary-photo[data-has-comment=true] .planet-overlay[data-placement=center]{top:calc(50% - 18px)}

@media(max-width:800px){body.gallery main{grid-template-rows:auto}body.gallery #summaries{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(220px,1fr))}}

main{grid-template-rows:minmax(0,1fr) clamp(138px,20vh,196px) 94px}.distance-chart{background:#fff;border-radius:8px;padding:3px 8px;min-height:0;min-width:0}.distance-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;height:18px;font-size:12px}.distance-heading small{font-size:9px;color:#647b76;white-space:nowrap}.distance-heading a{color:#406f71}#au-svg{display:block;width:100%;height:72px}.au-node{cursor:pointer}.au-node.active .au-dot{stroke:#173f46;stroke-width:3}.au-node.active .au-label{font-weight:800;fill:#0a6257}.au-node:hover .au-label{text-decoration:underline}.au-node:focus-visible rect{stroke:#d8a82b;stroke-width:2}body.gallery main{grid-template-rows:minmax(0,1fr) 94px}#model-notice{max-width:440px;padding:22px;border:1px solid #a9c4b9;border-radius:12px;color:#173f46}#model-notice::backdrop{background:#173f4655}#model-notice p{font-size:13px;line-height:1.7}#model-notice button{width:100%}@media(max-width:800px){main{grid-template-rows:auto 170px 108px}.distance-chart{overflow-x:auto}.distance-heading{min-width:800px}#au-svg{min-width:800px}body.gallery main{grid-template-rows:auto 108px}}

/* Original playful palette: static panels keep the map and panorama readable. */
:root{font-family:"Yu Gothic",system-ui,sans-serif;color:#212447;background:#fff6e5}body{grid-template-rows:42px minmax(0,1fr) 22px;background:radial-gradient(circle at 6% 5%,#ffe37e 0 3px,transparent 4px),radial-gradient(circle at 94% 8%,#ff9baf 0 4px,transparent 5px),#fff6e5;background-size:120px 120px,160px 160px,auto}h1{font-size:22px;font-weight:900;letter-spacing:.04em}.panel,.summary-card,.distance-chart{border:2px solid #212447;border-radius:12px;box-shadow:0 3px 0 #212447}.summary-card.active{border:3px solid #212447;background:#dcf8ec;padding:3px;box-shadow:0 3px 0 #fc6d99}button,summary{border:2px solid #212447;border-radius:12px;box-shadow:0 2px 0 #212447;background:#fff;color:#212447;font-weight:800;min-height:34px;font-size:11px}button:hover{background:#ffe8a4}button:active{box-shadow:none;translate:0 2px}.primary{background:#ffe174;border-color:#212447;color:#212447;box-shadow:0 3px 0 #212447}.primary:hover{background:#ffd14d}#nearby{background:#9de7ed}#pick-camera{background:#ffc2d6}#gallery-toggle{margin-left:0;background:#d7d0ff}#size-toggle{margin-left:auto;background:#d3f2b0}#clear{background:#ffe1a9}#band-theme{border:2px solid #212447;border-radius:9px;background:#fff7e0;min-width:105px}.scene-heading #size-mode{display:none}.large-view{display:block}.main-photo{height:100%}.scene-toolbar{column-gap:6px;row-gap:5px}.scene-toolbar small{display:block;font-size:10px;margin-left:0;color:#424b69;line-height:1.3;flex-basis:100%;max-height:28px;overflow:auto}.scene-toolbar #gallery-toggle{margin-left:auto}.route-toolbar{gap:6px}.route-toolbar small{font-weight:800}.planet-overlay[data-placement=corner]{left:auto!important;right:8px!important;top:8px!important;transform:none!important;max-width:42%;max-height:42%}.planet-overlay .planet-photo{display:block}.summary-photo .planet-overlay[data-placement=corner]{right:6px!important;top:6px!important}.planet-cue .planet-photo{animation:planet-introduce .5s ease-in-out 1}.planet-cue-static{outline:3px solid #ffe174;outline-offset:5px;border-radius:50%}@keyframes planet-introduce{0%,100%{filter:none}50%{filter:brightness(0) invert(1)}}@media(prefers-reduced-motion:reduce){.planet-cue .planet-photo{animation:none}.planet-cue{outline:3px solid #ffe174;outline-offset:5px;border-radius:50%}}
#map{position:relative;border-radius:8px}#route-intro{position:absolute;inset:0;z-index:4;background:#fff7e066;display:grid;place-items:center;padding:18px;pointer-events:auto}#route-intro>div{padding:22px;background:#fff9e7;border:3px solid #212447;border-radius:20px;box-shadow:0 6px 0 #212447;max-width:360px;display:grid;gap:18px;text-align:center;line-height:1.6}#route-intro strong{font-size:18px}#route-intro button{width:120px;justify-self:center}#short-route,#model-notice{padding:24px;max-width:460px;border:3px solid #212447;border-radius:20px;background:#fff9e7;color:#212447;box-shadow:0 6px 0 #212447}#short-route::backdrop{background:#21244777}#short-route p{font-size:18px;line-height:1.7;font-weight:800}#short-route .toolbar{justify-content:center;gap:12px}
main{grid-template-rows:minmax(0,1fr) clamp(130px,19vh,180px) 158px}.distance-chart{padding:5px 8px}.distance-heading{height:22px;gap:10px}.distance-heading strong{font-size:11px;white-space:nowrap}.distance-heading small{font-size:9px;white-space:normal;text-align:right}#au-svg{height:126px}.au-value,.km-value{fill:#424b69}body.gallery main{grid-template-rows:minmax(0,1fr) 158px}body.gallery .summary-card{grid-template-rows:24px minmax(0,1fr) 28px}.summary-top strong{font-weight:900}.planet-comment{border-radius:6px}.comment-band{font-family:var(--band-font);font-style:var(--band-style,normal);border:2px solid #212447;border-radius:8px;box-shadow:0 2px 0 #212447;line-height:1.25}body{--band-bg:#ff9daf;--band-color:#242244;--band-font:"Yu Gothic",system-ui,sans-serif}body[data-band-theme=cream]{--band-bg:#ffe36e;--band-color:#242244;--band-font:"Yu Mincho",Georgia,serif}body[data-band-theme=dark]{--band-bg:#3d3280;--band-color:#fff;--band-font:Consolas,"Courier New",monospace}body[data-band-theme=light]{--band-bg:#bbf0dc;--band-color:#183d37;--band-font:Arial,"Meiryo",sans-serif}body[data-band-theme=pop]{--band-bg:#4ddef0;--band-color:#112b48;--band-font:"BIZ UDGothic","Yu Gothic",sans-serif;--band-style:italic}.summary-photo .comment-band{font-size:11px;padding:3px 4px}body.gallery .summary-photo .comment-band{font-size:15px}.connection-body{border:2px solid #212447;background:#fff9e7}footer{color:#424b69;font-size:9px}footer a{color:#424b69}
@media(max-width:800px){body{grid-template-rows:42px auto auto}.workspace{grid-template-columns:minmax(0,1fr)}main{grid-template-rows:auto 170px 158px}.map-panel{height:50svh;min-height:330px}.scene-panel{height:58svh;min-height:370px}.scene-heading{flex-wrap:wrap}.scene-heading #size-toggle{margin-left:auto}.scene-toolbar #gallery-toggle{margin-left:0}.scene-toolbar small{display:block}.distance-heading{min-width:800px}.distance-chart{overflow-x:auto}body.gallery main{grid-template-rows:auto 158px}}

body{--band-bg:#FFE45C;--band-color:#342300;--band-font:"Dela Gothic One","Yu Gothic",sans-serif}body[data-band-theme=cream]{--band-bg:#FF91B5;--band-color:#4A1233;--band-font:"Mochiy Pop One","Yu Mincho",serif}body[data-band-theme=dark]{--band-bg:#BFA3FF;--band-color:#2E1656;--band-font:"Noto Sans JP",Consolas,monospace}body[data-band-theme=light]{--band-bg:#C5F26B;--band-color:#1C3B17;--band-font:"Zen Maru Gothic","Meiryo",sans-serif}body[data-band-theme=pop]{--band-bg:#74E7FF;--band-color:#073B4C;--band-font:"M PLUS Rounded 1c","BIZ UDGothic",sans-serif;--band-style:italic}

#map-stage{position:relative;flex:1;min-height:0}#map-stage #map{height:100%;width:100%}

.planet-hit{box-shadow:none!important;translate:none!important}#gallery-return{margin-left:14px;background:#d7d0ff}

.scene-toolbar #search-status{flex:1 1 100px;min-width:72px;max-width:160px;max-height:34px;margin:0;font-size:10px;line-height:1.3;overflow:auto}.scene-toolbar #search-status:empty{display:none}

/* Official Google Fonts faces; swap preserves text while loading/failing. */
.comment-band{font-weight:var(--band-weight,800)}body{--band-weight:400}body[data-band-theme=cream]{--band-weight:400}body[data-band-theme=dark]{--band-weight:800}body[data-band-theme=light]{--band-weight:900}body[data-band-theme=pop]{--band-weight:800}

/* Soranpo: naming has its own row, separate from Google's panorama rights. */
.main-comment{flex-shrink:0;min-height:0;max-height:78px}.main-comment .comment-band{position:static;left:auto;right:auto;bottom:auto;transform:none;margin:0 auto;min-width:min(70%,440px);max-width:100%;font-size:clamp(17px,1.5vw,24px);padding:5px 12px}.scene-heading #band-theme{margin-left:auto}.scene-heading #size-toggle{margin-left:0}.distance-heading{justify-content:flex-end}.scene-toolbar #search-status{flex:1 1 100px;max-width:none}.scene-toolbar #naming-toggle{background:#ffe174;margin-left:0}.naming-off .planet-comment,.naming-off .comment-band,.naming-off #main-comment{display:none!important}.naming-off .summary-card{grid-template-rows:18px minmax(0,1fr)}.naming-off .summary-photo[data-has-comment=true] .planet-overlay[data-placement=center]{top:50%}body.gallery.naming-off .summary-card{grid-template-rows:24px minmax(0,1fr)}#status{max-height:48px;line-height:1.4;overflow:auto;overflow-wrap:normal;word-break:normal}#intro-message span{display:inline-block;white-space:nowrap}#intro-message{font-size:17px}
.planet-cue .planet-photo,.chart-cue{animation:planet-introduce 1.5s ease-in-out 1}@keyframes planet-introduce{0%,38%,83%,100%{filter:none}20%,64%{filter:brightness(0) invert(1)}}.chart-cue-static text{fill:#8c4400!important;font-weight:900!important;stroke:#fff2b5;stroke-width:.6px;paint-order:stroke fill}.chart-cue-static rect{fill:#ffe17455}.planet-cue-static{outline-color:#ffb100}
@media(prefers-reduced-motion:reduce){.planet-cue .planet-photo,.chart-cue{animation:none!important}.chart-cue text{fill:#8c4400!important;font-weight:900!important}}
#usage-guide{width:min(740px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:3px solid #212447;border-radius:22px;background:#fff9e7;color:#212447;box-shadow:0 6px 0 #212447}#usage-guide::backdrop{background:#21244799}#usage-guide h2{font-size:22px;font-weight:900}#usage-guide h2 small{font-size:12px;background:#ffe174;padding:4px 8px;border-radius:8px;margin-left:8px}.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.guide-steps>div{border:2px solid #212447;border-radius:14px;padding:12px;background:#fff}.guide-steps>div:nth-child(2){background:#d9f5ed}.guide-steps>div:nth-child(3){background:#ffedf3}.guide-steps b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffe174;border:2px solid #212447;font-size:18px}.guide-steps svg{display:block;width:100%;height:90px;margin:10px 0}.guide-steps strong{font-size:14px;font-weight:900;line-height:1.6}.guide-steps p,.guide-note{font-size:12px;line-height:1.7}.guide-steps p{margin-bottom:0}#usage-ok{display:block;min-width:180px;margin:16px auto 0;font-size:15px}#short-length{display:block;font-size:18px}#short-route small{display:block;font-size:11px;line-height:1.6;margin-bottom:16px}
@media(max-width:800px){.guide-steps{grid-template-columns:minmax(0,1fr)}.guide-steps svg{height:64px}.scene-heading #band-theme{margin-left:auto}.main-comment{max-height:78px}}

/* One 4:3 composition is shared by main, eight previews, and gallery. */
.photo-frame{overflow:hidden;background:#e9eeee}.composition-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);isolation:isolate;overflow:hidden;background:#e9eeee}.composition-stage .official-view{inset:0}.composition-stage .planet-overlay[data-placement=center],.summary-photo[data-has-comment=true] .composition-stage .planet-overlay[data-placement=center],body.gallery .summary-photo[data-has-comment=true] .composition-stage .planet-overlay[data-placement=center],.naming-off .summary-photo[data-has-comment=true] .composition-stage .planet-overlay[data-placement=center]{left:50%;top:32%;right:auto;transform:translate(-50%,-50%)}.composition-stage .planet-overlay[data-placement=corner],.summary-photo .composition-stage .planet-overlay[data-placement=corner]{left:auto!important;right:2%!important;top:2%!important;transform:none!important;max-width:none;max-height:none}.composition-stage .comment-band,.summary-photo .composition-stage .comment-band,body.gallery .summary-photo .composition-stage .comment-band{position:absolute;left:50%;right:auto;top:49%;bottom:auto;transform:translate(-50%,-50%);width:82%;min-width:0;max-width:82%;padding:calc(7px * var(--composition-scale)) calc(14px * var(--composition-scale));border-width:calc(3px * var(--composition-scale));border-radius:calc(14px * var(--composition-scale));box-shadow:0 calc(5px * var(--composition-scale)) 0 #212447;font-size:calc(60px * var(--composition-scale));line-height:1.12;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.composition-stage .planet-overlay{filter:drop-shadow(0 calc(2px * var(--composition-scale)) calc(4px * var(--composition-scale)) #10292c66)}body.gallery .planet-comment{display:none!important}body.gallery .summary-card{grid-template-rows:24px minmax(0,1fr)}.scene-heading #band-theme{margin-left:auto}.scene-heading #naming-toggle{margin-left:0;background:#ffe174}.scene-heading #size-toggle{margin-left:0}.planet-cue-static{outline:3px solid #ffe174;outline-offset:4px}.chart-cue-static rect{fill:#ffe17499}.chart-cue-static text{fill:#6d3b00!important;stroke:#fff2a0;stroke-width:1px;paint-order:stroke fill}

/* Four naming positions share the same relative composition in all views. */
body{--caption-y:70%}body[data-naming-placement=top]{--caption-y:8%}body[data-naming-placement=middle]{--caption-y:49%}.composition-stage .comment-band,.summary-photo .composition-stage .comment-band,body.gallery .summary-photo .composition-stage .comment-band{top:var(--caption-y)}.composition-stage .planet-overlay[data-placement=center],.summary-photo[data-has-comment=true] .composition-stage .planet-overlay[data-placement=center],body.gallery .summary-photo[data-has-comment=true] .composition-stage .planet-overlay[data-placement=center],.naming-off .summary-photo[data-has-comment=true] .composition-stage .planet-overlay[data-placement=center]{top:34%}.composition-stage .planet-overlay[data-placement=corner],.summary-photo .composition-stage .planet-overlay[data-placement=corner]{left:var(--planet-x)!important;top:var(--planet-y)!important;right:auto!important;transform:none!important}.composition-stage .planet-hit{left:var(--hit-left);top:var(--hit-top);width:var(--hit-width);height:var(--hit-height);transform:none}.planet-cue-static{outline:none;filter:drop-shadow(0 0 4px #ffce00) drop-shadow(0 0 2px #ffce00)}.scene-controls,.gallery-controls{display:flex;align-items:center;gap:5px;min-width:0}.scene-controls{margin-left:auto}.gallery-controls{margin-left:auto}.scene-controls #band-theme,.scene-controls #size-toggle,.gallery-controls #band-theme,.gallery-controls #size-toggle{margin-left:0}body.gallery #connection{display:none}.planet-english{display:inline-block;font-family:Arial,sans-serif;font-size:.76em;font-weight:700;margin-left:5px;opacity:.85}.summary-card strong{font-size:11px}.scene-heading h2{font-size:14px}main{grid-template-rows:minmax(0,1fr) 196px 140px}.distance-chart{padding:3px 8px}#au-svg{height:114px}.distance-heading{height:18px}body.gallery main{grid-template-rows:minmax(0,1fr) 140px}body{grid-template-rows:38px minmax(0,1fr) 18px}.confirm-attention{background:#ffe174;outline:2px solid #ff9c26;outline-offset:2px}.confirm-attention::after{content:' \2190';font-weight:900}.confirm-nudge{animation:confirm-nudge 1s ease-in-out 1}@keyframes confirm-nudge{0%,100%{box-shadow:0 2px 0 #212447}50%{box-shadow:0 0 0 6px #ffe17466}}@media(prefers-reduced-motion:reduce){.confirm-nudge{animation:none}}@media(max-width:800px){body{grid-template-rows:38px auto auto}main{grid-template-rows:auto 196px 140px}.scene-controls,.gallery-controls{flex-wrap:wrap}.scene-heading{flex-wrap:wrap}.gallery-controls{max-width:70%}}

/* Reserve the editor row whether naming is on or off: camera crop never shifts. */
.naming-off .summary-card{grid-template-rows:18px minmax(0,1fr) 24px}.naming-off:not(.gallery) .planet-comment{display:block!important;visibility:hidden!important}body.gallery .summary-card,body.gallery.naming-off .summary-card{grid-template-rows:24px minmax(0,1fr)}#naming-toggle{width:92px;min-width:92px;flex:none}#band-theme{border:2px solid #212447;border-radius:12px;min-height:34px;padding:7px 9px;font-weight:800;font-size:11px;box-shadow:0 2px 0 #212447;background:#fff7e0;color:#212447}#band-theme:hover{background:#ffe8a4}.confirm-wrap{display:inline-flex;position:relative}.confirm-attention::after{content:none}#confirm-pointer{position:absolute;width:26px;height:30px;top:-31px;left:50%;margin-left:-13px;z-index:8;pointer-events:none;animation:confirm-pointer 3s ease-in-out 1}.confirm-nudge{animation-duration:3s}@keyframes confirm-pointer{0%{opacity:0;transform:translateY(-8px)}15%,85%{opacity:1}30%,65%{transform:translateY(2px)}47%,78%{transform:translateY(-3px)}100%{opacity:0;transform:translateY(0)}}.is-drawing .scene-controls{position:relative}.is-drawing .scene-controls::after{content:'';position:absolute;inset:-3px;background:#fff9;border-radius:12px;pointer-events:none}.is-drawing .planet-comment{visibility:hidden!important;display:block!important}.is-drawing .summary-card{grid-template-rows:18px minmax(0,1fr) 24px;cursor:default}.draft-planet{background:#fff6df}.draft-planet .composition-stage{border-radius:12px}.draft-planet .planet-overlay{filter:drop-shadow(0 2px 3px #21244755)}.draw-help{max-width:380px;display:grid;justify-items:center;gap:8px;text-align:center;background:#fff9e7;border:2px solid #212447;border-radius:14px;padding:14px}.draw-help svg{width:130px;height:58px}.draw-step{font-size:20px;font-weight:900;background:#ffe174;border:2px solid #212447;border-radius:50%;width:30px;height:30px}.draw-help strong{font-size:16px}.draw-help p{font-size:11px;line-height:1.6;margin:0}#reset-notice{max-width:440px;border:3px solid #212447;border-radius:18px;padding:22px;background:#fff9e7;color:#212447}#reset-notice p{font-size:13px;line-height:1.7}#reset-notice::backdrop{background:#21244777}@media(prefers-reduced-motion:reduce){#confirm-pointer{animation:none;opacity:1;transform:none}.confirm-nudge{animation:none}}

.is-drawing #empty-main{padding:8px}.draw-help{position:relative;grid-template-columns:80px minmax(0,1fr);width:min(100%,450px);max-width:450px;padding:12px;gap:4px 10px;align-items:center;justify-items:start;text-align:left}.draw-help svg{grid-column:1;grid-row:1/3;width:80px;height:44px}.draw-help strong{grid-column:2;font-size:14px}.draw-help p{grid-column:2;font-size:10.5px;line-height:1.45}.draw-step{position:absolute;top:-8px;left:-8px;width:24px;height:24px;font-size:15px}

/* Keep route guidance visible while previewing; preserve SDK attribution. */
.drawing-guide{display:flex;align-items:center;gap:8px;flex-shrink:0;background:#fff3bf;border:2px solid #212447;border-radius:10px;padding:6px 9px;font-size:11px;line-height:1.4}.drawing-guide b{font-size:20px}#reset-notice,#short-route{font-family:inherit}#short-route p{font-size:15px;line-height:1.7;margin:0 0 16px}body.gallery .summary-card.active{background:#fff;border:2px solid #212447;padding:5px;box-shadow:0 3px 0 #212447}main{grid-template-rows:minmax(0,1fr) 196px 168px}body.gallery main{grid-template-rows:minmax(0,1fr) 168px}.distance-chart{overflow-x:auto}#au-svg{height:136px;min-width:1200px}.distance-heading{min-width:1200px}.au-value,.km-value{font-weight:600}@media(max-width:800px){main{grid-template-rows:auto 196px 168px}body.gallery main{grid-template-rows:auto 168px}}

/* Restore the compact AU callouts; keep enlarged text and scroll only on narrow screens. */
#au-svg,.distance-heading{min-width:800px}

/* Explicit per-planet magnification is a display aid, not physical diameter. */
.magnify-toggle{min-height:18px;height:18px;padding:0 5px;font-size:10px;border-radius:7px;line-height:14px;box-shadow:0 1px 0 #212447;flex:none}.magnify-toggle[aria-pressed=true]{background:#ffe174}.summary-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.summary-top .planet-english{font-size:.63em;margin-left:3px}.summary-top small:empty{display:none}.magnification-label{position:absolute;z-index:3;pointer-events:none;white-space:nowrap;border:1px solid #212447;border-radius:5px;background:#fff3bf;color:#212447;font-family:system-ui,"Yu Gothic",sans-serif;font-size:10px;font-weight:800;line-height:16px;padding:1px 4px;max-height:20px}.main-photo .magnification-label{font-size:12px}.magnification-label[hidden]{display:none!important}body.gallery #size-toggle{display:none!important}.au-label{font-family:system-ui,"Yu Gothic",sans-serif;font-weight:700}.au-value{font-family:system-ui,"Yu Gothic",sans-serif;font-weight:600}.km-value{font-family:system-ui,"Yu Gothic",sans-serif;font-weight:600}

.magnification-label{line-height:14px;max-height:18px}.main-photo .magnification-label{line-height:16px;max-height:20px}

/* Approved pink lettering reference, without its presentation frame. */
h1.title-logo{font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:26px;letter-spacing:-.035em;white-space:nowrap;color:#ff5795;-webkit-text-stroke:.5px #fff;paint-order:stroke fill;text-shadow:.72px 0 #202347,-.72px 0 #202347,0 .72px #202347,0 -.72px #202347,1.2px 1.45px #202347;transform:none;line-height:1.25}.sun-label{fill:#173f46}

/* The approved logo and one-line named scene share the existing guide tone. */
#about-third .guide-heading{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0}#about-third .guide-heading>span{font-size:17px}.guide-logo{display:block;width:178px;height:50px;overflow:visible}.guide-logo text{font-family:"Dela Gothic One",sans-serif;font-size:108px;font-weight:400;letter-spacing:-.035em;fill:#ff5795;stroke:#fff;stroke-width:2px;paint-order:stroke fill;text-shadow:3px 0 #202347,-3px 0 #202347,0 3px #202347,0 -3px #202347,5px 6px #202347}.guide-scene-name{font-family:system-ui,"Yu Gothic",sans-serif}#about-third .guide-steps{margin-bottom:8px}#about-third .guide-steps p{font-size:13px;line-height:1.8}

.guide-logo text{text-shadow:none}

.draw-help p,#empty-main{white-space:pre-line}.brand-header{display:flex;align-items:center;gap:8px;min-width:0}.brand-header h1{flex:none}#about-open{font-size:10px;white-space:nowrap}#about-dialog{width:min(1050px,calc(100vw - 24px));max-height:92dvh;overflow:auto;padding:16px;border:3px solid #212447;border-radius:20px;background:#fff9e7;color:#212447}#about-dialog::backdrop{background:#21244799}.about-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}.about-heading h2{font-size:17px;margin:0}.about-heading #about-close{margin-left:auto}.about-heading span{font-size:12px}.about-content{display:grid;place-items:center;min-width:0}#about-illustration{display:block;max-width:100%;max-height:calc(85dvh - 125px);width:auto;height:auto;object-fit:contain;border-radius:8px}.about-placeholder{display:grid;place-items:center;width:min(100%,720px);aspect-ratio:4/3;max-height:calc(85dvh - 125px);border:2px dashed #647b76;border-radius:12px;background:#eaf4f0;font-size:20px;font-weight:800}.about-navigation{display:flex;justify-content:center;gap:12px;margin-top:12px}.about-navigation button{min-width:100px}@media(max-width:800px){body.gallery{grid-template-rows:auto auto auto}body.gallery header{flex-wrap:wrap;row-gap:8px}.brand-header{gap:6px}#about-dialog{padding:12px}.about-heading{flex-wrap:wrap;gap:6px}.about-heading h2{font-size:15px}}

/* Make the pre-route instructions readable without duplicate titles. */
.draw-help{width:min(100%,600px);max-width:600px;grid-template-columns:52px minmax(0,1fr);gap:6px 10px;padding:12px}.draw-help svg{grid-column:1;grid-row:1;width:52px;height:28px}.draw-help strong{grid-column:2;grid-row:1;font-size:20px;line-height:1.35}.draw-help p{grid-column:1/-1;grid-row:2;font-size:18px;line-height:1.4;margin:0}.is-drawing #empty-main{overflow:auto}#empty-main .draw-help{box-sizing:border-box;min-width:0}@media(max-width:800px){.draw-help{max-width:100%;padding:12px;grid-template-columns:42px minmax(0,1fr)}.draw-help svg{width:42px;height:25px}.draw-help strong{font-size:19px}.draw-help p{font-size:18px;line-height:1.5}}

/* A single bounded page column prevents mobile content from sizing the whole grid. */
body{grid-template-columns:minmax(0,1fr)}body>header,body>main,body>footer{min-width:0}@media(min-width:801px) and (max-height:720px){body.is-drawing{height:auto;min-height:100dvh;grid-template-rows:38px auto 18px}body.is-drawing main{grid-template-rows:minmax(280px,1fr) 196px 168px}}

#about-second{width:100%;min-width:0}#about-second-image{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;border-radius:8px}.about-story{max-width:850px;margin:16px auto 0;font-size:18px;line-height:1.8;color:#212447}.about-story p{margin:0 0 12px}.about-story p:first-child,.about-story p:last-child{font-weight:800}#about-dialog.about-page-two{overflow-y:auto}.about-page-two .about-navigation{padding-bottom:2px}@media(max-width:800px){.about-story{font-size:16px;line-height:1.8;margin-top:14px}}

#about-third{width:100%;min-width:0}.about-page-three .about-content{display:block}.about-page-three .about-navigation{margin-top:8px}#about-dialog #usage-ok{margin:0;min-width:160px;font-size:15px}

/* Main caption is directly editable; retain the same composition and naming theme. */
.composition-stage .comment-editor{pointer-events:auto;cursor:text;appearance:none;min-height:0;font-family:var(--band-font);font-style:var(--band-style,normal);font-weight:var(--band-weight,800)}
.comment-editor:focus{outline:3px solid #fff;outline-offset:2px;text-overflow:clip}
.comment-editor::placeholder{color:var(--band-color);opacity:.65}
