@font-face {
  font-family:"Cascadia Code";
  src:url("/assets/fonts/CascadiaCode.ttf") format("truetype");
  font-style:normal; font-weight:200 900; font-display:swap;
}
@font-face {
  font-family:"Source Sans 3";
  src:url("/assets/fonts/SourceSans3-Regular.ttf.woff2") format("woff2");
  font-style:normal; font-weight:400; font-display:swap;
}
:root {
  color-scheme:dark; --paper:#0f1113; --panel:#171a1d; --panel2:#23272b;
  --ink:#eceae3; --muted:#a5aaa7; --line:#000; --accent:#96b36a;
  --font:"Cascadia Code",monospace;
  font-family:var(--font); color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box; }
body { margin:0; font-size:14px; line-height:1.4; }
button,input,textarea,select { font:inherit; color:inherit; border-radius:0; }
button { cursor:pointer; border:0; background:none; }
button:disabled { opacity:.55; cursor:wait; }
button,input,textarea,select { touch-action:manipulation; }
a { color:var(--accent); text-underline-offset:3px; }
img { max-width:100%; }
.icon { display:inline-block; width:20px; height:20px; flex:none; vertical-align:middle; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent); outline-offset:-3px;
}
[hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-60px; left:10px; z-index:100; background:#171a1d; padding:14px; }
.skip-link:focus { top:10px; }
.masthead { background:#0f1012; border-bottom:2px solid #000; }
.install-button { display:flex; align-items:stretch; justify-content:space-between; padding:0; min-height:54px; border:1px solid #111714; background:#397c58; color:#f3f6f1; font-weight:800; font-size:15px; text-align:left; }
.install-button:hover { background:#448b65; }
.install-button:active { background:#2d684a; }
.install-button:focus-visible { outline:3px solid #f3f6f1; outline-offset:2px; }
.install-button>span:first-child { display:flex; align-items:center; padding:0 16px; }
.install-endcap { display:grid; place-items:center; width:54px; flex:none; border-left:1px solid #111714; background:#2d684a; }
.install-endcap img { width:24px; height:24px; }
.install-banner { display:none; }
.install-reason { display:none; }
.install-menu-reason { margin:0 0 16px; color:var(--muted); font-size:12px; }
.install-menu-button { width:100%; margin-bottom:6px; }
.install-help { width:min(440px,calc(100% - 32px)); padding:24px; border:2px solid #397c58; background:#171a1d; color:#eceae3; }
.install-help::backdrop { background:#000b; }
.install-help h2 { margin-top:0; }
.install-help li { margin:12px 0; }
.install-help>div { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width:699px) { .install-banner:not([hidden]) { display:flex; width:calc(100% - 20px); margin:10px 10px 0; } .install-reason:not([hidden]) { display:block; margin:6px 10px 10px; font-size:12px; color:var(--muted); } }
.utility-line { background:#16191a; color:#dfe5da; display:flex; justify-content:space-between; gap:12px; padding:5px 20px; font-size:9px; letter-spacing:.1em; border-bottom:1px solid #000; }
.masthead-inner { display:flex; align-items:center; gap:22px; min-height:84px; max-width:1920px; margin:auto; padding:14px 20px; }
.logo { display:flex; align-items:center; gap:12px; font-weight:800; font-size:34px; letter-spacing:-.09em; padding:0; }
.logo em { font-style:normal; color:var(--accent); }
.brand-mark { display:grid; place-items:center; width:36px; height:36px; border:2px solid var(--accent); color:var(--accent); font-size:26px; letter-spacing:-.15em; padding-right:4px; }
.header-search { flex:1; min-width:130px; max-width:420px; margin-left:auto; }
.sort-control { display:flex; flex-direction:column; gap:4px; }
.sort-control > span { color:var(--muted); font-size:9px; text-transform:uppercase; }
.sort-control select { min-width:100px; }
.header-actions { display:flex; gap:12px; align-items:center; margin-left:auto; }
.header-chat svg { display:none; width:22px; height:22px; }
.language-selector { display:flex; align-items:center; gap:3px; }
.language-label { font-size:10px; color:var(--muted); margin-right:5px; }
.language-selector button { width:44px; height:44px; display:grid; place-items:center; padding:0; opacity:.72; }
.language-selector button[aria-pressed=true] { opacity:1; outline:2px solid var(--accent); outline-offset:-2px; }
.language-selector button:focus-visible { outline:3px solid var(--accent); outline-offset:1px; }
.language-selector img { width:24px; height:16px; object-fit:contain; }
.language-menu { margin-bottom:12px; }
.auth-dialog header .language-label { display:none; }
.auth-dialog header .language-selector { margin-left:auto; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 14px; border:1px solid #58625c; font-size:12px; font-weight:700; text-decoration:none; cursor:pointer; }
.btn-primary { background:var(--accent); border-color:var(--accent); color:#101510; }
.btn-primary:hover { background:#adc487; }
.btn-secondary { background:var(--panel2); color:var(--ink); }
.btn-quiet { text-decoration:underline; }
.btn-danger { background:#683335; border-color:#b95d64; }
.profile-chip { min-height:44px; display:flex; align-items:center; gap:7px; font-size:11px; }
#profileMonogram { border:1px solid #5b675d; width:28px; height:28px; display:grid; place-items:center; }
#profileLabel { max-width:110px; overflow:hidden; text-overflow:ellipsis; }
.menu-button,.filter-toggle { width:44px; height:44px; display:flex; align-items:center; justify-content:center; gap:3px; padding:0; }
.filter-toggle { display:none; }
.forum-shell { display:grid; grid-template-columns:184px minmax(0,1fr) 236px; max-width:1920px; margin:auto; align-items:start; }
.left-panel,.right-panel { position:sticky; top:0; max-height:100dvh; overflow:auto; padding:22px 14px; background:#151719; }
.left-panel { border-right:2px solid #000; }
.right-panel { border-left:2px solid #000; padding:20px 16px; }
main { min-width:0; }
.nav-link { display:flex; align-items:center; gap:8px; min-height:44px; width:100%; padding:8px 0; font-weight:600; font-size:12px; text-align:left; }
.nav-link:first-of-type { color:var(--accent); }
.category-filters { padding:0; margin:25px 0 0; border:0; min-width:0; }
.category-filters legend,.eyebrow { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin:0 0 12px; }
#categoryFilters { display:grid; gap:0; }
.category-filter { display:flex; align-items:flex-start; min-height:44px; padding:11px 0; gap:7px; cursor:pointer; border-bottom:1px solid #2d3234; font-size:11px; }
.category-filter input { appearance:none; display:grid; place-items:center; width:15px; height:15px; flex:none; margin:1px 0 0; border:1px solid #738074; background:#0e0f10; cursor:pointer; }
.category-filter input:checked { background:var(--accent); border-color:var(--accent); }
.category-filter input:checked::after { content:'✓'; color:#0a110a; font-size:12px; font-weight:bold; }
.category-filter .icon { width:15px; height:15px; color:var(--theme); margin-top:1px; }
.category-filter small { display:block; font-size:9px; line-height:1.5; color:var(--muted); margin-top:5px; }
.sidebar-note { margin-top:25px; padding-top:20px; border-top:1px solid #333a38; font-size:12px; }
.wall-toolbar { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:14px 12px; min-height:49px; font-size:10px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.wall-toolbar h1 { font:inherit; margin:0; }
.wall-toolbar b { font-weight:400; }
.live-dot { display:inline-block; width:7px; height:7px; background:#4d9b71; margin-right:7px; }
.poster-wall { columns:3; column-gap:0; padding-bottom:35px; }
.theme-question { --theme:#719ad2; --theme-bg:#294267; --theme-rgb:73,114,173; }
.theme-opinion { --theme:#bb80ad; --theme-bg:#623854; --theme-rgb:154,85,135; }
.theme-story { --theme:#b4a36b; --theme-bg:#595039; --theme-rgb:158,139,78; }
.theme-alert { --theme:#cb8177; --theme-bg:#713d3e; --theme-rgb:175,91,83; }
.theme-tip { --theme:#6fb4a1; --theme-bg:#2e5e54; --theme-rgb:66,143,125; }
.post-card { display:block; width:100%; break-inside:avoid; border:1px solid #000; margin:0; background:var(--panel); overflow:hidden; }
.tile-header { display:flex; align-items:center; justify-content:space-between; gap:4px; height:37px; padding:0 10px; border-top:4px solid var(--theme); border-bottom:2px solid #050505; background:linear-gradient(90deg,rgba(var(--theme-rgb),.22),#222426 72%); }
.category-name { display:flex; align-items:center; gap:5px; font-size:10px; font-weight:800; text-transform:uppercase; }
.category-name .icon { width:14px; height:14px; color:var(--theme); }
.tile-header time { font-size:9px; font-weight:600; color:#d2d4d0; white-space:nowrap; }
.tile-open { position:relative; display:block; width:100%; padding:0; text-align:left; }
.tile-open:hover { filter:brightness(1.08); }
.tile-open:focus-visible { position:relative; z-index:2; }
.poster-surface { position:relative; isolation:isolate; overflow:hidden; width:100%; aspect-ratio:1; container-type:inline-size; color:#fff; }
.poster-surface.with-image { aspect-ratio:1/1.12; }
.poster-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:contrast(1.02) saturate(.92) brightness(.94); }
.with-image { background:linear-gradient(145deg,var(--theme-bg),#17191b 65%); }
.poster-media-status,.poster-media-error { position:absolute; z-index:2; top:10px; left:10px; max-width:calc(100% - 20px); padding:5px 7px; background:#0f1113e8; color:#fff; font-size:10px; font-weight:700; }
.poster-media-error { top:50%; left:50%; width:max-content; max-width:calc(100% - 24px); transform:translate(-50%,-50%); text-align:center; border:1px solid #cb8177; }
.poster-surface[data-media-state=error] .poster-photo { visibility:hidden; }
.original-poster .poster-photo { object-fit:contain; filter:none; background:#101214; }
.with-image:not(.original-poster)::after { content:''; position:absolute; inset:0; z-index:0; background:linear-gradient(180deg,rgba(0,0,0,.04),transparent 29%,rgba(var(--theme-rgb),.08) 46%,rgba(var(--theme-rgb),.38) 62%,rgba(var(--theme-rgb),.70) 81%,rgba(var(--theme-rgb),.91)),linear-gradient(0deg,rgba(11,13,15,.29),transparent 53%); }
.without-image { background:linear-gradient(145deg,var(--theme-bg),#17191b 58%,#111315); }
.theme-question.without-image { background:linear-gradient(145deg,#344d69,#223347 56%,#12171d); }
.theme-opinion.without-image { background:linear-gradient(145deg,#63425b,#362738 60%,#141316); }
.theme-story.without-image { background:linear-gradient(135deg,#4c4431,#2f2b22 52%,#131415); }
.theme-alert.without-image { background:linear-gradient(145deg,#633c39,#402c2b 56%,#141315); }
.theme-tip.without-image { background:linear-gradient(145deg,#366355,#263f37 56%,#121516); }
.without-image::before { content:''; position:absolute; top:10%; right:-10%; width:72%; aspect-ratio:1; border:20px solid rgba(var(--theme-rgb),.20); transform:rotate(-23deg); z-index:-1; }
.without-image::after { content:''; position:absolute; inset:0; border-left:8px solid rgba(var(--theme-rgb),.72); pointer-events:none; }
.poster-motif { display:none; }
.poster-decor { position:absolute; top:12px; right:12px; width:42px; height:42px; z-index:1; display:grid; place-items:center; background:var(--theme-bg); border:2px solid var(--theme); }
.poster-decor .icon { width:24px; height:24px; }
.poster-text { position:absolute; z-index:1; bottom:0; left:0; right:0; padding:16px; display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.poster-text::before { content:''; display:block; width:54px; height:6px; background:var(--theme); flex:none; }
.poster-title { font-family:var(--font); font-size:clamp(18px,10.5cqw,38px); font-weight:800; line-height:1.06; letter-spacing:-.075em; text-transform:uppercase; overflow-wrap:anywhere; text-wrap:balance; text-shadow:0 3px 13px #000a; }
.poster-title.compact { font-size:clamp(16px,9.6cqw,34px); }
.poster-title.dense { font-size:clamp(13px,7.4cqw,29px); }
.without-image .poster-text,.placement-center .poster-text { bottom:auto; top:50%; transform:translateY(-50%); }
.without-image .poster-title { text-shadow:none; }
.placement-top .poster-text { top:55px; bottom:auto; transform:none; }
.placement-bottom .poster-text { top:auto; bottom:0; transform:none; }
.with-image.placement-top:not(.original-poster)::after { transform:rotate(180deg); }
.with-image.placement-center:not(.original-poster)::after { background:linear-gradient(0deg,rgba(var(--theme-rgb),.35),rgba(var(--theme-rgb),.85) 50%,rgba(var(--theme-rgb),.25)); }
.demo-tag { position:absolute; z-index:2; top:8px; left:8px; padding:3px 4px; font-size:7px; line-height:1.2; text-transform:uppercase; background:#111a1be6; color:#eee; }
.video-tile-badge,.video-preview-badge { position:absolute; z-index:3; left:10px; top:10px; padding:6px 8px; background:#0f1113e8; color:#fff; border:1px solid #fff; font-size:10px; }
.video-preview-badge { top:auto; bottom:10px; }
.video-preview-badge .icon { width:15px; height:15px; margin-right:5px; vertical-align:middle; }
.detail-video { display:block; width:100%; max-height:min(65dvh,640px); object-fit:contain; background:#000; }
.photo-field progress { width:100%; accent-color:var(--accent); }
.tile-actions { display:grid; grid-template-columns:48px 48px minmax(35px,1fr) minmax(35px,1fr); align-items:stretch; height:50px; border-top:2px solid #000; background:#16191b; }
.vote-btn { width:48px; height:48px; padding:0; }
.vote-btn .icon { width:100%; height:100%; display:block; }
.vote-btn:hover { filter:brightness(1.15); }
.vote-btn[aria-pressed=true] { outline:3px solid #fff; outline-offset:-5px; }
.vote-number { display:grid; place-items:center; border-inline:2px solid #000; background:#212529; font-weight:800; font-size:14px; letter-spacing:-.08em; font-variant-numeric:tabular-nums; }
.vote-number.negative { color:#d98a90; }
.comment-count { min-width:0; display:flex; gap:5px; align-items:center; justify-content:center; border-left:1px solid #000; padding:3px; font-size:12px; font-weight:700; }
.comment-count .icon { width:16px; height:16px; }
.comment-count:hover { background:#25292c; }
.activity-section { margin-bottom:25px; }
.activity-section h2 { display:flex; align-items:center; gap:8px; font-size:11px; text-transform:uppercase; color:var(--accent); margin:0 0 12px; }
.activity-section h2 .icon { width:16px; height:16px; }
.activity-item,.activity-comment { display:block; width:100%; text-align:left; padding:12px 0; border-bottom:1px solid #343938; }
.activity-item:hover,.activity-comment:hover { background:#202624; }
.activity-item small,.activity-comment small { display:block; font-size:9px; color:var(--muted); margin-bottom:6px; }
.activity-item small { color:var(--theme); }
.activity-item strong { display:block; font-size:12px; line-height:1.45; overflow-wrap:anywhere; font-weight:600; }
.activity-item > span { display:block; color:var(--muted); font-size:10px; margin-top:7px; }
.activity-comment > span { display:block; font-size:11px; line-height:1.55; overflow-wrap:anywhere; }
.activity-comment em { display:block; font-size:9px; font-style:normal; color:var(--muted); margin-top:6px; overflow-wrap:anywhere; }
.activity-totals { font-size:10px; color:var(--accent); border-top:1px solid #39413b; padding-top:16px; }
.activity-totals span { color:var(--muted); }
.empty-state { column-span:all; padding:45px 20px; text-align:center; }
.load-more { column-span:all; width:calc(100% - 24px); margin:18px 12px; }
.recovery-key { width:100%; min-width:0; padding:16px; border:2px solid var(--accent); background:var(--panel2); font-size:15px; }
.credential-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:stretch; }
.credential-row button { min-width:72px; }
.recovery-actions { display:flex; gap:10px; flex-wrap:wrap; }
.policy-page { max-width:760px; margin:0 auto; padding:clamp(24px,6vw,80px) 20px; }
.policy-page h1 { font-size:clamp(28px,6vw,52px); letter-spacing:-.08em; }
.policy-page h2 { margin-top:35px; color:var(--accent); }
.policy-page li,.policy-page p { line-height:1.75; }
.area-picker { display:grid; grid-template-columns:1.2fr 1fr; gap:20px; }
.norway-map { width:100%; max-height:55dvh; border:1px solid var(--muted); background:var(--panel2); }
.norway-map path { fill:#879182; stroke:var(--line); stroke-width:1.5; cursor:pointer; }
.norway-map path[aria-pressed=true] { fill:var(--accent); }
.norway-map path:focus-visible { stroke:#fff; stroke-width:5; outline:none; }
.area-list { max-height:55dvh; overflow:auto; }
.area-list-item { width:100%; min-height:44px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--muted); text-align:left; }
.area-list-item[aria-pressed=true] { background:var(--accent); color:#101510; }
@media(max-width:699px) { .area-picker { grid-template-columns:1fr; } .norway-map { max-height:40dvh; } #areaButton { padding:5px; } }
.empty-state h2 { font-size:20px; }
.loading-card { padding:25px; }
.modal-open { overflow:hidden; }
.passkey-security{background:var(--panel);color:var(--ink);border:2px solid var(--line);max-width:min(580px,94vw);max-height:90dvh;overflow:auto;padding:24px}.passkey-security::backdrop{background:#000b}.passkey-security button{min-height:44px;padding:10px;border:1px solid var(--muted);margin:8px 8px 8px 0}.passkey-security input{display:block;width:100%;padding:10px;margin:8px 0}.passkey-security h2{font-size:20px}
.modal-overlay { position:fixed; inset:0; z-index:20; background:#000b; backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:24px; }
.modal-panel { background:#101214; border:2px solid #000; width:min(580px,100%); max-height:calc(100dvh - 48px); display:flex; flex-direction:column; box-shadow:0 25px 80px #000b; overflow:hidden; animation:enter-modal 180ms ease-out; }
@keyframes enter-modal { from { opacity:0; transform:translateY(10px) scale(.97); } to { opacity:1; transform:none; } }
.modal-panel.modal-refresh { animation:none; }
.modal-header,.modal-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; background:#1e2022; flex-shrink:0; }
.modal-header { border-bottom:2px solid #000; }
.modal-footer { border-top:2px solid #000; }
.modal-header h2 { margin:0; font-size:20px; letter-spacing:-.06em; }
.modal-close { min-height:44px; min-width:44px; font-size:13px; text-transform:uppercase; white-space:nowrap; }
.modal-content { padding:22px; overflow:auto; overscroll-behavior:contain; min-height:0; }
.modal-content p { line-height:1.6; }
.detail-modal { width:min(1080px,100%); }
.detail-toolbar { display:flex; align-items:center; gap:12px; padding:8px 16px; border-bottom:2px solid #000; background:#1e2022; flex-shrink:0; }
.detail-toolbar .report-button { margin-left:auto; min-height:44px; font-size:11px; text-decoration:underline; color:var(--muted); }
.detail-modal .modal-content { padding:0; display:grid; grid-template-columns:1fr 1fr; align-items:start; }
.detail-poster { position:sticky; top:0; border-right:2px solid #000; }
.detail-copy { padding:0 24px 28px; min-width:0; }
.detail-copy .tile-actions { margin:0 -24px 20px; grid-template-columns:56px 56px 1fr 1fr; height:58px; }
.detail-copy .vote-btn { width:56px; height:56px; }
.detail-copy .vote-number { font-size:22px; }
.detail-meta { font-size:10px; text-transform:uppercase; color:var(--muted); overflow-wrap:anywhere; }
.detail-title { font-size:27px; letter-spacing:-.07em; line-height:1.12; overflow-wrap:anywhere; }
.detail-body { white-space:pre-wrap; overflow-wrap:anywhere; }
.detail-surface.original-poster { aspect-ratio:auto; min-height:100px; }
.detail-surface.original-poster .poster-photo { position:relative; display:block; width:100%; height:auto; max-height:min(65dvh,640px); object-fit:contain; }
.source-link { display:block; overflow-wrap:anywhere; font-size:12px; line-height:1.6; }
.text-button { display:inline-block; min-height:44px; padding:8px 0; text-decoration:underline; font-size:11px; text-underline-offset:3px; color:var(--accent); }
.variant-button { margin-top:12px; }
.discussion { border-top:2px solid #000; margin-top:24px; padding-top:18px; }
.discussion h2 { font-size:14px; text-transform:uppercase; color:var(--accent); }
.comment-unit { margin:14px 0; }
.comment-meta { font-size:10px; color:var(--muted); }
.comment-body { margin:7px 0 0; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.comment-replies { border-left:2px solid #58664e; padding-left:12px; }
.reply-button { min-height:44px; font-size:11px; padding:5px 0; color:var(--accent); }
.reply-context { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px; background:#252c25; font-size:11px; }
.reply-context button { min-height:44px; }
.comment-entry { display:grid; gap:9px; margin-top:20px; }
.comment-entry label { font-size:12px; }
.comment-entry .btn { justify-self:end; }
.field { display:flex; flex-direction:column; gap:8px; margin:0; font-size:13px; }
.field > span { font-weight:600; }
input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),textarea,select { width:100%; min-height:44px; padding:10px; border:1px solid #4e5953; background:#202528; color:var(--ink); font-size:14px; }
textarea { min-height:100px; resize:vertical; }
input[type=range] { width:100%; accent-color:var(--accent); min-height:30px; }
.form-stack { display:grid; gap:18px; }
.notice { background:#202724; padding:15px; font-size:12px; }
.staff-modal { width:min(1400px,100%); }
.staff-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.staff-tabs [aria-pressed=true] { border-color:var(--accent); color:var(--accent); }
.staff-table-wrap { overflow:auto; margin-top:14px; border:1px solid var(--line); }
.staff-table { width:100%; border-collapse:collapse; min-width:850px; font-size:12px; }
.staff-table th,.staff-table td { padding:9px; border:1px solid var(--line); text-align:left; vertical-align:top; }
.staff-table th { position:sticky; top:0; z-index:1; background:var(--panel2); }
.staff-table input:not([type=checkbox]),.staff-table textarea,.staff-table select { width:100%; min-width:120px; margin-bottom:6px; }
.staff-table textarea { min-height:64px; resize:vertical; }
.staff-actions { display:grid; gap:6px; min-width:120px; }
.muted-note { color:var(--muted); font-size:11px; line-height:1.5; }
.compose-modal { width:min(980px,100%); }
.composer { display:grid; grid-template-columns:1fr .85fr; gap:28px; align-items:start; }
.composer.flow-select,.composer.flow-edit.mode-text { display:block; max-width:720px; margin:auto; }
.compose-fields { display:grid; gap:22px; min-width:0; }
.category-picker,.post-type-picker,.media-workspace { border:0; padding:0; margin:0; min-width:0; }
.category-picker legend,.post-type-picker > legend { margin-bottom:10px; font-size:13px; font-weight:600; }
.post-type-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:8px; }
.post-type-picker h3 { margin:4px 0 18px; font-size:21px; }
.flow-select .post-type-card { min-height:168px; justify-content:center; }
.flow-select .post-type-icon { width:52px; height:52px; }
.flow-select .post-type-icon .icon { width:31px; height:31px; }
.flow-select .post-type-card strong { font-size:14px; }
.post-type-choice { position:relative; cursor:pointer; min-width:0; }
.post-type-choice > input { position:absolute; inset:0; z-index:2; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.post-type-card { position:relative; min-height:124px; height:100%; display:flex; flex-direction:column; gap:7px; padding:12px; overflow:hidden; border:2px solid #434b47; background:#181d1d; }
.post-type-card::after { content:''; position:absolute; inset:auto -18px -24px auto; width:72px; height:72px; opacity:.25; transform:rotate(20deg); pointer-events:none; }
.mode-text .post-type-card { background:repeating-linear-gradient(0deg,#171c1c 0 12px,#202725 12px 13px); }
.mode-text .post-type-card::after { border:9px solid var(--accent); }
.mode-image .post-type-card { background:linear-gradient(145deg,#263b35 0 48%,#1a2220 48%); }
.mode-image .post-type-card::after { border-radius:50%; background:#8ba56e; }
.mode-video .post-type-card { background:repeating-linear-gradient(90deg,#251f2a 0 13px,#302737 13px 18px); }
.mode-video .post-type-card::after { border:7px dashed #c8a8d5; }
.post-type-icon { width:42px; height:42px; display:grid; place-items:center; border:2px solid currentColor; background:#101414; color:var(--accent); }
.mode-image .post-type-icon { color:#9fc78f; }
.mode-video .post-type-icon { color:#d4acd8; }
.post-type-icon .icon { width:25px; height:25px; }
.post-type-card strong { position:relative; z-index:1; font-size:12px; line-height:1.2; }
.post-type-card small { position:relative; z-index:1; color:var(--muted); font-size:9px; line-height:1.35; }
.post-type-choice > input:checked + .post-type-card { border-color:var(--accent); box-shadow:inset 0 -6px var(--accent),4px 4px 0 #000; }
.post-type-choice > input:checked + .post-type-card .post-type-icon { color:#111; background:var(--accent); border-color:var(--accent); }
.post-type-choice > input:focus-visible + .post-type-card { outline:3px solid var(--accent); outline-offset:2px; }
.category-choices { display:flex; flex-wrap:wrap; gap:0; }
.category-choice { cursor:pointer; position:relative; }
.category-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.category-choice span { min-height:44px; display:flex; align-items:center; gap:5px; padding:8px 9px; border:1px solid #4a504c; font-size:11px; background:#171c1c; }
.category-choice b { font-size:17px; }
.category-choice input:checked + span { background:var(--theme-bg); border-color:var(--theme); color:#fff; box-shadow:inset 0 0 0 1px var(--theme); }
.category-choice input:focus-visible + span { outline:3px solid var(--accent); outline-offset:-3px; }
.media-workspace { position:relative; padding:16px; overflow:hidden; border:2px solid #4c6358; background:repeating-linear-gradient(135deg,#17201d 0 14px,#1b2722 14px 28px); }
.video-workspace { border-color:#725d78; background:repeating-linear-gradient(90deg,#1e1a22 0 18px,#26202b 18px 23px); }
.media-workspace > legend { display:flex; align-items:center; gap:8px; padding:0 7px; font-size:13px; font-weight:700; background:var(--panel); }
.media-workspace > legend span { display:grid; place-items:center; color:var(--accent); }
.video-workspace > legend span { color:#d4acd8; }
.media-workspace > legend .icon { width:22px; height:22px; }
.media-instruction { max-width:52ch; margin:0 0 14px; color:var(--muted); font-size:11px; line-height:1.5; }
.media-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:stretch; }
.media-action { position:relative; min-height:72px; display:flex; align-items:center; gap:10px; padding:11px; border:2px solid #53635b; background:#141a18; color:var(--ink); text-align:left; cursor:pointer; }
.video-workspace .media-action { border-color:#6b586f; background:#19161c; }
.media-action:hover { border-color:var(--accent); }
.media-action:focus-visible,.media-action:focus-within { outline:3px solid var(--accent); outline-offset:2px; }
.media-action > .icon { width:30px; height:30px; flex:0 0 auto; color:var(--accent); }
.video-workspace .media-action > .icon { color:#d4acd8; }
.media-action span { display:flex; flex-direction:column; gap:3px; }
.media-action b { font-size:11px; }
.media-action small { color:var(--muted); font-size:8px; line-height:1.35; }
.media-action input { position:absolute; width:1px; height:1px; opacity:0; }
.media-status { min-height:20px; margin:12px 0 0; padding:7px 9px; background:rgba(0,0,0,.25); color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
.media-workspace progress { width:100%; accent-color:var(--accent); }
.post-mode-note { display:flex; gap:12px; align-items:flex-start; margin:0; padding:13px; border-left:6px solid var(--accent); background:repeating-linear-gradient(0deg,#171c1c 0 12px,#202725 12px 13px); }
.post-mode-note b { white-space:nowrap; font-size:11px; }
.post-mode-note span { color:var(--muted); font-size:10px; line-height:1.5; }
.flow-back { justify-self:start; }
.primary-writing textarea { min-height:260px; padding:18px; font-size:18px; line-height:1.55; }
.picture-crop { padding:12px 14px; border:1px solid #53635b; background:#151b19; }
.picture-crop .field { margin:12px 0; }
.poster-upgrade { padding:14px; border:1px solid #53635b; background:repeating-linear-gradient(135deg,#17201d 0 14px,#1b2722 14px 28px); }
.poster-upgrade p { margin:0 0 8px; }
.poster-upgrade .media-actions { margin-top:12px; }
#photoFilename { overflow-wrap:anywhere; }
.compose-preview { position:sticky; top:0; min-width:0; }
#posterPreview { border:2px solid #000; overflow:hidden; }
details summary { min-height:44px; display:list-item; padding:12px 0; font-size:12px; cursor:pointer; }
.desktop-crop .field { margin:12px 0; }
.connection-details { margin-top:24px; }
.connection-details img { display:block; }
.account-summary { display:flex; align-items:center; gap:14px; padding:4px 0 18px; border-bottom:1px solid var(--line); }
.account-summary h3,.account-summary p { margin:0; }
.account-avatar { width:52px; height:52px; display:grid; place-items:center; flex:0 0 auto; border:2px solid var(--accent); background:var(--panel2); font-size:22px; font-weight:800; }
.account-actions { display:flex; gap:10px; flex-wrap:wrap; padding:18px 0; }
.account-login { margin-top:18px; }
.account-register { margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.account-links { margin-top:24px; }
.auth-overlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px;background:#000b;backdrop-filter:blur(6px)}.auth-dialog{width:min(520px,100%);background:#1b2024;border:2px solid #53606a;box-shadow:0 22px 70px #000c}.auth-dialog.auth-register{background:#1b2920;border-color:#58725d}.auth-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line)}.auth-dialog header p{margin:0;color:var(--muted);font-size:11px}.auth-dialog header h2{margin:3px 0 0}.auth-dialog header button{width:44px;height:44px;font-size:22px}.auth-dialog nav{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}.auth-dialog nav button{min-height:46px;text-transform:uppercase;font-weight:800}.auth-dialog nav button[aria-selected=true]{background:var(--accent);color:#101214}.auth-panel{padding:20px}.auth-context{margin-top:0;line-height:1.5}.auth-error{margin:14px 0 0;padding:10px;border-left:3px solid #d87c7c;background:#46292b;color:#ffe7e7}.recovery-key{display:block;overflow-wrap:anywhere;margin:16px 0;padding:12px;border:1px dashed var(--accent);background:var(--panel2);font-size:14px}.profile-root{max-width:1080px;margin:0 auto;padding:28px 20px 60px}.profile-header{display:flex;justify-content:space-between;gap:18px;align-items:start;padding:22px;border:1px solid var(--line);background:var(--panel)}.profile-header h1{margin:0;font-size:30px}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:8px;margin-top:18px}.profile-stat{padding:10px;border:1px solid var(--line);background:var(--panel2)}.profile-stat b,.profile-stat span{display:block}.profile-stat span{font-size:11px;color:var(--muted)}.profile-actions{display:flex;gap:8px;flex-wrap:wrap}.profile-posts{margin-top:20px;border:1px solid var(--line);background:var(--panel)}.profile-posts header{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px;border-bottom:1px solid var(--line)}.profile-post-list{list-style:none;margin:0;padding:0}.profile-post-row{display:grid;grid-template-columns:110px 90px minmax(0,1fr) 100px 80px;padding:13px;border-bottom:1px solid var(--line);gap:10px;width:100%;text-align:left}.profile-post-row:hover{background:var(--panel2)}.profile-post-row span{font-size:12px}.profile-post-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-empty{padding:24px;color:var(--muted)}
.admin-row { padding:12px 0; border-bottom:1px solid #38413b; }
.admin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.toast-container { position:fixed; bottom:max(20px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); z-index:40; width:max-content; max-width:calc(100% - 32px); pointer-events:none; }
.toast { background:var(--accent); color:#0d160c; padding:14px 20px; border:2px solid #000; box-shadow:5px 5px 0 #000; font-size:12px; }
@media(min-width:1700px) { .poster-wall { columns:4; } }
@media(max-width:1279px) {
  .forum-shell { grid-template-columns:176px minmax(0,1fr); }
  .right-panel { display:none; }
  .masthead-inner { gap:16px; }
  #profileLabel { display:none; }
}
@media(max-width:899px) {
  .forum-shell { display:block; }
  .left-panel { display:none; position:static; max-height:none; padding:12px; border-bottom:2px solid #000; }
  .filters-open .left-panel { display:block; }
  .desktop-navigation,.category-filter small { display:none; }
  .category-filters { margin:0; }
  #categoryFilters { display:flex; flex-wrap:wrap; gap:0; }
  .category-filter { padding:10px 8px; border:1px solid #414845; align-items:center; }
  .category-filter .icon { margin:0; }
  .category-filters legend { margin-bottom:8px; }
  .filter-toggle { display:flex; }
  .poster-wall { columns:3; }
  .masthead-inner { gap:10px; }
  .header-search { max-width:230px; }
  .sort-control { display:none; }
}
@media(max-width:699px) {
  .modal-open { overflow:visible; }
  .modal-overlay { overscroll-behavior:contain; }
  .utility-line,.header-search,.profile-chip,.create-label { display:none; }
  .masthead-inner { min-height:58px; padding:7px 10px; }
  .logo { font-size:24px; gap:0; flex:none; min-height:44px; }
  .brand-mark { display:none; }
  .header-actions { gap:4px; }
  .header-chat { width:44px; height:44px; padding:0; }
  .header-chat svg { display:block; }
  .header-chat span { display:none; }
  .create-button { width:44px; padding:0; }
  .wall-toolbar { display:none; }
  .poster-wall { columns:2; }
  .tile-header { height:32px; padding:0 7px; }
  .category-name { font-size:9px; gap:4px; letter-spacing:-.03em; }
  .category-name .icon { width:12px; height:12px; }
  .tile-header time { font-size:9px; }
  .poster-text { padding:11px; gap:8px; }
  .poster-text::before { width:38px; height:5px; }
  .poster-decor { width:30px; height:30px; top:9px; right:9px; }
  .poster-decor .icon { width:17px; height:17px; }
  .poster-title { font-size:clamp(18px,10.5cqw,31px); }
  .poster-title.compact { font-size:clamp(16px,10cqw,27px); }
  .poster-title.dense { font-size:clamp(12px,7.3cqw,23px); }
  .tile-actions { grid-template-columns:44px 44px minmax(28px,1fr) minmax(30px,1fr); height:46px; }
  .vote-btn { width:44px; height:44px; }
  .vote-number { font-size:13px; }
  .comment-count { font-size:11px; gap:3px; }
  .comment-count .icon { width:13px; height:13px; }
  .demo-tag { font-size:6px; padding:2px 3px; top:6px; left:6px; }
  .modal-overlay { padding:10px; }
  .modal-panel { max-height:calc(100dvh - 20px); }
  .modal-header,.modal-footer { padding:10px 14px; }
  .modal-header h2 { font-size:17px; }
  .modal-content { padding:16px; }
  .detail-modal,.compose-modal { width:100%; height:min(var(--app-viewport-height,100dvh),100dvh); max-height:min(var(--app-viewport-height,100dvh),100dvh); border:0; }
  .modal-overlay:has(.detail-modal),.modal-overlay:has(.compose-modal) { inset:0 0 auto; height:min(var(--app-viewport-height,100dvh),100dvh); padding:0; transform:translateY(var(--app-viewport-offset,0)); }
  .detail-toolbar { padding:calc(6px + env(safe-area-inset-top)) 12px 6px; gap:8px; }
  .detail-modal .modal-content { display:block; padding-bottom:env(safe-area-inset-bottom); }
  .detail-poster { position:static; border-right:0; }
  .detail-copy { padding:0 16px 24px; }
  .detail-copy .tile-actions { margin:0 -16px 18px; }
  .detail-copy .comment-count { font-size:14px; }
  .detail-title { font-size:24px; }
  .compose-modal .modal-header { padding-top:calc(8px + env(safe-area-inset-top)); }
  .compose-modal .modal-footer { padding-bottom:calc(10px + env(safe-area-inset-bottom)); }
  .composer { grid-template-columns:1fr; gap:24px; }
  .compose-preview { position:static; max-width:390px; width:100%; margin:auto; }
  .post-type-card { min-height:116px; padding:9px; }
  .post-type-icon { width:38px; height:38px; }
  .post-type-card strong { font-size:11px; }
  .post-type-card small { font-size:8px; }
  .media-workspace { padding:13px; }
  .media-actions { grid-template-columns:1fr; }
  .desktop-crop,.desktop-placement { display:none; }
  .compose-modal .modal-footer .muted-note { max-width:130px; }
  input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),textarea,select { font-size:16px; }
}
@media(max-width:359px) {
  .poster-wall { columns:1; }
  .masthead-inner { flex-wrap:wrap; gap:0; padding:6px 8px; }
  .logo { font-size:23px; min-height:44px; }
  .header-actions { width:100%; justify-content:space-between; margin-left:0; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Display modes share the same wall, category selection and actions. */
.display-preferences { display:flex; justify-content:flex-end; align-items:center; gap:16px; padding:8px 20px; background:var(--panel); border-bottom:1px solid var(--line); }
.view-switch { display:flex; border:1px solid var(--muted); }
.display-preferences button { min-height:44px; padding:8px 14px; font-size:11px; }
.view-switch button[aria-pressed=true] { background:var(--accent); color:#101510; font-weight:700; }
#themeToggle { border:1px solid var(--muted); }
.simple-categories { display:none; }
.category-button { display:flex; align-items:center; justify-content:center; gap:10px; min-height:56px; padding:10px 18px; border:1px solid var(--muted); background:var(--panel); font-size:12px; }
.category-button .icon { width:26px; height:26px; color:var(--theme); }
.category-button[aria-pressed=true] { border-color:var(--theme); box-shadow:inset 0 -4px var(--theme); background:linear-gradient(rgba(var(--theme-rgb),.22),rgba(var(--theme-rgb),.22)),var(--panel); }
.category-button[aria-pressed=false] { color:var(--muted); }
.category-button:hover { outline:1px solid var(--theme); }
@media(min-width:900px) {
  [data-layout=simple] .forum-shell { display:block; max-width:1320px; padding:0 24px; }
  [data-layout=simple] .left-panel,[data-layout=simple] .right-panel { display:none; }
  [data-layout=simple] .simple-categories { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; padding:18px 0 4px; }
  [data-layout=simple] .poster-wall { columns:3; column-gap:10px; }
  [data-layout=simple] .post-card { margin-bottom:10px; }
  [data-layout=simple] .wall-toolbar { padding-inline:0; }
  [data-layout=simple] .utility-line { display:none; }
}
@media(max-width:899px) { .display-preferences { display:none; } }

/* Light shell keeps the supplied poster artwork's own contrast and palette. */
:root[data-theme=light] { color-scheme:light; --paper:#f2f1eb; --panel:#fafaf6; --panel2:#e4e8df; --ink:#202724; --muted:#546058; --accent:#b5cb91; }
[data-theme=light] a,[data-theme=light] .text-button,[data-theme=light] .reply-button,[data-theme=light] .discussion h2,[data-theme=light] .activity-section h2,[data-theme=light] .activity-totals { color:#3d6028; }
[data-theme=light] .masthead,[data-theme=light] .left-panel,[data-theme=light] .right-panel,[data-theme=light] .modal-panel { background:var(--panel); }
[data-theme=light] .utility-line,[data-theme=light] .modal-header,[data-theme=light] .modal-footer,[data-theme=light] .detail-toolbar,[data-theme=light] .notice,[data-theme=light] .reply-context { background:var(--panel2); color:var(--ink); }
@media(max-width:700px){.profile-root{padding:14px 10px 40px}.profile-header{display:block}.profile-actions{margin-top:14px}.profile-stats{grid-template-columns:repeat(2,1fr)}.profile-post-row{grid-template-columns:1fr auto;gap:4px}.profile-post-row .profile-date,.profile-post-row .profile-category{display:none}}
[data-theme=light] input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),[data-theme=light] textarea,[data-theme=light] select { background:#fff; }
[data-theme=light] .category-choice span,[data-theme=light] .tile-actions,[data-theme=light] .vote-number { background:var(--panel2); }
[data-theme=light] .tile-header { background:linear-gradient(90deg,rgba(var(--theme-rgb),.28),#eceee8 72%); }
[data-theme=light] .tile-header time { color:var(--muted); }
[data-theme=light] .category-name .icon,[data-theme=light] .category-filter .icon,[data-theme=light] .category-button .icon { color:var(--theme-bg); }
[data-theme=light] .category-choice input:checked + span { background:var(--theme-bg); }
[data-theme=light] .activity-item:hover,[data-theme=light] .activity-comment:hover,[data-theme=light] .comment-count:hover { background:#e3e8dd; }
[data-theme=light] .activity-item small { color:var(--theme-bg); }
[data-theme=light] .vote-number.negative { color:#9e353d; }
[data-theme=light] .vote-btn[aria-pressed=true] { outline-color:#fff; }
[data-theme=light] .logo em,[data-theme=light] .brand-mark,[data-theme=light] .nav-link:first-of-type { color:#3d6028; }
.notification-button{position:relative;width:44px;height:44px;padding:10px;border:1px solid var(--line);background:var(--panel);color:#8fdf9a}.notification-button svg,.notification-row svg{width:22px;height:22px}.notification-row svg{color:#8fdf9a}.notification-button span{position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;padding:2px 4px;background:#8fdf9a;color:#0f1113;font-size:11px;font-weight:900;text-align:center}.notification-settings,.notification-inbox{padding:2px 0 18px}.notification-settings fieldset{display:grid;gap:10px;margin:18px 0 0;padding:14px;border:1px solid var(--line)}.notification-choice{display:flex;gap:9px;align-items:center}.notification-choice input{width:20px;height:20px}.notification-actions{display:flex;gap:8px;flex-wrap:wrap}.notification-inbox h3{margin:8px 0}.notification-row{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;width:100%;padding:12px;border:1px solid var(--line);border-bottom:0;background:var(--panel);color:var(--ink);text-align:left}.notification-row:last-child{border-bottom:1px solid var(--line)}.notification-row.unread{border-left:4px solid #8fdf9a;background:var(--panel2)}.notification-row span,.notification-row small{display:block}.notification-row small{margin-top:3px;color:var(--muted)}

@media (display-mode: standalone) {
  .masthead { padding-top:env(safe-area-inset-top); }
  body::before { content:""; position:fixed; z-index:100; top:0; left:0; right:0; height:env(safe-area-inset-top); background:#0f1012; pointer-events:none; }
}
.profile-avatar .chat-avatar{position:relative;display:grid;place-items:center;width:88px;height:88px;overflow:hidden;border:2px solid #779080;background:#314b40;color:#fff;font-size:38px;font-weight:800}.profile-avatar .chat-avatar.tone-1{background:#51466c}.profile-avatar .chat-avatar.tone-2{background:#5a4536}.profile-avatar .chat-avatar.tone-3{background:#39576d}.profile-avatar .chat-avatar.tone-4{background:#634450}.profile-avatar .chat-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-header>div:nth-child(2){min-width:0;flex:1}.avatar-dialog{width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:2px solid #596f60;background:var(--panel);color:var(--ink)}.avatar-dialog::backdrop{background:#000b}.avatar-dialog form{padding:18px}.avatar-dialog header{display:flex;justify-content:space-between;align-items:center;gap:10px}.avatar-dialog h2{margin:0;font-size:19px}.avatar-dialog header button{width:44px;height:44px;font-size:23px}.avatar-dialog p{font-size:12px;color:var(--muted)}.avatar-dialog input[type=file]{display:block;width:100%;margin:14px 0}.avatar-dialog canvas{display:block;width:min(256px,100%);height:auto;margin:10px auto;border:2px solid var(--accent)}.avatar-dialog #avatarCrop label{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:8px;margin:8px 0;font-size:12px}.avatar-dialog #avatarCrop input{width:100%}.avatar-dialog #avatarError{color:#f3b6b6}.avatar-dialog footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
@media(max-width:699px){.profile-header{flex-wrap:wrap}.profile-avatar .chat-avatar{width:72px;height:72px;font-size:30px}}
.author-trigger{display:inline;border:0;border-bottom:1px solid currentColor;padding:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.author-trigger:focus-visible,.author-popover button:focus-visible,.comment-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.author-popover{position:fixed;z-index:120;display:grid;min-width:180px;padding:5px;border:1px solid var(--line);background:var(--panel);box-shadow:0 9px 24px #0009}.author-popover button{min-height:44px;padding:9px 12px;text-align:left;color:var(--ink);background:transparent;border:0;font:inherit}.author-popover button:hover{background:var(--panel2)}.comment-actions{display:flex;align-items:center;gap:6px;margin-top:5px}.comment-actions button{min-width:44px;min-height:44px;border:1px solid var(--line);background:var(--panel2);color:var(--ink);font:inherit}.comment-actions button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}.comment-actions button[data-value="-1"][aria-pressed=true],.comment-score.negative{color:#df9898}.comment-score{min-width:32px;text-align:center;font-size:12px}.comment-actions .reply-button{min-width:0;margin-left:auto;padding:0 8px}.public-profile{max-width:620px;margin:24px auto;padding:22px;border:1px solid var(--line);background:var(--panel)}.public-profile-identity{display:flex;align-items:center;gap:18px;margin:22px 0}.public-profile-identity .chat-avatar{width:80px;height:80px;font-size:32px;flex:none}.public-profile-identity h1{margin:0;overflow-wrap:anywhere}.public-profile-identity p{color:var(--muted)}.public-reputation{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line)}.public-reputation>div{display:grid;gap:9px;padding:16px;border:1px solid var(--line)}.public-reputation span{font-size:11px;text-transform:uppercase}.public-reputation strong{font-size:25px}.public-reputation .total{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}@media(max-width:600px){.author-popover{left:8px!important;right:8px;top:auto!important;bottom:max(8px,env(safe-area-inset-bottom));min-width:0}.public-profile{margin:10px;padding:16px}.public-profile-identity .chat-avatar{width:64px;height:64px}}
.public-profile-identity .chat-avatar{position:relative;display:grid;place-items:center;overflow:hidden;border:2px solid #779080;background:#314b40;color:#fff;font-weight:800}.public-profile-identity .chat-avatar.tone-1{background:#51466c}.public-profile-identity .chat-avatar.tone-2{background:#5a4536}.public-profile-identity .chat-avatar.tone-3{background:#39576d}.public-profile-identity .chat-avatar.tone-4{background:#634450}.public-profile-identity .chat-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.activity-comment-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit}.activity-comment-open>span,.activity-comment-open>em{display:block;overflow-wrap:anywhere}.activity-comment-open>span{font-size:11px;line-height:1.55}.activity-comment-open>em{margin-top:6px;color:var(--muted);font-size:9px;font-style:normal}
.activity-comment-open>em{display:flex;align-items:center;gap:4px}.activity-comment-open>em .icon{flex:none;width:13px;height:13px}

/* E19 onboarding, safe area, and compact comment controls */
:root{--status-surface:#0f1012}
:root[data-theme=light]{--status-surface:#fafaf6}
@media(display-mode:standalone){.masthead,body::before{background:var(--status-surface)}}
.auth-overlay{overflow:auto;align-items:center;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))}
.auth-recovery{max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));overflow:auto}
.auth-recovery .auth-panel{display:grid;gap:10px}
.auth-recovery .auth-context,.auth-recovery [data-passkey-hint],.auth-recovery [role=status]{margin:0}
.auth-recovery [data-passkey-hint]{font-size:12px;color:var(--muted)}
.auth-recovery [role=status]:empty{display:none}
.auth-recovery form{display:grid;gap:12px}
.auth-recovery .field{margin:0}
.auth-recovery input[name=username]{width:100%}
.recovery-input-row{display:flex;min-width:0}
.recovery-input-row input{min-width:0;flex:1}
.recovery-input-row button{display:grid;place-items:center;width:44px;min-width:44px;border:1px solid var(--line);background:var(--panel2)}
.recovery-input-row img{width:20px;height:20px}
:root:not([data-theme=light]) .recovery-input-row img{filter:invert(1)}
.auth-recovery [data-save-passkey]{width:100%;min-height:44px}
.auth-recovery form>.btn{justify-self:start}
.comment-actions{gap:2px}
.comment-actions button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;background:transparent}
.comment-actions button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:-5px;border:0}
.comment-vote-icon{display:block;width:15px;height:15px;background:#2e6e4f;mask:url('/assets/icons/vote-up-mini.svg') center/contain no-repeat;-webkit-mask:url('/assets/icons/vote-up-mini.svg') center/contain no-repeat}
.comment-actions button[data-value='-1'] .comment-vote-icon{background:#93494f;mask-image:url('/assets/icons/vote-down-mini.svg');-webkit-mask-image:url('/assets/icons/vote-down-mini.svg')}
.comment-actions button[data-value='-1'][aria-pressed=true]{outline-color:#93494f}
.comment-actions .reply-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;margin-left:auto;padding:0 8px;border:1px solid var(--line);color:var(--muted);font-size:11px;text-decoration:none}
.comment-actions .reply-button .icon{width:17px;height:17px}

/* E20: readable typography and two canonical content formats */
:root{--font:'Source Sans 3',Arial,sans-serif;--font-reading:'Source Sans 3',Arial,sans-serif}
body,input,button,textarea,select{font-family:var(--font-reading)}
.poster-wall,[data-layout=simple] .poster-wall{display:grid;columns:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;align-items:start}
[data-layout=simple] .poster-wall{gap:10px}
.post-card,[data-layout=simple] .post-card{min-width:0;margin:0}
.article-card{grid-column:span 2}
.article-open{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);min-height:260px;background:linear-gradient(130deg,var(--theme-bg),var(--panel) 75%)}
.article-cover{display:block;min-width:0;overflow:hidden;background:var(--theme-bg)}
.article-cover img{display:block;width:100%;height:100%;object-fit:cover}
.article-summary{display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:0;padding:24px;color:var(--ink)}
.article-summary small{color:var(--theme);font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.article-summary strong{font-size:clamp(22px,3vw,34px);line-height:1.05;overflow-wrap:anywhere}
.article-summary>span{font-size:15px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.article-summary b{font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.poster-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden;font-size:clamp(12px,5cqw,17px);line-height:1.28;letter-spacing:0;text-transform:none;overflow-wrap:anywhere;text-shadow:0 2px 8px #000b}
.poster-copy strong{font-size:clamp(17px,7cqw,23px);font-weight:800;line-height:1.08}
.poster-copy span::before{content:' '}
.poster-detail-text{font-size:18px;line-height:1.55;white-space:pre-wrap}
.tile-actions{height:44px;grid-template-columns:44px 44px minmax(32px,1fr) minmax(44px,1fr)}
.vote-btn{width:44px;height:44px}
.vote-number{font-size:13px}
.detail-copy .tile-actions{grid-template-columns:44px 44px 1fr 1fr;height:44px}
.detail-copy .vote-btn{width:44px;height:44px}
.detail-copy .vote-number{font-size:16px}
.comment-body{font-size:17px;line-height:1.5}
.detail-body{font-size:18px;line-height:1.55}
.design-composer{display:block;max-width:900px;margin:auto}
.design-format-tabs{display:flex;gap:8px;flex-wrap:wrap}
.design-format-tabs button{min-height:44px;padding:8px 16px;border:1px solid var(--muted);background:var(--panel2)}
.design-format-tabs button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#111}
.design-composer .compose-fields{gap:18px}
.design-composer .primary-writing textarea{min-height:150px}
.design-media-actions{display:flex;gap:8px;flex-wrap:wrap}
.design-composer .compose-preview{position:static;width:min(390px,100%);max-width:none;margin:0}
.article-chapter-editor{display:grid;gap:12px;margin:14px 0;padding:16px;border:1px solid var(--muted)}
.article-chapter-editor legend{padding:0 6px;font-weight:700}
.article-chapter-editor legend{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;max-width:100%}
.article-chapter-editor legend>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chapter-collapse{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--muted);background:var(--panel2)}
.chapter-collapse .icon{width:18px;height:18px;transition:transform .15s}.chapter-collapse[aria-expanded=true] .icon{transform:rotate(180deg)}
.chapter-fields{display:grid;gap:10px}.chapter-fields[hidden]{display:none}
.article-chapter-editor textarea{min-height:180px}
.chapter-order{display:flex;gap:7px;flex-wrap:wrap}
.chapter-order button{min-height:44px;padding:8px;border:1px solid var(--muted)}
.article-compose-preview{padding:16px;border:1px solid var(--line);background:var(--panel)}
.article-compose-preview h2{font-size:30px;line-height:1.1}
.article-compose-preview h3{margin-top:20px}
.article-compose-preview p{white-space:pre-wrap;line-height:1.5}
.detail-modal .modal-content:has(.detail-article){display:block}
.detail-article{max-width:100%;background:var(--paper)}
.article-hero{position:relative;min-height:340px;display:flex;align-items:end;background:linear-gradient(130deg,var(--theme-bg),var(--panel));color:#fff;isolation:isolate}
.article-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.article-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#101513ee,transparent 85%);z-index:-1}
.article-hero>div{padding:30px;max-width:800px}
.article-hero h1{margin:8px 0;font-size:clamp(34px,6vw,62px);line-height:1.05}
.article-hero p{font-size:18px;line-height:1.4}
.article-reader{width:min(760px,100%);margin:auto;padding:24px}
.article-reader>.tile-actions{max-width:360px;margin:20px 0}
.article-chapter{margin:50px 0}
.article-chapter h2{font-size:clamp(26px,4vw,34px);line-height:1.15}
.article-markdown{font-size:18px;line-height:1.55;overflow-wrap:anywhere}
.article-markdown img{max-width:100%;height:auto}
.article-media{display:block;width:100%;aspect-ratio:16/9;padding:0;background:#15191b;border:1px solid var(--line)}
.article-media img,.article-media video{display:block;width:100%;height:100%;object-fit:contain}
.article-media-viewer{width:min(95vw,1100px);max-height:90dvh;padding:12px;background:var(--panel);color:var(--ink);border:1px solid var(--muted)}
.article-media-viewer::backdrop{background:#000d}
.article-media-viewer>button{display:block;margin-left:auto;min-height:44px}
.article-media-viewer img,.article-media-viewer video{display:block;max-width:100%;max-height:75dvh;margin:auto;object-fit:contain}
.poster-media-expand{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:8px;padding:8px 10px;border:1px solid var(--muted);background:var(--panel2);color:var(--ink)}
.poster-media-expand .icon{width:18px;height:18px}.poster-media-viewer img{width:auto;height:auto;max-width:100%;max-height:75dvh}
@media(min-width:1700px){.poster-wall,[data-layout=simple] .poster-wall{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.poster-wall,[data-layout=simple] .poster-wall{grid-template-columns:repeat(2,minmax(0,1fr))}.article-open{min-height:215px}.article-summary{gap:6px;padding:12px}.article-summary strong{font-size:22px}.article-summary>span{font-size:12px}.article-summary b{font-size:10px}.article-hero{min-height:280px}.article-hero>div{padding:18px}.article-reader{padding:16px}}

/* E20 refinement: compact, accessible composer and shared article preview. */
.design-composer .compose-fields{gap:14px}
.design-format-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.design-format-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:7px 10px;font-size:15px;font-weight:700}
.design-format-tabs .icon{width:18px;height:18px}
.category-picker{min-width:0}
.category-choices{gap:5px}
.category-choice span{min-height:44px;padding:7px 9px;font-size:14px;white-space:nowrap}
.category-choice .icon{width:18px;height:18px}
.design-media-actions{gap:6px}
.design-media-actions .media-action{min-height:44px;padding:7px 10px;border-width:1px;font-size:14px}
.design-media-actions .media-action>.icon{width:19px;height:19px}
.design-remove{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:6px 9px}
.design-remove .icon{width:17px;height:17px}
.article-chapter-editor{gap:10px;margin:10px 0;padding:12px}
.article-chapter-editor textarea{min-height:130px}
.chapter-order{gap:5px}
.chapter-order button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;padding:7px 9px}
.chapter-order .icon,.design-add-chapter .icon{width:17px;height:17px}
.design-add-chapter{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px}
.compose-modal .modal-footer{padding:8px 14px max(8px,env(safe-area-inset-bottom))}
.compose-modal #publishButton{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 16px;font-size:15px}
.compose-modal #publishButton .icon,.detail-toolbar .icon,.comment-entry .icon{width:18px;height:18px}
.article-compose-preview{width:100%!important;max-width:none!important;padding:0;overflow:hidden}
.article-preview-reader .article-reader{width:100%}
.article-preview-reader .article-chapter{margin:24px 0}
.article-preview-reader .article-hero{min-height:220px}
.article-preview-reader .article-hero h1{font-size:clamp(26px,5vw,42px)}
.article-preview-cover{margin:18px 0}
.article-media-pending{display:grid;place-items:center;color:var(--muted)}
.article-summary b{display:inline-flex;align-items:center;gap:5px}
.article-summary b .icon,.video-tile-badge .icon{width:14px;height:14px}
.revision-list{list-style:none;padding:0;margin:0 0 18px}
.revision-list li{padding:12px 0;border-bottom:1px solid var(--line);line-height:1.7}
.revision-list .btn{margin:3px 4px;min-height:40px}
.history-compare-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:18px}
.history-compare-controls label{display:grid;gap:4px}
.history-compare-controls select{min-height:44px;min-width:90px;padding:7px;background:var(--panel2);border:1px solid var(--muted)}
.history-compare-controls .btn{min-height:44px}
.revision-diff{max-width:100%;overflow:auto;border:1px solid var(--line);background:var(--panel2);margin-top:18px}
.revision-diff h3,.revision-diff .notice{margin:0;padding:10px 12px}
.revision-diff>div{padding:2px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--font);font-size:12px;line-height:1.5}
.revision-diff>div>span{display:inline-block;width:18px;font-weight:800}
.diff-added{background:#173d28;color:#e4ffe9}
.diff-removed{background:#4b2225;color:#ffe9e9}
.historical-version{border:1px solid var(--line);padding:16px;margin-top:20px;max-width:100%;overflow:hidden}
.historical-version pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.historical-version>img,.historical-version>video,.historical-version .article-chapter img,.historical-version .article-chapter video{display:block;max-width:100%;max-height:65vh;margin:16px auto}
.profile-posts:last-child .profile-post-row{grid-template-columns:minmax(0,1fr) 100px 170px}
.profile-posts:last-child li>.btn{margin:6px 14px}
.profile-post-edit{margin:8px 13px 12px;min-height:44px}
.detail-toolbar,.compose-modal .modal-footer{flex-wrap:wrap}
.detail-toolbar>.btn,.compose-modal .modal-footer>.btn{min-height:44px}
@media(max-width:760px){
  .compose-modal .modal-content{padding:12px 14px 20px}
  .design-composer .compose-fields{gap:12px}
  .design-media-actions .media-action{flex:1 1 auto}
  .chapter-order button span{display:none}
  .article-chapter-editor{padding:10px}
  .article-preview-reader .article-reader{padding:12px}
  .article-preview-reader .article-hero{min-height:180px}
  .profile-posts:last-child .profile-post-row{grid-template-columns:minmax(0,1fr);gap:4px}
  .history-compare-controls{display:grid;grid-template-columns:1fr 1fr}
  .history-compare-controls .btn{grid-column:1/-1}
  .detail-toolbar{gap:5px}
  .detail-toolbar>.btn{padding:7px;font-size:11px}
  .compose-modal .modal-footer>.btn{flex:1 1 auto}
}

/* E22 compact post-detail actions: 40px visual control in a 44px touch target. */
.detail-toolbar{flex-wrap:nowrap;justify-content:space-between;gap:6px;padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left))}
.detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-left:auto;min-width:0}
.action-icon-button{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:2px;border:1px solid #56625a;border-radius:1px;background:var(--panel2);color:var(--ink)}
.action-icon-button::before{content:"";position:absolute;width:38px;height:38px;background:transparent}
.action-icon-button .icon{position:relative;width:20px;height:20px}
.action-icon-button:hover{border-color:var(--accent);background:#29332c}.action-icon-button:active{transform:translateY(1px)}
.action-icon-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.action-report{color:#dfa09b;border-color:#745653}.action-share{color:var(--accent);border-color:#617451}
@media(max-width:340px){.detail-toolbar{gap:2px;padding-inline:4px}.detail-actions{gap:2px}.action-icon-button{flex-basis:42px;width:42px;height:44px}}
