/* Contributor profile page styles.
   Isolated from the shared stylesheet so unrelated page releases cannot remove them. */

/* v4.0.5 beta contributor overview redesign */
.profile-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, .85fr);
    gap: 1rem;
    align-items: stretch;
}
.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}
.profile-stat {
    position: relative;
    min-width: 0;
    min-height: 132px;
    padding: 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(11, 39, 47, .78), rgba(4, 18, 24, .92));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.14);
}
.profile-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(var(--cyan), var(--cyan-deep));
    opacity: .85;
}
.profile-stat > span,
.profile-feature-card span {
    color: #c7d6d5;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .025em;
}
.profile-stat strong {
    display: block;
    margin: .35rem 0 .25rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(2.15rem, 2.75vw, 3.25rem);
    font-weight: 700;
    line-height: .92;
    white-space: nowrap;
}
.profile-stat-value strong {
    font-size: clamp(1.9rem, 2.35vw, 2.8rem);
}
.profile-stat small,
.profile-feature-card small {
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.35;
}
.profile-feature-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.profile-feature-card {
    min-width: 0;
    min-height: 0;
    padding: .95rem 1rem;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(10, 36, 44, .9), rgba(4, 17, 23, .94));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.14);
}
.profile-feature-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(71, 239, 227, .18);
    border-radius: 7px;
    background: rgba(2, 13, 18, .52);
}
.profile-feature-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.profile-feature-card strong {
    display: block;
    min-width: 0;
    margin: .28rem 0 .24rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 1.75vw, 1.9rem);
    line-height: 1.02;
    white-space: nowrap;
}
@media (max-width: 1240px) {
  .profile-overview {
    grid-template-columns: 1fr;
  }
  .profile-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}
@media (max-width: 850px) {
  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-feature-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }
  .profile-feature-card strong {
    white-space: normal;
  }
}

/* v4.0.6 beta contributor stat console redesign */
.profile-overview {
    grid-template-columns: minmax(500px, 1.12fr) minmax(440px, .88fr);
    gap: 1rem;
}
.profile-stat-console {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(8, 31, 39, .92), rgba(3, 16, 22, .96));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.14);
}
.profile-stat-compact {
    min-width: 0;
    min-height: 104px;
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(4, 20, 27, .36);
}
.profile-stat-compact:nth-child(2n) { border-right: 0; }
.profile-stat-compact:nth-last-child(-n+2) { border-bottom: 0; }
.profile-stat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--cyan-bright);
    border: 1px solid rgba(71,239,227,.2);
    border-radius: 7px;
    background: rgba(3, 14, 19, .62);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.profile-stat-icon .icon {
    width: 25px;
    height: 25px;
}
.profile-stat-compact small {
    display: block;
    color: #c8d7d6;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.profile-stat-compact strong {
    display: block;
    margin-top: .26rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(2rem, 2.5vw, 2.85rem);
    line-height: .95;
    white-space: nowrap;
}
.profile-stat-compact-value strong {
    font-size: clamp(1.75rem, 2.15vw, 2.45rem);
}
.profile-stat-compact-wide {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
}
@media (max-width: 1240px) {
  .profile-overview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .profile-stat-console {
    grid-template-columns: 1fr;
  }
  .profile-stat-compact,
  .profile-stat-compact:nth-child(2n),
  .profile-stat-compact:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .profile-stat-compact:last-child { border-bottom: 0; }
}

/* v4.0.7 beta contributor inventory redesign */
.profile-inventory-panel {
    padding: 1.05rem 1.1rem 1.15rem;
}
.profile-inventory-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
    gap: 1.25rem;
    align-items: end;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.profile-inventory-title h2 {
    margin: .22rem 0 .35rem;
    font-size: clamp(1.85rem, 2.55vw, 2.9rem);
    line-height: 1;
}
.profile-inventory-title p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}
.profile-activity-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.profile-activity-range > div {
    min-width: 0;
    padding: .72rem .8rem;
    border-left: 2px solid var(--cyan-deep);
    background: rgba(4, 20, 27, .42);
}
.profile-activity-range span,
.distribution-value small {
    display: block;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.profile-activity-range strong {
    display: block;
    margin-top: .25rem;
    color: #d8e3e2;
    font-size: .74rem;
    line-height: 1.42;
}
.profile-inventory-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .8rem 0 .15rem;
}
.profile-inventory-summary span {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .38rem .58rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: rgba(3, 15, 21, .38);
    font-size: .7rem;
}
.profile-inventory-summary b {
    color: var(--cyan-bright);
    font-size: .78rem;
}
.profile-distribution-grid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: .72rem;
    margin-top: .75rem;
}
.profile-distribution-row {
    min-height: 84px;
    padding: .72rem .78rem;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: .8rem;
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(8, 31, 39, .72), rgba(3, 16, 22, .78));
    transition: transform .18s, border-color .18s, background .18s;
}
.profile-distribution-row:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: linear-gradient(145deg, rgba(10, 39, 47, .82), rgba(4, 19, 25, .88));
}
.distribution-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(71,239,227,.14);
    border-radius: 6px;
    background: rgba(2, 12, 17, .48);
}
.distribution-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.distribution-copy {
    min-width: 0;
}
.distribution-copy b {
    display: block;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.distribution-copy small {
    display: block;
    margin-top: .2rem;
    color: var(--muted);
    font-size: .7rem;
}
.distribution-copy i {
    display: block;
    height: 3px;
    margin-top: .55rem;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(71,239,227,.09);
}
.distribution-copy i em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
}
.distribution-value {
    min-width: 88px;
    text-align: right;
}
.distribution-value strong {
    display: block;
    margin-top: .28rem;
    color: var(--gold);
    font-size: .92rem;
    white-space: nowrap;
}
@media (max-width: 980px) {
  .profile-inventory-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .profile-activity-range {
    max-width: 720px;
  }
}
@media (max-width: 620px) {
  .profile-activity-range {
    grid-template-columns: 1fr;
  }
  .profile-distribution-grid {
    grid-template-columns: 1fr;
  }
  .profile-distribution-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .distribution-value {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }
  .distribution-value small {
    display: none;
  }
}

/* v4.0.8 beta contributor recent-rewards redesign */
.profile-recent-panel {
    padding: 1rem 1.05rem 1.1rem;
}
.profile-recent-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: end;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.profile-recent-header h2 {
    margin: .18rem 0 .4rem;
}
.profile-recent-header p {
    max-width: 660px;
    margin: 0;
    font-size: .82rem;
}
.profile-recent-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .45rem;
}
.profile-recent-summary > span {
    display: inline-flex;
    align-items: baseline;
    gap: .28rem;
    min-height: 34px;
    padding: .45rem .65rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(3, 16, 22, .52);
    font-size: .7rem;
    white-space: nowrap;
}
.profile-recent-summary > span b {
    color: var(--text);
    font-size: .8rem;
}
.profile-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}
.profile-recent-card {
    position: relative;
    min-width: 0;
    min-height: 88px;
    display: grid;
    grid-template-columns: 56px minmax(145px, 1fr) minmax(92px, auto) minmax(150px, auto) auto;
    align-items: center;
    gap: .8rem;
    padding: .72rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 21, 28, .68);
    transition: border-color .18s, background .18s, transform .18s;
}
.profile-recent-card:hover {
    border-color: var(--line-strong);
    background: rgba(7, 29, 37, .82);
    transform: translateY(-1px);
}
.profile-recent-card.is-latest {
    border-color: rgba(71, 239, 227, .42);
    box-shadow: inset 3px 0 var(--cyan);
}
.profile-recent-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(71, 239, 227, .15);
    border-radius: 7px;
    background: rgba(2, 12, 17, .58);
}
.profile-recent-icon img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}
.profile-recent-copy {
    min-width: 0;
}
.profile-recent-title-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.profile-recent-title-line > a {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-recent-title-line > a:hover {
    color: var(--cyan-bright);
}
.profile-recent-title-line > span {
    flex: 0 0 auto;
    padding: .18rem .35rem;
    border: 1px solid rgba(71, 239, 227, .28);
    border-radius: 4px;
    color: var(--cyan-bright);
    background: rgba(24, 166, 165, .1);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.profile-recent-copy > small,
.profile-recent-value small,
.profile-recent-time small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.35;
}
.profile-recent-copy > small {
    margin-top: .25rem;
}
.profile-recent-value {
    min-width: 92px;
    padding-left: .8rem;
    border-left: 1px solid var(--line);
}
.profile-recent-value strong {
    display: block;
    margin-top: .22rem;
    color: var(--gold);
    font-size: .94rem;
    white-space: nowrap;
}
.profile-recent-time {
    min-width: 150px;
    padding-left: .8rem;
    border-left: 1px solid var(--line);
}
.profile-recent-time strong {
    display: block;
    font-size: .78rem;
    white-space: nowrap;
}
.profile-recent-time small {
    margin-top: .2rem;
    white-space: nowrap;
}
.profile-proof-button {
    white-space: nowrap;
}
.profile-proof-button .icon {
    width: 1rem;
    height: 1rem;
}
@media (max-width: 1280px) {
  .profile-recent-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .profile-recent-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .profile-recent-summary {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .profile-recent-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }
  .profile-recent-value,
  .profile-recent-time {
    grid-column: 2;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }
  .profile-recent-value {
    display: flex;
    align-items: baseline;
    gap: .45rem;
  }
  .profile-recent-value strong {
    margin-top: 0;
  }
  .profile-recent-time {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
  }
  .profile-recent-time small {
    margin-top: 0;
  }
  .profile-proof-button {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
  .profile-proof-button span {
    display: none;
  }
}
@media (max-width: 480px) {
  .profile-recent-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .profile-proof-button {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }
}

/* v4.0.50 personal achievement cabinet */
.profile-achievements-panel {
    padding: 1.1rem;
    overflow: hidden;
}
.profile-achievements-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.profile-achievements-header h2,
.profile-achievement-section-heading h3 {
    margin: .2rem 0 .3rem;
    line-height: 1;
}
.profile-achievements-header h2 {
    font-size: clamp(1.95rem, 2.7vw, 3rem);
}
.profile-achievements-header p,
.profile-achievement-empty-cabinet p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}
.profile-achievement-score {
    min-width: 230px;
    padding: .8rem .9rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .15rem .65rem;
    align-items: end;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(9, 35, 43, .92), rgba(3, 16, 22, .96));
}
.profile-achievement-score > strong {
    grid-row: 1 / span 2;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 2.35rem;
    line-height: .85;
}
.profile-achievement-score > strong small {
    color: #b9c9c7;
    font-size: .95rem;
}
.profile-achievement-score > span {
    color: #d8e2e1;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.profile-achievement-score > div {
    grid-column: 1 / -1;
    height: 6px;
    margin-top: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}
.profile-achievement-score > div i,
.profile-achievement-progress > span i,
.profile-achievement-ledger-progress > span i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan-deep), var(--cyan-bright), var(--gold));
}
.profile-achievement-score > em {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: .65rem;
    font-style: normal;
    text-align: right;
}
.profile-achievement-tier-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .85rem;
}
.profile-achievement-tier-summary > span {
    min-width: 0;
    padding: .65rem .75rem;
    display: flex;
    align-items: baseline;
    gap: .35rem;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 6px;
    background: rgba(4, 20, 27, .48);
}
.profile-achievement-tier-summary b {
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.35rem;
}
.profile-achievement-tier-summary small {
    overflow: hidden;
    color: var(--muted);
    font-size: .67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-achievement-tier-summary .tier-bronze { border-left-color: #b67548; }
.profile-achievement-tier-summary .tier-silver { border-left-color: #aebac5; }
.profile-achievement-tier-summary .tier-gold { border-left-color: #e7bd55; }
.profile-achievement-tier-summary .tier-mythic { border-left-color: #b476ff; }
.profile-achievement-section-heading {
    margin: 1.25rem 0 .7rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}
.profile-achievement-section-heading h3 {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}
.profile-achievement-section-heading > small {
    color: var(--muted);
    font-size: .7rem;
}
.profile-achievement-next-heading {
    padding-top: .25rem;
    border-top: 1px solid rgba(255,255,255,.035);
}
.profile-achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .72rem;
}
.profile-achievement-next-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-achievement-card {
    position: relative;
    min-width: 0;
    min-height: 210px;
    padding: .85rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top-width: 2px;
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(8, 31, 39, .82), rgba(3, 16, 22, .92));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 10px 22px rgba(0,0,0,.12);
}
.profile-achievement-card::after {
    content: "";
    position: absolute;
    width: 115px;
    height: 115px;
    right: -55px;
    top: -60px;
    border-radius: 50%;
    background: currentColor;
    filter: blur(45px);
    opacity: .08;
    pointer-events: none;
}
.profile-achievement-card.tier-bronze { color: #d39567; border-top-color: #b67548; }
.profile-achievement-card.tier-silver { color: #d3dde5; border-top-color: #aebac5; }
.profile-achievement-card.tier-gold { color: #f1cf72; border-top-color: #e7bd55; }
.profile-achievement-card.tier-mythic { color: #c89cff; border-top-color: #b476ff; }
.profile-achievement-card.is-locked {
    background: linear-gradient(150deg, rgba(7, 25, 32, .65), rgba(3, 14, 19, .82));
}
.profile-achievement-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
}
.profile-achievement-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: rgba(2, 12, 17, .56);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
    font-size: 1.5rem;
}
.profile-achievement-card.is-locked .profile-achievement-icon {
    filter: grayscale(.75);
    opacity: .68;
}
.profile-achievement-tier {
    padding: .23rem .4rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .92;
}
.profile-achievement-card h4 {
    margin: .8rem 0 .35rem;
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.05;
}
.profile-achievement-card p {
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.45;
}
.profile-achievement-card footer {
    margin-top: auto;
    padding-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .64rem;
}
.profile-achievement-card footer strong {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--cyan-bright);
    font-size: .66rem;
}
.profile-achievement-card footer .icon {
    width: .8rem;
    height: .8rem;
}
.profile-achievement-progress {
    margin-top: auto;
    padding-top: .8rem;
}
.profile-achievement-progress > span,
.profile-achievement-ledger-progress > span {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.075);
}
.profile-achievement-progress > small {
    display: block;
    margin-top: .38rem;
    color: #c6d2d1;
    font-size: .65rem;
    text-align: right;
}
.profile-achievement-empty-cabinet {
    margin-top: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: rgba(3, 16, 22, .42);
}
.profile-achievement-empty-cabinet > span {
    font-size: 2rem;
}
.profile-achievement-empty-cabinet strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--text);
}
.profile-achievement-ledger {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(3, 15, 21, .46);
}
.profile-achievement-ledger > summary {
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    background: rgba(8, 31, 39, .58);
}
.profile-achievement-ledger > summary::-webkit-details-marker { display: none; }
.profile-achievement-ledger > summary::after {
    content: "+";
    color: var(--cyan-bright);
    font-size: 1.35rem;
    line-height: 1;
}
.profile-achievement-ledger[open] > summary::after { content: "−"; }
.profile-achievement-ledger > summary span {
    color: var(--text);
    font-weight: 800;
}
.profile-achievement-ledger > summary small {
    margin-left: auto;
    color: var(--muted);
    font-size: .68rem;
}
.profile-achievement-ledger-body {
    padding: .85rem;
    display: grid;
    gap: 1rem;
    border-top: 1px solid var(--line);
}
.profile-achievement-ledger-tier > header {
    padding: 0 .1rem .55rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}
.profile-achievement-ledger-tier > header h4 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.18rem;
}
.profile-achievement-ledger-tier.tier-bronze > header h4 { color: #d39567; }
.profile-achievement-ledger-tier.tier-silver > header h4 { color: #d3dde5; }
.profile-achievement-ledger-tier.tier-gold > header h4 { color: #f1cf72; }
.profile-achievement-ledger-tier.tier-mythic > header h4 { color: #c89cff; }
.profile-achievement-ledger-tier > header span {
    color: var(--muted);
    font-size: .66rem;
}
.profile-achievement-ledger-tier > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}
.profile-achievement-ledger-row {
    min-width: 0;
    padding: .62rem .68rem;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(105px, .4fr);
    align-items: center;
    gap: .65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(5, 23, 30, .55);
}
.profile-achievement-ledger-row.is-locked {
    opacity: .68;
}
.profile-achievement-ledger-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(2, 12, 17, .54);
    font-size: 1.05rem;
}
.profile-achievement-ledger-row.is-locked .profile-achievement-ledger-icon {
    filter: grayscale(1);
}
.profile-achievement-ledger-copy {
    min-width: 0;
}
.profile-achievement-ledger-copy strong,
.profile-achievement-ledger-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-achievement-ledger-copy strong {
    color: var(--text);
    font-size: .72rem;
}
.profile-achievement-ledger-copy small {
    margin-top: .18rem;
    color: var(--muted);
    font-size: .61rem;
}
.profile-achievement-ledger-progress small {
    display: block;
    margin-top: .28rem;
    color: var(--muted);
    font-size: .6rem;
    text-align: right;
}
.profile-achievement-ledger-row.is-unlocked .profile-achievement-ledger-progress small {
    color: var(--cyan-bright);
}
@media (max-width: 1180px) {
  .profile-achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-achievement-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-achievement-ledger-tier > div { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .profile-achievements-header { grid-template-columns: 1fr; align-items: start; }
  .profile-achievement-score { width: 100%; min-width: 0; }
  .profile-achievement-tier-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-achievement-section-heading { align-items: start; flex-direction: column; gap: .25rem; }
  .profile-achievement-grid,
  .profile-achievement-next-grid { grid-template-columns: 1fr; }
  .profile-achievement-card { min-height: 190px; }
  .profile-achievement-ledger > summary { align-items: flex-start; flex-wrap: wrap; }
  .profile-achievement-ledger > summary small { width: calc(100% - 2rem); margin-left: 0; }
}
@media (max-width: 520px) {
  .profile-achievements-panel { padding: .85rem; }
  .profile-achievement-tier-summary { grid-template-columns: 1fr; }
  .profile-achievement-ledger-row { grid-template-columns: 32px minmax(0, 1fr); }
  .profile-achievement-ledger-progress { grid-column: 2; }
}
