@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#193632;--muted:#52685d;--paper:#f5f6f0;--line:#dfe4da;--green:#216c54;--lime:#d6eb9a;--dark:#122b2b}*{box-sizing:border-box}body{margin:0;background:var(--paper);font:14px 'DM Sans',Arial,sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;transition:background .18s,transform .18s}button:disabled{cursor:wait;opacity:.55}button:hover{filter:brightness(.97)}button:active{transform:translateY(1px)}header{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 28px;background:#fafbf6}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}.brandmark{font-size:40px;line-height:1;transform:rotate(-10deg);color:var(--green)}.brand strong{font-size:23px;letter-spacing:-1px}.brand strong span{font-size:13px;letter-spacing:0;color:var(--muted);font-weight:400;margin-left:9px}.header-right{display:flex;align-items:center;gap:25px}.version{font-size:10px;letter-spacing:1.5px;color:var(--muted)}.primary{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--green);color:#fff;border:0;border-radius:6px;padding:13px 18px;font-weight:600}.primary span{font-size:19px;font-weight:400}.wide{width:100%;margin:14px 0 8px}.text-button{background:none;border:none;padding:4px 0;color:var(--green);font-weight:600}.secondary{background:transparent;color:var(--ink);border:1px solid #b6c7b9;border-radius:6px;padding:12px}.small{font-size:12px;line-height:1.65;color:var(--muted);margin:8px 0 14px}.micro{font-size:11px;color:var(--muted);line-height:1.55}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700}.intro{padding:27px 26px 20px}.intro .eyebrow{color:#648570}.intro h1{font:600 27px/1.24 'Manrope',Arial,sans-serif;letter-spacing:-1.1px;margin:13px 0 9px}.intro p{font-size:12px;color:var(--muted);margin:0}main{display:grid;grid-template-columns:344px minmax(0,1fr);height:calc(100dvh - 76px);min-height:660px}aside{overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column}.tabs{display:flex;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 19px}.tabs button{flex:1;padding:16px 2px 13px;background:none;border:0;border-bottom:3px solid transparent;font-size:12px;color:var(--muted);white-space:nowrap}.tabs .active{color:var(--green);font-weight:700;border-bottom-color:var(--green)}.panel{padding:22px 26px}.panel[hidden]{display:none}.section-label{font-size:10px;font-weight:700;letter-spacing:1.1px;display:flex;align-items:center;justify-content:space-between}.section-label span{font-size:8px;font-weight:400;letter-spacing:0;color:var(--muted)}.fieldlabel{display:block;font-size:11px;font-weight:600;margin:15px 0 7px}.fieldlabel span{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea{width:100%;padding:10px 11px;color:var(--ink);background:#fffefa;border:1px solid #d9dfd4;border-radius:5px;font-size:12px}input:focus,select:focus,textarea:focus{border-color:var(--green)}.coord-label{font-size:11px;font-weight:600;margin:17px 0 8px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-cols label{font-size:10px;color:var(--muted)}.two-cols input{margin-top:5px}.example-card{display:flex;gap:10px;align-items:center;padding:13px 10px;background:#e9eee1;border-radius:6px;margin-top:18px}.example-symbol{font-size:28px;color:var(--green)}.example-card strong{font-size:11px}.example-card p{font-size:9px;color:var(--muted);margin:5px 0 0}.example-card button{margin-left:auto;border:0;background:none;color:var(--green);font-size:22px}.gap{margin-top:24px}.upload{display:block;text-align:center;border:1px dashed #adbda9;border-radius:6px;padding:14px 6px;font-size:12px;cursor:pointer}.note{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--line);padding-top:16px;margin-top:20px;font-size:11px;line-height:1.6;color:var(--muted)}.note strong{color:var(--ink);font-size:11px}.note p{margin:0}.dot{display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:#89ae75;margin-top:5px}.amber{background:#daa764}.side-footer{padding:20px 26px;font-size:9px;color:var(--muted);margin-top:auto;display:flex;gap:8px;align-items:center}.side-footer .dot{margin:0}h2{font:600 23px/1.3 'Manrope',Arial,sans-serif;letter-spacing:-.6px}.error{font-size:12px;color:#a63e28;line-height:1.6}#viewer{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 38%,#284442 0,#152d2e 58%,#102628 100%);color:#e6eee3}#canvasHost{width:100%;height:100%;position:absolute;inset:0;touch-action:none}canvas{display:block}.viewer-top{position:absolute;top:30px;left:34px;right:28px;display:flex;justify-content:space-between;align-items:start;pointer-events:none}.viewer-top .eyebrow{color:#a9bcaa;font-size:9px}.viewer-top h2{margin:8px 0 5px;font-size:25px;letter-spacing:-.7px}.viewer-top p{font-size:11px;color:#91a9a2;margin:0}.status-badge{display:flex;gap:7px;background:#263c35cc;border:1px solid #65756955;border-radius:30px;padding:7px 11px;font-size:10px;white-space:nowrap;color:#d9dec9}.status-badge .dot{margin-top:3px}.view-tools{position:absolute;top:160px;right:23px;display:flex;flex-direction:column;gap:4px}.view-tools button{width:37px;height:37px;border-radius:5px;background:#18302be0;color:#d5e2cc;border:1px solid #8ba89433;font-size:21px}.view-tools button:hover{background:#365445}.north-label{position:absolute;bottom:167px;right:33px;color:#aec4ac;font-size:11px;text-align:center}.north-label span{display:block;font-size:30px;font-weight:300}.viewer-bottom{position:absolute;bottom:0;left:0;width:100%;padding:18px 30px 14px;background:linear-gradient(transparent,#102628df)}.viewer-options{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:19px}.chip{border:1px solid #70867455;background:#19322fcc;color:#b3c6b6;border-radius:5px;padding:9px 12px;font-size:10px}.chip.active{background:#d6e6b6;color:#244639;border-color:#d6e6b6}.info-strip{display:flex;gap:20px;justify-content:space-between;color:#b1c4b3;font-size:9px;border-top:1px solid #839b7430;padding-top:13px}.info-strip span:last-child{color:#738f85}.attribution{font-size:8px;color:#6c887c;margin-top:8px}.model-note{position:absolute;bottom:158px;left:31px;color:#bed0b9;border-left:2px solid #c3c89a;font-size:10px;max-width:310px;padding-left:9px;line-height:1.5;pointer-events:none}.loader{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:15px;background:#152e2eea;z-index:5}.loader[hidden]{display:none}.loader strong{font-size:15px}.loader span:last-child{font-size:12px;color:#a6bcae}.spinner{width:30px;height:30px;border:2px solid #678475;border-top-color:#d6eb9a;border-radius:100%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.layer-item{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:6px;padding:13px 11px;margin:9px 0;cursor:pointer;background:#fffefa;width:100%;text-align:left;color:var(--ink)}.layer-item.selected{border-color:var(--green);background:#e9f0e1;box-shadow:inset 3px 0 var(--green)}.swatch{width:25px;height:25px;border-radius:6px;border:1px solid #0001}.layer-item strong{font-size:12px}.layer-item small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.layer-item .arrow{margin-left:auto;color:#6f8879}.editor-head{margin-top:25px;display:flex;justify-content:space-between;font-size:11px;font-weight:700}.delete{border:none;background:none;color:#976457;font-size:11px}.slider-row{margin-top:17px}.slider-row label{display:flex;justify-content:space-between;font-size:11px}.slider-row output{font-variant-numeric:tabular-nums;color:var(--green)}input[type=range]{width:100%;accent-color:var(--green);margin:9px 0 0}.check{display:flex;gap:10px;margin:20px 0;font-size:12px;line-height:1.6}.check input{align-self:start;accent-color:var(--green);margin-top:4px}.layer-callout{position:absolute;left:30px;top:135px;max-width:270px;padding:14px 18px;background:#102b2bd9;border:1px solid #8ba89444;border-radius:6px;font-size:12px}.layer-callout small{display:block;margin-top:7px;font-size:10px;color:#b0c6b9}.layer-callout button{border:0;color:#d7e1c7;background:none;float:right;margin-left:16px}dialog{border:none;border-radius:12px;max-width:760px;width:calc(100% - 32px);max-height:88dvh;padding:28px;background:#f6f7f0;color:var(--ink);box-shadow:0 30px 100px #001b1b55}dialog::backdrop{background:#001d20a6;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.dialog-head h2{margin:8px 0}.close{background:transparent;border:1px solid #bdcabb;border-radius:50%;width:32px;height:32px;font-size:23px;color:var(--ink)}.source-card{background:white;border:1px solid var(--line);border-radius:8px;padding:15px;margin-bottom:14px}.source-card h3{font-size:14px;margin:0 0 8px}.source-card p{font-size:12px;line-height:1.65;color:var(--muted)}.source-card img{width:100%;max-height:300px;object-fit:contain;background:white}.source-card a{color:var(--green)}#shareDialog{max-width:440px}#qr{background:white;width:240px;max-width:100%;padding:10px;margin:20px auto;text-align:center}#qr img{width:100%;height:auto}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);opacity:0;z-index:20;background:#edf3da;color:#193e2f;border:1px solid #acc195;border-radius:8px;padding:14px 22px;font-size:12px;max-width:90vw;box-shadow:0 5px 35px #0003;transition:.25s;pointer-events:none}#toast.show{transform:translateX(-50%);opacity:1}.color-row{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:11px}input[type=color]{width:35px;height:28px;padding:1px;border:1px solid var(--line);background:white;border-radius:3px}body.present #sidebar{display:none}body.present main{grid-template-columns:1fr}body.present #shareBtn{display:none}
@media(min-width:1600px){main{grid-template-columns:380px 1fr}.intro{padding:35px}.panel{padding:26px 35px}.intro h1{font-size:31px}}@media(max-width:1050px){.version{display:none}.info-strip span:last-child{display:none}.viewer-top{left:22px}.viewer-top h2{font-size:21px}.status-badge{font-size:9px}.viewer-top{flex-wrap:wrap;gap:12px}.model-note{max-width:230px}.viewer-options{gap:5px}.chip{padding:8px;font-size:9px}.viewer-bottom{padding:15px 20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.spinner{animation:none}}
/* Phone workspace: the model stays visible while tasks open in a bottom panel. */
.mobile-nav,.sheet-top,.gesture-hint{display:none}
button,input,select,textarea{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid #7b9b53;outline-offset:3px}
@media(max-width:760px){
 :root{--header-h:58px;--nav-h:calc(64px + env(safe-area-inset-bottom,0px));--sheet-h:clamp(250px,47dvh,440px)}
 html{height:100%;overscroll-behavior:none}body{height:100dvh;overflow:hidden;overscroll-behavior:none}
 header{height:calc(var(--header-h) + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));gap:10px;position:relative;z-index:10}
 .brand{gap:7px}.brandmark{font-size:31px}.brand strong{font-size:23px;letter-spacing:-.8px}.brand strong span,.version{display:none}
 .header-right{gap:14px}.header-right .text-button{font-size:12px;min-height:44px}.header-right .primary{min-height:44px;padding:10px 14px;gap:9px;font-size:13px;border-radius:8px}.header-right .share-text{font-size:13px;font-weight:600;max-width:39px;overflow:hidden;white-space:nowrap}
 main{height:calc(100dvh - var(--header-h) - env(safe-area-inset-top,0px) - var(--nav-h));min-height:0;display:flex;flex-direction:column;position:relative;overflow:hidden}
 #viewer,body.present #viewer{order:0;flex:1;min-height:0;height:auto;width:100%}
 #sidebar{order:1;flex:none;display:none;height:var(--sheet-h);border-radius:20px 20px 0 0;position:relative;z-index:7;background:var(--paper);overflow:hidden;box-shadow:0 -8px 30px #061e221a}
 body.sheet-open #sidebar{display:flex}body.sheet-expanded{--sheet-h:clamp(280px,68dvh,600px)}
 #sidebar .intro,#sidebar .tabs,.side-footer{display:none}.sheet-top{display:block;flex-shrink:0;padding:0 18px;border-bottom:1px solid var(--line);background:var(--paper)}
 #sheetHandle{display:flex;align-items:center;justify-content:center;width:100%;height:25px;border:0;background:none;touch-action:none;padding:0}
 #sheetHandle>span{display:block;width:36px;height:4px;background:#b9c6b7;border-radius:8px}
 .sheet-heading{display:flex;align-items:center;justify-content:space-between;min-height:43px;padding-bottom:5px}.sheet-heading strong{font:700 15px 'Manrope',sans-serif;letter-spacing:-.3px}
 #closeSheet{min-height:40px;padding:6px 0 6px 14px;border:0;background:none;color:var(--green);font-size:12px;display:flex;gap:12px;align-items:center}#closeSheet span{font-size:20px}
 .panel{padding:18px 20px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch;min-height:0;scroll-padding-block:18px}.panel[hidden]{display:none}
 .section-label{font-size:11px;letter-spacing:1px}.section-label span{font-size:10px;max-width:130px;text-align:right}.fieldlabel,.coord-label{font-size:13px;margin-top:17px}.fieldlabel span{font-size:11px}
 input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea{font-size:16px;padding:12px;min-height:48px;border-radius:8px;background:#fffefb}textarea{line-height:1.5}
 .two-cols{gap:14px}.two-cols label{font-size:12px}.two-cols input{min-width:0}.two-cols>*{min-width:0}
 .primary,.secondary{font-size:14px;min-height:48px;border-radius:8px}.wide{margin-top:17px;padding:12px 16px}
 .small{font-size:13px;line-height:1.6}.micro{font-size:12px;line-height:1.55}.note{font-size:12px;line-height:1.6}.note strong{font-size:12px}.upload{font-size:14px;min-height:52px;padding:16px}.text-button{min-height:44px}.example-card{padding:14px}.example-card strong{font-size:13px}.example-card p{font-size:11px;line-height:1.5}.example-card button{width:44px;height:44px;flex:none}.gap{margin-top:22px}.error{font-size:13px}
 .mobile-nav{position:fixed;z-index:15;bottom:0;left:0;right:0;height:var(--nav-h);padding:5px max(10px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(10px,env(safe-area-inset-left,0px));display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#fafbf6;border-top:1px solid var(--line)}
 .mobile-nav button{border:0;border-radius:9px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#78877b;font-size:11px;font-weight:500;min-height:52px;padding:4px}.mobile-nav button>span{font-size:25px;line-height:25px;font-weight:400}.mobile-nav button.active{background:#e9f0df;color:#21634c;font-weight:700}
 .viewer-top{top:20px;left:19px;right:16px;display:flex;flex-direction:column;gap:9px}.viewer-top .eyebrow{font-size:9px}.viewer-top h2{font-size:23px;line-height:1.25;margin:6px 0;max-width:calc(100vw - 75px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer-top p{font-size:11px;line-height:1.5;max-width:calc(100vw - 60px)}
 .status-badge{font-size:10px;padding:6px 9px}.status-badge .dot{margin-top:3px}.view-tools{top:156px;right:13px;gap:6px}.view-tools button{width:44px;height:44px;font-size:23px;border-radius:9px;background:#17332ee8;touch-action:manipulation}
 #topBtn,#sectionBtn,#fullBtn{display:none}.north-label{bottom:169px;right:27px;font-size:10px}.north-label span{font-size:25px}.model-note{left:18px;bottom:170px;max-width:calc(100% - 90px);font-size:10px;line-height:1.5}
 .viewer-bottom{padding:12px 0 10px;background:linear-gradient(transparent,#102628ed 28%)}.gesture-hint{display:block;font-size:10px;text-align:center;color:#a4bcae;margin:0 12px 11px}
 .viewer-options{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:8px;padding:0 16px 4px;margin:0 0 10px}.viewer-options::-webkit-scrollbar{display:none}.chip{font-size:12px;min-height:44px;flex-shrink:0;padding:10px 13px;border-radius:8px;white-space:nowrap}
 .info-strip{margin:0 17px;font-size:10px;padding-top:9px;gap:8px;justify-content:flex-start}.info-strip span:last-child,.info-strip #boundsInfo{display:none}.attribution{margin:7px 17px 0;font-size:8px;line-height:1.4;color:#99afa3;max-width:100%}
 .layer-item{min-height:65px;padding:12px;gap:12px;border-radius:9px}.layer-item strong{font-size:14px}.layer-item small{font-size:11px}.swatch{width:30px;height:30px}.editor-head{font-size:12px;margin-top:23px}.delete{min-width:60px;min-height:44px;font-size:13px}.slider-row label{font-size:13px}.slider-row{margin-top:18px}input[type=range]{height:40px;margin:5px 0;touch-action:pan-y}input[type=range]::-webkit-slider-thumb{height:26px;width:26px}input[type=color]{width:48px;height:44px}.color-row{font-size:13px;gap:14px}
 .check{font-size:14px;gap:12px}.check input{width:22px;height:22px;flex:none}.panel h2{font-size:23px}.layer-callout{top:155px;left:16px;max-width:calc(100% - 90px);padding:12px 14px;font-size:13px;pointer-events:auto}.layer-callout small{font-size:11px;line-height:1.45}.layer-callout button{min-width:36px;min-height:36px;font-size:20px;margin:-6px -8px 0 8px}
 body.sheet-open .viewer-top{top:12px;left:16px;gap:4px;right:13px;flex-direction:row;align-items:flex-start}body.sheet-open .viewer-top .eyebrow,body.sheet-open .viewer-top p{display:none}body.sheet-open .viewer-top h2{font-size:16px;max-width:calc(100vw - 140px);margin:0;line-height:1.4}body.sheet-open .status-badge{font-size:8px;padding:5px 7px;flex:none}
 body.sheet-open .view-tools{top:49px;right:10px;gap:4px}body.sheet-open .view-tools button{width:40px;height:40px;font-size:20px}body.sheet-open #zoomInBtn,body.sheet-open #zoomOutBtn{display:none}
 body.sheet-open .viewer-bottom{padding:0 0 7px;background:linear-gradient(transparent,#102628c9)}body.sheet-open .gesture-hint,body.sheet-open .viewer-options,body.sheet-open .info-strip{display:none}body.sheet-open .attribution{font-size:7px;margin-top:0}body.sheet-open .model-note{bottom:34px;left:14px;font-size:9px;max-width:calc(100% - 40px)}body.sheet-open .north-label{display:none}body.sheet-open .layer-callout{top:42px;left:14px;padding:5px 8px;max-width:calc(100% - 80px);font-size:11px;background:#102b2bc9}body.sheet-open .layer-callout small{display:none}body.sheet-open .layer-callout button{min-width:26px;min-height:26px;font-size:15px;margin:-5px -5px -5px 8px}
 .loader{padding:20px;text-align:center}.loader strong{font-size:14px}.loader span:last-child{font-size:12px}.spinner{flex:none}
 dialog{position:fixed;inset:auto 0 0;margin:0;max-width:100%;width:100%;max-height:90dvh;overflow:auto;overscroll-behavior:contain;border-radius:22px 22px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 80px #001b1b66}#shareDialog{max-width:100%}.dialog-head{margin-bottom:16px;align-items:center}.dialog-head h2{font-size:25px}.close{width:44px;height:44px;font-size:26px;flex:none}.source-card p{font-size:13px}.source-card h3{font-size:15px}.source-card img{max-height:260px}.source-card a{display:inline-block;padding:6px 0;font-size:13px}.source-card p{overflow-wrap:anywhere}
 #qr{width:220px}#shareUrl{font-size:13px!important}#toast{bottom:calc(var(--nav-h) + 12px);font-size:13px;padding:13px 17px;max-width:calc(100vw - 28px);width:max-content;line-height:1.5;z-index:30}
 body.present main{height:calc(100dvh - var(--header-h) - env(safe-area-inset-top,0px) - var(--nav-h))}
}
@media(max-width:360px){.header-right{gap:8px}.header-right .text-button{font-size:11px}.header-right .primary{padding:9px 11px}.brand strong{font-size:21px}.brandmark{font-size:28px}.viewer-top h2{font-size:20px}.gesture-hint{font-size:9px}.panel{padding:16px}.section-label span{font-size:9px}.two-cols{gap:10px}}
@media(max-width:760px) and (max-height:540px){:root{--header-h:48px;--nav-h:calc(54px + env(safe-area-inset-bottom,0px));--sheet-h:58dvh}.mobile-nav{grid-template-columns:repeat(4,1fr)}.mobile-nav button{min-height:44px;flex-direction:row;gap:8px}.mobile-nav button>span{font-size:20px}.viewer-top{top:10px}.viewer-top h2{font-size:17px}.viewer-top .eyebrow,.viewer-top p,.gesture-hint,.north-label{display:none}.viewer-top{flex-direction:row;justify-content:space-between}.view-tools{top:50px;flex-direction:row;right:10px}.view-tools button{width:40px;height:40px}.viewer-bottom .info-strip{display:none}.model-note{bottom:90px;font-size:9px}.chip{min-height:40px;padding:8px 12px;font-size:11px}.header-right .primary{min-height:40px}body.sheet-open main{display:grid;grid-template-columns:1fr 1fr}body.sheet-open #sidebar{height:100%;border-radius:16px 0 0 0}body.sheet-open .viewer-top{display:block}body.sheet-open .status-badge{display:none}body.sheet-open #viewer{height:100%}.sheet-heading strong{font-size:13px}#closeSheet{font-size:11px}}
@media(max-width:760px){
 #layerList{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding:0 0 7px;margin:0 -4px}
 .layer-item{flex:0 0 158px;min-width:0;min-height:62px;gap:8px;padding:10px;scroll-snap-align:start}
 .layer-item strong{font-size:12px;display:block;max-width:113px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer-item small{font-size:10px;white-space:nowrap}.layer-item .swatch{width:19px;height:26px;flex:none;border-radius:4px}.layer-item .arrow{display:none}
 #layerEditor .editor-head{margin-top:6px}.header-right .text-button{white-space:nowrap}
}
#nativeShareBtn[hidden]{display:none}
/* A native picker keeps all 28 state examples one tap away, including on phones. */
:root{--atlas-h:78px}
.atlas-bar{height:var(--atlas-h);display:flex;align-items:center;gap:24px;padding:12px 28px;border-bottom:1px solid var(--line);background:#eef2e6;position:relative;z-index:8}
.atlas-label{display:flex;flex-direction:column;gap:5px;flex-shrink:0}.atlas-label label{font-size:13px;font-weight:700}.atlas-label span{font-size:10px;color:var(--muted)}
#atlasBar select{width:min(480px,45vw);font-size:13px;height:46px;background:#fffef9;min-width:0;border-color:#b9c9ae;padding-right:25px;cursor:pointer}
.atlas-meta{margin-left:auto;font-size:11px;color:#58725d;text-align:right;line-height:1.5;max-width:220px}
main{height:calc(100dvh - 76px - var(--atlas-h));min-height:570px}
@media(max-width:1000px) and (min-width:761px){.atlas-bar{gap:18px;padding:12px 22px}.atlas-meta{display:none}#atlasBar select{width:auto;flex:1}}
@media(max-width:760px){
 :root{--atlas-h:88px;--workspace-h:calc(100dvh - var(--header-h) - env(safe-area-inset-top,0px) - var(--nav-h) - var(--atlas-h));--sheet-h:min(47dvh,calc(var(--workspace-h) - 170px))}
 .atlas-bar{height:var(--atlas-h);padding:8px 16px 10px;display:block;background:#f0f3e9}.atlas-label{flex-direction:row;justify-content:space-between;align-items:center;gap:8px;margin-bottom:5px}.atlas-label label{font-size:11px}.atlas-label span{font-size:9px}
 #atlasBar select{width:100%;height:47px;min-height:47px;font-size:16px;padding:9px 28px 9px 10px;border-radius:8px;text-overflow:ellipsis}.atlas-meta{display:none}
 main,body.present main{height:var(--workspace-h);min-height:0}
 body.sheet-expanded{--sheet-h:calc(var(--workspace-h) - 128px)}
 .viewer-top h2{font-size:21px}.viewer-top p{max-width:calc(100vw - 45px)}
}
@media(max-width:760px) and (max-height:540px){
 :root{--atlas-h:55px}.atlas-bar{display:flex;gap:15px;padding:5px 14px}.atlas-label{display:block;flex-shrink:0;margin:0}.atlas-label span{display:none}#atlasBar select{flex:1;font-size:14px;height:44px;min-height:44px}.viewer-top h2{font-size:17px}body.sheet-open #sidebar{height:100%}
}

[hidden]{display:none!important}.atlas-view-notice{color:#dfdfb3;background:#203c32;padding:7px 10px;border-radius:5px;font-size:11px;line-height:1.5;margin:0 0 10px}.source-card small{color:#48624f;line-height:1.6;display:block;margin-bottom:6px}.viewer-options{max-width:100%}.view-tools button:disabled{cursor:not-allowed}.chip:disabled{cursor:not-allowed;opacity:.6}
