@font-face {
    font-family: "Libre Bodoni";
    src: url("../fonts/LibreBodoni-VF.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f4df69;
    background: #090909;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; line-height: 1.5; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: #ffe45c; }
a:hover { color: #fff3a0; }
:focus-visible { outline: 2px solid #ffe45c; outline-offset: 4px; }
::selection { background: #ffe45c; color: #090909; }

.container { width: min(100% - 2rem, 1040px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #292615; background: #090909eb; backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.brand { color: #ffe45c; text-decoration: none; font-family: "Libre Bodoni", Georgia, serif; font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: .015em; }
.brand-dot, .heading-dot { color: #fff4ae; }
.hero h1, .narrow h1, .main.main-service .page-heading h1 { font-family: "Libre Bodoni", Georgia, serif; font-weight: 600; letter-spacing: -.045em; }
.desktop-nav { display: flex; align-items: center; gap: .35rem; }
.desktop-nav a, .link-button { border: 0; border-radius: 999px; padding: .62rem .95rem; background: transparent; color: #b8a94d; text-decoration: none; font-weight: 650; font-size: .9rem; }
.desktop-nav a.active, .desktop-nav a:hover, .link-button:hover { color: #ffe45c; background: #242111; }
.desktop-nav form { margin: 0 0 0 .45rem; }
.notification-bell { position: relative; flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #4a421e; border-radius: 50%; background: #201d10; color: #ffe45c; text-decoration: none; }
.notification-bell:hover, .notification-bell.active { border-color: #ffe45c; background: #302b12; color: #fff3a0; }
.notification-bell svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-badge { position: absolute; top: -5px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border: 2px solid #090909; border-radius: 999px; background: #ffe45c; color: #15120a; font-size: .65rem; font-weight: 850; line-height: 1; }
.mobile-nav { display: none; }
.main { padding-block: 3.5rem 6rem; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.07em; font-weight: 800; }
h2 { margin-bottom: .8rem; font-size: 1.35rem; letter-spacing: -.025em; }
p { color: #c3b76e; }
.eyebrow { margin-bottom: .85rem; color: #a89940; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .7rem; }
.narrow { width: min(100%, 480px); margin-inline: auto; }
.narrow h1 { font-size: clamp(2.7rem, 6vw, 4rem); }
.narrow > p { line-height: 1.65; }
.hero { max-width: 730px; padding-block: clamp(3rem, 11vw, 8rem); }
.hero h1 { font-size: clamp(3.5rem, 10vw, 7rem); }
.hero > p:not(.eyebrow) { font-size: 1.2rem; margin-bottom: 2rem; }
.hero .button span { margin-left: .65rem; }

.button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid transparent; border-radius: 999px; padding: .7rem 1.15rem; text-decoration: none; font-weight: 750; font-size: .9rem; transition: transform .15s, background .15s, border-color .15s; }
.button:hover, .secondary-button:hover, .danger-button:hover { transform: translateY(-2px); }
.button { background: #ffe45c; color: #111006; }
.button:hover { background: #fff29a; color: #111006; }
.secondary-button { border-color: #5b532b; background: #242111; color: #ffe45c; }
.secondary-button:hover { border-color: #ffe45c; color: #fff3a0; }
.danger-button { border-color: #71443b; background: #271615; color: #ffaaa0; }
.danger-button:hover { border-color: #ffaaa0; color: #ffcfca; }

.welcome-panel { position: relative; overflow: hidden; min-height: 315px; display: flex; flex-direction: column; justify-content: end; padding: clamp(1.6rem, 6vw, 3.2rem); border: 1px solid #524717; border-radius: 28px; background: radial-gradient(circle at 85% 10%, #8a6c12 0%, #3e340f 22%, transparent 52%), linear-gradient(140deg, #25200a, #13120e 62%); }
.welcome-panel::after { position: absolute; right: -4rem; top: -8rem; width: 21rem; height: 21rem; border: 1px solid #d9b52a50; border-radius: 50%; content: ""; pointer-events: none; }
.welcome-panel h1 { position: relative; z-index: 1; margin-bottom: .5rem; }
.welcome-panel p:last-child { position: relative; z-index: 1; margin: 0; max-width: 550px; color: #eadb99; font-size: 1.05rem; }
.wave { display: inline-block; margin-left: .3em; color: #ffdf3f; font-size: .48em; vertical-align: top; transform: rotate(-15deg); }
.section-heading { margin: 2.7rem 0 1rem; }
.section-heading h2 { margin: 0; }
.cards { display: grid; gap: 1rem; }
.card { position: relative; display: block; min-height: 205px; padding: 1.5rem; border: 1px solid #38331a; border-radius: 24px; background: #171713; color: #ffe45c; text-decoration: none; transition: transform .18s, border-color .18s, background .18s; }
.card:hover { transform: translateY(-3px); border-color: #a68b2b; background: #1d1b12; color: #fff4a0; }
.card-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.25rem; border-radius: 14px; background: #353012; color: #ffe45c; font-size: 1.7rem; line-height: 1; }
.card h2 { margin-bottom: .25rem; }
.card p { max-width: 25ch; margin-bottom: 0; font-size: .9rem; }
.card-arrow { position: absolute; right: 1.4rem; top: 1.1rem; font-size: 1.5rem; }

.page-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.7rem; }
.page-heading h1 { margin-bottom: .35rem; }
.page-subtitle { margin: 0; font-size: .9rem; }
.search-form { display: flex; gap: .65rem; margin-bottom: 1.1rem; }
.search-form input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 1.15rem; }
.search-form .secondary-button { flex: none; }
.member-list { overflow: hidden; border: 1px solid #37331e; border-radius: 23px; background: #151511; }
.member-row { display: flex; align-items: center; gap: 1rem; min-height: 84px; padding: .85rem 1.2rem; border-bottom: 1px solid #2c2a1d; color: #f6e370; text-decoration: none; transition: background .15s; }
.member-row:last-child { border-bottom: 0; }
.member-row:hover { background: #222014; color: #fff4a0; }
.member-row > span:nth-child(2) { flex: 1; min-width: 0; }
.member-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.member-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aa9b51; font-size: .8rem; }
.archive-entry { display: flex; align-items: center; border-bottom: 1px solid #2c2a1d; }
.archive-entry:last-child { border-bottom: 0; }
.archive-entry .member-row { flex: 1; min-width: 0; border-bottom: 0; }
.archive-entry .link-button { display: inline-flex; align-items: center; flex: none; margin-right: .5rem; }
.member-row-detail { flex: 1; min-width: 0; }
.member-directory-row .row-arrow { flex: none; margin-left: .2rem; }
.member-row-profile { margin-left: auto; white-space: nowrap; color: #bcae5c; font-size: .85rem; text-decoration: none; }
.member-row-profile:hover { text-decoration: underline; }
.row-arrow { font-size: 1.35rem; color: #a89940; }
.empty-state { margin: 0; padding: 2rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; color: #a99c58; font-size: .9rem; }

.avatar { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; overflow: hidden; border-radius: 16px; background: #403815; color: #ffe45c; font-weight: 800; font-size: 1.1rem; }
.avatar img { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar-large { flex-basis: 94px; width: 94px; height: 94px; border-radius: 27px; font-size: 2.6rem; }
.profile-photo-link { position: relative; cursor: zoom-in; }
.profile-photo-zoom { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #090909df; color: #ffe45c; }
.profile-photo-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.avatar-small { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 11px; font-size: .88rem; }
.member-card-trigger { display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; min-height: 36px; padding: 0; border: 0; background: none; color: #ffe45c; font-weight: 750; text-align: left; }
.member-card-trigger:hover .member-card-alias { text-decoration: underline; }
.member-card-alias { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card-static { color: #d5c46a; font-weight: 700; }
.member-card-dialog { width: min(100% - 2rem, 370px); max-width: none; padding: 0; border: 1px solid #635724; border-radius: 24px; background: #171713; color: #f2df79; box-shadow: 0 24px 70px #000a; }
.member-card-dialog::backdrop { background: #000b; }
.member-card-dialog-inner { padding: 1.3rem; text-align: center; }
.member-card-close { display: flex; justify-content: flex-end; margin: 0 0 .2rem; }
.member-card-close button { min-width: 40px; min-height: 40px; padding: .25rem; font-size: 1.4rem; line-height: 1; }
.member-card-photo { display: grid; place-items: center; width: min(100%, 230px); height: 230px; margin: 0 auto 1.2rem; border-radius: 22px; background: #403815; color: #ffe45c; object-fit: cover; font-size: 5rem; }
.member-card-photo[hidden] { display: none; }
.member-card-dialog .eyebrow { margin-bottom: .1rem; }
.member-card-dialog h2 { margin: 0; font-size: 2rem; overflow-wrap: anywhere; }
.member-card-full-name { margin: .45rem 0 0; color: #f6ecbb; }
.member-card-nicknames { margin: .3rem 0 0; color: #b8aa6c; }
.member-activity { display: block; color: #a99c75; font-size: .78rem; font-weight: 500; }
.member-card-dialog .member-activity { margin: .55rem 0 0; }
.profile-heading .member-activity { margin: .4rem 0 0; }
.snack-direct-person .member-activity { margin: -.1rem 0 0 3.15rem; color: var(--snack-muted); }
html[data-theme="light"] .member-activity { color: #746128; }
.member-card-dialog .button { display: inline-flex; margin-top: 1.3rem; }
.profile-heading { display: flex; align-items: center; gap: 1.4rem; margin: 2rem 0 1.6rem; }
.profile-heading h1 { margin-bottom: 0; font-size: clamp(2.2rem, 6vw, 4.2rem); }
.profile-heading p:last-child { margin: .4rem 0 0; }
.profile-photo-actions { display: grid; gap: .9rem; width: min(100%, 600px); margin: 1.3rem 0 2rem; padding: 1.4rem; border: 1px solid #37331e; border-radius: 20px; background: #151511; }
.profile-photo-actions h2 { margin: 0; font-size: 1.1rem; }
.profile-photo-actions form { margin: 0; }
.profile-photo-upload { display: grid; gap: .75rem; }
.profile-photo-upload .secondary-button { justify-self: start; }
.profile-photo-upload input[type="file"] { min-width: 0; }
.profile-photo-upload input[type="file"]::file-selector-button { margin-right: .8rem; border: 0; border-radius: 9px; padding: .4rem .7rem; background: #3b3417; color: #ffe45c; font: inherit; cursor: pointer; }
.profile-photo-actions .link-button { padding-left: 0; color: #ffb8aa; }
.details { display: grid; gap: 0 1.2rem; margin: 2rem 0; padding: .5rem 1.5rem; border: 1px solid #37331e; border-radius: 23px; background: #151511; }
.details div { padding: 1rem 0; border-bottom: 1px solid #2d2a1a; }
.details div:last-child { border-bottom: 0; }
.details dt { margin-bottom: .22rem; color: #a99c58; font-size: .79rem; }
.details dd { margin: 0; overflow-wrap: anywhere; color: #f6e370; font-weight: 600; }
.bio { padding: 1.5rem; border: 1px solid #37331e; border-radius: 23px; background: #151511; white-space: pre-line; }
.bio p { margin-bottom: 0; }
.admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; padding: 1.5rem; border: 1px solid #37331e; border-radius: 23px; background: #151511; }
.admin-actions h2 { width: 100%; margin: 0 0 .2rem; }
.admin-actions form { margin: 0; }

.form-card { display: grid; gap: 1.15rem; padding: 1.5rem; border: 1px solid #37331e; border-radius: 23px; background: #151511; }
.profile-form { margin-top: 1.5rem; }
label { display: grid; gap: .45rem; color: #eedb68; font-weight: 650; font-size: .87rem; }
input, textarea, select { width: 100%; min-height: 46px; padding: .8rem .9rem; border: 1px solid #554d2a; border-radius: 13px; background: #0e0e0c; color: #fff0a0; }
input::placeholder, textarea::placeholder { color: #847948; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: #927e30; }
input:focus, textarea:focus, select:focus { border-color: #ffe45c; outline: 2px solid #ffe45c70; outline-offset: 1px; }
.hint { color: #9d925a; font-weight: 400; font-size: .78rem; }
.form-grid { display: grid; gap: 1rem; }
.form-card .button { justify-self: start; }
.notice, .error { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-radius: 15px; }
.notice { border: 1px solid #6c6028; background: #26230f; color: #ffe45c; }
.error { border: 1px solid #8f4d40; background: #321c18; color: #ffb7a9; }
.error ul { margin: .45rem 0 0; padding-left: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.feed-compose, .feed-list, .feed-discussion, .feed-post { width: min(100%, 760px); }
.feed-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .6rem; width: min(100%, 760px); margin-bottom: 1rem; }
.feed-actions > details[open] { flex-basis: 100%; }
.feed-compose-trigger { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem 1rem; border: 1px solid #5b532b; border-radius: 999px; background: #242111; color: #ffe45c; font-size: .9rem; font-weight: 750; list-style: none; cursor: pointer; }
.feed-compose-trigger::-webkit-details-marker { display: none; }
.feed-compose-trigger::before { content: "+"; font-size: 1.25rem; line-height: 1; }
.feed-compose-disclosure[open] .feed-compose-trigger::before { content: "−"; }
.feed-search-trigger::before { content: "⌕"; }
.feed-compose-trigger:hover { border-color: #ffe45c; }
.feed-compose { gap: .8rem; margin-top: .75rem; }
.feed-search-form { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: .75rem; }
.feed-search-form input { flex: 1 1 14rem; }
.feed-search-form a { margin-inline: .25rem; font-size: .9rem; }
.feed-search-status { width: min(100%, 760px); margin: 0 0 .8rem; font-size: .9rem; }
.feed-compose textarea, .comment-form textarea { resize: vertical; }
.feed-list { display: grid; gap: 1rem; }
.feed-post { padding: clamp(1.2rem, 4vw, 1.8rem); border: 1px solid #39341d; border-radius: 23px; background: #171713; }
.feed-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.feed-meta .avatar { flex-basis: 42px; width: 42px; height: 42px; border-radius: 14px; }
.feed-meta strong, .feed-meta span, .comment-meta strong, .comment-meta time { display: block; }
.feed-meta strong, .comment-meta strong { color: #ffe45c; font-size: .92rem; }
.feed-meta strong a, .comment-meta strong a { color: inherit; text-decoration: none; }
.feed-meta strong a:hover, .comment-meta strong a:hover { text-decoration: underline; }
.feed-meta div > span, .comment-meta time { color: #a99c58; font-size: .76rem; }
.feed-body { margin: 0; color: #f0e5ae; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-image { display: block; width: 100%; max-height: 640px; margin-top: 1rem; border-radius: 14px; background: #0e0e0c; object-fit: contain; }
.feed-image-link { display: block; border-radius: 14px; cursor: zoom-in; }
.feed-image-link:focus-visible { outline-offset: 5px; }
.image-viewer { width: min(100vw - 1rem, 1200px); max-width: none; max-height: calc(100dvh - 1rem); padding: 1rem; border: 1px solid #665923; border-radius: 20px; background: #11110f; color: #ffe45c; }
.image-viewer::backdrop { background: #000d; }
.image-viewer-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.image-viewer-actions a { margin-right: auto; font-size: .9rem; }
.image-viewer img { display: block; width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; }
.profile-image-viewer { width: min(100vw - 1rem, 700px); }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.visually-hidden-file:focus-visible + .file-picker-button { outline: 2px solid #ffe45c; outline-offset: 4px; }
.file-picker-button { display: inline-flex; width: fit-content; cursor: pointer; }
.file-picker-name { display: block; margin-top: -.7rem; color: #a99c58; font-size: .8rem; overflow-wrap: anywhere; }
.profile-photo-actions > summary { display: inline-flex; width: fit-content; list-style: none; cursor: pointer; }
.profile-photo-actions > summary::-webkit-details-marker { display: none; }
.profile-photo-actions[open] > summary { margin-bottom: 1rem; }
.event-when { display: grid; gap: .12rem; }
.event-card-when { color: var(--service-muted, #a99c58); font-size: .78rem; line-height: 1.35; }
.feed-comments-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid #302c1a; color: #d9c257; font-size: .84rem; font-weight: 700; text-decoration: none; }
.feed-comments-link:hover { color: #fff1a0; }
.feed-empty { margin: 0; padding: 1.5rem; border: 1px solid #39341d; border-radius: 20px; background: #171713; }
.feed-discussion { margin-top: 2.3rem; scroll-margin-top: 100px; }
.feed-discussion .section-heading { margin-bottom: 1rem; }
.comment-list { overflow: hidden; border: 1px solid #39341d; border-radius: 22px; background: #151511; }
.feed-comment { padding: 1.15rem 1.35rem; border-bottom: 1px solid #2d2a1a; }
.feed-comment:last-child { border-bottom: 0; }
.comment-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem .7rem; margin-bottom: .55rem; }
.comment-form { margin-top: 1.2rem; }
.event-card { min-height: 135px; }
.event-card .eyebrow { display: block; margin-bottom: .4rem; }
.events-heading { align-items: center; }
.events-heading h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); }
.event-card { display: flex; align-items: center; gap: 1rem; }
.event-card-image { flex: 0 0 110px; width: 110px; height: 90px; border-radius: 14px; object-fit: cover; }
.event-card-copy { display: block; min-width: 0; }
.event-card-title { display: block; margin-bottom: .3rem; color: inherit; font-size: 1.25rem; line-height: 1.25; }
.event-card-meta { display: block; color: #c3b76e; font-size: .84rem; }
.event-cover { display: block; width: min(100%, 760px); max-height: 440px; margin-bottom: 1.2rem; border-radius: 20px; object-fit: contain; }
.event-form-image { display: block; width: min(100%, 320px); max-height: 220px; border-radius: 12px; object-fit: cover; }
.event-remove-image { display: flex; align-items: center; gap: .55rem; }
.event-remove-image input { width: 20px; min-height: 20px; }
.event-response-count { color: #a89940; font-size: .8em; }
.event-manage-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
html[data-theme="light"] .event-card-meta { color: #665529; }
.event-cancelled { color: #ffaaa0; font-size: .8rem; font-weight: 800; }
.event-details { max-width: 760px; }
.event-rsvp { width: min(100%, 760px); margin-top: 1.5rem; }
.event-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.event-options label { display: flex; align-items: center; gap: .4rem; }
.event-options input { width: auto; min-height: auto; }
.event-date-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, .55fr); gap: .75rem; }
.event-date-fields > div { min-width: 0; }
.event-date-fields label { display: block; margin-bottom: .45rem; }
.event-date-fields input { min-width: 0; }
.event-date-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; }
.event-date-heading label { margin-bottom: .45rem; }
.event-date-clear { min-height: 32px; padding: 0 .2rem; font-size: .78rem; }
.event-proposal-choice { display: flex; align-items: center; gap: .6rem; }
.event-proposal-choice input { width: auto; min-height: auto; }
.chat-messages { display: grid; gap: .75rem; width: min(100%, 760px); min-height: 160px; max-height: min(65vh, 700px); overflow-y: auto; padding: 1rem; border: 1px solid #39341d; border-radius: 20px; background: #11110f; }
.chat-message { width: fit-content; max-width: 85%; padding: .75rem 1rem; border-radius: 15px; background: #242117; }
.chat-message, .chat-event { scroll-margin-block: 4.5rem 1rem; }
.chat-message:target { outline: 2px solid #ffe45c; outline-offset: 2px; }
.chat-message.chat-own { justify-self: end; background: #3a3210; }
.chat-message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.chat-message .member-card-trigger { min-height: 28px; font-size: .82rem; }
.chat-message .avatar-small { flex-basis: 25px; width: 25px; height: 25px; border-radius: 8px; font-size: .72rem; }
.chat-message time { color: #a99c58; font-size: .76rem; font-weight: 400; }
.chat-message p { margin: .3rem 0 0; color: #f0e5ae; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-event { justify-self: center; margin: .15rem 0; color: #a99c58; font-size: .83rem; text-align: center; }
.chat-edited { color: #a99c58; font-size: .72rem; }
.chat-message-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: .8rem; margin-top: .55rem; }
.chat-message-actions summary, .room-details summary { color: #d8c65d; cursor: pointer; }
.chat-message-actions form { display: grid; gap: .35rem; margin-top: .5rem; }
.chat-message-actions textarea { min-width: min(62vw, 320px); }
.chat-message-actions .link-button { min-height: auto; padding: 0; }
.room-details { display: grid; gap: .75rem; width: min(100%, 760px); margin: -.5rem 0 1.2rem; padding: 1rem; border: 1px solid #39341d; border-radius: 16px; background: #151511; }
.room-details p { margin: 0; color: #e9d982; }
.room-details details form { margin-top: .7rem; }
.room-members { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.room-row-meta { margin-left: auto; color: #a99c58; font-size: .78rem; }
.room-option { display: flex; align-items: center; gap: .5rem; }
.room-option input { width: 22px; min-height: 22px; }
.channel-rename { width: min(100%, 760px); margin: -.5rem 0 1rem; }
.channel-rename summary { width: fit-content; padding: .4rem 0; color: #b8aa6c; cursor: pointer; }
.channel-rename summary:hover { color: #ffe45c; }
.channel-rename .form-card { margin-top: .5rem; }
.channel-rename .secondary-button { justify-self: start; }
.chat-compose { width: min(100%, 760px); margin-top: 1rem; }
.notification-row { margin: 0; border-bottom: 1px solid #2c2a1d; }
.notification-row:last-child { border-bottom: 0; }
.notification-button { width: 100%; padding: 1rem 1.2rem; border: 0; background: transparent; color: #d8c65d; text-align: left; }
.notification-button:hover { background: #242111; }
.notification-button.unread { color: #ffe45c; background: #25210e; }
.notification-button strong, .notification-button small { display: block; }
.notification-button small { margin-top: .25rem; color: #a99c58; }
.preferences-form { width: min(100%, 800px); }
.preference-grid { display: grid; grid-template-columns: minmax(88px, 1.5fr) repeat(4, minmax(40px, 1fr)); align-items: center; gap: .25rem; padding: .7rem 0; border-bottom: 1px solid #302c1a; text-align: center; }
.preference-grid strong { text-align: left; }
.preference-grid label { display: grid; place-items: center; }
.preference-grid input { width: 24px; min-height: 24px; accent-color: #ffe45c; }
.preference-head { color: #a99c58; font-size: .75rem; }
.push-settings { width: min(100%, 800px); margin-bottom: 1rem; }
.push-settings p { margin: 0; }
.push-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.gallery-photo { display: block; overflow: hidden; border: 1px solid #39341d; border-radius: 16px; background: #171713; color: #f0e5ae; text-decoration: none; cursor: zoom-in; }
.gallery-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-photo span { display: block; padding: .7rem; font-size: .85rem; }

@media (min-width: 700px) {
    .cards, .form-grid, .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .details div:nth-last-child(2) { border-bottom: 0; }
}

@media (max-width: 799px) {
    .container { width: min(100% - 1.5rem, 1040px); }
    .header-inner { min-height: 64px; }
    .brand { font-size: 1.8rem; }
    .desktop-nav { display: none; }
    .main { padding-block: 2rem calc(7rem + env(safe-area-inset-bottom)); }
    .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .45rem max(.5rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left)); border-top: 1px solid #34301d; background: #11110ff5; backdrop-filter: blur(18px); }
    .mobile-nav a { display: grid; justify-items: center; align-content: center; gap: .16rem; min-width: 0; min-height: 54px; border-radius: 13px; color: #93884d; text-decoration: none; font-size: .67rem; font-weight: 700; white-space: nowrap; }
    .mobile-nav a.active { color: #ffe45c; background: #302b12; }
    .mobile-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .event-card-image { flex-basis: 84px; width: 84px; height: 84px; }
    .welcome-panel { min-height: 300px; border-radius: 23px; }
    .page-heading .button { padding-inline: .85rem; }
    .profile-heading { gap: 1rem; }
    .avatar-large { flex-basis: 72px; width: 72px; height: 72px; border-radius: 22px; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Warm paper theme. The dark palette above remains the default. */
html[data-theme="light"] { color-scheme: light; color: #392d05; background: #fff7cf; }
html[data-theme="light"] a { color: #664900; }
html[data-theme="light"] a:hover { color: #332500; }
html[data-theme="light"] :focus-visible { outline-color: #8b6500; }
html[data-theme="light"] ::selection { background: #efd772; color: #302400; }
html[data-theme="light"] p { color: #66582e; }
html[data-theme="light"] .site-header { border-color: #dfd0a0; background: #fff7cfed; }
html[data-theme="light"] .brand, html[data-theme="light"] .brand-dot, html[data-theme="light"] .heading-dot { color: #5d4400; }
html[data-theme="light"] .desktop-nav a, html[data-theme="light"] .link-button { color: #655023; }
html[data-theme="light"] .desktop-nav a.active, html[data-theme="light"] .desktop-nav a:hover, html[data-theme="light"] .link-button:hover { color: #382900; background: #f3e5aa; }
html[data-theme="light"] .notification-bell { border-color: #d4bf7d; background: #fffdf0; color: #594300; }
html[data-theme="light"] .notification-bell:hover, html[data-theme="light"] .notification-bell.active { border-color: #8b6900; background: #f4e8b3; color: #392900; }
html[data-theme="light"] .bell-badge { border-color: #fff7cf; background: #5c4300; color: #fff9db; }
html[data-theme="light"] .eyebrow, html[data-theme="light"] .hint, html[data-theme="light"] .preference-head { color: #776125; }
html[data-theme="light"] .button { background: #594200; color: #fff9df; }
html[data-theme="light"] .button:hover { background: #382900; color: #fffdf2; }
html[data-theme="light"] .secondary-button { border-color: #b9a56b; background: #fffdf1; color: #4b3700; }
html[data-theme="light"] .secondary-button:hover { border-color: #806000; background: #f7e9b9; color: #352600; }
html[data-theme="light"] .feed-compose-trigger { border-color: #b9a56b; background: #fffdf1; color: #4b3700; }
html[data-theme="light"] .feed-compose-trigger:hover { border-color: #806000; background: #f7e9b9; }
html[data-theme="light"] .danger-button { border-color: #b98379; background: #fff0e9; color: #832b21; }
html[data-theme="light"] .danger-button:hover { border-color: #832b21; color: #662017; }
html[data-theme="light"] .card, html[data-theme="light"] .form-card, html[data-theme="light"] .feed-post, html[data-theme="light"] .feed-empty, html[data-theme="light"] .member-list, html[data-theme="light"] .details, html[data-theme="light"] .bio, html[data-theme="light"] .admin-actions, html[data-theme="light"] .profile-photo-actions, html[data-theme="light"] .comment-list, html[data-theme="light"] .room-details, html[data-theme="light"] .chat-messages, html[data-theme="light"] .gallery-photo, html[data-theme="light"] .member-card-dialog, html[data-theme="light"] .theme-settings { border-color: #dfd0a0; background: #fffdf1; color: #392d05; }
html[data-theme="light"] .card:hover, html[data-theme="light"] .member-row:hover { border-color: #aa8730; background: #fff3c6; color: #392d05; }
html[data-theme="light"] .card-symbol, html[data-theme="light"] .avatar, html[data-theme="light"] .member-card-photo { background: #ecda94; color: #4b3600; }
html[data-theme="light"] .member-row { border-color: #e8dbb7; color: #392d05; }
html[data-theme="light"] .member-row small, html[data-theme="light"] .member-row-profile, html[data-theme="light"] .row-arrow, html[data-theme="light"] .pagination { color: #73612d; }
html[data-theme="light"] .member-card-trigger, html[data-theme="light"] .member-card-static, html[data-theme="light"] .feed-meta strong, html[data-theme="light"] .comment-meta strong { color: #4d3900; }
html[data-theme="light"] .member-card-full-name, html[data-theme="light"] .details dd { color: #392d05; }
html[data-theme="light"] .member-card-nicknames, html[data-theme="light"] .details dt, html[data-theme="light"] .feed-meta div > span, html[data-theme="light"] .comment-meta time { color: #746128; }
html[data-theme="light"] .profile-photo-upload input[type="file"]::file-selector-button { background: #ead89a; color: #443200; }
html[data-theme="light"] .details div, html[data-theme="light"] .feed-comment, html[data-theme="light"] .notification-row, html[data-theme="light"] .preference-grid { border-color: #e8dbb7; }
html[data-theme="light"] label { color: #493500; }
html[data-theme="light"] input, html[data-theme="light"] textarea, html[data-theme="light"] select { border-color: #bea96f; background: #fffef8; color: #332800; }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #806e3d; }
html[data-theme="light"] input:hover, html[data-theme="light"] textarea:hover, html[data-theme="light"] select:hover { border-color: #927333; }
html[data-theme="light"] input:focus, html[data-theme="light"] textarea:focus, html[data-theme="light"] select:focus { border-color: #795900; outline-color: #9b780066; }
html[data-theme="light"] .notice { border-color: #c4aa58; background: #fff0b5; color: #493500; }
html[data-theme="light"] .error { border-color: #c77c70; background: #fff0e9; color: #7e2a21; }
html[data-theme="light"] .feed-body, html[data-theme="light"] .chat-message p, html[data-theme="light"] .gallery-photo { color: #392d05; }
html[data-theme="light"] .feed-image { background: #efe5c4; }
html[data-theme="light"] .feed-comments-link { border-color: #e8dbb7; color: #654900; }
html[data-theme="light"] .feed-comments-link:hover { color: #332500; }
html[data-theme="light"] .chat-message { background: #f0e9d1; }
html[data-theme="light"] .chat-message.chat-own { background: #f7e3a4; }
html[data-theme="light"] .chat-message:target { outline-color: #846000; }
html[data-theme="light"] .chat-message time, html[data-theme="light"] .chat-event, html[data-theme="light"] .chat-edited, html[data-theme="light"] .room-row-meta { color: #746128; }
html[data-theme="light"] .chat-message-actions summary, html[data-theme="light"] .room-details summary, html[data-theme="light"] .channel-rename summary { color: #624700; }
html[data-theme="light"] .room-details p { color: #55420e; }
html[data-theme="light"] .notification-button { color: #584300; }
html[data-theme="light"] .notification-button:hover { background: #f8edc5; }
html[data-theme="light"] .notification-button.unread { color: #342700; background: #f8e5a6; }
html[data-theme="light"] .notification-button small { color: #746128; }
html[data-theme="light"] .preference-grid input { accent-color: #6e5100; }
html[data-theme="light"] .image-viewer { border-color: #c9b377; background: #fffdf1; color: #392d05; }
html[data-theme="light"] .mobile-nav { border-color: #d9c997; background: #fff9dcf5; }
html[data-theme="light"] .mobile-nav a { color: #69562a; }
html[data-theme="light"] .mobile-nav a.active { color: #3d2d00; background: #efdda0; }
.theme-settings { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.3rem; padding: 1.25rem 1.5rem; border: 1px solid #37331e; border-radius: 23px; background: #151511; }
.theme-settings h2 { margin-bottom: .2rem; }
.theme-settings p { margin: 0; }
.theme-choices { display: flex; gap: .5rem; }
.theme-choices button[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 2px; }
.feature-tip { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #51451d; border-left: 3px solid #e8cb54; border-radius: 12px; background: #201d12; color: #efdfa0; }
.feature-tip-label { display: block; margin-bottom: .25rem; color: #ffe45c; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feature-tip p, .main.main-service .feature-tip p { margin: 0; color: inherit; font-size: .88rem; line-height: 1.5; }
.feature-tip-install { display: grid; gap: .6rem; }
.feature-tip-install .feature-tip-label { margin-bottom: 0; }
.feature-tip-install ul { margin: 0; padding-left: 1.3rem; font-size: .88rem; line-height: 1.55; }
.feature-tip-install li + li { margin-top: .2rem; }
html[data-theme="light"] .feature-tip { border-color: #d8bf76; border-left-color: #a37600; background: #fff1bd; color: #493600; }
html[data-theme="light"] .feature-tip-label { color: #715100; }
.tooltip-settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.tooltip-setting-choice { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: inherit; font-weight: 650; }
.tooltip-setting-choice input { width: 18px; height: 18px; margin: 0; accent-color: #e8cb54; }
html[data-theme="light"] .tooltip-setting-choice input { accent-color: #8c6500; }

/* A calmer reading layout for Flödet. */
.main.main-feed { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.feed-layout { --feed-surface: #171713; --feed-border: #363220; --feed-ink: #f0e5ae; --feed-muted: #aea16c; --feed-control: #211f16; width: min(100%, 700px); margin-inline: auto; }
html[data-theme="light"] .feed-layout { --feed-surface: #fffdf2; --feed-border: #e7dcb9; --feed-ink: #392d05; --feed-muted: #76663e; --feed-control: #fffdf2; }
.feed-layout .feed-actions { display: flex; flex-wrap: wrap; gap: .6rem; width: 100%; margin-bottom: 1rem; }
.feed-layout .feed-compose-disclosure { flex: 1 1 0; min-width: 0; }
.feed-layout .feed-search-disclosure { flex: 0 0 56px; }
.feed-layout .feed-actions > details[open] { flex: 1 0 100%; }
.feed-layout .feed-compose-trigger { display: flex; width: 100%; min-height: 56px; gap: .75rem; padding: .55rem .8rem; border: 1px solid var(--feed-border); border-radius: 16px; background: var(--feed-control); color: var(--feed-muted); font-size: .92rem; font-weight: 600; box-shadow: 0 4px 18px #00000012; }
.feed-layout .feed-compose-trigger::before { content: none; }
.feed-layout .feed-compose-trigger:hover { border-color: #9c853e; color: var(--feed-ink); }
.feed-layout .feed-composer-avatar { flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border-radius: 11px; }
.feed-layout .feed-composer-avatar img { min-width: 0; min-height: 0; object-fit: cover; }
.feed-layout .feed-compose-trigger svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feed-layout .feed-compose-disclosure .feed-compose-trigger svg { margin-left: auto; }
.feed-layout .feed-compose-open-label, .feed-layout .feed-search-label { display: none; }
.feed-layout .feed-compose-disclosure[open] .feed-compose-closed-label { display: none; }
.feed-layout .feed-compose-disclosure[open] .feed-compose-open-label, .feed-layout .feed-search-disclosure[open] .feed-search-label { display: inline; }
.feed-layout .feed-actions[data-feed-mode="compose"] .feed-search-disclosure, .feed-layout .feed-actions[data-feed-mode="search"] .feed-compose-disclosure { display: none; }
.feed-layout .feed-actions > details[open] { overflow: hidden; border: 1px solid var(--feed-border); border-radius: 16px; background: var(--feed-surface); box-shadow: 0 4px 18px #00000012; }
.feed-layout .feed-actions > details[open] > .feed-compose-trigger { border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--feed-ink); }
.feed-layout .feed-actions > details[open] > .feed-compose-trigger:hover { background: var(--feed-control); }
.feed-layout .feed-compose-disclosure[open] .feed-compose-trigger svg { display: none; }
.feed-layout .feed-search-trigger { justify-content: center; padding-inline: .8rem; }
.feed-layout .feed-search-disclosure[open] .feed-search-trigger { justify-content: flex-start; }
.feed-layout .feed-search-trigger svg { flex-basis: 23px; width: 23px; height: 23px; }
.feed-layout .feed-compose, .feed-layout .feed-search-form { width: 100%; margin: 0; padding-top: .4rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.feed-layout .feed-compose-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.feed-layout .feed-search-form a.secondary-button { margin: 0; }
html[data-theme="light"] .feed-layout .feed-actions > details[open] { border-color: var(--feed-border); background: var(--feed-surface); }
html[data-theme="light"] .feed-layout .feed-actions > details[open] > .feed-compose-trigger { border: 0; background: transparent; color: var(--feed-ink); }
html[data-theme="light"] .feed-layout .feed-actions > details[open] > .feed-compose-trigger:hover { background: #f8edc5; }
html[data-theme="light"] .feed-layout .feed-compose, html[data-theme="light"] .feed-layout .feed-search-form { border: 0; background: transparent; }
.feed-layout .feed-search-status { margin-bottom: .8rem; color: var(--feed-muted); font-size: .84rem; }
.feed-layout .feed-list { display: block; width: 100%; overflow: visible; border: 1px solid var(--feed-border); border-radius: 20px; background: var(--feed-surface); }
.feed-layout .feed-post { width: 100%; padding: clamp(1.1rem, 3vw, 1.45rem); border: 0; border-bottom: 1px solid var(--feed-border); border-radius: 0; background: transparent; }
.feed-layout .feed-post:last-child { border-bottom: 0; }
.feed-layout .feed-post:first-child { border-radius: 20px 20px 0 0; }
.feed-layout .feed-post:last-child { border-radius: 0 0 20px 20px; }
.feed-layout .feed-post:only-child { border-radius: 20px; }
.feed-layout > .feed-post { border: 1px solid var(--feed-border); border-radius: 20px; background: var(--feed-surface); }
html[data-theme="light"] .feed-layout .feed-post { border-color: var(--feed-border); background: transparent; }
html[data-theme="light"] .feed-layout > .feed-post { background: var(--feed-surface); }
.feed-layout .feed-meta { justify-content: space-between; gap: .5rem; min-height: 44px; margin-bottom: .8rem; }
.feed-meta-main { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; }
.feed-layout .feed-meta .member-card-trigger { min-width: 0; min-height: 44px; }
.feed-layout .feed-meta .avatar-small { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; }
.feed-layout .feed-meta time { flex: none; margin-left: auto; color: var(--feed-muted); font-size: .73rem; white-space: nowrap; }
.feed-post-menu { position: relative; flex: none; z-index: 4; }
.feed-post-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--feed-muted); cursor: pointer; list-style: none; }
.feed-post-menu > summary::-webkit-details-marker { display: none; }
.feed-post-menu > summary:hover, .feed-post-menu[open] > summary { background: var(--feed-surface); color: var(--feed-ink); }
.feed-post-menu > summary:focus-visible { outline: 2px solid #ffe45c; outline-offset: 2px; }
.feed-post-menu > summary svg { width: 19px; height: 19px; fill: currentColor; }
.feed-post-menu-panel { position: absolute; top: calc(100% + .2rem); right: 0; min-width: 180px; padding: .3rem; border: 1px solid var(--feed-border); border-radius: 13px; background: var(--feed-surface); box-shadow: 0 12px 28px #0007; }
.feed-post-menu-panel a, .feed-post-menu-panel button { display: flex; align-items: center; width: 100%; min-height: 42px; padding: .5rem .7rem; border: 0; border-radius: 9px; background: transparent; color: var(--feed-ink); font: inherit; font-size: .85rem; text-align: left; text-decoration: none; cursor: pointer; }
.feed-post-menu-panel a:hover, .feed-post-menu-panel button:hover { background: var(--feed-border); }
.feed-post-menu-panel button { color: #e9a097; }
html[data-theme="light"] .feed-post-menu-panel { box-shadow: 0 12px 28px #4a350029; }
html[data-theme="light"] .feed-post-menu-panel button { color: #8e352c; }
.feed-layout .feed-body { color: var(--feed-ink); font-size: 1.02rem; line-height: 1.62; }
.feed-layout .feed-image { max-height: 540px; margin-top: .95rem; border-radius: 13px; }
.feed-layout .feed-comments-link { min-height: 44px; gap: .45rem; margin-top: .65rem; padding-top: 0; border: 0; color: var(--feed-muted); font-size: .83rem; font-weight: 650; }
.feed-layout .feed-comments-link:hover { color: var(--feed-ink); }
.feed-layout .feed-comments-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feed-post-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.feed-post[id] { scroll-margin-top: 85px; }
.feed-like-form { display: inline-flex; align-items: center; gap: .15rem; margin-top: .65rem; }
.feed-like-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--feed-muted); cursor: pointer; }
.feed-like-button:hover { background: var(--feed-surface); color: var(--feed-ink); }
.feed-like-button:focus-visible { outline: 2px solid #ffe45c; outline-offset: 2px; }
.feed-like-button:disabled { opacity: .55; cursor: wait; }
.feed-like-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .16s, fill .16s; }
.feed-like-button:hover svg { transform: scale(1.12); }
.feed-like-button[aria-pressed="true"] { color: #ffe45c; }
.feed-like-button[aria-pressed="true"] svg { fill: currentColor; }
.feed-like-count { display: inline-grid; place-items: center; min-width: 40px; height: 44px; padding: 0 .3rem; border-radius: 999px; color: var(--feed-muted); font-size: .83rem; font-weight: 700; text-decoration: none; }
.feed-like-count:hover { background: var(--feed-surface); color: var(--feed-ink); }
.feed-like-count:focus-visible { outline: 2px solid #ffe45c; outline-offset: 2px; }
.feed-likers-dialog { width: min(100% - 1.5rem, 430px); max-width: none; max-height: min(80dvh, 650px); padding: 0; border: 1px solid var(--feed-border); border-radius: 20px; background: var(--feed-surface); color: var(--feed-ink); box-shadow: 0 24px 70px #000a; }
.feed-likers-dialog::backdrop { background: #000b; }
.feed-likers-dialog-inner { padding: 1rem; }
.feed-likers-close { display: flex; justify-content: flex-end; }
.feed-likers-close button { min-width: 40px; min-height: 40px; padding: .2rem; font-size: 1.4rem; line-height: 1; }
.feed-likers-dialog h2 { margin: -.8rem 0 .8rem; font-size: 1.3rem; }
.feed-likers-list { max-height: 55dvh; overflow-y: auto; }
.feed-liker { display: flex; align-items: center; gap: .7rem; min-height: 60px; padding: .45rem .25rem; border-bottom: 1px solid var(--feed-border); color: var(--feed-ink); text-decoration: none; }
.feed-liker:last-child { border-bottom: 0; }
.feed-liker:hover strong { text-decoration: underline; }
.feed-liker .avatar-small { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; }
.feed-liker strong, .feed-liker small { display: block; }
.feed-liker small { color: var(--feed-muted); font-size: .77rem; }
.feed-likers-empty { margin: .5rem 0; color: var(--feed-muted); font-size: .9rem; }
html[data-theme="light"] .feed-like-button[aria-pressed="true"] { color: #a57000; }
.feed-post-footer .feed-edit-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .65rem; margin-left: auto; color: var(--feed-muted); font-size: .83rem; font-weight: 650; text-decoration: none; }
.feed-post-footer .feed-edit-link:hover { color: var(--feed-ink); }
.feed-post-footer .feed-comments-link { margin-left: auto; }
.feed-edit-form { width: min(100%, 760px); }
.feed-edit-image { display: block; width: min(100%, 260px); max-height: 260px; border-radius: 13px; object-fit: cover; }
.feed-edit-remove { display: flex; align-items: center; gap: .55rem; }
.feed-edit-remove input { width: 20px; min-height: 20px; }
.feed-edit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
html[data-theme="light"] .feed-layout .feed-comments-link { border: 0; color: var(--feed-muted); }
html[data-theme="light"] .feed-layout .feed-comments-link:hover { color: var(--feed-ink); }
.feed-layout .feed-empty { border: 0; border-radius: 0; background: transparent; }
html[data-theme="light"] .feed-layout .feed-empty { border: 0; background: transparent; }
.feed-layout .feed-back { margin-bottom: .9rem; font-size: .9rem; }
.feed-layout .feed-back a { color: var(--feed-muted); text-decoration: none; }
.feed-layout .feed-back a:hover { color: var(--feed-ink); }
.feed-layout .feed-discussion { width: 100%; margin-top: 1.8rem; }
.feed-layout .feed-discussion .section-heading { margin-bottom: .85rem; }
.feed-layout .feed-discussion h2 { font-size: 1.1rem; }
.feed-layout .comment-list { border-color: var(--feed-border); border-radius: 18px; background: var(--feed-surface); }
.feed-layout .feed-comment { border-color: var(--feed-border); }
.feed-layout .comment-form { border-color: var(--feed-border); border-radius: 18px; background: var(--feed-surface); }
@media (max-width: 480px) {
    .feed-layout .feed-meta { align-items: flex-start; }
    .feed-layout .feed-meta-main { flex-wrap: wrap; }
    .feed-layout .feed-meta time { margin-left: 44px; margin-top: -.45rem; width: calc(100% - 44px); }
}

/* Snack keeps the conversation list and messages in one comfortable reading column. */
.main.main-snack { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.snack-layout, .snack-thread, .snack-create-layout { --snack-surface: #171713; --snack-border: #363220; --snack-ink: #f0e5ae; --snack-muted: #aea16c; --snack-raised: #242117; width: min(100%, 760px); margin-inline: auto; }
html[data-theme="light"] .snack-layout, html[data-theme="light"] .snack-thread, html[data-theme="light"] .snack-create-layout { --snack-surface: #fffdf2; --snack-border: #e7dcb9; --snack-ink: #392d05; --snack-muted: #76663e; --snack-raised: #f2e9ce; }
.snack-layout .avatar, .snack-thread .avatar { overflow: hidden; }
.snack-layout .avatar img, .snack-thread .avatar img { min-width: 0; min-height: 0; }
.snack-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.snack-view-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 180px; gap: 4px; max-width: 300px; min-width: 0; padding: 4px; border: 1px solid var(--snack-border); border-radius: 16px; background: var(--snack-raised); }
.snack-view-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 .5rem; border: 1px solid transparent; border-radius: 12px; color: var(--snack-muted); font-size: .94rem; font-weight: 750; text-decoration: none; }
.snack-view-nav a:hover { background: var(--snack-surface); color: var(--snack-ink); }
.snack-view-nav a.active, .snack-view-nav a.active:hover { border-color: #ffe45c; background: #ffe45c; color: #211a05; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.snack-view-nav a:focus-visible { outline: 2px solid var(--snack-ink); outline-offset: 2px; }
html[data-theme="light"] .snack-view-nav a.active, html[data-theme="light"] .snack-view-nav a.active:hover { border-color: #b99938; background: #f4de8f; color: #382900; box-shadow: 0 1px 3px rgba(59, 42, 0, .14); }
.snack-view-nav a .snack-tab-count { margin-left: .45rem; }
.snack-tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: .38rem; padding: 0 .3rem; border-radius: 999px; background: #ffe45c; color: #16130a; font-size: .69rem; font-weight: 800; line-height: 1; }
html[data-theme="light"] .snack-tab-count { background: #624900; color: #fff9e1; }
.snack-icon-action { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--snack-border); border-radius: 14px; background: var(--snack-surface); color: var(--snack-ink); text-decoration: none; cursor: pointer; list-style: none; }
.snack-icon-action::-webkit-details-marker { display: none; }
.snack-icon-action:hover { border-color: var(--snack-muted); color: var(--snack-ink); }
.snack-icon-action svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snack-create-action { flex: 0 0 46px; border-color: #ffe45c; background: #ffe45c; color: #111006; }
.snack-create-action:hover { border-color: #fff29a; background: #fff29a; color: #111006; }
html[data-theme="light"] .snack-create-action { border-color: #594200; background: #594200; color: #fff9df; }
html[data-theme="light"] .snack-create-action:hover { border-color: #382900; background: #382900; color: #fff9df; }
.snack-search-disclosure { flex: 0 0 46px; }
.snack-search-disclosure[open] { order: 3; flex: 1 0 100%; min-width: 0; padding: .65rem; border: 1px solid var(--snack-border); border-radius: 16px; background: var(--snack-surface); }
.snack-search-disclosure[open] > summary { display: none; }
.snack-browse-search { order: 3; flex: 1 0 100%; min-width: 0; padding: .65rem; border: 1px solid var(--snack-border); border-radius: 16px; background: var(--snack-surface); }
.snack-search-panel { display: flex; align-items: center; gap: .55rem; }
.snack-search-panel input[type="search"] { flex: 1; min-width: 0; }
.snack-search-panel .secondary-button { flex: none; }
.snack-search-actions { display: flex; gap: 1rem; margin-top: .25rem; }
.snack-search-actions a { display: inline-flex; align-items: center; min-height: 40px; color: var(--snack-muted); font-size: .82rem; text-decoration: none; }
.snack-search-actions a:hover { color: var(--snack-ink); }
.snack-search-cancel { display: inline-flex; align-items: center; min-height: 44px; color: var(--snack-muted); font-size: .82rem; text-decoration: none; }
.snack-search-cancel:hover { color: var(--snack-ink); }
.snack-search-status { margin: -.2rem 0 .75rem; color: var(--snack-muted); font-size: .8rem; }
.snack-group-heading { display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem; }
.snack-group-heading h2 { margin: 0; color: var(--snack-muted); font-size: .83rem; font-weight: 750; }
.snack-group-heading > span { color: var(--snack-muted); font-size: .76rem; }
.snack-list { overflow: hidden; border: 1px solid var(--snack-border); border-radius: 18px; background: var(--snack-surface); }
.snack-row { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 62px; padding: .42rem .8rem; border-bottom: 1px solid var(--snack-border); color: var(--snack-ink); text-decoration: none; }
.snack-row:last-child { border-bottom: 0; }
a.snack-row:hover, .snack-direct-row:hover { background: var(--snack-raised); color: var(--snack-ink); }
.snack-unseen-row { background: rgba(255, 228, 92, .055); }
.snack-unseen-badge { display: grid; place-items: center; flex: none; min-width: 23px; height: 23px; padding: 0 .35rem; border-radius: 999px; background: #ffe45c; color: #16130a; font-size: .72rem; font-weight: 800; line-height: 1; }
html[data-theme="light"] .snack-unseen-row { background: #fff5cd; }
html[data-theme="light"] .snack-unseen-badge { background: #624900; color: #fff9e1; }
.snack-room-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 11px; background: var(--snack-raised); color: var(--snack-ink); font-size: 1.45rem; font-weight: 700; }
.snack-room-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.snack-room-avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snack-row-content { display: block; flex: 1; min-width: 0; }
.snack-row-content strong, .snack-row-content small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snack-row-content strong { color: var(--snack-ink); font-size: .93rem; }
.snack-row-content small { color: var(--snack-muted); font-size: .74rem; }
.snack-row-arrow { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--snack-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snack-direct-person { flex: 1; min-width: 0; }
.snack-direct-person .member-card-trigger { position: relative; z-index: 2; max-width: 100%; color: var(--snack-ink); font-size: .93rem; }
.snack-direct-person .member-card-trigger .avatar-small { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
.snack-direct-open { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; color: var(--snack-muted); text-decoration: none; }
.snack-direct-open::before { position: absolute; z-index: 1; inset: 0; content: ''; }
.snack-direct-open:focus-visible::before { outline: 2px solid var(--snack-ink); outline-offset: -3px; border-radius: 12px; }
.snack-direct-open:hover { color: var(--snack-ink); }
.snack-empty { margin: 0; padding: 1.5rem; color: var(--snack-muted); font-size: .9rem; }
.snack-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: .9rem; color: var(--snack-muted); font-size: .8rem; }
.snack-pagination a { display: inline-flex; align-items: center; min-height: 44px; color: var(--snack-ink); font-weight: 700; text-decoration: none; }
.snack-pagination a:hover { text-decoration: underline; }
.snack-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .35rem; color: var(--snack-muted); text-decoration: none; font-size: .86rem; font-weight: 650; }
.snack-back:hover { color: var(--snack-ink); }
.snack-thread-head { margin-bottom: .85rem; }
.snack-notification-choice { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .7rem; margin: -.35rem 0 .8rem; color: var(--snack-muted); font-size: .8rem; }
.snack-notification-choice .link-button { min-height: 36px; padding: .2rem .3rem; color: var(--snack-ink); font-size: inherit; font-weight: 700; }
.snack-kind { margin: 0 0 .2rem; color: var(--snack-muted); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.snack-thread-title { margin: 0; color: var(--snack-ink); font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.snack-room-title { display: flex; align-items: center; gap: .8rem; }
.snack-room-title .snack-room-avatar { flex-basis: 52px; width: 52px; height: 52px; }
.snack-current-icon img { display: block; width: 96px; height: 96px; margin-bottom: .75rem; border-radius: 18px; object-fit: cover; }
.snack-thread-title .member-card-trigger { color: var(--snack-ink); }
.snack-thread-title .avatar-small { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; font-size: 1rem; }
.snack-privacy-note { margin: 0 0 .7rem; color: var(--snack-muted); font-size: .83rem; }
.snack-room-info { margin: 0 0 .9rem; border: 1px solid var(--snack-border); border-radius: 13px; background: var(--snack-surface); }
.snack-room-info > summary { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem .9rem; color: var(--snack-ink); font-size: .85rem; font-weight: 700; cursor: pointer; list-style: none; }
.snack-room-info > summary::-webkit-details-marker { display: none; }
.snack-room-info > summary::after { content: '⌄'; margin-left: auto; color: var(--snack-muted); font-size: 1.25rem; line-height: 1; }
.snack-room-info[open] > summary::after { transform: rotate(180deg); }
.snack-room-info > summary span { color: var(--snack-muted); font-size: .76rem; font-weight: 500; }
.snack-thread .room-details { display: grid; width: 100%; margin: 0; padding: .8rem .9rem 1rem; border: 0; border-top: 1px solid var(--snack-border); border-radius: 0; background: transparent; }
.snack-thread .room-details .snack-notification-choice { margin: 0; }
.snack-thread .room-details h2 { margin: 0; color: var(--snack-muted); font-size: .8rem; font-weight: 650; }
.snack-thread .room-members { margin-top: .5rem; }
.snack-thread .room-members .member-card-trigger { padding: .15rem .4rem .15rem .15rem; border-radius: 11px; background: var(--snack-raised); }
.snack-thread .channel-rename { margin: 0; }
.snack-join { margin: 0 0 .9rem; }
.snack-thread .chat-messages { align-content: start; width: 100%; min-height: 240px; max-height: min(64dvh, 700px); gap: .7rem; padding: clamp(.8rem, 2.5vw, 1.3rem); border-color: var(--snack-border); border-radius: 18px; background: var(--snack-surface); overscroll-behavior: contain; }
.snack-thread .chat-message { max-width: min(86%, 36rem); padding: .7rem .9rem; border-radius: 16px 16px 16px 5px; background: var(--snack-raised); }
.snack-thread .chat-message.chat-own { border-radius: 16px 16px 5px 16px; background: #3a3210; }
html[data-theme="light"] .snack-thread .chat-message.chat-own { background: #f7e3a4; }
.snack-thread .chat-message-meta { gap: .25rem .5rem; padding-inline: .1rem; }
.snack-thread .chat-message-body { margin: .5rem 0 0; padding: .55rem .65rem; border-radius: 10px; background: rgba(0, 0, 0, .2); color: var(--snack-ink); font-size: .97rem; line-height: 1.52; }
.snack-thread .chat-deleted .chat-message-body { font-style: italic; color: var(--snack-muted); }
html[data-theme="light"] .snack-thread .chat-message-body { background: rgba(255, 255, 255, .6); }
.snack-thread .chat-message time, .snack-thread .chat-edited { color: var(--snack-muted); font-size: .7rem; }
.snack-thread .chat-event { max-width: 85%; margin: .2rem auto; padding: .25rem .7rem; border-radius: 999px; background: var(--snack-raised); color: var(--snack-muted); font-size: .74rem; }
.snack-thread .chat-message-actions { margin-top: .55rem; padding-top: .4rem; border-top: 1px solid var(--snack-border); font-size: .76rem; }
.snack-thread .chat-message-actions summary { color: var(--snack-muted); }
.snack-older { margin: .6rem 0 0; font-size: .84rem; }
.snack-thread .chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .65rem; width: 100%; margin-top: .65rem; padding: .65rem; border-color: var(--snack-border); border-radius: 16px; background: var(--snack-surface); }
.snack-thread .chat-compose textarea { min-height: 54px; max-height: 220px; resize: vertical; }
.snack-thread .chat-compose .button { min-width: 76px; min-height: 54px; }
.snack-thread .chat-compose .button[data-empty="true"] { font-size: 1.4rem; }
.snack-compose-hint { margin: .4rem .35rem 0; color: var(--snack-muted); font-size: .7rem; }
.snack-create-layout h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3rem); }
.snack-create-grid { max-width: 500px; }
.snack-create-panel { display: flex; flex-direction: column; min-width: 0; padding: 1.3rem; border: 1px solid var(--snack-border); border-radius: 18px; background: var(--snack-surface); }
.snack-create-panel h2 { margin: 0 0 .15rem; color: var(--snack-ink); font-size: 1.18rem; }
.snack-create-panel > p { margin: 0 0 1.2rem; color: var(--snack-muted); font-size: .82rem; }
.snack-create-form { display: grid; align-content: start; gap: .75rem; flex: 1; }
.snack-create-form .button { justify-self: start; align-self: end; margin-top: .25rem; }
.snack-create-form .room-option { display: flex; align-items: center; gap: .55rem; margin-top: .2rem; }
.snack-create-form .room-option input { flex: none; width: 20px; min-height: 20px; }
.snack-create-form .hint { margin: -.3rem 0 0; }
@media (max-width: 480px) {
    .snack-row { padding-inline: .7rem; }
    .snack-thread .chat-message { max-width: 92%; }
    .snack-thread .chat-compose .button { padding-inline: .8rem; }
}
@media (max-width: 799px) {
    .main.main-snack-thread { padding-top: .65rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .snack-thread { display: flex; flex-direction: column; height: calc(100dvh - 64px - .65rem - 5rem - env(safe-area-inset-bottom)); min-height: 420px; }
    .snack-thread .chat-messages { flex: 1; min-height: 120px; max-height: none; }
    .snack-thread .chat-compose { flex: none; }
    .snack-compose-hint { display: none; }
}

/* Shared member-service layout, aligned with Flödet and Snacket. */
.main.main-service { --service-surface: #171713; --service-border: #363220; --service-ink: #f0e5ae; --service-muted: #aea16c; --service-raised: #242117; width: min(100% - 2rem, 760px); padding-top: clamp(1.25rem, 2.5vw, 2rem); color: var(--service-ink); }
html[data-theme="light"] .main-service { --service-surface: #fffdf2; --service-border: #e7dcb9; --service-ink: #392d05; --service-muted: #76663e; --service-raised: #f2e9ce; }
.main.main-service h1 { margin-bottom: 1rem; font-size: clamp(1.6rem, 4.5vw, 2.15rem); line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.main.main-service h2 { font-size: 1.08rem; color: var(--service-ink); }
.main.main-service p { color: var(--service-muted); }
.main.main-service .page-heading { align-items: center; gap: .75rem; margin-bottom: 1rem; }
.main.main-service .page-heading h1 { margin: 0; }
.main.main-service .page-heading .button, .main.main-service .page-heading .secondary-button { flex: none; padding-inline: .9rem; font-size: .82rem; }
.main.main-service .service-count { margin-left: .25rem; color: var(--service-muted); font-size: .6em; font-weight: 500; letter-spacing: 0; }
.main.main-service .button, .main.main-service .secondary-button, .main.main-service .danger-button { min-height: 44px; border-radius: 12px; }
.main.main-service .button:hover, .main.main-service .secondary-button:hover, .main.main-service .danger-button:hover { transform: none; }
.main.main-service .search-form { gap: .5rem; margin-bottom: .9rem; }
.main.main-service .search-form input { border-radius: 13px; padding-inline: .9rem; }
.main.main-service .member-list, .main.main-service .form-card, .main.main-service .details, .main.main-service .bio, .main.main-service .admin-actions, .main.main-service .theme-settings, .main.main-service .profile-photo-actions, .main.main-service .feed-empty { border: 1px solid var(--service-border); border-radius: 18px; background: var(--service-surface); color: var(--service-ink); }
.main.main-service .form-card { gap: .75rem; padding: clamp(1rem, 3vw, 1.4rem); }
.main.main-service .form-card.narrow { width: min(100%, 600px); margin-inline: 0; }
.main.main-service .form-card .button { justify-self: start; }
.main.main-service .member-row { min-height: 66px; padding: .65rem .9rem; gap: .7rem; border-color: var(--service-border); color: var(--service-ink); }
.main.main-service .member-row:hover { background: var(--service-raised); }
.main.main-service .member-row small { color: var(--service-muted); font-size: .75rem; }
.main.main-service .member-row strong { font-size: .92rem; }
.main.main-service .member-row-profile { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.main.main-service .archive-entry { border-color: var(--service-border); }
.main.main-service .archive-entry .member-row { border: 0; }
.main.main-service .archive-entry .link-button { min-height: 44px; padding-inline: .55rem; font-size: .78rem; }
.main.main-service .empty-state, .main.main-service .feed-empty { padding: 1.25rem; font-size: .9rem; }
.main.main-service .section-heading { margin: 1.7rem 0 .75rem; }
.main.main-service .details { margin-block: 1rem; padding: .25rem 1.1rem; }
.main.main-service .details div { padding-block: .8rem; }
.main.main-service .details dd { color: var(--service-ink); font-size: .92rem; }
.main.main-service .details dt { color: var(--service-muted); font-size: .75rem; }
.main.main-service .bio, .main.main-service .admin-actions, .main.main-service .profile-photo-actions, .main.main-service .theme-settings { padding: 1.1rem; }
.main.main-service .profile-heading { margin: .5rem 0 1.2rem; gap: 1rem; }
.main.main-service .profile-heading > div:last-child { min-width: 0; }
.main.main-service .profile-heading h1 { margin: 0; }
.main.main-service .profile-heading .eyebrow { margin-bottom: .35rem; font-size: .66rem; letter-spacing: .06em; }
.main.main-service .profile-heading .avatar-large { flex-basis: 76px; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; }
.main.main-service .profile-photo-actions { width: 100%; margin-block: 1rem; }
.main.main-service .service-links { display: block; overflow: hidden; border: 1px solid var(--service-border); border-radius: 18px; background: var(--service-surface); }
.main.main-service .service-links .card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; grid-template-rows: auto auto; align-items: center; column-gap: .8rem; min-height: 80px; padding: .85rem 1rem; border: 0; border-bottom: 1px solid var(--service-border); border-radius: 0; background: transparent; color: var(--service-ink); }
.main.main-service .service-links .card:last-child { border-bottom: 0; }
.main.main-service .service-links .card:hover { transform: none; background: var(--service-raised); }
.main.main-service .service-links .card-symbol { grid-column: 1; grid-row: 1 / 3; width: 42px; height: 42px; margin: 0; border-radius: 12px; background: var(--service-raised); color: var(--service-ink); }
.main.main-service .card-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.main.main-service .service-links h2 { grid-column: 2; align-self: end; margin: 0; font-size: .96rem; overflow-wrap: anywhere; }
.main.main-service .service-links p { grid-column: 2; align-self: start; max-width: none; margin: .12rem 0 0; font-size: .78rem; }
.main.main-service .service-chevron { grid-column: 3; grid-row: 1 / 3; color: var(--service-muted); font-size: 1.5rem; }
.main.main-service .service-links .feed-empty { border: 0; }
.main.main-service .feed-list { display: block; overflow: hidden; border: 1px solid var(--service-border); border-radius: 18px; background: var(--service-surface); }
.main.main-service .event-card { min-height: 106px; padding: 1rem; border: 0; border-bottom: 1px solid var(--service-border); border-radius: 0; background: transparent; color: var(--service-ink); }
.main.main-service .event-card:last-child { border-bottom: 0; }
.main.main-service .event-card:hover { transform: none; background: var(--service-raised); }
.main.main-service .event-card .eyebrow { margin-bottom: .3rem; color: var(--service-muted); font-size: .68rem; letter-spacing: .07em; }
.main.main-service .event-card-title { font-size: 1.05rem; }
.main.main-service .event-card-meta { color: var(--service-muted); font-size: .78rem; }
.main.main-service .feed-list > .feed-empty { border: 0; }
.main.main-service .notification-button { padding: .9rem 1rem; color: var(--service-ink); }
.main.main-service .notification-button strong { font-size: .9rem; }
.main.main-service .notification-button small { color: var(--service-muted); font-size: .74rem; }
.main.main-service .notification-button:hover { background: var(--service-raised); }
.main.main-service .notification-row { border-color: var(--service-border); }
.main.main-service .preferences-form { gap: .6rem; }
.main.main-service .preference-grid { grid-template-columns: minmax(80px, 1.4fr) repeat(4, minmax(0, 1fr)); font-size: .8rem; }
.main.main-service .preference-head { font-size: .7rem; color: var(--service-muted); }
.main.main-service .pagination { flex-wrap: wrap; gap: .6rem 1rem; font-size: .8rem; }
.main.main-service .pagination a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 799px) {
    .main.main-service { width: calc(100% - 1.5rem); }
    .main.main-service .event-card-image { flex-basis: 72px; width: 72px; height: 72px; border-radius: 12px; }
    .main.main-service .preference-grid { grid-template-columns: minmax(78px, 1.3fr) repeat(4, minmax(0, 1fr)); font-size: .72rem; }
    .main.main-service .preference-head { font-size: .63rem; overflow-wrap: anywhere; }
}

.notification-bulk { margin: -.25rem 0 .65rem; text-align: right; }
.notification-item { display: flex; align-items: center; }

/* Give the message list the remaining viewport and keep older pages inside it. */
.snack-thread .snack-older { justify-self: center; margin: 0 0 .25rem; }
.snack-thread .snack-older a { display: inline-flex; align-items: center; min-height: 44px; color: var(--snack-ink); }
.avatar-crop { display: grid; gap: .55rem; width: min(100%, 300px); margin: .55rem 0; }
.avatar-crop[hidden] { display: none; }
.avatar-crop p { margin: 0; }
.avatar-crop canvas { display: block; width: min(100%, 260px); height: auto; aspect-ratio: 1; border: 1px solid #a99c58; border-radius: 15px; object-fit: cover; touch-action: none; cursor: grab; }
.avatar-crop canvas:active { cursor: grabbing; }
.avatar-crop input[type="range"] { width: 100%; padding: 0; }
.event-image-section { margin-top: 1rem; }
.event-image-section form { display: grid; gap: .65rem; margin-top: .7rem; }
@media (max-width: 799px) {
    .main.main-snack-thread { display: flex; flex-direction: column; height: calc(100dvh - 64px - 5.25rem - env(safe-area-inset-bottom)); min-height: 0; padding-top: .25rem; padding-bottom: .5rem; }
    .snack-thread { flex: 1; min-height: 0; height: auto; }
    .snack-back { min-height: 32px; margin-bottom: 0; }
    .snack-thread-head { margin-bottom: .35rem; }
    .snack-thread .snack-kind { display: none; }
    .snack-thread-title { font-size: 1.35rem; }
    .snack-room-title .snack-room-avatar { flex-basis: 38px; width: 38px; height: 38px; }
    .snack-room-info { margin-bottom: .35rem; }
    .snack-room-info[open] { max-height: 42dvh; overflow-y: auto; }
    .snack-room-info > summary { min-height: 36px; padding-block: .25rem; }
    .snack-thread .chat-messages { flex: 1 1 auto; min-height: 0; max-height: none; padding: .55rem; }
    .snack-thread .chat-compose { margin-top: .35rem; scroll-margin-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
}

/* Binary unseen markers and notification controls. */
.unseen-dot, .bell-badge.unseen-dot, .snack-tab-count.unseen-dot, .snack-unseen-badge.unseen-dot { display: inline-block; flex: none; width: 13px; height: 13px; min-width: 13px; padding: 0; border: 0; border-radius: 50%; background: #ffff00 radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, .42) 20%, transparent 43%); box-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 0 6px rgba(255, 255, 0, .25), inset 0 -1px 1px rgba(91, 68, 0, .22); vertical-align: middle; }
html[data-theme="light"] .unseen-dot, html[data-theme="light"] .bell-badge.unseen-dot, html[data-theme="light"] .snack-tab-count.unseen-dot, html[data-theme="light"] .snack-unseen-badge.unseen-dot { background: #ffff00 radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, .42) 20%, transparent 43%); border: 1px solid #624900; box-shadow: 0 1px 3px rgba(59, 42, 0, .24), inset 0 -1px 1px rgba(91, 68, 0, .22); }
.snack-view-nav a.active .snack-tab-count.unseen-dot { border: 1px solid #514000; }
.bell-badge.unseen-dot { position: absolute; top: 0; right: 0; width: 15px; height: 15px; border: 1px solid #090909; }
html[data-theme="light"] .bell-badge.unseen-dot { border-color: #624900; }
.unseen-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .6rem 0 1rem; }
.unseen-controls form { margin: 0; }
.unseen-filter { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .8rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; }
.unseen-filter.active { background: #ffe45c; color: #191500; }
.notification-item { display: flex; gap: .7rem; padding: 1rem; text-decoration: none; }
.notification-item small { margin-left: auto; }

@media (max-width: 799px) { .mobile-nav a { position: relative; } .mobile-nav a > .unseen-dot { position: absolute; top: 7px; right: calc(50% - 21px); } }
@media (max-width: 420px) { .notification-item { flex-wrap: wrap; } .notification-item small { flex-basis: 100%; margin-left: 18px; } }
.main.main-service .profile-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .65rem; width: min(100%, 560px); margin: 1rem 0 1.5rem; }
.main.main-service .profile-actions > a, .main.main-service .profile-actions > details { flex: 1 1 160px; min-width: 0; }
.main.main-service .profile-actions > a, .main.main-service .profile-actions > details > summary { width: 100%; min-height: 44px; text-align: center; }
.main.main-service .profile-actions .profile-photo-actions { display: block; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.main.main-service .profile-actions .profile-photo-actions[open] { flex-basis: 100%; }
.main.main-service .profile-photo-panel { display: grid; gap: .9rem; margin-top: .7rem; padding: 1.1rem; border: 1px solid var(--service-border); border-radius: 18px; background: var(--service-surface); color: var(--service-ink); }
html[data-theme="light"] .main.main-service .profile-actions .profile-photo-actions { border: 0; background: transparent; }
.linked-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.linked-text a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.preferences-form label { display: flex; align-items: flex-start; gap: .7rem; line-height: 1.5; }
.preferences-form input[type="checkbox"] { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: .12rem 0 0; padding: 0; border-radius: 5px; accent-color: #ffe45c; }
.attention-settings { display: grid; gap: .85rem; width: min(100%, 800px); }
.main.main-service .attention-settings-section { padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid var(--service-border); border-radius: 18px; background: var(--service-surface); }
.attention-settings-section h2, .attention-settings-section h3 { margin: 0 0 .4rem; }
.attention-settings-section h3 { color: var(--service-ink); font-size: .95rem; }
.attention-settings-section > p, .attention-settings-control p { margin: 0; line-height: 1.55; }
.attention-settings-section > p + p { margin-top: .5rem; }
.attention-settings-control { display: grid; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--service-border); }
.attention-settings-control .button { justify-self: start; }
.attention-settings-section .push-settings, .attention-settings-section .push-event-settings { margin-bottom: 0; }
.settings-destination { color: var(--service-ink); text-decoration: none; }
.settings-destination:hover { background: var(--service-raised); }
.settings-destination span:first-child { display: grid; gap: .2rem; }
.settings-destination small { color: var(--service-muted); font-size: .8rem; }
.settings-destination span:last-child { color: var(--service-muted); font-size: 1.5rem; }
.push-event-choices { display: grid; gap: .7rem; }
.push-event-choices label { padding: .75rem; border: 1px solid var(--service-border, #39341d); border-radius: 12px; }
.push-event-choices label span { display: grid; gap: .15rem; }
.push-event-choices label small { color: var(--service-muted, #a99c58); font-size: .8rem; }
.hittain-main { width: min(100% - 2rem, 800px); padding-block: clamp(1.5rem, 4vw, 3rem) 5rem; }
.hittain-intro h1 { font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(2.5rem, 7vw, 4rem); }
.hittain-intro > p { max-width: 67ch; line-height: 1.65; }
.hittain-form { margin-top: 1.5rem; }
.hittain-members { margin-top: clamp(2.5rem, 6vw, 4rem); }
.hittain-members h2 { margin-bottom: 1rem; }
.hittain-list { overflow: hidden; margin: 0; padding: 0; border: 1px solid #37331e; border-radius: 18px; background: #151511; list-style: none; }
.hittain-list li { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(120px, 1fr) minmax(160px, 1.3fr); gap: .6rem 1rem; padding: .85rem 1rem; border-bottom: 1px solid #302c1a; }
.hittain-list li:last-child { border-bottom: 0; }
.hittain-list li > div { min-width: 0; overflow-wrap: anywhere; }
.hittain-list small { display: block; margin-bottom: .15rem; color: #a99c58; font-size: .7rem; }
.hittain-list strong, .hittain-list span { color: #f4df69; font-size: .9rem; }
.hittain-list .hittain-empty { display: block; color: #c3b76e; }
@media (max-width: 620px) { .hittain-list li { grid-template-columns: 1fr 1fr; } .hittain-list li > div:last-child { grid-column: 1 / -1; } }
