:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #1c1c1e;
    --text-secondary: #6b7280;
    --divider: #e5e7eb;
    --accent: #1976d2;
    --green: #2e7d32;
    --red: #d32f2f;
    --amber: #f9a825;
    --gray: #9e9e9e;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
}
.page {
    margin: 0 auto;
}
.stats {
    display: flex;
    gap: 12px;
    padding: 16px;
}
.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.loading,
.empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary);
}
.error {
    margin: 8px 12px 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(211, 47, 47, .1);
    color: var(--red);
    font-size: 14px;
}
.hidden {
    display: none;
}
.station-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.city-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 8px 16px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--divider);
}
.station-item {
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
}
.station-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.station-row:hover {
    background: rgba(128, 128, 128, .07);
}
.status-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
}
.status-dot.online { background: var(--green); }
.status-dot.offline { background: var(--red); }
.status-dot.warning { background: var(--amber); }
.station-text {
    flex: 1;
    min-width: 0;
}
.station-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.station-address {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 13px;
}
.connector-dots {
    display: flex;
    gap: 5px;
    flex: none;
}
.connector-dots .status-dot {
    width: 8px;
    height: 8px;
}
.chevron {
    flex: none;
    color: var(--text-secondary);
    transition: transform .2s;
}
.station-item.open .chevron {
    transform: rotate(180deg);
}
.station-details {
    display: none;
    padding: 0 16px 16px 38px;
    font-size: 14px;
}
.station-item.open .station-details {
    display: block;
}
.details-loading {
    color: var(--text-secondary);
}
.description {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(25, 118, 210, .08);
    color: var(--accent);
    font-size: 13px;
}
.meta {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 13px;
}
.meta strong {
    color: var(--text);
    font-weight: 500;
}
.map-frame {
    display: block;
    width: 100%;
    height: 240px;
    margin: 10px 0 6px;
    border: 0;
    border-radius: 8px;
    background: var(--divider);
}
.map-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
}
.map-link:hover {
    text-decoration: underline;
}
.device {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--divider);
}
.device-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
}
.device-header .status-dot {
    width: 8px;
    height: 8px;
}
.connector {
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(128, 128, 128, .08);
}
.connector-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.connector-type {
    font-weight: 600;
}
.badge {
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.badge.dc { background: #7b1fa2; }
.badge.ac { background: #0288d1; }
.badge.off { background: var(--gray); }
.connector-specs {
    color: var(--text-secondary);
    font-size: 12px;
}
.tariffs {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}
.tariff {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
}
.tariff .tariff-name {
    color: var(--text-secondary);
}
.tariff.current .tariff-name {
    color: var(--text);
    font-weight: 500;
}
.tariff .tariff-price {
    flex: none;
    font-weight: 600;
    color: var(--accent);
}