/* Fine, theme-aware controls shared with the sidebar. */
html.workspace-entered[data-route]:not(.phone-only) #app #workspaceTopbar{gap:18px!important;padding-block:10px!important;box-shadow:0 6px 20px #0000000c!important;border-radius:0 0 12px 12px!important}
html.workspace-entered[data-route] #workspaceTopbar .topbar-actions{gap:3px!important}
html.workspace-entered[data-route] #workspaceTopbar .topbar-actions>.project-action-btn{background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;color:var(--muted)!important;border-radius:8px!important;padding:9px 11px!important;gap:8px!important;font-weight:500!important}
html.workspace-entered[data-route] #workspaceTopbar .topbar-actions>.project-action-btn:hover{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
html.workspace-entered[data-route] #workspaceTopbar .topbar-actions>.project-action-btn.active,html.workspace-entered[data-route] #workspaceTopbar .topbar-actions>.project-action-btn[aria-pressed="true"]{background:var(--accent-soft)!important;color:var(--text)!important}
html.workspace-entered[data-route] #workspaceTopbar .topbar-actions>#saveBtn{background:var(--accent-soft)!important;color:var(--text)!important;border-color:color-mix(in srgb,var(--accent) 25%,transparent)!important;margin-left:5px}
html.workspace-entered[data-route] #workspaceTopbar .sylva-fine-icon{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.35!important;stroke-linecap:round!important;stroke-linejoin:round!important;flex:none!important}
html.workspace-entered[data-route] #workspaceTopbar .sylva-fine-icon *{fill:none!important;stroke:currentColor!important;stroke-width:inherit!important}
html.workspace-entered[data-route] #workspaceTopbar #cloudBtn .cloud-dot{position:absolute!important;width:5px!important;height:5px!important;left:25px!important;top:10px!important;border:1px solid var(--surface-strong);border-radius:50%}
html.workspace-entered[data-route] #workspaceTopbar .project-action-btn:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
html.workspace-entered[data-route="home"]:not(.phone-only) #app #workspaceTopbar,
html.workspace-entered[data-route="home"] #app #workspaceTopEdge,
html.workspace-entered[data-route="home"] #app #rail #workspaceCommands,
#workspaceTopEdge[hidden],html.workspace-entered[data-route] #app #rail #workspaceCommands[hidden]{display:none!important;pointer-events:none!important}
.terrain-tools .terrain-block-detail[hidden],.terrain-tools .terrain-smooth-only[hidden]{display:none!important}
@media(pointer:coarse){html.workspace-entered[data-route] #workspaceTopbar .topbar-actions>.project-action-btn{min-height:44px!important;min-width:44px!important}}
