﻿/* Personal Player Hub — global styles (must not be scoped; child Profile/* components need these). */

.hub-page {
    --hub-text: #3a4550;
    --hub-heading: #1a2129;
    --hub-muted: #6b7785;
    --hub-surface: #ffffff;
    --hub-surface-2: #f4f6f8;
    --hub-border: #dde3ea;
    --hub-input: #ffffff;
    --hub-hover: #eef1f4;
    --hub-deep: #e8ecf1;
    --hub-shadow: rgba(0, 0, 0, 0.08);
    --hub-panel: rgba(255, 255, 255, 0.88);
    --hub-hero-grad: linear-gradient(180deg, rgba(244, 246, 248, 0.55), rgba(232, 236, 241, 0.92));
    --hub-skel-a: #f4f6f8;
    --hub-skel-b: #e4e9ef;
    --hub-divider: #e4e9ef;
    padding-bottom: 48px;
    color: var(--hub-text);
}

html[data-theme="dark"] .hub-page {
    --hub-text: #c8d0d8;
    --hub-heading: #e8ecef;
    --hub-muted: #9aa7b5;
    --hub-surface: #151b22;
    --hub-surface-2: #1a2129;
    --hub-border: #2a3440;
    --hub-input: #0e1217;
    --hub-hover: #1f2730;
    --hub-deep: #0e1217;
    --hub-shadow: rgba(0, 0, 0, 0.35);
    --hub-panel: rgba(26, 33, 41, 0.85);
    --hub-hero-grad: linear-gradient(180deg, rgba(14, 18, 23, 0.35), rgba(14, 18, 23, 0.85));
    --hub-skel-a: #1a2129;
    --hub-skel-b: #24303a;
    --hub-divider: #24303a;
}

.hub-page .container,
.hub-container {
    max-width: 1120px;
}

/* Isolate from legacy white panels */
.hub-page .wcontainer,
.hub-page .hub-card,
.hub-page .hub-onboard {
    background: var(--hub-surface) !important;
    color: var(--hub-text) !important;
    border-color: var(--hub-border) !important;
}

.hub-page h1,
.hub-page h2,
.hub-page h3 {
    color: var(--hub-heading);
}

.hub-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.hub-side {
    position: sticky;
    top: 72px;
}

.hub-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: 8px;
    padding: 10px;
}

.hub-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--hub-muted);
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.hub-nav-item:hover,
.hub-nav-item.is-active {
    background: var(--hub-hover);
    color: #f99b1d;
}

.hub-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hub-hero {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hub-border);
    color: var(--hub-heading);
}

.hub-hero-inner {
    padding: 24px 22px 18px;
    background: var(--hub-hero-grad);
}

.hub-hero-id {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hub-avatar {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    border: 2px solid #f99b1d;
    object-fit: cover;
    background: var(--hub-surface-2);
}

.hub-avatar--placeholder {
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--hub-muted);
}

.hub-kicker {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #f99b1d;
    font-weight: 800;
}

.hub-hero h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--hub-heading);
}

.hub-tag,
.hub-elo,
.hub-ulrp,
.hub-sync {
    margin: 4px 0 0;
    color: var(--hub-text);
}

.hub-ulrp strong {
    color: #f99b1d;
    font-size: 1.25rem;
}

.hub-sync-ok { color: #6dcaa5; }
.hub-sync-warn { color: #f0b429; }

.hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hub-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.hub-hero-stats div {
    background: var(--hub-panel);
    border: 1px solid var(--hub-border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.hub-hero-stats strong {
    display: block;
    font-size: 1.15rem;
    color: var(--hub-heading);
}

.hub-hero-stats span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hub-muted);
}

.hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid var(--hub-border);
    background: var(--hub-hover);
    color: var(--hub-heading) !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.hub-btn--accent {
    background: #f99b1d;
    border-color: #f99b1d;
    color: #111 !important;
}

.hub-btn--ghost {
    background: transparent;
}

.hub-logout-form {
    display: inline-flex;
    margin: 0;
}

.hub-btn--logout {
    color: #f0a0a8 !important;
    border-color: rgba(224, 4, 63, 0.35);
}

.hub-btn--logout:hover {
    background: rgba(224, 4, 63, 0.12);
    border-color: #e0043f;
}

.hub-btn--sm {
    min-height: 32px;
    font-size: 0.82rem;
}

.hub-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hub-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    padding: 16px 18px;
    color: var(--hub-text);
}

.hub-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hub-card-head h2,
.hub-card h3 {
    margin: 0;
    color: var(--hub-heading);
    font-size: 1.05rem;
}

.hub-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hub-metric {
    border: 1px solid var(--hub-border);
    background: var(--hub-surface-2);
    border-radius: 8px;
    padding: 14px 10px;
    color: inherit;
    cursor: pointer;
    text-align: center;
}

.hub-metric--static {
    cursor: default;
}

.hub-metric strong {
    display: block;
    font-size: 1.3rem;
    color: var(--hub-heading);
}

.hub-metric span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hub-muted);
}

.hub-moment-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--hub-heading);
}

.hub-moment--emalta .hub-moment-title,
.hub-moment--onfire .hub-moment-title,
.hub-hero-moment--onfire .hub-hero-moment-title { color: #6dcaa5; }

.hub-moment--momentodificil .hub-moment-title,
.hub-moment--struggling .hub-moment-title,
.hub-hero-moment--struggling .hub-hero-moment-title { color: #e0043f; }

.hub-moment--improving .hub-moment-title,
.hub-hero-moment--improving .hub-hero-moment-title { color: #7ec8ff; }

.hub-moment--returning .hub-moment-title,
.hub-hero-moment--returning .hub-hero-moment-title { color: #f99b1d; }

.hub-moment-deltas {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    color: #f99b1d;
    font-weight: 700;
}

.hub-chart {
    color: #f99b1d;
}

.hub-chart svg {
    width: 100%;
    height: 120px;
    background: var(--hub-deep);
    border-radius: 8px;
    border: 1px solid var(--hub-border);
}

.hub-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--hub-muted);
}

.hub-rank-timeline {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-rank-timeline li {
    background: var(--hub-surface-2);
    border: 1px solid var(--hub-border);
    border-radius: 6px;
    padding: 8px 10px;
}

.hub-rank-timeline strong {
    display: block;
    color: var(--hub-heading);
}

.hub-main-champ {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--hub-surface-2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.hub-main-champ img {
    border-radius: 8px;
}

.hub-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.hub-champ-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hub-champ-list a {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    color: var(--hub-text) !important;
    text-decoration: none !important;
}

.hub-champ-list a:hover {
    background: var(--hub-surface-2);
}

.hub-champ-list img {
    border-radius: 6px;
}

.hub-hall-teaser {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--hub-border);
}

.hub-hall-icons {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
}

.hub-hall-icons img {
    border-radius: 8px;
    border: 1px solid var(--hub-border);
}

.hub-dna-arch {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f99b1d;
    margin: 0 0 4px;
}

.hub-dna-sec {
    margin: 0 0 8px;
    color: var(--hub-muted);
}

.hub-dna-reasons {
    margin: 0 0 12px;
    padding-left: 18px;
}

.hub-filters {
    display: flex;
    gap: 4px;
}

.hub-filter {
    border: 0;
    background: var(--hub-surface-2);
    color: var(--hub-muted);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}

.hub-filter.is-active {
    background: #f99b1d;
    color: #111;
}

.hub-match-list,
.hub-ach-list,
.hub-activity,
.hub-reco-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-match-list a {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 8px;
    color: var(--hub-text) !important;
    text-decoration: none !important;
    border-left: 3px solid transparent;
}

.hub-match-list li.is-win a { border-left-color: #6dcaa5; }
.hub-match-list li.is-loss a { border-left-color: #e0043f; }

.hub-match-list a:hover { background: var(--hub-surface-2); }

.hub-match-list strong,
.hub-match-list span {
    display: block;
}

.hub-match-list span,
.hub-match-list small {
    color: var(--hub-muted);
    font-size: 0.82rem;
}

.hub-ach-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hub-divider);
}

.hub-ach-list li.is-locked { opacity: 0.65; }
.hub-ach-list i { color: #f99b1d; margin-top: 4px; }

.hub-progress {
    height: 6px;
    background: var(--hub-deep);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

.hub-progress span {
    display: block;
    height: 100%;
    background: #f99b1d;
}

.hub-activity li {
    display: grid;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hub-divider);
}

.hub-activity small { color: var(--hub-muted); }

.hub-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hub-quick-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    background: var(--hub-surface-2);
    border: 1px solid var(--hub-border);
    color: var(--hub-heading) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.88rem;
}

.hub-quick-item i { color: #f99b1d; }

.hub-versus-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--hub-border);
}

.hub-vs {
    font-weight: 900;
    color: #e0043f;
    margin: 6px 0;
}

.hub-versus-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hub-versus-form input {
    flex: 1;
    min-width: 180px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--hub-border);
    background: var(--hub-input);
    color: var(--hub-heading);
    padding: 0 10px;
}

.hub-reco-list a {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    color: var(--hub-text) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--hub-divider);
}

.hub-reco-list i { color: #f99b1d; margin-top: 4px; }
.hub-reco-list span { display: block; color: var(--hub-muted); font-size: 0.85rem; }

.hub-empty,
.hub-hint,
.hub-error {
    color: var(--hub-muted);
    margin: 0;
}

.hub-error { color: #ffb4b4; }

.hub-link-btn {
    border: 0;
    background: none;
    color: #f99b1d;
    cursor: pointer;
    text-decoration: underline;
}

.hub-skel {
    height: 72px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--hub-skel-a), var(--hub-skel-b), var(--hub-skel-a));
    background-size: 200% 100%;
    animation: hubShimmer 1.2s linear infinite;
}

.hub-skel--grid { height: 120px; }
.hub-skel--hero { height: 180px; margin-bottom: 12px; }

@keyframes hubShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.hub-onboard {
    padding: 28px 24px;
    max-width: 560px;
    margin: 24px auto;
}

.hub-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 40;
}

.hub-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: var(--hub-surface);
    border-left: 1px solid var(--hub-border);
    z-index: 41;
    overflow: auto;
    color: var(--hub-text);
}

.hub-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hub-border);
}

.hub-drawer-head h2 {
    margin: 0;
    color: var(--hub-heading);
}

.hub-drawer-close {
    border: 0;
    background: transparent;
    color: var(--hub-heading);
    font-size: 1.4rem;
    cursor: pointer;
}

.hub-drawer-body {
    padding: 16px 18px 32px;
}

.hub-sub {
    margin: 16px 0 8px;
    color: #f99b1d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hub-bio p {
    margin: 0;
    white-space: pre-wrap;
}

@media (max-width: 900px) {
    .hub-layout {
        grid-template-columns: 1fr;
    }

    .hub-side {
        position: static;
    }

    .hub-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
    }

    .hub-nav-item {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .hub-hero-stats,
    .hub-metrics,
    .hub-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hub-hero-id {
        flex-direction: column;
    }

    .hub-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hub-hero-3d {
        max-height: 260px;
    }
}

/* —— Motion —— */
@keyframes hubFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hubPop {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hubNavGlow {
    from { box-shadow: 0 0 0 0 rgba(249, 155, 29, 0); }
    to { box-shadow: 0 0 0 3px rgba(249, 155, 29, 0.18); }
}

.hub-main--enter {
    animation: hubFadeUp 0.38s ease both;
}

.hub-main--enter > .hub-card,
.hub-main--enter > .hub-hero {
    animation: hubFadeUp 0.45s ease both;
}

.hub-main--enter > .hub-card:nth-child(2) { animation-delay: 0.04s; }
.hub-main--enter > .hub-card:nth-child(3) { animation-delay: 0.08s; }
.hub-main--enter > .hub-card:nth-child(4) { animation-delay: 0.12s; }
.hub-main--enter > .hub-card:nth-child(5) { animation-delay: 0.16s; }
.hub-main--enter > .hub-card:nth-child(6) { animation-delay: 0.2s; }

.hub-hero--animated {
    animation: hubFadeUp 0.5s ease both;
}

.hub-stat-pop {
    animation: hubPop 0.45s ease both;
    animation-delay: var(--hub-delay, 0ms);
}

.hub-nav--animated .hub-nav-item {
    position: relative;
    transition: color 0.2s ease, background 0.22s ease, transform 0.22s ease;
}

.hub-nav--animated .hub-nav-item i {
    transition: transform 0.25s ease, color 0.2s ease;
}

.hub-nav--animated .hub-nav-item:hover {
    transform: translateX(3px);
}

.hub-nav--animated .hub-nav-item:hover i {
    transform: scale(1.12);
    color: #f99b1d;
}

.hub-nav--animated .hub-nav-item.is-active {
    animation: hubNavGlow 0.45s ease;
}

.hub-nav--animated .hub-nav-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #f99b1d;
    animation: hubFadeUp 0.25s ease both;
}

.hub-btn {
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hub-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.hub-metric {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hub-metric:hover:not(.hub-metric--static) {
    transform: translateY(-2px);
    border-color: #f99b1d;
}

.hub-hero-inner--with3d {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 18px;
    align-items: stretch;
}

.hub-hero-3d {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    animation: hubFadeUp 0.55s ease 0.12s both;
}

.hub-3d-name {
    margin: 0 0 8px;
    font-weight: 800;
    color: var(--hub-heading);
    font-size: 1.05rem;
}

.hub-champ3d.champ3d,
.hub-hero-3d .champ3d {
    flex: 1;
    min-height: 240px;
    height: 280px;
    border-color: rgba(249, 155, 29, 0.35);
    box-shadow: 0 12px 32px var(--hub-shadow);
}

@media (max-width: 900px) {
    .hub-hero-inner--with3d {
        grid-template-columns: 1fr;
    }

    .hub-nav--animated .hub-nav-item:hover {
        transform: none;
    }

    .hub-nav--animated .hub-nav-item.is-active::before {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: 0;
        width: auto;
        height: 3px;
        border-radius: 3px 3px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-main--enter,
    .hub-main--enter > .hub-card,
    .hub-main--enter > .hub-hero,
    .hub-hero--animated,
    .hub-stat-pop,
    .hub-hero-3d,
    .hub-nav--animated .hub-nav-item.is-active {
        animation: none !important;
    }

    .hub-nav--animated .hub-nav-item,
    .hub-btn,
    .hub-metric {
        transition: none !important;
    }
}


/* —— Command Center —— */
.hub-id-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}
.hub-id-tags span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f99b1d;
    border: 1px solid var(--hub-border);
    padding: 3px 8px;
    border-radius: 4px;
}
.hub-hero-moment {
    margin: 18px 0 8px;
    padding: 14px 0 4px;
    border-top: 1px solid var(--hub-border);
}
.hub-hero-moment-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hub-heading);
}
.hub-hero-moment-detail { margin: 0; color: var(--hub-text); max-width: 36rem; }
.hub-hero-moment-metric {
    margin: 8px 0 0;
    font-weight: 800;
    color: #6dcaa5;
}
.hub-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.hub-hero-actions--secondary {
    margin-top: 12px;
    opacity: 0.92;
}
.hub-reco-primary-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.hub-reco-primary-body > i {
    color: #f99b1d;
    font-size: 1.4rem;
    margin-top: 4px;
}
.hub-reco-primary-body strong {
    display: block;
    color: var(--hub-heading);
    font-size: 1.1rem;
}
.hub-reco-primary-body p { margin: 6px 0 12px; color: var(--hub-muted); }
.hub-changed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hub-changed-list li {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hub-border);
}
.hub-changed-list i { color: #f99b1d; margin-top: 4px; }
.hub-changed-list strong { display: block; color: var(--hub-heading); }
.hub-changed-list span { display: block; color: var(--hub-muted); margin: 4px 0; }
.hub-changed-list a { color: #f99b1d; font-weight: 700; }
.hub-feed { list-style: none; margin: 0; padding: 0; }
.hub-feed-day { margin-bottom: 16px; }
.hub-feed-day-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hub-muted);
}
.hub-feed-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hub-feed-day li { display: flex; gap: 10px; }
.hub-feed-day i { color: #f99b1d; margin-top: 3px; }
.hub-feed-day strong { color: var(--hub-heading); }
.hub-feed-day span { display: block; color: var(--hub-muted); font-size: 0.9rem; }
.hub-feed-day small { color: var(--hub-muted); font-size: 0.75rem; }
.hub-records {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.hub-record {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--hub-deep);
    border: 1px solid var(--hub-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.hub-record:hover { border-color: #f99b1d; transform: translateY(-1px); }
.hub-record i { color: #f99b1d; }
.hub-record span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hub-muted); }
.hub-record strong { color: var(--hub-heading); font-size: 1.15rem; }
.hub-near-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hub-near-list li { display: flex; gap: 12px; }
.hub-near-list i { color: #f99b1d; margin-top: 3px; }
.hub-near-list strong { color: var(--hub-heading); }
.hub-near-list p { margin: 4px 0; color: var(--hub-muted); }
.hub-near-target { display: block; color: #f99b1d; font-weight: 700; margin-bottom: 4px; }
.hub-completeness-label { margin: 0 0 8px; color: var(--hub-heading); font-weight: 700; }
.hub-completeness-bar {
    height: 8px;
    background: var(--hub-deep);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--hub-border);
}
.hub-completeness-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f99b1d, #ffc107);
}
.hub-completeness-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--hub-muted);
    font-size: 0.88rem;
}
.hub-period {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.hub-period-btn {
    border: 1px solid var(--hub-border);
    background: var(--hub-deep);
    color: var(--hub-muted);
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}
.hub-period-btn.is-active,
.hub-period-btn:hover {
    border-color: #f99b1d;
    color: #f99b1d;
}
.hub-period-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--hub-muted);
    font-size: 0.9rem;
}
.hub-period-delta.is-up { color: #6dcaa5; }
.hub-period-delta.is-down { color: #e0043f; }
.hub-metric-hint {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 0.7rem;
    color: #6dcaa5;
}
.hub-champ-moment-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.hub-champ-moment-body img { border-radius: 8px; }
.hub-changed-drawer { animation: hubDrawerIn .22s ease; }
@keyframes hubDrawerIn {
    from { transform: translateX(12px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 900px) {
    .hub-hero-moment-title { font-size: 1.15rem; }
    .hub-records { grid-template-columns: 1fr 1fr; }
}
