/* NTNUI Ålesund lager. Y2K-skrivebord: grå vinduer, blå tittellinjer og pikselikoner. */

/* W95FA: systemfonten fra Windows 95 (MS Sans Serif) med norske bokstaver.
   Laget av Alina Sava, SIL Open Font License (fonts/W95FA-OFL.txt). Fet skrift lages av nettleseren. */
@font-face {
  font-family: "W95FA";
  src: url("../fonts/w95fa.woff2") format("woff2");
  font-display: swap;
}

/* Archivo Black (Omnibus-Type, SIL OFL) til store titler der Arial Black mangler, f.eks. iPhone og Android */
@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/archivo-black.woff2") format("woff2");
  font-display: swap;
}

/* Pikselikoner (16 x 16), laget fra tegnekart */
:root {
  --ikon-mappe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='5' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='3' width='4' height='1' fill='%23ffe866'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='4' width='6' height='1' fill='%23ffe866'/%3E%3Crect x='8' y='4' width='7' height='1' fill='%23000'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='5' width='13' height='1' fill='%23fff'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23ffe866'/%3E%3Crect x='15' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='6' width='12' height='1' fill='%23ffe866'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='15' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='7' width='12' height='1' fill='%23ffe866'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='15' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='8' width='12' height='1' fill='%23ffe866'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='15' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='9' width='12' height='1' fill='%23ffe866'/%3E%3Crect x='14' y='9' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='15' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='10' width='12' height='1' fill='%23ffe866'/%3E%3Crect x='14' y='10' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='15' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='11' width='12' height='1' fill='%23ffe866'/%3E%3Crect x='14' y='11' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='15' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='12' width='14' height='1' fill='%23c8a000'/%3E%3Crect x='15' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='13' width='14' height='1' fill='%23000'/%3E%3C/svg%3E");
  --ikon-dokument: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='8' height='1' fill='%23000'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='1' width='6' height='1' fill='%23fff'/%3E%3Crect x='9' y='1' width='2' height='1' fill='%23000'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='2' width='6' height='1' fill='%23fff'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%23fff'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='3' width='6' height='1' fill='%23fff'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='10' y='3' width='2' height='1' fill='%23fff'/%3E%3Crect x='12' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='4' width='6' height='1' fill='%23fff'/%3E%3Crect x='9' y='4' width='5' height='1' fill='%23000'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='5' width='6' height='1' fill='%23000080'/%3E%3Crect x='10' y='5' width='2' height='1' fill='%23fff'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='6' width='9' height='1' fill='%23fff'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='7' width='7' height='1' fill='%23000080'/%3E%3Crect x='11' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='12' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='8' width='9' height='1' fill='%23fff'/%3E%3Crect x='12' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='9' width='5' height='1' fill='%23000080'/%3E%3Crect x='9' y='9' width='3' height='1' fill='%23fff'/%3E%3Crect x='12' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='10' width='9' height='1' fill='%23fff'/%3E%3Crect x='12' y='10' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='11' width='7' height='1' fill='%23000080'/%3E%3Crect x='11' y='11' width='1' height='1' fill='%23fff'/%3E%3Crect x='12' y='11' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='12' width='9' height='1' fill='%23fff'/%3E%3Crect x='12' y='12' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='13' width='10' height='1' fill='%23808080'/%3E%3Crect x='13' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='14' width='12' height='1' fill='%23000'/%3E%3C/svg%3E");
  --ikon-pc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='14' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='2' width='11' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='2' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%23000'/%3E%3Crect x='12' y='3' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='4' width='7' height='1' fill='%231084d0'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%23000080'/%3E%3Crect x='12' y='4' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%231084d0'/%3E%3Crect x='5' y='5' width='2' height='1' fill='%23007d32'/%3E%3Crect x='7' y='5' width='4' height='1' fill='%231084d0'/%3E%3Crect x='11' y='5' width='1' height='1' fill='%23000080'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='6' width='4' height='1' fill='%231084d0'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%23fafa00'/%3E%3Crect x='9' y='6' width='2' height='1' fill='%231084d0'/%3E%3Crect x='11' y='6' width='1' height='1' fill='%23000080'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='7' width='7' height='1' fill='%231084d0'/%3E%3Crect x='11' y='7' width='1' height='1' fill='%23000080'/%3E%3Crect x='12' y='7' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='8' width='8' height='1' fill='%23000080'/%3E%3Crect x='12' y='8' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='9' width='11' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='10' width='12' height='1' fill='%23808080'/%3E%3Crect x='14' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='11' width='14' height='1' fill='%23000'/%3E%3Crect x='3' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='12' width='8' height='1' fill='%23c0c0c0'/%3E%3Crect x='12' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='13' width='2' height='1' fill='%23000'/%3E%3Crect x='3' y='13' width='9' height='1' fill='%23c0c0c0'/%3E%3Crect x='12' y='13' width='1' height='1' fill='%23808080'/%3E%3Crect x='13' y='13' width='2' height='1' fill='%23000'/%3E%3Crect x='1' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='14' width='3' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='14' width='1' height='1' fill='%23007d32'/%3E%3Crect x='6' y='14' width='8' height='1' fill='%23c0c0c0'/%3E%3Crect x='14' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='15' width='14' height='1' fill='%23000'/%3E%3C/svg%3E");
  --ikon-boks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='4' y='1' width='8' height='1' fill='%23000'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='2' width='8' height='1' fill='%23ffe866'/%3E%3Crect x='12' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='3' width='10' height='1' fill='%23ffe866'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='4' width='14' height='1' fill='%23000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='5' width='6' height='1' fill='%23ffe866'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='9' y='5' width='4' height='1' fill='%23ffe866'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='6' width='6' height='1' fill='%23ffe866'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='9' y='6' width='4' height='1' fill='%23ffe866'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='7' width='6' height='1' fill='%23ffe866'/%3E%3Crect x='8' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='9' y='7' width='4' height='1' fill='%23ffe866'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='8' width='11' height='1' fill='%23fff'/%3E%3Crect x='13' y='8' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='9' width='2' height='1' fill='%23000'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='9' width='3' height='1' fill='%23000'/%3E%3Crect x='9' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='10' y='9' width='2' height='1' fill='%23000'/%3E%3Crect x='12' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='10' width='11' height='1' fill='%23fff'/%3E%3Crect x='13' y='10' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='11' width='11' height='1' fill='%23ffe866'/%3E%3Crect x='13' y='11' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='12' width='11' height='1' fill='%23ffe866'/%3E%3Crect x='13' y='12' width='1' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='13' width='12' height='1' fill='%23c8a000'/%3E%3Crect x='14' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='14' width='14' height='1' fill='%23000'/%3E%3C/svg%3E");
  --ikon-flagg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='1' width='4' height='1' fill='%23007d32'/%3E%3Crect x='8' y='1' width='4' height='1' fill='%23fafa00'/%3E%3Crect x='2' y='2' width='5' height='1' fill='%23007d32'/%3E%3Crect x='8' y='2' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='2' y='3' width='5' height='1' fill='%23007d32'/%3E%3Crect x='8' y='3' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='2' y='4' width='5' height='1' fill='%23007d32'/%3E%3Crect x='8' y='4' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='1' y='5' width='5' height='1' fill='%23007d32'/%3E%3Crect x='7' y='5' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='1' y='7' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='7' y='7' width='5' height='1' fill='%23007d32'/%3E%3Crect x='1' y='8' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='7' y='8' width='5' height='1' fill='%23007d32'/%3E%3Crect x='0' y='9' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='6' y='9' width='5' height='1' fill='%23007d32'/%3E%3Crect x='0' y='10' width='5' height='1' fill='%23fafa00'/%3E%3Crect x='6' y='10' width='5' height='1' fill='%23007d32'/%3E%3Crect x='1' y='11' width='3' height='1' fill='%23fafa00'/%3E%3Crect x='7' y='11' width='4' height='1' fill='%23007d32'/%3E%3C/svg%3E");
}

:root {
  --skrivebord: #3a6ea5;
  --vindu: #c0c0c0;
  --lys: #ffffff;
  --halvlys: #dfdfdf;
  --skygge: #808080;
  --mork: #0a0a0a;
  --marine: #000080;
  --tittel-fra: #000080;
  --tittel-til: #1084d0;
  --felt: #ffffff;
  --tekst: #000000;
  --dempet: #404040;
  --ntnui-gronn: #007d32;
  --ntnui-gul: #fafa00;
  --feil: #c00000;

  /* Navn som etikettsida bruker i sin egen CSS */
  --fosfor: var(--marine);
  --svak: var(--skygge);
  --ramme: 1px solid var(--skygge);
  --panel: var(--vindu);

  --f-tittel: "Arial Black", "Archivo Black", Arial, sans-serif;
  --f-terminal: "W95FA", Tahoma, sans-serif;
  --f-tekst: "W95FA", Tahoma, sans-serif;

  /* 3D-kanter som i Windows 95 */
  --opphoyd: inset -1px -1px var(--mork), inset 1px 1px var(--lys), inset -2px -2px var(--skygge), inset 2px 2px var(--halvlys);
  --nedsenket: inset -1px -1px var(--lys), inset 1px 1px var(--skygge), inset -2px -2px var(--halvlys), inset 2px 2px var(--mork);
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { background: var(--skrivebord); }

body {
  margin: 0;
  min-height: 100vh;
  padding: 18px 0 64px;
  background: var(--skrivebord);
  color: var(--tekst);
  font-family: var(--f-tekst);
  font-size: 16px;
  -webkit-font-smoothing: none;
  font-synthesis: none;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

a { color: var(--marine); }
::selection { background: var(--marine); color: #fff; }
:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }

/* ---------- Hovedvinduet ---------- */

.skjerm {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3px 3px 18px;
  background: var(--vindu);
  box-shadow: var(--opphoyd);
}

.skjerm > :not(.topplinje):not(#topp) { margin-left: 14px; margin-right: 14px; }

@media (max-width: 1112px) {
  .skjerm { margin: 0 var(--gutter); }
}

.topplinje {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "merke tittel" "meny meny";
  margin-bottom: 18px;
}

.merke {
  grid-area: merke;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 24px;
  background: var(--ikon-flagg) 4px center / 16px no-repeat, var(--tittel-fra);
  color: #fff;
  font: 700 16px var(--f-tekst);
  text-decoration: none;
  line-height: 1;
}

.merke small { font-weight: 400; font-size: 16px; opacity: 0.85; }

.topplinje .terminal {
  grid-area: tittel;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(90deg, var(--tittel-fra), var(--tittel-til));
  color: #fff;
  font: 700 16px var(--f-tekst);
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

/* Lukkeknapp i tittellinja, bare pynt */
.topplinje .terminal::after {
  content: "\00d7";
  flex: none;
  width: 18px;
  height: 16px;
  display: grid;
  place-items: center;
  background: var(--vindu);
  color: #000;
  font: 700 16px/1 var(--f-tekst);
  box-shadow: var(--opphoyd);
}

.meny {
  grid-area: meny;
  display: flex;
  flex-wrap: wrap;
  padding: 2px 4px;
  border-bottom: 1px solid var(--skygge);
  box-shadow: 0 1px var(--lys);
}

.meny a {
  padding: 4px 9px;
  color: #000;
  font: 400 16px var(--f-tekst);
  text-decoration: none;
}

.meny a:hover { background: var(--marine); color: #fff; }
.meny a[aria-current="page"] { box-shadow: var(--nedsenket); }

/* ---------- Typografi ---------- */

.terminal {
  font-family: var(--f-terminal);
  font-size: 16px;
  line-height: 1.5;
  color: var(--dempet);
}

.terminal.dempet { color: var(--dempet); }

.etikett { font: 700 16px var(--f-tekst); color: #000; }

.tittel {
  margin: 0;
  font-family: var(--f-tittel);
  font-weight: 900;
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--marine);
  overflow-wrap: anywhere;
}

.tittel.mellom { font-size: clamp(1.9rem, 6vw, 3.4rem); }

.hilsen {
  margin: 0 0 6px;
  font: 700 22px var(--f-tekst);
  color: #000;
}

/* Etset linje under overskriften */
.gul-strek {
  height: 0;
  margin: 0 0 14px;
  border: 0;
  border-top: 1px solid var(--skygge);
  border-bottom: 1px solid var(--lys);
}

/* ---------- Paneler som små vinduer ---------- */

.panel {
  position: relative;
  padding: 14px;
  background: var(--vindu);
  box-shadow: var(--opphoyd);
}

.panel-hode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  margin: -11px -11px 14px;
  padding: 3px 3px 3px 26px;
  background: var(--ikon-mappe) 5px center / 16px no-repeat, linear-gradient(90deg, var(--tittel-fra), var(--tittel-til));
}

.panel-hode .etikett,
.panel-hode .terminal { color: #fff; font: 700 16px var(--f-tekst); }

.panel-hode .knapp { width: auto; min-height: 0; padding: 2px 10px; font-size: 16px; }

/* ---------- Søk og filtre ---------- */

.sok {
  display: flex;
  align-items: center;
  padding: 0 0 0 28px;
  background: var(--ikon-dokument) 6px center / 16px no-repeat, var(--felt);
  box-shadow: var(--nedsenket);
}

.sok span { display: none; }

.sok input {
  flex: 1;
  min-width: 0;
  padding: 10px 8px 10px 0;
  border: 0;
  background: transparent;
  color: #000;
  font: 400 16px var(--f-tekst);
  outline: none;
}

.sok input::placeholder { color: var(--skygge); }

.filtre { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }

.filtre button {
  padding: 5px 12px;
  border: 0;
  background: var(--vindu);
  color: #000;
  font: 400 16px var(--f-tekst);
  box-shadow: var(--opphoyd);
  cursor: pointer;
}

.filtre button[aria-pressed="true"] {
  font-weight: 700;
  background: repeating-conic-gradient(var(--vindu) 0 25%, var(--lys) 0 50%) 0 0 / 2px 2px;
  box-shadow: var(--nedsenket);
}

/* ---------- Telleverk som statuslinje ---------- */

.teller { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 18px 0; }
.teller div { padding: 6px 10px; background: var(--vindu); box-shadow: var(--nedsenket); }
.teller .etikett { font-weight: 400; color: var(--dempet); }
.teller data { display: block; font: 700 22px var(--f-terminal); color: var(--marine); line-height: 1.2; }
.teller .varsel data { color: var(--feil); }

/* ---------- Liste som utforsker-vindu ---------- */

.liste { list-style: none; margin: 0; padding: 2px; background: var(--felt); box-shadow: var(--nedsenket); }

.liste a {
  display: grid;
  grid-template-columns: 56px 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 6px 8px;
  color: #000;
  text-decoration: none;
}

.liste a:hover,
.liste a:focus-visible { background: var(--marine); color: #fff; outline: none; }
.liste a:hover .sted, .liste a:hover .id { color: #fff; }

.liste .id { font: 400 16px var(--f-terminal); color: var(--marine); }
.liste .navn { font-weight: 700; font-size: 16px; line-height: 1.25; }
.liste .sted { display: block; font-weight: 400; font-size: 16px; color: var(--dempet); }

.miniatyr { width: 40px; height: 40px; overflow: hidden; }
.miniatyr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.miniatyr:empty { background: var(--ikon-boks) center / 32px no-repeat; }

/* ---------- Status ---------- */

.status {
  padding: 1px 8px;
  font: 400 16px var(--f-tekst);
  white-space: nowrap;
  color: #000;
  background: var(--vindu);
  box-shadow: var(--nedsenket);
}

.status.lager { color: var(--ntnui-gronn); font-weight: 700; }
.status.ute { color: var(--marine); font-weight: 700; }
.status.forsinket { color: #fff; background: var(--feil); font-weight: 700; }

/* ---------- Gjenstandsside ---------- */

.ting { display: grid; gap: 18px; }
.ting-hode .terminal { margin-bottom: 14px; }
.ting-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }

@media (min-width: 820px) {
  .ting-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

.bilde {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 6px;
  background: var(--vindu);
  box-shadow: var(--opphoyd);
  overflow: hidden;
}

.bilde img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bilde figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 1px 6px;
  background: #ffffe1;
  border: 1px solid #000;
  color: #000;
  font: 400 16px var(--f-tekst);
}

.bilde-mangler {
  display: grid;
  place-items: end center;
  height: 100%;
  padding: 20px 20px 40px;
  text-align: center;
  background: var(--ikon-boks) center 35% / 96px no-repeat, var(--felt);
  box-shadow: var(--nedsenket);
}

.data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.data dd { margin: 0; }

.varianter { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 4px; }
.varianter div { padding: 6px; text-align: center; background: var(--felt); box-shadow: var(--nedsenket); }
.varianter b { display: block; font: 700 22px var(--f-terminal); color: var(--marine); }

/* ---------- Knapper ---------- */

.knapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 6px 16px;
  border: 0;
  background: var(--vindu);
  color: #000;
  font: 700 16px var(--f-tekst);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #000, inset -2px -2px var(--mork), inset 2px 2px var(--lys), inset -3px -3px var(--skygge);
  cursor: pointer;
}

.knapp:active { box-shadow: inset 0 0 0 1px #000, inset 2px 2px var(--skygge); padding: 7px 15px 5px 17px; }
.knapp:disabled { color: var(--skygge); text-shadow: 1px 1px var(--lys); cursor: default; }
.knapp.sekundaer, .knapp.fare { box-shadow: var(--opphoyd); }
.knapp.sekundaer:active, .knapp.fare:active { box-shadow: var(--nedsenket); }
.knapp.fare { color: var(--feil); }
.knapp.liten { width: auto; min-height: 28px; padding: 3px 12px; font-size: 16px; }

.knapperad { display: grid; gap: 8px; grid-template-columns: 1fr; }

@media (min-width: 560px) {
  .knapperad { grid-template-columns: 2fr repeat(auto-fit, minmax(0, 1fr)); }
}

.tilbake { display: inline-block; margin-bottom: 12px; color: var(--marine); font: 400 16px var(--f-tekst); }

/* ---------- Skjema ---------- */

.skjema { display: grid; gap: 12px; }
.felt { display: grid; gap: 4px; }

.felt input,
.felt select,
.felt textarea {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 0;
  background: var(--felt);
  color: #000;
  font: 400 16px var(--f-tekst);
  box-shadow: var(--nedsenket);
  appearance: none;
}

.felt input[readonly] { background: var(--vindu); }
.felt input:focus, .felt select:focus, .felt textarea:focus { outline: 1px dotted #000; outline-offset: -4px; }

.to-felt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hjelp { margin: 0; font-size: 16px; color: var(--dempet); }

/* Valgknapper som radioknapper i en gruppe */
.valg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px; }
.valg label { position: relative; }
.valg input { position: absolute; opacity: 0; }

.valg span {
  display: block;
  height: 100%;
  padding: 8px 10px;
  background: var(--vindu);
  color: #000;
  font: 700 16px var(--f-tekst);
  box-shadow: var(--opphoyd);
  cursor: pointer;
}

.valg small { display: block; margin-top: 2px; font-weight: 400; font-size: 16px; color: var(--dempet); }
.valg input:checked + span { background: var(--marine); color: #fff; box-shadow: var(--nedsenket); }
.valg input:checked + span small { color: #dfe8ff; }
.valg input:focus-visible + span { outline: 1px dotted #000; outline-offset: -5px; }
.valg input:disabled + span { cursor: default; }

/* ---------- Fremdrift og kvittering ---------- */

.fremdrift { display: grid; gap: 8px; justify-items: center; padding: 16px 0 6px; }
.fremdrift .spor { width: min(320px, 100%); height: 22px; padding: 3px; background: var(--vindu); box-shadow: var(--nedsenket); }

.fremdrift .fyll {
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--marine) 0 10px, transparent 10px 12px);
  animation: fyll 1.1s steps(14) forwards;
}

@keyframes fyll { to { width: 100%; } }

.kvittering { padding: 14px; text-align: center; background: var(--vindu); box-shadow: var(--opphoyd); }
.kvittering .tittel { font-size: clamp(1.6rem, 5vw, 2.4rem); }

/* ---------- Tabeller og logg ---------- */

.tabell-wrap { overflow-x: auto; padding: 2px; background: var(--felt); box-shadow: var(--nedsenket); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }

th {
  padding: 3px 8px;
  text-align: left;
  font: 400 16px var(--f-tekst);
  color: #000;
  background: var(--vindu);
  box-shadow: var(--opphoyd);
  white-space: nowrap;
}

td { padding: 6px 8px; vertical-align: middle; border-bottom: 1px dotted var(--halvlys); }
td.id { font: 400 16px var(--f-terminal); color: var(--marine); white-space: nowrap; }
tr.forsinket td { color: var(--feil); }

.logg { list-style: none; margin: 0; padding: 2px 8px; background: var(--felt); box-shadow: var(--nedsenket); }
.logg li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--halvlys); font-size: 16px; }
.logg time { font: 400 16px var(--f-terminal); color: var(--dempet); }

.admin-grid { display: grid; gap: 18px; }
.admin-grid > * { min-width: 0; }

@media (min-width: 900px) {
  .admin-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* ---------- Kamera ---------- */

.kamera {
  position: relative;
  display: grid;
  place-items: center;
  align-content: end;
  gap: 4px;
  aspect-ratio: 4 / 3;
  padding-bottom: 18%;
  background: var(--ikon-dokument) center 30% / 72px no-repeat, var(--felt);
  box-shadow: var(--nedsenket);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}

.kamera .terminal { color: var(--marine); font-size: 16px; }
.kamera input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kamera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Oppgavelinje ---------- */

.bunn {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 3px 4px;
  background: var(--vindu);
  box-shadow: inset 0 1px var(--halvlys), inset 0 2px var(--lys);
}

/* Start-knappen går til forsiden. Minst 44 px høy, så den er lett å treffe med tommelen */
.bunn .start {
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 16px 4px 10px;
  background: var(--vindu);
  box-shadow: var(--opphoyd);
  color: #000;
  font: 700 18px var(--f-tekst);
  text-decoration: none;
  cursor: pointer;
}

.bunn .start::before { content: ""; width: 22px; height: 22px; background: var(--ikon-flagg) center / contain no-repeat; }
.bunn .start:hover { background-color: var(--halvlys); }
.bunn .start:active,
.bunn .start[aria-expanded="true"] { box-shadow: var(--nedsenket); padding: 5px 15px 3px 11px; }
.bunn .start:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

.bunn .terminal:last-child {
  padding: 3px 10px;
  color: #000;
  font: 400 16px var(--f-tekst);
  box-shadow: var(--nedsenket);
}

/* Start-menyen, som i Windows 95 */
.startmeny {
  position: absolute;
  left: 2px;
  bottom: 100%;
  z-index: 45;
  display: flex;
  min-width: 260px;
  padding: 3px;
  background: var(--vindu);
  box-shadow: var(--opphoyd);
}

.startmeny.skjult { display: none; }

.startmeny-side {
  width: 32px;
  padding: 8px 0;
  background: linear-gradient(0deg, var(--tittel-fra), var(--tittel-til));
  color: #c0c0c0;
  font: 400 22px var(--f-tekst);
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.startmeny-side b { color: #fff; text-shadow: 1px 0 0 currentColor; }

.startmeny ul { flex: 1; margin: 0; padding: 0; list-style: none; }

.startmeny a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 4px 18px 4px 10px;
  color: #000;
  text-decoration: none;
}

.startmeny a::before { content: ""; width: 28px; height: 28px; flex: none; background: var(--ikon-pc) center / contain no-repeat; }
.startmeny a.ikon-boks::before { background-image: var(--ikon-boks); }
.startmeny a.ikon-mappe::before { background-image: var(--ikon-mappe); }
.startmeny a.ikon-dokument::before { background-image: var(--ikon-dokument); }
.startmeny a:hover, .startmeny a:focus-visible { background: var(--marine); color: #fff; outline: none; }
.startmeny .skille { height: 0; margin: 3px 2px; border-top: 1px solid var(--skygge); border-bottom: 1px solid var(--lys); }

/* ---------- Velger (søk med forslag) ---------- */

.velger { position: relative; }

.velger-liste {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  background: var(--felt);
  border: 1px solid #000;
}

.velger-liste li { padding: 5px 8px; cursor: pointer; }
.velger-liste li small { display: block; font-size: 16px; color: var(--dempet); }
.velger-liste li[aria-selected="true"], .velger-liste li:hover { background: var(--marine); color: #fff; }
.velger-liste li[aria-selected="true"] small, .velger-liste li:hover small { color: #dfe8ff; }
.velger-liste li .etikett { color: inherit; }
.velger-liste li.tom { color: var(--skygge); cursor: default; }
.velger-liste mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; }

.variantrad { display: grid; grid-template-columns: 1fr 100px 36px; gap: 6px; }
.variantrad button { border: 0; background: var(--vindu); box-shadow: var(--opphoyd); font: 700 16px var(--f-tekst); cursor: pointer; }

/* ---------- Innlogging som dialogboks ---------- */

.innlogging {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--skrivebord);
}

.innlogging form { width: min(380px, 100%); }
.innlogging .terminal { color: var(--marine); }

.laster { padding: 40px 0; }
.skjult { display: none !important; }

@media (max-width: 560px) {
  .bunn .start { min-height: 44px; padding-right: 22px; font-size: 22px; }
  body { padding-bottom: 72px; }
  .liste a { grid-template-columns: 48px 1fr auto; }
  .liste .miniatyr { display: none; }
  .to-felt { grid-template-columns: 1fr; }
  .tittel { font-size: clamp(2rem, 11vw, 3rem); }
}

/* Fet skrift i pikselfonten: streken dobles én piksel til høyre, som i Windows 95 */
b, strong, dt,
.merke, .topplinje .terminal, .etikett, .hilsen,
.panel-hode .etikett, .panel-hode .terminal,
.filtre button[aria-pressed="true"], .teller data, .liste .navn,
.status.lager, .status.ute, .status.forsinket, .varianter b,
.knapp, .valg span, .bunn .start, .variantrad button,
.velger-liste mark, .velger-liste li .etikett, .kvittering .terminal {
  text-shadow: 1px 0 0 currentColor;
  letter-spacing: 1px;
}

.teller .etikett, .valg small, .felt > .etikett { text-shadow: none; letter-spacing: 0.5px; }
.liste .sted { text-shadow: none; letter-spacing: 0.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition: none !important; }
}
