:root {
    color-scheme: light;

    --bg: #eef2f5;
    --card: #ffffff;
    --card-soft: #f7f9fb;

    --text: #17212b;
    --muted: #607080;
    --border: #d5dde5;

    --green: #159447;
    --green-dark: #087536;
    --green-soft: #eaf8ef;

    --yellow: #b86d00;
    --yellow-soft: #fff5df;

    --red: #cf3030;
    --red-soft: #fff0f0;

    --blue: #1769c2;

    --header: #111827;
    --header-text: #ffffff;

    --shadow: 0 2px 10px rgba(0,0,0,.055);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================================
   HEADER
   ============================================================ */

.top,
header {
    background: var(--header);
    color: var(--header-text);
}

.top {
    padding: 18px 24px;
}

.topin,
.header-inner {
    width: min(1500px, calc(100% - 40px));
    max-width: 1500px;
    margin: 0 auto;
}

.topin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.brand {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.7px;
    line-height: 1;
}

.logo span,
.brand span {
    color: #4ade80;
}

.subtitle {
    color: #cbd5e1;
    font-size: 15px;
    margin-top: 7px;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 750;
    padding: 12px 15px;
    border-radius: 10px;
}

nav a:hover {
    background: rgba(255,255,255,.10);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap,
main {
    width: min(1500px, calc(100% - 40px));
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 0 60px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

h1 {
    font-size: 2.35rem;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -.5px;
}

h2 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 0 0 16px;
}

h3 {
    font-size: 1.3rem;
}

p {
    font-size: 1rem;
}

.muted {
    color: var(--muted);
    font-size: 1rem;
}

a {
    color: var(--blue);
}

/* ============================================================
   INPUT / KNAPPAR
   ============================================================ */

input,
select,
textarea {
    width: 100%;
    min-height: 58px;
    background: #fff;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 18px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 4px solid rgba(21,148,71,.14);
    border-color: var(--green);
}

label {
    display: block;
    font-size: 18px;
    font-weight: 750;
    margin: 14px 0 7px;
}

button,
.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    padding: 13px 24px;
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button:hover {
    filter: brightness(.96);
}

.green {
    background: var(--green);
}

.red {
    background: var(--red);
}

input[type="checkbox"],
input[type="radio"] {
    appearance: auto;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    margin: 0;
    accent-color: var(--green);
    flex: 0 0 30px;
}

/* ============================================================
   FLASH
   ============================================================ */

.flash {
    padding: 18px 20px;
    border-radius: 13px;
    background: var(--green-soft);
    border: 1px solid #a9dfbc;
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
}

/* ============================================================
   KONTO - STATIONER
   ============================================================ */

.station {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 14px 8px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.station:last-child {
    border-bottom: 0;
}

.station:hover {
    background: var(--card-soft);
}

.stationname {
    font-size: 19px;
    font-weight: 850;
}

.status {
    font-size: 16px;
    font-weight: 750;
    margin-top: 3px;
}

.ok {
    color: var(--green-dark);
}

.warn {
    color: var(--yellow);
}

.bad {
    color: var(--red);
}

/* ============================================================
   SCHEMA
   ============================================================ */

.schedule-day {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) 1fr 1fr;
    gap: 22px;
    align-items: end;
}

.schedule-day .day-toggle {
    align-self: center;
}

.schedule-day .day-toggle label {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 21px;
    margin: 0;
    cursor: pointer;
}

.schedule-day label {
    margin-top: 0;
}

/* ============================================================
   STARTSIDAN
   ============================================================ */

.home-header {
    background: var(--header);
    color: #fff;
    padding: 22px 0;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.summary-number {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.summary-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    margin-top: 8px;
}

.controls {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(238,242,245,.97);
    padding: 8px 0 15px;
}

.search {
    width: 100%;
    min-height: 62px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 14px;
    font-size: 19px;
    padding: 15px 18px;
    outline: none;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 11px;
}

.filter {
    min-height: 48px;
    min-width: 0;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    padding: 9px 17px;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
}

.filter.active {
    background: var(--header);
    color: #fff;
}

.home-station {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.station-main {
    padding: 21px 22px;
}

.station-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.station-name {
    font-size: 21px;
    font-weight: 900;
}

.city {
    color: var(--muted);
    font-size: 17px;
    margin-top: 4px;
}

.home-status {
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap;
}

.home-status.online {
    color: var(--green);
}

.home-status.limited {
    color: var(--yellow);
}

.home-status.offline {
    color: var(--red);
}

.home-status.unknown {
    color: var(--muted);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.badge {
    font-size: 14px;
    font-weight: 750;
    background: var(--card-soft);
    border: 1px solid var(--border);
    padding: 5px 9px;
    border-radius: 8px;
}

.description {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 10px;
    background: var(--card-soft);
    font-size: 16px;
    font-weight: 650;
}

.products {
    border-top: 1px solid var(--border);
    padding: 13px 22px 16px;
}

.product {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 6px 0;
    font-size: 16px;
}

.price {
    font-weight: 900;
    white-space: nowrap;
}

.footer {
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    padding: 28px 10px 50px;
}

.hidden {
    display: none !important;
}

/* ============================================================
   DESKTOP - MAXA SKÄRMEN
   ============================================================ */

@media (min-width: 1200px) {
    html {
        font-size: 19px;
    }

    .wrap,
    main,
    .topin,
    .header-inner {
        width: min(1500px, calc(100% - 70px));
    }

    .account-groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 18px;
    }

    .account-groups .card {
        margin-bottom: 0;
    }
}

/* ============================================================
   MOBIL / LASTBIL
   ============================================================ */

@media (max-width: 700px) {

    html {
        font-size: 18px;
    }

    .top {
        padding: 15px 12px;
    }

    .topin,
    .header-inner,
    .wrap,
    main {
        width: calc(100% - 20px);
    }

    .topin {
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
    }

    .logo,
    .brand {
        font-size: 28px;
    }

    nav {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 7px;
    }

    nav a {
        text-align: center;
        padding: 13px 7px;
        font-size: 16px;
        background: rgba(255,255,255,.08);
    }

    .wrap,
    main {
        padding-top: 14px;
    }

    .card {
        padding: 19px 16px;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .summary {
        gap: 7px;
    }

    .summary-card {
        padding: 15px 5px;
        border-radius: 12px;
    }

    .summary-number {
        font-size: 27px;
    }

    .summary-label {
        font-size: 11px;
    }

    .search {
        min-height: 60px;
        font-size: 18px;
    }

    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .filter {
        min-height: 50px;
        font-size: 16px;
    }

    .station-main {
        padding: 18px 16px;
    }

    .station-head {
        flex-direction: column;
        gap: 8px;
    }

    .station-name {
        font-size: 20px;
    }

    .home-status {
        font-size: 17px;
    }

    .products {
        padding: 13px 16px 16px;
    }

    .product {
        font-size: 16px;
    }

    .station {
        min-height: 82px;
        gap: 15px;
    }

    .stationname {
        font-size: 18px;
    }

    input[type="checkbox"] {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .schedule-day {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .schedule-day .day-toggle label {
        min-height: 48px;
        font-size: 20px;
    }

    input[type="time"] {
        min-height: 62px;
        font-size: 20px;
    }

    button,
    .button,
    input[type="submit"] {
        width: 100%;
        min-height: 62px;
        font-size: 19px;
    }
}


/* =========================================================
   GASWATCH V5
   ========================================================= */

.home-actions {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:5px 0 11px;
}

.home-action {
    min-height:50px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 17px;
    border-radius:12px;
    background:#fff;
    border:1px solid var(--border);
    color:var(--text);
    font-weight:850;
    text-decoration:none;
}

.shift-buttons {
    display:grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr));
    gap:10px;
}

.shift-buttons button {
    min-width:0;
}

.shift-buttons .secondary {
    background:#647381;
}

.schedule-grid {
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:18px;
}

.schedule-card {
    margin:0;
}

.schedule-day-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:18px;
}

.day-switch {
    display:flex;
    align-items:center;
    gap:13px;
    margin:0;
    font-size:22px;
    cursor:pointer;
}

.day-state {
    background:#e6eaee;
    color:#65717d;
    padding:6px 11px;
    border-radius:30px;
    font-size:13px;
    font-weight:900;
}

.day-state.active {
    background:var(--green-soft);
    color:var(--green-dark);
}

.time-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.time-grid label {
    margin-top:0;
}

.time-grid select {
    font-size:21px;
    font-weight:850;
    font-variant-numeric:tabular-nums;
}

.copy-button {
    width:100%;
    margin-top:15px;
    min-height:50px;
    background:#596777;
}

.save-bar {
    position:sticky;
    bottom:0;
    z-index:30;
    padding:15px 0;
    margin-top:18px;
    background:
        linear-gradient(
            transparent,
            var(--bg) 25%
        );
}

.save-big {
    width:100%;
    min-height:66px;
    font-size:21px;
}

.fuel-tabs {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-bottom:20px;
}

.fuel-tabs a {
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:13px;
    color:var(--text);
    text-decoration:none;
    font-size:19px;
    font-weight:900;
}

.fuel-tabs span {
    min-width:27px;
    height:27px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--green-soft);
    color:var(--green-dark);
    font-size:13px;
}

.price-section {
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    margin-bottom:20px;
    box-shadow:var(--shadow);
    scroll-margin-top:20px;
}

.price-section-head {
    padding:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:var(--card-soft);
    border-bottom:1px solid var(--border);
}

.price-section-head h2 {
    margin:0;
    font-size:28px;
}

.price-highlight {
    text-align:right;
}

.price-highlight span {
    display:block;
    color:var(--muted);
    font-size:14px;
    font-weight:750;
}

.price-highlight strong {
    display:block;
    color:var(--green-dark);
    font-size:23px;
}

.price-row {
    display:grid;
    grid-template-columns:
        55px minmax(0,1fr) auto;
    gap:16px;
    align-items:center;
    padding:17px 22px;
    border-bottom:1px solid var(--border);
}

.price-row:last-child {
    border-bottom:0;
}

.price-row.cheapest {
    background:var(--green-soft);
}

.price-rank {
    text-align:center;
    font-weight:900;
    font-size:18px;
}

.price-name {
    font-size:19px;
    font-weight:900;
}

.price-location {
    color:var(--muted);
    font-size:15px;
}

.price-fuel {
    color:var(--green-dark);
    font-size:14px;
    font-weight:800;
    margin-top:3px;
}

.price-value {
    text-align:right;
    white-space:nowrap;
}

.price-value strong {
    display:block;
    font-size:24px;
    line-height:1;
}

.price-value span {
    display:block;
    color:var(--muted);
    font-size:14px;
    margin-top:5px;
}

.empty-price {
    padding:25px;
    color:var(--muted);
}

.legal-box {
    margin:35px 0 10px;
    padding:22px 24px;
    background:#e3e9ed;
    border:1px solid #cbd4da;
    border-radius:15px;
    color:#44515d;
}

.legal-box strong {
    color:#27333d;
    font-size:16px;
}

.legal-box p {
    font-size:14px;
    line-height:1.55;
    margin:8px 0;
}


@media(max-width:700px) {

    .home-actions {
        display:grid;
        grid-template-columns:1fr;
    }

    .home-action {
        min-height:58px;
        font-size:18px;
    }

    .shift-buttons {
        grid-template-columns:1fr 1fr;
    }

    .shift-buttons button:last-child {
        grid-column:1 / -1;
    }

    .schedule-grid {
        grid-template-columns:1fr;
    }

    .time-grid {
        grid-template-columns:1fr 1fr;
    }

    .day-switch {
        font-size:21px;
    }

    .fuel-tabs {
        grid-template-columns:1fr 1fr;
    }

    .fuel-tabs a {
        min-height:58px;
    }

    .price-section-head {
        padding:17px 14px;
    }

    .price-row {
        grid-template-columns:
            38px minmax(0,1fr) auto;
        gap:8px;
        padding:16px 12px;
    }

    .price-name {
        font-size:17px;
    }

    .price-value strong {
        font-size:20px;
    }

    .legal-box {
        padding:17px 15px;
    }

}

