/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-9r4bbrc61b] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-9r4bbrc61b] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/Home.razor.rz.scp.css */
.hero[b-8sz7j32em4] {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, #1b2a44 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 100%, #14223a 0%, transparent 70%),
        linear-gradient(160deg, #0a1120 0%, #0e1a2e 45%, #0b1322 100%);
    color: var(--text);
}

/* Fine blueprint grid: a quiet nod to engineering precision */
.grid[b-8sz7j32em4] {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
        linear-gradient(var(--grid-minor) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 100%);
}

.glow[b-8sz7j32em4] {
    position: absolute;
    width: min(900px, 120vw);
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201, 162, 92, 0.13) 0%, rgba(201, 162, 92, 0.04) 35%, transparent 65%);
    animation: breathe-b-8sz7j32em4 9s ease-in-out infinite;
    pointer-events: none;
}

.content[b-8sz7j32em4] {
    position: relative;
    text-align: center;
    max-width: 100%;
    animation: rise-b-8sz7j32em4 1.6s var(--ease-settle) both;
}

.eyebrow[b-8sz7j32em4] {
    margin: 0 0 1.5rem;
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
}

.title[b-8sz7j32em4] {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    /* Skalerer med bredden, så "Kenneth.systems" altid står på én linje, også på smalle mobiler. */
    font-size: clamp(1.5rem, 9.5vw, 8.5rem);
    line-height: 1;
    letter-spacing: -0.035em;
    background: linear-gradient(180deg, #f4f6fa 0%, #c9d3e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.dot[b-8sz7j32em4] {
    background: linear-gradient(180deg, #e8c987 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.rule[b-8sz7j32em4] {
    width: 72px;
    height: 2px;
    margin: 2.25rem auto;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.tagline[b-8sz7j32em4] {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.15rem, 3.4vw, 2rem);
    letter-spacing: 0.02em;
    color: var(--muted-strong);
}

.ellipsis[b-8sz7j32em4] {
    color: var(--accent);
    animation: blink-b-8sz7j32em4 2.4s steps(1) infinite;
}

.corner-link[b-8sz7j32em4] {
    position: absolute;
    right: 1.75rem;
    bottom: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--faint);
    text-decoration: none;
    transition: color 0.4s var(--ease-settle);
}

.corner-link-2[b-8sz7j32em4] {
    bottom: 3.2rem;
}
    .corner-link:hover[b-8sz7j32em4],
    .corner-link:focus-visible[b-8sz7j32em4] {
        color: var(--accent);
    }

@keyframes rise-b-8sz7j32em4 {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe-b-8sz7j32em4 {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes blink-b-8sz7j32em4 {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .content[b-8sz7j32em4], .glow[b-8sz7j32em4], .ellipsis[b-8sz7j32em4] { animation: none; }
}
/* /Components/Pages/Spotpriser.razor.rz.scp.css */
/* Siden fylder mindst skærmen, og grafen tager den plads, der er tilbage; kun lave skærme får scrollbar. */
.page[b-v28ohwsvg0] {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: var(--text);
}

.head[b-v28ohwsvg0] {
    margin-bottom: 2rem;
}

.head-top[b-v28ohwsvg0] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Valg af prisområde øverst til højre */
.area-switch[b-v28ohwsvg0] {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(201, 162, 92, 0.06);
    border: 1px solid rgba(201, 162, 92, 0.25);
}

    .area-switch a[b-v28ohwsvg0] {
        padding: 0.35rem 0.9rem;
        border-radius: 999px;
        font-size: 0.9rem;
        color: var(--muted);
        text-decoration: none;
        transition: background 0.35s var(--ease-settle), color 0.35s var(--ease-settle);
    }

        .area-switch a:hover[b-v28ohwsvg0] {
            color: var(--text);
        }

        .area-switch a.active[b-v28ohwsvg0] {
            background: rgba(201, 162, 92, 0.2);
            color: var(--text);
        }

    .area-switch small[b-v28ohwsvg0] {
        margin-left: 0.2rem;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        color: var(--faint);
    }

.brand[b-v28ohwsvg0] {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.dot[b-v28ohwsvg0] {
    color: var(--accent);
}

.eyebrow[b-v28ohwsvg0] {
    margin: 2rem 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--faint);
}

.title[b-v28ohwsvg0] {
    margin: 0;
    font-weight: 600;
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.empty[b-v28ohwsvg0] {
    color: var(--muted);
}

/* Nøgletal */
/* Hvert kort har sin egen tone (--tone som "r, g, b"), der giver lysstribe, glød og prik i etiketten. */
.stats[b-v28ohwsvg0] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.stat[b-v28ohwsvg0] {
    --tone: 201, 162, 92;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.85rem 0.7rem;
    border-radius: 10px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(var(--tone), 0.16), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 55%),
        rgba(5, 10, 22, 0.5);
    border: 1px solid rgba(var(--tone), 0.45);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 18px -10px rgba(var(--tone), 0.5);
    backdrop-filter: blur(6px);
    transition: transform 0.35s var(--ease-settle), border-color 0.35s var(--ease-settle), box-shadow 0.35s var(--ease-settle);
}

    /* Tynd lysstribe langs toppen */
    .stat[b-v28ohwsvg0]::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(var(--tone), 0.9) 30%, rgba(var(--tone), 0.9) 70%, transparent);
        opacity: 0.7;
    }

    .stat:hover[b-v28ohwsvg0] {
        transform: translateY(-2px);
        border-color: rgba(var(--tone), 0.75);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 10px 24px -10px rgba(var(--tone), 0.65);
    }

.stat-now[b-v28ohwsvg0] {
    border-color: rgba(var(--tone), 0.7);
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(var(--tone), 0.3), transparent 65%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01) 55%),
        rgba(5, 10, 22, 0.5);
}

    .stat-now[b-v28ohwsvg0]::before {
        opacity: 1;
    }

.stat-min[b-v28ohwsvg0] { --tone: 76, 199, 106; }
.stat-max[b-v28ohwsvg0] { --tone: 255, 74, 42; }
.stat-avg[b-v28ohwsvg0] { --tone: 108, 184, 255; }
.stat-car[b-v28ohwsvg0] { --tone: 166, 227, 161; }

.stat-label[b-v28ohwsvg0] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

    .stat-label[b-v28ohwsvg0]::before {
        content: "";
        flex: none;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgb(var(--tone));
        box-shadow: 0 0 6px rgba(var(--tone), 0.9);
    }

/* Prikken pulserer på "lige nu" */
.stat-now .stat-label[b-v28ohwsvg0]::before {
    animation: pulse-b-v28ohwsvg0 2.4s ease-in-out infinite;
}

@keyframes pulse-b-v28ohwsvg0 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--tone), 0.7); }
    50% { box-shadow: 0 0 0 5px rgba(var(--tone), 0); }
}

.stat-value[b-v28ohwsvg0] {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-now .stat-value[b-v28ohwsvg0] {
    background: linear-gradient(180deg, #fff6e4, rgb(var(--tone)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

    .stat-value small[b-v28ohwsvg0] {
        font-size: 0.75rem;
        font-weight: 300;
        color: var(--muted);
        -webkit-text-fill-color: var(--muted);
    }

/* Bilens ladestatus fra Tessie */
.battery[b-v28ohwsvg0] {
    position: relative;
    display: block;
    height: 6px;
    margin: 0.15rem 0 0.1rem;
    border-radius: 3px;
    background: rgba(148, 170, 205, 0.15);
}

.battery-fill[b-v28ohwsvg0] {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 3px;
    background: #a6e3a1;
}

.battery-charging[b-v28ohwsvg0] {
    animation: charging-b-v28ohwsvg0 2.8s ease-in-out infinite;
}

.battery-limit[b-v28ohwsvg0] {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    margin-left: -1px;
    background: var(--muted-strong);
}

@keyframes charging-b-v28ohwsvg0 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stat-sub[b-v28ohwsvg0] {
    font-size: 0.75rem;
    color: var(--faint);
}

/* Billig strøm grænse */
.threshold[b-v28ohwsvg0] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

    .threshold label[b-v28ohwsvg0] {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
    }

.threshold-input[b-v28ohwsvg0] {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: rgba(201, 162, 92, 0.06);
    border: 1px solid rgba(201, 162, 92, 0.25);
}

    .threshold-input:focus-within[b-v28ohwsvg0] {
        border-color: var(--accent);
    }

    .threshold-input input[b-v28ohwsvg0] {
        width: 6rem;
        padding: 0.45rem 0.6rem;
        border: 0;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-variant-numeric: tabular-nums;
        outline: none;
    }

.threshold-unit[b-v28ohwsvg0] {
    padding-right: 0.7rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.threshold-legend[b-v28ohwsvg0] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.swatch[b-v28ohwsvg0] {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #6cb8ff;
}

.swatch-min[b-v28ohwsvg0] {
    background: #4cc76a;
}

.swatch-max[b-v28ohwsvg0] {
    background: #ff4a2a;
}

.swatch-fee[b-v28ohwsvg0] {
    background: #6b7484;
}

.swatch-sub[b-v28ohwsvg0] {
    background: #ffe14d;
}

/* Graf */
.chart[b-v28ohwsvg0] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 320px;
    margin: 0;
    padding: 1rem 1rem 0.75rem;
    border-radius: 14px;
    background: rgba(5, 10, 22, 0.55);
    border: 1px solid rgba(201, 162, 92, 0.12);
}

.chart-caption[b-v28ohwsvg0] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--muted-strong);
}

.chart-range[b-v28ohwsvg0] {
    color: var(--faint);
    font-size: 0.85rem;
}

.chart-frame[b-v28ohwsvg0] {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.chart-grid[b-v28ohwsvg0] {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 3.25rem 1fr;
    grid-template-rows: 1fr 1.75rem;
    padding-top: 1.25rem;
}

.y-axis[b-v28ohwsvg0] {
    position: relative;
}

    .y-axis .axis-label[b-v28ohwsvg0] {
        position: absolute;
        right: 0.5rem;
        transform: translateY(-50%);
    }

.plot[b-v28ohwsvg0] {
    position: relative;
    min-height: 0;
}

    .plot svg[b-v28ohwsvg0] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

.x-axis[b-v28ohwsvg0] {
    position: relative;
    grid-column: 2;
}

    .x-axis .axis-label[b-v28ohwsvg0] {
        position: absolute;
        top: 0.45rem;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .x-axis .axis-first[b-v28ohwsvg0] {
        transform: none;
    }

.grid[b-v28ohwsvg0] {
    stroke: rgba(148, 170, 205, 0.1);
    stroke-width: 1;
}

.grid-zero[b-v28ohwsvg0] {
    stroke: rgba(148, 170, 205, 0.35);
}

.day-line[b-v28ohwsvg0] {
    stroke: rgba(148, 170, 205, 0.3);
    stroke-dasharray: 3 4;
}

.axis-label[b-v28ohwsvg0] {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.axis-day[b-v28ohwsvg0] {
    color: var(--muted-strong);
}

.hit[b-v28ohwsvg0] {
    fill: transparent;
}

.bar[b-v28ohwsvg0] {
    fill: #ff9f43;
    transition: fill 0.3s var(--ease-settle);
}

/* Tillæg og afgifter i bunden af hver søjle. */
.fee[b-v28ohwsvg0] {
    fill: #6b7484;
}

.fee-past[b-v28ohwsvg0] {
    fill: rgba(107, 116, 132, 0.4);
}

/* Abonnementet oven på tarifferne. */
.sub[b-v28ohwsvg0] {
    fill: #ffe14d;
}

.sub-past[b-v28ohwsvg0] {
    fill: rgba(255, 225, 77, 0.4);
}

.bar-past[b-v28ohwsvg0] {
    fill: rgba(255, 159, 67, 0.35);
}

.bar-now[b-v28ohwsvg0] {
    fill: #fff1d6;
}

.bar-cheap[b-v28ohwsvg0] {
    fill: #6cb8ff;
}

.bar-past.bar-cheap[b-v28ohwsvg0] {
    fill: rgba(108, 184, 255, 0.35);
}

.bar-now.bar-cheap[b-v28ohwsvg0] {
    fill: #c6e4ff;
}

/* Det laveste og højeste kvarter fremover, i samme farver som deres etiketter. */
.bar.bar-min[b-v28ohwsvg0] {
    fill: #4cc76a;
}

.bar.bar-max[b-v28ohwsvg0] {
    fill: #ff4a2a;
}

.peak-label[b-v28ohwsvg0] {
    position: absolute;
    transform: translate(-50%, calc(-100% - 4px));
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(5, 10, 22, 0.85);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    pointer-events: none;
}

.peak-min[b-v28ohwsvg0] {
    border: 1px solid #4cc76a;
}

.peak-max[b-v28ohwsvg0] {
    border: 1px solid #ff4a2a;
}

.col.active .bar[b-v28ohwsvg0],
.col:hover .bar[b-v28ohwsvg0] {
    fill: var(--accent);
}

/* Prisgrænsen: svag grå stiplet linje, der ikke fanger musen, så tooltippet stadig virker. */
.limit-line[b-v28ohwsvg0] {
    stroke: rgba(200, 210, 225, 0.45);
    stroke-width: 1;
    stroke-dasharray: 6 5;
    pointer-events: none;
}

.now-line[b-v28ohwsvg0] {
    stroke: #fff1d6;
    stroke-width: 1.5;
}

.now-label[b-v28ohwsvg0] {
    position: absolute;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    padding: 0.1rem 0.35rem;
    border: 1px solid #fff1d6;
    border-radius: 4px;
    background: rgba(5, 10, 22, 0.85);
    font-family: var(--font-mono);
    font-size: 12px;
    color: #fff1d6;
    white-space: nowrap;
}

.tooltip[b-v28ohwsvg0] {
    position: absolute;
    transform: translate(-50%, -100%);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: #e8ecf3;
    color: #0a1120;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.note[b-v28ohwsvg0] {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--faint);
}

.fineprint[b-v28ohwsvg0] {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
    .battery-charging[b-v28ohwsvg0],
    .stat-now .stat-label[b-v28ohwsvg0]::before { animation: none; }

    .stat:hover[b-v28ohwsvg0] { transform: none; }
}

@media (max-width: 600px) {
    .chart[b-v28ohwsvg0] {
        padding: 0.75rem 0.5rem 0.5rem;
    }

    .x-axis .axis-label:nth-child(even)[b-v28ohwsvg0] {
        display: none;
    }
}
