:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#193e53;background:#f2f5f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{height:100svh;max-width:1600px;margin:auto;padding:16px clamp(16px,4vw,64px);display:grid;grid-template-rows:auto minmax(0,1fr) minmax(100px,19%);gap:14px}.grid-heading,.grid-heading>div{display:flex;align-items:center;justify-content:space-between;gap:14px}h1{font-size:15px;font-weight:600;margin:0}#interval{font-size:11px;color:#627984}button{border:1px solid #c8d6dc;border-radius:4px;color:#244c60;background:#fff;padding:4px 10px;cursor:pointer;font:inherit}button:hover{background:#e7edef}button:disabled{opacity:.6}button:focus-visible,a:focus-visible{outline:3px solid #0076b9;outline-offset:3px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:14px}.metric{background:#fff;border:1px solid #dbe4e7;border-radius:5px;display:flex;flex-direction:column;min-width:0}.metric-title{font-size:12px;font-weight:550;padding:clamp(8px,1.5vh,16px) 16px;border-bottom:1px solid #edf1f3;display:flex;justify-content:space-between;align-items:center;gap:8px}.symbol{color:#6c939f;font-size:17px}.reading{padding:6px 16px;display:flex;align-items:baseline;gap:9px;margin:auto 0}.reading strong{font-size:clamp(28px,5.3vh,52px);font-weight:450;letter-spacing:-1px;font-variant-numeric:tabular-nums}.reading span{font-size:12px;color:#6c818c}.metric-note{margin:0;padding:0 16px clamp(8px,1.7vh,18px);color:#6a7d86;font-size:10px;line-height:1.4}.metric-note.stale{color:#8b602a}.bottom{display:grid;grid-template-columns:1fr 2fr;gap:20px;min-height:0}.water{padding:clamp(12px,2vh,24px) 24px;background:#193f53;color:white;border-radius:5px;display:flex;flex-direction:column;justify-content:center}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:700;color:#b7d0da}.water>div{display:flex;align-items:baseline;gap:12px;margin:6px 0}.water strong{font-size:clamp(26px,4.3vh,40px);font-weight:450}.water div span,.water p{font-size:10px;color:#c5d6dd}.water p{margin:0}.brand{padding:16px 26px;border:1px solid #dbe4e7;border-radius:5px;background:#fff;display:flex;flex-direction:column;justify-content:center;gap:18px}.identity{display:flex;align-items:center;gap:28px}.identity img{display:block;max-width:100%;height:auto}.identity h2{font-size:15px;letter-spacing:2px;font-weight:650;margin:0;border-left:1px solid #d5e0e4;padding-left:28px}.brand-bottom{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:10px;color:#67808c}a{color:inherit}[hidden]{display:none!important}@media(max-width:800px){main{height:auto;min-height:100svh;padding:14px;grid-template-rows:auto auto auto;gap:12px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:10px}.metric{min-height:145px}.metric-title{font-size:11px;padding:10px}.reading{padding:8px 10px}.reading strong{font-size:34px}.metric-note{padding:0 10px 12px}.bottom{grid-template-columns:1fr;gap:12px}.water{padding:16px 20px}.brand{padding:20px}.identity{gap:20px}.identity h2{font-size:12px;padding-left:20px}.grid-heading>div{gap:6px}#interval{max-width:140px;text-align:right}.brand-bottom{line-height:1.6}}@media(min-width:801px) and (max-height:620px){main{height:auto;min-height:100svh;grid-template-rows:auto auto auto}.metric{min-height:130px}.water,.brand{min-height:110px}}

/* Større identitet og tydeligere målinger */
.metric-title{font-weight:700}.reading strong,.water strong{font-weight:700}.reading span,.water div span{font-weight:600}.identity img{width:180px}.identity h2{font-size:22px;font-weight:800}.identity{gap:30px}@media(max-width:800px){.identity img{width:140px}.identity h2{font-size:16px;letter-spacing:1px;padding-left:16px}.identity{gap:16px}}

/* History opens above the compact dashboard. */
.has-history{cursor:pointer;transition:border-color .15s,box-shadow .15s}.has-history:hover{box-shadow:0 0 0 2px #72a8bf}.has-history:focus-visible{outline:3px solid #0076b9;outline-offset:2px}.metric-title .symbol{font-size:0}.metric-title .symbol::after{content:'↗';font-size:17px}#history-dialog{width:min(940px,94vw);max-height:92svh;overflow:auto;border:1px solid #cfdee5;border-radius:12px;padding:24px;color:#193e53;background:#fff;box-shadow:0 18px 70px #142d4050}#history-dialog::backdrop{background:#142d4099}.history-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.history-header h2{margin:4px 0 0;font-size:24px}.history-eyebrow{margin:0;font-size:10px;letter-spacing:2px;color:#617f8f}.history-ranges{display:flex;gap:8px;margin-top:20px}.history-ranges button{padding:8px 16px}.history-ranges button[aria-pressed=true]{background:#193e53;color:white;border-color:#193e53}#history-close{font-size:20px;padding:8px 12px}#history-status{font-size:14px;font-weight:600;min-height:20px}#history-chart{display:block;width:100%;height:clamp(220px,43vh,420px);touch-action:pan-y}#history-detail{font-size:12px;min-height:34px;color:#284f63}#history-note{font-size:12px;line-height:1.6;color:#617785;margin-bottom:0}@media(max-width:600px){#history-dialog{padding:16px;width:96vw}.history-header h2{font-size:20px}.history-ranges button{padding:8px 12px}#history-chart{height:260px}}
#install-app{font-size:11px;padding:4px 10px;margin-left:auto}#install-help{width:min(520px,94vw);max-height:90svh;overflow:auto;border:1px solid #cfdee5;border-radius:12px;padding:24px;color:#193e53;background:#fff;box-shadow:0 18px 70px #142d4050}#install-help::backdrop{background:#142d4099}#install-help h2{font-size:21px}#install-help p{font-size:14px;line-height:1.6}#install-close{font-size:20px;padding:8px 12px}.brand-bottom{align-items:center}#install-state{color:#617785}

/* Samlede målinger med genkendelige symboler. */
.metrics{grid-template-columns:2fr 2fr 1.15fr;grid-template-rows:minmax(0,1fr);gap:18px;min-height:0}
.measurement-group{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.group-title{display:flex;align-items:center;gap:9px;margin:0;font-size:14px;font-weight:750;color:#234b5e;min-height:24px}
.group-title svg{width:22px;height:22px;flex-shrink:0}.group-cards{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:10px}
.metric-wide{grid-column:1/-1}.group-air .group-cards{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}
.metric-label{display:flex;align-items:center;gap:8px;min-width:0}.metric-label svg{width:19px;height:19px;flex-shrink:0;color:#39738c}.graph-hint{font-size:14px;color:#859da8}.metric-title{padding:10px 12px;min-height:44px}.reading{padding:5px 12px}.metric-note{padding-left:12px;padding-right:12px}.group-sea .metric-label svg{color:#237c85}.group-air .metric-label svg{color:#9b7035}
@media(max-width:1100px){main{height:auto;min-height:100svh;grid-template-rows:auto auto auto}.metrics{grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.group-air{grid-column:1/-1}.group-air .group-cards{grid-template-columns:1fr 1fr;grid-template-rows:auto}.metric{min-height:140px}}
@media(max-width:650px){.metrics{grid-template-columns:minmax(0,1fr);gap:22px}.group-air{grid-column:auto}.group-title{font-size:15px}.group-cards{gap:10px}.metric-title{font-size:11px}.metric-label{gap:6px}.metric-label svg{width:17px;height:17px}.reading strong{font-size:34px}.graph-hint{display:none}}
/* Større, letlæselige måletal. */
.reading strong{font-size:clamp(40px,6.8vh,68px);line-height:1.1}.water strong{font-size:clamp(36px,5.8vh,56px);line-height:1.1}.reading span{font-size:14px}.water div span{font-size:12px}
@media(max-width:1100px){.reading strong{font-size:46px}.water strong{font-size:48px}}
@media(max-width:650px){.reading strong{font-size:42px}.reading{gap:6px}.reading span{font-size:12px}}
@media(max-width:380px){.reading strong{font-size:38px}}

/* Vandstand i højre gruppe og centreret afsender. */
main{grid-template-rows:auto minmax(0,1fr) minmax(110px,15%)}
.group-air .group-cards{grid-template-rows:repeat(3,minmax(0,1fr))}
.group-air .water{min-width:0;padding:12px 16px}.group-air .water .eyebrow{font-size:10px;letter-spacing:1px}.group-air .water>div{margin:auto 0}.group-air .water p{line-height:1.4}
.bottom{grid-template-columns:minmax(0,1fr)}.brand{align-items:center;gap:12px;padding:12px 24px}.identity{justify-content:center}.brand-bottom{justify-content:center;text-align:center}#install-app{margin-left:0}
@media(max-width:1100px){main{grid-template-rows:auto auto auto}.group-air .group-cards{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto}.group-air .water{min-height:140px}}
@media(max-width:650px){.group-air .group-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.group-air .water{grid-column:1/-1;min-height:140px}.brand{padding:20px 12px}.identity{gap:12px}.identity h2{padding-left:12px;font-size:15px}.identity img{width:120px}}

/* Danske retninger med lodret, kontinuerlig kompasskala. */
.direction-reading{align-items:center;gap:10px;width:100%;padding:4px 10px;min-height:100px}
.compass-scale{width:52px;flex:0 0 52px;height:clamp(100px,13vh,144px)}
.compass-scale svg{display:block;width:100%;height:100%;overflow:hidden;fill:none;stroke:#a6bcc5;stroke-width:1}
.compass-scale text{fill:#536f7d;stroke:none;font:10px Segoe UI,Arial,sans-serif;text-anchor:middle}
.compass-scale .compass-marker{stroke:#007b9a;stroke-width:3}
.direction-value{min-width:0;display:flex;flex-direction:column;gap:3px}
.direction-value strong{font-size:clamp(28px,3.2vw,50px);letter-spacing:-1.5px;line-height:1.15}
.direction-value span{font-size:20px;font-weight:650;color:#456775}
.direction-value strong.no-direction{font-size:20px;letter-spacing:0;color:#6a7d86}
.compass-scale:empty{display:none}
@media(max-width:1100px){.direction-value strong{font-size:36px}.direction-reading{min-height:126px}.compass-scale{height:126px}}
@media(max-width:380px){.direction-reading{gap:5px;padding:4px 6px}.compass-scale{width:40px;flex-basis:40px}.direction-value strong{font-size:29px}.direction-value span{font-size:17px}}
@media(min-width:1101px) and (max-height:760px){main{height:auto;min-height:100svh;grid-template-rows:auto auto auto}.metric{min-height:185px}}
