body { margin: 0; font-family: system-ui, sans-serif; font-size: 14px; height: 100vh; display: flex; flex-direction: column; }
header { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #ccc; flex-wrap: wrap; }
header .grow { flex: 1; }
legend { display: block; padding: 4px 12px; font-size: 12px; color: #444; }
legend .sv { color: #000; } legend .bl { color: #1565c0; } legend .rd { color: #c62828; } legend .gu { color: #f9a825; } legend .li { color: #8e24aa; }
main { display: flex; flex: 1; min-height: 0; }
aside { width: 280px; padding: 8px; border-right: 1px solid #ccc; overflow: auto; }
aside ul { list-style: none; padding: 0; margin: 0; }
aside li { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
#vy { flex: 1; overflow: auto; background: #777; position: relative; }
#sidor { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 0 12px; }
.sida { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); flex: none; }
.sida canvas { display: block; }
.sida svg { position: absolute; left: 0; top: 0; cursor: crosshair; touch-action: none; }
.sida .etikett { position: absolute; left: 0; top: -18px; color: #fff; font-size: 12px; }
button { padding: 4px 10px; }
button.primary { background: #1976d2; color: #fff; border: none; border-radius: 3px; padding: 5px 12px; }
#status { color: #222; background: #fff; padding: 2px 6px; border-radius: 3px; }
aside .liten { font-size: 12px; color: #555; }
aside ul.fynd li { display: block; padding: 4px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 12px; }
aside ul.fynd li:hover, aside ul.fynd li.aktiv { background: #f3e5f5; }
aside ul.fynd li strong { display: block; font-size: 13px; }
select optgroup { font-style: normal; }
.sida.med-fynd { box-shadow: 0 0 0 3px #8e24aa, 0 1px 4px rgba(0,0,0,.4); }
.fonsterknapp { display:block; margin:12px auto; }
