.account-settings-nav a { min-height: 44px; }
.account-panels { min-width: 0; }
.account-card > p { color: #59656d; line-height: 1.7; }
.account-card a, .account-panels > p a { color: #22604f; text-underline-offset: 3px; }
.account-profile-summary > a, .account-trash-link { padding: 10px 14px; color: #22604f; font-weight: 700; }
.account-trash-link { display: block; }
.content-removal { position: relative; font-size: 13px; margin: 8px 0; color: #815443; }
.feed-post__header > .content-removal { margin-left: auto; }
.content-removal summary { cursor: pointer; padding: 8px; border-radius: 8px; }
.content-removal__confirm { position: relative; padding: 16px; border: 1px solid #e8ded5; border-radius: 12px; background: #fffaf6; max-width: 320px; min-width: 180px; }
.feed-post__header .content-removal__confirm { position: absolute; right: 0; top: 100%; z-index: 5; width: min(280px, 75vw); }
.content-removal__confirm p { margin: 0 0 12px; line-height: 1.6; }
.content-removal button { border: 0; border-radius: 8px; background: #86503c; color: white; padding: 10px 14px; cursor: pointer; }
.trash-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.trash-tabs a { display: block; padding: 10px 14px; color: #475e55; border: 1px solid #dfe7e1; background: white; border-radius: 99px; text-decoration: none; }
.trash-tabs [aria-current] { background: #22604f; color: white; border-color: #22604f; }
.trash-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e4e9e4; padding: 20px 0; }
.trash-item > div { min-width: 0; overflow-wrap: anywhere; }
.trash-item p { font-size: 13px; color: #657469; margin: 8px 0 0; }
.trash-empty { padding: 24px 0; }
.game-card__play { display: inline-flex; align-items: center; gap: 12px; color: #22604f; font-weight: 700; padding: 12px 0; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #327a68; outline-offset: 3px; }
@media(max-width: 600px) { .trash-item { align-items: flex-start; flex-direction: column; } .account-settings-nav { display: flex; flex-wrap: wrap; gap: 6px; } .account-settings-nav a { flex: 1 1 auto; padding: 12px; } }

[data-notice-toggle] { position: relative; }
.activity-badge { position: absolute; top: -3px; right: -5px; min-width: 18px; padding: 2px 4px; background: #a84938; color: white; border-radius: 20px; font-size: 10px; line-height: 14px; }
.activity-badge[hidden] { display: none; }
[data-activity-container] { min-width: 0; }
.activity-item { display: flex; align-items: center; gap: 0; border-bottom: 1px solid #e8ecf4; border-radius: 12px; color: #192343; }
.activity-item.is-unread { background: #f0f2ff; }
.activity-item:hover { background: #f5f6fb; }
.activity-item.is-unread:hover { background: #e8ecff; }
.activity-open { flex: 1; min-width: 0; margin: 0; }
.activity-open__button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 16px 10px; border: 0; background: transparent; text-align: start; color: inherit; font: inherit; cursor: pointer; }
.activity-avatar { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #e3e8ff; color: #5260e8; font-weight: 700; }
.activity-avatar .user-avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.activity-symbol { position: absolute; bottom: -4px; inset-inline-end: -4px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid white; border-radius: 50%; background: #5260e8; color: white; font-size: 13px; }
.activity-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.activity-label { display: block; font-size: 14px; line-height: 1.5; font-weight: 500; }
.is-unread .activity-label { font-weight: 700; }
.activity-context, .activity-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.5; color: #62708a; margin-top: 5px; }
.activity-preview { padding-inline-start: 8px; border-inline-start: 2px solid #c9d2ec; color: #394863; }
.activity-item time { display: block; color: #718099; font-size: 11px; margin-top: 6px; }
.activity-item.is-unread time { color: #5260e8; font-weight: 600; }
.activity-thumbnail { flex: 0 0 44px; width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.activity-read { flex: 0 0 32px; margin: 0; }
.activity-read button { display: grid; place-items: center; width: 32px; min-height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.activity-read button span { width: 9px; height: 9px; border-radius: 50%; background: #5260e8; }
.activity-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 16px; }
.activity-toolbar form { margin: 0; }
.activity-filters { display: flex; gap: 5px; }
.activity-filters button, .activity-read-all { border: 0; border-radius: 20px; background: transparent; color: #53617a; padding: 9px 13px; min-height: 40px; font: inherit; font-size: 12px; cursor: pointer; }
.activity-filters button[aria-pressed="true"] { background: #e9edff; color: #424ecc; font-weight: 700; }
.activity-read-all { color: #5260e8; padding-inline: 4px; }
.activity-toolbar button:hover { background: #eef1fa; }
[data-activity-container] button:focus-visible { outline: 3px solid #8492f5; outline-offset: -3px; }
[data-activity-container] button:disabled { opacity: .55; cursor: wait; }
[data-activity-container] [hidden] { display: none !important; }
.activity-empty-unread { padding: 24px 12px; color: #62708a; font-size: 14px; text-align: center; }
.notice-panel .activity-toolbar { padding: 0 16px 12px; }
.notice-panel .notice-list { min-height: 0; max-height: min(65vh, 520px); overflow: auto; padding: 0 6px; }
@media (max-width: 720px) {
    .notifications-page .home-content { background: white; }
    .notifications-page .community-main { width: 100%; padding-top: 12px; }
    .notifications-page .community-heading { padding-inline: 16px; }
    .notifications-page .activity-page { margin: 0; padding: 0; border: 0; border-radius: 0; }
    .activity-page > .activity-toolbar { padding: 12px 16px; }
    [data-activity-container] .activity-item { border-radius: 0; }
    [data-activity-container] .activity-open__button { padding: 16px; }
    [data-activity-container] .activity-read { flex-basis: 36px; padding-inline-end: 4px; }
    [data-activity-container] .activity-label { font-size: 15px; }
    [data-activity-container] .activity-context, [data-activity-container] .activity-preview { font-size: 13px; }
    #notificationPanel.notice-panel { inset: 0; width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; overflow: hidden; padding-top: env(safe-area-inset-top); }
    #notificationPanel > header, #notificationPanel > footer, #notificationPanel > .activity-toolbar { flex-shrink: 0; }
    #notificationPanel .notice-list { flex: 1; max-height: none; padding: 0; overscroll-behavior: contain; }
    #notificationPanel > footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
[data-activity-status]:empty { display: none; }
[data-activity-retry] { border: 1px solid #ccd4e7; background: white; color: #5260e8; border-radius: 8px; padding: 9px; cursor: pointer; }
[data-activity-status]:not(:empty) { padding: 10px; color: #904432; }
.account-switch > span { pointer-events: none; }
.account-switch input[type="checkbox"]:focus-visible + span { outline: 3px solid #327a68; outline-offset: 3px; }

.account-switch input[type="checkbox"] { inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: auto; z-index: 1; cursor: pointer; }
.post-menu { position: relative; margin-left: auto; flex: 0 0 auto; }
.post-menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.post-menu > summary::-webkit-details-marker { display: none; }
.post-menu > summary svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.post-menu[open] > summary, .post-menu > summary:hover { background: #edf3ef; }
.post-menu__options { position: absolute; top: calc(100% + 5px); right: 0; z-index: 20; width: min(270px, 78vw); padding: 8px; border: 1px solid #dce5dd; border-radius: 12px; background: white; box-shadow: 0 8px 28px #263d3224; }
.post-menu__options > a, .post-menu__options .content-removal > summary { display: block; padding: 12px; border-radius: 8px; font-size: 14px; text-decoration: none; color: #30483b; }
.post-menu__options > a:hover { background: #f0f6f1; }
.post-menu__options .content-removal { margin: 0; }
.post-menu__options .content-removal > summary { color: #914a35; }
.feed-post__header .post-menu .content-removal__confirm { position: static; width: auto; min-width: 0; padding: 12px; }
.contact-report { margin: 28px 0; scroll-margin-top: 100px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 600; }
.contact-form :is(input, textarea) { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cbd8d0; border-radius: 9px; font: inherit; background: white; }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }

.post-menu--above > .post-menu__options { top: auto; bottom: calc(100% + 5px); }

.content-options { width: max-content; margin: 8px 0; }.content-options .post-menu__options { right: auto; left: 0; }.moderation-user-notice { position: fixed; bottom: 85px; left: 50%; transform: translateX(-50%); z-index: 70; max-width: calc(100% - 24px); padding: 12px 18px; border: 1px solid #bdd0eb; border-radius: 12px; background: #f0f6ff; box-shadow: 0 5px 22px #1736521a; font-size: 13px; }.moderation-user-notice a { color: #22579e; }.live-message .message-report { font-size: 10px; color: inherit; opacity: .75; margin-left: 8px; }

.content-removal button[data-delete-cancel] { background: #eef2f6; color: #334155; }
.content-removal button:disabled { opacity: .55; cursor: wait; }
.content-removal [data-delete-status]:empty { display: none; }
.content-removal [data-delete-status]:not(:empty) { margin: 10px 0 0; }

.post-menu:has(.content-removal[open]) { z-index: 75; }
.account-page #name-change-hint { margin: 0; font-size: 13px; line-height: 1.6; color: #596b83; }
.account-page .account-field input[readonly] { background: #f5f7fb; color: #65758b; cursor: default; }
.account-page:has(.moderation-user-notice) .account-main { padding-bottom: 100px; }
