/* Speglateikning (#spegill) í Mynsturstofunni. Byggir á style.css Vinnustofunnar og notar sömu breytur. */
.spegill-stage{display:grid;place-items:center;padding:22px}
.spegill-stage.nott{background:#3b3550}
.spegill-blad{position:relative;width:min(100%,calc(100dvh - 120px));min-width:min(100%,260px);aspect-ratio:1/1}
.spegill-blad canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:6px 9px 5px 8px;cursor:crosshair;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.spegill-leidir{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:var(--ink);stroke-opacity:.2;stroke-width:2;stroke-dasharray:3 13;stroke-linecap:round}
.spegill-leidir circle{fill:var(--ink);fill-opacity:.25;stroke:none}
.nott .spegill-leidir{stroke:var(--cream);stroke-opacity:.24}
.nott .spegill-leidir circle{fill:var(--cream);fill-opacity:.3}
.spegill-merki{display:flex;align-items:center;justify-content:space-between;gap:8px}
.spegill-merki b{font-family:Lif,system-ui,sans-serif;font-size:1.05rem;min-width:2ch;text-align:right}
.spegill-pensill{width:26px;height:26px;flex:none}
.spegill-pensill circle{stroke:var(--ink);stroke-width:1.5}
.spegill-main .button svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.spegill-main .button[aria-disabled=true]{opacity:.45;cursor:default}
.spegill-main .button[aria-disabled=true]:active{transform:none}
.spegill-hnappar{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.spegill-safn{margin-top:30px}
.spegill-safn h2{margin-bottom:10px}
.spegill-safn ul{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:14px}
.spegill-verk{display:flex;flex-direction:column;gap:7px;width:100%;padding:8px;border:var(--line);border-radius:11px 8px 12px 9px;background:var(--cream);text-align:left;font-family:Lif,system-ui,sans-serif;font-size:.92rem;line-height:1.2;box-shadow:2px 3px 0 var(--ink)}
.spegill-verk img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:5px;border:1px solid #2c283833}
.spegill-verk span{overflow-wrap:anywhere}
.spegill-verk[aria-current=true]{background:var(--pink)}
.spegill-verk:active{transform:translate(1px,2px);box-shadow:1px 1px 0 var(--ink)}
@media(max-width:700px){.spegill-stage{padding:10px}.spegill-main .controls .spegill-bladid{grid-column:1/-1}.spegill-hnappar{flex-direction:row;flex-wrap:wrap}.spegill-hnappar .button{flex:1 1 auto}.spegill-blad{width:100%;min-width:0}.spegill-safn ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.spegill-verk{padding:5px;font-size:.78rem}}
/* Þriðji flipinn (Speglateikning) á að komast fyrir á 390 px síma án þess að Vinnustofan hverfi út af. */
@media(max-width:440px){.tools{gap:2px;padding:9px 8px}.tools a{padding:7px 7px;font-size:.84rem}}
