.hotspot-overlay { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.hotspot { pointer-events:visiblePainted; cursor:pointer; fill:#3889ff44; stroke:#85b5ff; stroke-width:2; }
.hotspot>polygon,.hotspot>rect,.hotspot>ellipse,.hotspot>circle { vector-effect:non-scaling-stroke; }
.hotspot text { fill:white; stroke:#101112; stroke-width:2px; paint-order:stroke; font:16px Arial,sans-serif; pointer-events:none; }
.hotspot.artwork-only { fill:transparent; stroke:transparent; }
.hotspot.artwork-only text { visibility:hidden; }
.hotspot:hover,.hotspot:focus { stroke:white; fill:#3889ff55; outline:none; }
.hotspot:hover text,.hotspot:focus text { visibility:visible; }
.hotspot-editing .hotspot { fill:#3889ff33; stroke:#85b5ff; }
.hotspot-editing .hotspot text { visibility:visible; }
.hotspot-editing .hotspot.selected { fill:#3889ff66; stroke:white; stroke-width:3; }
.hotspot .hotspot-handle { fill:white; stroke:#3889ff; cursor:crosshair; pointer-events:all; }
body[data-view="world"] { overflow:hidden; padding-bottom:0; }
body[data-view="world"] .copyright-strip { display:none; }
#world-view { height:calc(100dvh - var(--app-header)); display:flex; flex-direction:column; background:var(--bg); }
#world-view[hidden] { display:none; }
.world-top { display:flex; align-items:center; gap:16px; padding:12px 16px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.world-top h1 { font:600 20px "Segoe UI",sans-serif; margin:0; }
#world-toolbar { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-left:auto; }
#world-toolbar span { font-size:12px; color:var(--muted); }
.world-workspace { flex:1; min-height:0; display:grid; grid-template-columns:220px minmax(0,1fr) 290px; }
.world-browser,.world-property-panel { overflow:auto; padding:14px; border-right:1px solid var(--line); }
.world-property-panel { border-left:1px solid var(--line); border-right:0; }
.world-property-panel h2 { margin:0; font:600 18px "Segoe UI",sans-serif; }
.world-stage { min-width:0; min-height:0; display:flex; flex-direction:column; }
#world-breadcrumb { display:flex; align-items:center; gap:12px; padding:10px; }
#world-canvas { flex:1; min-height:0; display:flex; flex-direction:column; }
.canvas-tools { display:flex; gap:5px; flex-wrap:wrap; padding:8px; }
.canvas-tools button.active { background:#173b64; border-color:var(--accent); }
.canvas-hint { font-size:12px; color:var(--muted); padding:0 10px; margin:5px 0 12px; }
.author-canvas-scroll { flex:1; min-height:0; overflow:auto; background:#080b10; touch-action:none; }
.author-canvas-art { position:relative; width:100%; min-width:0; user-select:none; }
.author-canvas-art img { display:block; width:100%; height:auto; pointer-events:none; }
.author-art-placeholder { aspect-ratio:1.5; background:linear-gradient(135deg,#16243a,#101821); color:var(--muted); padding:30px; }
.author-canvas-overlay { position:absolute; inset:0; }
.world-tree-entry { display:grid; width:100%; text-align:left; gap:4px; padding:10px 8px 10px calc(8px + var(--depth)*8px); border:1px solid transparent; background:none; color:var(--ink); border-radius:5px; }
.world-tree-entry small { color:var(--muted); font-size:11px; }
.world-tree-entry.active { background:#142b47; border-color:var(--accent); }
.world-create { display:flex; gap:5px; }
.world-error { white-space:pre-wrap; margin:0; max-height:120px; overflow:auto; background:#341c26; color:#ffd7dc; padding:0 16px; }
.world-error:not(:empty) { padding:10px 16px; }
#world-view select,#world-view input:not([type=checkbox]),#world-view textarea { width:100%; background:var(--paper); color:var(--ink); border:1px solid var(--line); padding:8px; border-radius:5px; }
.world-top select { max-width:320px; }
.author-empty { padding:40px; color:var(--muted); }
.publishing-layout { display:grid; grid-template-columns:280px minmax(0,800px); gap:24px; }
.issue-row { display:flex; align-items:center; gap:4px; margin-bottom:8px; }
.issue-row>button[data-issue] { display:grid; text-align:left; flex:1; }
.issue-row small { color:var(--muted); margin-top:5px; }
.issue-row .active { border-color:var(--accent); }
#issue-detail { min-width:0; }
#issue-error { white-space:pre-wrap; color:#ffb4bc; }
#world-test-stage .explore-canvas { margin:14px 0; }
#dialog:has(#world-test-stage) { width:min(1100px,95vw); max-width:none; }
@media(max-width:1100px) { .world-workspace { grid-template-columns:170px minmax(0,1fr) 240px; } }
@media(max-width:750px) {
 body[data-view="world"] { overflow:auto; }
 #world-view { height:auto; min-height:calc(100dvh - var(--app-header)); }
 .world-workspace { display:flex; flex-direction:column; }
 .world-browser { max-height:220px; }
 .world-stage { height:60vh; flex:none; }
 .world-property-panel { max-height:none; }
 .publishing-layout { grid-template-columns:1fr; }
 .publishing-layout>aside { max-height:250px; overflow:auto; }
}

.hotspot-editing .hotspot text { pointer-events:all; cursor:move; }
.hotspot-editing .hotspot .hotspot-hit-area { fill:transparent; stroke:none; pointer-events:all; }
