.profile-monthly-orbit {
    width: min(380px, 100%);
    min-height: 0;
    margin: 18px auto 0;
    padding: 13px 12px 15px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(174, 191, 211, 0.34);
    border-radius: 21px;
    color: #fff8e9;
    background:
        radial-gradient(circle at 78% 22%, rgba(114, 158, 207, 0.16), transparent 30%),
        radial-gradient(circle at 13% 82%, rgba(232, 193, 112, 0.08), transparent 28%),
        linear-gradient(145deg, #0b2442 0%, #081a34 57%, #0b2949 100%);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(213, 224, 235, 0.08) inset,
        0 1px 0 rgba(255, 255, 255, 0.16) inset;
    isolation: isolate;
}

.profile-monthly-orbit::before {
    content: '';
    position: absolute;
    inset: 7px;
    z-index: -1;
    border: 1px solid rgba(191, 207, 224, 0.18);
    border-radius: 15px;
    pointer-events: none;
}

.profile-monthly-orbit::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.55;
    background:
        radial-gradient(circle at 8% 19%, #f3ca79 0 1px, transparent 1.6px),
        radial-gradient(circle at 92% 16%, #e5edf8 0 1px, transparent 1.7px),
        radial-gradient(circle at 69% 82%, #d6ae66 0 1px, transparent 1.6px),
        radial-gradient(circle at 34% 91%, #ffffff 0 0.7px, transparent 1.4px);
    pointer-events: none;
}

.profile-monthly-orbit[data-loading="true"] .profile-monthly-orbit-layout {
    opacity: 0.45;
}

.profile-orbit-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 18px;
    color: rgba(255, 247, 229, 0.82);
    background: rgba(7, 26, 51, 0.76);
    backdrop-filter: blur(2px);
    font-size: 12px;
    text-align: center;
}

.profile-monthly-orbit[data-loading="true"] .profile-orbit-loading {
    display: flex;
}

.profile-orbit-loading > span {
    color: #e3b867;
}

.profile-monthly-orbit-heading {
    min-height: 34px;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) 27px;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.profile-monthly-orbit-heading > div {
    min-width: 0;
}

.profile-orbit-year {
    margin: 0 0 1px;
    color: rgba(226, 194, 133, 0.68);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7px;
    line-height: 1;
    letter-spacing: 0.22em;
}

.profile-monthly-orbit-heading h2 {
    margin: 0;
    overflow: hidden;
    color: #e9c37a;
    font-family: 'NanumSquareNeo', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    font-size: clamp(11px, 3.4vw, 14px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(233, 195, 122, 0.18);
    white-space: nowrap;
}

.profile-monthly-orbit-heading h2 > span[aria-hidden="true"] {
    margin: 0 3px;
    color: #e3b867;
    font-size: 8px;
}

#profile-orbit-month {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-shadow: inherit;
}

.profile-orbit-month-button {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(225, 196, 139, 0.24);
    border-radius: 50%;
    color: #e9c77f;
    background: rgba(255, 255, 255, 0.035);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
}

.profile-orbit-month-button:hover:not(:disabled) {
    border-color: rgba(236, 204, 143, 0.58);
    background: rgba(255, 255, 255, 0.08);
}

.profile-orbit-month-button:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 2px;
}

.profile-orbit-month-button:disabled {
    cursor: default;
    opacity: 0.24;
}

.profile-monthly-orbit-layout {
    min-height: 0;
    margin-top: 5px;
    display: grid;
    grid-template-columns: minmax(106px, 35%) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    transition: opacity 160ms ease;
}

.profile-orbit-summary {
    min-width: 0;
    padding: 10px 8px 5px 5px;
    border-right: 1px dashed rgba(222, 187, 121, 0.3);
}

.profile-orbit-total {
    margin: 0 0 9px;
    padding-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    line-height: 1.25;
    border-bottom: 1px dashed rgba(222, 187, 121, 0.32);
    white-space: nowrap;
}

.profile-orbit-total-primary {
    display: block;
}

.profile-orbit-total-primary > span {
    margin-right: 3px;
    color: #e9bf70;
}

.profile-orbit-total-primary strong {
    color: #fff0c8;
    font-size: 16px;
}

.profile-orbit-diary-total {
    display: block;
    margin: 2px 0 0 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
}

.profile-orbit-diary-total strong {
    color: #ead6a7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 400;
}

.profile-orbit-fragments {
    min-width: 0;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.profile-orbit-fragments > div {
    min-width: 0;
}

.profile-orbit-fragment-icon {
    color: #eec472;
    font-size: 24px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(238, 196, 114, 0.18);
}

.profile-orbit-fragments > div > span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 9px;
}

.profile-orbit-fragments p {
    margin: 1px 0 0;
    display: flex;
    align-items: baseline;
    color: #f0c671;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.profile-orbit-fragments p strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
}

.profile-orbit-fragments p > span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
}

.profile-orbit-fragments[data-count-width="compact"] {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px;
}

.profile-orbit-fragments[data-count-width="compact"] .profile-orbit-fragment-icon {
    font-size: 21px;
}

.profile-orbit-fragments[data-count-width="compact"] p strong {
    font-size: 17px;
}

.profile-orbit-fragments[data-count-width="compact"] p > span {
    font-size: 8px;
    letter-spacing: -0.03em;
}

.profile-orbit-fragments[data-count-width="dense"] {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 3px;
}

.profile-orbit-fragments[data-count-width="dense"] .profile-orbit-fragment-icon {
    font-size: 18px;
}

.profile-orbit-fragments[data-count-width="dense"] p {
    font-size: 8px;
    letter-spacing: -0.04em;
}

.profile-orbit-fragments[data-count-width="dense"] p strong {
    font-size: 14px;
}

.profile-orbit-fragments[data-count-width="dense"] p > span {
    font-size: 7px;
    letter-spacing: -0.06em;
}

.profile-orbit-mini-stats {
    margin: 13px 0 0;
    padding: 6px 3px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(217, 180, 111, 0.34);
    border-radius: 8px;
    background: rgba(2, 15, 32, 0.28);
}

.profile-orbit-mini-stats > div {
    min-width: 0;
    text-align: center;
}

.profile-orbit-mini-stats > div + div {
    border-left: 1px solid rgba(217, 180, 111, 0.2);
}

.profile-orbit-mini-stats dt {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    font-size: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-orbit-mini-stats dt span {
    color: #e8bf72;
}

.profile-orbit-mini-stats dd {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 8px;
}

.profile-orbit-mini-stats dd strong {
    color: #fff0c5;
    font-size: 13px;
}

.profile-orbit-board {
    min-width: 0;
    padding: 6px 3px 0;
    position: relative;
    border: 1px solid rgba(188, 207, 226, 0.22);
    border-radius: 15px;
    background:
        radial-gradient(circle at 70% 85%, rgba(238, 196, 113, 0.08), transparent 35%),
        rgba(3, 16, 34, 0.17);
}

.profile-orbit-day-grid {
    margin: 7px 0 3px;
    padding: 0 5px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 30px;
}

.profile-orbit-day {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.48);
    font-family: Arial, sans-serif;
    font-size: 7px;
}

.profile-orbit-day::after {
    content: '';
    width: 72%;
    height: 1px;
    position: absolute;
    top: 13px;
    left: 64%;
    z-index: 0;
    background: rgba(169, 188, 207, 0.14);
}

.profile-orbit-day:nth-child(7n)::after,
.profile-orbit-day:last-child::after {
    display: none;
}

.profile-orbit-day.is-recorded:has(+ .profile-orbit-day.is-recorded):not(:nth-child(7n))::after {
    background: linear-gradient(90deg, rgba(255, 243, 214, 0.78), rgba(235, 194, 117, 0.5));
    box-shadow: 0 0 4px rgba(255, 235, 194, 0.3);
}

.profile-orbit-day-number {
    height: 10px;
    line-height: 9px;
}

.profile-orbit-day-star {
    width: 7px;
    height: 7px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff6d9;
    background: rgba(151, 170, 192, 0.42);
    font-size: 8px;
    line-height: 1;
}

.profile-orbit-day.is-recorded {
    color: rgba(255, 255, 255, 0.9);
}

.profile-orbit-day.is-recorded .profile-orbit-day-star {
    background: #f5ead2;
    box-shadow: 0 0 5px rgba(255, 242, 214, 0.5);
}

.profile-orbit-day.level-2 .profile-orbit-day-star {
    width: 8px;
    height: 8px;
}

.profile-orbit-day.level-3 .profile-orbit-day-star,
.profile-orbit-day.level-4 .profile-orbit-day-star {
    width: 9px;
    height: 9px;
    background: #f1cc84;
    box-shadow: 0 0 7px rgba(242, 203, 129, 0.64);
}

.profile-orbit-day.is-brilliant .profile-orbit-day-star {
    width: 15px;
    height: 15px;
    border-radius: 0;
    background: transparent;
    color: #fff5d5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 400;
    transform: translateY(-4px);
    box-shadow: none;
    text-shadow:
        0 0 3px rgba(255, 250, 229, 0.95),
        0 0 7px rgba(241, 202, 126, 0.82);
}

@media (max-width: 345px) {
    .profile-monthly-orbit {
        padding-right: 9px;
        padding-left: 9px;
    }

    .profile-monthly-orbit-layout {
        grid-template-columns: minmax(98px, 34%) minmax(0, 1fr);
        gap: 5px;
    }

    .profile-orbit-summary {
        padding-right: 5px;
    }

    .profile-orbit-day-grid {
        padding-right: 2px;
        padding-left: 2px;
    }
}
