@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--bg:#111c20;--panel:#18262b;--border:#304045;--muted:#92a5aa;--text:#eaf0eb;--lime:#c1df99;--ink:#253526}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px 'Noto Sans TC',sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;color:var(--text);background:#26383e;border:1px solid var(--border);border-radius:7px;padding:9px 13px;transition:.18s}button:hover{background:#354b50;border-color:#768c84}button:disabled{opacity:.4;cursor:wait}button.primary{background:var(--lime);color:var(--ink);border-color:var(--lime);font-weight:700}button.primary:hover{background:#d7edb9}button.quiet,button.text-button{border:0;background:transparent;color:var(--muted)}button.text-button{padding-left:0;color:var(--lime)}button.wide{width:100%;margin-top:9px}button.subtle{background:transparent;border-style:dashed}button.danger{color:#efac9f}.hidden{display:none!important}header{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--border);gap:20px}.brand{display:flex;gap:11px;color:var(--text);text-decoration:none;font:700 21px 'Space Grotesk',sans-serif;letter-spacing:1px;align-items:center}.brand-icon{font-size:40px;color:var(--lime);font-weight:400}.brand-light{font-weight:400;color:#b9c7c8}.brand small{display:block;font:10px 'Noto Sans TC';letter-spacing:3px;color:var(--muted);margin-top:3px}.project{display:flex;align-items:center;gap:10px}.project input{width:175px;border:0;background:none;padding:8px 0;color:#e5e9e4}.project #saved{font-size:10px;color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 10px #b5e59133}.header-actions{display:flex;gap:9px}.workspace{height:calc(100dvh - 80px);display:flex}aside{width:320px;flex-shrink:0;overflow:auto;border-right:1px solid var(--border);background:var(--panel);display:flex;flex-direction:column}.editor-head{padding:27px 24px 18px}.eyebrow{font:10px 'Space Grotesk',sans-serif;letter-spacing:2px;color:var(--lime)}h1{font-size:19px;font-weight:500;letter-spacing:-.5px;margin:10px 0}.editor-head p{font-size:11px;color:var(--muted);margin:0}.tabs{display:flex;border-bottom:1px solid var(--border);padding:0 16px}.tabs button{flex:1;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);padding:15px 0}.tabs button.active{color:var(--lime);border-bottom-color:var(--lime)}.tab-panel{padding:0 24px 20px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}.section-title h2{font-size:12px;font-weight:500;margin:0}.section-title>span{font:11px 'Space Grotesk';color:#70878c}.search{display:flex;border:1px solid #405256;border-radius:7px;background:#102026;overflow:hidden}.search input{width:100%;min-width:0;background:none;border:0;color:white;padding:11px;font-size:11px}.search button{border:0;background:none;font-size:22px;padding:3px 12px}input:focus,textarea:focus,select:focus{outline:1px solid var(--lime)}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.preset-grid button{text-align:left;background:#213239;padding:11px;font-size:11px}.preset-grid small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #2b3b40;cursor:pointer}.switch-row b{font-size:12px;font-weight:400}.switch-row small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.switch-row input{appearance:none;width:30px;height:17px;border-radius:20px;background:#42535a;position:relative;cursor:pointer}.switch-row input:before{content:'';position:absolute;top:3px;left:3px;width:11px;height:11px;background:#c0cbca;border-radius:50%;transition:.15s}.switch-row input:checked{background:#9ab777}.switch-row input:checked:before{left:16px;background:#1e3821}.field{display:block;font-size:11px;margin:15px 0;color:#bdcbca}.field input:not([type=range]):not([type=color]),.field textarea,.field select{display:block;width:100%;padding:10px;margin-top:7px;background:#102027;color:white;border:1px solid #3c4e54;border-radius:5px}.field input[type=color]{display:block;border:0;background:none;width:55px;height:30px;margin-top:5px}.field output{float:right;color:var(--lime)}input[type=range]{accent-color:var(--lime);width:100%;height:4px;cursor:pointer;margin:13px 0}.hint{font-size:10px;color:var(--muted);line-height:1.8}.note{display:flex;gap:12px;background:#25352d;padding:12px;margin-top:16px;border:1px solid #3a4f3b;border-radius:7px;color:#b9c7b4}.note span{font-size:20px;color:var(--lime)}.note p{font-size:10px;line-height:1.8;margin:0}.aside-footer{margin-top:auto;display:flex;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--border)}.aside-footer button{border:0;background:none;font-size:10px;color:var(--muted)}main{position:relative;flex:1;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 60% 40%,#4a655e,#1d3335 50%,#0a1b23)}#map{position:absolute;inset:0}.map-top{position:absolute;top:24px;left:25px;right:24px;display:flex;justify-content:space-between;align-items:start;pointer-events:none}.map-top>*{pointer-events:auto}.location-pill{background:#152326e8;border:1px solid #60736c66;border-radius:7px;padding:12px 15px;box-shadow:0 8px 30px #0002}.location-pill .dot{margin-right:8px}.location-pill small{display:block;color:#a4b7b3;font:10px 'Space Grotesk';margin:6px 0 0 14px;letter-spacing:1px}.map-top button,.map-tools button{background:#152326df;border-color:#60736c66}.map-tools{position:absolute;right:24px;top:113px;display:grid;gap:4px}.map-tools button{width:36px;padding:8px 0}.view-badge{position:absolute;top:107px;left:26px;font:10px 'Space Grotesk';letter-spacing:2px;color:#f0f3ed;text-shadow:0 2px 4px black}.view-badge span{display:block;letter-spacing:0;font:10px 'Noto Sans TC';color:#becac3;margin-top:6px}.story-card{position:absolute;left:26px;bottom:144px;width:310px;background:#142328eb;border:1px solid #798d7d66;border-radius:10px;padding:22px;box-shadow:0 10px 30px #0003;backdrop-filter:blur(14px)}.story-card .eyebrow{display:flex;justify-content:space-between;color:#a7c684;font-size:9px}.story-card h2{font-size:24px;font-weight:500;line-height:1.5;margin:16px 0 10px;letter-spacing:-.8px}.story-card p{line-height:1.9;font-size:12px;color:#bdcbc8;white-space:pre-line;margin-bottom:20px}.card-nav{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #3c4b46;padding-top:13px}.card-nav button{padding:2px 8px;background:none;border:0;font-size:21px;color:var(--lime)}#sceneDots{display:flex;gap:6px}.scene-dot{width:5px;height:5px;border-radius:50%;background:#59716b}.scene-dot.active{background:var(--lime);width:20px;border-radius:4px}.animation-panel{position:absolute;right:24px;bottom:144px;width:360px;background:#152328ee;border:1px solid #72897d66;border-radius:10px;box-shadow:0 10px 35px #0003;backdrop-filter:blur(14px)}.animation-head{display:flex;justify-content:space-between;align-items:center;padding:17px 18px 8px}.animation-head h3{font-size:15px;font-weight:500;margin:5px 0}.animation-head h3 span{font-size:9px;color:#a7cfa2;border:1px solid #547052;border-radius:3px;padding:2px 5px;margin-left:6px}.animation-head button{border:0;background:none;font-size:20px;color:var(--muted)}#glacierCanvas{width:100%;height:135px;display:block}.stage-labels{display:flex;justify-content:space-between;padding:0 18px;font-size:9px;color:#8ca99e}.stage-labels .active{color:var(--lime)}#processText{font-size:10px;color:#c5d5d0;line-height:1.8;padding:0 18px;min-height:36px}.animation-controls{display:flex;align-items:center;gap:8px;border-top:1px solid #324540;padding:10px 14px;font-size:9px;color:var(--muted)}.animation-controls label{width:65px}.animation-controls input{margin:9px 0}.animation-controls select{background:#283b3b;color:white;border:0;margin-top:4px}.animation-controls button{padding:7px;font-size:9px;margin-left:auto}.micro{font-size:8px;color:#78938c;line-height:1.7;margin:0 15px 12px}.timeline{position:absolute;bottom:46px;left:25px;right:24px;height:72px;display:flex;gap:18px;align-items:center;background:#142328f5;border:1px solid #61766c77;border-radius:9px;padding:15px 18px;box-shadow:0 8px 25px #0003}.play{background:var(--lime);color:#263c25;border:0;width:37px;height:37px;padding:0;border-radius:50%;flex-shrink:0}.timeline-body{flex:1}.timeline-meta{display:flex;justify-content:space-between;font-size:10px;color:#b3c6bf}.timeline-meta span:last-child{font-family:'Space Grotesk'}.timeline input{display:block;margin:12px 0 0}.timeline select{background:none;border:0;color:#c7d7cf;font-size:11px}.timeline select option{background:#253c39}.timeline>button:not(.play){font-size:10px}#status{position:absolute;bottom:8px;left:25px;font-size:9px;color:#bccdc4;max-width:65%;pointer-events:none;text-shadow:0 1px 4px black}.cesium-viewer-bottom{bottom:8px!important;left:auto!important;right:12px!important;max-width:50%;font-size:9px!important}.cesium-credit-logoContainer img{max-height:18px}.cesium-widget-credits{color:#ddd!important}.map-error{position:absolute;left:50%;top:31%;transform:translate(-50%,-50%);width:340px;background:#192a2ce8;border:1px solid #52655e;padding:20px;border-radius:9px;text-align:center}.map-error p{line-height:1.8;color:var(--muted);font-size:11px}.placement{position:absolute;top:155px;left:50%;transform:translateX(-50%);background:var(--lime);color:#223322;padding:12px 18px;border-radius:6px;white-space:nowrap}.item-list{display:grid;gap:7px;margin:14px 0}.item{background:#21343b;border:1px solid #394e50;border-radius:6px;padding:11px;cursor:pointer}.item.selected{border-color:var(--lime);background:#2d4038}.item-title{font-size:11px;display:flex;justify-content:space-between;gap:5px}.item small{font-size:9px;color:var(--muted);display:block;margin-top:5px}.item button{padding:1px 5px;background:none;border:0;color:#c6a99f}.row{display:flex;gap:8px;margin-top:10px}.row button{flex:1}.divider{border-top:1px solid var(--border);margin:20px 0}#results button{display:block;width:100%;text-align:left;font-size:10px;margin-top:6px;line-height:1.6}dialog{width:min(540px,94vw);background:#1b2c30;color:var(--text);border:1px solid #596f65;border-radius:12px;padding:26px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#031013bb;backdrop-filter:blur(6px)}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-top h2{font-size:20px;margin:0}.modal-top button{background:none;border:0;font-size:24px}.modal-body,dialog p,dialog li{font-size:12px;line-height:1.9;color:#c0ceca}dialog a{color:var(--lime)}dialog code{font-size:10px;overflow-wrap:anywhere}#toast{position:fixed;top:92px;left:50%;transform:translateX(-50%);background:var(--lime);color:#243425;padding:11px 20px;border-radius:6px;z-index:99;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90%;font-size:12px}#toast.show{opacity:1}body.preview aside,body.preview .project,body.preview .editor-only,body.preview #previewBtn,body.preview #shareBtn{display:none}body.preview #exitPreview{display:block}body.preview header{height:64px}body.preview .workspace{height:calc(100dvh - 64px)}body.viewer #exitPreview{display:none}.loading{opacity:.5}@media(min-width:1600px){aside{width:350px}.story-card{width:350px}.animation-panel{width:410px}#glacierCanvas{height:160px}}@media(max-width:1180px){.project #saved{display:none}.animation-panel{width:295px}.story-card{width:260px;padding:18px}.story-card h2{font-size:20px}.map-top{left:18px}.animation-controls{flex-wrap:wrap}.view-badge span{max-width:200px}aside{width:290px}.tab-panel{padding-left:18px;padding-right:18px}.animation-panel,.story-card{bottom:136px}}@media(max-width:970px){.project{display:none}.animation-panel{width:245px;right:16px}.story-card{width:220px;left:16px}.animation-controls{display:none}.micro{font-size:8px}aside{width:260px}.editor-head{padding:22px 16px}h1{font-size:16px}.timeline{gap:8px;left:16px;right:16px}#labBtn{padding:8px}.story-card p{font-size:11px}.stage-labels{font-size:8px;padding:0 10px}}@media(max-width:760px){header{height:66px;padding:0 12px}.brand{font-size:16px}.brand-icon{font-size:30px}.brand small{font-size:8px}.header-actions{gap:5px}.header-actions button{padding:7px;font-size:10px}#helpBtn{display:none}.workspace{height:auto;display:flex;flex-direction:column-reverse}aside{width:100%;height:490px;border-right:0;border-top:1px solid var(--border)}main{height:720px;flex:none;width:100%}.story-card{bottom:129px;width:calc(100% - 32px);max-width:none;padding:14px}.story-card h2{font-size:20px;margin:8px 0}.story-card p{margin:5px 0 10px}.card-nav{padding-top:5px}.animation-panel{top:110px;bottom:auto;right:16px;width:250px}.view-badge{display:none}.map-top{left:16px;right:16px;top:16px}.map-top>button{font-size:9px;padding:8px}.location-pill{padding:9px;font-size:10px}.location-pill small{font-size:8px}.map-tools{top:116px;left:16px;right:auto}.timeline{bottom:44px}.map-error{top:35%;width:90%;z-index:3}body.preview .workspace{height:calc(100dvh - 64px)}body.preview main{height:100%;min-height:650px}.cesium-viewer-bottom{max-width:55%}#status{max-width:40%;font-size:8px}.timeline>button{white-space:nowrap}#labBtn{font-size:9px}.editor-head{padding-bottom:6px}.preset-grid{grid-template-columns:repeat(4,1fr)}}
/* Cases and creation */
body.home{overflow:auto}body.home .workspace{display:none}body:not(.home) .case-home{display:none}body.home header .project,body.home .header-actions{display:none}.main-nav{display:flex;gap:8px;margin-left:25px}.main-nav button{background:none;border:0;border-radius:0;padding:27px 18px;font-size:14px;color:#99aaa5;border-bottom:2px solid transparent}.main-nav button.selected{color:var(--lime);border-bottom-color:var(--lime)}body.home header{justify-content:flex-start}body.home .main-nav{margin-left:auto}header{padding:0 22px;gap:12px}.brand{font-size:18px}.project{margin-left:auto}.project input{width:145px}.project #saved{display:none}.header-actions{gap:6px}.header-actions button{font-size:11px;padding:9px 11px}.case-home{max-width:1260px;margin:auto;padding:0 48px}.home-hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:400px;padding:54px 0 42px;border-bottom:1px solid #34423e;gap:30px}.hero-copy h1{font-size:39px;font-weight:500;letter-spacing:-1px;line-height:1.5;margin:18px 0}.hero-copy p{line-height:2;color:#93aaa2;font-size:13px}.hero-copy button{margin-top:16px;padding:12px 20px}.hero-copy button span{margin-left:24px}.hero-art{height:300px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 60%,#344c3c,#111c20 70%);border-radius:50% 50% 10px 10px}.hero-art svg{position:absolute;inset:0;width:100%;height:100%;opacity:.92}.contour{position:absolute;top:20px;left:40px;width:85%;height:95%;border:1px solid #6c856240;border-radius:42% 48% 30% 60%;transform:rotate(-20deg)}.c2{transform:rotate(-20deg) scale(.84)}.c3{transform:rotate(-20deg) scale(.68)}.c4{transform:rotate(-20deg) scale(.53)}.c5{transform:rotate(-20deg) scale(.4)}.art-coordinate,.art-caption{position:absolute;bottom:10px;font:9px 'Space Grotesk';letter-spacing:1px;color:#bfd0b1}.art-coordinate{left:30px}.art-caption{right:20px}.gallery-heading{display:flex;justify-content:space-between;align-items:center;padding:36px 0 14px}.gallery-heading h2{font-size:24px;font-weight:500;margin:9px 0}.gallery-heading p{font-size:12px;color:var(--muted)}.gallery-switch{padding:5px;border:1px solid #344b42;border-radius:9px;display:flex;gap:3px}.gallery-switch button{border:0;background:none;color:var(--muted);font-size:12px}.gallery-switch button.active{background:#30483b;color:var(--lime)}.account-line{font-size:11px;color:#8fa599;margin:0 0 20px}.signin{color:var(--lime);text-decoration:none;border-bottom:1px solid #667b56;padding-bottom:3px}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;min-height:260px}.empty-gallery{grid-column:1/-1;background:#172824;border:1px dashed #3c5647;border-radius:10px;padding:35px;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center}.empty-icon{font-size:34px;color:#b1cb98}.empty-gallery h3{font-size:18px;font-weight:500;margin:10px}.empty-gallery p{color:var(--muted);font-size:12px;line-height:1.8;max-width:520px;margin-bottom:22px}.case-card{background:#1b2c2b;border:1px solid #34473c;border-radius:10px;overflow:hidden}.card-cover{height:175px;background:linear-gradient(135deg,#50694b,#233d37);position:relative;overflow:hidden}.card-cover img{width:100%;height:100%;object-fit:cover;filter:saturate(.65)}.case-tag{position:absolute;top:12px;left:12px;background:#142820dd;color:#d3e5bd;font-size:10px;padding:5px 8px;border-radius:4px}.cover-credit{position:absolute;bottom:4px;right:7px;color:white;text-shadow:0 1px 3px black;font-size:8px}.case-content{padding:18px}.case-content h3{font-size:18px;font-weight:500;margin:0 0 8px}.case-content p{color:#a3b4a7;font-size:11px;min-height:18px}.case-meta{color:#708e7c;font-size:10px}.case-content .row{margin-top:18px}.case-content button{font-size:11px}.home-bottom{padding:30px 0;display:flex;justify-content:space-between;color:#6d8a78;font-size:10px;margin-top:25px}.shape-picker{display:flex;gap:5px}.shape-picker button{flex:1;padding:8px 4px;background:#203339;font-size:10px}.shape-picker button.active{border-color:var(--lime);color:var(--lime);background:#304535}.range-fields{display:flex;gap:10px}.range-fields .field{flex:1;min-width:0;margin:12px 0 3px}.region-meta{display:flex;align-items:center;justify-content:space-between;color:var(--lime);font:11px 'Space Grotesk'}.region-meta .text-button{font-size:9px}.load-region{padding:13px!important;margin-top:18px!important}.load-report{font-size:10px;line-height:1.7}.load-report p{padding:6px 8px;margin:7px 0;border-radius:4px;background:#21372f;color:#a9cc9c}.load-report p.error{background:#422f2c;color:#efb1a1}.load-report p.info{background:#22383e;color:#a7c3c8}body.preview #saveCloudBtn,body.preview .main-nav{display:none}body.preview #backToCases,body.preview #copyStory{font-size:10px}body.viewer #backToCases:not(.hidden),body.viewer #copyStory:not(.hidden){display:block}
@media(max-width:1200px){.main-nav{margin-left:0;gap:0}.main-nav button{padding:27px 16px}.project{display:none}.header-actions{margin-left:auto}.case-home{padding:0 30px}.hero-copy h1{font-size:32px}.home-hero{gap:20px}.gallery{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){header{flex-wrap:wrap;height:auto;min-height:66px;padding:10px 12px;gap:8px}.brand{font-size:15px}.main-nav{margin-left:auto}.main-nav button{padding:12px 15px;font-size:12px}.header-actions{width:100%;justify-content:flex-end;border-top:1px solid #35453f;padding-top:8px}.header-actions button{font-size:10px;padding:8px}.case-home{padding:0 20px}.home-hero{grid-template-columns:1fr;padding:32px 0 24px;gap:10px}.hero-copy h1{font-size:29px}.hero-copy p{font-size:12px}.hero-copy button{font-size:12px}.hero-art{height:220px;max-width:480px;width:100%;margin:auto}.gallery-heading{align-items:flex-start;gap:15px;flex-direction:column;padding-top:25px}.gallery-heading h2{font-size:21px}.gallery{grid-template-columns:1fr}.gallery-switch{margin-bottom:10px}.home-bottom{gap:20px;font-size:9px}.range-fields,.shape-picker{max-width:400px}body.preview .timeline{gap:6px}body.preview #copyStory{max-width:95px;white-space:normal}.hero-copy .quiet{padding-left:10px}.empty-gallery{padding:30px 18px}.account-line{line-height:1.8}}

.case-places{margin-top:36px;padding-top:12px;border-top:1px solid var(--border)}.case-places .section-title h2{font-size:18px}.case-places .preset-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.case-places .preset-grid button{padding:22px;font-size:15px}.case-places .preset-grid small{font-size:11px;margin-top:8px}@media(max-width:760px){.case-places .preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.case-places .preset-grid button{padding:16px}}

.size-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:14px}.size-picker button{font-size:10px;padding:9px 3px}.size-picker .active{border-color:var(--lime);color:var(--lime);background:#304535}.selected-place{color:var(--lime);font-size:11px;line-height:1.7}.setup-placeholder{display:none;position:absolute;inset:0;align-items:center;justify-content:center;flex-direction:column;padding:32px;text-align:center;background:#112126}.setup-placeholder h2{font-size:24px;font-weight:500}.setup-placeholder p{color:var(--muted);line-height:2;max-width:380px}.scope-symbol{font-size:100px;color:#88a777;margin:24px}.setup-placeholder #setupSummary{margin-top:20px;padding:13px 22px;border:1px solid #405344;border-radius:40px;color:var(--lime);font-size:12px}body.setup-mode .setup-placeholder{display:flex}body.setup-mode main>:not(.setup-placeholder){display:none}body.setup-mode .tabs [data-tab]:not([data-tab=scene]),body.setup-mode #previewBtn{pointer-events:none;opacity:.35}#regionCenter{display:none}@media(max-width:760px){.setup-placeholder{padding:20px}.setup-placeholder h2{font-size:18px}.scope-symbol{font-size:60px;margin:12px}}


.quick-start{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 0 20px}.quick-start article{padding:22px;background:#1b2d29;border:1px solid #35493f;border-radius:10px}.quick-start span{font:12px 'Space Grotesk';color:var(--lime)}.quick-start h3{font-size:16px;font-weight:500;margin:10px 0}.quick-start p{color:var(--muted);font-size:12px;line-height:1.8;margin:0}.workflow-coach{margin:16px 18px 0;padding:14px 16px;background:#25382f;border:1px solid #425d40;border-radius:9px}.workflow-coach>span{font-size:10px;letter-spacing:.5px;color:var(--lime)}.workflow-coach p{font-size:11px;line-height:1.8;color:#d1decb;margin:8px 0}.workflow-coach button{font-size:11px}.advanced-settings{margin:14px 0;border:1px solid var(--border);border-radius:7px;padding:10px 12px}.advanced-settings summary{cursor:pointer;font-size:11px;color:#b6c8c1}.advanced-settings .switch-row{border:0}.search button{font-size:11px;white-space:nowrap;padding:8px 12px;color:var(--lime)}#results>button{display:block;text-align:left;width:100%;margin:7px 0;font-size:11px;line-height:1.6}.case-content .row{flex-wrap:wrap}.delete-case{border-color:#664540!important;font-size:10px!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--lime);outline-offset:3px}.tabs button{font-size:11px}.tabs button:disabled{cursor:not-allowed}.editor-head{padding-bottom:14px}#goNotes{line-height:1.6}@media(max-width:760px){.quick-start{grid-template-columns:1fr;gap:10px}.quick-start article{padding:16px}.quick-start h3{margin:6px 0}.workflow-coach{margin:12px 15px 0}.case-content .row{gap:8px}}

.drawing-tools{display:flex;gap:8px}.drawing-tools button{flex:1;font-size:11px}.drawing-tools button.active{color:var(--lime);border-color:var(--lime);background:#304535}.drawing-actions{display:flex;gap:5px;margin-top:10px}.drawing-actions button{font-size:10px;padding:5px 8px}#drawingsList .item-title{margin-bottom:8px}#boxFields .range-fields{gap:8px}

/* Phone story viewing: the map and text occupy separate rows. */
.story-text-toggle{display:none}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.preview{overflow:hidden}
 body.preview header{height:56px;min-height:56px;flex-wrap:nowrap;padding:8px 12px}
 body.preview .header-actions{display:none}
 body.preview .workspace{height:calc(100dvh - 56px);min-height:0}
 body.preview main{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto 24px;background:var(--bg)}
 body.preview #map{position:relative;inset:auto;grid-row:1;grid-column:1;min-height:0;overflow:hidden}
 body.preview .story-card{position:relative;inset:auto;grid-row:2;grid-column:1;width:100%;margin:0;padding:8px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:2px 8px;border-radius:0;border-width:1px 0 0;box-shadow:none;backdrop-filter:none;background:var(--panel);z-index:1}
 body.preview .story-card .eyebrow{grid-row:1;grid-column:1;font-size:9px;justify-content:flex-start;gap:12px}
 body.preview .story-card h2{grid-row:2;grid-column:1;min-width:0;margin:0;font-size:15px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.preview .story-text-toggle{display:block;grid-row:1 / span 2;grid-column:2;align-self:center;min-height:44px;padding:6px 8px;font-size:11px;color:var(--lime)}
 body.preview .story-card p{display:none;margin:6px 0;grid-column:1 / -1;grid-row:3;max-height:min(22dvh,180px);overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;font-size:12px;line-height:1.8}
 body.preview .story-card.text-expanded p{display:block}
 body.preview .story-card.text-expanded h2{white-space:normal;max-height:3em;overflow:auto;overflow-wrap:anywhere}
 body.preview .card-nav{grid-row:1 / span 2;grid-column:3;border:0;padding:0;gap:2px;align-self:center}
 body.preview .card-nav button{width:44px;min-height:44px;padding:6px;font-size:22px}
 body.preview #sceneDots{display:none}
 body.preview .timeline{position:relative;inset:auto;grid-row:3;grid-column:1;height:auto;min-height:64px;margin:0;padding:8px 12px;display:grid;grid-template-columns:44px minmax(0,1fr) 92px;gap:6px 8px;border-radius:0;border-width:1px 0 0;box-shadow:none}
 body.preview .timeline .play{grid-row:1;grid-column:1;width:44px;height:44px}
 body.preview .timeline-body{grid-row:1;grid-column:2;min-width:0}
 body.preview .timeline-meta{gap:4px;flex-wrap:wrap;font-size:9px}
 body.preview .timeline select{grid-row:1;grid-column:3;justify-self:end;min-height:44px;max-width:100%}
 body.preview .timeline>button:not(.play){grid-row:2;min-height:36px;font-size:10px}
 body.preview #exitPreview,body.preview #backToCases{grid-column:1 / 3}
 body.preview #copyStory{grid-column:3;max-width:none;white-space:normal;padding:6px}
 body.preview #status{position:relative;inset:auto;grid-row:4;grid-column:1;max-width:none;margin:0;padding:4px 12px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.preview .map-top{top:10px;left:10px;right:10px;gap:8px}
 body.preview .location-pill{min-width:0;max-width:calc(100% - 85px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px}
 body.preview .location-pill small{overflow:hidden;text-overflow:ellipsis}
 body.preview .map-tools{top:85px;left:10px;right:auto;gap:2px}
 body.preview .map-tools button{height:32px;width:32px;padding:4px}
}
@media(max-width:1000px) and (max-height:500px){
 body.preview header{display:none}
 body.preview .workspace{height:100dvh}
 body.preview main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto 24px}
 body.preview #map{grid-column:1 / -1}
 body.preview .story-card{grid-row:2;grid-column:1;align-content:center}
 body.preview .timeline{grid-row:2;grid-column:2}
 body.preview #status{grid-row:3;grid-column:1 / -1}
 body.preview .map-tools{display:flex;top:60px}
}

.source-toggle{display:none}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 body.preview .source-toggle{display:block;min-width:36px;min-height:36px;padding:4px;font-size:18px}
 body.preview .location-pill{max-width:calc(100% - 130px)}
 body.preview:not(.show-map-sources) #map .cesium-viewer-bottom{display:none!important}
 body.preview.show-map-sources #map .cesium-viewer-bottom{display:block!important;bottom:8px!important;right:8px!important;left:auto!important;max-width:calc(100% - 16px);width:max-content;max-height:25dvh;overflow:auto;padding:12px;background:#142328f5;border:1px solid #61766c77;border-radius:8px;z-index:5}
 body.preview.show-map-sources .cesium-widget-credits{white-space:normal!important;line-height:1.8}
}

.story-preload{position:absolute;inset:0;z-index:12;background:#102027f0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;gap:12px}.story-preload h2{font-size:22px;margin:0}.story-preload p{color:var(--muted);font-size:12px;line-height:1.8;max-width:360px}.story-preload button{min-height:44px}#prepareAllCases{color:var(--lime)}#cacheProgress:empty{display:none}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){body.preview .story-preload{grid-row:1;grid-column:1;position:relative;inset:auto;min-height:0}.story-preload h2{font-size:18px}}
@media(max-width:1000px) and (max-height:500px){body.preview .story-preload{grid-column:1 / -1}}

/* Google requires visible attribution while its 3D tiles are shown. */
body.preview.google-active #map .cesium-viewer-bottom{display:block!important}
/* First story: one action at a time, with a permanent way forward. */
.guide-only{display:none}.home-entry-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.hero-copy .home-entry-actions button{margin:0;min-height:48px}.hero-copy .entry-note{font-size:12px;margin:10px 0 20px;color:#c4d3c8}.resume-options{color:var(--muted);font-size:12px;margin-top:16px}.resume-options summary{cursor:pointer;min-height:32px}.quick-start{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-start article{padding:20px}.quick-start h3{font-size:15px}.quick-start p{font-size:12px}.guide-intro-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.guide-intro-top .text-button{font-size:11px;white-space:nowrap}.guide-steps{display:flex;gap:8px;margin:16px 0 22px}.guide-steps button{flex:1;display:flex;align-items:center;gap:8px;min-height:48px;padding:10px;border-color:#42564b;background:#15262a;color:var(--muted);font-family:'Space Grotesk',sans-serif}.guide-steps span{font:11px 'Noto Sans TC',sans-serif}.guide-steps button.active{background:var(--lime);border-color:var(--lime);color:var(--ink);font-weight:700}.guide-steps button.done{color:var(--lime);border-color:#789c63}.guide-steps button:disabled{opacity:.55;cursor:not-allowed}.guide-intro{padding:18px 24px 0}.guide-intro h2{font-size:25px;font-weight:500;margin:0 0 10px;line-height:1.4}.guide-intro p{font-size:13px;line-height:1.8;color:#b7c9c3;margin:0 0 18px}.guide-intro h2:focus{outline:none}.guide-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.guide-preset-grid button{min-height:80px;text-align:left;padding:14px;font-size:13px}.guide-preset-grid small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.field-error{color:#ffb8a9;line-height:1.8}.field-error:empty{display:none}.landscape-presets{margin-top:24px}.landscape-presets h3{font-size:14px;font-weight:500}.landscape-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.landscape-options button{min-height:96px;text-align:left;padding:16px;font-size:15px}.landscape-options button[aria-pressed=true]{border-color:var(--lime);background:#2a4034;color:var(--lime)}.landscape-options small{display:block;font-size:12px;line-height:1.7;color:#b8c9c1;margin-top:6px}.guide-bar{background:#1c2f2a;border-top:1px solid #465f49;padding:14px 24px;flex-shrink:0}.guide-bar-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#adc2b4;margin-bottom:10px}.guide-bar-actions{display:flex;gap:10px}.guide-bar-actions button{min-height:46px;padding:10px 16px}.guide-bar-actions .primary{flex:1}.content-choice{gap:8px;padding:0 24px;margin-bottom:8px}.content-choice button{flex:1;min-height:44px}.content-choice button.active,.tool-choice button.active{background:#304535;border-color:var(--lime);color:var(--lime)}.tool-choice{display:flex;gap:6px;margin-top:12px}.tool-choice button{flex:1;padding:10px 5px;min-height:44px;font-size:12px}.contextual-hint{padding:12px 14px;border-radius:6px;background:#283d32;color:#d1e0c6;font-size:12px;line-height:1.8}.guide-finish{padding:0 24px 24px}.finish-symbol{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;font-size:24px;color:var(--lime);background:#304535;margin:12px 0 18px}.guide-finish h3{font-size:17px;font-weight:500}.guide-finish>p{font-size:13px;color:#b7c9c3;line-height:1.8}.finish-summary{background:#13272b;border:1px solid var(--border);padding:14px;border-radius:8px;overflow-wrap:anywhere}.finish-explore{border-top:1px solid var(--border);margin-top:24px;padding-top:10px}.finish-explore h3{font-size:13px}.guide-map-hint{position:absolute;top:112px;left:20px;max-width:calc(100% - 90px);background:#223b30ed;border:1px solid #627d52;border-radius:8px;padding:10px 12px;color:#d5e3c8;z-index:3;font-size:12px;line-height:1.7;gap:10px;align-items:center}.guide-map-hint button{background:transparent;border:0;font-size:20px;padding:0 6px;min-height:32px}
body.guided:not(.preview) .guide-only{display:block}body.guided:not(.preview) .guide-steps,body.guided:not(.preview) .content-choice,body.guided:not(.preview) .tool-choice,body.guided:not(.preview) .guide-map-hint{display:flex}body.guided:not(.preview) .guide-map-hint.hidden{display:none}body.guided:not(.preview) .tabs,body.guided:not(.preview) .workflow-coach,body.guided:not(.preview) .editor-head,body.guided:not(.preview) .aside-footer,body.guided:not(.preview) #saveCloudBtn,body.guided:not(.preview) #shareBtn,body.guided:not(.preview) #previewBtn{display:none}body.guided:not(.preview) #editor{width:400px;overflow:hidden}body.guided:not(.preview) #guideEditorBody{flex:1;min-height:0;overflow:auto}body.guided:not(.preview) #tab-scene .section-title:first-child{display:none}body.guided:not(.preview) .field{font-size:13px}body.guided:not(.preview) .field input:not([type=range]):not([type=color]),body.guided:not(.preview) .field textarea,body.guided:not(.preview) .field select{font-size:14px;min-height:44px}body.guided:not(.preview) .hint{font-size:12px;line-height:1.8}body.guided:not(.preview) .search input{font-size:15px;padding:14px}body.guided:not(.preview) .search button{min-width:64px;font-size:13px}body.guided:not(.preview) #selectedPlace{font-size:12px;line-height:1.7}body.guided:not(.preview) .shape-picker button,body.guided:not(.preview) .size-picker button{min-height:44px;font-size:13px}body.guided:not(.preview) #tab-notes>.section-title,body.guided:not(.preview) #drawingEditor>.divider,body.guided:not(.preview) .drawing-tools{display:none}body.guided:not(.preview) #finishStory{display:none}body.guided:not(.preview) .story-card,body.guided:not(.preview) .timeline{display:none}body.guided:not(.preview) #noteEditor>.section-title{margin-top:12px}body.guided:not(.preview) #noteEditor>.hint{display:none}body.guided:not(.preview) #guideRange .load-region{display:none}body.guided:not(.preview) #guideRange .note{display:none}body.guided:not(.preview) #guideRange #goNotes{display:none}
body.guided.guide-step-1:not(.preview) .workspace,body.guided.guide-step-2:not(.preview) .workspace,body.guided.guide-step-4:not(.preview) .workspace{justify-content:center;background:radial-gradient(ellipse at top,#263d31,#111c20 70%)}body.guided.guide-step-1:not(.preview) #editor,body.guided.guide-step-2:not(.preview) #editor,body.guided.guide-step-4:not(.preview) #editor{width:min(680px,100%);border:0;background:#18262bd9}body.guided.guide-step-1:not(.preview) main,body.guided.guide-step-2:not(.preview) main,body.guided.guide-step-4:not(.preview) main{display:none}
@media(max-width:1000px){.quick-start{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-steps button{gap:5px;padding:8px}}
@media(max-width:760px){.home-entry-actions{flex-direction:column}.home-entry-actions button{width:100%}.hero-copy .entry-note{font-size:12px}.quick-start{grid-template-columns:1fr 1fr;gap:10px}.quick-start article{padding:14px}.quick-start h3{font-size:14px}.quick-start p{font-size:12px}.hero-art{height:170px}.guide-intro{padding:16px 18px 0}.guide-intro h2{font-size:22px}.guide-intro p{font-size:14px}.guide-steps{gap:6px;margin:12px 0 18px}.guide-steps button{flex-direction:column;gap:3px;padding:8px 4px;min-height:56px}.guide-steps span{font-size:11px}.guide-preset-grid{gap:7px}.guide-preset-grid button{font-size:12px;padding:10px}.guide-bar{position:fixed;bottom:0;left:0;right:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));z-index:15;box-shadow:0 -6px 24px #0003}.guide-bar-meta{font-size:10px;margin-bottom:8px}.guide-bar-actions button{min-height:46px}.landscape-options button{padding:12px;font-size:14px}.landscape-options small{font-size:11px}.guide-finish{padding:0 18px 20px}.content-choice{padding:0 18px}.tool-choice button{font-size:12px}.guide-map-hint{top:78px;left:10px;max-width:calc(100% - 60px);font-size:11px;padding:8px 10px}body.guided:not(.preview) .workspace{height:auto;min-height:calc(100dvh - 66px);flex-direction:column;padding-bottom:108px}body.guided:not(.preview) #editor{width:100%;height:auto;min-height:0;border:0;overflow:visible}body.guided:not(.preview) #guideEditorBody{overflow:visible;flex:none}body.guided:not(.preview) main{order:-1;height:44dvh;min-height:250px;max-height:440px}body.guided:not(.preview) .header-actions{width:auto;margin-left:auto;border:0;padding:0}body.guided:not(.preview) #helpBtn{display:block}body.guided:not(.preview) .field input:not([type=range]):not([type=color]),body.guided:not(.preview) .field textarea,body.guided:not(.preview) .field select{font-size:16px}body.guided:not(.preview) .map-tools{top:112px;right:10px;left:auto;gap:2px}body.guided:not(.preview) .map-tools button{height:30px;padding:3px}body.guided:not(.preview) .location-pill{max-width:68%;overflow:hidden}body.guided:not(.preview) .placement{top:120px;max-width:95%;white-space:normal;font-size:12px;width:max-content}body.guided:not(.preview) .project{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}button{transition:none!important}}

/* All production text uses Traditional Chinese (Taiwan) fonts. */
html,body,body *{font-family:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif!important}

.region-load-dialog{width:min(440px,calc(100vw - 32px));padding:30px;overflow-wrap:anywhere}.region-load-dialog h2{font-size:22px;margin:12px 0}.region-load-dialog .eyebrow{font-size:11px}.region-load-dialog p{font-size:13px;line-height:1.8}.region-load-dialog progress{display:block;width:100%;height:12px;margin:22px 0 10px;border:0;border-radius:99px;overflow:hidden;appearance:none;background:#0f2025}.region-load-dialog progress::-webkit-progress-bar{background:#0f2025;border-radius:99px}.region-load-dialog progress::-webkit-progress-value{border-radius:99px;background:repeating-linear-gradient(110deg,#c1df99 0px,#c1df99 14px,#9cbe7c 14px,#9cbe7c 28px);background-size:64px 100%;animation:region-progress-flow 1.4s linear infinite}.region-load-dialog progress::-moz-progress-bar{border-radius:99px;background:#c1df99}.region-load-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}.region-load-stage{color:var(--lime)!important;min-height:24px}.region-load-dialog small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:18px}.region-load-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.region-load-actions button{min-height:44px;flex:1;font-size:12px}.loading-orbit{width:36px;height:36px;border:3px solid #3c5144;border-top-color:var(--lime);border-radius:50%;animation:region-spin 1.2s linear infinite;margin-bottom:18px}.region-load-dialog.load-failed .loading-orbit{animation:none;border-color:#b88372}.region-load-dialog.load-failed progress::-webkit-progress-value{animation:none;background:#b88372}.region-load-dialog.load-failed .region-load-stage{color:#efac9f!important}@keyframes region-spin{to{transform:rotate(360deg)}}@keyframes region-progress-flow{to{background-position:64px 0}}@media(prefers-reduced-motion:reduce){.loading-orbit,.region-load-dialog progress::-webkit-progress-value{animation:none}}@media(max-width:480px){.region-load-dialog{padding:24px}.region-load-dialog h2{font-size:20px}.region-load-meta{flex-direction:column;gap:4px}}

.preview-back{display:none;min-height:44px;white-space:nowrap}body.preview #previewBack:not(.hidden){display:inline-flex;align-items:center;gap:6px;color:var(--lime);border-color:#627d52;margin-left:auto}.autosave-status{font-size:10px;line-height:1.7;color:#b9cdb3;margin:9px 0 0}.autosave-status:empty{display:none}@media(max-width:760px){body.guided:not(.preview) .workspace{padding-bottom:140px}body.preview .brand{flex-shrink:1;min-width:0}body.preview #previewBack{padding:8px 10px;font-size:12px;flex-shrink:0}.autosave-status{font-size:10px}}
