* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f4f5;
  color: #18181b;
  -webkit-text-size-adjust: 100%;
}
#app { max-width: 520px; margin: 0 auto; }
.vy { padding: 24px 18px 32px; display: flex; flex-direction: column; gap: 16px; min-height: 100vh; }
.vy[hidden] { display: none; }
h1 { margin: 0; font-size: 22px; font-weight: 700; }
.huvud { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.kort { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kort.gul { background: #fef9c3; }
.etikett { font-size: 13px; font-weight: 600; color: #52525b; }
.stark { font-weight: 600; font-size: 16px; word-break: break-word; }
.liten { font-size: 13px; }
.dampad { color: #52525b; }
.status { font-size: 14px; color: #52525b; margin: 0; min-height: 1.2em; }
.status.fel { color: #b91c1c; }
.status.ok { color: #15803d; }
.mitt { text-align: center; }

.rad { display: flex; gap: 10px; align-items: center; }
.rad > .knapp { flex: 1; }
.mellan { justify-content: space-between; }
.kolumn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tva { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tva[hidden] { display: none; }
.falt { display: flex; flex-direction: column; gap: 4px; }

label { font-size: 14px; font-weight: 600; color: #3f3f46; }
.axel { font-weight: 700; }
.axel.x { color: #b91c1c; }
.axel.y { color: #15803d; }
.axel.z { color: #1d4ed8; }

input[type="text"], input[type="email"] {
  height: 48px; padding: 0 12px; border: 1px solid #d4d4d8; border-radius: 12px;
  font: inherit; font-size: 18px; background: #fff; color: #18181b; width: 100%;
}
input:focus { outline: 2px solid #ca8a04; outline-offset: 1px; }

.knapp {
  height: 48px; padding: 0 16px; border: 1px solid #d4d4d8; border-radius: 12px;
  background: #fff; color: #18181b; font: inherit; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.knapp.primar { background: #facc15; border-color: #facc15; }
.knapp.stor { height: 56px; font-size: 17px; font-weight: 700; }
.knapp:disabled { opacity: 0.5; }
.rad > .knapp.liten-knapp { height: 44px; font-weight: 500; flex: none; }
.lanklik { background: none; border: none; color: #a16207; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 0; text-align: left; cursor: pointer; }

.anslutning { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: #71717a; }
.anslutning .prick { width: 9px; height: 9px; border-radius: 999px; background: #a1a1aa; }
.anslutning.pa { color: #15803d; }
.anslutning.pa .prick { background: #16a34a; }

.flikar { display: flex; gap: 6px; background: #e4e4e7; padding: 4px; border-radius: 12px; }
.flik { flex: 1; height: 40px; border: none; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: #3f3f46; cursor: pointer; }
.flik.aktiv { background: #fff; color: #18181b; }
.ny { background: #facc15; color: #18181b; border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }

.jamfor { width: 100%; border-collapse: collapse; font-size: 16px; }
.jamfor th { font-size: 13px; color: #52525b; text-align: left; font-weight: 600; padding: 4px 0; }
.jamfor td { padding: 6px 0; }
.jamfor td.andrad { color: #a16207; font-weight: 700; }
.jamfor td.noll { color: #71717a; }

#tel-placering, #tel-fin, #fin-innehall { display: flex; flex-direction: column; gap: 16px; }
.fot { margin-top: auto; display: flex; justify-content: space-between; }

/* Glasögonsidan (mörk, läses i Quest-webbläsaren) */
.mork { background: #18181b; color: #f4f4f5; }
body:has(.mork:not([hidden])) { background: #18181b; }
.mork .dampad, .mork .status { color: #a1a1aa; }
.morkkort { background: #27272a; }
.mork .etikett { color: #a1a1aa; }
.mork .lanklik { color: #facc15; }
.instruktion { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
