.community-section{margin:38px 0 20px;padding-top:24px;border-top:2px solid var(--orange)}.community-section h2,.community-member-page h2{font-size:2.2rem}.community-intro{font:1.2rem/1.65 var(--serif);max-width:65ch;margin:16px 0 22px}.community-auth{padding:18px 0;border-block:1px solid var(--line);margin:20px 0}.community-auth>p{margin:0 0 10px}.community-auth form{max-width:500px}.community-auth a{margin-right:15px}.community-status,.community-note{font-size:.9rem;color:var(--muted)}.community-status:empty{display:none}.community-form-fold{border-bottom:1px solid var(--line);padding:15px 0}.community-form-fold>summary{cursor:pointer;font:700 1.35rem var(--serif);padding:4px 0}.community-form-fold>p{max-width:75ch;margin:15px 0}.community-section form,.community-member-page form{display:grid;gap:10px;margin:12px 0 4px;max-width:760px}.community-section label,.community-member-page label{display:grid;gap:4px;font-size:.95rem;font-weight:700}.community-section input,.community-section textarea,.community-section select,.community-member-page input,.community-member-page textarea,.community-member-page select{width:100%;min-width:0;border:1px solid var(--line);background:var(--cream);color:var(--navy);font:1rem/1.5 var(--sans);border-radius:0;padding:8px 10px}.community-section textarea,.community-member-page textarea{resize:vertical}.community-section form .btn,.community-member-page form .btn{justify-self:start}.community-section button:disabled,.community-member-page button:disabled{opacity:.6;cursor:wait}.community-section [data-form-status],.community-member-page [data-form-status]{font-size:.95rem;margin:0}.community-error{color:#9d2a14!important}.memory-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.memory-card{border-top:2px solid var(--navy);padding:18px 0;min-width:0}.memory-card h3{font-size:1.65rem}.memory-card .memory-byline{font-size:.85rem;color:var(--muted);margin:9px 0 13px}.memory-card .memory-body{white-space:pre-wrap;overflow-wrap:anywhere;font:1.1rem/1.7 var(--serif)}.community-member-page{padding-top:25px}.community-member-page [data-my-contributions]{margin:30px 0}.contribution-card,.history-item{border-bottom:1px solid var(--line);padding:17px 0;overflow-wrap:anywhere}.contribution-card h3{font-size:1.4rem;margin:8px 0}.contribution-card pre,.history-item pre{font:1rem/1.55 var(--sans);white-space:pre-wrap;background:var(--cream);border-left:2px solid var(--line);padding:12px;margin:13px 0;overflow-wrap:anywhere}.contribution-card p{margin:9px 0;white-space:pre-wrap}.contribution-meta,.history-item small{font-size:.85rem;color:var(--muted)}.contribution-state{display:inline-block;border:1px solid var(--line);padding:3px 9px;font-size:.85rem}.community-moderation{margin:35px 0;padding-top:24px;border-top:2px solid var(--navy)}.community-moderation>p{margin:15px 0;max-width:75ch}.review-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}.review-actions button{min-height:44px}.history-item form{max-width:560px}.community-empty{font-style:italic;color:var(--muted);padding:12px 0}.community-auth form p{font-size:.9rem}.community-member-page .community-section{margin-top:30px}
@media(max-width:760px){.memory-list{grid-template-columns:1fr;gap:10px}.community-section h2,.community-member-page h2{font-size:1.9rem}.community-section{margin-top:28px}.community-auth a{display:inline-flex;margin-bottom:10px}.community-form-fold>summary{font-size:1.2rem}.community-member-page .page-intro h1{font-size:2.6rem}}

.inline-memory-form{background:var(--cream);border:1px solid var(--line);padding:12px 14px;margin:14px 0}.inline-memory-form form{margin-top:0}.inline-memory-form textarea[name=body]{min-height:96px}@media(max-width:760px){.inline-memory-form{padding:12px}.inline-memory-form button{width:fit-content;max-width:100%;justify-self:start!important}}

.community-auth label.remember-choice{display:flex;align-items:center;gap:10px;font-weight:400}.remember-choice input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.community-auth button{min-height:44px}.community-auth [hidden]{display:none!important}

/* Compact contribution fields and touch-sized controls, in both languages. */
.community-section form .btn,.community-member-page form .btn{min-height:44px;padding:8px 14px;line-height:1.25;align-self:start;max-width:100%}.community-section input:not([type=checkbox]),.community-section select,.community-member-page input:not([type=checkbox]),.community-member-page select{min-height:44px;font-size:1rem}.community-section textarea,.community-member-page textarea{font-size:1rem;line-height:1.4}.community-section input[name=year],.community-member-page input[name=year]{max-width:160px}.community-auth{padding:12px 0;margin:14px 0}.community-auth [data-email-form],.community-auth [data-code-form],.community-auth [data-join]{max-width:400px}.community-auth .remember-choice{gap:8px;font-size:.9rem;line-height:1.4}.inline-memory-form .community-note{margin:0;line-height:1.45}.community-auth .review-actions{margin-top:6px;gap:8px}

/* Shared compact B1 collection, Swedish and English. */
.collection-panel{border-top:2px solid #10263a;padding:1rem 0;margin:1.5rem 0}.collection-panel h2{font-size:1.6rem;margin:.25rem 0 1rem}.collection-choices{display:flex;flex-wrap:wrap;gap:.4rem 1rem}.collection-panel .collection-choice{display:flex;align-items:center;gap:.4rem;min-height:44px;font-size:1rem;margin:0}.collection-choice input{width:20px;min-height:20px;height:20px;margin:0;accent-color:#c74e13}.collection-actions,.collection-filters{display:flex;flex-wrap:wrap;gap:.8rem;align-items:end}.collection-panel .btn{padding:.55rem .85rem;min-height:44px;width:auto}.collection-actions select,.collection-filters select,.collection-filters input{min-height:44px;font-size:1rem;max-width:100%}.collection-row{border-bottom:1px solid #cfc7b8;padding:.75rem 0;display:flex;flex-direction:column;gap:.25rem}.collection-row a{font-weight:700}.collection-row small{font-size:.875rem}.collection-panel details{margin-top:1rem}.collection-panel details summary{min-height:44px;cursor:pointer}.collection-panel [role=status]{font-size:1rem}.collection-panel [hidden]{display:none!important}

.private-list-item{border-bottom:1px solid var(--line);padding:.8rem 0}.private-list-item>strong{display:block;margin-bottom:.5rem}[data-list-items]{padding-left:1.4rem}[data-list-editor]{max-width:760px}[data-private-lists] button{white-space:normal}[data-private-lists] [hidden]{display:none!important}
[data-statistics-content]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:18px}[data-statistics-content] h3{font-size:1.4rem}[data-statistics-content] p{font-size:.9rem;color:var(--muted);max-width:55ch;margin-top:10px}.personal-statistics-facts{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 16px;margin:12px 0}.personal-statistics-facts dd{margin:0;font-weight:700}.personal-rating-row{display:grid;grid-template-columns:65px minmax(40px,1fr) 30px;gap:10px;align-items:center;margin:7px 0}.personal-rating-row meter{width:100%;accent-color:var(--orange)}@media(max-width:600px){[data-statistics-content]{grid-template-columns:1fr;gap:18px}}

[data-private-statistics] [hidden]{display:none!important}

.diary-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.diary-filters>label:first-child,.diary-filters>p{grid-column:1/-1}.diary-filters>button{justify-self:start}[data-private-diary] [hidden]{display:none!important}@media(max-width:600px){.diary-filters{grid-template-columns:1fr}}
[data-game-lists] [hidden]{display:none!important}

.member-shortcuts{display:flex;flex-wrap:wrap;gap:8px 20px;margin:18px 0 24px;border-block:1px solid var(--line);padding:10px 0}.member-shortcuts a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:1rem}.community-member-page section[id]{scroll-margin-top:20px}

/* Private disk box uses the real catalogue images and server save dates. */
.collection-game-grid,.collection-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;margin:20px 0}
.collection-game-grid .collection-row{display:block;border-top:1px solid var(--line);border-bottom:0;padding:12px 0;min-width:0}
.collection-game-grid .collection-row a{display:block;text-decoration:none}
.collection-game-grid img,.collection-examples img{width:100%;aspect-ratio:8/5;object-fit:contain;background:var(--navy);image-rendering:pixelated;margin-bottom:10px}
.collection-game-grid strong,.collection-examples strong{display:block;font:700 1.35rem/1.15 var(--serif);overflow-wrap:anywhere}
.collection-game-grid a:hover strong,.collection-examples a:hover strong{text-decoration:underline}
.collection-game-grid .collection-status-line{font-size:.875rem;line-height:1.5;margin-top:9px;color:var(--muted)}
.collection-game-grid .collection-rating{font-size:1rem;font-weight:700;margin-top:4px}
.collection-game-grid time{display:block;font-size:.875rem;color:var(--muted);margin-top:6px}
.collection-examples{grid-template-columns:repeat(2,minmax(0,1fr));max-width:640px}
.collection-examples a{text-decoration:none}
[data-collection-examples]{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}
[data-collection-examples] h3{font-size:1.5rem;margin-bottom:10px}
.memory-expand summary{cursor:pointer;display:flex;align-items:center;min-height:44px;font-weight:700;text-decoration:underline}
.memory-expand .memory-body{margin-top:10px}
@media(max-width:760px){.collection-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.collection-game-grid strong,.collection-examples strong{font-size:1.2rem}}

/* Compact private tools keep one primary action and readable empty states. */
.community-member-page .page-intro{margin-bottom:16px}
.member-shortcuts{margin-block:12px 18px;padding-block:4px;gap:4px 18px}
.community-member-page .collection-panel{margin-block:18px;padding-block:14px}
.collection-game-grid:empty{margin:0}
[data-collection-index-status]:empty,[data-diary-summary]:empty,[data-diary-results]:empty,[data-lists-status]:empty{display:none}
.collection-panel [data-collection-private-actions]{margin-top:12px}
.collection-panel .collection-actions{gap:10px;align-items:end}
.collection-next{min-height:44px}
.collection-panel button[type=submit]:disabled{cursor:default;opacity:.75}
.memory-prompts{border-block:1px solid var(--line);padding-block:8px}
.memory-prompts summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:.875rem;font-weight:700}
.memory-prompts p{font-size:.875rem;font-weight:400;margin-bottom:8px;color:var(--muted)}
.memory-prompts>div{display:flex;flex-wrap:wrap;gap:8px}
.memory-prompts button{font-size:.875rem}
@media(max-width:760px){
 .collection-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .collection-filters>label:first-child{grid-column:1/-1}
 .collection-filters label{min-width:0}
 .community-member-page .page-intro h1{font-size:clamp(1.9rem,8vw,2.6rem);overflow-wrap:normal;hyphens:auto}
 .community-member-page h2,.community-section h2{overflow-wrap:normal;hyphens:auto}
 .community-auth,.collection-panel{max-width:100%;min-width:0}
 .collection-status-line,.collection-game-grid strong,.collection-examples strong{overflow-wrap:break-word;hyphens:auto}
 .personal-statistics-facts{grid-template-columns:minmax(0,1fr) auto}
}

.profile-preview{border:1px solid var(--line,#c8c0b2);padding:1rem;margin:1rem 0;overflow-wrap:anywhere}.profile-preview p{white-space:pre-wrap}[data-public-profile] p{white-space:pre-wrap;overflow-wrap:anywhere}

.profile-avatar{display:block;width:6rem;height:6rem;max-width:100%;border-radius:1rem;margin:0 0 1rem;object-fit:contain}

.memory-game-image { display:block; max-width:min(18rem,100%); height:auto; margin-block-end:.65rem; }
.memory-game-facts { color:var(--muted); font-size:.9rem; }
