:root {
    --green: #2e7d32;
    --green-light: #e8f5e9;
    --orange: #f57c00;
    --orange-light: #fff3e0;
    --text: #1a1a1a;
    --muted: #5f6368;
    --border: #e0e0e0;
    --bg: #f5f7fa;
    --card: #ffffff;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    background: var(--green);
    color: #fff;
    padding: 1.5rem 0 2rem;
    box-shadow: var(--shadow);
}

.org-label {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-dates {
    margin: 0.5rem 0 0;
    opacity: 0.92;
    font-size: 1rem;
}

main {
    flex: 1;
    padding: 1.5rem 0 2rem;
}

.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

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

.summary-card--warn {
    border-color: var(--orange);
    background: var(--orange-light);
}

.summary-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
}

.summary-card--warn .summary-value {
    color: var(--orange);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--muted);
}

.traject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.traject-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.traject-name {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: var(--green);
}

.traject-total {
    margin: 0 0 1rem;
    font-weight: 600;
}

.progress-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border);
    margin-bottom: 0.75rem;
}

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

.progress-without {
    background: var(--orange);
}

.traject-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.traject-stats li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.dot--without {
    background: var(--orange);
}

.empty-state {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px dashed var(--border);
}

.empty-hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.error-panel {
    background: var(--orange-light);
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--cache {
    background: var(--green-light);
    color: var(--green);
}

.badge--fresh {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-refresh {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-refresh:hover {
    filter: brightness(1.08);
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.35rem;
    }

    .summary-value {
        font-size: 1.5rem;
    }
}
