* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; font-family: system-ui, sans-serif; background: #10151c; color: #dde; }
#stage { position: absolute; inset: 0 0 0 260px; }
#stage.full { left: 0; }
#sidebar { position: absolute; left: 0; top: 0; bottom: 0; width: 260px; background: #171e28; padding: 12px; overflow-y: auto; z-index: 5; border-right: 1px solid #2c3644; }
#sidebar.collapsed { display: none; }
/* collapsible panel, same pattern as the gipfel web app: a ◀ button
   inside the panel, a ☰ button over the canvas while it is hidden */
#sidebar .collapse-btn { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  padding: 0; background: #223042; color: #dde; font-size: 12px; border: 1px solid #2c3644;
  border-radius: 5px; cursor: pointer; }
#sidebar .collapse-btn:hover { background: #2c3e55; }
#navToggle { position: absolute; top: 10px; left: 10px; z-index: 6; width: 36px; height: 36px;
  padding: 0; background: rgba(26, 26, 32, 0.85); color: #e8e8ea; border: 1px solid #2c2c34;
  border-radius: 6px; font-size: 16px; cursor: pointer; }
#navToggle:hover { background: rgba(59, 111, 212, 0.9); }
#sidebar h1 { font-size: 20px; letter-spacing: 1px; margin-bottom: 10px; }
#sidebar h1 span { color: #6c9; font-weight: 300; }
.pcard { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 6px; cursor: pointer; margin-bottom: 6px; border: 1px solid transparent; }
.pcard:hover { background: #223042; }
.pcard.sel { border-color: #6c9; background: #1d2b3a; }
.pcard img { width: 64px; height: 44px; object-fit: cover; border-radius: 3px; background: #000; }
.pcard .meta { font-size: 11px; line-height: 1.35; color: #9ab; overflow: hidden; }
.pcard .meta b { color: #dde; font-weight: 600; }
#controls { margin-top: 14px; border-top: 1px solid #2c3644; padding-top: 10px; font-size: 13px; }
#controls label { display: block; margin: 6px 0; cursor: pointer; }
#controls input[type=range] { width: 130px; vertical-align: middle; }
#hint { margin-top: 12px; font-size: 11px; color: #678; line-height: 1.5; }
#tip { position: fixed; display: none; background: rgba(10, 18, 28, 0.92);
  border: 1px solid #3a5a4a; color: #dfe; padding: 5px 9px; font-size: 12px;
  border-radius: 6px; pointer-events: none; z-index: 20; white-space: nowrap; }
#tip b { color: #eaffea; }
#visRow { margin: 10px 0 2px; font-size: 12px; color: #9cb; }
#visRow input[type=range] { width: 118px; vertical-align: middle; accent-color: #66cc99; }
#visRow b { color: #cfe; font-weight: 600; }
#loading { position: absolute; bottom: 14px; left: 280px; background: #171e28cc; padding: 6px 12px; border-radius: 6px; font-size: 12px; z-index: 4; }
#copyright { position: fixed; right: 12px; bottom: 10px; z-index: 4; font-size: 11px;
  color: rgba(220, 230, 235, 0.45); background: rgba(13, 20, 32, 0.55); padding: 3px 9px;
  border-radius: 6px; user-select: none; }
#copyright a { color: inherit; text-decoration: none; }
#copyright:hover { color: rgba(220, 230, 235, 0.85); }
#loading.hidden { display: none; }
.empty { font-size: 13px; color: #89a; line-height: 1.6; padding: 8px 0; }
