* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f4f1;
    color: #111;
    font-family: Helvetica, Arial, sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
}

.topbar,
.activity-header {
    border-bottom: 2px solid #111;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.eyebrow {
    margin: 0 0 8px 0;
    font-size: 12px;
    letter-spacing: 0.22em;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 96px);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.08em;
}

h2 {
    margin: 0 0 18px 0;
    font-size: 13px;
    letter-spacing: 0.22em;
}

.panel {
    border: 2px solid #111;
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
}

.upload-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

input[type="file"] {
    border: 2px solid #111;
    padding: 12px;
    background: #f4f4f1;
    font-weight: 700;
}

button {
    border: 2px solid #111;
    background: #111;
    color: #fff;
    padding: 12px 20px;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
}

button:hover {
    background: #fff;
    color: #111;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    gap: 16px;
    padding: 16px 0;
    border-top: 2px solid #111;
    text-decoration: none;
    color: #111;
    font-weight: 800;
    text-transform: uppercase;
}

.activity-row:hover {
    background: #111;
    color: #fff;
    padding-left: 12px;
}

.muted {
    color: #666;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.12em;
}

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

.stat-card {
    border: 2px solid #111;
    background: #fff;
    padding: 18px;
}

.stat-card span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.22em;
    font-weight: 800;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 36px;
    letter-spacing: -0.06em;
}

.map-panel {
    border: 2px solid #111;
    background: #fff;
    padding: 12px;
}

#map {
    height: 620px;
    width: 100%;
    background: #ddd;
    filter: grayscale(1) contrast(1.15) brightness(1.03);
}

.atlas-style .leaflet-tile-pane {
    filter: grayscale(1) contrast(1.1) brightness(1.05);
}

.leaflet-control-attribution {
    font-size: 10px;
}

@media (max-width: 700px) {
    .container {
        padding: 18px;
    }

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

    .activity-row {
        grid-template-columns: 1fr;
    }

    #map {
        height: 420px;
    }
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.activity-card {
    display: block;
    border: 2px solid #111;
    background: #fff;
    color: #111;
    text-decoration: none;
    overflow: hidden;
}

.activity-card:hover {
    background: #111;
    color: #fff;
}

.card-route-preview {
    height: 130px;
    background:
        linear-gradient(90deg, transparent 49%, #111 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #111 50%, transparent 51%);
    background-size: 28px 28px;
    opacity: 0.15;
    border-bottom: 2px solid #111;
}

.activity-card:hover .card-route-preview {
    background:
        linear-gradient(90deg, transparent 49%, #fff 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #fff 50%, transparent 51%);
    background-size: 28px 28px;
}

.card-content {
    padding: 18px;
}

.card-content h3 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.07em;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid currentColor;
    margin-top: 18px;
    padding-top: 12px;
    font-weight: 800;
}

.elevation-preview {
    height: 130px;
    border-bottom: 2px solid #111;
    background: #f4f4f1;
    padding: 16px;
}

.elevation-preview svg {
    width: 100%;
    height: 100%;
}

.elevation-preview polyline {
    fill: none;
    stroke: #111;
    stroke-width: 3;
}

.activity-card:hover .elevation-preview {
    background: #111;
}

.activity-card:hover .elevation-preview polyline {
    stroke: #fff;
}

/* PROFILE PAGE */

.profile-page {
    min-height: 100vh;
    width: 100%;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-dashboard {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border: 2px solid #111;
    padding: 40px;
    box-shadow: 8px 8px 0 #111;
}

.profile-header {
    text-align: center;
    border-bottom: 2px solid #111;
    padding-bottom: 28px;
    margin-bottom: 28px;
}

.profile-header h1 {
    font-size: clamp(42px, 7vw, 82px);
    margin: 0;
}

.profile-subtitle {
    color: #666;
    margin: 12px 0 22px 0;
}

.profile-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.profile-nav a {
    border: 2px solid #111;
    padding: 10px 14px;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.profile-nav a:hover {
    background: #111;
    color: #fff;
}

.profile-hero-card {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 36px 24px;
    margin-bottom: 18px;
}

.profile-hero-card p {
    margin: 0 0 10px 0;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
}

.profile-hero-card h2 {
    margin: 0;
    font-size: clamp(48px, 9vw, 92px);
    letter-spacing: -0.07em;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.profile-stat-card {
    border: 2px solid #111;
    padding: 20px;
    min-height: 130px;
    background: #fff;
}

.profile-stat-card p {
    margin: 0 0 14px 0;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 800;
}

.profile-stat-card h2 {
    margin: 0;
    font-size: 28px;
}

.profile-stat-card a {
    color: #111;
    font-weight: 800;
}

@media (max-width: 800px) {
    .profile-dashboard {
        padding: 24px;
    }

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

@media (max-width: 480px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}

.activity-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.activity-log-header h2 {
    margin: 0;
}

.filter-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-links a {
    border: 2px solid #111;
    padding: 8px 10px;
    text-decoration: none;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-links a:hover,
.filter-links a.active {
    background: #111;
    color: #fff;
}

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

.profile-icon-link {
    width: 44px;
    height: 44px;
    border: 2px solid #111;
    background: #fff;
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.profile-icon-link:hover {
    background: #111;
    color: #fff;
}

.activity-notes-panel {
    margin-top: 24px;
}

.activity-notes-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 16px;
}

.edit-activity-toggle {
    margin-bottom: 24px;
}

.activity-edit-panel {
    display: none;
}

.activity-edit-panel.is-visible {
    display: block;
}

.profile-period-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.profile-period-filter a {
    border: 2px solid #111;
    padding: 10px 14px;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.profile-period-filter a:hover,
.profile-period-filter a.active {
    background: #111;
    color: #fff;
}

.weekly-chart-plot {
    display: grid;
    grid-template-columns: repeat(var(--chart-columns), 1fr);
    gap: 3px;
    align-items: end;
    height: 260px;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    padding: 12px 0 0 8px;
    margin-top: 20px;
}

.weekly-bar-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

.weekly-bar-value {
    height: 18px;
    font-size: 9px;
    text-align: center;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.weekly-bar-track {
    height: 220px;
    display: flex;
    align-items: flex-end;
    transition: background 0.15s ease;
}

.weekly-bar {
    width: 100%;
    min-height: 0;
    background: #111;
    transition: all 0.15s ease;
}

.weekly-bar-column:hover .weekly-bar-track {
    background: #111;
}

.weekly-bar-column:hover .weekly-bar {
    background: #fff;
}

.weekly-bar-column:hover .weekly-bar-value {
    opacity: 1;
}

.weekly-chart-label-row {
    display: grid;
    grid-template-columns: repeat(var(--chart-columns), 1fr);
    gap: 3px;
    padding-left: 8px;
    margin-top: 8px;
}

.weekly-bar-label {
    height: 18px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.04em;
}

.weekly-chart-axis-label {
    text-align: center;
    margin: 14px 0 0 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.show-more-button {
    border: 2px solid #111;
    padding: 12px 18px;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.show-more-button:hover {
    background: #111;
    color: #fff;
}

#run-map {
    width: 100%;
    height: 70vh;
    border: 1px solid black;
}

.atlas-cluster-wrapper {
    background: transparent;
    border: none;
}

.atlas-cluster {
    background: black;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.atlas-spider-dot-wrapper {
    background: transparent;
    border: none;
    transform: scale(0);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.atlas-spider-dot-wrapper.visible {
    transform: scale(1);
    opacity: 1;
}
.atlas-spider-dot-wrapper.visible:hover {
    transform: scale(1.18);
}

.atlas-spider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid black;
    box-sizing: border-box;
    cursor: pointer;
}

.atlas-spider-line {
    animation: atlasLineFade 180ms ease forwards;
}

@keyframes atlasLineFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.25;
    }
}

.atlas-map-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.atlas-toggle {
    border: 1px solid black;
    background: white;
    color: black;
    padding: 8px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.atlas-toggle.active {
    background: black;
    color: white;
}

.atlas-app {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

.atlas-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 0;
    align-items: stretch;

}

.atlas-app .panel {
    margin: 0;
    border: none;
}

.atlas-map {
    height: calc(100vh - 73px);
    width: 100%;
    border: none;
}

.atlas-sidebar {
    padding: 24px 32px 24px 24px;
    background: #f4f4f1;
    overflow-y: auto;
    min-height: calc(100vh - 73px);
}

.atlas-sidebar-section {
    display: none;

    background: white;
    border-radius: 22px;
    padding: 24px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    min-height: 100%;
}

.atlas-sidebar-section.active {
    display: block;
}

.atlas-sidebar h2 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.atlas-sidebar-section {
    display: none;
}

.atlas-sidebar-section.active {
    display: block;
}

@media (max-width: 900px) {
    .atlas-layout {
        grid-template-columns: 1fr;
    }

    .atlas-map {
        height: 70vh;
    }

    .atlas-sidebar {
        border-left: none;
        border-top: 1px solid black;
        min-height: auto;
    }
}

.atlas-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid black;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.atlas-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.atlas-header-sync-form {
    margin: 0;
}

.atlas-brand h1 {
    margin: 0;
    font-size: 1.6rem;
}

.atlas-brand .eyebrow {
    margin-bottom: 2px;
}

.atlas-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-toolbar-divider {
    width: 1px;
    height: 24px;
    background: black;
    opacity: 0.25;
    margin: 0 6px;
}

.atlas-header {
    margin-bottom: 0;
    padding-bottom: 12px;
}

.atlas-app .panel {
    padding: 0;
}

.atlas-app #run-map {
    height: calc(100vh - 73px);
    border: none;
}

/* ==========================================================
   ATLAS INSPECTOR
========================================================== */

.atlas-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 0;
    align-items: stretch;
    background: #f4f4f1;
}

.atlas-app .panel {
    margin: 0;
    padding: 0;
    border: none;
}

.atlas-app #run-map,
.atlas-map {
    height: calc(100vh - 73px);
    width: 100%;
    border: none;
}

.atlas-inspector {
    min-height: calc(100vh - 73px);
    padding: 10px;
    background: #fff;
    overflow-y: auto;
}

.atlas-inspector-panel {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.atlas-inspector-panel:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.atlas-inspector-panel.active {
    display: block;
}

/* Header */

.atlas-control-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.atlas-control-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.06em;
}

/* Total distance */

.atlas-total-card {
    background: #111;
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.atlas-total-card p {
    margin: 0 0 8px 0;
    color: #aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.atlas-total-card h3 {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.07em;
}

/* Compact stats */

.atlas-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.atlas-compact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.atlas-summary-row div,
.atlas-compact-stats div {
    min-width: 0;
}

.atlas-summary-row p,
.atlas-compact-stats p {
    margin: 0 0 6px 0;
    color: #777;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.atlas-summary-row strong,
.atlas-compact-stats strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

/* Latest run */

.atlas-latest-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.atlas-latest-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.atlas-latest-card a {
    border: 1px solid #111;
    border-radius: 999px;
    padding: 8px 13px;
    color: #111;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.atlas-latest-card a:hover {
    background: #111;
    color: #fff;
}

/* Year filter */

.atlas-period-filter {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.atlas-period-filter a {
    border: 1px solid #111;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: #111;
    text-decoration: none;
}

.atlas-period-filter a.active {
    background: #111;
    color: #fff;
}

/* Mini chart */

.atlas-mini-chart-card {
    padding-top: 4px;
}

.atlas-mini-chart-header {
    margin-bottom: 10px;
}

.atlas-mini-chart {
    display: grid;
    grid-template-columns: repeat(var(--chart-columns), minmax(3px, 1fr));
    align-items: end;
    gap: 2px;
    height: 110px;
}

.atlas-mini-bar-column {
    height: 100%;
    display: flex;
    align-items: end;
}

.atlas-mini-bar-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
}

.atlas-mini-bar {
    width: 100%;
    min-height: 1px;
    background: #111;
    border-radius: 999px 999px 0 0;
}

/* Responsive */

@media (max-width: 900px) {
    .atlas-layout {
        grid-template-columns: 1fr;
    }

    .atlas-app #run-map,
    .atlas-map {
        height: 70vh;
    }

    .atlas-inspector {
        min-height: auto;
        padding: 16px;
    }

    .atlas-inspector-panel {
        padding: 20px;
    }

    .atlas-compact-stats {
        grid-template-columns: 1fr;
    }
}

.atlas-inspector-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

.atlas-inspector-panel.active {
    display: block;
    animation: atlasInspectorIn 220ms ease forwards;
}

@keyframes atlasInspectorIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atlas-small-button {
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.atlas-small-button:hover {
    background: #111;
    color: #fff;
}

.atlas-route-preview {
    height: 180px;
    border-radius: 18px;
    background: #f4f4f1;
    margin-bottom: 14px;
    overflow: hidden;
}

.atlas-route-preview svg {
    width: 100%;
    height: 100%;
}

.atlas-route-preview-line {
    fill: none;
    stroke: #111;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.atlas-open-activity-button {
    display: block;
    width: 100%;
    border: 1px solid #111;
    border-radius: 999px;
    padding: 12px 14px;
    text-align: center;
    color: #111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.atlas-open-activity-button:hover {
    background: #111;
    color: #fff;
}

/* Inspector interaction polish */

.atlas-preview-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.atlas-preview-switch button {
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.atlas-preview-switch button:hover,
.atlas-preview-switch button.active {
    background: #111;
    color: #fff;
}

.atlas-run-preview {
    display: none;
    height: 180px;
    border-radius: 18px;
    background: #f4f4f1;
    margin-bottom: 14px;
    overflow: hidden;
}

.atlas-run-preview.active {
    display: block;
}

.atlas-run-preview svg {
    width: 100%;
    height: 100%;
}

.atlas-period-filter a {
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.atlas-period-filter a:hover {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
}

.atlas-mini-bar {
    transition: height 160ms ease, background 160ms ease, transform 160ms ease;
    transform-origin: bottom;
}

.atlas-mini-bar-column:hover .atlas-mini-bar {
    background: #fff;
    transform: scaleY(1.12);
}

.atlas-mini-bar-column:hover .atlas-mini-bar-track {
    background: #111;
}

.atlas-archive-button {
    margin-top: 16px;
}

/* Run inspector preview carousel */

.atlas-preview-carousel {
    height: 180px;
    border-radius: 18px;
    background: #f4f4f1;
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
}

.atlas-preview-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 260ms ease;
}

.atlas-preview-slide {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
}

.atlas-preview-slide svg {
    width: 100%;
    height: 100%;
}

.atlas-preview-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 14px;
}

.atlas-preview-dots button {
    width: 7px;
    height: 7px;
    border: 1px solid #111;
    border-radius: 999px;
    padding: 0;
    background: #fff;
}

.atlas-preview-dots button.active {
    background: #111;
}

.atlas-preview-caption {
    text-align: center;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #666;
}

.atlas-header-sync-form {
    margin: 0;
}

.atlas-header-sync-form button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.atlas-sync-result-card {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #111;
    border-radius: 16px;
    background: #f4f4f1;
}

.atlas-sync-result-card p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.4;
}

.atlas-sync-result-card ul {
    margin: 10px 0 0 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.5;
}

.atlas-sync-toast {
    position: fixed;
    top: 86px;
    right: 24px;
    z-index: 3000;
    width: min(320px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid #111;
    border-radius: 16px;
    background: #111;
    color: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.atlas-sync-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.atlas-sync-toast strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.atlas-sync-toast span {
    display: block;
    color: #ddd;
    font-size: 12px;
    line-height: 1.35;
}

.atlas-heat-info-card,
.atlas-heat-control-placeholder {
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    margin-bottom: 14px;
    background: #fff;
}

.atlas-heat-info-card p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.45;
}

.atlas-heat-control-placeholder {
    background: #f4f4f1;
}

.atlas-heat-placeholder-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    font-size: 13px;
}

.atlas-heat-placeholder-row:first-of-type {
    border-top: none;
}

.atlas-heat-placeholder-row span {
    color: #666;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.atlas-heat-placeholder-row strong {
    font-size: 14px;
}

.atlas-heat-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.atlas-heat-controls {
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #f4f4f1;
}

.atlas-heat-control {
    padding: 12px 0;
    border-top: 1px solid #ddd;
}

.atlas-heat-control:first-child {
    border-top: none;
    padding-top: 0;
}

.atlas-heat-control:last-child {
    padding-bottom: 0;
}

.atlas-heat-control-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.atlas-heat-control-header span {
    color: #666;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.atlas-heat-control-header strong {
    font-size: 13px;
}

.atlas-heat-control input[type="range"] {
    width: 100%;
    accent-color: #111;
}

.atlas-toggle {
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.atlas-toggle:hover {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
}

.atlas-hidden-profile-link {
    color: inherit;
    text-decoration: none;
}

.atlas-hidden-profile-link:hover {
    text-decoration: underline;
}

.atlas-basemap-select {
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    padding: 8px 28px 8px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.atlas-basemap-select:hover {
    background: #111;
    color: #fff;
}

.atlas-start-marker {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.atlas-floating-map-controls {
    position: fixed;
    top: 88px;
    left: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.atlas-floating-map-controls .atlas-basemap-select {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.atlas-map-icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 21px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.atlas-map-icon-button:hover {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.atlas-extent-button {
    position: fixed;
    top: 88px;
    right: 420px;
    z-index: 1200;
}

.atlas-basemap-select {
    min-width: 118px;
}

.atlas-cluster-wrapper:hover .atlas-cluster {
    transform: scale(1.08);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.5);
}

.atlas-timeline-control {
    padding-top: 0;
}

.atlas-timeline-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
}

.atlas-timeline-button {
    width: 38px;
    height: 38px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-timeline-button:hover {
    background: #fff;
    color: #111;
}

.atlas-timeline-row input[type="range"],
.atlas-heat-control input[type="range"] {
    width: 100%;
    accent-color: #111;
}

.atlas-heat-reset-button {
    margin-top: 14px;
    background: #fff;
}

.atlas-start-marker {
    transition:
        opacity 260ms ease,
        fill-opacity 260ms ease,
        stroke-opacity 260ms ease;
}

.atlas-selected-route-outline,
.atlas-selected-route-line {
    transition: opacity 0.3s ease;
}

.atlas-route-focus .marker-cluster,
.atlas-route-focus .marker-cluster div,
.atlas-route-focus .atlas-cluster-wrapper,
.atlas-route-focus .atlas-cluster,
.atlas-route-focus .atlas-start-marker {
    opacity: 0.18 !important;
    transition: opacity 0.25s ease;
}

.logout-link {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
    text-decoration: none;
}

.logout-link:hover {
    opacity: 1;
}

.atlas-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logout-button {
    text-decoration: none;
}