:root {
    color-scheme: light;
    --ink: #10201b;
    --muted: #61706a;
    --line: #dce5e0;
    --paper: #f6f8f5;
    --white: #ffffff;
    --green: #005b45;
    --green-2: #007e5d;
    --lime: #d8f063;
    --danger: #9f2f2f;
    --shadow: 0 24px 70px rgba(24, 57, 46, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 10%, rgba(216, 240, 99, 0.22), transparent 30rem),
        var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header,
main,
footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: var(--green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    letter-spacing: -0.01em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.local-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.local-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #41a66c;
    box-shadow: 0 0 0 4px rgba(65, 166, 108, 0.14);
}

main {
    min-height: calc(100vh - 170px);
}

.notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 14px;
    margin: 8px 0 22px;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 14px;
}

.notice strong {
    grid-row: 1 / 3;
}

.notice-error {
    color: var(--danger);
    border: 1px solid #efd1d1;
    background: #fff4f3;
}

.notice-success {
    color: #185d40;
    border: 1px solid #cde6d7;
    background: #effaf3;
}

.diagnostics {
    margin: -10px 0 24px;
    padding: 14px 18px;
    border: 1px solid #e4d7d4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.diagnostics summary {
    color: #6e4743;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.diagnostics p {
    margin: 12px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.diagnostics pre {
    max-height: 280px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border-radius: 10px;
    color: #d7eee5;
    background: #14231e;
    font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
}

.auth-layout {
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
    padding: 60px 5% 100px;
    border-radius: 36px;
    background:
        linear-gradient(120deg, rgba(0, 91, 69, 0.98), rgba(0, 65, 51, 0.99)),
        var(--green);
    color: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.auth-layout::before,
.auth-layout::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    pointer-events: none;
}

.auth-layout::before {
    width: 420px;
    height: 420px;
    left: -230px;
    bottom: -250px;
}

.auth-layout::after {
    width: 620px;
    height: 620px;
    left: -320px;
    bottom: -350px;
}

.intro,
.auth-card {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--green-2);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro .eyebrow {
    color: var(--lime);
}

.intro h1,
.dashboard-heading h1 {
    margin: 0;
    font-size: clamp(43px, 5.7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.lede {
    max-width: 600px;
    margin: 26px 0 36px;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
}

.trust-row {
    display: flex;
    gap: 34px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-row strong,
.trust-row span {
    display: block;
}

.trust-row strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.trust-row span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.auth-card {
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 80px rgba(0, 25, 19, 0.25);
}

.auth-card .step {
    color: var(--green-2);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 10px 0 8px;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.auth-card > p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2e3d37;
    font-size: 12px;
    font-weight: 800;
}

input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #cfdad4;
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: var(--white);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
    border-color: var(--green-2);
    box-shadow: 0 0 0 4px rgba(0, 126, 93, 0.12);
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
.text-button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(216, 240, 99, 0.75);
    outline-offset: 3px;
}

.auth-card .button {
    width: 100%;
    margin-top: 14px;
}

.button-primary {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 10px 25px rgba(0, 91, 69, 0.2);
}

.button-primary:hover {
    background: #004936;
}

.button-secondary {
    color: var(--green);
    border: 1px solid var(--line);
    background: var(--white);
}

.button-quiet {
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
}

.compact {
    min-height: 40px;
    padding: 0 15px;
    font-size: 13px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 21px 0 4px;
    color: #96a39e;
    font-size: 11px;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.privacy-note {
    margin: 20px 0 0 !important;
    font-size: 11px !important;
}

.secondary-action {
    text-align: center;
}

.text-button {
    margin-top: 14px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
}

.dashboard {
    padding: 54px 0 80px;
}

.dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.dashboard-heading h1 {
    font-size: clamp(42px, 5vw, 64px);
}

.dashboard-heading > div > p:last-child {
    margin: 14px 0 0;
    color: var(--muted);
}

.heading-actions {
    display: flex;
    gap: 8px;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.metric {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.metric span,
.metric small {
    color: var(--muted);
    font-size: 12px;
}

.metric span {
    font-weight: 750;
}

.metric strong {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.045em;
}

.metric-featured {
    color: var(--white);
    border-color: var(--green);
    background: var(--green);
}

.metric-featured span,
.metric-featured small {
    color: rgba(255, 255, 255, 0.65);
}

.trend-panel {
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    overflow: hidden;
}

.trend-panel .panel-heading {
    align-items: flex-start;
}

.trend-panel .eyebrow {
    margin: 0 0 7px;
    font-size: 10px;
}

.trend-body {
    padding: 22px 24px 24px;
}

.trend-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.trend-summary article {
    padding: 15px 17px;
    border: 1px solid #e3ebe6;
    border-radius: 14px;
    background: #fbfdfb;
}

.trend-summary span,
.trend-summary small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.trend-summary span {
    font-weight: 800;
}

.trend-summary strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.05em;
}

.activity-map {
    padding: 17px 17px 14px;
    border: 1px solid #e3ebe6;
    border-radius: 15px;
    background: #fbfdfb;
    overflow-x: auto;
}

.activity-week-labels,
.activity-grid {
    min-width: 560px;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 7px;
}

.activity-week-labels {
    margin-bottom: 7px;
}

.activity-week-labels span {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.activity-week {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 4px;
}

.activity-cell {
    display: block;
    aspect-ratio: 1;
    min-width: 8px;
    border-radius: 3px;
    background: #e7eee9;
}

.activity-cell-muted {
    opacity: 0.35;
}

.activity-level-0 { background: #e7eee9; }
.activity-level-1 { background: #c9e8d4; }
.activity-level-2 { background: #83c99e; }
.activity-level-3 { background: #43a66d; }
.activity-level-4 { background: var(--green); }

.activity-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 9px;
}

.activity-legend i {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 3px;
}

.trend-bars {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.trend-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: end;
    gap: 12px;
}

.trend-row-label {
    padding-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.trend-row-bars {
    height: 36px;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    align-items: end;
    gap: 7px;
    border-bottom: 1px solid #e3ebe6;
}

.trend-bar-wrap {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
}

.trend-bar {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
}

.trend-bar-trips { background: var(--green); }
.trend-bar-minutes { background: #62b98a; }
.trend-bar-spend { background: #b9d94d; }

.tariff-panel {
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    overflow: hidden;
}

.tariff-panel .panel-heading {
    align-items: flex-start;
}

.tariff-panel .eyebrow {
    margin: 0 0 7px;
    font-size: 10px;
}

.subscription-pill {
    max-width: 280px;
    padding: 8px 11px;
    border: 1px solid #cce5d6;
    border-radius: 999px;
    color: #1f6b4d;
    background: #eef9f1;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.tariff-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 12px;
    padding: 18px 24px 0;
}

.tariff-card {
    min-height: 165px;
    padding: 18px;
    border: 1px solid #e3ebe6;
    border-radius: 15px;
    background: #fbfdfb;
}

.tariff-card-highlight {
    color: var(--white);
    border-color: var(--green);
    background: linear-gradient(145deg, var(--green), #08775b);
}

.tariff-card-highlight.tariff-card-negative {
    border-color: #c94747;
    background: linear-gradient(145deg, #b93445, #8f2335);
}

.tariff-kicker {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tariff-card-highlight .tariff-kicker {
    color: rgba(255, 255, 255, 0.68);
}

.tariff-card strong {
    display: block;
    margin: 15px 0 7px;
    font-size: clamp(27px, 3vw, 38px);
    letter-spacing: -0.05em;
}

.tariff-card h3 {
    margin: 9px 0 13px;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.tariff-card p,
.tariff-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.tariff-card-highlight p {
    color: rgba(255, 255, 255, 0.72);
}

.tariff-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 9px 10px;
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.tariff-card dt {
    color: var(--ink);
    font-weight: 850;
}

.tariff-card dd {
    margin: 0;
    color: var(--muted);
}

.tariff-note {
    margin: 15px 24px 20px;
}

.rides-panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    overflow: hidden;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 24px 19px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.panel-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.panel-tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
}

.panel-tab {
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.panel-tab:hover,
.panel-tab.active {
    color: var(--green);
}

.panel-tab.active {
    border-bottom-color: var(--green);
}

.updated {
    color: var(--muted);
    font-size: 11px;
}

.table-wrap {
    overflow-x: auto;
}

.raw-data-view {
    padding: 24px;
    overflow-x: auto;
    background: #fbfcfb;
}

.raw-data-view pre {
    margin: 0;
    color: #31463b;
    font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    font-size: 13px;
}

th,
td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid #edf1ee;
}

th {
    color: #78867f;
    background: #fbfcfb;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fbfdfb;
}

.number {
    text-align: right;
}

.strong {
    font-weight: 850;
}

.vehicle-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    margin-right: 8px;
    border-radius: 8px;
    color: var(--green);
    background: #eaf4ef;
    font-size: 11px;
}

.route {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.route i {
    width: 18px;
    height: 1px;
    background: #aebbb5;
    position: relative;
}

.route i::after {
    content: "";
    width: 4px;
    height: 4px;
    position: absolute;
    right: 0;
    top: -2px;
    border-radius: 50%;
    background: var(--green-2);
}

.status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #277150;
    background: #eaf7ef;
    font-size: 10px;
    font-weight: 800;
}

td > small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.zone-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    color: #69766f;
    background: #f0f3f1;
    font-size: 10px;
    font-weight: 800;
}

.zone-badge-local {
    color: #1e7451;
    background: #e9f7ed;
}

.saving {
    color: #18714d;
    font-weight: 850;
}

.empty-state {
    padding: 70px 24px;
    text-align: center;
}

.empty-state span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 14px;
    color: var(--green);
    background: #edf5f1;
    font-weight: 850;
}

.empty-state h3 {
    margin: 0 0 6px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.stations-view {
    padding: 24px;
}

.station-search-form {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fbf9;
}

.station-search-form label {
    margin-bottom: 9px;
}

.station-search-row {
    display: flex;
    gap: 10px;
}

.station-search-row input {
    flex: 1;
}

.station-search-results {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.station-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    background: var(--white);
}

.station-search-result strong,
.station-search-result span {
    display: block;
}

.station-search-result span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.station-search-result-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.station-search-result-actions .search-ebikes {
    margin: 0;
    color: var(--green);
    font-weight: 800;
    white-space: nowrap;
}

.station-search-result-actions form {
    margin: 0;
}

.station-search-empty,
.station-search-error {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.station-search-error {
    color: var(--danger);
}

.station-form {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e3ebe6;
    border-radius: 16px;
    background: #fbfdfb;
}

.station-form-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.station-form-heading h3 {
    margin: 0;
    font-size: 17px;
}

.station-form-heading .eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
}

.station-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.station-form .button {
    margin-top: 2px;
}

.optional {
    color: var(--muted);
    font-weight: 500;
}

.station-list {
    display: grid;
    gap: 12px;
}

.station-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(100px, 150px) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.station-card-title {
    display: flex;
    align-items: start;
    gap: 11px;
}

.station-card h3 {
    margin: 0;
    font-size: 16px;
}

.station-card-title p,
.station-notes,
.station-meta,
.station-count span {
    color: var(--muted);
    font-size: 11px;
}

.station-card-title p {
    margin: 5px 0 0;
}

.station-notes {
    margin: 9px 0 0 21px;
}

.station-history {
    max-width: 250px;
    margin: 17px 0 0 21px;
    padding-top: 12px;
    border-top: 1px solid #edf1ee;
}

.station-history-heading,
.station-history-axis-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.station-history-heading {
    margin-bottom: 7px;
    color: var(--green);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.station-history-heading small,
.station-history-axis-labels,
.station-history-empty {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.station-history svg {
    display: block;
    width: 100%;
    height: 42px;
    overflow: visible;
}

.station-history-axis {
    fill: none;
    stroke: #e5ede8;
    stroke-width: 1;
}

.station-history-line {
    fill: none;
    stroke: var(--green-2);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.station-history-point {
    fill: var(--green-2);
    stroke: var(--white);
    stroke-width: 1.5;
}

.station-history-axis-labels {
    margin-top: 1px;
}

.station-history-empty {
    padding: 12px 0 3px;
}

.station-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 50%;
    background: #c0cbc5;
}

.station-dot-live {
    background: #41a66c;
    box-shadow: 0 0 0 4px rgba(65, 166, 108, 0.14);
}

.station-count {
    min-width: 70px;
    text-align: right;
}

.station-count strong {
    display: block;
    color: var(--green);
    font-size: 30px;
    letter-spacing: -0.05em;
}

.station-count span,
.station-meta span,
.station-meta small {
    display: block;
}

.station-count .station-battery-label {
    margin-top: 10px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.station-battery-levels {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 5px;
}

.station-battery-levels span {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 999px;
    color: #1e7451;
    background: #e9f7ed;
    font-size: 10px;
    font-weight: 800;
}

.station-meta {
    line-height: 1.5;
}

.station-meta small {
    margin-top: 3px;
}

.station-error,
.danger-button {
    color: var(--danger) !important;
}

.station-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: end;
}

.station-actions summary {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.station-edit-form {
    display: grid;
    gap: 8px;
    min-width: 230px;
    margin-top: 10px;
}

.station-edit-form input {
    height: 40px;
    font-size: 12px;
}

.station-edit-form .button {
    width: 100%;
}

.station-empty {
    padding-block: 46px;
}

.raw-data {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.raw-data summary {
    padding: 15px 18px;
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.raw-data pre {
    max-height: 420px;
    margin: 0;
    padding: 20px;
    border-top: 1px solid var(--line);
    overflow: auto;
    color: #d6eee5;
    background: #10201b;
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #7b8983;
    font-size: 11px;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
        padding: 60px 7%;
    }

    .intro {
        max-width: 680px;
    }

    .auth-card {
        max-width: 560px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .trend-summary {
        grid-template-columns: 1fr;
    }

    .subscription-pill {
        max-width: 190px;
    }
}

@media (max-width: 620px) {
    .site-header,
    main,
    footer {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        min-height: 76px;
    }

    .auth-layout {
        min-height: auto;
        gap: 40px;
        padding: 44px 20px 28px;
        border-radius: 24px;
    }

    .intro h1 {
        font-size: 43px;
    }

    .trust-row {
        flex-direction: column;
        gap: 18px;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .dashboard {
        padding-top: 35px;
    }

    .tariff-panel .panel-heading {
        display: block;
    }

    .trend-panel .panel-heading {
        display: block;
    }

    .trend-body {
        padding: 15px;
    }

    .trend-panel .updated {
        display: block;
        margin-top: 12px;
    }

    .subscription-pill {
        display: inline-block;
        margin-top: 15px;
    }

    .tariff-grid {
        padding-inline: 15px;
    }

    .tariff-note {
        margin-inline: 15px;
    }

    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .heading-actions {
        flex-wrap: wrap;
    }

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

    .metric {
        min-height: 130px;
    }

    .stations-view {
        padding: 15px;
    }

    .station-form-heading {
        display: block;
    }

    .station-form-heading .updated {
        display: block;
        margin-top: 8px;
    }

    .station-form-grid {
        grid-template-columns: 1fr;
    }

    .station-search-row,
    .station-search-result,
    .station-search-result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .station-search-result-actions .button {
        width: 100%;
    }

    .station-card {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .station-meta {
        grid-column: 1 / -1;
    }

    .station-actions {
        grid-column: 1 / -1;
        justify-content: start;
    }

    th,
    td {
        padding-inline: 16px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
