/* Värmekollen */
/* Typsnitt: Red Hat Display, Text och Mono (SIL Open Font License 1.1), lokalt – inga anrop till Google */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/red-hat-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/red-hat-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/red-hat-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/red-hat-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/red-hat-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/red-hat-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/red-hat-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/red-hat-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/red-hat-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #20262B; --ink2: #3F474D; --ink3: #4F585F; --bg: #ECEAE5; --vit: #FFFFFF; --linje: #D6D2C9; --linje2: #B5B0A6;
  --accent: #9A521F; --accent-mork: #7C4219; --accent-ljus: #F6EADF; --signal: #D9894A; --skiffer: #20262B; --stal: #3C6E8F; --varning: #9A3412; --varning-bg: #FFF7ED;
  --fv: #9B4A2C; --bv: #B5652A; --lv: #3C6E8F; --ep: #A07F2E; --hy: #5B4E7A; --ol: #4F585F; --ms: #8C5A73; --fl: #5E7F5A; --de: #7A4A5E;
  --rubrik: "Red Hat Display", "Segoe UI", sans-serif;
  --text: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--rubrik); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.dold { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Sidhuvud */
.topp { background: var(--ink); color: #fff; }
.topp-inre { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
@media (max-width: 600px) { .topp-inre { padding: 14px 16px; } }
.logga { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logga:hover { color: #fff; }
.logga-namn { display: flex; flex-direction: column; font-family: var(--rubrik); font-weight: 700; font-size: 28px; letter-spacing: .2px; line-height: 1.05; }
.logga-namn small { font-family: var(--text); font-weight: 600; font-size: 15px; letter-spacing: .3px; color: #D9894A; margin-top: 3px; }
@media (max-width: 560px) { .logga-namn { font-size: 23px; } .logga-namn small { font-size: 13px; } }
.meny { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 15px; }
.meny a { color: #DCE3EA; text-decoration: none; }
.meny a:hover { color: #fff; text-decoration: underline; }
.meny a.knapp-vit { background: #fff; color: var(--ink); font-weight: 700; padding: 11px 18px; border-radius: 4px; }
.meny a.knapp-vit:hover { text-decoration: none; background: var(--accent-ljus); }
.steg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.steg li { padding: 8px 14px; border-radius: 999px; background: #353D43; color: #DCE3EA; }
.steg li[aria-current] { background: #fff; color: var(--ink); font-weight: 700; }
.steg a { color: inherit; text-decoration: none; }
.rand { display: grid; grid-template-columns: repeat(8, 1fr); height: 5px; }
.rand span:nth-child(1) { background: var(--fv); } .rand span:nth-child(2) { background: var(--bv); } .rand span:nth-child(3) { background: var(--lv); } .rand span:nth-child(4) { background: var(--ep); }
.rand span:nth-child(5) { background: var(--hy); } .rand span:nth-child(6) { background: var(--ol); } .rand span:nth-child(7) { background: var(--ms); } .rand span:nth-child(8) { background: var(--fl); }

/* Knappar */
.knapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; padding: 14px 24px; border-radius: 4px; border: 2px solid var(--ink); cursor: pointer; }
.knapp:hover { background: #0B141D; color: #fff; }
.knapp.gron { background: var(--accent); border-color: var(--accent); }
.knapp.gron:hover { background: var(--accent-mork); }
.knapp.ljus { background: #fff; color: var(--ink); }
.knapp.ljus:hover { background: var(--accent-ljus); color: var(--ink); }
.knapp.liten { font-size: 15px; padding: 9px 16px; }
.knapp[disabled] { opacity: .55; cursor: not-allowed; }
.lank-knapp { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Startsidan */
.hjalte { padding-top: 72px; padding-bottom: 40px; }
.overrubrik { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.hjalte h1 { max-width: 820px; font-size: clamp(38px, 6vw, 60px); line-height: 1.02; }
.ingress { margin-top: 22px; max-width: 680px; font-size: 19px; line-height: 1.55; color: var(--ink2); }
.valkort-rad { display: flex; flex-wrap: wrap; gap: 20px; }
.valkort { flex: 1 1 420px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 600px) { .valkort { padding: 20px; flex-basis: 100%; } }
.valkort-topp { display: flex; gap: 18px; align-items: center; }
.ikonruta { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 6px; background: #EEF3F6; display: flex; align-items: center; justify-content: center; }
.valkort h2 { font-size: 32px; line-height: 1.05; }
.valkort-topp p { margin-top: 6px; font-size: 15px; color: var(--ink2); }
.ingar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; font-size: 14px; line-height: 1.45; }
.ingar h3 { font-family: var(--text); font-size: 14px; margin: 0 0 8px; }
.ingar .gratis { color: var(--accent); }
.bocklista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bocklista li { display: flex; gap: 8px; align-items: flex-start; }
.bocklista li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A521F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E"); }
.bocklista li.not::before { background: none; }
.bocklista li.not { font-size: 13px; color: var(--ink3); padding-left: 26px; }
.valkort .knapp { margin-top: auto; align-self: flex-start; }
.sektion { padding-bottom: 48px; }
.sektion > h2, .sektion-rubrik { font-size: 30px; margin: 0 0 10px; }
.sektion .ingress-liten { margin: 0 0 22px; max-width: 760px; font-size: 17px; line-height: 1.55; color: var(--ink2); }
.altkort-rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.altkort { background: #fff; border: 1px solid var(--linje); border-radius: 6px; padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.altkort .bild { border-radius: 4px; padding: 10px 6px 4px; }
.altkort .bild svg { display: block; width: 100%; height: 112px; }
.altkort h3 { font-size: 23px; }
.altkort p { font-size: 14px; color: var(--ink2); }
.altkort .fot { margin-top: auto; font-size: 13px; font-weight: 700; }
.etikett-villa { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: #9D174D; border-radius: 999px; padding: 3px 8px; }
.stegkort { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.stegkort li { background: #fff; border: 1px solid var(--linje); border-radius: 6px; padding: 24px; }
.stegkort .nr { font-family: var(--rubrik); font-size: 40px; font-weight: 700; color: var(--accent); margin-bottom: 10px; line-height: 1; }
.stegkort h3 { font-family: var(--text); font-size: 19px; margin-bottom: 8px; }
.stegkort p { font-size: 15px; color: var(--ink2); }
.sidfot { max-width: 1200px; margin: 0 auto; padding: 48px 24px 56px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 14px; color: var(--ink3); }

/* Formulär */
.sida { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }
@media (max-width: 600px) { .sida { padding: 28px 16px 48px; } }
.sida > h1 { font-size: clamp(32px, 5vw, 44px); }
.sida > .ingress { margin: 12px 0 28px; font-size: 17px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.kort { background: #fff; border: 1px solid var(--linje); border-radius: 6px; padding: 24px; margin-bottom: 20px; }
@media (max-width: 600px) { .kort { padding: 18px 16px; } }
.kort > h2 { font-size: 26px; margin-bottom: 14px; }
.kort > .hjalp { margin: -8px 0 16px; color: var(--ink2); font-size: 15px; }
.falt-rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; margin-bottom: 16px; }
.falt label, .falt .etikett { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.falt .hjalp { font-size: 13px; color: var(--ink3); margin-top: 6px; line-height: 1.4; }
.falt input[type=text], .falt input[type=number], .falt input[type=email], .falt input[type=password], .falt select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--linje2); border-radius: 4px; background: #fff; font-size: 16px; min-height: 46px; }
.falt input:disabled { background: #EEF1F4; color: var(--ink3); }
.falt input.forslag::placeholder { color: #6B7785; }
.enhet { position: relative; }
.enhet input { padding-right: 64px !important; }
.enhet span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink3); font-size: 14px; pointer-events: none; }
.vaxel { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.vaxel button { border: 0; background: transparent; padding: 10px 18px; font-weight: 700; cursor: pointer; min-height: 44px; }
.vaxel button[aria-pressed=true] { background: var(--ink); color: #fff; }
.kryss { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.kryss input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.valrutor { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.valruta { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--linje); border-radius: 6px; padding: 14px 16px; cursor: pointer; background: #fff; text-align: left; }
.valruta[aria-pressed=true], .valruta:has(input:checked) { border-color: var(--accent); background: var(--accent-ljus); }
.valruta input { accent-color: var(--accent); margin-top: 4px; }
.valruta strong { display: block; }
.valruta span { font-size: 14px; color: var(--ink2); }
.zon { border: 2px dashed var(--linje2); border-radius: 6px; padding: 28px 20px; text-align: center; background: #FAFBFC; }
.zon.over { border-color: var(--accent); background: var(--accent-ljus); }
.zon p { color: var(--ink2); }
.zon .knapp { margin-top: 12px; }
.smatt { font-size: 13px; color: var(--ink3); }
.tabell-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
table.tabell { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabell th, .tabell td { padding: 9px 10px; border-bottom: 1px solid var(--linje); text-align: right; white-space: nowrap; }
.tabell th:first-child, .tabell td:first-child { text-align: left; white-space: normal; }
.tabell thead th { font-size: 13px; color: var(--ink3); font-weight: 700; vertical-align: bottom; white-space: normal; hyphens: manual; min-width: 72px; }
.tabell tfoot td { font-weight: 700; background: var(--bg); }
.tabell td input { width: 110px; padding: 6px 8px; border: 1px solid var(--linje2); border-radius: 4px; text-align: right; }
.reglage { width: 100%; accent-color: var(--accent); height: 28px; }
.reglage-skala { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink3); gap: 12px; }
.stor-siffra { font-family: var(--rubrik); font-weight: 700; font-size: 34px; }
.utfall { border: 1px solid var(--linje); border-radius: 6px; }
.utfall > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 700; }
.utfall > summary::-webkit-details-marker { display: none; }
.utfall > summary::after { content: "▾"; font-size: 18px; transition: transform .15s; }
.utfall[open] > summary::after { transform: rotate(180deg); }
.utfall .inre { padding: 0 18px 18px; }
.utfall .inre h3 { font-family: var(--text); font-size: 16px; margin: 16px 0 8px; }
.ruta-info { background: var(--accent-ljus); border-radius: 4px; padding: 12px 14px; font-size: 14px; color: var(--accent-mork); }
.ruta-varning { background: var(--varning-bg); border: 1px solid #FDBA74; border-radius: 4px; padding: 12px 14px; font-size: 14px; color: var(--varning); }
.ruta-fel { background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 4px; padding: 12px 14px; font-size: 15px; color: #991B1B; }
.knapprad { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; }

/* Sammanfattning */
.sammanf { position: sticky; top: 16px; background: var(--ink); color: #fff; border-radius: 6px; padding: 22px; }
@media (max-width: 960px) { .sammanf { position: static; } }
.sammanf h2 { font-size: 24px; margin-bottom: 12px; }
.sammanf dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; }
.sammanf dt { color: #B9C4CF; }
.sammanf dd { margin: 0; text-align: right; font-weight: 700; }
.sammanf p { margin-top: 14px; font-size: 13px; color: #B9C4CF; line-height: 1.45; }

/* Resultat */
.res-topp { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.res-topp h1 { font-size: clamp(30px, 5vw, 44px); }
.res-topp .under { margin-top: 8px; color: var(--ink2); max-width: 820px; font-size: 15px; }
.staplar { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 12px; align-items: start; overflow-x: auto; padding: 8px 2px 4px; }
.stapel { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 96px; }
.stapel .yta { height: 260px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.stapel .bar { border-radius: 4px 8px 0 0; min-height: 4px; position: relative; }
.stapel .belopp { font-family: var(--rubrik); font-weight: 700; font-size: 20px; text-align: center; margin-bottom: 4px; }
.stapel .namn { font-family: var(--rubrik); font-weight: 700; font-size: 19px; line-height: 1.1; min-height: 2.2em; hyphens: manual; overflow-wrap: anywhere; }
.stapel .under { font-size: 13px; color: var(--ink3); line-height: 1.35; }
.stapel .lagst { display: block; margin-bottom: 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-mork); }
.stapel .ej { height: 100%; border: 2px dashed var(--linje2); border-radius: 4px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--ink3); padding: 6px; }
.markor { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; }
.markor.gron-lan { background: #00843D; color: #fff; }
.ruta-gront { background: #ECF7EF; border: 1px solid #86C99A; border-radius: 4px; padding: 12px 14px; font-size: 14px; color: #14532D; }
.klassbricka { display: inline-block; min-width: 28px; text-align: center; font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 14px; }
.las { display: inline-block; width: 64px; height: 12px; border-radius: 4px; background: repeating-linear-gradient(90deg, #DDE3E9 0 8px, #EEF1F4 8px 16px); vertical-align: middle; }
.las-text { font-size: 12px; color: var(--ink3); }
.kop-ruta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 6px; padding: 22px 24px; margin: 20px 0; }
.kop-ruta h2 { font-size: 26px; }
.kop-ruta p { color: #DCE3EA; margin-top: 6px; max-width: 640px; font-size: 15px; }
.forbehall { border-left: 5px solid #F59E0B; background: #FFFBEB; border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 0 0 20px; }
.forbehall h2 { font-size: 22px; margin-bottom: 6px; }
.forbehall p { font-size: 15px; color: #3D3420; }
.cop-diagram { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 200px; margin-top: 14px; }
.cop-man { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; }
.cop-man .par { display: flex; gap: 2px; align-items: flex-end; height: 170px; width: 100%; justify-content: center; }
.cop-man .p { width: 42%; border-radius: 4px 4px 0 0; }
.cop-man span { font-size: 12px; color: var(--ink3); }
.forklaring { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; margin-top: 10px; }
.forklaring i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.klasskala { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.klasskala .rad { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.klasskala .pil { height: 30px; display: flex; align-items: center; padding-left: 10px; font-weight: 700; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.kallor { font-size: 13px; color: var(--ink3); line-height: 1.55; }
.kallor a { color: var(--ink3); }
.tva-kol { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.laddar { display: flex; align-items: center; gap: 12px; padding: 40px 0; color: var(--ink2); }
.laddar::before { content: ""; width: 22px; height: 22px; border: 3px solid var(--linje); border-top-color: var(--accent); border-radius: 50%; animation: snurr 0.8s linear infinite; }
@keyframes snurr { to { transform: rotate(360deg); } }
.adminrad { background: #FEF3C7; border: 1px solid #F59E0B; border-radius: 4px; padding: 10px 14px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }

/* Textsidor */
.text-sida { max-width: 760px; }
.text-sida h1 { font-size: 40px; margin-bottom: 18px; }
.text-sida h2 { font-size: 26px; margin: 28px 0 10px; }
.text-sida p, .text-sida li { font-size: 16px; line-height: 1.6; color: var(--ink2); margin-bottom: 10px; }

/* Utskrift: rapporten som PDF */
@media print {
  body { background: #fff; font-size: 11pt; }
  .topp, .sidfot, .ej-utskrift, .kop-ruta, .adminrad, .knapprad { display: none !important; }
  .sida { padding: 0; max-width: none; }
  .kort { border: 1px solid #ccc; break-inside: avoid; page-break-inside: avoid; }
  .staplar { overflow: visible; }
  .utskrift-rubrik { display: block !important; }
  .tabell-wrap { overflow: visible !important; }
  .kalk-ruta, #kalk-om { display: none !important; }
  .tabell { font-size: 8.5pt; width: 100%; }
  .tabell th, .tabell td { padding: 5px 4px !important; white-space: normal !important; }
  a { color: inherit; text-decoration: none; }
}
.exempel-lank { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--accent); }
.exempel-lank::before { content: "↓ "; }
.exempel-lank.ljus { color: #fff; margin-top: 0; }
.kop-knappar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rapportval { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.rv { display: flex; flex-direction: column; margin: 0; }
.rv .stor-siffra { margin: 4px 0 0; }
.rv .bocklista { margin-top: 14px; }
.rv-granskad { border: 2px solid var(--accent); }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; }
.falt textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--linje2); border-radius: 4px; font: inherit; resize: vertical; }
.smatt-lista { font-size: 14px; color: var(--ink2); }
.b-fillista { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.b-fillista li { display: flex; justify-content: space-between; gap: 12px; background: var(--bg); border-radius: 4px; padding: 8px 12px; }
.kalk-ruta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; margin: 4px 0 6px; }
.utskrift-rubrik { display: none; margin-bottom: 10px; font-size: 12px; color: var(--ink3); }

/* ---------- Energirapport från fakturor (test) ---------- */
.fakt-varden { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.fakt-grupp { border: 1px solid var(--linje); border-radius: 4px; padding: 14px 16px 6px; margin: 0; min-width: 0; }
.fakt-grupp legend { font-family: var(--rubrik); font-weight: 700; font-size: 19px; padding: 0 6px; }
.fakt-falt { margin-bottom: 10px; }
.fakt-siffror { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 8px; }
.fakt-siffror > div { background: var(--bg); border-radius: 4px; padding: 14px 16px; }
.fakt-siffror .stor-siffra { margin: 2px 0; font-family: var(--rubrik); font-size: 32px; font-weight: 700; }
.fakt-h3 { font-size: 21px; margin: 22px 0 10px; }
.fakt-stapel { display: flex; height: 22px; border-radius: 4px; overflow: hidden; gap: 2px; }
.fakt-stapel span, .fakt-legend i { background: var(--ink); }
.fakt-legend { list-style: none; padding: 0; margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink2); }
.fakt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fakt-stapel .d1, .fakt-legend .d1 { background: var(--accent); }
.fakt-stapel .d2, .fakt-legend .d2 { background: var(--fv); }
.fakt-stapel .d3, .fakt-legend .d3 { background: var(--hy); }
.fakt-stapel .d4, .fakt-legend .d4 { background: var(--lv); }
.fakt-stapel .d5, .fakt-legend .d5 { background: var(--ol); }
.fakt-obs { padding-left: 1.2em; display: grid; gap: 8px; }
.fakt-obs li.obs::marker { color: var(--varning); }

/* ---------- Värmekollen Proffs ---------- */
.proffs-ruta { max-width: 1180px; margin: 16px auto 0; padding: 14px 18px; background: var(--accent-ljus); border: 1.5px solid var(--accent); border-radius: 6px; font-size: 15px; }
@media (max-width: 1220px) { .proffs-ruta { margin-left: 16px; margin-right: 16px; } }
.proffs-ruta p { margin: 0; }
.proffs-huvud, .proffs-aktuell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: center; }
.proffs-aktuell { border-top: 1px solid #A7F3D0; margin-top: 12px; padding-top: 12px; }
.proffs-knappar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.proffs-titel { font-size: 17px; }
.proffs-medd { flex-basis: 100%; font-size: 14px; color: var(--accent); }
.proffs-medd.fel { color: #B91C1C; }
.proffs-ruta .utanfor { color: #9A3412; }
.proffs-panel { margin-top: 12px; }
.proffs-panel input[type=search] { width: 100%; max-width: 420px; padding: 9px 12px; border: 1px solid var(--linje2); border-radius: 4px; font: inherit; margin-bottom: 8px; }
.proffs-lista { max-height: 340px; overflow: auto; background: #fff; border: 1px solid #A7F3D0; border-radius: 4px; }
.proffs-rad { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--linje); }
.proffs-rad:last-child { border-bottom: 0; }
.proffs-rad.vald { background: #F0FDFA; }
.proffs-rad small { display: block; color: var(--ink3); }
.proffs-tom { padding: 12px; color: var(--ink3); }
#kort-proffs { border: 1.5px solid var(--accent); }
#kort-proffs h3 { font-size: 18px; margin: 0 0 10px; }
#kort-proffs .tabell td input { width: 96px; }
.pr-manader { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.pr-manader label { font-size: 13px; font-weight: 700; display: block; }
.pr-manader input { width: 100%; padding: 7px 8px; border: 1px solid var(--linje2); border-radius: 4px; text-align: right; }
#r-proffs h2 { font-size: 22px; margin-bottom: 8px; }
#r-proffs ul { margin: 6px 0 0; padding-left: 20px; }
@media print {
  body.proffs-last:not(.rapport-ok) #res > *:not(#proffs-utskrift-last) { display: none !important; }
  body.proffs-last:not(.rapport-ok) #proffs-utskrift-last { display: block !important; }
  .proffs-ruta, #kort-proffs { display: none !important; }
}

/* Förstasidan: Värmekollen Proffs */
.proffs-band { background: var(--ink); color: #fff; padding: 64px 0; margin: 8px 0 56px; }
.proffs-band-inre { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .proffs-band-inre { grid-template-columns: 1fr; gap: 32px; } .proffs-band { padding: 44px 0; } }
.proffs-etikett { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ink); background: #D9894A; padding: 5px 12px; border-radius: 999px; }
.proffs-band h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 16px; }
.proffs-ingress { margin-top: 14px; font-size: 18px; line-height: 1.55; color: #DCE3EA; max-width: 560px; }
.proffs-fordelar { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: #DCE3EA; }
.proffs-fordelar li { display: flex; gap: 10px; }
.proffs-fordelar li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; background: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9894A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E"); }
.proffs-fordelar strong { color: #fff; }
.proffs-knappar { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.proffs-band .knapp.gron { border-color: var(--signal); }
.proffs-inlogg { color: #D9894A; font-weight: 600; }
.proffs-inlogg:hover { color: #fff; }
.proffs-not { margin-top: 14px; font-size: 14px; color: #A9B6C3; }
.proffs-panel { margin: 0; background: #fff; color: var(--ink); border-radius: 6px; padding: 20px; box-shadow: 0 0 0 6px rgba(159,224,214,.18); font-size: 15px; display: flex; flex-direction: column; gap: 10px; }
.pp-huvud { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1.5px solid var(--linje); }
.pp-titel { font-family: var(--rubrik); font-weight: 700; font-size: 22px; }
.pp-org { font-size: 13px; font-weight: 600; color: var(--accent-mork); background: var(--accent-ljus); padding: 3px 10px; border-radius: 999px; }
.pp-rad { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1.5px solid var(--linje); border-radius: 4px; }
.pp-rad b, .pp-tabell b { font-variant-numeric: tabular-nums; }
.pp-tabell { border: 1.5px solid var(--linje); border-radius: 4px; overflow: hidden; }
.pp-tabell > div { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1fr; gap: 8px; padding: 7px 12px; align-items: center; font-variant-numeric: tabular-nums; }
.pp-tabell > div + div { border-top: 1px solid var(--linje); }
.pp-tabell .pp-th { background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink3); }
.pp-tabell i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.pp-andrad { background: #FEF3C7; box-shadow: inset 0 0 0 1.5px #F59E0B; border-radius: 5px; padding: 1px 6px; justify-self: start; }
.pp-el { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 8px 12px; border: 1.5px solid var(--linje); border-radius: 4px; }
.pp-staplar { display: flex; align-items: flex-end; gap: 3px; height: 38px; flex: 0 1 180px; }
.pp-staplar i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 4px; }
.pp-fot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; }
.pp-chip { font-size: 13px; font-weight: 600; color: #92400E; background: #FEF3C7; padding: 4px 10px; border-radius: 999px; }
.pp-pdf { font-weight: 700; font-size: 14px; color: #fff; background: var(--accent); padding: 8px 14px; border-radius: 4px; }
@media (max-width: 460px) { .pp-tabell > div { grid-template-columns: 1.4fr 1fr .7fr; } .pp-tabell > div > :last-child { display: none; } .proffs-panel { padding: 14px; } }
.valkort { min-width: 0; }
.valkort-topp > div { min-width: 0; }
.valkort h2 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 600px) { .valkort-topp { flex-direction: column; align-items: flex-start; } .valkort h2 { font-size: 28px; } }
.bocklista li, .proffs-fordelar li { display: block; position: relative; padding-left: 26px; }
.proffs-fordelar li { padding-left: 30px; }
.bocklista li::before, .proffs-fordelar li::before { position: absolute; left: 0; top: 3px; margin: 0; width: 18px; }
.proffs-fordelar li::before { width: 20px; }
.bocklista li.not { padding-left: 26px; }
/* Proffs: värmepumpsmodell */
.pr-under { font-family: var(--text); font-size: 15px; font-weight: 700; margin: 16px 0 4px; }
.pr-modell input[data-vp] { width: 100%; min-width: 220px; }
.pr-modell input[data-vp] { text-align: left; }
.pr-modell th:nth-child(2), .pr-modell td:nth-child(2) { text-align: left; }
.pr-modell select { width: 100%; min-width: 220px; }
.pr-modell [data-vp-info] { margin-top: 3px; text-align: left; }
.pr-modell input[data-pr^="antal."] { width: 4.5em; }
.pr-modell .enhet { min-width: 90px; }
.pr-modell input[data-pr^="tackning."] { width: 4.5em; }
.pr-effekt { margin: 4px 0 8px; padding: 10px 14px; background: var(--accent-ljus); border-radius: 4px; }
#pr-fx { width: 100%; }
.pr-fx-rad { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.pr-fx-rad input { width: 4.5em; }
#pr-fl .falt { flex: 1 1 320px; }
.fx-info { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--accent); background: var(--accent-ljus); border-radius: 6px; padding: 14px 16px; }
.fx-info span { color: var(--ink2); font-size: 15px; }
.vp-fritt-rader { display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 14px; }
.vp-fritt-rader select { width: 100%; }
.stapel-modell { font-weight: 600; color: var(--ink); }
.bh-forklaring { margin: 4px 0 8px; font-size: 15px; color: var(--ink2); }
.bh-forklaring summary { cursor: pointer; font-weight: 600; color: var(--accent-mork); }
.bh-forklaring p { margin-top: 6px; }


/* ---------- Tema: Stämpel (Elotsen AB) ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -.2px; }
h1 { font-weight: 900; }
.logga { gap: 14px; }
.logga .stampel { flex: 0 0 auto; color: #ECEAE5; }
.logga-namn { font-family: var(--rubrik); font-weight: 900; font-size: 26px; letter-spacing: .6px; }
.logga-namn small { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .4px; color: #B8BEC3; }
@media (max-width: 560px) { .logga .stampel { width: 42px; height: 42px; } .logga-namn { font-size: 21px; } }
.rand { display: none; }
.meny a.knapp-vit { background: var(--signal); color: var(--skiffer); border-radius: 3px; }
.meny a.knapp-vit:hover { background: #E7A26C; color: var(--skiffer); }
.knapp { border-radius: 3px; }
.knapp.gron { background: var(--accent); border-color: var(--accent); }
.knapp.gron:hover { background: var(--accent-mork); border-color: var(--accent-mork); }
.overrubrik, .stapel .under, .reglage-skala { font-family: var(--mono); }
.overrubrik { letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.belopp, .stor-siffra, .tabell td { font-variant-numeric: tabular-nums; }
.stor-siffra { font-family: var(--rubrik); font-weight: 900; }
/* Förstasidan: mörk toppyta */
.hjalte-band { background: var(--skiffer); color: #ECEAE5; margin-bottom: 40px; }
.hjalte-band .hjalte { padding-top: 64px; padding-bottom: 64px; }
.hjalte-band .overrubrik { color: var(--signal); }
.hjalte-band .ingress { color: #C9CED2; }
.hjalte-band h1 { color: #ECEAE5; }
.sidfot { border-top: 2px solid var(--skiffer); }
@media print { .logga .stampel { color: var(--skiffer); } }
.hjalte-knappar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.knapp.signal { background: var(--signal); border-color: var(--signal); color: var(--skiffer); }
.knapp.signal:hover { background: #E7A26C; border-color: #E7A26C; color: var(--skiffer); }
.knapp.kontur-ljus { background: transparent; border-color: #ECEAE5; color: #ECEAE5; }
.knapp.kontur-ljus:hover { background: #ECEAE5; color: var(--skiffer); }
.topp { border-bottom: 1px solid #3A434A; }

/* Rankinglista för värmepumpar */
.rank-val { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; margin: 8px 0 16px; }
.rank-val .falt { margin: 0; }
.rank-val select { min-height: 44px; }
.rank-segment { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rank-segment button { border: 1px solid var(--linje2); background: #fff; border-radius: 4px; padding: 8px 12px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer; }
.rank-segment button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.rank-segment button small { opacity: .7; margin-left: 4px; font-family: var(--f-data, monospace); }
.rank-tabell td:first-child, .rank-tabell th:first-child { text-align: right; width: 44px; font-family: var(--f-data, monospace); }
.rank-tabell td:nth-child(2), .rank-tabell th:nth-child(2) { text-align: left; white-space: normal; min-width: 220px; }
.rank-tabell .aven { display: block; font-size: 12px; color: var(--ink3); }
.rank-tabell .mal { font-weight: 800; }
.rank-tabell tr.topp3 td:first-child { color: var(--accent); font-weight: 800; }
.rank-stapel { display: inline-block; height: 8px; border-radius: 2px; background: var(--accent); vertical-align: middle; margin-right: 8px; opacity: .85; }
.krav-bricka { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 2px 7px; border-radius: 3px; margin: 1px 4px 1px 0; white-space: nowrap; border: 1px solid transparent; }
.krav-berg { background: #E9EAEA; color: #20262B; border-color: #B5B0A6; }
.krav-lack { background: #E2EBF1; color: #234A63; }
.krav-anm { background: #F6EADF; color: #7C4219; }
.krav-rapp { background: #7C4219; color: #fff; }
.krav-brand { background: #FFF7ED; color: #9A3412; border-color: #F3C9A3; }
.krav-inga { color: var(--ink3); font-size: 13px; }
.krav-lista { list-style: none; padding: 0; display: grid; gap: 10px; }
.krav-lista li .krav-bricka { margin-right: 8px; }
.rank-tabell td.krav { text-align: left; white-space: normal; min-width: 170px; }
.rank-tabell td.km { text-align: left; white-space: normal; font-size: 13px; }
