/* Living Cosmos: shared approved interactions on the original orbital surface. */
@media(min-width:951px){
.faithful-target[data-desktop-view='star-map'] #worlds .art>.planet-side-research,
.faithful-target[data-desktop-view='star-map'] #worlds .art>.planet-side-trait{position:absolute;top:6%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:clamp(24px,calc(var(--world-size)*.13),42px);height:clamp(42px,calc(var(--world-size)*.16),58px);min-width:0;max-width:none;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none;float:none;z-index:5;color:#f2dfba;font:bold clamp(9px,calc(var(--world-size)*.04),12px)/1.2 Georgia,serif;text-shadow:0 1px 3px #080b18}
.faithful-target[data-desktop-view='star-map'] #worlds .art>.planet-side-research{left:auto;right:0}
.faithful-target[data-desktop-view='star-map'] #worlds .art>.planet-side-trait{left:0;right:auto}
.faithful-target[data-desktop-view='star-map'] #worlds .planet-side-trait>img{position:static;display:block;width:clamp(20px,calc(var(--world-size)*.1),32px);height:clamp(20px,calc(var(--world-size)*.1),32px);object-fit:contain;border:0;border-radius:50%}
.faithful-target[data-desktop-view='star-map'] #worlds .planet-side-trait>b{position:static;width:auto;display:flex;align-items:center;gap:2px;font:inherit;color:inherit;background:none;padding:0;margin:0}
.faithful-target[data-desktop-view='star-map'] #worlds .planet-side-trait>b .sw-symbol{width:12px;height:12px}
.faithful-target[data-desktop-view='star-map'] #worlds .planet-side-trait .trait-number{display:none}
.faithful-target[data-desktop-view='star-map'] #worlds .planet-side-trait .trait-tooltip{right:auto;left:0;text-shadow:none}
.faithful-target[data-desktop-view='star-map'] #worlds .planet-side-research>.research-deck-mark{flex:0 0 auto;width:22px;height:30px}
.faithful-target[data-desktop-view='star-map'] #worlds .planet-side-research>.research-deck-mark::after{width:15px;height:16px;background-size:auto 11.4px}

}
@media(min-width:951px){
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-shell{--cosmos-dock-height:clamp(108px,12dvh,116px);grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr) var(--cosmos-dock-height)}
 body.desktop-play.faithful-target[data-desktop-view=star-map] .desktop-board{grid-column:1;grid-row:1;padding:10px 18px 6px 94px;background:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-inspector{grid-column:2;grid-row:1/span 2;min-height:0;max-height:calc(100% - 24px);padding-top:20px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-inspector :is(.inspector-tabs,.faithful-world-actions,.faithful-inspector-more){display:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-workshop{display:flex;position:absolute;left:10px;top:max(10px,calc((100% - var(--cosmos-dock-height) - 256px)/2));z-index:8;width:76px;height:min(256px,calc(100% - var(--cosmos-dock-height) - 24px));box-sizing:border-box;flex-direction:column;gap:4px;padding:9px 6px;background:linear-gradient(145deg,#342c3cf5,#191b2df5);border:1px solid #b6955d;border-radius:12px;overflow:auto}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-workshop button{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 0 44px;gap:2px;width:62px;min-height:44px;margin:0;padding:4px 2px;border:1px solid #9d7b4c;border-radius:7px;background:linear-gradient(#3f3548,#242333);color:#f2dfbe;font:11px/1.2 Georgia,serif}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-workshop .workshop-icon{width:27px;height:27px;font-size:24px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-workshop .sw-symbol{width:25px;height:25px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-workshop .workshop-network{transform:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds{gap:12px 10px;padding:0 0 8px;min-height:100%;align-content:space-evenly}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .art>.planet-side-trait{left:-30px;right:auto}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .art>.planet-side-research{right:-30px;left:auto}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .caption{min-height:0;max-width:100%;padding-inline:2px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .world-meta{height:auto;min-height:28px;max-width:100%;flex-wrap:wrap;gap:5px;padding:3px 6px;margin-top:5px;background:#211d2dc9;border-color:#947345}
 body.desktop-play.faithful-target[data-desktop-view=star-map] .mini-piece.vacant{display:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] .mini-colonies .mini-piece.occupied>.sw-symbol{display:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] .mini-colonies .painted-piece{display:block;width:24px;height:24px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] .mini-colonies .faithful-mini-owner{display:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] .mini-piece.occupied:after{display:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] .world-meta .mini-piece .sw-symbol{width:22px;height:22px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-dock{grid-column:1;grid-row:2;box-sizing:border-box;width:min(720px,calc(100% - 32px));height:100%;max-height:100%;min-height:0;margin:0 auto;padding:4px 10px 4px;border-radius:30px 30px 16px 16px;align-self:end}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-actions,body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar{height:100%;min-height:0}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-items:stretch}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar :is(button,#supply){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(40px,1fr) 56px;justify-content:stretch;justify-items:center;align-items:center;width:100%;height:100%;gap:0;padding:0;min-height:0}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar .painted-action{width:clamp(40px,calc(var(--cosmos-dock-height) - 72px),52px);height:clamp(40px,calc(var(--cosmos-dock-height) - 72px),52px);max-height:100%}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar .faithful-action-paper{display:flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:56px;min-height:0;margin:0;padding:3px;gap:1px;border-radius:10px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar .painted-action-label{width:100%;font:600 clamp(12px,.95vw,16px)/1.15 Georgia,serif;text-align:center}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar .action-cost{font-size:12px;line-height:1.15;min-height:0;background:none;border:0;padding:0;gap:2px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar .action-cost .sw-symbol{width:13px;height:13px}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar .action-event-note{font-size:10px;line-height:1.15;min-height:0}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #faithful-context{overflow:hidden}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #faithful-context-body :is(section,details){min-height:0}
}
@media(min-width:951px) and (max-width:1250px){body.desktop-play.faithful-target[data-desktop-view=star-map] #desktop-shell{grid-template-columns:minmax(0,1fr) 255px}}

@media(min-width:951px){
 /* Flatten the same legacy 3D hover that previously left compositing fragments in Tabletop. */
 body.desktop-play.faithful-target[data-desktop-view=star-map] .desktop-board{perspective:none}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .world{transform-style:flat;isolation:isolate}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .world:hover:not(:disabled){transform:translateY(-3px)}
 /* Only the terrain layer is clipped: vehicles, notes and their tooltips remain accessible. */
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .art::before{clip-path:inset(0)}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .deposit-tag{position:static;display:table;top:auto;bottom:auto;left:auto;right:auto;transform:none;margin:3px auto 0;width:max-content;max-width:90%;box-sizing:border-box;white-space:nowrap;padding:2px 5px;font-size:10px;line-height:1.2;z-index:4;background:#211d2de6;border:1px solid #947345;border-radius:4px;color:#f2dfba}
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .deposit-tag .sw-symbol{width:12px;height:12px}
 /* Nimeora's atlas cell contains a thin remnant of the neighbouring Aurenthe. */
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .world[data-planet-art=nimeora] .art::before{clip-path:inset(0 0 0 3%)}
 /* Vehicles already have their own lane on the planet. */
 body.desktop-play.faithful-target[data-desktop-view=star-map] #worlds .world-meta>.mini-vehicles{display:none}
}

@media(min-width:951px){body.desktop-play.faithful-target[data-desktop-view=star-map] #actionbar .faithful-action-paper>*{flex:none}}
