#sharedProjectsDialog{width:min(850px,calc(100vw - 28px));max-height:90vh;overflow:auto;border:1px solid #d9e2cd;border-radius:21px;background:#fffdf5;padding:25px;color:var(--ink)}#sharedProjectsDialog::backdrop{background:#233c3370}#sharedProjectsDialog h3{font-size:15px;margin:24px 0 10px}#sharedProjectsDialog button{font-size:12px;margin:4px 6px 4px 0}.shared-note{font-size:12px;line-height:1.65;color:#66775e}#sharedNotice{font-size:12px;line-height:1.65;margin:12px 0}.shared-error{color:#a23e29}#sharedProjectStatus{font-size:10px;color:#63745b;max-width:190px;line-height:1.5}#sharedLinks input{display:block;width:100%;padding:10px;border:1px solid #ccd8bd;border-radius:8px;margin:10px 0}.shared-link-row,.shared-asset-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e2e8d8;font-size:11px}.shared-asset-row img{display:block;width:100%;max-height:350px;object-fit:contain}.shared-asset-row a{color:var(--forest)}#sharedProjectList button{display:block;width:100%;text-align:left}#sharedAssets input[type=file]{max-width:100%;margin:12px 0;font-size:12px}#sharedSaveButton[hidden],#sharedEnableEdit[hidden]{display:none}@media(max-width:600px){#sharedProjectsDialog{padding:18px}#sharedProjectStatus{width:100%;max-width:none}#sharedSaveButton,#sharedEnableEdit{font-size:10px}}
.shared-import{display:block;font-size:12px;margin-top:20px}.shared-import input{display:block;max-width:100%;margin-top:9px}
body.shared-viewer #viewerCamera>summary{display:flex;align-items:center;gap:6px;min-height:32px;padding:6px 10px;border:1px solid #d5dfc9;border-radius:9px;background:#fffdf7;color:var(--ink);font-size:11px;line-height:1.2;white-space:nowrap;box-shadow:0 2px 0 #e3e9db;cursor:pointer;list-style:none}
body.shared-viewer #viewerCamera>summary::-webkit-details-marker{display:none}
body.shared-viewer #viewerCamera>summary::after{content:'▾';font-size:10px;color:#65775f}
body.shared-viewer #viewerCamera[open]>summary{background:#e9f0e1}
body.shared-viewer #viewerCamera>div{z-index:30;min-width:160px;max-width:calc(100vw - 28px)}
body.shared-viewer #viewerCamera>div button{text-align:left;width:100%}
body.shared-viewer .birdcontrols [data-orbit=eye],body.shared-viewer .birdcontrols [data-orbit=close]{display:none!important}
@media(max-width:700px){body.shared-viewer #viewerCamera>summary{font-size:10px;padding:6px 8px}}
/* A viewing capability gets a dedicated presentation surface. Owner and edit
   links retain the normal studio, including their initial read-only state. */
body.shared-viewer{overflow:auto}
body.shared-viewer .palette,
body.shared-viewer .inspector,
body.shared-viewer .canvasbar,
body.shared-viewer .quicktools,
body.shared-viewer .objectpopover,
body.shared-viewer .pathactions,
body.shared-viewer .layersdrawer,
body.shared-viewer .studio-tools-drawer,
body.shared-viewer .studio-drawer,
body.shared-viewer .site-popup,
body.shared-viewer .object-context,
body.shared-viewer .path-connect-popup,
body.shared-viewer .path-experience-bar,
body.shared-viewer .modehint,
body.shared-viewer .topactions>*:not(#languageToggle),
body.shared-viewer #selectTool,
body.shared-viewer #undoBtn,
body.shared-viewer #redoBtn,
body.shared-viewer .maptools hr,
body.shared-viewer #scene [data-vertex],
body.shared-viewer #scene [data-midpoint],
body.shared-viewer #scene [data-house-resize],
body.shared-viewer #scene [data-studio-resize],
body.shared-viewer #scene [data-block-guide]{display:none!important}
body.shared-viewer .topbar{display:grid;grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:18px;min-height:76px;height:auto;padding:12px 22px;transform:none!important;opacity:1!important;pointer-events:auto!important}
body.shared-viewer .brand{min-width:0;white-space:nowrap}
body.shared-viewer .projectname{display:flex;min-width:0;max-width:550px;width:100%}
body.shared-viewer #projectTitle{color:var(--ink);-webkit-text-fill-color:var(--ink);opacity:1;text-overflow:ellipsis}
body.shared-viewer .topbar .topactions{display:flex;flex-wrap:nowrap;flex-basis:auto;justify-content:flex-end;min-width:0;width:auto}
body.shared-viewer #languageToggle{min-height:32px;padding:7px 10px;font-size:11px}
body.shared-viewer .studio{position:relative!important;inset:auto!important;display:block!important;grid-template-columns:none;width:100%;height:auto!important;min-height:0!important;overflow:visible!important;z-index:auto}
body.shared-viewer .workspace{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column;width:100%;height:auto!important;min-height:0;border:0}
body.shared-viewer .mapframe{position:relative!important;inset:auto!important;width:100%;flex:none;min-height:380px!important;height:calc(100dvh - 175px)!important}
body.shared-viewer #scene{width:100%;height:100%}
body.shared-viewer .maptools{top:18px!important;left:14px;z-index:5}
#viewerMeasure[hidden]{display:none!important}
body.shared-viewer #viewerMeasure{display:block;border-top:1px solid var(--line);margin-top:5px;padding-top:8px}
body.shared-viewer #viewerFrame{z-index:10}
body.shared-viewer #viewerFrame>summary{height:32px;padding:6px 10px;border-radius:9px;line-height:18px;background:#fffdf7;white-space:nowrap}
body.shared-viewer #viewerFrame>div{left:auto;right:0;min-width:160px}
body.shared-viewer #viewerFrame>div button{width:100%;text-align:left}
body.shared-viewer.viewer-fullscreen{overflow:hidden}
body.shared-viewer.viewer-fullscreen .topbar,
body.shared-viewer.viewer-fullscreen .bottomstrip{display:none!important}
body.shared-viewer.viewer-fullscreen .mapframe{height:calc(100dvh - var(--viewer-toolbar-height,64px))!important;min-height:0!important}
body.shared-viewer.viewer-fullscreen #sharedViewerBar .viewer-note{display:none}
body.shared-viewer.viewer-fullscreen #sharedViewerBar{justify-content:center}
body.shared-viewer.viewer-fullscreen #sharedViewerBar .viewer-actions{justify-content:center}
body.shared-viewer .canvasbadge{top:20px!important;left:70px;max-width:calc(100% - 90px)}
body.shared-viewer .scale{left:auto!important;right:20px;bottom:20px!important}
body.shared-viewer .bottomstrip{position:relative!important;inset:auto!important;display:flex;width:100%;max-width:none!important;min-height:55px;padding:12px 18px!important;justify-content:center;gap:10px 20px;background:#fffdf4;border:0;border-top:1px solid #dce3d3;border-radius:0;box-shadow:none;pointer-events:auto}
body.shared-viewer .bottomstrip .total{display:flex}
body.shared-viewer #sharedViewerBar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;min-height:56px;padding:10px 22px;background:#f4f7ed;border-bottom:1px solid #dce4d0;color:var(--ink)}
body.shared-viewer #sharedViewerBar .viewer-note{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:1 1 145px;min-width:0;font-size:11px;line-height:1.5;color:#617359}
body.shared-viewer #sharedViewerBar .viewer-note strong{font-weight:600;color:var(--forest)}
body.shared-viewer #sharedViewerBar .viewer-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;flex:1 1 auto;min-width:0;max-width:100%}
body.shared-viewer #sharedViewerBar button,
body.shared-viewer #sharedViewerBar select{height:32px;min-height:32px;max-width:100%;border:1px solid #d5dfc9;border-radius:9px;padding:6px 10px;font:inherit;font-size:11px;line-height:1.2;background:#fffdf7;color:var(--ink);white-space:nowrap;box-shadow:0 2px 0 #e3e9db}
body.shared-viewer #sharedViewerBar button:hover{background:#e9f0e1}
body.shared-viewer #sharedViewerBar button.active,
body.shared-viewer #sharedViewerBar button[aria-pressed=true]{background:#dfead4;border-color:#afc39a;color:#31563a}
body.shared-viewer #sharedViewerBar .viewer-bird{font-weight:600}
body.shared-viewer #sharedViewerBar select{min-width:0;max-width:190px;white-space:normal}
body.shared-viewer #sharedViewerBar label{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.4;white-space:nowrap}
body.shared-viewer #sharedViewerBar input[type=checkbox]{accent-color:var(--forest);margin:0}
body.shared-viewer #sharedViewerBar input[type=range]{width:92px;max-width:25vw;accent-color:var(--forest)}
#sharedViewerBar[hidden],body.shared-viewer #sharedViewerBar [hidden]{display:none!important}
@media(max-width:700px){
body.shared-viewer .topbar{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:12px 14px}
body.shared-viewer .brand{grid-column:1;grid-row:1;font-size:23px}
body.shared-viewer .brand small{font-size:8px;letter-spacing:1.2px}
body.shared-viewer .projectname{grid-column:1/-1;grid-row:2;max-width:none;min-width:0}
body.shared-viewer .topbar .topactions{grid-column:2;grid-row:1;flex-basis:auto;justify-content:flex-end}
body.shared-viewer #projectTitle{font-size:14px}
body.shared-viewer #sharedViewerBar{padding:10px 14px;gap:8px}
body.shared-viewer #sharedViewerBar .viewer-note{flex-basis:100%}
body.shared-viewer #sharedViewerBar .viewer-actions{justify-content:flex-start;flex-basis:100%;gap:5px}
body.shared-viewer #sharedViewerBar button,body.shared-viewer #sharedViewerBar select{font-size:10px;padding:6px 8px}
body.shared-viewer .mapframe{height:calc(100dvh - 220px)!important}
body.shared-viewer .bottomstrip{justify-content:flex-start;gap:8px 12px;font-size:9px;padding:12px 14px!important}
}
.topbar .projectname{min-width:150px}.topbar .topactions{flex:0 1 auto;min-width:0;justify-content:flex-end;align-items:center;gap:6px}.topbar .topactions button{font-size:12px;line-height:1.2;padding:7px 10px;min-height:32px;border-radius:10px;white-space:nowrap;box-shadow:0 2px 0 #e5e9dc}.topbar .topactions button.primary{box-shadow:0 2px 0 #bd7539}#sharedProjectStatus{max-width:100%;font-size:10px}#sharedProjectStatus[hidden],body.shared-project #saveStatus{display:none}@media(max-width:600px){.topbar .topactions{flex-basis:100%;justify-content:flex-start}.topbar .topactions button{flex:0 1 auto;font-size:11px;padding:7px 9px}}
.topbar{gap:14px}.topbar .projectname{min-width:120px}.topbar .topactions{flex-wrap:nowrap}.topbar #sharedSaveButton,.topbar #sharedEnableEdit{width:150px;flex:0 0 150px;text-align:center;font-size:11px}@media(max-width:1050px){.topbar{height:auto;min-height:91px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.topbar .topactions{flex-wrap:wrap;flex-basis:100%;justify-content:flex-end}.topbar .projectname{display:flex;max-width:none}}@media(max-width:600px){.topbar .topactions{justify-content:flex-start}.topbar .projectname{max-width:calc(100% - 210px);min-width:0}.topbar #sharedSaveButton,.topbar #sharedEnableEdit{width:150px;flex:0 0 150px}}
