:root {
    --bg: #071b23;
    --bg-deep: #04171d;
    --panel: #0f2d38;
    --panel-2: #113943;
    --panel-3: #154a58;
    --panel-soft: rgba(22, 48, 57, 0.88);
    --line: rgba(167, 205, 220, 0.18);
    --line-strong: rgba(167, 205, 220, 0.28);
    --text: #ecf9ff;
    --muted: #a8c9d3;
    --green: #6de0a3;
    --green-soft: rgba(109, 224, 163, 0.14);
    --red: #ff7a7a;
    --red-soft: rgba(255, 122, 122, 0.12);
    --yellow: #ffcf66;
    --yellow-soft: rgba(255, 207, 102, 0.12);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: linear-gradient(180deg, var(--bg) 0%, #0d2a32 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    padding: 28px 26px 40px;
}

main {
    max-width: 1440px;
    margin: 0 auto;
}

h1, h2, h3, p { margin: 0; }

h1 {
    font-size: clamp(2rem, 2.8vw, 3rem);
    letter-spacing: -0.06em;
    font-weight: 700;
    margin-bottom: 22px;
}

h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

p { color: var(--text); }

.charging-toolbar,
.station-card,
.available-stations,
.card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.charging-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(15, 45, 56, 0.9);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.charging-toolbar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.charging-toolbar strong {
    font-size: 1.12rem;
    color: var(--text);
    font-weight: 700;
}

.charging-toolbar span {
    color: var(--muted);
    font-size: 0.8rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--green);
}

.live-indicator > span:first-child {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    box-shadow: 0 0 14px rgba(109, 224, 163, 0.9);
    animation: live-pulse 1.5s ease-in-out infinite;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.fullscreen-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.fullscreen-toggle:hover {
    border-color: var(--green);
    background: var(--panel-3);
}

.fullscreen-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.live-indicator-label {
    color: inherit;
    font-size: inherit !important;
    font-weight: inherit;
    letter-spacing: inherit;
}

.live-indicator.is-refreshing {
    background: var(--yellow-soft);
    color: var(--yellow);
}

.live-indicator.is-refreshing > span:first-child {
    background: var(--yellow);
    box-shadow: 0 0 14px rgba(255, 207, 102, 0.85);
    animation: refresh-pulse 0.8s ease-in-out infinite alternate;
}

.live-indicator.has-refresh-error {
    background: transparent;
    color: var(--red);
}

.live-indicator.has-refresh-error > span:first-child {
    background: var(--red);
    box-shadow: 0 0 14px rgba(255, 122, 122, 0.8);
}

@keyframes refresh-pulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@keyframes live-pulse {
    50% { opacity: 0.5; transform: scale(0.82); }
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.station-card {
    background: linear-gradient(180deg, var(--panel-2) 0%, rgba(11, 33, 39, 0.98) 100%);
    border-radius: 18px;
    padding: 18px 18px 12px;
}

.station-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.station-card-header h2 {
    font-size: 1.28rem;
    margin-bottom: 3px;
}

.station-card-header p {
    color: var(--muted);
    font-size: 0.78rem;
}

.station-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--yellow-soft);
    color: var(--yellow);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.station-chargers {
    display: grid;
    gap: 10px;
}

.charger-tile {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.2s ease;
}

.charger-tile:hover { transform: translateY(-1px); }

.charger-free {
    background: rgba(109, 224, 163, 0.08);
    border-color: rgba(109, 224, 163, 0.18);
}

.charger-busy {
    background: rgba(255, 122, 122, 0.08);
    border-color: rgba(255, 122, 122, 0.18);
}

.charger-unavailable {
    background: var(--yellow-soft);
    border-color: rgba(255, 207, 102, 0.2);
}

.charger-unavailable b {
    color: var(--yellow);
}

.charger-shared-status {
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--line);
}

.charger-shared-status b {
    max-width: 90px;
    color: var(--muted);
    text-align: right;
    white-space: normal;
}

.charger-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.1rem;
}

.charger-tile strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.9rem;
    color: var(--text);
}

.charger-tile span {
    color: var(--muted);
    font-size: 0.74rem;
}

.charger-tile .connector-evse {
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    opacity: 0.85;
}

.charger-tile .connector-specs {
    margin-top: 3px;
    color: var(--text);
    font-size: 0.7rem;
}

.charger-tile .connector-state {
    display: block;
    margin-top: 4px;
}

.charger-tile b {
    font-size: 0.7rem;
    color: var(--text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.station-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
}

.available-stations {
    background: rgba(12, 36, 42, 0.9);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-heading span {
    color: var(--muted);
    font-size: 0.78rem;
}

.availability-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px;
    border-radius: 12px;
    background: rgba(255, 122, 122, 0.06);
    border: 1px solid rgba(255, 122, 122, 0.15);
}

.availability-message strong,
.availability-message span { color: var(--text); }

.availability-message span { color: var(--muted); font-size: 0.8rem; }

.available-station-list {
    display: grid;
    gap: 12px;
}

.available-station-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
}

.available-station-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.available-station-item strong {
    color: var(--text);
    font-size: 0.9rem;
}

.available-station-item span {
    color: var(--muted);
    font-size: 0.78rem;
}

.available-label {
    background: rgba(109, 224, 163, 0.12);
    color: var(--green);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.live-session-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    background:
        radial-gradient(ellipse at 92% 0%, rgba(109, 224, 163, 0.1), transparent 34%),
        linear-gradient(145deg, rgba(17, 57, 67, 0.98), rgba(5, 24, 31, 0.98));
    border-color: rgba(109, 224, 163, 0.24);
}

.monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.monitor-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.monitor-header h2 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.monitor-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.monitor-status > span,
.monitor-source > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.monitor-status-active {
    color: var(--green);
    border-color: rgba(109, 224, 163, 0.28);
    background: var(--green-soft);
}

.monitor-status-active > span,
.monitor-source > span {
    background: var(--green);
    box-shadow: 0 0 12px rgba(109, 224, 163, 0.72);
}

.monitor-status-idle {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.monitor-status-idle > span {
    background: var(--muted);
}

.monitor-session {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) 2fr;
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
}

.monitor-session-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(3, 18, 24, 0.48);
}

.monitor-session-title span,
.monitor-metric > span {
    color: var(--muted);
    font-size: 0.72rem;
}

.monitor-session-title strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.9rem;
}

.monitor-empty {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(3, 18, 24, 0.36);
}

.monitor-empty strong {
    color: var(--text);
    font-size: 0.9rem;
}

.monitor-empty span {
    color: var(--muted);
    font-size: 0.78rem;
}

.soc-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(3, 18, 24, 0.42);
}

.soc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.soc-header .monitor-eyebrow {
    margin-bottom: 4px;
}

.soc-header h3 {
    color: var(--text);
    font-size: 1rem;
}

.soc-current {
    color: var(--green);
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.soc-current.soc-pending {
    color: var(--yellow);
    font-size: 0.78rem;
}

.soc-chart {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    height: 190px;
    margin-top: 18px;
}

.soc-axis-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px 0 7px;
    color: var(--muted);
    font-size: 0.65rem;
}

.soc-chart svg {
    width: 100%;
    height: 180px;
    overflow: visible;
}

.soc-gridline {
    stroke: rgba(167, 205, 220, 0.17);
    stroke-dasharray: 4 6;
    stroke-width: 1;
}

.soc-line {
    fill: none;
    stroke: var(--green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(109, 224, 163, 0.45));
}

.soc-point {
    fill: var(--bg-deep);
    stroke: var(--green);
    stroke-width: 3;
}

.soc-range {
    display: grid;
    grid-template-columns: auto minmax(30px, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.soc-range > div:not(.soc-range-track) {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.soc-range span,
.soc-caption {
    color: var(--muted);
    font-size: 0.68rem;
}

.soc-range strong {
    color: var(--text);
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.soc-range-final {
    text-align: right;
}

.soc-range-track {
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(109, 224, 163, 0.15), var(--green));
}

.soc-caption {
    margin-top: 12px;
}

.soc-empty {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 15px;
    border-radius: 11px;
    background: rgba(255, 207, 102, 0.06);
    border: 1px solid rgba(255, 207, 102, 0.14);
}

.soc-empty-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--yellow-soft);
    color: var(--yellow);
    font-weight: 800;
}

.soc-empty > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.soc-empty strong {
    color: var(--text);
    font-size: 0.8rem;
}

.soc-empty span:not(.soc-empty-icon) {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.charge-details {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(3, 18, 24, 0.42);
}

.charge-details .soc-header {
    margin-bottom: 14px;
}

.charge-details .monitor-eyebrow {
    margin-bottom: 4px;
}

.charge-details h3 {
    color: var(--text);
    font-size: 1rem;
}

.charge-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.charge-details-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.charge-details-grid span {
    color: var(--muted);
    font-size: 0.67rem;
}

.charge-details-grid strong {
    color: var(--text);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.charge-details-pending {
    margin-bottom: 12px;
    color: var(--yellow);
    font-size: 0.75rem;
    line-height: 1.5;
}

.live-session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 0;
}

.monitor-metric {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 126px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(3, 18, 24, 0.48);
}

.monitor-metric > strong {
    color: var(--green);
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    letter-spacing: -0.04em;
}

.monitor-metric > strong small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0;
}

.monitor-metric > strong.metric-unavailable {
    color: var(--yellow);
    font-size: 1rem;
    letter-spacing: 0;
}

.monitor-metric > small {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.4;
}

.monitor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 0.7rem;
}

.monitor-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.monitor-source > span {
    width: 6px;
    height: 6px;
}

.session-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

.card {
    background: linear-gradient(180deg, rgba(19, 57, 67, 0.9) 0%, rgba(9, 28, 36, 0.96) 100%);
    border-radius: 18px;
    padding: 18px 20px;
}

.metric-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card p {
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    color: var(--text);
    margin-top: 14px;
}

.card .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: rgba(7, 20, 26, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.card .table th,
.card .table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
    vertical-align: top;
}

.card .table th {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255,255,255,0.015);
}

.card .table tbody tr:last-child td { border-bottom: none; }

.card .table tbody tr:hover { background: rgba(255,255,255,0.02); }

.alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 122, 122, 0.08);
    border: 1px solid rgba(255, 122, 122, 0.2);
    color: #ffd4d4;
}

.last-updated {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    body { padding: 18px 14px 28px; }

    .charging-toolbar,
    .station-card-header,
    .station-footer,
    .section-heading,
    .available-station-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .charging-toolbar {
        padding: 16px 14px;
    }

    .toolbar-actions {
        flex-wrap: wrap;
    }

    .card .table th,
    .card .table td {
        padding: 10px 8px;
    }

    .monitor-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .monitor-session {
        grid-template-columns: 1fr;
    }

    .monitor-session-title {
        min-height: auto;
    }

    .live-session-grid {
        grid-template-columns: 1fr;
    }
}

:root {
    --bg: #f3f7fb;
    --bg-deep: #ffffff;
    --panel: #ffffff;
    --panel-2: #f8fafd;
    --panel-3: #e8f0fb;
    --panel-soft: rgba(255, 255, 255, 0.94);
    --line: rgba(15, 42, 82, 0.12);
    --line-strong: rgba(15, 42, 82, 0.22);
    --text: #0f2a52;
    --muted: #60748e;
    --green: #2ea84f;
    --green-soft: rgba(46, 168, 79, 0.12);
    --red: #bd3d45;
    --red-soft: rgba(189, 61, 69, 0.1);
    --yellow: #a87500;
    --yellow-soft: rgba(245, 184, 0, 0.15);
    --shadow: 0 10px 28px rgba(15, 42, 82, 0.08);
}

html,
body {
    background: linear-gradient(180deg, #f8fafd 0%, #eef4fa 100%);
    color: var(--text);
    font-family: "Outfit", "Segoe UI", Tahoma, sans-serif;
}

body {
    padding-top: 20px;
}

main {
    max-width: 1540px;
}

h1,
h2,
h3,
p {
    color: var(--text);
}

.dashboard-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    margin-bottom: 20px;
    padding: 8px 4px 18px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #1a5fa8, #2ea84f 68%, #f5b800) 1;
}

.dashboard-brand img {
    display: block;
    width: clamp(220px, 25vw, 300px);
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.dashboard-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-brand-copy > span {
    color: #2ea84f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.dashboard-brand-copy h1 {
    margin: 0;
    color: #0f2a52;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.charging-toolbar,
.station-card,
.available-stations,
.card {
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.charging-toolbar {
    background: rgba(255, 255, 255, 0.94);
}

.charging-toolbar strong,
.station-card-header h2,
.station-card-header p,
.station-badge,
.charger-tile strong,
.charger-tile span,
.charger-tile b,
.station-footer,
.section-heading span,
.availability-message strong,
.availability-message span,
.available-station-item strong,
.available-station-item span,
.monitor-session-title span,
.monitor-session-title strong,
.monitor-empty strong,
.monitor-empty span,
.soc-header h3,
.soc-range strong,
.charge-details h3,
.charge-details-grid span,
.charge-details-grid strong,
.monitor-metric > span,
.monitor-metric > strong,
.monitor-metric > strong small,
.monitor-metric > small,
.monitor-footer,
.metric-card h2,
.metric-card p,
.card .table th,
.card .table td,
.last-updated {
    color: var(--text);
}

.charging-toolbar > div:first-child > span,
.section-heading span,
.station-card-header p,
.station-footer,
.charger-tile span,
.monitor-session-title span,
.monitor-empty span,
.soc-range span,
.soc-caption,
.charge-details-grid span,
.monitor-metric > span,
.monitor-metric > small,
.monitor-footer,
.last-updated {
    color: var(--muted);
}

.live-indicator {
    background: transparent;
    color: #1e7a38;
}

.fullscreen-toggle {
    border-color: var(--line-strong);
    background: #f8fafd;
    color: var(--text);
}

.fullscreen-toggle:hover {
    border-color: #2ea84f;
    background: #e6f7eb;
}

.station-card,
.card {
    background: #ffffff;
}

.station-badge {
    background: #fff8e1;
    color: #8a6400;
}

.charger-free {
    background: #f0f8f2;
    border-color: rgba(46, 168, 79, 0.2);
}

.charger-unavailable {
    background: #fff8e1;
    border-color: rgba(245, 184, 0, 0.24);
}

.charger-unavailable b,
.soc-current.soc-pending,
.charge-details-pending {
    color: #8a6400;
}

.charger-shared-status {
    background: #f5f8fc;
    border-color: var(--line);
}

.charger-icon {
    background: #e8f0fb;
    color: #1a5fa8;
}

.charger-tile b {
    color: #1a5fa8;
}

.station-footer {
    border-top-color: var(--line);
}

.available-stations {
    background: #ffffff;
}

.available-station-item {
    background: #f8fafd;
}

.available-label {
    background: #e6f7eb;
    color: #1e7a38;
}

.availability-message {
    background: #fffaf0;
    border-color: rgba(245, 184, 0, 0.24);
}

.availability-message strong {
    color: #0f2a52;
}

.availability-message span {
    color: #60748e;
}

.live-session-card {
    background:
        radial-gradient(ellipse at 92% 0%, rgba(46, 168, 79, 0.08), transparent 34%),
        linear-gradient(145deg, #ffffff, #f5f9fd);
    border-color: rgba(46, 168, 79, 0.25);
}

.monitor-eyebrow {
    color: #1e7a38;
}

.monitor-status-active {
    color: #1e7a38;
    border-color: rgba(46, 168, 79, 0.26);
    background: #e6f7eb;
}

.monitor-status-active > span,
.monitor-source > span {
    background: #2ea84f;
    box-shadow: 0 0 10px rgba(46, 168, 79, 0.3);
}

.monitor-status-idle {
    background: #f0f4f8;
}

.monitor-session-title,
.monitor-empty,
.soc-panel,
.charge-details,
.monitor-metric {
    background: rgba(248, 250, 253, 0.92);
}

.soc-current,
.monitor-metric > strong {
    color: #1e7a38;
}

.soc-gridline {
    stroke: rgba(15, 42, 82, 0.15);
}

.soc-line {
    stroke: #2ea84f;
    filter: drop-shadow(0 0 4px rgba(46, 168, 79, 0.22));
}

.soc-point {
    fill: #ffffff;
    stroke: #2ea84f;
}

.soc-range-track {
    background: linear-gradient(90deg, rgba(46, 168, 79, 0.18), #2ea84f);
}

.soc-empty {
    background: #fffaf0;
    border-color: rgba(245, 184, 0, 0.2);
}

.soc-empty-icon {
    background: #fff8e1;
    color: #8a6400;
}

.charge-details-grid > div {
    background: #ffffff;
}

.monitor-metric > strong.metric-unavailable {
    color: #8a6400;
}

.card .table {
    background: #ffffff;
    --bs-table-color: var(--text);
    --bs-table-bg: #ffffff;
    --bs-table-border-color: var(--line);
}

.card .table th {
    background: #f0f4f8;
    color: #60748e;
}

.card .table tbody tr:hover {
    background: #f5f8fc;
}

.alert {
    background: #fff5f5;
    border-color: rgba(189, 61, 69, 0.2);
    color: #8c252c;
}

@media (max-width: 640px) {
    .dashboard-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-brand img {
        width: min(250px, 75vw);
    }
}

.station-display {
    font-size: 1.15rem;
}

.station-screen-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
}

.station-screen-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.station-screen-links a:hover {
    border-color: #2ea84f;
    background: #f0f8f2;
}

.station-screen-evse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.station-screen-evse > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.station-screen-evse > div > span {
    color: #2ea84f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.station-screen-evse strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 1.2rem;
}

.station-screen-evse small {
    color: var(--muted);
}

.station-display .station-screen-evse {
    min-height: 90px;
    padding: 20px 26px;
}

.station-display .station-screen-evse strong {
    font-size: 1.5rem;
}

.station-display .dashboard-brand {
    gap: clamp(24px, 5vw, 64px);
    padding-bottom: 24px;
}

.station-display .dashboard-brand img {
    width: clamp(260px, 30vw, 360px);
}

.station-display .dashboard-brand-copy > span {
    font-size: 0.9rem;
}

.station-display .dashboard-brand-copy h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.station-display .charging-toolbar {
    min-height: 88px;
    padding: 22px 26px;
}

.station-display .charging-toolbar strong {
    font-size: 1.55rem;
}

.station-display .charging-toolbar > div:first-child > span {
    font-size: 1rem;
}

.station-display .live-indicator {
    width: 20px;
    height: 20px;
}

.station-display .live-indicator > span:first-child {
    width: 15px;
    height: 15px;
}

.station-display .fullscreen-toggle {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 1rem;
}

.station-display .live-session-card {
    padding: clamp(24px, 3vw, 40px);
}

.station-display .monitor-header {
    padding-bottom: 24px;
}

.station-display .monitor-eyebrow {
    font-size: 0.85rem;
}

.station-display .monitor-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.station-display .monitor-status {
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.station-display .monitor-status > span {
    width: 11px;
    height: 11px;
}

.station-display .monitor-session {
    grid-template-columns: minmax(220px, 0.7fr) 2fr;
    gap: 20px;
    margin-top: 24px;
}

.station-display .monitor-session-title {
    gap: 12px;
    padding: 24px;
}

.station-display .monitor-session-title span,
.station-display .monitor-metric > span {
    font-size: 1rem;
}

.station-display .monitor-session-title strong {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.station-display .live-session-grid {
    gap: 16px;
}

.station-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
    gap: 16px;
    margin-top: 24px;
}

.station-point-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.station-point-card-active {
    border-color: rgba(46, 168, 79, 0.4);
    background: linear-gradient(145deg, #ffffff, rgba(46, 168, 79, 0.07));
}

.station-point-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.station-point-status {
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf1f5;
    color: #536273;
    font-size: 0.72rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.station-point-status-active {
    background: rgba(46, 168, 79, 0.13);
    color: #16723a;
}

.station-point-card h3 {
    overflow-wrap: anywhere;
    margin: 14px 0 4px;
    color: var(--navy);
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 800;
}

.station-point-location {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-point-note {
    margin: 10px 0 0;
    color: #8a5a00;
    font-size: 0.75rem;
    line-height: 1.4;
}

.station-point-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.station-point-metrics > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.82);
}

.station-point-metrics span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.station-point-metrics strong {
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.station-active-sessions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.station-active-sessions-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.station-active-sessions-header h3 {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
}

.station-active-sessions-header > span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.station-active-sessions > .station-point-note {
    margin: 12px 0 16px;
}

.station-active-sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.station-active-session-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(46, 168, 79, 0.3);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, rgba(46, 168, 79, 0.06));
}

.station-active-session-card h4 {
    overflow-wrap: anywhere;
    margin: 14px 0 4px;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 800;
}

.station-session-soc {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.station-session-soc-track {
    overflow: hidden;
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: #e8edf2;
}

.station-session-soc-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2ea84f, #a5d84b);
}

.station-session-chart {
    margin-top: 18px;
    padding: 14px 14px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.station-session-chart > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--navy);
    font-size: 0.9rem;
}

.station-session-chart > header strong {
    font-weight: 800;
}

.station-session-chart > header span {
    color: #16723a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.station-session-chart svg {
    display: block;
    width: 100%;
    height: 130px;
    margin-top: 8px;
    overflow: visible;
}

.station-session-chart .soc-gridline {
    stroke: rgba(15, 42, 82, 0.12);
    stroke-dasharray: 4 6;
    stroke-width: 1.5;
}

.station-session-chart .soc-line {
    stroke-width: 5;
}

.station-session-chart .soc-point {
    stroke-width: 4;
}

.station-session-chart-axis {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.72rem;
}

.station-session-chart > p {
    margin: 12px 0 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.station-display .monitor-metric {
    min-height: 180px;
    gap: 16px;
    padding: 22px;
}

.station-display .monitor-metric > strong {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.station-display .monitor-metric > strong small {
    font-size: 1.15rem;
}

.station-display .monitor-metric > strong.metric-unavailable {
    font-size: 1.4rem;
}

.station-display .monitor-metric > small {
    font-size: 0.95rem;
}

.station-display .monitor-empty {
    gap: 12px;
    margin-top: 24px;
    padding: 26px;
}

.station-display .monitor-empty strong {
    font-size: 1.35rem;
}

.station-display .monitor-empty span {
    font-size: 1.05rem;
}

.station-display .soc-panel,
.station-display .charge-details {
    margin-top: 24px;
    padding: 24px;
}

.station-display .soc-header h3,
.station-display .charge-details h3 {
    font-size: 1.4rem;
}

.station-display .soc-current {
    font-size: 2rem;
}

.station-display .soc-current.soc-pending {
    font-size: 1rem;
}

.station-display .soc-axis-labels {
    font-size: 0.9rem;
}

.station-display .soc-chart {
    height: 230px;
}

.station-display .soc-chart svg {
    height: 220px;
}

.station-display .soc-range span,
.station-display .soc-caption {
    font-size: 0.9rem;
}

.station-display .soc-range strong {
    font-size: 1.25rem;
}

.station-display .soc-empty {
    gap: 18px;
    padding: 22px;
}

.station-display .soc-empty-icon {
    flex-basis: 48px;
    height: 48px;
    font-size: 1.3rem;
}

.station-display .soc-empty strong {
    font-size: 1.05rem;
}

.station-display .soc-empty span:not(.soc-empty-icon) {
    font-size: 0.95rem;
}

.station-display .charge-details-pending {
    font-size: 0.95rem;
}

.station-display .charge-details-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.station-display .charge-details-grid > div {
    gap: 8px;
    padding: 16px;
}

.station-display .charge-details-grid span {
    font-size: 0.85rem;
}

.station-display .charge-details-grid strong {
    font-size: 1rem;
}

.station-display .monitor-footer,
.station-display .last-updated {
    font-size: 0.9rem;
}

.station-display .alert {
    font-size: 1rem;
}

@media (max-width: 640px) {
    .station-display .dashboard-brand img {
        width: min(280px, 82vw);
    }

    .station-display .dashboard-brand-copy h1 {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    .station-display .charging-toolbar {
        gap: 16px;
        padding: 18px;
    }

    .station-display .monitor-session {
        grid-template-columns: 1fr;
    }

    .station-display .monitor-metric {
        min-height: 150px;
    }

    .station-points-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .station-point-card {
        padding: 16px;
    }

    .station-display .soc-panel,
    .station-display .charge-details {
        padding: 18px;
    }

    .station-display .charge-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .station-points-grid {
        grid-template-columns: 1fr;
    }
}

.charging-illustration {
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin: 20px 0 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 68% 100%, rgba(46, 168, 79, 0.1), transparent 55%),
        linear-gradient(110deg, #f8fafd, #ffffff 52%, #f0f8f2);
}

.charging-illustration svg {
    display: block;
    width: min(100%, 760px);
    height: auto;
    max-height: 230px;
}

.charging-ground {
    fill: none;
    stroke: rgba(15, 42, 82, 0.15);
    stroke-width: 3;
    stroke-linecap: round;
}

.charging-station-art rect:first-child {
    fill: #1a5fa8;
}

.charging-station-screen {
    fill: #ffffff;
}

.charging-station-mark {
    fill: #f5b800;
}

.charging-station-base {
    fill: #0f3d73;
}

.charging-cable {
    fill: none;
    stroke: #0f3d73;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.charging-energy-flow {
    fill: none;
    stroke: #43d477;
    stroke-width: 4;
    stroke-dasharray: 1 11;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(46, 168, 79, 0.72));
    animation: charging-flow 0.55s linear infinite;
}

.charging-car-art {
    transform-origin: center bottom;
    animation: charging-car-motion 2.4s ease-in-out infinite;
}

.charging-car-shadow {
    fill: rgba(15, 42, 82, 0.12);
}

.charging-car-glow {
    fill: rgba(46, 168, 79, 0.2);
    transform-box: fill-box;
    transform-origin: center;
    animation: charging-car-glow 2.4s ease-in-out infinite;
}

.charging-car-body {
    fill: #1a5fa8;
    stroke: #0f3d73;
    stroke-width: 3;
    stroke-linejoin: round;
}

.charging-car-window {
    fill: #e8f0fb;
    stroke: #0f3d73;
    stroke-width: 2;
    stroke-linejoin: round;
}

.charging-car-detail {
    fill: none;
    stroke: #b7d0e9;
    stroke-width: 3;
    stroke-linecap: round;
}

.charging-car-port {
    fill: #ffffff;
    stroke: #2ea84f;
    stroke-width: 4;
    filter: drop-shadow(0 0 5px rgba(46, 168, 79, 0.75));
}

.charging-port-ripple {
    fill: none;
    stroke: #2ea84f;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: charging-port-pulse 1.8s ease-out infinite;
}

.charging-port-ripple-two {
    animation-delay: 0.9s;
}

.charging-car-bolt {
    fill: #2ea84f;
}

.charging-wheel {
    transform-box: fill-box;
    transform-origin: center;
    animation: charging-wheel-spin 1.8s linear infinite;
}

.charging-wheel > circle:first-child {
    fill: #0f2a52;
    stroke: #ffffff;
    stroke-width: 3;
}

.charging-wheel-hub {
    fill: #dce8f4;
}

.charging-wheel-spoke {
    fill: none;
    stroke: #7690ab;
    stroke-width: 2;
    stroke-linecap: round;
}

.charging-particle {
    fill: #2ea84f;
    transform-box: fill-box;
    transform-origin: center;
    animation: charging-particle-pulse 1.2s ease-in-out infinite;
}

.charging-particle-two {
    animation-delay: 0.2s;
}

.charging-particle-three {
    animation-delay: 0.4s;
}

@keyframes charging-flow {
    to { stroke-dashoffset: -34; }
}

@keyframes charging-wheel-spin {
    to { transform: rotate(360deg); }
}

@keyframes charging-car-motion {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    18% { transform: translate(0, -2px) rotate(-0.2deg); }
    42% { transform: translate(2px, -11px) rotate(0.8deg); }
    58% { transform: translate(2px, -11px) rotate(0.8deg); }
    82% { transform: translate(0, -3px) rotate(0.2deg); }
}

@keyframes charging-car-glow {
    0%, 100% { opacity: 0.3; transform: scaleX(0.78); }
    50% { opacity: 0.9; transform: scaleX(1.12); }
}

@keyframes charging-port-pulse {
    0% {
        opacity: 0.85;
        transform: scale(0.55);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

@keyframes charging-particle-pulse {
    50% {
        opacity: 0.35;
        transform: scale(0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .charging-wheel,
    .charging-particle {
        animation: none;
    }

    .charging-car-art {
        animation: charging-car-motion-reduced 3.8s ease-in-out infinite;
    }

    .charging-car-glow {
        animation-duration: 3.8s;
    }

    .charging-energy-flow {
        animation-duration: 2.4s;
    }

    .charging-port-ripple {
        animation-duration: 2.8s;
    }

    @keyframes charging-car-motion-reduced {
        0%, 100% { transform: translate(0, 0); }
        45%, 60% { transform: translate(0, -9px) rotate(0.35deg); }
    }

    @keyframes charging-car-glow {
        0%, 100% { opacity: 0.3; transform: scaleX(0.78); }
        50% { opacity: 0.85; transform: scaleX(1.08); }
    }
}

@media (max-width: 640px) {
    .charging-illustration {
        margin-top: 16px;
    }

    .charging-illustration svg {
        max-height: 150px;
    }
}
