/* ---------- Kort ---------- */
.hll-wrap { position: relative; background: #1b1d1f; border-radius: 8px; overflow: hidden; max-width: 100%; color: #eee; }
.hll-wrap:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.hll-wrap:fullscreen .hll-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.hll-wrap:fullscreen .hll-stage img { max-height: 100%; width: auto; }

.hll-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: #2a2d30; }
.hll-toolbar button { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid #555; background: #3a3e42; color: #fff; border-radius: 6px; cursor: pointer; }
.hll-toolbar button:hover { background: #4a4f54; }
.hll-tool.active { background: #5a7d3a !important; border-color: #8fbf5a !important; }
.hll-color { width: 26px; height: 26px; padding: 0 !important; border-radius: 50% !important; border: 2px solid #777 !important; }
.hll-color.active { border-color: #fff !important; box-shadow: 0 0 0 2px #5a7d3a; }
.hll-sep { width: 1px; height: 24px; background: #555; margin: 0 4px; }
.hll-width { width: 90px; }
.hll-note { font-size: 14px; }
.hll-note a { color: #9fd36a; }
.hll-status { margin-left: auto; font-size: 13px; color: #ffb3b3; }

.hll-stage { position: relative; line-height: 0; min-height: 200px; }
.hll-stage img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.hll-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }

/* ---------- Kodelås ---------- */
.hll-gate { display: none; }
.hll-locked .hll-gate { display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.hll-locked .hll-toolbar, .hll-locked .hll-stage { display: none; }
.hll-form { text-align: center; max-width: 320px; width: 100%; }
.hll-form h3 { margin: 0 0 8px; color: #fff; }
.hll-form p { margin: 6px 0; }
.hll-form input { width: 100%; padding: 10px; font-size: 16px; border-radius: 6px; border: 1px solid #555; background: #fff; color: #000; box-sizing: border-box; margin: 8px 0; }
.hll-form button { width: 100%; padding: 10px; font-size: 16px; border: 0; border-radius: 6px; background: #5a7d3a; color: #fff; cursor: pointer; }
.hll-form button:hover { background: #6b9446; }
.hll-err { color: #ff9b9b; min-height: 1.2em; }
.hll-small a { color: #9fd36a; font-size: 13px; }

/* ---------- Menu / undermenu ---------- */
.hll-menu-wrap { display: flex; gap: 16px; align-items: flex-start; }
.hll-menu { flex: 0 0 240px; background: #2a2d30; border-radius: 8px; padding: 8px; color: #eee; }
.hll-content { flex: 1; min-width: 0; }
.hll-pick { padding: 24px; background: #2a2d30; color: #eee; border-radius: 8px; }
.hll-cat { margin: 2px 0; }
.hll-cat > summary { cursor: pointer; padding: 8px 10px; font-weight: 600; border-radius: 6px; list-style: none; }
.hll-cat > summary::before { content: '▸ '; }
.hll-cat[open] > summary::before { content: '▾ '; }
.hll-cat > summary:hover { background: #3a3e42; }
.hll-cat .hll-cat { margin-left: 12px; }
.hll-maps { list-style: none; margin: 0 0 4px 12px; padding: 0; }
.hll-maps a { display: block; padding: 6px 10px; color: #ddd; text-decoration: none; border-radius: 6px; }
.hll-maps a:hover { background: #3a3e42; color: #fff; }
.hll-maps .current a { background: #5a7d3a; color: #fff; }

@media (max-width: 700px) {
  .hll-menu-wrap { flex-direction: column; }
  .hll-menu { flex: none; width: 100%; box-sizing: border-box; }
  .hll-content { width: 100%; }
}
