:root {
    --insight-blue: #5d9df5;
    --insight-cyan: #55c4d4;
    --insight-green: #5fd397;
    --insight-violet: #a987fa;
    --insight-amber: #e8b85b;
    --insight-panel: #0e1822;
    --insight-line: #263746;
}

.insight-page {
    color: #edf4f8;
}

.insight-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #6c5430;
    border-radius: 6px;
    color: #ffd7a1;
    background: #261f15;
}

.insight-period-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    min-width: 0;
    gap: 8px;
    margin-bottom: var(--site-two-column-gap, 16px);
}

.insight-period-toolbar > .game-life-library-tabs {
    order: 0;
    min-width: 0;
    overflow: visible;
}

.insight-period-toolbar > .insight-period {
    order: 1;
}

.insight-period-toolbar > .game-life-library-tabs a {
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
}

.insight-period {
    display: flex;
    align-items: center;
    min-height: 48px;
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
    padding: 1px 5px;
    border: 1px solid var(--insight-line);
    border-radius: 6px;
    background: #0d1721;
}

.insight-period-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    min-width: min(360px, 100%);
}

.insight-period-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 4px;
    color: #aab9c5;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.insight-period-tabs a:hover,
.insight-period-tabs a:focus-visible {
    color: #ffffff;
    background: #172634;
}

.insight-period-tabs a.is-active {
    color: #ffffff;
    background: #23589a;
}

.insight-period-move {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 4px;
}

.insight-period-move a,
.insight-period-move > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 44px;
    color: #d6e0e7;
    text-decoration: none;
    border: 1px solid #34495b;
    border-radius: 4px;
}

.insight-period-move > span {
    color: #50606d;
}

.insight-period-move strong {
    min-width: 74px;
    text-align: center;
    font-size: 0.78rem;
}

.insight-period-toolbar > .insight-quality {
    order: 2;
    justify-self: end;
    flex: 0 0 auto;
    white-space: nowrap;
}

.insight-quality {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #38536a;
    border-radius: 999px;
    color: #b9d6e9;
    background: #132535;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

.insight-quality.is-recent_two_weeks {
    color: #a8e8cc;
    border-color: #356e59;
    background: #102a22;
}

.insight-quality.is-steamex_record {
    color: #b9a7ff;
    border-color: #554985;
    background: #211d39;
}

.insight-quality.is-estimate {
    color: #f2cf8c;
    border-color: #6d5931;
    background: #2b2417;
}

.insight-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    min-height: 340px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #2b4052;
    border-radius: 7px;
    background: #0c1620;
    box-shadow: 0 20px 42px rgb(0 0 0 / 20%);
}

.insight-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, #0c1620 0%, #0c1620ed 46%, #0c162066 72%, #0c1620 100%);
}

.insight-hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 34px 36px 112px;
}

.insight-eyebrow {
    margin: 0 0 8px;
    color: #66a8ff;
    font-size: 0.7rem;
    font-weight: 900;
}

.insight-hero-copy h1 {
    max-width: 720px;
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.insight-hero-copy > p:not(.insight-eyebrow) {
    max-width: 720px;
    margin: 14px 0 0;
    color: #c3d0d9;
    font-size: 0.9rem;
    line-height: 1.75;
}

.insight-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 20px;
}

.insight-hero-actions button {
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid #4a86d5;
    border-radius: 4px;
    color: #ffffff;
    background: #235caa;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.insight-hero-actions span {
    color: #8fa3b2;
    font-size: 0.74rem;
}

.insight-hero-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    min-width: 0;
    opacity: 0.72;
}

.insight-hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.insight-hero-stats {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.insight-hero-stats article,
.insight-hero-stats a {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 82px;
    justify-content: center;
    padding: 11px 13px;
    border: 1px solid #354a5c;
    border-radius: 5px;
    color: #f4f8fb;
    text-decoration: none;
    background: #101c27ed;
    backdrop-filter: blur(8px);
}

.insight-hero-stats a:hover,
.insight-hero-stats a:focus-visible {
    border-color: #5c94df;
    background: #162b40;
}

.insight-hero-stats small,
.insight-hero-stats span {
    color: #91a4b3;
    font-size: 0.66rem;
}

.insight-hero-stats strong {
    margin: 4px 0 3px;
    overflow-wrap: anywhere;
    font-size: 1.15rem;
    line-height: 1.1;
}

.insight-section-heading > span:not(.insight-quality) {
    color: #8598a7;
    font-size: 0.7rem;
}

.insight-empty {
    display: grid;
    justify-items: center;
    padding: 34px 20px;
    color: #97a9b7;
    text-align: center;
}

.insight-empty.compact {
    min-height: 88px;
    padding: 20px;
}

.insight-empty strong,
.insight-empty p {
    margin: 0;
}

.insight-empty p {
    max-width: 650px;
    margin-top: 8px;
    line-height: 1.65;
}

.insight-empty a {
    margin-top: 12px;
    color: #7eb4ff;
    font-weight: 800;
}

.insight-ranking {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.insight-rank-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(132px, 38%) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 132px;
    min-width: 0;
    grid-column: span 1;
    overflow: hidden;
    border: 1px solid #2c3e4d;
    border-radius: 6px;
    background: #0b141c;
}

.insight-rank-card.rank-1,
.insight-rank-card.rank-2,
.insight-rank-card.rank-3 {
    grid-column: span 1;
}

.insight-rank-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 0.38fr) minmax(0, 0.62fr);
}

.insight-rank-image {
    position: relative;
    display: grid;
    place-items: center;
    align-self: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #7890a2;
    background: #182735;
}

.insight-rank-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-rank-image strong {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #77abec;
    border-radius: 4px;
    color: #ffffff;
    background: #102942e6;
    box-shadow: 0 4px 12px rgb(0 0 0 / 32%);
}

.rank-1 .insight-rank-image strong {
    color: #ffe19a;
    border-color: #d8a84b;
    background: #3b2c10e8;
}

.insight-rank-card.rank-1,
.insight-rank-card.rank-2,
.insight-rank-card.rank-3 {
    border-color: #426a8a;
    box-shadow: inset 3px 0 0 #4d9be0;
}

.insight-rank-card.rank-2 .insight-rank-image strong {
    color: #e6edf4;
    border-color: #9cadba;
    background: #293541e8;
}

.insight-rank-card.rank-3 .insight-rank-image strong {
    color: #f1c19d;
    border-color: #b7754b;
    background: #3b2417e8;
}

.insight-rank-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 5px 10px;
    min-width: 0;
    padding: 11px 12px 12px;
}

.insight-rank-copy > small {
    grid-column: 1 / -1;
    color: #6f9cd0;
    font-size: 0.62rem;
    font-weight: 800;
}

.insight-rank-copy h3 {
    display: -webkit-box;
    grid-column: 1 / -1;
    overflow: hidden;
    margin: 0;
    min-height: 2.5em;
    font-size: 0.84rem;
    line-height: 1.25;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.insight-rank-copy h3 a {
    color: #eef5f9;
    text-decoration: none;
}

.insight-rank-copy h3 a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.insight-rank-copy p,
.insight-rank-copy time {
    margin: 0;
    color: #99aab7;
    font-size: 0.68rem;
}

.insight-rank-copy p {
    color: #d8e3ea;
    font-weight: 800;
}

.insight-rank-copy p span {
    color: #68b9cf;
}

.insight-rank-copy time {
    grid-column: 1;
}

.insight-rank-like {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 3 / span 2;
    align-self: center;
}

.insight-rank-like .like-button {
    min-height: 34px;
}

.insight-two-week-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 14px 2px;
}

.insight-two-week-summary strong {
    color: #84e4bd;
    font-size: 1.7rem;
}

.insight-two-week-summary span {
    color: #92a4b2;
    font-size: 0.76rem;
}

.insight-recent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
}

.insight-recent-grid a {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #293c4b;
    border-radius: 5px;
    color: #eef5f9;
    text-decoration: none;
    background: #0b141c;
}

.insight-recent-grid a:hover,
.insight-recent-grid a:focus-visible {
    border-color: #4e7caf;
}

.insight-recent-grid a > span {
    display: grid;
    place-items: center;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    color: #7790a2;
    background: #182735;
}

.insight-recent-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-recent-grid strong,
.insight-recent-grid small {
    display: block;
    margin: 8px 9px 0;
}

.insight-recent-grid strong {
    min-height: 2.5em;
    font-size: 0.78rem;
    line-height: 1.25;
}

.insight-recent-grid small {
    margin-bottom: 9px;
    color: #8fa4b3;
    font-size: 0.66rem;
}

.insight-preference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 12px;
    padding: 12px;
}

.insight-preference-note {
    margin: 14px 16px 2px;
    color: #8fa6b5;
    font-size: 0.72rem;
    line-height: 1.7;
}

.insight-preference-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #293c4b;
    border-radius: 6px;
    background: #0b141c;
}

.insight-preference-card > h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    letter-spacing: 0;
}

.insight-chart-block + .insight-chart-block {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #263744;
}

.insight-chart-block h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 9px;
    font-size: 0.76rem;
}

.insight-chart-block h4 small {
    color: #7f94a3;
    font-size: 0.62rem;
}

.insight-bars {
    display: grid;
    gap: 4px;
}

.insight-bar {
    display: grid;
    grid-template-columns: minmax(88px, 132px) minmax(0, 1fr) minmax(76px, max-content);
    align-items: center;
    min-width: 0;
    min-height: 40px;
    gap: 8px;
    padding: 4px 6px;
    border: 0;
    border-radius: 4px;
    color: #d9e4ea;
    background: transparent;
    font: inherit;
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.insight-bar:hover,
.insight-bar:focus-visible {
    outline: 2px solid #4d80bd;
    outline-offset: -2px;
    background: #132433;
}

.insight-bar-label {
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-bar-track {
    height: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 2px;
    background: #21303c;
}

.insight-bar-track span {
    display: block;
    height: 100%;
    background: #4f92e8;
}

.is-w-0 { width: 0; }
.is-w-5 { width: 5%; }
.is-w-10 { width: 10%; }
.is-w-15 { width: 15%; }
.is-w-20 { width: 20%; }
.is-w-25 { width: 25%; }
.is-w-30 { width: 30%; }
.is-w-35 { width: 35%; }
.is-w-40 { width: 40%; }
.is-w-45 { width: 45%; }
.is-w-50 { width: 50%; }
.is-w-55 { width: 55%; }
.is-w-60 { width: 60%; }
.is-w-65 { width: 65%; }
.is-w-70 { width: 70%; }
.is-w-75 { width: 75%; }
.is-w-80 { width: 80%; }
.is-w-85 { width: 85%; }
.is-w-90 { width: 90%; }
.is-w-95 { width: 95%; }
.is-w-100 { width: 100%; }

.insight-chart-block:nth-child(3) .insight-bar-track span {
    background: #55bd98;
}

.insight-bar strong {
    font-size: 0.66rem;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.insight-library-bar {
    display: flex;
    height: 12px;
    margin: 16px 14px 2px;
    overflow: hidden;
    border-radius: 3px;
    background: #243440;
}

.insight-library-bar .is-played {
    background: #4c91e8;
}

.insight-library-bar .is-unplayed {
    background: #e0a94b;
}

.insight-library-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
}

.insight-library-stats a {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 88px;
    justify-content: center;
    padding: 11px 13px;
    border: 1px solid #2b3e4d;
    border-radius: 5px;
    color: #e9f1f6;
    text-decoration: none;
    background: #101b25;
}

.insight-library-stats a:hover,
.insight-library-stats a:focus-visible {
    border-color: #4c7dad;
}

.insight-library-stats small {
    color: #8fa2b0;
    font-size: 0.68rem;
}

.insight-library-stats strong {
    margin-top: 5px;
    overflow-wrap: anywhere;
    font-size: 1.15rem;
}

.insight-library-stats .insight-quality {
    align-self: flex-start;
    margin-top: 5px;
}

.insight-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 4px 12px 12px;
}

.insight-activity-grid a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    min-width: 0;
    padding: 13px 10px;
    color: #dce6ec;
    text-decoration: none;
    border-bottom: 1px solid #253642;
}

.insight-activity-grid a:hover,
.insight-activity-grid a:focus-visible {
    background: #142431;
}

.insight-activity-grid small {
    font-size: 0.7rem;
    font-weight: 750;
}

.insight-activity-grid strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    color: #7eb4ff;
    font-size: 1.15rem;
}

.insight-activity-grid span {
    color: #8296a5;
    font-size: 0.62rem;
}

.insight-diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.insight-diagnosis-grid article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 190px;
    padding: 15px;
    border: 1px solid #2a3e4d;
    border-radius: 5px;
    background: #0b141c;
}

.insight-diagnosis-grid small {
    color: #75a8ea;
    font-size: 0.65rem;
    font-weight: 800;
}

.insight-diagnosis-grid h3 {
    margin: 7px 0 0;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.insight-diagnosis-grid p {
    margin: 10px 0;
    color: #aabac5;
    font-size: 0.72rem;
    line-height: 1.5;
}

.insight-diagnosis-grid time {
    margin-top: auto;
    color: #778a98;
    font-size: 0.64rem;
}

.insight-diagnosis-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 10px;
    color: #dfeafa;
    text-decoration: none;
    border: 1px solid #3b5f83;
    border-radius: 4px;
}

.insight-dialog {
    width: min(680px, calc(100% - 32px));
    max-height: min(760px, calc(100% - 32px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #3b5366;
    border-radius: 7px;
    color: #eef5f9;
    background: #0e1822;
    box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
}

.insight-dialog::backdrop {
    background: rgb(2 7 12 / 78%);
}

.insight-dialog-shell {
    max-height: min(760px, calc(100vh - 32px));
    overflow-y: auto;
}

.insight-dialog-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid #2b3e4d;
    background: #101c27;
}

.insight-dialog-heading p,
.insight-dialog-heading h2 {
    margin: 0;
}

.insight-dialog-heading p {
    color: #68a4ef;
    font-size: 0.62rem;
    font-weight: 900;
}

.insight-dialog-heading h2 {
    margin-top: 3px;
    font-size: 1.05rem;
}

.insight-dialog-heading button {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #3b4e5d;
    border-radius: 50%;
    color: #dce6ec;
    background: #182632;
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.insight-data-list {
    display: grid;
    gap: 0;
    padding: 8px 18px;
}

.insight-data-list article {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #263744;
}

.insight-data-list p,
.insight-data-warning {
    margin: 0;
    color: #a7b7c2;
    font-size: 0.75rem;
    line-height: 1.6;
}

.insight-data-warning {
    margin: 8px 18px 16px;
    padding: 13px;
    border: 1px solid #624e2c;
    border-radius: 5px;
    color: #e6c98e;
    background: #251f14;
}

.insight-data-dates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0 18px 18px;
}

.insight-data-dates div {
    min-width: 0;
    padding: 11px;
    border: 1px solid #2d4050;
    border-radius: 4px;
}

.insight-data-dates dt {
    color: #8093a1;
    font-size: 0.64rem;
}

.insight-data-dates dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    font-weight: 750;
}

.insight-chart-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 18px 8px;
}

.insight-chart-summary div {
    padding: 12px;
    border: 1px solid #2e4252;
    border-radius: 5px;
}

.insight-chart-summary small,
.insight-chart-summary strong {
    display: block;
}

.insight-chart-summary small {
    color: #8094a3;
    font-size: 0.65rem;
}

.insight-chart-summary strong {
    margin-top: 4px;
    font-size: 1.1rem;
}

.insight-chart-games {
    display: grid;
    gap: 6px;
    padding: 8px 18px 18px;
}

.insight-chart-games a,
.insight-chart-games p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #2d4050;
    border-radius: 4px;
    color: #dce7ed;
    text-decoration: none;
}

.insight-chart-games small {
    color: #88a0b0;
}

@media (max-width: 1240px) {
    .insight-hero {
        grid-template-columns: 1fr;
    }

    .insight-hero-art {
        position: absolute;
        inset: 0 0 0 52%;
    }

}

@media (max-width: 900px) {
    .insight-hero-copy {
        padding: 28px 26px 190px;
    }

    .insight-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .insight-hero-stats article,
    .insight-hero-stats a {
        min-height: 72px;
    }

    .insight-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-rank-card,
    .insight-rank-card.rank-1,
    .insight-rank-card.rank-2,
    .insight-rank-card.rank-3 {
        grid-column: span 1;
    }

    .insight-rank-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .insight-preference-grid {
        grid-template-columns: 1fr;
    }

    .insight-recent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {
    .insight-period-toolbar {
        gap: 3px;
    }

    .insight-period-toolbar > .game-life-library-tabs a {
        padding-right: 0;
        padding-left: 0;
        font-size: 12px;
    }

    .insight-period-toolbar .insight-period {
        align-items: center;
        flex-direction: row;
        padding-right: 1px;
        padding-left: 1px;
    }

    .insight-period-toolbar .insight-period-move {
        width: auto;
        gap: 0;
    }

    .insight-period-toolbar .insight-period-move a,
    .insight-period-toolbar .insight-period-move > span {
        width: 30px;
    }

    .insight-period-toolbar .insight-period-move strong {
        min-width: 52px;
        font-size: 12px;
    }

    .insight-period-toolbar > .insight-quality {
        padding-right: 3px;
        padding-left: 3px;
    }

    .insight-hero {
        min-height: 540px;
    }

    .insight-hero-art {
        inset: 0;
        grid-template-columns: 1fr 1fr;
        opacity: 0.32;
    }

    .insight-hero::after {
        background: linear-gradient(180deg, #0c1620df 0%, #0c1620 60%);
    }

    .insight-hero-copy {
        align-self: start;
        padding: 24px 20px 300px;
    }

    .insight-hero-copy h1 {
        font-size: 1.55rem;
    }

    .insight-hero-stats {
        grid-template-columns: 1fr 1fr;
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .insight-hero-stats article:last-child {
        grid-column: 1 / -1;
    }

    .insight-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-library-stats,
    .insight-activity-grid,
    .insight-diagnosis-grid {
        grid-template-columns: 1fr 1fr;
    }

    .insight-dialog {
        width: 100%;
        max-height: calc(100% - 22px);
        margin: auto 0 0;
        border-radius: 9px 9px 0 0;
    }

    .insight-dialog-shell {
        max-height: calc(100vh - 22px);
    }

    .insight-data-list article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .insight-data-list .insight-quality {
        justify-self: start;
    }

    .insight-data-dates {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .insight-period-tabs a {
        min-width: 0;
        padding: 0 8px;
    }

    .insight-hero {
        min-height: 590px;
    }

    .insight-hero-copy {
        padding-right: 16px;
        padding-left: 16px;
    }

    .insight-hero-stats {
        gap: 6px;
    }

    .insight-hero-stats article,
    .insight-hero-stats a {
        padding: 9px 10px;
    }

    .insight-ranking,
    .insight-recent-grid,
    .insight-library-stats,
    .insight-activity-grid,
    .insight-diagnosis-grid {
        grid-template-columns: 1fr;
    }

    .insight-ranking {
        gap: 8px;
        padding: 10px;
    }

    .insight-rank-card {
        grid-template-columns: 132px minmax(0, 1fr);
        grid-template-rows: 1fr;
    }

    .insight-rank-card:last-child:nth-child(odd) {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .insight-rank-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .insight-rank-copy {
        padding: 10px;
    }

    .insight-bar {
        grid-template-columns: minmax(80px, 110px) minmax(0, 1fr) minmax(64px, max-content);
        gap: 6px;
        padding-right: 2px;
        padding-left: 2px;
    }

    .insight-preference-card {
        padding: 11px;
    }

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

@media (max-width: 340px) {
    .insight-hero {
        min-height: 620px;
    }

    .insight-rank-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .insight-bar {
        grid-template-columns: minmax(72px, 94px) minmax(0, 1fr) minmax(58px, max-content);
    }
}

/* Phase 2 period archive */
.insight-v2-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    min-height: 330px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #32506a;
    border-radius: 7px;
    background: #0b1620;
}

.insight-v2-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, #0b1620 0%, #0b1620f2 44%, #0b16205c 76%, #0b1620 100%);
}

.insight-v2-hero__copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 34px 36px 112px;
}

.insight-v2-hero__copy > p:first-child,
.insight-v2-preparing > div > p {
    margin: 0 0 7px;
    color: #68a8f5;
    font-size: 0.68rem;
    font-weight: 900;
}

.insight-v2-hero__copy h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.insight-v2-hero__copy > p:nth-of-type(2) {
    max-width: 680px;
    margin: 13px 0 0;
    color: #c0ced8;
    line-height: 1.7;
}

.insight-v2-hero__comparison {
    display: inline-flex;
    margin-top: 17px;
    padding: 8px 10px;
    border-left: 3px solid #5fd397;
    color: #b9d8ca;
    background: #13251f;
    font-size: 0.75rem;
}

.insight-v2-hero__art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    min-width: 0;
    opacity: 0.7;
}

.insight-v2-hero__art img {
    width: 100%;
    height: 100%;
    min-height: 165px;
    object-fit: cover;
}

.insight-v2-metrics {
    position: absolute;
    right: 18px;
    bottom: 17px;
    left: 18px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.insight-v2-metrics article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 78px;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #3a5163;
    border-radius: 5px;
    background: #101c27ed;
    backdrop-filter: blur(8px);
}

.insight-v2-metrics small,
.insight-v2-metrics span {
    color: #8fa3b1;
    font-size: 0.62rem;
}

.insight-v2-metrics strong {
    margin: 4px 0 2px;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.2;
}

.insight-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.insight-v2-main,
.insight-v2-side {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.insight-v2-section,
.insight-v2-side-card,
.insight-v2-moment {
    min-width: 0;
}

.insight-v2-preparing {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 22px;
}

.insight-v2-preparing h2,
.insight-v2-preparing p {
    margin: 0;
}

.insight-v2-preparing > strong {
    margin-top: 6px;
    font-size: 1.05rem;
}

.insight-v2-preparing > p {
    max-width: 760px;
    color: #9fb0bc;
    line-height: 1.65;
}

.insight-v2-trend {
    display: grid;
    grid-template-columns: repeat(31, minmax(8px, 1fr));
    align-items: end;
    min-height: 224px;
    gap: 3px;
    padding: 18px 14px 12px;
}

.insight-v2-trend.is-year {
    grid-template-columns: repeat(12, minmax(30px, 1fr));
}

.insight-v2-trend.is-all {
    grid-template-columns: repeat(auto-fit, minmax(26px, 1fr));
}

.insight-v2-trend__item {
    display: grid;
    grid-template-rows: 168px auto;
    align-items: end;
    min-width: 0;
    height: 200px;
    padding: 0;
    border: 0;
    color: #91a5b4;
    background: transparent;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.insight-v2-trend__item:hover,
.insight-v2-trend__item:focus-visible {
    outline: 2px solid #6aa5ef;
    outline-offset: 2px;
}

.insight-v2-trend__bar {
    display: block;
    width: min(100%, 22px);
    min-height: 3px;
    justify-self: center;
    border-radius: 3px 3px 0 0;
    background: #4f93e9;
}

.insight-v2-trend__item.is-missing .insight-v2-trend__bar {
    height: 3px;
    background: repeating-linear-gradient(90deg, #3a4852 0 2px, transparent 2px 4px);
}

.insight-v2-trend__item.is-confirmed .insight-v2-trend__bar.is-level-0 {
    height: 3px;
    background: #5d786c;
}

.insight-v2-trend__item.is-interval_only .insight-v2-trend__bar,
.insight-v2-trend__item.is-baseline .insight-v2-trend__bar,
.insight-v2-trend__item.is-partial .insight-v2-trend__bar {
    height: 7px;
    background: #9b7f45;
}

.insight-v2-trend__bar.is-level-0 { height: 3px; }
.insight-v2-trend__bar.is-level-1 { height: 5%; }
.insight-v2-trend__bar.is-level-2 { height: 10%; }
.insight-v2-trend__bar.is-level-3 { height: 15%; }
.insight-v2-trend__bar.is-level-4 { height: 20%; }
.insight-v2-trend__bar.is-level-5 { height: 25%; }
.insight-v2-trend__bar.is-level-6 { height: 30%; }
.insight-v2-trend__bar.is-level-7 { height: 35%; }
.insight-v2-trend__bar.is-level-8 { height: 40%; }
.insight-v2-trend__bar.is-level-9 { height: 45%; }
.insight-v2-trend__bar.is-level-10 { height: 50%; }
.insight-v2-trend__bar.is-level-11 { height: 55%; }
.insight-v2-trend__bar.is-level-12 { height: 60%; }
.insight-v2-trend__bar.is-level-13 { height: 65%; }
.insight-v2-trend__bar.is-level-14 { height: 70%; }
.insight-v2-trend__bar.is-level-15 { height: 75%; }
.insight-v2-trend__bar.is-level-16 { height: 80%; }
.insight-v2-trend__bar.is-level-17 { height: 85%; }
.insight-v2-trend__bar.is-level-18 { height: 90%; }
.insight-v2-trend__bar.is-level-19 { height: 95%; }
.insight-v2-trend__bar.is-level-20 { height: 100%; }

.insight-v2-trend__item small {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-v2-calendar-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.insight-v2-calendar-month {
    min-width: 0;
    padding: 11px;
    border: 1px solid #293d4c;
    border-radius: 5px;
    background: #0b141c;
}

.insight-v2-calendar-month h3 {
    margin: 0 0 8px;
    font-size: 0.76rem;
}

.insight-v2-calendar-weekdays,
.insight-v2-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.insight-v2-calendar-weekdays span {
    color: #708493;
    font-size: 0.52rem;
    text-align: center;
}

.insight-v2-calendar-grid > button,
.insight-v2-calendar-grid > .is-blank {
    aspect-ratio: 1;
}

.insight-v2-calendar-grid > button {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 0;
    border: 1px solid #324653;
    border-radius: 3px;
    color: #b9c7d0;
    background: #17232c;
    font: inherit;
    font-size: 0.56rem;
    cursor: pointer;
}

.insight-v2-calendar-grid > button:hover,
.insight-v2-calendar-grid > button:focus-visible {
    outline: 2px solid #6ca9f1;
    outline-offset: 1px;
}

.insight-v2-calendar-grid > button.is-missing {
    color: #657580;
    border-style: dashed;
    background: #111a21;
}

.insight-v2-calendar-grid > button.is-confirmed.is-level-0 {
    color: #aac3b8;
    border-color: #38564a;
    background: #17271f;
}

.insight-v2-calendar-grid > button.is-interval_only,
.insight-v2-calendar-grid > button.is-baseline,
.insight-v2-calendar-grid > button.is-partial {
    color: #d8c28e;
    border-color: #66583a;
    background: #2a2418;
}

.insight-v2-calendar-grid > button.is-level-1 { background: #183351; }
.insight-v2-calendar-grid > button.is-level-2 { background: #1d4672; }
.insight-v2-calendar-grid > button.is-level-3 { background: #245b94; }
.insight-v2-calendar-grid > button.is-level-4 { background: #2d70b6; }
.insight-v2-calendar-grid > button.is-level-5 { background: #3e8bda; }

.insight-v2-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 0 14px 14px;
    color: #8498a7;
    font-size: 0.62rem;
}

.insight-v2-calendar-legend span::before {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border: 1px solid #445766;
    content: "";
}

.insight-v2-calendar-legend .is-zero::before { background: #17271f; }
.insight-v2-calendar-legend .is-played::before { background: #2d70b6; }
.insight-v2-calendar-legend .is-interval::before { background: #2a2418; }

.insight-v2-ranking {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
}

.insight-v2-game {
    display: grid;
    grid-column: span 2;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #2b3e4d;
    border-radius: 5px;
    background: #0b141c;
}

.insight-v2-game.rank-1,
.insight-v2-game.rank-2,
.insight-v2-game.rank-3 {
    grid-column: span 2;
}

.insight-v2-game__image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    color: #7590a3;
    background: #172735;
}

.insight-v2-game__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-v2-game__image b {
    position: absolute;
    top: 7px;
    left: 7px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #72a8ed;
    border-radius: 4px;
    color: #fff;
    background: #102942e6;
}

.insight-v2-game.rank-1 .insight-v2-game__image b {
    color: #ffe29c;
    border-color: #d4a64a;
    background: #3a2b0fe6;
}

.insight-v2-game > div {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 11px;
}

.insight-v2-game > div > small {
    color: #6fa2de;
    font-size: 0.6rem;
    font-weight: 800;
}

.insight-v2-game h3,
.insight-v2-game p {
    margin: 0;
}

.insight-v2-game h3 {
    min-height: 2.5em;
    font-size: 0.8rem;
    line-height: 1.25;
}

.insight-v2-game h3 a {
    color: #edf4f8;
    text-decoration: none;
}

.insight-v2-game p {
    color: #8fa2b0;
    font-size: 0.64rem;
}

.insight-v2-game p strong {
    color: #e3edf3;
}

.insight-v2-game .like-form {
    margin-top: 3px;
}

.insight-v2-dual,
.insight-v2-category-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.insight-v2-compact-games {
    display: grid;
    gap: 5px;
    padding: 9px 12px 12px;
}

.insight-v2-compact-games a {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    gap: 10px;
    padding: 5px;
    border: 1px solid #2b3e4d;
    border-radius: 4px;
    color: #e6eef3;
    text-decoration: none;
}

.insight-v2-compact-games img {
    width: 92px;
    height: 43px;
    object-fit: cover;
}

.insight-v2-compact-games span,
.insight-v2-compact-games strong,
.insight-v2-compact-games small {
    display: block;
    min-width: 0;
}

.insight-v2-compact-games strong {
    font-size: 0.72rem;
}

.insight-v2-compact-games small {
    margin-top: 3px;
    color: #879dac;
    font-size: 0.62rem;
}

.insight-v2-category-columns {
    padding: 12px;
}

.insight-v2-category-columns > article {
    min-width: 0;
}

.insight-v2-category-columns h3 {
    margin: 0 0 8px;
    font-size: 0.82rem;
}

.insight-v2-categories {
    display: grid;
    gap: 4px;
}

.insight-v2-categories button {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(70px, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    gap: 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 4px;
    color: #dce7ed;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.insight-v2-categories button:hover,
.insight-v2-categories button:focus-visible {
    outline: 2px solid #4f86c6;
    outline-offset: -2px;
    background: #132432;
}

.insight-v2-categories button span:first-child,
.insight-v2-categories button strong,
.insight-v2-categories button small {
    display: block;
    min-width: 0;
}

.insight-v2-categories button strong {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-v2-categories button small {
    color: #7f94a3;
    font-size: 0.58rem;
}

.insight-v2-share {
    height: 7px;
    overflow: hidden;
    border-radius: 2px;
    background: #23323e;
}

.insight-v2-share i {
    display: block;
    height: 100%;
    background: #55bd98;
}

.insight-v2-categories button b {
    font-size: 0.62rem;
}

.insight-v2-change-grid,
.insight-v2-achievement-summary,
.insight-v2-activity {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
}

.insight-v2-change-grid button,
.insight-v2-achievement-summary article,
.insight-v2-activity a {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 82px;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #2b3f4f;
    border-radius: 5px;
    color: #e6eef3;
    background: #101b25;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.insight-v2-change-grid button:not(:disabled) {
    cursor: pointer;
}

.insight-v2-change-grid button:not(:disabled):hover,
.insight-v2-change-grid button:not(:disabled):focus-visible,
.insight-v2-activity a:hover,
.insight-v2-activity a:focus-visible {
    border-color: #5386bd;
    background: #142635;
}

.insight-v2-change-grid button:disabled {
    opacity: 0.7;
}

.insight-v2-change-grid small,
.insight-v2-achievement-summary small,
.insight-v2-activity small {
    color: #8ca0ae;
    font-size: 0.64rem;
}

.insight-v2-change-grid strong,
.insight-v2-achievement-summary strong,
.insight-v2-activity strong {
    margin-top: 4px;
    font-size: 1.15rem;
}

.insight-v2-change-grid span {
    margin-top: 2px;
    color: #718794;
    font-size: 0.56rem;
}

.insight-v2-note {
    margin: 0;
    padding: 0 14px 14px;
    color: #8599a7;
    font-size: 0.66rem;
}

.insight-v2-achievements {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0 12px 12px;
}

.insight-v2-achievements button {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    min-width: 0;
    min-height: 68px;
    gap: 2px 8px;
    padding: 6px;
    border: 1px solid #2d4050;
    border-radius: 4px;
    color: #e5edf2;
    background: #0b141c;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.insight-v2-achievements button:hover,
.insight-v2-achievements button:focus-visible {
    border-color: #5788bc;
}

.insight-v2-achievements img,
.insight-v2-achievements button > span {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.insight-v2-achievements button > span {
    display: grid;
    place-items: center;
    color: #e4b95c;
    background: #2b2416;
}

.insight-v2-achievements strong {
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-v2-achievements small {
    color: #8296a5;
    font-size: 0.58rem;
}

.insight-v2-diagnoses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
}

.insight-v2-diagnoses a {
    display: flex;
    flex-direction: column;
    min-height: 68px;
    justify-content: center;
    padding: 10px;
    border: 1px solid #2c4050;
    border-radius: 4px;
    color: #e6eef3;
    text-decoration: none;
}

.insight-v2-diagnoses strong {
    font-size: 0.72rem;
}

.insight-v2-diagnoses small {
    margin-top: 4px;
    color: #8398a7;
    font-size: 0.62rem;
}

.insight-v2-side-card .game-life-panel-heading button {
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid #3b5d7b;
    border-radius: 4px;
    color: #cfe0eb;
    background: #142737;
    font: inherit;
    font-size: 0.64rem;
    cursor: pointer;
}

.insight-v2-coverage,
.insight-v2-comparison-message {
    padding: 10px 12px;
}

.insight-v2-coverage > strong {
    color: #78b2fb;
    font-size: 1.55rem;
}

.insight-v2-coverage > strong small {
    color: #8195a3;
    font-size: 0.7rem;
}

.insight-v2-coverage p,
.insight-v2-comparison-message {
    margin: 6px 0 0;
    color: #9fb0bc;
    font-size: 0.7rem;
    line-height: 1.5;
}

.insight-v2-coverage .is-warning {
    color: #e2c381;
}

.insight-v2-comparison {
    margin: 0;
    padding: 0 12px 10px;
}

.insight-v2-comparison div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-top: 1px solid #263844;
}

.insight-v2-comparison dt {
    color: #8fa3b1;
    font-size: 0.64rem;
}

.insight-v2-comparison dd {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
}

.insight-v2-year-comparison {
    margin: 0 12px 10px;
    padding-top: 9px;
    border-top: 1px solid #263844;
}

.insight-v2-year-comparison h3,
.insight-v2-year-comparison p {
    margin: 0;
}

.insight-v2-year-comparison h3 {
    color: #dce8ef;
    font-size: 0.68rem;
}

.insight-v2-year-comparison p {
    margin-top: 4px;
    color: #91a4b2;
    font-size: 0.66rem;
    line-height: 1.45;
}

.insight-v2-archive h3 {
    margin: 11px 12px 5px;
    color: #8499a7;
    font-size: 0.64rem;
}

.insight-v2-archive > div:not(.game-life-panel-heading) {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 12px 10px;
}

.insight-v2-archive a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid #304858;
    border-radius: 4px;
    color: #b8c8d2;
    font-size: 0.64rem;
    text-decoration: none;
}

.insight-v2-archive a:hover,
.insight-v2-archive a:focus-visible,
.insight-v2-archive a.is-current-type {
    color: #e9f4fa;
    border-color: #4f81b5;
    background: #16314a;
}

.insight-detail-summary {
    margin: 0;
    padding: 14px 18px 6px;
    color: #a8bac5;
    line-height: 1.6;
}

.insight-detail-items {
    display: grid;
    gap: 6px;
    padding: 8px 18px 18px;
}

.insight-detail-items > a,
.insight-detail-items > div,
.insight-detail-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #2d4050;
    border-radius: 4px;
    color: #dce7ed;
    text-decoration: none;
}

.insight-detail-items img {
    width: 92px;
    height: 43px;
    object-fit: cover;
}

.insight-detail-items span,
.insight-detail-items strong,
.insight-detail-items small {
    display: block;
    min-width: 0;
}

.insight-detail-items strong {
    font-size: 0.74rem;
}

.insight-detail-items small {
    margin-top: 4px;
    color: #8ca1af;
    font-size: 0.64rem;
}

.insight-unified-flow {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.insight-unified-group {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.insight-unified-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 0 4px;
}

.insight-unified-heading p,
.insight-unified-heading h2 {
    margin: 0;
}

.insight-unified-heading p,
.insight-accordion summary small {
    color: #55a8f5;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0;
}

.insight-unified-heading h2 {
    margin-top: 3px;
    color: #f2f7fa;
    font-size: 1rem;
}

.insight-unified-heading > span {
    color: #8fa3b1;
    font-size: 0.7rem;
}

.insight-highlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.insight-highlight-main,
.insight-accordion-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.insight-highlight-support {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
}

.insight-highlight-support.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.insight-dashboard > *,
.insight-unified-flow,
.insight-unified-flow > *,
.insight-accordion {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.insight-highlight-main > .game-life-panel,
.insight-highlight-support > .game-life-panel,
.insight-accordion-body > .game-life-panel,
.insight-accordion-body > .insight-v2-dual {
    margin: 0;
}

.insight-v2-support-card {
    min-height: 0;
}

.insight-v2-support-card .game-life-panel-heading {
    min-height: 0;
    padding: 10px 12px;
}

.insight-v2-support-card .insight-section-heading h2 {
    font-size: 0.86rem;
}

.insight-v2-support-card .insight-section-heading p {
    font-size: 0.6rem;
}

.insight-accordion {
    overflow: clip;
    border: 1px solid #273b4a;
    border-radius: 6px;
    background: linear-gradient(145deg, #0c1822, #0a131c);
}

.insight-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    gap: 16px;
    padding: 9px 14px;
    color: #edf4f8;
    cursor: pointer;
    list-style: none;
}

.insight-accordion > summary::-webkit-details-marker {
    display: none;
}

.insight-accordion > summary:hover {
    background: #132534;
}

.insight-accordion > summary:focus-visible {
    outline: 2px solid #55a8f5;
    outline-offset: -3px;
}

.insight-accordion > summary span,
.insight-accordion > summary small,
.insight-accordion > summary strong {
    display: block;
}

.insight-accordion > summary span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.insight-accordion > summary strong {
    margin-top: 2px;
    font-size: 0.86rem;
}

.insight-accordion > summary b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #71b8fa;
    font-size: 1rem;
    transition: transform 160ms ease;
}

.insight-accordion[open] > summary b {
    transform: rotate(45deg);
}

.insight-accordion-body {
    padding: 14px 10px 10px;
    border-top: 1px solid #213542;
}

.insight-history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding-top: 0;
}

.insight-history-summary article {
    min-height: 70px;
    padding: 11px;
    border: 1px solid #294252;
    border-radius: 4px;
    background: #101f2b;
}

.insight-history-summary small,
.insight-history-summary strong {
    display: block;
}

.insight-history-summary small {
    color: #8fa6b5;
    font-size: 0.66rem;
}

.insight-history-summary strong {
    margin-top: 6px;
    color: #f0f6f9;
    font-size: 1rem;
}

.insight-activity-panel .insight-v2-activity a,
.insight-activity-panel .insight-activity-grid a {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
}

.insight-activity-panel .insight-v2-activity a > span:last-child,
.insight-activity-panel .insight-activity-grid a > span:last-child {
    grid-column: 2 / -1;
    color: #78909e;
    font-size: 0.62rem;
}

.insight-activity-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #70b9fb;
    border: 1px solid #315777;
    border-radius: 50%;
    background: #10263a;
}

@media (max-width: 1240px) {
    .insight-v2-layout {
        grid-template-columns: 1fr;
    }

    .insight-v2-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .insight-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .insight-highlight-support {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .insight-v2-hero {
        grid-template-columns: 1fr;
    }

    .insight-v2-hero__art {
        position: absolute;
        inset: 0 0 0 50%;
    }

    .insight-v2-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .insight-v2-hero__copy {
        padding-bottom: 202px;
    }

    .insight-v2-calendar-list,
    .insight-v2-achievements {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .insight-unified-heading {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

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

    .insight-accordion > summary {
        min-height: 52px;
        padding: 9px 11px;
    }

    .insight-accordion-body {
        padding: 12px 6px 6px;
    }

    .insight-v2-hero {
        min-height: 610px;
    }

    .insight-v2-hero::after {
        background: linear-gradient(180deg, #0b1620e8 0%, #0b1620 58%);
    }

    .insight-v2-hero__copy {
        align-self: start;
        padding: 23px 18px 370px;
    }

    .insight-v2-hero__copy h1 {
        font-size: 1.5rem;
    }

    .insight-v2-hero__art {
        inset: 0;
        opacity: 0.3;
    }

    .insight-v2-metrics {
        right: 11px;
        bottom: 11px;
        left: 11px;
        grid-template-columns: 1fr 1fr;
    }

    .insight-v2-metrics article {
        min-height: 72px;
    }

    .insight-v2-side,
    .insight-v2-dual,
    .insight-v2-category-columns {
        grid-template-columns: 1fr;
    }

    .insight-v2-trend {
        grid-template-columns: repeat(16, minmax(10px, 1fr));
        min-height: 180px;
        overflow: hidden;
    }

    .insight-v2-trend.is-month .insight-v2-trend__item:nth-child(even) small {
        visibility: hidden;
    }

    .insight-v2-trend.is-year,
    .insight-v2-trend.is-all {
        grid-template-columns: repeat(12, minmax(16px, 1fr));
    }

    .insight-v2-trend__item {
        grid-template-rows: 130px auto;
        height: 158px;
    }

    .insight-v2-calendar-list {
        grid-template-columns: 1fr;
    }

    .insight-v2-ranking {
        grid-template-columns: 1fr 1fr;
    }

    .insight-v2-game,
    .insight-v2-game.rank-1,
    .insight-v2-game.rank-2,
    .insight-v2-game.rank-3 {
        grid-column: span 1;
    }

    .insight-v2-change-grid,
    .insight-v2-achievement-summary,
    .insight-v2-activity,
    .insight-v2-diagnoses {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 390px) {
    .insight-v2-hero {
        min-height: 660px;
    }

    .insight-v2-hero__copy {
        padding-right: 15px;
        padding-left: 15px;
    }

    .insight-v2-ranking,
    .insight-v2-achievements {
        grid-template-columns: 1fr;
    }

    .insight-v2-game {
        grid-template-columns: 122px minmax(0, 1fr);
        grid-template-rows: 1fr;
    }

    .insight-v2-game__image {
        height: 100%;
        min-height: 150px;
        aspect-ratio: auto;
    }

    .insight-v2-change-grid,
    .insight-v2-achievement-summary,
    .insight-v2-activity,
    .insight-v2-diagnoses {
        gap: 5px;
        padding: 9px;
    }

    .insight-v2-categories button {
        grid-template-columns: minmax(95px, 1fr) minmax(48px, 0.8fr) auto;
    }
}

@media (max-width: 330px) {
    .insight-history-summary {
        gap: 4px;
    }

    .insight-history-summary article {
        min-height: 64px;
        padding: 9px;
    }

    .insight-v2-hero {
        min-height: 700px;
    }

    .insight-v2-game {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .insight-v2-change-grid,
    .insight-v2-achievement-summary,
    .insight-v2-activity,
    .insight-v2-diagnoses {
        grid-template-columns: 1fr;
    }
}

/* Insight hero, lower sections, and mobile density polish. */
.insight-hero,
.insight-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    isolation: isolate;
}

.insight-hero-art,
.insight-v2-hero__art {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 3px;
    opacity: 0.76;
}

.insight-hero-art img,
.insight-v2-hero__art img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.insight-hero::after,
.insight-v2-hero::after {
    z-index: 1;
    background:
        linear-gradient(90deg, #08131ff2 0%, #08131fdd 42%, #08131f73 72%, #08131fb8 100%),
        linear-gradient(0deg, #08131fe8 0%, transparent 58%);
}

.insight-hero-copy,
.insight-v2-hero__copy {
    align-self: auto;
    min-height: 0;
    padding: 34px 36px 20px;
}

.insight-v2-hero__actions {
    margin-top: 20px;
}

.insight-hero-stats,
.insight-v2-metrics {
    position: relative;
    inset: auto;
    z-index: 3;
    margin: 0 20px 20px;
}

.insight-data-guide-button {
    justify-self: start;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #4a79a2;
    border-radius: 4px;
    color: #e2edf4;
    background: #142b3d;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.insight-v2-achievement-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-v2-achievement-summary article {
    height: 100%;
    min-height: 86px;
}

.insight-v2-achievement-summary strong {
    overflow-wrap: normal;
    word-break: normal;
}

.insight-diagnosis-panel .insight-v2-diagnoses,
.insight-diagnosis-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-v2-diagnoses a,
.insight-diagnosis-grid article {
    position: relative;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
    background: #0b141c;
}

.insight-v2-diagnoses img,
.insight-diagnosis-grid article > img,
.insight-v2-diagnoses > a > .insight-diagnosis-fallback,
.insight-diagnosis-grid article > .insight-diagnosis-fallback {
    display: grid;
    width: 104px;
    height: 104px;
    aspect-ratio: 1 / 1;
    place-items: center;
    object-fit: cover;
    border-radius: 5px;
    color: #77a8dc;
    background: linear-gradient(145deg, #15324a, #0e1d2a);
}

.insight-v2-diagnoses > a > span:last-child,
.insight-diagnosis-grid article > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.insight-v2-diagnoses strong,
.insight-diagnosis-grid h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.insight-diagnosis-result,
.insight-diagnosis-grid article > div p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #aabac5;
    font-size: 0.7rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.insight-v2-diagnoses small,
.insight-diagnosis-grid time {
    margin-top: 0;
    white-space: nowrap;
}

.insight-diagnosis-grid article > a {
    position: absolute;
    inset: 0;
    z-index: 2;
    min-height: 0;
    margin: 0;
    border: 0;
}

.insight-top-panel .insight-ranking {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.insight-top-panel .insight-rank-card,
.insight-top-panel .insight-rank-card:last-child:nth-child(odd) {
    display: grid;
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 0;
}

.insight-top-panel .insight-rank-image {
    align-self: stretch;
    aspect-ratio: 16 / 9;
}

.insight-top-panel .insight-rank-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 7px;
    padding: 10px;
}

.insight-top-panel .insight-rank-copy h3 {
    min-height: 2.5em;
    overflow-wrap: normal;
    word-break: normal;
}

.insight-top-panel .insight-rank-copy p {
    white-space: normal;
    overflow-wrap: normal;
    word-break: keep-all;
}

.insight-activity-grid,
.insight-v2-activity {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
}

.insight-activity-panel .insight-v2-activity a,
.insight-activity-panel .insight-activity-grid a {
    display: flex;
    min-width: 0;
    min-height: 96px;
    height: auto;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
}

.insight-activity-kpi {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.insight-activity-kpi .insight-activity-icon {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
}

.insight-activity-kpi strong {
    min-width: 0;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.insight-activity-label,
.insight-activity-detail {
    display: block;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.insight-activity-label {
    color: #dce7ed;
    font-weight: 800;
}

.insight-activity-panel .insight-v2-activity a > .insight-activity-detail,
.insight-activity-panel .insight-activity-grid a > .insight-activity-detail {
    color: #78909e;
    font-size: 0.62rem;
}

@media (max-width: 1100px) {
    .insight-top-panel .insight-ranking {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .insight-diagnosis-panel .insight-v2-diagnoses,
    .insight-diagnosis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .insight-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .insight-v2-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .insight-v2-achievement-summary,
    .insight-activity-grid,
    .insight-v2-activity {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .insight-hero,
    .insight-v2-hero {
        min-height: 0;
    }

    .insight-hero-art,
    .insight-v2-hero__art {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        opacity: 0.62;
    }

    .insight-hero::after,
    .insight-v2-hero::after {
        background: linear-gradient(180deg, #08131feb 0%, #08131fd6 48%, #08131ff5 100%);
    }

    .insight-hero-copy,
    .insight-v2-hero__copy {
        min-height: 0;
        padding: 24px 18px 16px;
    }

    .insight-hero-stats,
    .insight-v2-metrics {
        right: auto;
        bottom: auto;
        left: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 12px 14px;
    }

    .insight-hero-stats article,
    .insight-hero-stats a,
    .insight-v2-metrics article {
        min-height: 76px;
    }

    .insight-top-panel .insight-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .insight-top-panel .insight-rank-card,
    .insight-top-panel .insight-rank-card:last-child:nth-child(odd) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .insight-top-panel .insight-rank-copy {
        min-width: 0;
        padding: 9px;
    }

    .insight-top-panel .insight-rank-copy h3 {
        font-size: 0.74rem;
    }

    .insight-top-panel .insight-rank-copy p {
        font-size: 0.64rem;
    }

    .insight-v2-achievement-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-diagnosis-panel .insight-v2-diagnoses,
    .insight-diagnosis-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .insight-v2-diagnoses a,
    .insight-diagnosis-grid article {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .insight-v2-diagnoses img,
    .insight-diagnosis-grid article > img,
    .insight-v2-diagnoses > a > .insight-diagnosis-fallback,
    .insight-diagnosis-grid article > .insight-diagnosis-fallback {
        width: 80px;
        height: 80px;
        aspect-ratio: 1 / 1;
    }

    .insight-activity-panel .insight-v2-activity a,
    .insight-activity-panel .insight-activity-grid a {
        min-height: 0;
        gap: 6px;
        padding: 12px;
    }

    .insight-activity-kpi {
        gap: 7px;
    }

    .insight-activity-kpi .insight-activity-icon {
        flex-basis: 26px;
    }

    .insight-activity-kpi strong {
        font-size: 1.1rem;
    }

    .insight-activity-label {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .insight-activity-panel .insight-v2-activity a > .insight-activity-detail,
    .insight-activity-panel .insight-activity-grid a > .insight-activity-detail {
        display: none;
    }
}

@media (max-width: 350px) {
    .insight-top-panel .insight-ranking {
        grid-template-columns: minmax(0, 1fr);
    }

    .insight-activity-grid,
    .insight-v2-activity {
        grid-template-columns: minmax(0, 1fr);
    }

    .insight-activity-panel .insight-v2-activity a,
    .insight-activity-panel .insight-activity-grid a {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        min-height: 56px;
        padding: 10px 12px;
    }
}
