/* These pages inherit the journal's typography, controls and color tokens. */
.main-nav { gap: 27px; white-space: nowrap; }
.main-nav a { color: var(--secondary); }
.main-nav a::after { display: none; }
.main-nav a.nav-active { color: var(--text); }
.main-nav a.nav-active::after { display: block; }
.main-nav a:hover { color: var(--text); }
.community-page { min-height: calc(100dvh - 180px); padding-top: 32px; padding-bottom: 52px; }
.community-page:focus { outline: none; }
.page-loading { margin: 48px 0; color: var(--muted); }
.community-load-error { padding-block: 60px; }
.community-load-error p { color: var(--secondary); max-width: 65ch; }
.community-empty { min-height: 280px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--backdrop); color: var(--secondary); border-radius: var(--media-radius); }
.community-empty>svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 9px; }
.community-empty p { margin: 0 0 6px; font-size: 16px; }
.community-empty>span { color: var(--muted); font-size: 12px; max-width: 36ch; }
.photo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.wall-year { display: flex; align-items: center; gap: 3px; }
.wall-year .select-wrap { margin-right: 8px; }
.wall-year .select-wrap select { min-width: 104px; }
.wall-year .select-wrap>svg { position: absolute; right: 10px; top: 12px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.wall-months { display: flex; justify-content: space-between; gap: 4px; flex: 1; min-width: 0; }
.wall-months button { position: relative; flex: 1; min-width: 36px; height: 40px; padding: 0 4px; border: 0; border-radius: var(--control-radius); background: transparent; color: var(--secondary); font-size: 12px; white-space: nowrap; }
.wall-months button:hover { background: var(--field); color: var(--text); }
.wall-months button[aria-pressed="true"] { color: var(--accent-bright); background: var(--field); }
.wall-months button i { position: absolute; bottom: 3px; left: calc(50% - 1.5px); width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.wall-months button[aria-pressed="true"] i { background: var(--accent-bright); }
.photo-composition { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.55fr); gap: 54px; align-items: center; padding-block: 40px 18px; min-height: 510px; }
.wall-copy { padding-block: 20px; min-width: 0; }
.wall-copy h1 { font-size: clamp(28px,3vw,42px); line-height: 1.38; letter-spacing: -.025em; margin-bottom: 24px; overflow-wrap: anywhere; text-wrap: balance; }
.wall-prose { color: var(--secondary); font-size: 14px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 26px; max-width: 44ch; }
.wall-default-copy { max-width: 25ch; }
.wall-summary { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.wall-summary>span { margin-inline: 9px; }
.wall-copy-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.wall-copy-actions button { min-height: 36px; color: var(--accent-bright); }
.wall-copy-actions button svg { width: 16px; height: 16px; }
.wall-mosaic { display: grid; min-width: 0; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.wall-mosaic-full { grid-template-rows: repeat(5,minmax(0,1fr)); aspect-ratio: 1.34; }
.wall-photo { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; background: var(--backdrop); border-radius: var(--control-radius); overflow: hidden; cursor: zoom-in; }
.wall-photo img, .wall-library-photo img, .wall-selected-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-photo:hover::after, .wall-library-photo:hover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent-bright); pointer-events: none; }
.wall-photo:focus-visible, .wall-library-photo:focus-visible { outline-offset: 3px; }
.wall-photo-name { position: absolute; left: 7px; right: 7px; bottom: 7px; padding: 3px 6px; background: #1d1d1fe6; color: var(--text); width: max-content; max-width: calc(100% - 14px); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--control-radius); opacity: 0; transition: opacity 150ms ease-out; }
.wall-photo:hover .wall-photo-name, .wall-photo:focus-visible .wall-photo-name { opacity: 1; }
.wall-slot-0 { grid-area: 1 / 1 / 3 / 3; }
.wall-slot-1 { grid-area: 1 / 3 / 2 / 4; }
.wall-slot-2 { grid-area: 1 / 4 / 2 / 5; }
.wall-slot-3 { grid-area: 2 / 3 / 4 / 5; }
.wall-slot-4 { grid-area: 3 / 1 / 4 / 2; }
.wall-slot-5 { grid-area: 3 / 2 / 4 / 3; }
.wall-slot-6 { grid-area: 4 / 1 / 6 / 3; }
.wall-slot-7 { grid-area: 4 / 3 / 5 / 4; }
.wall-slot-8 { grid-area: 5 / 3 / 6 / 4; }
.wall-explore { grid-area: 4 / 4 / 6 / 5; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; min-width: 0; padding: 18px 14px; border: 0; border-radius: var(--control-radius); background: var(--field); text-align: left; color: var(--text); }
.wall-explore:hover { background: var(--surface-hover); }
.wall-explore>span { font-weight: 600; font-size: 14px; }
.wall-explore>svg { width: 23px; height: 23px; color: var(--accent-bright); }
.wall-explore>small { color: var(--muted); font-size: 11px; }
.wall-mosaic-medium { aspect-ratio: 1.85; grid-template-rows: repeat(3,minmax(0,1fr)); }
.wall-mosaic-medium .wall-explore { display: none; }
.wall-mosaic-small { aspect-ratio: 1.7; grid-template-rows: repeat(2,minmax(0,1fr)); }
.wall-mosaic-small .wall-explore { grid-area: 2 / 3 / 3 / 5; padding: 10px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.wall-mosaic-small .wall-explore small { flex-basis: 100%; }
.wall-mosaic-small:not(:has(.wall-slot-2)) .wall-slot-1 { grid-area: 1 / 3 / 2 / 5; }
.wall-mosaic-single { display: block; aspect-ratio: 16/10; }
.wall-mosaic-single .community-empty { height: 100%; }
.wall-mosaic-single:has(.community-empty) { aspect-ratio: auto; }
.wall-mosaic-full:has(.wall-slot-6):not(:has(.wall-slot-7)) .wall-explore { grid-column: 3 / 5; }
.wall-mosaic-full:has(.wall-slot-7):not(:has(.wall-slot-8)) .wall-slot-7 { grid-row: 4 / 6; }
.wall-mosaic-medium:has(.wall-slot-3):not(:has(.wall-slot-4)) .wall-slot-0 { grid-row-end: 4; }
.wall-mosaic-medium:has(.wall-slot-4):not(:has(.wall-slot-5)) .wall-slot-4 { grid-column-end: 3; }
.wall-spoiler { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; }
.wall-spoiler svg { width: 22px; height: 22px; }
.wall-image-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; color: var(--muted); background: var(--backdrop); font-size: 12px; text-align: center; }
.wall-viewer-open { overflow: hidden; }
.wall-viewer .viewer-caption { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.community-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.community-section-heading h2 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.community-section-heading h2>span { color: var(--muted); font-size: 12px; margin-left: 7px; font-weight: 400; }
.community-section-heading .text-button { flex-shrink: 0; min-height: 36px; }
.community-section-heading .text-button svg { width: 15px; height: 15px; }
.community-editor { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.community-editor fieldset, .guest-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.community-editor textarea.field-input, .guest-form textarea.field-input { height: auto; min-height: 112px; resize: vertical; line-height: 1.8; }
.community-editor input, .community-editor textarea, .guest-form input, .guest-form textarea { caret-color: var(--accent-bright); }
.wall-editor-copy { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); align-items: start; gap: 24px; }
.wall-source-options { display: flex; flex-wrap: wrap; gap: 14px 25px; margin-top: 24px; }
.wall-source-options label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--secondary); cursor: pointer; min-height: 36px; }
.wall-source-options input { accent-color: var(--accent-bright); }
.wall-selection-heading { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; gap: 16px; }
.wall-selection-heading h3 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.wall-selection-heading h3 span { color: var(--muted); margin-left: 7px; font-weight: 400; }
.wall-selected-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; }
.wall-selected-list li { display: flex; align-items: center; gap: 12px; min-width: 0; padding-block: 9px; border-bottom: 1px solid var(--line); }
.wall-order { color: var(--muted); width: 18px; flex-shrink: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.wall-selected-image { position: relative; width: 64px; height: 40px; flex-shrink: 0; border-radius: var(--control-radius); overflow: hidden; }
.wall-selected-name { font-size: 12px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.wall-selected-name small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wall-order-actions { display: flex; flex-shrink: 0; gap: 0; }
.wall-order-actions .icon-button { width: 30px; }
.wall-order-actions svg { width: 14px; height: 14px; }
.wall-library-search { display: block; max-width: 400px; margin-top: 28px; }
.wall-library { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.wall-library-photo { position: relative; min-width: 0; padding: 0; background: var(--backdrop); border: 0; border-radius: var(--control-radius); overflow: hidden; text-align: left; }
.wall-library-photo>img { height: auto; aspect-ratio: 16/10; }
.wall-library-photo>span:not(.wall-image-error) { display: block; padding: 7px; color: var(--secondary); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-library-photo[aria-pressed="true"] { outline: 2px solid var(--accent-bright); outline-offset: 0; }
.wall-library-photo>i { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--control-radius); background: var(--primary); color: white; }
.wall-library-photo>i svg { width: 15px; height: 15px; }
.wall-library-more { margin-top: 18px; }
.community-editor-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; }
.forum-intro { padding-block: 5px 30px; border-bottom: 1px solid var(--line); }
.forum-intro h1 { font-size: 26px; }
.forum-intro>p { margin: 0; color: var(--muted); font-size: 12px; }
.forum-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; align-items: start; padding-top: 32px; }
.forum-prose { color: var(--secondary); font-size: 15px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.forum-empty-statement { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0; max-width: 40ch; }
.forum-updated { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.forum-editor { margin-top: 0; padding-top: 0; border: 0; }
.forum-editor label, .guest-form label { display: block; margin-bottom: 16px; }
.guestbook-intro { color: var(--secondary); font-size: 13px; line-height: 1.8; margin: -4px 0 22px; max-width: 60ch; }
.guest-form label:has(input) { max-width: 220px; }
.guest-form-footer, .guest-form-footer>div { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.guest-form-footer>div { gap: 16px; }
.guest-form { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.guest-message { --muted: #aaaab1; margin-top: 16px; padding: 20px; border: 1px solid var(--glass-line); border-radius: var(--glass-radius); background: var(--glass-surface); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(110%); backdrop-filter: blur(var(--glass-blur)) saturate(110%); }
.guest-message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.guest-message-meta strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.guest-message-meta time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.guest-message-actions { margin-left: auto; display: flex; gap: 13px; }
.guest-message>p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.9; color: var(--secondary); margin: 10px 0 0; }
.guestbook-empty { padding-block: 40px; color: var(--muted); }
.guestbook-empty p { margin: 0 0 5px; font-size: 14px; }
.guestbook-empty span { font-size: 12px; }
.guestbook-error { padding-top: 24px; }
.forum-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.forum-intro>div { min-width: 0; }
.forum-intro>div>p { margin: 0; color: var(--muted); font-size: 12px; }
.inbox-launcher { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; min-width: 88px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--field); color: var(--secondary); }
.inbox-launcher:hover { color: var(--text); background: var(--surface-hover); }
.inbox-launcher>svg { width: 19px; height: 19px; }
.inbox-launcher-label { font-size: 12px; white-space: nowrap; }
#inboxButtonBadge { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 4px; background: var(--primary); color: white; border-radius: 5px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.main-nav a .message-nav-badge { min-width: 17px; padding: 0 4px; border-radius: 3px; background: var(--field); color: var(--accent-bright); font-size: 10px; text-align: center; font-weight: 600; }
.site-version { display: inline-block; padding: 1px 6px; border-radius: var(--control-radius); background: var(--field); color: var(--secondary); font-size: 11px; font-weight: 500; vertical-align: middle; }
.forum-statement .community-section-heading h2 { min-width: 0; }
.forum-statement-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.forum-statement-toggle { gap: 4px; padding-inline: 6px; border-radius: var(--control-radius); white-space: nowrap; }
.forum-statement-toggle:hover { color: var(--text); background: var(--field); }
.forum-statement-toggle[aria-expanded="true"]>svg { transform: rotate(180deg); }
.forum-statement.is-collapsed .community-section-heading { margin-bottom: 0; }
.release-intro { margin-bottom: 20px; }
.release-entry { border-bottom: 1px solid var(--line); }
.release-summary { display: block; padding-block: 17px; list-style: none; border-radius: var(--control-radius); cursor: pointer; }
.release-summary::-webkit-details-marker { display: none; }
.release-entry:first-child>.release-summary { padding-top: 0; }
.release-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.release-heading .site-version { padding: 1px 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.release-heading time, .release-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.release-heading>svg { width: 14px; height: 14px; color: var(--muted); margin-left: auto; }
.release-summary:hover .site-version, .release-summary:hover .release-heading>svg { color: var(--accent-bright); }
.release-entry[open]>.release-summary .release-heading>svg { transform: rotate(180deg); }
.release-preview { display: block; margin-top: 10px; color: var(--secondary); font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.release-heading-note { display: block; margin-top: 8px; font-size: 13px; color: var(--secondary); }
.release-body { padding-bottom: 19px; font-size: 14px; }
.version-input { max-width: 200px; font-variant-numeric: tabular-nums; }
.guest-floor { font-size: 11px; color: var(--secondary); background: var(--field); padding: 1px 6px; border-radius: var(--control-radius); font-variant-numeric: tabular-nums; }
.comment-posting-rule, .comment-form>.comment-posting-rule { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 8px 0 13px; }
.guest-composer>label { margin-bottom: 7px; }
.expression-tools { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.expression-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 8px; background: transparent; border: 1px solid transparent; border-radius: var(--control-radius); color: var(--secondary); font-size: 12px; }
.expression-toggle svg { width: 16px; height: 16px; }
.expression-toggle:hover, .expression-toggle[aria-expanded="true"] { background: var(--field); color: var(--accent-bright); }
.expression-panel { margin-block: 4px 14px; padding: 8px; background: var(--backdrop); border-radius: var(--media-radius); max-height: 216px; overflow-y: auto; }
.expression-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
.expression-grid>button { min-width: 0; min-height: 40px; padding: 5px; border: 0; border-radius: var(--control-radius); background: transparent; color: var(--text); font-family: "Segoe UI Emoji",var(--font); font-size: 23px; }
.expression-grid>button:hover { background: var(--field); }
.expression-grid>button:focus-visible { outline-offset: -2px; }
.expression-kaomoji { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.expression-kaomoji>button { font: 13px/1.5 var(--font); white-space: nowrap; }
.reply-preference { display: flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 12px; color: var(--muted); font-size: 12px; width: max-content; max-width: 100%; cursor: pointer; }
.reply-preference input { margin: 0; accent-color: var(--accent-bright); }
.guest-social-actions { display: flex; align-items: center; gap: 18px; margin-top: 9px; }
.guest-like { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 4px; border: 0; border-radius: var(--control-radius); background: transparent; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.guest-like svg { width: 14px; height: 14px; }
.guest-like:hover, .guest-like[aria-pressed="true"] { color: var(--accent-bright); }
.guest-like[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .18; }
.guest-social-actions .text-button { min-height: 32px; }
.thread-toggle { min-height: 34px; margin-top: 6px; color: var(--accent-bright); }
.thread-toggle svg { width: 13px; height: 13px; }
.thread-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.guest-replies { margin-top: 13px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.guest-reply { padding-block: 15px; border-bottom: 1px solid var(--line); scroll-margin-block: 25px; }
.guest-reply:last-child { border-bottom: 0; }
.guest-reply>p { margin: 8px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { margin-top: 18px; border-bottom: 0; padding-bottom: 0; }
.reply-form-title { margin: 0 0 14px; color: var(--secondary); font-size: 12px; }
.reply-form textarea.field-input { min-height: 90px; }
.guest-message, .guest-reply { scroll-margin-top: 110px; }
.message-target { outline: 1px solid var(--accent-bright); outline-offset: 7px; border-radius: var(--control-radius); }
.guest-message.message-target { border-radius: var(--glass-radius); outline-offset: 4px; }
.owner-inbox-dialog { width: min(720px,calc(100vw - 48px)); max-width: none; max-height: min(760px,86dvh); margin: auto; padding: 0; border: 0; border-radius: 12px; background: var(--canvas); color: var(--text); box-shadow: 0 16px 60px #0008; overflow: hidden; }
.owner-inbox-dialog::backdrop { background: #0008; }
.inbox-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px 15px 24px; border-bottom: 1px solid var(--line); }
.inbox-dialog-header h2 { margin: 0; font-size: 17px; font-weight: 600; }
.inbox-dialog-header h2 span { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.inbox-dialog-content { padding: 22px 24px 28px; max-height: calc(min(760px,86dvh) - 68px); min-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
.inbox-tools, .inbox-tools>div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px; }
.inbox-tools>div { justify-content: flex-start; gap: 8px 14px; }
.inbox-tools .text-button { min-height: 34px; }
.inbox-tools .text-button svg { width: 14px; height: 14px; }
.inbox-hint { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 16px 0 6px; }
.inbox-message { padding-block: 19px; border-bottom: 1px solid var(--line); }
.inbox-message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: 11px; }
.inbox-source { color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.inbox-message-meta time { font-variant-numeric: tabular-nums; }
.inbox-unread-mark { color: var(--accent-bright); font-size: 10px; margin-left: auto; }
.inbox-message>p { margin: 10px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; font-size: 14px; color: var(--secondary); }
.inbox-message>p strong { font-size: 13px; font-weight: 600; color: var(--text); }
.inbox-message-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.inbox-message-actions .text-button { min-height: 32px; }
.inbox-message-actions svg { width: 13px; height: 13px; }
.inbox-empty { margin: 40px 0; color: var(--muted); font-size: 13px; }
#inboxMore { margin-top: 18px; }
body.inbox-open { overflow: hidden; }
body.inbox-open .floating-tools { visibility: hidden; }
@media (max-width:1099px) {
  .header-inner { gap: 26px; }
  .main-nav { gap: 20px; }
  .header-actions { gap: 12px; }
  .owner-badge { display: none; }
  .photo-toolbar { gap: 15px; }
  .wall-months { flex-basis: 100%; }
  .photo-composition { gap: 30px; grid-template-columns: minmax(0,.85fr) minmax(0,1.4fr); min-height: 460px; }
  .wall-mosaic { gap: 9px; }
  .wall-explore { padding: 10px; }
  .wall-explore>span { font-size: 12px; }
  .wall-explore>small { font-size: 10px; }
  .wall-library { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .forum-layout { gap: 40px; }
}
@media (min-width:768px) and (max-width:999px) {
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: 96px; gap: 0 20px; }
  .header-inner .brand, .header-actions { height: 54px; }
  .main-nav { order: 3; width: 100%; height: 42px; }
  html { scroll-padding-top: 112px; }
}
@media (max-width:767px) {
  .site-header { height: auto; }
  .header-inner { height: auto; min-height: 96px; flex-wrap: wrap; gap: 0 12px; }
  .brand { height: 54px; font-size: 14px; gap: 7px; }
  .brand-symbol { width: 25px; }
  .header-actions { margin-left: auto; height: 54px; }
  #viewMode { font-size: 11px; gap: 5px; }
  #viewMode svg { width: 14px; height: 14px; }
  .main-nav { display: flex; order: 3; width: 100%; height: 42px; justify-content: flex-start; gap: 28px; }
  .main-nav a { font-size: 12px; }
  .main-nav a span { font-size: 10px; }
  html { scroll-padding-top: 112px; }
  .community-page { padding-top: 22px; padding-bottom: 36px; }
  .photo-toolbar { gap: 12px; padding-bottom: 14px; }
  .wall-months { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px; }
  .wall-months button { min-width: 0; }
  .photo-composition { grid-template-columns: minmax(0,1fr); gap: 24px; padding-block: 26px 0; min-height: 0; }
  .wall-copy { padding: 0; }
  .wall-copy h1 { font-size: 30px; margin-bottom: 16px; }
  .wall-prose { margin-bottom: 16px; max-width: 65ch; }
  .wall-summary { margin-bottom: 10px; }
  .wall-mosaic { gap: 8px; }
  .wall-mosaic-full { aspect-ratio: 1.13; }
  .wall-explore { padding: 10px 8px; }
  .wall-explore>small { font-size: 10px; }
  .wall-mosaic-single { aspect-ratio: 16/10; }
  .wall-spoiler { font-size: 11px; gap: 4px; }
  .wall-spoiler svg { width: 18px; height: 18px; }
  .wall-editor-copy, .wall-selected-list, .forum-layout { grid-template-columns: minmax(0,1fr); }
  .wall-editor-copy { gap: 16px; }
  .community-section-heading { gap: 12px; align-items: flex-start; }
  .community-section-heading h2 { font-size: 17px; }
  .community-section-heading>.form-note { display: none; }
  .wall-library { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .wall-library-photo>span:not(.wall-image-error) { font-size: 10px; padding: 6px; }
  .wall-order-actions .icon-button { width: 32px; min-height: 40px; }
  .wall-selected-image { width: 56px; height: 36px; }
  .wall-selected-list li { gap: 8px; }
  .community-editor { margin-top: 28px; scroll-margin-top: 116px; }
  .forum-intro { padding-block: 0 24px; }
  .forum-intro h1 { font-size: 26px; }
  .forum-layout { padding-top: 26px; gap: 36px; }
  .guestbook { padding-top: 27px; border-top: 1px solid var(--line); }
  .guest-message { margin-top: 14px; padding: 16px; }
  .forum-editor { margin-top: 0; }
  .guest-form-footer { gap: 12px; }
  .guest-form-footer>div { gap: 12px; }
  .expression-kaomoji { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .expression-toggle { min-height: 38px; }
  .guest-replies { padding-left: 12px; }
  .guest-reply .guest-message-meta { gap: 6px 8px; }
  .guest-reply .guest-message-actions { gap: 9px; }
  .guest-message, .guest-reply { scroll-margin-top: 120px; }
  .inbox-launcher { height: 36px; }
  .owner-inbox-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); }
  .inbox-dialog-header { padding: 13px 12px 13px 18px; }
  .inbox-dialog-header h2 { font-size: 16px; }
  .inbox-dialog-header h2 span { font-size: 11px; }
  .inbox-dialog-content { max-height: calc(100dvh - 100px); padding: 18px; }
  .inbox-tools { gap: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .wall-photo-name { transition: none; }
}
