body.workspace-theme { --personal-wallpaper:initial; --default-wallpaper:url('../assets/mission-city.png'); }
/* A dedicated layer avoids negative pseudo-elements hidden behind page panels. */
body.workspace-theme #pageBackdrop { position:fixed; inset:0; z-index:0; pointer-events:none; background-color:#10161f; background-image:linear-gradient(rgb(10 13 18 / var(--wallpaper-shade,.58)),rgb(10 13 18 / var(--wallpaper-shade,.58))),var(--personal-wallpaper,var(--default-wallpaper)); background-size:cover; background-position:center; }
body.workspace-theme:not(.has-personal-wallpaper) #pageBackdrop { filter:var(--theme-scene-filter,none); }
body.workspace-theme #publicView { z-index:1; background:transparent !important; }
body.workspace-theme #publicView::before,body.workspace-theme .dashboard-root::before { display:none !important; }
body.workspace-theme.site-design-preview #pageBackdrop { background-image:linear-gradient(#080d1588,#080d1599),var(--default-wallpaper); filter:var(--theme-scene-filter,none); }
body.workspace-theme .dashboard-root { background:transparent; }
body.workspace-theme .dashboard-root::before { background-image:linear-gradient(rgb(10 13 18 / var(--wallpaper-shade)),rgb(10 13 18 / var(--wallpaper-shade))),var(--personal-wallpaper,var(--default-wallpaper)); }
body.workspace-theme:not(.has-personal-wallpaper) .dashboard-root::before, .theme-wallpaper-preview { filter:var(--theme-scene-filter,none); }
body.workspace-theme .mission-intro { background-image:linear-gradient(90deg,#14191ff5,#14191fbb),var(--personal-wallpaper,var(--default-wallpaper)); }
body.workspace-theme #publicView { position:relative; isolation:isolate; background:transparent !important; padding:32px 24px 48px; min-height:100dvh; box-sizing:border-box; }
body.workspace-theme #publicView::before { content:''; position:fixed; inset:0; z-index:-1; background-image:linear-gradient(#080d1599,#080d15a8),var(--default-wallpaper); background-size:cover; background-position:center; filter:var(--theme-scene-filter,none); pointer-events:none; }
body.workspace-theme #publicView .space-backdrop { display:none; }
body.workspace-theme .cosmic-viewport { display:flex; flex-direction:column; align-items:center; gap:26px; width:100%; max-width:1180px; margin:auto; }
body.workspace-theme .public-brand { display:flex; flex-direction:column; align-items:center; gap:6px; width:auto; padding:0; }
body.workspace-theme .public-brand img { object-fit:contain; width:84px; height:84px; }
body.workspace-theme .public-brand h1 { font:600 14px/1.5 'Inter',sans-serif; letter-spacing:4px; margin:0; text-align:center; }
body.workspace-theme .legacy-public-intro { display:none; }
body.workspace-theme[data-public-layout=legacy] .public-brand { display:none; }
body.workspace-theme[data-public-layout=legacy] .cosmic-viewport { display:grid; grid-template-columns:minmax(0,1fr) 360px; align-items:start; }
body.workspace-theme[data-public-layout=legacy] .legacy-public-intro { display:block; grid-column:1; padding:50px 36px; border:1px solid #ffffff25; border-left:3px solid var(--theme-accent); background:#11171de8; border-radius:18px; }
body.workspace-theme .legacy-public-intro h2 { font-size:clamp(30px,4vw,54px); line-height:1.15; }
body.workspace-theme .legacy-public-intro p:first-child { color:var(--theme-accent); font-size:11px; letter-spacing:2px; }
body.workspace-theme[data-public-layout=legacy] .cosmic-login-card { grid-column:2; width:100%; }
body.workspace-theme[data-public-layout=legacy] .cosmic-table-section,body.workspace-theme[data-public-layout=legacy] .release-links { grid-column:1/-1; }
@media(max-width:900px){body.workspace-theme[data-public-layout=legacy] .cosmic-viewport{display:flex;}body.workspace-theme[data-public-layout=legacy] .legacy-public-intro{padding:26px 22px;}body.workspace-theme[data-public-layout=legacy] .cosmic-login-card{width:100%;}}
body.workspace-theme #publicView .cosmic-login-card { width:min(100%,470px); max-width:470px; margin:0; padding:26px 32px 22px; background:#11171dee; border:1px solid var(--theme-accent); border-radius:16px; box-shadow:0 20px 70px #0006; }
body.workspace-theme .cosmic-emblem-wrapper { display:none; }
body.workspace-theme .cosmic-card-header { text-align:center; margin-bottom:20px; }
body.workspace-theme .cosmic-card-header h3 { font-size:21px; letter-spacing:2px; color:#f4f0e8; margin:0 0 6px; }
body.workspace-theme .cosmic-card-header p { margin:0; color:var(--theme-accent); letter-spacing:4px; font-size:11px; }
body.workspace-theme .cosmic-form { display:flex; flex-direction:column; gap:15px; }
body.workspace-theme .cosmic-input-wrapper { width:100%; margin:0; }
body.workspace-theme .cosmic-input-wrapper label { font-size:13px; margin:0 0 6px; }
body.workspace-theme #publicView .cosmic-form input { height:44px; font-size:16px; background:#0b1016; border:1px solid #536071; border-radius:7px; }
body.workspace-theme .cosmic-pw-container { width:100%; }
body.workspace-theme #publicView .btn-liquid-launch { min-height:44px; margin:0; border-radius:7px; font-size:13px; }
body.workspace-theme #publicView #authStatus { font-size:12px !important; margin:0; color:#bfc6d0; text-align:center; }
body.workspace-theme .cosmic-card-footer { padding-top:14px; margin-top:16px; text-align:center; }
body.workspace-theme .cosmic-card-footer a { color:var(--theme-accent); font-size:12px; }
body.workspace-theme .cosmic-table-section { width:100%; max-width:1180px; margin:0; }
body.workspace-theme .cosmic-table-card { padding:22px 26px; background:#11171def; border-color:var(--theme-accent); border-radius:14px; }
body.workspace-theme .cosmic-table-header { padding-bottom:14px; margin-bottom:12px; }
body.workspace-theme .cosmic-table-header h3 { font-size:23px; letter-spacing:.5px; margin:0; }
body.workspace-theme #publicTableContainer { max-height:50dvh !important; }
body.workspace-theme #publicTableContainer table { min-width:0; width:100%; table-layout:fixed; }
body.workspace-theme #publicTableContainer :is(th,td) { padding:14px 12px; white-space:normal !important; overflow-wrap:anywhere; font-size:13px; vertical-align:middle; }
body.workspace-theme #publicTableContainer th:nth-child(2) { width:44%; }
body.workspace-theme #publicTableContainer .sancion-pill { white-space:normal; background:transparent; border:0; padding:0; font-size:13px; text-transform:none; }
body.workspace-theme #publicEmptyMsg { padding:22px !important; font-family:'Inter',sans-serif !important; color:#c8ced7 !important; }
body.workspace-theme .cosmic-table-card > .table-scroll-hint { display:none; }
.palette-shortcut { display:flex; align-items:center; gap:7px; border:1px solid var(--theme-accent) !important; color:var(--theme-accent) !important; background:var(--theme-soft) !important; }
.palette-section h3 { color:var(--theme-accent); font-size:22px; }
.palette-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.palette-options button { text-align:left; min-height:44px; }
.release-links { display:flex; justify-content:center; gap:12px; }
.release-dialog { width:min(860px,94vw); max-height:88dvh; overflow:auto; background:#171e27; color:#edf0f5; border:1px solid var(--theme-accent); border-radius:16px; padding:24px; }
.release-dialog::backdrop { background:#000a; }
.release-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.release-card { padding:18px 0; border-bottom:1px solid #ffffff20; }
.release-card h3 { margin:5px 0; }
.release-card small { color:var(--theme-accent); }
.release-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.release-form { display:grid; gap:12px; margin:18px 0; }
.release-form label { display:grid; gap:6px; }
.release-form textarea { min-height:180px; }
.release-preview { padding:18px; border:1px solid #ffffff25; border-radius:12px; background:#111820; }
.release-dialog button { margin:4px; min-height:40px; }
.site-preview-bar { position:fixed; bottom:16px; left:16px; right:16px; z-index:9999; padding:12px; border:1px solid var(--theme-accent); border-radius:12px; background:#111820f5; color:#fff; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; box-shadow:0 12px 50px #0008; }
.site-design-preview #appContent { display:none !important; }
.site-design-preview #publicView { display:block !important; padding-bottom:140px !important; }
.site-design-preview #publicView .cosmic-form,.site-design-preview .cosmic-card-footer { pointer-events:none; opacity:.85; }
@media(max-width:768px){body.workspace-theme #publicView{padding:20px 14px 30px;}body.workspace-theme .cosmic-viewport{display:flex;gap:20px;}body.workspace-theme .cosmic-viewport > *{grid-column:auto;}body.workspace-theme #publicView .cosmic-login-card{padding:22px 20px;width:100%;}body.workspace-theme .public-brand img{width:65px;height:65px;}body.workspace-theme .public-brand h1{font-size:12px;letter-spacing:2px;}body.workspace-theme .cosmic-table-card{padding:18px 12px;}body.workspace-theme .cosmic-table-header h3{font-size:19px;white-space:normal;}body.workspace-theme #publicTableContainer :is(td,th){font-size:11px;padding:11px 7px;}body.workspace-theme .top-bar.glass-panel{grid-template-columns:40px minmax(0,1fr) 38px;}body.workspace-theme .collaboration-controls{flex-wrap:wrap;}body.workspace-theme .density-toggle{display:none;}.palette-options{grid-template-columns:repeat(2,minmax(0,1fr));}.release-dialog{padding:18px;}}
