body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #1f2933;
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem 1.5rem;
}

h1, h2, h3 {
    margin: 0;
    color: #111827;
}

.hero-title-main {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 0.25rem;
}

.hero-title-sub {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6b7280;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1rem;
    color: #1f2933;
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-counters {
    background-color: #0b1120;
    color: #f9fafb;
    border-radius: 1.25rem;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
}

.hero-counters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

@media (max-width: 640px) {
    .hero-counters-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.hero-value-large {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f9fafb;
}

.hero-value-secondary {
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-caption {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
}

.hero-secondary-panel {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.panel-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.panel-title-strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.panel-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.metric-row-label {
    color: #4b5563;
}

.metric-row-value {
    font-weight: 600;
    color: #111827;
}

.section {
    margin-top: 2.75rem;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.cards-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.cards-strip::-webkit-scrollbar {
    height: 6px;
}

.cards-strip::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 999px;
}

.card {
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.card-icon {
    font-size: 1.1rem;
}

.card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4b5563;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 0.65rem;
}

.card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1.25rem;
    font-size: 0.85rem;
}

.card-metrics > .full-width {
    grid-column: span 2;
}

.card-metric-label {
    color: #6b7280;
    font-size: 0.78rem;
}

.card-metric-value {
    font-weight: 500;
    color: #111827;
}

.activity-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.activity-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 999px;
    background-color: #e5e7eb;
}

.activity-toggle button {
    border: none;
    background: transparent;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #4b5563;
}

.activity-toggle button.is-active {
    background-color: #111827;
    color: #f9fafb;
}

.table-wrapper {
    margin-top: 0.9rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th, td {
    padding: 0.5rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4b5563;
}

tr:nth-child(even) td {
    background-color: #f9fafb;
}

.muted {
    color: #6b7280;
}

.legacy-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.legacy-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background-color: #e5e7eb;
    color: #4b5563;
    margin-bottom: 0.4rem;
}
