:root { --ink:#17211b; --muted:#617069; --line:#dce4df; --surface:#fff; --canvas:#f5f7f5; --green:#07834e; --green-soft:#dff3e7; --teal:#228d91; --orange:#e26d32; --orange-soft:#fff0e8; --shadow:0 12px 32px rgba(19,53,34,.07); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-width:320px; background:var(--canvas); color:var(--ink); font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,select { font:inherit; }
.container { width:min(1180px,calc(100% - 44px)); margin:auto; }
.site-header { background:rgba(255,255,255,.96); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; backdrop-filter:blur(12px); }
.header-inner { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand { color:var(--ink); font-weight:760; text-decoration:none; font-size:1.08rem; letter-spacing:-.035em; }
.main-nav { display:flex; gap:26px; align-items:center; }
.main-nav a { color:var(--muted); text-decoration:none; font-size:.9rem; font-weight:600; }
.main-nav a:hover,.main-nav a.active { color:var(--green); }
.status { color:var(--green); font-size:.78rem; white-space:nowrap; }
.status i { display:inline-block; width:8px; height:8px; border-radius:50%; background:currentColor; margin-right:6px; }
.status.error { color:var(--orange); }
.intro { padding:48px 0 28px; display:flex; justify-content:space-between; align-items:end; gap:32px; }
.kicker { margin:0 0 8px; color:var(--green); font-size:.72rem; font-weight:750; letter-spacing:.095em; text-transform:uppercase; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:10px; font-size:clamp(2.2rem,4vw,3.55rem); line-height:1.04; letter-spacing:-.07em; }
h2 { margin-bottom:0; font-size:1.45rem; line-height:1.16; letter-spacing:-.045em; }
.intro-text { margin:0; color:var(--muted); max-width:510px; }
.intro-meta { min-width:290px; display:grid; gap:6px; color:var(--muted); text-align:right; font-size:.82rem; }
.intro-meta strong { color:var(--ink); font-weight:700; margin-left:5px; }
.period-switch { display:inline-flex; gap:2px; padding:4px; margin:0 0 18px; border:1px solid var(--line); border-radius:9px; background:#eef2ee; }
.period,.price-tab { appearance:none; border:0; cursor:pointer; border-radius:6px; padding:9px 16px; background:transparent; color:var(--muted); font-size:.83rem; font-weight:700; }
.period.active,.price-tab.active { background:var(--ink); color:#fff; box-shadow:0 2px 4px #0001; }
.period:hover,.price-tab:hover { color:var(--ink); }
.summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:14px; }
.summary-card,.panel,.homey-callout { background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }
.summary-card { padding:20px; min-height:138px; display:flex; flex-direction:column; gap:9px; }
.summary-card.accent { border-top:3px solid var(--green); padding-top:18px; }
.label,.muted,.panel-description,.price-summary span { color:var(--muted); }
.label { font-size:.78rem; font-weight:650; }
.summary-value { margin-top:3px; font-size:1.9rem; letter-spacing:-.065em; line-height:1; }
.summary-value small { color:var(--muted); font-size:.82rem; font-weight:600; letter-spacing:0; }
.muted { font-size:.8rem; }
.panel { padding:24px; margin-top:14px; }
.panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.chart-options { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.chart-options label { color:var(--muted); font-size:.75rem; display:grid; gap:4px; }
select { min-width:145px; padding:8px 28px 8px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); font-size:.8rem; }
.chart-legend { display:flex; gap:18px; margin:22px 0 5px; color:var(--muted); font-size:.76rem; }
.legend-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.legend-dot.green { background:var(--green); }.legend-dot.orange,.chart-bar.orange,.impact-bar.saving { background:var(--orange); fill:var(--orange); }.chart-bar.teal,.impact-bar.loss { background:var(--teal); fill:var(--teal); }.legend-dot.teal { background:var(--teal); }.legend-dot.grey { background:#8d9892; }
.chart-wrap,.impact-chart-wrap { position:relative; width:100%; overflow:visible; }
.chart-wrap { margin-top:8px; }
.chart-wrap svg,.impact-chart-wrap svg { display:block; width:100%; height:auto; }
.grid-line { stroke:#e5ebe6; stroke-width:1; }.zero-line { stroke:#8a9790; stroke-width:1.5; }.compare-line { fill:none; stroke:#8d9892; stroke-width:2.5; vector-effect:non-scaling-stroke; }.axis-label { fill:#718078; font-size:12px; }.axis-label.right { text-anchor:end; }.axis-label.center { text-anchor:middle; }.empty-label { fill:var(--muted); font-size:16px; }
.chart-bar,.impact-bar,.price-low,.price-high { transition:opacity .15s ease; }.chart-bar.teal { fill:var(--teal); }.chart-bar:hover,.impact-bar:hover,.price-low:hover,.price-high:hover { opacity:.7; }
.chart-hit { fill:transparent; cursor:crosshair; outline:none; }.chart-hit:focus { stroke:var(--green); stroke-width:2; }
.axis-caption { display:flex; justify-content:space-between; color:var(--muted); font-size:.72rem; margin-top:1px; }
.chart-tooltip { display:none; position:absolute; z-index:5; min-width:145px; padding:10px 12px; border:1px solid #cbd7cf; border-radius:8px; background:#fff; color:var(--ink); box-shadow:0 8px 22px #17391b1c; pointer-events:none; font-size:.75rem; }.chart-tooltip.visible { display:grid; gap:2px; }.chart-tooltip strong { font-size:.8rem; }.chart-tooltip span { color:var(--muted); }
.two-column { display:grid; grid-template-columns:1.38fr 1fr; gap:14px; }
.two-column>.panel { min-width:0; }
.panel-description { margin:11px 0 0; font-size:.82rem; max-width:680px; }
.impact-chart-wrap { margin-top:15px; }.impact-chart-wrap svg { background:linear-gradient(180deg,transparent 49.5%,#f5f7f5 50%,transparent 50.5%); }
.savings-list { border-top:1px solid var(--line); margin-top:11px; }.saving-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:.8rem; }.saving-row span { display:grid; gap:1px; }.saving-row small { color:var(--muted); }.saving-row b { font-size:.84rem; }.saving,.positive { color:var(--orange); }.loss,.negative { color:var(--teal); }
.badge { padding:5px 8px; border-radius:999px; background:var(--green-soft); color:var(--green); font-size:.72rem; font-weight:750; white-space:nowrap; }.tier-head { display:grid; gap:2px; margin-top:30px; }.tier-head strong { font-size:2rem; letter-spacing:-.06em; }.tier-head span { color:var(--muted); font-size:.77rem; }.tier-meter { height:10px; margin-top:17px; overflow:hidden; border-radius:999px; background:#e8eee9; }.tier-meter span { display:block; height:100%; min-width:3%; border-radius:inherit; background:var(--green); transition:width .3s ease; }.tier-range { display:flex; justify-content:space-between; margin-top:5px; color:var(--muted); font-size:.72rem; }.peak-list { margin-top:21px; border-top:1px solid var(--line); }.peak-list div { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:.78rem; }.peak-list strong { color:var(--ink); }
.price-panel { scroll-margin-top:90px; }.price-tabs { display:flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:8px; background:#f3f6f3; }.price-tab { padding:7px 12px; font-size:.76rem; }.price-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:22px; }.price-summary div { padding:12px 14px; background:#f6f8f6; border-radius:8px; }.price-summary span { display:block; font-size:.72rem; }.price-summary strong { display:block; margin-top:3px; font-size:1.05rem; }.price-chart-wrap { margin-top:16px; }.price-low { fill:#62b57b; }.price-high { fill:#e98342; }
.history-panel { scroll-margin-top:90px; }.button-link,.primary-button { display:inline-flex; align-items:center; justify-content:center; border-radius:7px; padding:9px 13px; font-size:.8rem; font-weight:750; text-decoration:none; }.button-link { border:1px solid var(--line); color:var(--green); }.primary-button { background:var(--green); color:#fff; }.button-link:hover { background:var(--green-soft); }.primary-button:hover { background:#056b40; }.history-table { margin-top:18px; }.history-head,.history-row { display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:14px; align-items:center; }.history-head { padding:0 0 8px; color:var(--muted); font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }.history-row { padding:12px 0; border-top:1px solid var(--line); font-size:.82rem; }.history-row span { color:var(--muted); }.history-row b { text-align:right; }
.homey-callout { margin-top:14px; padding:25px; display:flex; justify-content:space-between; align-items:center; gap:25px; background:#eef8f1; border-color:#c9e7d2; box-shadow:none; }.homey-callout h2 { margin-bottom:7px; }.homey-callout p:not(.kicker) { margin:0; color:var(--muted); font-size:.84rem; }.method { margin:52px 0 28px; padding:24px 0; border-top:1px solid var(--line); display:grid; grid-template-columns:.55fr 1.45fr; gap:38px; }.method p { color:var(--muted); max-width:700px; margin:0; font-size:.82rem; }footer { padding:24px; color:var(--muted); text-align:center; font-size:.72rem; border-top:1px solid var(--line); }footer span { color:var(--ink); }
@media (max-width:900px) { .summary-grid { grid-template-columns:repeat(2,1fr); }.two-column { grid-template-columns:1fr; }.chart-options { justify-content:flex-start; }.panel-header { flex-wrap:wrap; } }
@media (max-width:650px) { .container { width:min(100% - 28px,560px); }.header-inner { min-height:64px; }.main-nav { gap:12px; }.main-nav a:nth-child(2),.main-nav a:nth-child(3) { display:none; }.status { font-size:.7rem; }.intro { display:block; padding-top:32px; }.intro-meta { margin-top:18px; text-align:left; min-width:0; }.period-switch { width:100%; justify-content:space-between; }.period { padding:8px 9px; font-size:.75rem; }.summary-card { padding:16px; min-height:123px; }.summary-value { font-size:1.55rem; }.panel { padding:18px; }.chart-options { width:100%; }.chart-options label { flex:1; }.chart-options select { width:100%; min-width:0; }.price-summary { grid-template-columns:repeat(2,1fr); }.history-head,.history-row { grid-template-columns:1.3fr 1fr 1fr; }.history-head span:last-child,.history-row b { text-align:right; }.history-head span:nth-child(3),.history-row span:nth-child(3) { display:none; }.homey-callout,.method { display:block; }.homey-callout .primary-button { margin-top:18px; }.method p { margin-top:15px; }.axis-label { font-size:10px; } }
@media (max-width:420px) { .brand { font-size:.95rem; }.summary-grid { gap:8px; }.summary-card { padding:13px 12px; }.label { min-height:36px; }.summary-value { font-size:1.3rem; }.period { padding:8px 5px; }.period-switch { gap:0; }.price-summary strong { font-size:.9rem; } }

.theme-toggle { display:inline-flex; align-items:center; gap:8px; border:0; padding:5px 0; background:transparent; color:var(--muted); cursor:pointer; font-size:.76rem; font-weight:700; white-space:nowrap; }
.hidden { display:none !important; }
.theme-toggle:hover { color:var(--ink); }
.theme-toggle-track { position:relative; display:inline-flex; align-items:center; width:34px; height:20px; padding:3px; border-radius:999px; background:#cfd8d1; transition:background .2s ease; }
.theme-toggle-track span { display:block; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0003; transition:transform .2s ease; }
body[data-theme="dark"] .theme-toggle-track { background:var(--green); }
body[data-theme="dark"] .theme-toggle-track span { transform:translateX(14px); }
.total-panel { margin:0 0 14px; padding:25px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }
.total-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.total-header .panel-description { margin-top:8px; }
.total-breakdown { margin:14px 0 0; padding:11px 13px; border-left:3px solid var(--green); background:var(--total-surface,#f6f8f6); color:var(--muted); font-size:.78rem; }
.total-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }
.total-card { min-height:132px; padding:18px 20px; background:var(--total-surface,#f6f8f6); border:1px solid var(--line); border-radius:10px; display:flex; flex-direction:column; justify-content:space-between; gap:10px; }
.total-card.actual-total { border-top:3px solid var(--green); padding-top:16px; }
.total-label { color:var(--muted); font-size:.78rem; font-weight:700; }
.total-card strong { font-size:2.35rem; line-height:1; letter-spacing:-.07em; }
.total-card strong small { color:var(--muted); font-size:.9rem; letter-spacing:0; }
.forecast-strip { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:12px; padding:13px 15px; background:var(--total-surface,#f6f8f6); border-radius:9px; color:var(--ink); font-size:.82rem; }
.forecast-strip>span:first-child { display:grid; gap:2px; }.forecast-strip small { color:var(--muted); font-size:.74rem; }.forecast-values { display:flex; gap:20px; color:var(--green); }.forecast-values>span { display:grid; gap:1px; text-align:right; }.forecast-values b { white-space:nowrap; }
.history-head,.history-row { grid-template-columns:1.15fr .9fr 1fr 1fr 1fr; }.history-row b { text-align:right; }.history-head span:last-child { text-align:right; }
body[data-theme="dark"] { --ink:#edf5ef; --muted:#a8b5ad; --line:#334039; --surface:#151b17; --canvas:#0b0f0d; --green:#52ca91; --green-soft:#163b2b; --teal:#50bfc1; --orange:#f08a55; --orange-soft:#3d271d; --shadow:0 12px 32px rgba(0,0,0,.24); --total-surface:#1b241e; }
body[data-theme="dark"] .site-header { background:rgba(11,15,13,.95); }
body[data-theme="dark"] .period-switch,body[data-theme="dark"] .price-tabs { background:#1b241e; }
body[data-theme="dark"] .period.active,body[data-theme="dark"] .price-tab.active { background:var(--green); color:#08130d; }
body[data-theme="dark"] select { background:#172019; color:var(--ink); border-color:var(--line); }
body[data-theme="dark"] .grid-line { stroke:#2a3730; }
body[data-theme="dark"] .zero-line { stroke:#87958c; }
body[data-theme="dark"] .compare-line { stroke:#a8b5ad; }
body[data-theme="dark"] .chart-tooltip { background:#1b241e; border-color:#48574d; color:var(--ink); box-shadow:0 8px 22px #0008; }
body[data-theme="dark"] .price-summary div,body[data-theme="dark"] .connection-box { background:#1b241e; }
body[data-theme="dark"] .homey-callout { background:#14291d; border-color:#28553a; }
body[data-theme="dark"] .impact-chart-wrap svg { background:linear-gradient(180deg,transparent 49.5%,#1b241e 50%,transparent 50.5%); }
body[data-theme="dark"] .homey-chart path[fill="#dff3e7"] { fill:#163b2b; }
@media (max-width:900px) { .total-grid { grid-template-columns:1fr; }.forecast-strip { align-items:flex-start; flex-direction:column; }.forecast-values { width:100%; justify-content:space-between; gap:8px; } }
@media (max-width:650px) { .header-inner { gap:12px; }.theme-toggle { font-size:0; }.theme-toggle-track { width:32px; }.total-panel { padding:18px; }.total-card strong { font-size:2rem; }.history-head,.history-row { grid-template-columns:1.2fr 1fr 1fr; }.history-head span:nth-child(3),.history-row span:nth-child(3),.history-head span:nth-child(4),.history-row span:nth-child(4) { display:none; }.history-head span:last-child { text-align:right; }.forecast-values { font-size:.75rem; } }

.period.active:hover,.price-tab.active:hover { color:#fff; }
body[data-theme="dark"] .period.active:hover,body[data-theme="dark"] .price-tab.active:hover { color:#100a20; }
body[data-theme="dark"] .period.active,body[data-theme="dark"] .price-tab.active,body[data-theme="dark"] .period.active:hover,body[data-theme="dark"] .price-tab.active:hover,body[data-theme="dark"] .period.active:focus-visible,body[data-theme="dark"] .price-tab.active:focus-visible { color:#fff !important; }
.price-tab:disabled { cursor:not-allowed; opacity:.42; }
.price-tab:disabled:hover { color:var(--muted); }
.tier-mini-chart { display:flex; align-items:stretch; gap:6px; height:62px; margin-top:7px; padding:2px 0 0; border-bottom:1px solid var(--line); }
.tier-mini-item { min-width:0; flex:1; display:grid; grid-template-rows:15px 1fr 16px; align-items:end; text-align:center; }
.tier-mini-item i { display:block; justify-self:center; width:min(20px,72%); min-height:5px; border-radius:4px 4px 1px 1px; background:linear-gradient(180deg,var(--orange),var(--teal)); }
.tier-mini-item b { color:var(--ink); font-size:.62rem; line-height:1; }
.tier-mini-item small { overflow:hidden; color:var(--muted); font-size:.62rem; line-height:1; text-overflow:ellipsis; white-space:nowrap; }

/* Lys GTA VI-inspirert palett: varm kystsol, korall og dempet turkis. */
body[data-theme="light"] { --ink:#28212d; --muted:#6d6470; --line:rgba(75,57,74,.16); --surface:rgba(255,252,250,.86); --canvas:#f8ece7; --green:#176f70; --green-soft:#dff1ed; --teal:#168d92; --orange:#e86c4f; --orange-soft:#fff0ea; --shadow:0 12px 32px rgba(92,54,55,.09); --total-surface:rgba(255,247,243,.72); background:radial-gradient(ellipse at 86% 2%,rgba(255,184,159,.35),transparent 34%),radial-gradient(ellipse at 9% 23%,rgba(116,199,194,.2),transparent 28%),linear-gradient(180deg,#fff6f2 0%,#f8ece7 54%,#f5e5e1 100%); }
body[data-theme="light"]::before { content:""; pointer-events:none; position:fixed; inset:0; z-index:-1; opacity:.16; background-image:linear-gradient(rgba(40,33,45,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(40,33,45,.07) 1px,transparent 1px); background-size:45px 45px; mask-image:linear-gradient(#000,transparent 82%); }
body[data-theme="light"] .site-header { background:rgba(255,248,245,.86); border-color:var(--line); }
body[data-theme="light"] .period-switch,body[data-theme="light"] .price-tabs { background:rgba(255,255,255,.56); border-color:var(--line); }
body[data-theme="light"] .period.active,body[data-theme="light"] .price-tab.active { background:#28212d; color:#fff; box-shadow:0 4px 12px rgba(40,33,45,.18); }
body[data-theme="light"] .period.active:hover,body[data-theme="light"] .price-tab.active:hover { color:#fff; }
body[data-theme="light"] .total-panel { background:linear-gradient(140deg,rgba(255,255,255,.78),rgba(255,228,217,.68)); border-color:rgba(232,108,79,.22); }
body[data-theme="light"] .total-card.actual-total { background:linear-gradient(135deg,rgba(255,255,255,.8),rgba(255,213,202,.62)); border-top-color:var(--orange); }
body[data-theme="light"] .total-card:nth-child(2) { background:linear-gradient(135deg,rgba(223,241,237,.82),rgba(255,255,255,.7)); }
body[data-theme="light"] .total-card:nth-child(3) { background:linear-gradient(160deg,rgba(255,231,221,.7),rgba(255,255,255,.74)); }
body[data-theme="light"] .total-breakdown,body[data-theme="light"] .forecast-strip { background:rgba(255,255,255,.5); }
body[data-theme="light"] .homey-callout { background:linear-gradient(90deg,rgba(255,215,204,.64),rgba(223,241,237,.72)); border-color:rgba(23,111,112,.2); }
body[data-theme="light"] .chart-tooltip { background:rgba(255,252,250,.98); border-color:rgba(75,57,74,.2); }
body[data-theme="light"] .price-summary div { background:rgba(255,255,255,.56); }

.profitability-page { padding-bottom:18px; }
.profit-hero { padding:48px 0 28px; display:flex; justify-content:space-between; align-items:end; gap:32px; }
.profit-summary-panel { margin-top:0; }
.profit-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 16px; padding:13px 15px; border:1px solid var(--line); border-radius:8px; background:var(--total-surface,#f6f8f6); font-size:.82rem; }.profit-controls label { color:var(--muted); font-weight:750; }.profit-controls select { min-width:250px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); font:inherit; }.profit-controls .muted { font-size:.75rem; }
.profit-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:22px; }
.profit-kpi { min-height:126px; padding:17px 18px; border:1px solid var(--line); border-top:3px solid var(--muted); border-radius:10px; background:var(--total-surface,#f6f8f6); display:flex; flex-direction:column; justify-content:space-between; gap:8px; }
.profit-kpi.profit { border-top-color:var(--orange); }.profit-kpi.zero { border-top-color:#8d9892; }.profit-kpi.cost { border-top-color:var(--teal); }.profit-kpi.current { border-top-color:var(--green); }
.profit-kpi strong { font-size:1.9rem; line-height:1; letter-spacing:-.06em; }.profit-kpi strong small { color:var(--muted); font-size:.75rem; letter-spacing:0; }
.day-lane { display:grid; grid-template-columns:repeat(24,1fr); gap:3px; height:48px; margin-top:25px; padding:4px; border:1px solid var(--line); border-radius:8px; background:var(--total-surface,#f6f8f6); }
.day-lane-cell { position:relative; display:flex; align-items:center; justify-content:center; min-width:0; border-radius:4px; color:#fff; font-size:.62rem; font-weight:750; cursor:default; }.day-lane-cell.opportunity { background:var(--orange); }.day-lane-cell.average-falls { background:var(--green); }.day-lane-cell.normal { background:var(--teal); }.day-lane-cell.net-negative { box-shadow:inset 0 0 0 2px rgba(255,255,255,.9); }.day-lane-cell.current { outline:3px solid var(--ink); outline-offset:1px; z-index:1; }
.day-lane-labels { display:flex; justify-content:space-between; padding:5px 3px 0; color:var(--muted); font-size:.68rem; }
.waste-summary { display:flex; flex-wrap:wrap; align-items:baseline; gap:10px; margin-top:20px; padding:13px 15px; border:1px solid color-mix(in srgb,var(--orange) 35%,var(--line)); border-left:3px solid var(--orange); border-radius:8px; background:color-mix(in srgb,var(--orange) 6%,transparent); font-size:.82rem; }.waste-summary strong { color:var(--orange); }.waste-summary span:nth-child(2) { font-weight:800; }.waste-summary .muted { color:var(--muted); }
.profit-legend { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin:18px 0 10px; color:var(--muted); font-size:.76rem; }.profit-legend .muted { margin-left:auto; }
.profit-dot { background:var(--orange); }.zero-dot { background:#8d9892; }.cost-dot { background:var(--teal); }.waste-dot { background:#ff9b73; }
.table-scroll { overflow-x:auto; border-top:1px solid var(--line); }.profit-table { width:100%; min-width:860px; border-collapse:collapse; font-size:.8rem; }.profit-table th,.profit-table td { padding:11px 12px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; }.profit-table th:first-child,.profit-table td:first-child { text-align:left; }.profit-table thead th { color:var(--muted); font-size:.7rem; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }.profit-table tbody tr { transition:background .15s ease; }.profit-table tbody tr.profit { background:color-mix(in srgb,var(--orange) 8%,transparent); }.profit-table tbody tr.zero { background:color-mix(in srgb,#8d9892 8%,transparent); }.profit-table tbody tr.cost { background:color-mix(in srgb,var(--teal) 7%,transparent); }.profit-table tbody tr.waste { box-shadow:inset 2px 0 #ff9b73; }.profit-table tbody tr.current { box-shadow:inset 3px 0 var(--ink); }.profit-table .net-value { font-weight:800; }.profit-table tr.profit .net-value { color:var(--orange); }.profit-table tr.zero .net-value { color:#69756e; }.profit-table tr.cost .net-value { color:var(--teal); }
.average-gap { font-weight:800; color:var(--green); }.average-gap.negative { color:var(--orange); }.status-pill { display:inline-flex; min-width:66px; justify-content:center; padding:4px 7px; border-radius:999px; font-size:.7rem; font-weight:800; }.status-pill.profit { background:var(--orange-soft); color:var(--orange); }.status-pill.zero { background:#e4e9e6; color:#59655e; }.status-pill.cost { background:var(--green-soft); color:var(--teal); }.status-pill.average { min-width:54px; background:var(--green-soft); color:var(--green); }.status-pill.waste { min-width:54px; background:rgba(255,155,115,.18); color:var(--orange); }
.profit-method { margin:38px 0 28px; padding:24px 0; border-top:1px solid var(--line); display:grid; grid-template-columns:.55fr 1.45fr; gap:38px; }.profit-method p { color:var(--muted); max-width:740px; margin:0; font-size:.82rem; }.profit-method strong { color:var(--ink); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body[data-theme="dark"] .profit-kpi,body[data-theme="dark"] .day-lane { background:rgba(9,5,21,.55); }.body[data-theme="dark"] .profit-table tbody tr.profit { background:rgba(255,122,88,.1); }
body[data-theme="dark"] .status-pill.zero { background:rgba(195,182,216,.16); color:var(--muted); }
body[data-theme="dark"] .status-pill.cost { background:rgba(70,243,223,.12); color:var(--teal); }
body[data-theme="dark"] .profit-table tbody tr.profit { background:rgba(255,122,88,.1); } body[data-theme="dark"] .profit-table tbody tr.cost { background:rgba(70,243,223,.08); } body[data-theme="dark"] .profit-table tbody tr.zero { background:rgba(195,182,216,.08); }
@media (max-width:900px) { .profit-kpis { grid-template-columns:repeat(2,1fr); } }
@media (max-width:650px) { .profit-hero { display:block; padding-top:32px; }.profit-hero .intro-meta { margin-top:18px; text-align:left; }.profit-kpis { gap:8px; }.profit-kpi { min-height:116px; padding:14px; }.profit-kpi strong { font-size:1.55rem; }.day-lane { gap:2px; }.day-lane-cell { font-size:.5rem; }.profit-legend .muted { width:100%; margin-left:0; }.profit-method { display:block; }.profit-method p { margin-top:15px; } }

/* GTA IV-inspirert nattmodus: neon, lilla himmel og diskret rutenett. */
body[data-theme="dark"] { --ink:#f6efff; --muted:#c3b6d8; --line:rgba(255,255,255,.11); --surface:rgba(30,17,54,.84); --canvas:#100a20; --green:#46f3df; --green-soft:rgba(70,243,223,.13); --teal:#46f3df; --orange:#ff7a58; --orange-soft:rgba(255,122,88,.14); --shadow:0 14px 38px rgba(0,0,0,.34); --total-surface:rgba(15,9,31,.58); isolation:isolate; background:radial-gradient(ellipse at 76% 6%,#752153 0,transparent 33%),radial-gradient(ellipse at 13% 33%,#263b70 0,transparent 31%),linear-gradient(180deg,#100a20 0%,#140e28 50%,#0e0820 100%); color:var(--ink); }
body[data-theme="dark"]::before { content:""; pointer-events:none; position:fixed; inset:0; z-index:-1; opacity:.18; background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size:45px 45px; mask-image:linear-gradient(#000,transparent 82%); }
body[data-theme="dark"] .site-header { background:rgba(15,9,31,.78); border-color:var(--line); }
body[data-theme="dark"] .brand,body[data-theme="dark"] .intro-meta strong,body[data-theme="dark"] .summary-card strong,body[data-theme="dark"] h1,body[data-theme="dark"] h2 { color:var(--ink); }
body[data-theme="dark"] .kicker { color:var(--aqua,#46f3df); }
body[data-theme="dark"] .main-nav a:hover,body[data-theme="dark"] .main-nav a.active,body[data-theme="dark"] .theme-toggle:hover { color:#fff; }
body[data-theme="dark"] .status,body[data-theme="dark"] .theme-toggle { color:var(--aqua); }
body[data-theme="dark"] .theme-toggle-track { background:var(--aqua); box-shadow:0 0 14px rgba(70,243,223,.35); }
body[data-theme="dark"] .period-switch,body[data-theme="dark"] .price-tabs { background:rgba(9,5,21,.55); border-color:var(--line); }
body[data-theme="dark"] .period.active,body[data-theme="dark"] .price-tab.active { color:#100a20; background:var(--aqua); box-shadow:0 0 20px rgba(70,243,223,.32); }
body[data-theme="dark"] .period:hover,body[data-theme="dark"] .price-tab:hover { color:#fff; }
body[data-theme="dark"] select { background:rgba(9,5,21,.7); color:var(--ink); border-color:var(--line); }
body[data-theme="dark"] .total-panel,body[data-theme="dark"] .summary-card,body[data-theme="dark"] .panel,body[data-theme="dark"] .homey-callout { border-color:var(--line); backdrop-filter:blur(11px); }
body[data-theme="dark"] .total-panel { background:linear-gradient(140deg,rgba(255,78,157,.17),rgba(30,17,54,.86) 58%); }
body[data-theme="dark"] .total-card.actual-total { background:linear-gradient(135deg,rgba(255,78,157,.25),rgba(50,21,76,.83) 59%); border-top-color:#ff4e9d; }
body[data-theme="dark"] .total-card:nth-child(2) { background:linear-gradient(135deg,rgba(70,243,223,.12),rgba(21,24,65,.83) 64%); }
body[data-theme="dark"] .total-card:nth-child(3) { background:linear-gradient(160deg,rgba(125,92,255,.22),rgba(22,14,46,.82)); }
body[data-theme="dark"] .total-breakdown,body[data-theme="dark"] .forecast-strip { background:rgba(9,5,21,.55); }
body[data-theme="dark"] .total-breakdown { border-left-color:var(--aqua); }
body[data-theme="dark"] .forecast-values { color:var(--aqua); }
body[data-theme="dark"] .chart-bar.orange,body[data-theme="dark"] .impact-bar.saving { fill:#ff7a58; }
body[data-theme="dark"] .chart-bar.teal,body[data-theme="dark"] .impact-bar.loss { fill:#46f3df; }
body[data-theme="dark"] .price-low { fill:#46f3df; } body[data-theme="dark"] .price-high { fill:#ff7a58; }
body[data-theme="dark"] .grid-line { stroke:rgba(255,255,255,.13); } body[data-theme="dark"] .zero-line { stroke:#c3b6d8; } body[data-theme="dark"] .compare-line { stroke:#c3b6d8; }
body[data-theme="dark"] .chart-tooltip { background:rgba(30,17,54,.96); border-color:rgba(255,255,255,.2); color:var(--ink); }
body[data-theme="dark"] .homey-callout { background:linear-gradient(90deg,rgba(255,78,157,.18),rgba(125,92,255,.15),rgba(70,243,223,.13)); }
body[data-theme="dark"] .primary-button { background:#ff4e9d; color:#100a20; box-shadow:0 0 18px rgba(255,78,157,.25); } body[data-theme="dark"] .primary-button:hover { background:#ff7a58; }
body[data-theme="dark"] .button-link { color:var(--aqua); border-color:rgba(70,243,223,.4); }
body[data-theme="dark"] .badge { background:rgba(70,243,223,.14); color:var(--aqua); }
body[data-theme="dark"] .connection-box,body[data-theme="dark"] .price-summary div { background:rgba(9,5,21,.55); }
body[data-theme="dark"] .impact-chart-wrap svg { background:linear-gradient(180deg,transparent 49.5%,rgba(70,243,223,.08) 50%,transparent 50.5%); }
body[data-theme="dark"] .homey-chart path[fill="#dff3e7"] { fill:rgba(70,243,223,.13); }
