/* Z.O.N.A. field terminal. Shared visual system; route logic stays in templates. */
:root {
  color-scheme: dark;
  --bg: #090c08; --bg2: #0d110b; --panel: #10160e; --panel2: #1b2416;
  --line: #293322; --line2: #465438; --green: #b4d579; --green-dim: #92ad64;
  --green-pale: #c8d2b6; --green-glow: transparent; --amber: #c5bd83;
  --amber-dim: #7f7a50; --rust: #cc9878; --danger: #ed9c8a;
  --muted: #9aa78a; --faint: #89967a; --ink: #e0e5d5; --r: 0px;
  --terminal-font: 'Consolas', 'Liberation Mono', 'Courier New', monospace;
}
html { scroll-padding-top: 24px; }
body { padding-left: 248px; font-family: var(--terminal-font); font-size: 16px; line-height: 1.65; background: var(--bg); color: var(--green-pale); }
body::before { background: none; }
body *, body *::before, body *::after { box-sizing: border-box; text-shadow: none !important; }
body :is(h1,h2,h3,h4,button,input,textarea,select,code,.btn,.logo-txt,nav a,.stat-title,.stat-line b,.group-bar,.tag,.rolebadge,.auth-h,.pg-num,.dlg-title):not(:is(.wiki-view-content, .p-text, .art-body, .ed-editor) *) { font-family: var(--terminal-font) !important; }
.crt { opacity: .13; z-index: 260; background: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 4px); }
.crt::after { animation: none; background: none; }
.vignette { display: none; }
body :is(.btn,.auth .btn,.user-chip,nav a,.tag,.rolebadge,.dot,.pg-num,.pg-btn,.news-card,.ncard,.cat,.topic-row,.stat-panel,.auth-card,.don-hero-pally,.don-hero-fk) { box-shadow: none !important; border-radius: 0; }
body :is(.logo .rad,.sec-head .rad) { animation: none; filter: none; }
a,button { -webkit-tap-highlight-color: #b4d57930; }
:focus-visible { outline: 2px solid var(--green) !important; outline-offset: 4px; }
.terminal-icon { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.2em; margin-right: .3em; flex-shrink: 0; color: var(--green-dim); fill: none; stroke: currentColor; stroke-width: 1.5; }
body .page-title .terminal-icon { width: .85em; height: .85em; vertical-align: -.05em; }
body .cat-ico .terminal-icon { width: 24px; height: 24px; margin: 0; }
body .stat-line > span { display: inline-flex; align-items: center; gap: 8px; }
.skip-link { position: fixed; left: 260px; top: -80px; padding: 10px 16px; background: var(--green); color: var(--bg); z-index: 40000; }
.skip-link:focus { top: 8px; }
body header { position: fixed; inset: 0 auto 0 0; width: 248px; height: 100dvh; border: 0; border-right: 1px solid var(--line2); background: #0e130c; backdrop-filter: none; overflow-y: auto; }
body header .wrap { padding: 30px 18px 20px !important; height: 100%; }
body .topbar { display: flex; flex-direction: column; align-items: stretch; height: 100%; gap: 0; }
body .logo-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 0 10px 25px; border-bottom: 1px solid var(--line2); }
body .logo { padding: 0; gap: 8px; }
body .logo .rad { font-size: 28px; color: var(--green); }
body .logo-txt { font-size: 19px; letter-spacing: -.8px; color: var(--green); }
body .logo-txt .z { color: var(--green); }
body .logo-ip { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
body .logo-ip code { font-size: 13px; color: var(--muted); letter-spacing: 0; }
body .logo-ip .copybtn { color: var(--muted); min-height: 32px; font-size: 12px; border: 1px solid var(--line2); padding: 4px 8px; }
body header nav { display: flex; flex-direction: column; justify-content: flex-start; margin: 24px 0; gap: 5px; overflow: visible; flex: 1 0 auto; counter-reset: channel; }
body header nav a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; min-height: 46px; font-size: 14px; letter-spacing: 0; top: 0 !important; border: 1px solid transparent; color: var(--muted); background: transparent; }
body header nav a::before { counter-increment: channel; content: '0' counter(channel); font-size: 12px; opacity: .65; }
body header nav a:hover { background: var(--panel2); color: var(--ink); }
body header nav a.active { border-color: var(--line2); border-left: 3px solid var(--green); color: var(--green); background: #27321d; }
body header nav a.nav-donate { color: var(--amber); border-top-color: var(--line); margin-top: 12px; }
body .auth { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line2); justify-content: center; flex-wrap: wrap; }
body .auth-btns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
body .auth-btns .btn { flex: 1; text-align: center; font-size: 13px; padding: 10px; top: 0; }
body .user-chip { width: 100%; padding: 10px; min-width: 0; top: 0; }
body .user-chip > span { overflow-wrap: anywhere; }
body main.wrap { max-width: 1320px; padding: 0 48px 48px; min-width: 0; }
.terminal-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line2); padding: 22px 0 18px; margin-bottom: 40px; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.terminal-status strong { color: var(--green); font-weight: 400; }
.terminal-status .terminal-device { color: var(--faint); }
body h1,body .page-title { font-size: clamp(28px, 3.2vw, 46px); font-weight: 400; line-height: 1.15; letter-spacing: -1.5px; margin: 0 0 24px; color: var(--green); }
body h2,body h3 { line-height: 1.35; }
body .crumbs { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
body .hero { padding: 0 0 38px; margin: 0; border: 0; border-bottom: 1px solid var(--line2); background: none; }
body .hero::before { display: none; }
body .hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 265px; align-items: center; gap: 48px; }
body .hero-text { min-width: 0; text-align: left; }
body .hero h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -3px; line-height: 1.04; margin: 20px 0 22px; }
body .hero h1 .z { display: block; color: var(--green); }
body .kicker { font-size: 13px; letter-spacing: 1.5px; color: var(--muted); }
body .hero .lead { font-size: 16px; line-height: 1.8; max-width: 720px; text-align: left; color: var(--green-pale); }
body .hero-actions { margin-top: 28px; gap: 12px; justify-content: flex-start; }
.terminal-emblem { position: relative; align-self: stretch; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line2); color: var(--green-dim); background: repeating-linear-gradient(0deg, transparent 0 27px, #a0c77007 27px 28px); }
.terminal-emblem::before,.terminal-emblem::after { content: '+'; position: absolute; font-size: 20px; color: var(--green); }
.terminal-emblem::before { top: 4px; left: 10px; }.terminal-emblem::after { bottom: 4px; right: 10px; }
.terminal-emblem svg { width: 195px; height: 195px; }
.terminal-emblem strong { font-size: 22px; font-weight: 400; letter-spacing: 5px; margin-top: 22px; }
.terminal-emblem span { font-size: 12px; letter-spacing: 2px; margin-top: 8px; color: var(--muted); }
.terminal-gauge { width: 170px; height: 7px; margin-top: 24px; background: repeating-linear-gradient(90deg, var(--green-dim) 0 4px, transparent 4px 8px); opacity: .7; }
body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; padding: 11px 20px; letter-spacing: .4px; background: var(--green); border: 1px solid var(--green); color: #0b1108; }
body .btn:hover { background: #c8e791; transform: none; }
body .btn.ghost { color: var(--green); background: transparent; border-color: var(--line2); }
body .btn.ghost:hover { background: var(--panel2); border-color: var(--green); }
body .btn.sm { font-size: 13px; min-height: 40px; }
body .sec-head { font-size: 17px; letter-spacing: 1px; margin: 32px 0 20px; font-weight: 400; }
body .sec-head::after { background: var(--line2); }
body .news-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
body .ncard { border: 1px solid var(--line2); background: var(--panel); transition: border-color .15s; }
body .ncard:hover { transform: none; background: var(--panel2); border-color: var(--green); }
body .ncard-img-wrap { height: 180px; }
body .ncard-img { filter: saturate(.55); object-fit: cover; width: 100%; height: 100%; }
body .ncard-img-fade,body .ncard-img-scanlines { display: none; }
body .ncard-body { padding: 22px; }
body .ncard-text h3 { font-size: 22px; color: var(--ink); font-weight: 400; }
body .ncard-text p { font-size: 15px; color: var(--muted); line-height: 1.7; }
body .ncard-foot { font-size: 13px; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
body .nc-date,body .tag { font-size: 12px; }
body .tag { color: var(--amber); border-color: var(--amber-dim); background: transparent; padding: 3px 7px; }
body .group-bar { background: var(--panel2); padding: 12px 16px; margin: 28px 0 0; border: 1px solid var(--line2); color: var(--green); font-size: 14px; letter-spacing: 1px; }
body .cat { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; margin: 0; }
body .cat:hover { transform: none; background: var(--panel); }
body .cat-meta h3 { font-size: 18px; font-weight: 400; color: var(--green-pale); }
body .cat-meta p,body .cat-last-preview { font-size: 14px; color: var(--muted); }
body .cat-last-meta { font-size: 12px; }
body .cat-ico { filter: grayscale(1); background: transparent; border: 0; }
body .row-avatar-letter { background: var(--panel2); color: var(--green); border-radius: 0; }
body :is(.article,.stat-panel,.auth-card,.post,.wiki-card,.users-filters,.profile-card) { background: var(--panel); border: 1px solid var(--line2); border-radius: 0; box-shadow: none; }
body .article { padding: 28px; }
body :is(.art-body,.art-summary,.p-text) { font-size: 16px; line-height: 1.85; }
body .art-summary { background: var(--panel2); border-left-color: var(--green); }
body .stat-panel { margin: 20px 0; padding: 22px; min-width: 0; }
body .stat-title { font-size: 15px; color: var(--green); padding-bottom: 15px; }
body .stat-line-link { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
body .stat-line-link:hover { background: var(--panel2); }
body .stat-line,body .stat-line b { font-size: 16px; }
body :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select) { font: 16px/1.5 var(--terminal-font); color: var(--ink); background: var(--bg); border: 1px solid var(--line2); border-radius: 0; min-height: 46px; padding: 10px 12px; max-width: 100%; box-shadow: none; }
body input::placeholder,body textarea::placeholder { color: var(--muted); opacity: 1; }
body input[type=checkbox],body input[type=radio],body input[type=range] { accent-color: var(--green); }
body .field label { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
body .auth-wrap { padding: 24px 0 50px; }
body .auth-card { width: 100%; max-width: 520px; padding: 36px; border-top: 3px solid var(--green); }
body .auth-h { font-size: 13px; letter-spacing: 1px; color: var(--muted); margin-bottom: 20px; }
body .auth-card .page-title { font-size: 30px; }
body .auth-switch { font-size: 14px; margin-top: 24px; }
body .users-table-wrap { max-width: 100%; overflow-x: auto; border-radius: 0; }
body table { font-size: 14px; }
body th { color: var(--green); background: var(--panel2); }
body td { border-color: var(--line); }
body .don-hero { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 30px; padding: 36px; background: var(--panel); border: 1px solid var(--line2); }
body .don-hero-img,body .don-hero-scan,body .don-hero-shade,body .don-cta-glow { display: none; }
/* Existing image-protection code inserts a sibling background-image wrapper. */
body .don-hero > [role=img] { display: none !important; }
body .don-hero-content { position: static; padding: 0; max-width: none; }
body .don-hero-badge { font-size: 13px; letter-spacing: 1px; color: var(--muted); background: transparent; border: 0; padding: 0; }
body .don-hero-title { font-size: clamp(32px,4vw,52px); margin: 16px 0; }
body .don-hero-title span { color: var(--green); }
body .don-hero-sub { font-size: 16px; color: var(--muted); }
body .don-hero-slot-panel { position: static; transform: none; display: grid; grid-template-columns: 1fr 1fr; width: auto; min-width: 0; padding: 0; gap: 12px; background: none; border: 0; box-shadow: none; }
body .don-hero-slot-panel input { grid-column: 1 / -1; width: 100%; }
body .don-hero-slot-panel > * { min-width: 0; width: 100%; }
body .don-hero-pally,body .don-hero-fk { min-height: 46px; padding: 10px; color: var(--bg); font-size: 14px; border: 1px solid var(--green); background: var(--green); }
body .don-hero-history { position: static; width: auto; padding: 16px; grid-column: 1/-1; background: var(--bg); border: 1px solid var(--line); }
body :is(.dlg-box,.notif-modal,.toast) { border-radius: 0; border-color: var(--line2); background: var(--panel); box-shadow: 0 15px 50px #0009; }
body :is(.dlg-btn,.notif-btn) { min-height: 44px; font-size: 14px; border-radius: 0; }
body footer { margin-top: 24px; padding: 22px 0; border-top: 1px solid var(--line2); background: transparent; color: var(--faint); font-size: 12px; }
body .f-warn { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
body .pager { flex-wrap: wrap; gap: 8px; }
body main nav.pager { display: flex !important; }
body .pg-nums { flex-wrap: wrap; justify-content: center; }
body .pg-btn,body .pg-num { min-width: 40px; height: 40px; font-size: 14px; }
@media(min-width:1001px) { body .hamburger,body .mobile-menu,body .mobile-menu-overlay { display: none !important; } }
@media(max-width:1200px) and (min-width:1001px) {
  body { padding-left: 220px; } body header { width: 220px; } body header .wrap { padding-inline: 12px !important; }
  body main.wrap { padding-inline: 30px; } body .hero-grid { grid-template-columns: minmax(0,1fr) 200px; gap: 25px; }
  .terminal-emblem svg { width: 150px; } body .don-hero { grid-template-columns: 1fr; }
}
@media(max-width:1000px) {
  html { scroll-padding-top: 85px; } body { padding-left: 0; }
  body header { position: sticky; inset: auto; top: 0; width: 100%; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line2); }
  body header .wrap { padding: 12px 20px !important; }
  body .topbar { flex-direction: row; justify-content: space-between; align-items: center; }
  body .logo-wrap { border: 0; padding: 0; gap: 0; } body header .logo-ip,body header nav { display: none !important; }
  body .auth { border: 0; padding: 0; margin: 0; flex-wrap: nowrap; width: auto; }
  body .auth-btns { width: auto; } body .auth-btns .btn { white-space: nowrap; }
  body .hamburger { display: flex !important; width: 46px; height: 46px; margin-left: 8px; border: 1px solid var(--line2); border-radius: 0; }
  body .mobile-menu { display: flex; width: min(380px,100vw); height: 100dvh; background: var(--bg); border-left: 1px solid var(--line2); }
  body .mobile-menu-header { padding: 20px; background: var(--panel); }
  body .mobile-nav a { font-size: 16px; min-height: 48px; padding: 12px 20px; border-radius: 0; color: var(--green-pale); }
  body .mobile-nav a.active { color: var(--green); background: var(--panel2); border-left: 3px solid var(--green); }
  body .mobile-close { min-width: 44px; min-height: 44px; }
  body main.wrap { padding: 0 24px 32px; } .terminal-status { margin-bottom: 28px; }
  .skip-link { left: 12px; } body .hero-grid { gap: 28px; grid-template-columns: minmax(0,1fr) 220px; }
  body .hero h1 { font-size: 48px; } .terminal-emblem svg { width: 170px; }
}
@media(max-width:680px) {
  body header .wrap { padding: 10px 16px !important; } body .auth-btns { display: none; }
  body main.wrap { padding: 0 16px 28px; } .terminal-status { padding: 16px 0; margin-bottom: 26px; font-size: 11px; letter-spacing: .5px; }
  .terminal-device { display: none; } body .hero-grid { display: block; }
  body .hero h1 { font-size: 44px; letter-spacing: -2px; } body .hero .lead { font-size: 16px; text-align: left; line-height: 1.75; }
  body .hero-actions { flex-direction: column; } body .hero-actions .btn { width: 100%; }
  .terminal-emblem { display: none; } body .hero { padding-bottom: 28px; }
  body .news-list { grid-template-columns: 1fr; } body .ncard-text h3 { font-size: 22px; }
  body .ncard-text p { font-size: 15px; } body .ncard-body { padding: 20px; } body .ncard-foot { align-items: flex-start; }
  body .page-title { font-size: 29px; letter-spacing: -1px; }
  body .cat { padding: 16px 10px; gap: 12px; } body .cat-meta h3 { font-size: 17px; } body .cat-meta p { font-size: 14px; }
  body .cat-last { max-width: 100%; } body .cat-last-preview { font-size: 13px; }
  body .article,body .stat-panel { padding: 18px; } body .stat-line { flex-direction: column; gap: 6px; }
  body .auth-card { padding: 24px 20px; } body .auth-wrap { padding-top: 0; }
  body .don-hero { display: flex; flex-direction: column; padding: 24px 20px; gap: 24px; }
  body .don-hero-title { font-size: 36px; } body .don-hero-slot-panel { width: 100%; margin: 0; }
  body .users-filter-row { flex-direction: column; align-items: stretch; } body .users-filter-row > * { width: 100%; }
  body .post { min-width: 0; } body .p-text { overflow-wrap: anywhere; } body .p-text pre { overflow-x: auto; max-width: 100%; }
  body .dlg-box { padding: 24px 20px; max-height: 90dvh; overflow-y: auto; }
  body footer .wrap { padding-inline: 16px; } body .f-warn { letter-spacing: 0; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

body .logout-form { margin: 0; }
body .logout-form .btn { width: 100%; }

/* Stable screens and direct mobile navigation. */
body,body::before,body::after,body main,.crt,.crt::before,.crt::after { animation:none!important; transition:none!important; }
body .home-intro { padding-bottom:24px; }
body .home-intro .hero-grid { grid-template-columns:minmax(0,1fr) 150px; gap:24px; }
body .home-intro h1 { font-size:clamp(32px,4vw,52px); margin:12px 0; }
body .home-intro h1 .z { display:inline; }
body .home-intro .terminal-emblem { min-height:150px; }
body .home-intro .terminal-emblem svg { width:110px; height:110px; }
body .home-intro .terminal-emblem :is(strong,span,.terminal-gauge) { display:none; }
body .home-intro .hero-actions { margin-top:16px; }
body #news { font-size:clamp(24px,3vw,34px); color:var(--green); margin:28px 0 20px; }
body .news-list .ncard:first-child { grid-column:1/-1; border-left:4px solid var(--green); background:#182012; }
body .news-list .ncard:first-child h3 { font-size:clamp(25px,3vw,34px); }
body .news-list .ncard:first-child .ncard-body { padding:28px; }
body .zone-about { margin-top:36px; padding:20px; border:1px solid var(--line2); }
body .zone-about summary { cursor:pointer; color:var(--green); min-height:32px; }
body .zone-about p { max-width:85ch; line-height:1.8; }
body :is(.rolebadge,.dot).duty { color:#5dff7a; border-color:#5dff7a; }
body .dot.duty { background:#5dff7a; }
body .vid { aspect-ratio:16/9; width:100%; }
body .vid iframe { width:100%; height:100%; border:0; }
@media(max-width:1000px) {
 body header { position:relative; }
 body .topbar { flex-wrap:wrap; gap:12px; }
 body header nav { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); order:3; flex:0 0 100%; width:100%; margin:0; gap:4px; }
 body header nav a { justify-content:center; text-align:center; min-height:44px; padding:8px 3px; font-size:12px; border:1px solid var(--line); }
 body header nav a::before { display:none; }
 body header nav a.nav-donate { margin:0; }
 body .hamburger,body .mobile-menu,body .mobile-menu-overlay { display:none!important; }
 body .auth-btns { display:flex!important; width:auto; }
 body .auth-btns .btn { font-size:11px; padding:6px 8px; min-height:40px; }
 body .auth { flex-wrap:wrap; max-width:100%; gap:6px; }
 body .user-chip { width:auto; }
 body .terminal-status { margin-bottom:22px; }
 html { scroll-padding-top:12px; }
}
@media(max-width:680px) {
 body .logo-txt { font-size:16px; }
 body .logo .rad { font-size:22px; }
 body .home-intro .hero-grid { display:block; }
 body .home-intro h1 { font-size:34px; letter-spacing:-1px; }
 body .home-intro .kicker { font-size:11px; }
 body .home-intro .hero-actions { flex-direction:row; flex-wrap:wrap; }
 body .home-intro .hero-actions .btn { width:auto; }
 body .news-list .ncard:first-child .ncard-body { padding:20px; }
}

body .ed-modal { display:none; position:fixed; inset:0; background:#000b; z-index:2000; align-items:center; justify-content:center; }
body .ed-modal.open { display:flex; }
body .ed-modal-box { background:var(--panel); border:1px solid var(--line2); padding:24px; width:480px; max-width:92%; max-height:90dvh; overflow:auto; }
body .ed-modal-btns { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
body .ed-modal-box input { width:100%; }

/* No full-screen scanlines, blending, or brightness effects. */
html { background:#090c08; }
.crt,.vignette { display:none!important; }

/* Horizontal desktop navigation, inline vertical mobile disclosure. */
body { padding-left:0; }
body header { position:relative; inset:auto; width:100%; height:auto; overflow:visible; border:0; border-bottom:1px solid var(--line2); }
body header .wrap { max-width:1320px; margin:auto; padding:18px 32px 12px!important; height:auto; }
body .topbar { display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; gap:16px; height:auto; }
body .logo-wrap { flex-direction:row; align-items:center; border:0; padding:0; gap:24px; }
body header .logo-ip { display:flex!important; align-items:center; }
body .auth { margin-left:auto; padding:0; border:0; width:auto; flex-wrap:wrap; gap:8px; order:1; }
body .logo-wrap { order:0; }
body .auth-btns { width:auto; }
body .user-chip { width:auto; }
body header nav { display:flex!important; flex:0 0 100%; flex-direction:row; flex-wrap:wrap; margin:0; gap:4px; order:3; }
body header nav a { flex:1 1 auto; justify-content:center; min-height:44px; padding:8px 12px; font-size:13px; gap:6px; border:1px solid var(--line); }
body header nav a::before { display:none; }
body header nav a.nav-donate { margin:0; }
body main.wrap { margin:0 auto; padding-inline:32px; }
.section-nav-toggle { display:none; }
body .news-list { grid-template-columns:minmax(0,1fr); gap:16px; }
body .ncard { width:100%; }
body .ncard-body,body .news-list .ncard:first-child .ncard-body { padding:26px 30px; }
body .ncard-text h3,body .news-list .ncard:first-child h3 { font-size:clamp(23px,2.5vw,30px); }
body .ncard-text p { max-width:90ch; }
body .ncard-foot { border-top:1px solid var(--line); padding-top:16px; }
body .wiki-loop { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.pip-glitch { position:relative; }
.pip-glitch::after { content:''; position:absolute; left:0; top:48%; width:min(100%,420px); height:2px; pointer-events:none; background:var(--green); opacity:.4; }
body h1.pip-glitch { animation:pip-heading-shift 180ms steps(1,end)!important; }
@keyframes pip-heading-shift { 0%{transform:translateX(0)} 22%{transform:translateX(2px)} 43%{transform:translateX(-1px)} 64%,100%{transform:translateX(0)} }
@media(max-width:800px) {
 body header .wrap { padding:12px 16px!important; }
 body .topbar { gap:10px; }
 body header .logo-ip { display:none!important; }
 body .logo-txt { font-size:16px; }
 body .auth .btn { padding:7px; font-size:11px; }
 body .section-nav-toggle { display:flex; justify-content:space-between; align-items:center; order:2; width:100%; min-height:44px; border:1px solid var(--line2); background:var(--panel); color:var(--green); padding:10px 14px; font:14px var(--terminal-font); }
 body header nav { display:none!important; flex-direction:column; gap:3px; }
 body header nav.section-menu-open { display:flex!important; }
 body header nav a { justify-content:flex-start; width:100%; font-size:14px; padding:9px 14px; }
 body main.wrap { padding-inline:16px; }
 body .ncard-body,body .news-list .ncard:first-child .ncard-body { padding:20px; }
 .skip-link { left:12px; }
}
@media(prefers-reduced-motion:reduce) { body h1.pip-glitch { animation:none!important; } .pip-glitch::after { display:none; } }

/* Compact terminal header: content-sized tabs and one active underline. */
body header .wrap { max-width:1320px!important; padding:8px 24px 0!important; }
body .topbar { gap:4px 18px; }
body .logo-wrap { gap:18px; }
body .logo-txt { font-size:17px; letter-spacing:-.6px; }
body .logo .rad { font-size:23px; }
body .logo-ip { gap:6px; }
body .logo-ip code { font-size:11px; }
body .logo-ip .copybtn { width:28px; min-height:28px; padding:5px; border:0; color:var(--muted); display:inline-flex; align-items:center; justify-content:center; }
body .auth-btns { gap:6px; }
body .auth-btns .btn { min-height:32px; padding:5px 10px; font-size:11px; }
body header nav { gap:2px; justify-content:flex-start; }
body header nav a { flex:0 0 auto; width:auto; min-height:38px; gap:7px; padding:8px 11px; font-size:12px; border:0; border-bottom:2px solid transparent; background:transparent!important; }
body header nav a:hover { color:var(--ink); border-bottom-color:var(--line2); }
body header nav a.active { border:0; border-bottom:2px solid var(--green); color:var(--green); }
body header nav a.nav-donate { border-top:0; color:var(--amber); }
.nav-icon { width:16px; height:16px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.5; opacity:.85; }
@media(max-width:800px) {
 body header .wrap { padding:10px 16px!important; }
 body .topbar { gap:10px; }
 body .logo-txt { font-size:15px; }
 body .auth-btns .btn { min-height:36px; padding:5px 8px; }
 body header nav a { width:100%; min-height:44px; padding:10px 12px; font-size:14px; border:0; }
 body header nav a.active { border:0; border-left:2px solid var(--green); background:var(--panel2)!important; }
 body header nav a .nav-icon { width:18px; height:18px; margin-right:4px; }
}
/* One desktop row; only the tab strip can scroll on narrower laptops. */
@media(min-width:801px) {
 body header .wrap { max-width:1600px!important; padding:6px 16px!important; }
 body .topbar { flex-wrap:nowrap; gap:12px; min-height:40px; }
 body .logo-wrap { flex:0 0 auto; gap:12px; flex-wrap:nowrap; }
 body .logo-txt { font-size:15px; white-space:nowrap; }
 body .logo .rad { font-size:21px; }
 body .logo-ip { flex-wrap:nowrap; }
 body .logo-ip code { font-size:10px; white-space:nowrap; }
 body header nav { order:1; flex:1 1 auto; min-width:0; width:auto; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; gap:0; }
 body header nav a { min-height:38px; padding:8px 6px; gap:5px; font-size:11px; white-space:nowrap; }
 body header nav .nav-icon { width:14px; height:14px; }
 body .auth { order:2; flex:0 0 auto; margin:0; flex-wrap:nowrap; }
 body .auth-btns { flex-wrap:nowrap; }
 body .auth-btns .btn { font-size:10px; padding:5px 8px; white-space:nowrap; }
 body .user-chip { width:auto; }
}

/* Readable single-row navigation with distinct, generous hit areas. */
@media(min-width:801px) {
 body header .wrap { max-width:1720px!important; padding:10px 24px!important; }
 body .topbar { min-height:48px; gap:20px; }
 body .logo-wrap { gap:14px; }
 body .logo-txt { font-size:18px; letter-spacing:-.5px; }
 body .logo .rad { font-size:26px; }
 body .logo-ip code { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 body .logo-ip .copybtn { min-height:40px; width:auto; padding:8px; gap:6px; font-size:12px; border:1px solid var(--line); }
 body header nav { gap:4px; }
 body header nav a { min-height:48px; padding:12px 10px; gap:8px; font-size:14px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--green-pale); }
 body header nav .nav-icon { width:18px; height:18px; opacity:1; color:var(--green-dim); }
 body header nav a.active { background:var(--panel2)!important; border-bottom-color:var(--green); }
 body header nav a:hover { background:var(--panel)!important; }
 body header nav a.nav-donate { border-left:0!important; border-right:0!important; color:var(--amber); }
 body .auth { padding-left:16px; border-left:1px solid var(--line2); }
 body .auth-btns { gap:8px; }
 body .auth-btns .btn { min-height:42px; font-size:12px; padding:9px 12px; }
}
/* Two rows: identity/account above, readable navigation below. */
@media(min-width:801px) {
 body header .wrap { max-width:1440px!important; padding:12px 24px 0!important; }
 body .topbar { flex-wrap:wrap; gap:10px 20px; }
 body .logo-wrap { order:0; }
 body .auth { order:1; margin-left:auto; border-left:0; padding-left:0; }
 body header nav { order:2; flex:0 0 100%; width:100%; gap:6px; flex-wrap:wrap; overflow:visible; }
 body header nav a { padding:12px 14px; }
 body .logo-ip code { position:static; width:auto; height:auto; overflow:visible; clip-path:none; font-size:12px; }
}

/* Restore the original donation illustration without covering the payment controls. */
@media(min-width:801px) and (max-width:1150px) {
 body header nav { gap:4px; }
 body header nav a { padding:12px 8px; }
}
body header nav a.nav-donate.active { color:var(--amber)!important; }
body .don-hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr); padding:0; gap:0; align-items:stretch; }
body .don-art { grid-column:1; grid-row:1 / 3; display:flex; align-items:center; background:#090c08; border-right:1px solid var(--line2); overflow:hidden; }
body .don-art .don-hero-img { display:block!important; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; filter:none; }
body .don-hero-content { grid-column:2; padding:28px 28px 12px; }
body .don-hero-title { font-size:34px; }
body .don-hero-slot-panel { grid-column:2; width:100%; max-width:none; padding:12px 28px 28px; margin:0; align-content:start; }
body .don-hero-history { grid-column:1 / -1; width:100%; max-width:none; }
@media(max-width:900px) {
 body .don-hero { display:flex; flex-direction:column; }
 body .don-art { border-right:0; border-bottom:1px solid var(--line2); }
 body .don-hero-content { padding:22px 20px 8px; }
 body .don-hero-slot-panel { padding:12px 20px 24px; }
}

/* Payment terminal sits inside the scene; the artwork remains the full backdrop. */
body .don-hero { position:relative; display:grid; grid-template-columns:1fr; aspect-ratio:16/9; min-height:540px; padding:28px; overflow:hidden; background:#191c12; }
body .don-art { position:absolute; inset:0; grid-column:auto; grid-row:auto; display:block; border:0; }
body .don-art .don-hero-img { width:100%; height:100%; aspect-ratio:auto; object-fit:cover; object-position:center; }
body .don-terminal { position:relative; z-index:2; justify-self:center; align-self:end; transform:translateY(-45px); width:350px; max-width:100%; padding:22px; border:1px solid #7c8253; border-top:3px solid #a9bc70; background:linear-gradient(145deg,rgba(24,31,18,.96),rgba(9,15,10,.94)); box-shadow:0 12px 30px #0007,inset 0 0 0 3px #10170c; }
body .don-hero-content { padding:0; }
body .don-hero-badge { font-size:10px; letter-spacing:1.5px; margin:0 0 12px; color:#b6ba8f; }
body .don-hero-title { font-size:25px; letter-spacing:-.6px; margin:0 0 10px; }
body .don-hero-sub { font-size:13px; line-height:1.6; margin:0; }
body .don-hero-slot-panel { padding:20px 0 0; gap:10px; }
body .don-hero-slot-panel input { min-height:44px; font-size:14px; text-align:left; background:#090e0b; border-color:#556345; }
body .don-hero-slot-panel button { min-height:44px; font-size:13px; }
body .don-hero-history { margin-top:16px; padding:12px; }
@media(max-width:700px) {
 body .don-hero { min-height:620px; aspect-ratio:auto; padding:16px; }
 body .don-art .don-hero-img { object-position:50% center; }
 body .don-terminal { width:100%; padding:18px; }
 body .don-hero-title { font-size:24px; }
}
dialog[data-confirm-action]{color:var(--text,#c5ccb3);background:#11180e;border:1px solid #859c5b;width:min(480px,calc(100% - 32px));padding:24px;box-sizing:border-box}
dialog[data-confirm-action]::backdrop{background:rgba(0,0,0,.68)}
dialog[data-confirm-action] h2{font-size:20px;margin:0 0 16px}
dialog[data-confirm-action] p{white-space:pre-line;line-height:1.6}
.confirm-action-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
.confirm-action-buttons button{min-height:44px;padding:10px 18px;border:1px solid #859c5b;background:#1c2814;color:#c5d699;cursor:pointer}

/* Original project identity and fluid news images. */
body .home-intro .hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,32%); align-items:center; gap:32px; }
body .home-intro .home-brand { display:block; min-height:0; align-self:center; border:1px solid var(--line2); padding:6px; background:var(--panel); box-shadow:0 8px 28px #0004; }
body .home-brand::before,body .home-brand::after { display:none; }
body .home-brand-image { display:block; width:100%; height:auto; filter:saturate(.8); }
body .ncard-img-wrap { height:auto; aspect-ratio:16/7; max-height:380px; overflow:hidden; }
body .ncard-img { display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; }
@media(max-width:600px) {
 body .home-intro .hero-grid { grid-template-columns:1fr; gap:24px; }
 body .home-intro .home-brand { width:min(100%,290px); justify-self:center; box-sizing:border-box; }
 body .ncard-img-wrap { aspect-ratio:16/9; max-height:none; }
}

body .rolebadge.stalker_faction{color:#ff8c00;border:1px solid #80501a;background:#ff8c0014}
body .dot.stalker_faction{background:#ff8c00}

/* Consistent editor controls with touch-sized targets and predictable wrapping. */
body .ed-card .tb {display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px; background:#11180e; border-bottom:1px solid #465735;}
body .ed-card .tb-group {display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; padding:0 10px 0 0; border:0; border-right:1px solid #34402b;}
body .ed-card .tb-group:last-child {border:0; padding:0;}
body .ed-card .tb-btn {display:inline-flex; justify-content:center; align-items:center; gap:7px; min-width:40px; min-height:40px; height:40px; padding:8px 10px; border:1px solid #3c4d2d; border-radius:4px; font-size:13px; line-height:1; white-space:nowrap;}
body .ed-card .tb-btn:hover {background:#26351c; border-color:#a8c76c;}
body .ed-card .tb-btn svg {width:18px; height:18px; margin:0; flex-shrink:0;}
body .ed-card .tb-sel {height:40px; min-height:40px; width:auto; max-width:155px; padding:6px 10px; font-size:13px;}
body .ed-card .tb-color-wrap {width:40px; height:40px; margin:0; flex-shrink:0; border:1px solid #3c4d2d; border-radius:4px; overflow:hidden;}
body .ed-card .tb-right {margin-left:auto;}
@media(max-width:600px){body .ed-card .tb{gap:10px;padding:10px;} body .ed-card .tb-group{border:0;padding:0;gap:6px;} body .ed-card .tb-group:has(.tb-sel){flex-basis:100%;} body .ed-card .tb-sel{max-width:130px;min-width:0;} body .ed-card .tb-right{margin-left:0;} body .ed-card .tb-btn{min-width:40px;}}

body .home-intro .home-brand{border:0;padding:0;background:none;box-shadow:none;overflow:hidden;aspect-ratio:1213/787;}
body .home-brand-image{width:100%;height:100%;object-fit:cover;clip-path:inset(3.2%);transform:scale(1.069);}
.topic-state{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;vertical-align:middle;color:#a9bb8c;margin-right:5px;}
.topic-state svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;}
.topic-state.pinned{color:#d1bd76;background:#cbb15d12;border:1px solid #6b623b;border-radius:4px;}
.header-search{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line2);color:var(--green);font-size:13px;}
.site-search-form{max-width:760px;padding:24px;background:var(--panel);border:1px solid var(--line2);display:grid;gap:12px;}
.search-input-row{display:flex;gap:10px;}.search-input-row input{min-width:0;flex:1;}.site-search-form select{width:min(100%,300px);}
.search-results{display:grid;gap:12px;}.search-result{display:block;padding:22px;border:1px solid var(--line2);background:var(--panel);}.search-result:hover{border-color:var(--green);background:#1b2615;}
.search-result h2{font-size:21px;margin:12px 0;}.search-result p{color:var(--muted);overflow-wrap:anywhere;}.search-open{color:var(--green);font-size:12px;}.search-summary{margin:24px 0;}.search-pager{display:flex;gap:20px;align-items:center;margin:24px 0;}
@media(max-width:600px){.header-search{padding:8px;}.header-search span{display:none;}.site-search-form{padding:14px;}.search-input-row{flex-wrap:wrap;}.search-input-row input{flex-basis:100%;}.search-result{padding:16px;}}

body .hero-text .zone-about{margin:0 0 22px;padding:0;border:0;background:none;font-size:13px;max-width:660px;}
body .hero-text .zone-about summary{display:list-item;color:var(--green-dim);cursor:pointer;text-decoration:underline;text-underline-offset:5px;}
body .hero-text .zone-about p{font-size:14px;line-height:1.8;margin:18px 0;padding-left:16px;border-left:2px solid var(--line2);}
body header .user-chip{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:3px;border:0;padding:5px 12px 5px 5px;background:#a5c86a09;min-height:46px;border-radius:6px;}
.account-avatar{grid-row:1/3;display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:#a8c76c19;border:1px solid #586f3d;border-radius:50%;font-size:17px;color:var(--green);}
.account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;}
body header .user-chip .rolebadge{border:0;padding:0;background:none;font-size:9px;line-height:1.3;letter-spacing:1px;justify-self:start;}
body header .auth-btns{gap:7px;align-items:center;}
body header :is(.account-message,.account-exit){width:42px;height:42px;padding:10px;border:1px solid #34442a;border-radius:6px;color:var(--green-dim);background:transparent;display:inline-flex;align-items:center;justify-content:center;}
body header :is(.account-message,.account-exit):hover{background:#a8c76c15;color:var(--green);border-color:#719146;}
body .stat-line > span > .terminal-icon{width:24px;height:24px;margin-right:12px;padding:4px;box-sizing:content-box;background:#a9c57809;border:1px solid #a9c57825;border-radius:5px;}
@media(max-width:600px){.account-name{max-width:135px;} body header .user-chip{padding-right:7px;} body header .auth-btns{gap:5px;}}
@media(max-width:600px){body header .user-chip{display:flex;width:40px;min-width:40px;min-height:40px;height:40px;padding:3px;gap:0;}body header .user-chip .account-avatar{display:flex!important;width:32px;height:32px;}body header .user-chip .account-name,body header .user-chip .rolebadge{display:none!important;}body header :is(.account-message,.account-exit){width:36px;height:40px;padding:8px;}body header .logo-wrap{gap:8px;}body header .auth-btns{gap:4px;}}body .ed-card select.tb-sel{height:40px!important;min-height:40px!important;max-width:155px!important;}@media(max-width:600px){body .ed-card select#sel-font{width:106px!important;max-width:106px!important;}body .ed-card select#sel-size{width:80px!important;max-width:80px!important;}body .ed-card .tb-group:has(.tb-sel){gap:6px;}body .ed-card .tb-color-wrap{width:34px;}body .ed-card #btn-color-reset{min-width:34px;width:34px;padding:6px;}}
@media(max-width:600px){body .ed-card .tb-group:nth-child(1){order:0;}body .ed-card .tb-group:nth-child(3){order:1;}body .ed-card .tb-group:nth-child(2){order:2;}body .ed-card .tb-group:nth-child(4){order:3;}body .ed-card .tb-group:nth-child(5){order:4;}}

/* Moderation workstation and player dossier. */
body .moderation-overview{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:24px 0 32px;}
.moderation-overview>a,.moderation-overview>div{padding:20px;border:1px solid var(--line2);background:var(--panel);display:flex;flex-direction:column;gap:12px;}
.moderation-overview span{font-size:12px;color:var(--muted);}.moderation-overview strong{font-size:30px;color:var(--green);font-weight:500;}.moderation-overview .overview-role{font-size:18px;}
.report-state-marker{display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;border:1px solid var(--line2);font-size:15px;}
body .empty-reports{padding:30px;border:1px solid var(--line2);background:var(--panel);display:grid;justify-items:center;gap:10px;color:var(--green-dim);}.empty-reports .terminal-icon{width:30px;height:30px;}.empty-reports span{color:var(--muted);font-size:12px;}
body .report-card{border:1px solid var(--line2);border-left:3px solid #819654;border-radius:4px;overflow:hidden;margin-bottom:14px;box-shadow:none;}
body .report-card-head{padding:14px 20px;background:#a9c57808;gap:14px;}.report-id{font-size:14px;}body .report-card-body{padding:20px;}body .report-meta{display:grid;gap:12px;}body .report-meta-item{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px;}.report-meta-val,.report-reason-text{overflow-wrap:anywhere;}body .report-reason-text{font-style:normal;color:var(--text);}body .report-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:18px;}body .report-actions button{min-height:42px;}
body .profile-identity{border:1px solid var(--line2);background:linear-gradient(120deg,#1b2614,#0c130d);}.profile-identity .pda-hazard,body .ap-hazard{display:none;}
body .pda-top{gap:22px;padding:26px;align-items:center;}body .pda-avatar-img,body .pda-avatar-letter{width:88px;height:88px;border-radius:12px;border:1px solid #718c4f;box-shadow:none;}.pda-avatar-letter{background:#a9c5780b;}
body .pda-name{font-size:28px;letter-spacing:0;overflow-wrap:anywhere;}body .pda-stats-col{gap:8px;margin-left:auto;display:grid;grid-template-columns:repeat(4,minmax(70px,1fr));}.pda-stat{padding:12px 8px;background:#a9c57808;border:1px solid #a9c57818;}body .pda-stat-val{font-size:22px;}body .pda-stat-lbl{font-size:10px;}
body .karma-meter{margin:0 26px 24px;padding:16px 18px;background:#0a1109;border:1px solid var(--line2);}body .km-bar-track{height:6px;border:0;background:#28321f;border-radius:0;}body .km-bar-fill{background:#9ebc66;border-radius:0;box-shadow:none;}body .km-bar-glow{display:none;}body .km-title{font-size:11px;}body .km-value{font-size:20px;}
body .admin-panel{border:0;background:none;margin-top:28px;}body .ap-title{padding:0 0 10px;font-size:21px;background:none;border:0;}body .moderation-intro{font-size:13px;color:var(--muted);margin-bottom:18px;}body .ap-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;align-items:start;}
.moderation-tool,.profile-settings{border:1px solid var(--line2);background:var(--panel);min-width:0;}.moderation-tool>summary,.profile-settings>summary{cursor:pointer;padding:18px;display:flex;align-items:center;gap:12px;list-style:none;font-size:14px;}.moderation-tool>summary>span,.profile-settings>summary>span{margin-left:auto;color:var(--green-dim);}.moderation-tool[open]>summary{border-bottom:1px solid var(--line2);background:#a9c5780a;}.moderation-tool[open]>summary>span{transform:rotate(45deg);}
body .moderation-tool .ap-section{padding:18px;margin:0;border:0;}body .moderation-tool .ap-label{display:none;}body .moderation-tool .ap-row{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;}body .moderation-tool .ap-row input:not([type=hidden]):not([type=checkbox]),body .moderation-tool .ap-row select{min-width:0;width:100%;flex-basis:100%;}body .moderation-tool button{min-height:40px;}body .ap-medals-grid{display:grid;grid-template-columns:1fr;gap:8px;max-height:330px;overflow:auto;}.profile-settings{margin:20px 0;}.profile-settings>.pda-card{margin:0!important;border:0;border-top:1px solid var(--line2);background:none;padding:18px!important;}
body .wiki-card-icon .terminal-icon{width:28px;height:28px;}body .wiki-section-icon .terminal-icon{width:24px;height:24px;}body .cat-ico .terminal-icon{width:25px;height:25px;}
@media(max-width:700px){body .moderation-overview{grid-template-columns:1fr 1fr;}.moderation-overview>div{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;}body .ap-body{grid-template-columns:1fr;}body .pda-top{padding:18px;gap:16px;}body .pda-name{font-size:24px;}body .pda-stats-col{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));}.pda-stat{padding:10px 4px;}body .pda-stat-lbl{font-size:9px;}body .karma-meter{margin:0 18px 18px;}body .report-meta-item{grid-template-columns:1fr;gap:4px;}body .report-card-body{padding:16px;}body .report-card-head{padding:12px;flex-wrap:wrap;}}

body .home-brand-image{transform:none;clip-path:none;object-fit:contain;filter:none;mix-blend-mode:lighten;}body .home-intro .home-brand{aspect-ratio:1557/1010;background:var(--bg);}
body .zona-reactions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 0 0;margin-top:18px;border-top:1px solid var(--line);}
body .zona-reactions .p-actions-bar{margin:0 0 0 auto;padding:0;border:0;gap:8px;display:flex;flex-wrap:wrap;align-items:center;}
body .p-actions-bar :is(.btn-quote,.btn-edit,.btn-report,.btn-like){height:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;letter-spacing:0;text-transform:none;padding:8px 12px;border:1px solid var(--line2);border-radius:5px;background:#a9c57806;}
body .p-actions-bar .btn-quote{background:#a9c57817;color:var(--green);border-color:#718650;}
body .rz-bubble{min-height:36px;padding:6px 10px;border-radius:6px;background:#a9c57808;gap:7px;}body .rz-bubble.hidden{display:none;}body .rz-count{font-size:12px;color:var(--ink);}
body .rz-add{height:36px;width:36px;border:1px solid var(--line2);border-radius:6px;background:transparent;}body .rz-add svg circle{stroke-dasharray:none;}
body .rz-karma{border:1px solid var(--line);border-radius:6px;height:36px;background:transparent;padding:0;}body .rz-vote{height:34px;min-width:40px;padding:6px 8px;border-radius:4px;}body .rz-karma-total{padding:0 10px;font-size:13px;border-left:1px solid var(--line);border-right:1px solid var(--line);}
body .rz-picker{border-radius:8px;background:#131a10;padding:10px;gap:5px;max-width:calc(100vw - 64px);flex-wrap:wrap;box-shadow:0 8px 24px #0008;z-index:30;}body .rz-picker.open{display:grid;grid-template-columns:repeat(7,32px);}
body .rz-pick{width:32px;height:34px;border-radius:5px;display:flex;align-items:center;justify-content:center;padding:5px;}body .rz-pick .terminal-icon{width:23px;height:23px;margin:0;}body .rz-pick:hover{transform:none;background:#ffffff0c;}
body [data-reaction] .terminal-icon{color:inherit;}
body [data-reaction=heart]{color:#df8d98;}body [data-reaction=laugh],body [data-reaction=rofl]{color:#e3c674;}body [data-reaction=sad]{color:#8cb5d6;}body [data-reaction=angry]{color:#d98775;}body [data-reaction=fire]{color:#eba065;}body [data-reaction=think]{color:#c8b584;}body [data-reaction=celebrate]{color:#b6a0d0;}body [data-reaction=surprise]{color:#83c5bb;}body [data-reaction=clown]{color:#d399b5;}body [data-reaction=sleep]{color:#8f9ccc;}body [data-reaction=facepalm]{color:#c7a47e;}body [data-reaction=okhand]{color:#accc83;}body [data-reaction=pray]{color:#d6c69b;}
@media(max-width:600px){body .zona-reactions{gap:10px;}body .zona-reactions .p-actions-bar{flex-basis:100%;margin:0;}body .rz-karma{margin-left:auto;}body .p-actions-bar :is(.btn-quote,.btn-edit,.btn-report,.btn-like){min-height:40px;height:40px;padding:8px 10px;}body .rz-picker.open{grid-template-columns:repeat(7,30px);gap:3px;padding:8px;}body .rz-pick{width:30px;}}

body .topic-header{display:block;padding:24px;background:var(--panel);border:1px solid var(--line2);margin-bottom:24px;}body .topic-header h1{font-size:clamp(23px,3vw,32px);margin:0 0 12px;line-height:1.3;overflow-wrap:anywhere;}body .topic-header>div>p{font-size:12px;color:var(--muted);}
.topic-management{margin-top:20px;border-top:1px solid var(--line2);padding-top:14px;}.topic-management>summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px;color:var(--green-dim);list-style:none;}.topic-management>summary>span{margin-left:auto;}
body .admin-topic-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 0 0;margin:0;border:0;}body .admin-topic-bar button{min-height:40px;height:40px;padding:8px 12px;letter-spacing:0;font-size:12px;border-radius:4px;}body .admin-topic-bar .rename-form{width:100%;gap:10px!important;padding-top:12px;border-top:1px solid var(--line);}body .rename-input{min-width:0!important;flex:1!important;width:auto!important;height:42px!important;}
body .p-text blockquote{background:#a9c57808;border-left:3px solid #849d59;padding:16px 18px;margin:16px 0;color:var(--green-pale);}body .p-text blockquote cite{display:block;margin-bottom:10px;font-size:12px;color:var(--muted);font-style:normal;}body .p-text blockquote .vid{max-width:480px;}
main{position:relative;}.pip-interference{position:absolute;inset:0;max-height:80vh;pointer-events:none;z-index:35;background:repeating-linear-gradient(0deg,transparent 0 4px,#b4d57935 4px 5px),linear-gradient(0deg,transparent 42%,#b4d57922 43%,transparent 45%);clip-path:polygon(0 9%,100% 9%,100% 12%,0 12%,0 34%,100% 34%,100% 38%,0 38%,0 65%,100% 65%,100% 67%,0 67%);animation:pip-signal .26s steps(5,end) both;}
@keyframes pip-signal{0%{opacity:0;transform:translate(0,-18px);}18%{opacity:.9;transform:translate(-3px,12px);}43%{opacity:.5;transform:translate(3px,-8px);}70%{opacity:.8;transform:translate(-2px,24px);}100%{opacity:0;transform:translate(0,36px);}}
@media(prefers-reduced-motion:reduce){.pip-interference{display:none;}}
@media(max-width:600px){body .topic-header{padding:18px;}body .admin-topic-bar .rename-form{flex-wrap:wrap;}body .rename-input{flex-basis:100%!important;}}

body [data-reaction] .rz-emoji{color:inherit;}body .rz-bubble .terminal-icon{color:inherit!important;}

main{isolation:isolate;}.pip-interference{z-index:-1;animation:pip-background .28s steps(4,end) both;}@keyframes pip-background{0%{opacity:0;transform:translateY(-10px);}30%{opacity:.22;transform:translateY(4px);}65%{opacity:.12;transform:translateY(12px);}100%{opacity:0;transform:translateY(20px);}}

@media(prefers-reduced-motion:no-preference){.pip-soft-text :is(h1,h2,h3,p,.cat-name,.stat-line>span,.p-text){animation:pip-ink .28s ease-out both;}}@keyframes pip-ink{0%,100%{filter:blur(0);}35%{filter:blur(.28px);}65%{filter:blur(.12px);}}

body header .user-chip,body header .user-chip:hover{background:transparent;}
body header .account-tools{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #46543880;border-radius:8px;background:#a9c57804;}body header .account-tools .btn{width:38px;height:38px;min-height:38px;margin:0;padding:9px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;color:#a8bc84;}body header .account-tools .btn:hover{background:#b4d57914;color:#d1e6ae;}body header .account-tools .logout-form{padding-left:3px;margin-left:2px;border-left:1px solid #46543880;}body header .account-tools .nav-icon,body header .account-tools .terminal-icon{width:19px;height:19px;margin:0;}@media(max-width:600px){body header .account-tools{padding:2px;gap:0;}body header .account-tools .btn{width:29px;height:36px;padding:6px;}body header .account-tools .logout-form{margin-left:0;padding-left:0;}}
body .conversation-page{max-width:1000px;min-height:560px;height:calc(100dvh - 220px);padding:0;background:var(--panel);border:1px solid var(--line2);}
body .conversation-header{padding:18px 22px;gap:20px;margin:0;flex-wrap:wrap;background:#a9c57806;}body .conversation-partner{display:block;min-width:0;}.conversation-eyebrow{font-size:11px;color:var(--muted);letter-spacing:1px;}body .conversation-partner h1{font-size:20px;margin:6px 0 0;line-height:1.4;overflow-wrap:anywhere;}.dialogue-separator{color:var(--green-dim);padding:0 8px;}
.dialogue-sides{display:flex;justify-content:space-between;gap:18px;padding:12px 22px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);}
body .messages-area{padding:20px;gap:14px;min-height:200px;}.message-author>span{font-size:10px;color:var(--muted);}body .message-author{flex-wrap:wrap;gap:6px;margin-bottom:8px;}.message-text{line-height:1.7;white-space:pre-wrap;}body .message-bubble{max-width:80%;padding:14px 18px;border-radius:8px;}body .message-bubble.sent{background:#26341d;border:1px solid #6d8750;align-self:flex-end;}body .message-bubble.received{background:#111a12;border:1px solid #394a30;align-self:flex-start;}body .message-time{font-size:10px;margin-top:10px;}
body .message-form{padding:16px;margin:0;background:#a9c57804;}.conversation-readonly{padding:16px 20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);margin:0;}
body .rz-bubbles{gap:5px;}body .rz-bubble{border-color:#46543880;background:#a9c57809;border-radius:18px;padding:5px 11px;}body .rz-add{border-color:transparent;background:transparent;}body .rz-karma{border:0;background:#a9c57806;border-radius:18px;padding:0 4px;}body .rz-karma-total{border:0;font-size:14px;font-weight:bold;padding:0 8px;}body .rz-vote{color:var(--muted);}
@media(max-width:600px){body .conversation-header{padding:14px;gap:10px;}body .conversation-partner h1{font-size:17px;}.dialogue-sides{padding:10px 14px;font-size:10px;}body .messages-area{padding:12px;}body .message-bubble{max-width:92%;padding:12px;}body .message-form form{flex-wrap:wrap;}body .message-form textarea{min-width:0;flex-basis:100%;}body .message-form button{min-height:40px;}body .conversation-page{height:calc(100dvh - 160px);}}
body{isolation:isolate;}body::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,transparent 0%,transparent 46%,#a6c87308 49%,#a6c8730d 50%,#a6c87308 51%,transparent 54%,transparent 100%);background-size:100% 220%;animation:crt-background-drift 16s linear infinite;}@keyframes crt-background-drift{from{background-position:0 180%;}to{background-position:0 -40%;}}@media(prefers-reduced-motion:reduce){body::after{animation:none;background:none;}}
body header .header-search{border:0;padding:8px 0;background:none;color:var(--green-dim);font-size:12px;gap:7px;}body header .header-search:hover{color:var(--green);}body header .logo-ip{gap:8px;}body header .logo-ip code{color:var(--muted);font-size:11px;letter-spacing:.1px;}body header .copybtn{border:0;background:none;padding:7px;color:var(--green-dim);}body header .copybtn span{display:none;}body header .copybtn:hover{background:#b4d5790a;}body header .logo-wrap{gap:18px;}@media(max-width:600px){body header .logo-wrap{gap:10px;}body header .header-search{width:28px;justify-content:center;}}
body :is(button,.btn,.btn-admin,.btn-edit,.btn-quote,.btn-report,.btn-like,.user-chip,.header-search,.copybtn,.rz-bubble,.rz-karma,.rz-picker,.account-tools,input,select,textarea,summary){border-radius:0!important;}

/* Image viewer stays above the terminal and sizes to both viewport dimensions. */
#zona-img-ov{padding:0;overflow:hidden;background:#070a06f5;touch-action:none;}
#zona-img-ov.open{display:flex;flex-direction:column;}
#zona-img-ov .image-tools{display:flex;justify-content:center;gap:8px;padding:12px;padding-top:max(12px,env(safe-area-inset-top));flex:none;}
#zona-img-ov .image-tools :is(button,a){min-height:44px;min-width:44px;padding:8px 12px;position:static;font-size:13px;}
#zona-img-ov .image-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;touch-action:none;}
#zona-img-ov .image-stage img{display:block!important;flex:none;max-width:none!important;max-height:none!important;height:auto!important;margin:0;object-fit:contain;transform-origin:center;user-select:none;}
body .rz-vn{display:none;}body .rz-karma-total{min-width:35px;text-align:center;}
body [data-reaction][data-selected=true]{background:#b5ce7b22;border-color:#aeca70;box-shadow:inset 0 -2px #aeca70;}
body .reaction-art{width:26px;height:26px;vertical-align:middle;overflow:visible;}
body .rz-pick{height:38px;}body .rz-bubble{min-height:38px;}
#zona-img-ov .image-tools button{background:#10170c;border:1px solid #52633d;color:#c1d697;font-family:inherit;cursor:pointer;}#zona-img-ov .image-tools button:hover{background:#243019;}#zona-img-ov img{border-radius:0;}

body .replybox.ed-form{padding:22px;background:#0d130a;border:1px solid #3c492f;}
body .replybox h4{margin:0 0 18px;font-size:14px;letter-spacing:1.5px;color:#b3cc82;}
body .replybox .ed-card{border:1px solid #35422b;background:#090e07;box-shadow:none;overflow:visible;}
body .replybox .ed-hazard{display:none;}
body .replybox .ed-card .tb{display:grid;grid-template-columns:auto 1fr auto;gap:6px 14px;padding:10px 12px;background:#141c0f;border-bottom:1px solid #35422b;}
body .replybox .ed-card .tb-group{gap:3px;padding:0;border:0;flex-wrap:nowrap;}
body .replybox .ed-card .tb-group:nth-child(4){grid-column:1/3;border-top:1px solid #293521;padding-top:7px;}
body .replybox .ed-card .tb-right{grid-column:3;margin:0;justify-content:flex-end;border-top:1px solid #293521;padding-top:7px;}
body .replybox .ed-card .tb-btn{border:1px solid transparent;background:transparent;color:#b9c5a7;min-width:36px;min-height:36px;height:36px;padding:7px 9px;}
body .replybox .ed-card .tb-btn:hover,body .replybox .ed-card .tb-btn.active{background:#29391d;border-color:#536a3b;color:#d3e6aa;}
body .replybox .ed-card select.tb-sel{height:36px!important;min-height:36px!important;border-color:#36432c;background:#0d1409;}
body .replybox .ed-card .tb-color-wrap{width:32px;height:32px;border:0;box-shadow:none;}
body .replybox .ed-card .tb-color-preview{box-shadow:none;}
body .replybox .ed-editor{min-height:220px;padding:20px;background:#090e07;border:0;box-shadow:none;line-height:1.7;}
body .replybox .ed-editor:focus,body .replybox .ed-editor:focus-visible{outline:none!important;box-shadow:inset 2px 0 #9fb967;}
body .replybox .ed-status{padding:9px 14px;border-top:1px solid #293521;background:transparent;gap:12px;color:#849274;font-size:10px;}
body .replybox .form-row{margin-top:14px;}
body .replybox .form-row .btn{min-height:42px;padding:10px 24px;}
@media(max-width:600px){body .replybox.ed-form{padding:12px;}body .replybox .ed-card .tb{display:flex;gap:6px;padding:8px;}body .replybox .ed-card .tb-group:nth-child(4),body .replybox .ed-card .tb-right{border-top:1px solid #293521;padding-top:6px;}body .replybox .ed-card .tb-right{width:100%;justify-content:flex-end;}body .replybox .ed-card .tb-group:nth-child(4){width:100%;}body .replybox .ed-editor{min-height:200px;padding:14px;}body .replybox .ed-status{flex-wrap:wrap;gap:4px;}body .replybox .ed-status span:last-child{display:none;}}

body .rz-emoji,body .rz-pick{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:25px;line-height:1;filter:none;text-shadow:none;}body .rz-emoji{display:inline-block;}

.forum-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start;}
.forum-categories{min-width:0;}.forum-categories .cat{flex-wrap:wrap;}.forum-categories .cat-main{min-width:0;flex:1;}.forum-categories .cat-last{display:none;}.forum-categories .group-bar:first-child{margin-top:0;}
.forum-recent{border-top:2px solid #a8bf76;background:#11180d;padding:20px;position:sticky;top:20px;}
.recent-heading{display:flex;align-items:center;gap:9px;}.recent-heading h2{font-size:14px;margin:0;letter-spacing:.2px;}.recent-live{width:6px;height:6px;background:#b3cc7c;flex:none;}.recent-caption{font-size:11px;color:#839174;margin:8px 0 18px;}
.recent-post{padding:16px 0;border-top:1px solid #2e3a24;}.recent-post:last-child{padding-bottom:0;}.recent-topic{font-size:13px;line-height:1.5;color:#d0dbbb;display:block;overflow-wrap:anywhere;}.recent-post p{font-size:11px;line-height:1.6;color:#96a586;margin:7px 0 10px;overflow-wrap:anywhere;}.recent-meta{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:10px;}.recent-meta time{color:#79886b;}.recent-meta a{color:#aec483;}
.forum-feedback{display:flex;align-items:center;gap:14px;padding:14px 0 0;margin-top:15px;border-top:1px solid #303b25;position:relative;flex-wrap:wrap;}
.feedback-picker{position:relative;flex:none;}.feedback-picker>summary{list-style:none;cursor:pointer;color:#b7c89a;font-size:12px;padding:8px 10px;border:1px solid #425333;display:flex;align-items:center;gap:7px;}.feedback-picker>summary::-webkit-details-marker{display:none;}.feedback-picker>summary>span{font-size:22px;line-height:1;}
.feedback-options{position:absolute;bottom:calc(100% + 9px);left:0;z-index:80;display:grid;grid-template-columns:repeat(9,38px);gap:2px;padding:10px;background:#1c2417;border:1px solid #56673f;box-shadow:0 8px 30px #0009;}
.forum-feedback button{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;border:1px solid transparent;color:#bfccaa;cursor:pointer;min-height:38px;padding:3px;font:inherit;font-size:11px;}
.forum-feedback button:hover{background:#bdcf8120;}.forum-feedback button[aria-pressed=true]{border-color:#8da859;background:#b8ce7b13;}
.reaction-sprite{width:30px;height:30px;display:inline-block;flex:none;background-image:url('/static/forum-emoji.png?v=1');background-size:300% 300%;background-repeat:no-repeat;}
.sprite-0{background-position:0 0;}.sprite-1{background-position:50% 0;}.sprite-2{background-position:100% 0;}.sprite-3{background-position:0 50%;}.sprite-4{background-position:50% 50%;}.sprite-5{background-position:100% 50%;}.sprite-6{background-position:0 100%;}.sprite-7{background-position:50% 100%;}.sprite-8{background-position:100% 100%;}
.feedback-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;flex:1;}.feedback-icons{display:flex;gap:3px;flex-wrap:wrap;}.feedback-emoji{font-size:24px;}.feedback-people{font-size:11px;min-width:0;color:#a5bc83;}.feedback-people summary{cursor:pointer;overflow-wrap:anywhere;}.feedback-people>div{display:flex;gap:6px 12px;flex-wrap:wrap;padding:10px 0;}.feedback-people[hidden]{display:none;}.feedback-error{font-size:12px;color:#e4a190;flex-basis:100%;}.feedback-error:empty{display:none;}
.reply-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;}.reply-eyebrow{font-size:9px;letter-spacing:2px;color:#7f916d;display:block;margin-bottom:7px;}.reply-identity{font-size:11px;color:#8b9e76;}.reply-heading h4{margin:0!important;font-size:20px!important;letter-spacing:0!important;font-weight:500;}
body .replybox.ed-form{padding:26px;background:#10160d;border-color:#35422b;}body .replybox .ed-card{border:1px solid #3c4a30;}body .replybox .ed-card .tb{background:#182011;padding:10px 14px;}body .replybox .ed-editor{min-height:240px;background:#0a1008;padding:22px;font-size:15px;}body .replybox .ed-status{border-top:1px solid #273420;padding:10px 14px;}body .replybox .form-row .btn{padding:12px 28px;}
@media(max-width:1000px){.forum-layout{grid-template-columns:minmax(0,1fr) 255px;gap:18px;}.forum-recent{padding:16px;}}
@media(max-width:760px){.forum-layout{display:flex;flex-direction:column;}.forum-categories,.forum-recent{width:100%;}.forum-recent{position:static;box-sizing:border-box;}.feedback-options{grid-template-columns:repeat(5,38px);}.forum-feedback{gap:10px;}.feedback-summary{flex-basis:100%;}.reply-identity{display:none;}body .replybox.ed-form{padding:14px;}body .replybox .ed-editor{padding:16px;min-height:210px;}}

/* Align the activity feed with the forum section rhythm. */
.forum-layout{grid-template-columns:minmax(0,1fr) 320px;gap:24px;}
.forum-categories .cat{grid-template-columns:32px minmax(0,1fr) 88px;}
.forum-recent{padding:0;background:transparent;border:0;position:static;}
body .forum-recent .recent-heading{margin:0;font-size:12px;letter-spacing:1px;min-height:49px;box-sizing:border-box;}
.recent-list{border-left:1px solid var(--line);padding-left:16px;margin-top:4px;}
.recent-post{display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px;padding:17px 8px 17px 0;border-top:0;border-bottom:1px solid var(--line);}
.recent-post:last-child{padding-bottom:17px;}
.recent-avatar{display:grid;place-items:center;width:30px;height:30px;background:var(--panel2);border:1px solid var(--line2);color:var(--green);font-size:15px;overflow:hidden;}
.recent-avatar img{width:100%;height:100%;object-fit:cover;}
.recent-content{min-width:0;}.recent-topic{font-size:13px;line-height:1.4;font-weight:500;color:var(--ink);}
.recent-meta{margin-top:4px;font-size:11px;}.recent-meta a{color:var(--green-dim);}
.recent-post p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.5;margin:6px 0;color:var(--muted);}
.recent-post time{font-size:10px;color:var(--faint);}
@media(max-width:1100px){.forum-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px;}}
@media(max-width:760px){.forum-layout{display:flex;}.recent-list{border-left:0;padding-left:0;}.forum-categories .cat{grid-template-columns:28px minmax(0,1fr) 70px;gap:8px;}.forum-categories .cat-counts{width:70px;}.forum-recent{padding:0;}}

/* Keep each category's latest reply alongside the global activity feed. */
.forum-categories .cat{grid-template-columns:32px minmax(0,1fr) 70px minmax(145px,190px);gap:10px;}
.forum-categories .cat-last{display:grid;min-width:0;}
.forum-categories .cat-counts{width:70px;}
@media(min-width:761px) and (max-width:900px){
.forum-categories .cat{grid-template-columns:28px minmax(0,1fr) 70px;}
.forum-categories .cat-last{grid-column:2 / -1;width:100%;padding-top:4px;}
}
@media(max-width:760px){
.forum-categories .cat{grid-template-columns:28px minmax(0,1fr) 70px;}
.forum-categories .cat-last{grid-column:2 / -1;width:100%;padding-top:4px;}
}

/* A closed activity panel, aligned with its heading on every viewport. */
.forum-recent .recent-list{border:1px solid var(--line2);border-top:0;margin-top:0;padding:0 14px;}
.forum-recent .recent-post{padding-right:0;}
.forum-recent .recent-post:last-child{border-bottom:0;}

body .forum-categories .cat-last-preview{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.4;}
body .forum-categories .cat-last-meta{flex-wrap:wrap;gap:3px 8px;}
body .forum-categories :is(.cat-nick,.cat-last-date){white-space:normal;overflow-wrap:anywhere;max-width:100%;}

body header .user-chip{grid-template-columns:34px minmax(0,1fr);}
body header .user-chip .account-avatar{border-radius:0!important;}

body :is(.pda-avatar-img,.pda-avatar-letter,.pda-avatar-edit){border-radius:0!important;}

/* Keep breathing room below navigation after removing the status strip. */
body main.wrap{padding-top:36px;}
body main.wrap>.crumbs{margin-bottom:26px;}
@media(max-width:600px){body main.wrap{padding-top:24px;}body main.wrap>.crumbs{margin-bottom:22px;}}

/* Compact recent activity without truncating author names. */
.forum-recent .recent-list{padding:0 11px;}
.forum-recent .recent-post,.forum-recent .recent-post:last-child{grid-template-columns:26px minmax(0,1fr);gap:8px;padding:10px 0;}
.forum-recent .recent-avatar{width:26px;height:26px;font-size:13px;}
.forum-recent .recent-topic{font-size:12px;line-height:1.35;}
.forum-recent .recent-meta{margin-top:3px;font-size:10px;}
.forum-recent .recent-post p{-webkit-line-clamp:1;margin:4px 0;line-height:1.35;}
.forum-recent .recent-post time{font-size:10px;}

/* Reaction mockup: graphite rail, square lime controls, separate people line. */
body .post .forum-feedback{display:block;width:100%;padding:0;margin-top:16px;border:0;background:transparent;border-radius:0;container-type:inline-size;}
.forum-feedback .feedback-rail{display:flex;align-items:flex-start;gap:10px;padding:0;border:0;background:transparent;}
.forum-feedback .feedback-picker{flex:0 0 auto;}
.forum-feedback .feedback-picker>summary{height:50px;padding:0 15px;gap:10px;border:1px solid #a1b95c;border-radius:0;background:transparent;color:#c0d685;font:16px/1.2 Arial,sans-serif!important;box-shadow:none;}
.feedback-add-icon{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;}
.forum-feedback .feedback-picker>summary:hover,.forum-feedback .feedback-picker[open]>summary{background:#b9ce6c12;border-color:#c3db7d;}
.forum-feedback .feedback-summary{display:block;flex:1;min-width:0;min-height:50px;}
.forum-feedback .feedback-icons{display:flex;gap:10px;flex-wrap:wrap;}
.forum-feedback .feedback-icons button{flex:0 0 auto;min-width:66px;height:50px;min-height:50px;padding:7px 10px;gap:9px;border:1px solid #30362f;border-radius:0;background:var(--panel,#10160e);color:#a7ada1;font:18px/1 Arial,sans-serif!important;font-variant-numeric:tabular-nums;box-shadow:none;}
.forum-feedback .feedback-icons button[aria-pressed=true]{border:1px solid #a9be60;background:#30391c;color:#d7e5b4;}
.forum-feedback .feedback-icons button:hover{border-color:#82954d;background:#252b1e;color:#dce8bd;}
.forum-feedback .feedback-emoji{display:inline-flex;align-items:center;justify-content:center;width:30px;height:32px;font:28px/1 'Segoe UI Emoji','Apple Color Emoji',sans-serif!important;flex:none;}
.forum-feedback .feedback-options{border-radius:0;background:#191d17;border-color:#596444;grid-template-columns:repeat(5,44px);gap:4px;}
.forum-feedback .feedback-options button{border-radius:0;min-height:44px;}
.forum-feedback .feedback-people[hidden]{display:none;}
.forum-feedback .feedback-people>summary{list-style:none;overflow-wrap:anywhere;cursor:pointer;}
.forum-feedback .feedback-people>summary::-webkit-details-marker{display:none;}
.forum-feedback .feedback-people>summary:hover{color:#c2d596;}
.forum-feedback .feedback-people>div a{overflow-wrap:anywhere;}
.forum-feedback[aria-busy=true] .feedback-icons{opacity:.6;}
@container(max-width:650px){
 .forum-feedback .feedback-rail{flex-wrap:wrap;padding:0;}
 .forum-feedback .feedback-summary{flex:1 0 100%;}
 .forum-feedback .feedback-icons{gap:8px;}
 .forum-feedback .feedback-icons button{flex:0 0 auto;min-width:64px;}
 .forum-feedback .feedback-people{font-size:14px;}
}

/* High resolution artwork uses the same sprite classes in HTML and live updates. */
.forum-feedback .reaction-sprite[class*="sprite-"]{width:40px;height:40px;background-image:url('/static/reaction-art-hq.png?v=1');background-size:300% 300%;background-repeat:no-repeat;}
.forum-feedback .reaction-sprite.sprite-2{background-position:0% 0%;}
.forum-feedback .reaction-sprite.sprite-1{background-position:50% 0%;}
.forum-feedback .reaction-sprite.sprite-3{background-position:100% 0%;}
.forum-feedback .reaction-sprite.sprite-4{background-position:0% 50%;}
.forum-feedback .reaction-sprite.sprite-5{background-position:50% 50%;}
.forum-feedback .reaction-sprite.sprite-6{background-position:100% 50%;}
.forum-feedback .reaction-sprite.sprite-7{background-position:0% 100%;}
.forum-feedback .reaction-sprite.sprite-8{background-position:50% 100%;}
.forum-feedback .reaction-sprite.sprite-0{background-position:100% 100%;}
.forum-feedback .feedback-icons button{gap:5px;padding:4px 8px;flex:0 0 auto;min-width:76px;}
@container(max-width:650px){.forum-feedback .feedback-icons button{min-width:72px;}}

/* Activity entries: title first, one quiet metadata line. */
.forum-recent .recent-list{padding:0 13px;}
.forum-recent .recent-post,.forum-recent .recent-post:last-child{padding:13px 0;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;}
.forum-recent .recent-avatar{width:28px;height:28px;box-sizing:border-box;margin-top:1px;}
.forum-recent .recent-topic{font-size:13px;line-height:1.45;font-weight:400;color:#c7d1b8;text-wrap:pretty;}
.forum-recent .recent-meta{display:flex;flex-wrap:wrap;gap:3px 9px;margin-top:6px;align-items:baseline;font-size:10px;line-height:1.5;}
.forum-recent .recent-meta a{color:#93a775;overflow-wrap:anywhere;}
.forum-recent .recent-meta time{font-size:10px;color:#77846b;}

.forum-recent .recent-post p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:#9ba88e;margin:6px 0;}

/* Category activity: compact counters and a readable latest reply. */
body .forum-categories .cat-counts{font-size:10px;column-gap:5px;row-gap:4px;line-height:1.25;}
body .forum-categories .cat-num{font-size:14px;}
body .forum-categories .cat-num-sm{font-size:12px;}
body .forum-categories .cat-last{align-items:start;gap:9px;padding:8px 0 8px 12px;border-left:1px solid var(--line2);box-sizing:border-box;}
body .forum-categories .cat-last .row-avatar-box{margin-top:2px;}
body .forum-categories .cat-last-txt{gap:5px;}
body .forum-categories .cat-last-preview{font-size:12px;line-height:1.45;font-weight:400;color:#b8c4a7;text-shadow:none;}
body .forum-categories .cat-last-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;font-size:10px;line-height:1.4;}
body .forum-categories .cat-nick{color:#a9bd83;font-weight:500;}
body .forum-categories .cat-last-date{color:#7f8e6e;font-size:10px;}
body .forum-categories .cat-last:hover .cat-last-preview{color:#d2e3b5;}
@media(max-width:900px){body .forum-categories .cat-last{padding-left:0;border-left:0;}}

/* Unified account toolbar. */
body header .account-tools{display:flex;align-items:center;gap:0;padding:0;border:1px solid #354329;background:transparent;border-radius:0;}
body header .account-tools>a,body header .account-tools .logout-form>button{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:36px;min-width:38px;min-height:36px;padding:9px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#9bb570;box-sizing:border-box;}
body header .account-tools>a+a,body header .account-tools .logout-form{border-left:1px solid #293520;}
body header .account-tools .logout-form{margin:0;padding:0;}
body header .account-tools>a:hover,body header .account-tools .logout-form>button:hover{background:#a8c67615;color:#c2dc95;}
body header .account-tools svg{width:17px;height:17px;}
#forum-notice-count:not(:empty){position:absolute;top:0;right:1px;font-size:8px;line-height:11px;background:#17200e;color:#d5e6b4;padding:0 2px;}

/* Give the forum and category activity more horizontal room. */
body main.wrap:has(.forum-layout){max-width:1540px;}
@media(min-width:1101px){.forum-layout{grid-template-columns:minmax(0,1fr) 290px;gap:24px;}body .forum-categories .cat{grid-template-columns:32px minmax(0,1fr) 70px minmax(210px,260px);}}

/* Balanced forum proportions. */
body main.wrap:has(.forum-layout){max-width:1440px;}
body main.wrap:has(.forum-layout)>.page-title{font-size:clamp(27px,2.5vw,36px);margin-bottom:25px;letter-spacing:-1px;}
body .forum-categories .group-bar{padding:11px 15px;font-size:12px;letter-spacing:.8px;}
body .forum-categories .cat{padding-top:15px;padding-bottom:15px;min-height:82px;box-sizing:border-box;}
body .forum-categories .cat-meta h3{font-size:15px;line-height:1.4;}
body .forum-categories .cat-meta p{font-size:12px;line-height:1.5;margin-top:4px;}
@media(min-width:1101px){.forum-layout{grid-template-columns:minmax(0,1fr) 280px;gap:22px;}body .forum-categories .cat{grid-template-columns:30px minmax(0,1fr) 64px minmax(200px,240px);}}
@media(max-width:600px){body .forum-categories .cat{padding-top:13px;padding-bottom:13px;}body main.wrap:has(.forum-layout)>.page-title{font-size:27px;}}

/* Header: aligned utility row and understated terminal navigation. */
body header{background:#0d130b;border-bottom:1px solid #3b492d;}
body header .wrap{max-width:1440px;padding:16px 32px 0!important;}
body header .topbar{gap:14px 24px;}
body header .logo-wrap{gap:20px;}
body header .logo-txt{font-size:16px;letter-spacing:.4px;}
body header .header-search{height:34px;padding:0 11px;border-left:1px solid #303d26;box-sizing:border-box;}
body header .logo-ip{gap:4px;}
body header .logo-ip code{font-size:11px;color:#899976;}
body header .copybtn{height:30px;min-height:30px;border:0!important;background:transparent!important;}
body header .auth-btns{align-items:center;gap:14px;}
body header .user-chip{padding:0 4px;}
@media(min-width:901px){
body header nav{border-top:1px solid #26321f;padding-top:7px;gap:3px;}
body header nav a{flex:0 1 auto;padding:12px 15px;min-height:44px;border:0;border-bottom:2px solid transparent;background:transparent;font-size:13px;color:#a5b68b;transition:background .15s,color .15s;}
body header nav a:hover{background:#b0c77d0b;color:#d2e4ad;}
body header nav a.active,body header nav a[aria-current=page]{background:#a9c6740d;border-bottom-color:#abc975;color:#d1e5a5;}
body header nav a.nav-donate{margin-left:auto;}
}
@media(max-width:600px){body header .wrap{padding:12px 16px 0!important;}body header .topbar{gap:10px;}body header .logo-wrap{gap:8px;}body header .auth-btns{gap:6px;}body header .header-search{padding:0 5px;border:0;}}

/* Clear hierarchy for the brand and server tools. */
body header .logo-wrap{gap:14px;}
body header .logo-txt{font-size:16px;letter-spacing:.15px;white-space:nowrap;}
body header .header-search{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:32px;padding:0 10px;border:1px solid #303e26;background:#a6c47706;color:#a4ba83;font-size:12px;}
body header .header-search:hover{border-color:#6f884c;background:#a6c47710;}
body header .logo-ip{display:flex;align-items:center;gap:0;border:1px solid #303e26;background:#080e07;min-height:32px;box-sizing:border-box;}
body header .logo-ip code{padding:0 10px;font-size:12px;color:#a4b691;letter-spacing:0;}
body header .logo-ip .copybtn{width:30px;height:30px;padding:6px;border-left:1px solid #303e26!important;color:#9dbd70;}
@media(max-width:600px){body header .logo-wrap{gap:8px;}body header .header-search{width:30px;padding:0;}body header .logo-ip code{font-size:10px;padding-inline:6px;}}

body header .logo-ip{border:0;border-left:1px solid #35432a;background:transparent;padding-left:15px;display:grid!important;grid-template-columns:auto 30px;column-gap:10px;row-gap:3px;}
body header .logo-ip .server-caption{grid-column:1;font-size:8px;letter-spacing:1.7px;color:#778966;line-height:1;}
body header .logo-ip code{grid-column:1;padding:0;font-size:12px;color:#b4c89a;line-height:1.3;}
body header .logo-ip .copybtn{grid-column:2;grid-row:1/3;align-self:center;border:0!important;width:30px;height:30px;padding:7px;color:#93ab73;}
body header .logo-ip .copybtn:hover{color:#d2e5ae;background:#abc87912!important;}
@media(max-width:600px){body header .logo-ip{padding-left:8px;column-gap:5px;}body header .logo-ip code{font-size:10px;}}

/* Light terminal utility rail. */
body header .account-tools{border:0;background:transparent;gap:4px;padding:0;}
body header .account-tools>a,body header .account-tools .logout-form>button{width:36px;min-width:36px;height:36px;min-height:36px;border:1px solid transparent;background:transparent;color:#8ea86b;padding:9px;}
body header .account-tools>a+a{border-left:1px solid transparent;}
body header .account-tools>a:hover,body header .account-tools .logout-form>button:hover{border-color:#52683a;background:#a8c6760e;color:#c4de9d;}
body header .account-tools .logout-form{border-left:1px solid #354329;margin-left:5px;padding-left:8px;}
body header .account-tools svg{width:18px;height:18px;}
body header .account-tools>a:focus-visible,body header .account-tools button:focus-visible{outline:1px solid #b2cf80;outline-offset:2px;}
@media(max-width:600px){body header .account-tools{gap:1px;}body header .account-tools>a,body header .account-tools .logout-form>button{width:32px;min-width:32px;padding:7px;}body header .account-tools .logout-form{margin-left:2px;padding-left:4px;}}

/* Align profile identity with the quiet utility rail. */
body header .auth-btns{gap:10px;align-items:center;}
body header .user-chip{min-height:36px;column-gap:9px;row-gap:3px;padding:0 6px 0 0;align-content:center;grid-template-columns:30px minmax(0,1fr);}
body header .account-avatar{width:30px;height:30px;box-sizing:border-box;font-size:15px;background:#a8c76c09;border-color:#485e32;align-self:center;}
body header .account-name{font-size:12px;line-height:1.25;}
body header .user-chip .rolebadge{font-size:8px;line-height:1.2;letter-spacing:.65px;}
body header .account-tools{gap:2px;align-items:center;}
body header .account-tools>a,body header .account-tools .logout-form>button{color:#94ac73;}
body header .account-tools .logout-form{border-left-color:#2c3923;margin-left:4px;padding-left:6px;}
body header .account-tools svg{width:17px;height:17px;}
@media(max-width:600px){body header .auth-btns{gap:5px;}body header .user-chip{padding:0;}}

/* Equal optical size for header action icons. */
body header .account-tools svg{display:block;flex:none;width:20px!important;height:20px!important;margin:0;stroke-width:1.5;}
body header .account-tools #forum-notice-link svg{width:22px!important;height:22px!important;}
body header .account-tools a[href="/admin/reports"] svg{width:19px!important;height:19px!important;}
body header .account-tools a[href="/admin/logs"] svg{width:21px!important;height:21px!important;}

/* Forum post: clear author column and a quiet reading surface. */
body .post{border-color:#35432b!important;border-radius:0!important;background:#0e150b!important;margin-bottom:22px!important;}
body .post.op{box-shadow:none!important;}
body .post:hover{border-color:#4d6139!important;}
body .post .post-side{width:166px!important;min-width:166px!important;max-width:166px!important;padding:24px 15px!important;background:#0b1108!important;border-right-color:#2d3a24!important;}
body .post :is(.avatar,.avatar-img){width:64px!important;height:64px!important;border-radius:0!important;border:1px solid #617b43!important;box-shadow:none!important;margin-bottom:13px!important;}
body .post .p-name{font-size:12px;line-height:1.5;overflow-wrap:anywhere;}
body .post .post-body{padding:22px 26px!important;}
body .post .p-date{font-size:10px;letter-spacing:.25px;color:#80916d;border-bottom-color:#293620;padding-bottom:13px;margin-bottom:19px;}
body .post .p-text{line-height:1.8;}
body .post .p-meta{border-top-color:#293620;margin-top:16px;padding-top:12px;}
body .post .pm-row{padding:3px 0;}
body .post .p-actions-bar{gap:8px;padding-top:18px;margin-top:12px;}
body .post .p-actions-bar :is(.btn-edit,.btn-quote,.btn-report,.btn-like){padding:8px 12px;background:#1a2216;border-color:#3d4f30;color:#a9bc90;box-shadow:none;}
body .post .p-actions-bar :is(.btn-edit,.btn-quote,.btn-report,.btn-like):hover{background:#222c1c;border-color:#5b7344;}
body .post .p-actions-bar .btn-like{color:var(--green,#b4d579);}
body .post .p-actions-bar .feedback-like.is-mine .btn-like{background:#2a3720;border-color:#a9be60;color:#d3e2ae;}
body .post .p-actions-bar :is(.btn-edit,.btn-quote,.btn-report):hover{border-color:#718f4e;background:#accb7610;color:#d0e2b1;}
body .post .forum-feedback{border-top-color:#293620;}
@media(max-width:600px){body .post .post-side{width:100%!important;min-width:0!important;max-width:100%!important;padding:14px!important;}body .post .post-body{padding:16px!important;}body .post :is(.avatar,.avatar-img){width:44px!important;height:44px!important;margin-bottom:0!important;}body .post .p-text{line-height:1.65;}}

.reaction-sprite.sprite-5{background-image:url('/static/reaction-skeptical.png?v=1');background-size:100% 100%;background-position:center;}

.notice-page{max-width:980px;margin:auto;}.notice-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;}.notice-header .page-title{margin:0;font-size:30px;}.notice-header button{font-size:11px;padding:10px 13px;}.notice-list{border:1px solid #35432a;}.notice-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:14px;align-items:center;padding:17px 20px;border-bottom:1px solid #28351f;color:#b4c1a2;}.notice-row:last-child{border-bottom:0;}.notice-new{background:#a5c57208;border-left:2px solid #829e56;padding-left:18px;}.notice-row:hover{background:#a5c57212;}.notice-symbol{font-size:24px;color:#98b471;text-align:center;}.notice-content{display:grid;gap:5px;}.notice-kind{font-size:9px;letter-spacing:1px;color:#82986b;}.notice-text{font-size:13px;line-height:1.5;overflow-wrap:anywhere;}.notice-row time{font-size:10px;color:#7c8d6c;}.notice-empty{padding:28px;color:#b3c499;}.notice-empty p{font-size:12px;color:#809270;}@media(max-width:600px){.notice-header{gap:10px;}.notice-header .page-title{font-size:24px;}.notice-row{grid-template-columns:24px minmax(0,1fr);padding:14px;gap:8px 12px;}.notice-row time{grid-column:2;}.notice-new{padding-left:12px;}}

/* Guests can read reaction totals; adding still requires signing in. */
.forum-feedback .feedback-login{display:inline-flex;align-items:center;gap:8px;height:50px;padding:0 15px;border:1px solid #82984f;color:#bfd18e;text-decoration:none;font:16px/1.2 Arial,sans-serif!important;}
.forum-feedback .feedback-icons button:disabled{opacity:1;cursor:default;}
.forum-feedback .feedback-icons button:disabled:hover{background:var(--panel,#10160e);border-color:#30362f;color:#a7ada1;}


/* ── Donation bonus: live readout inside the terminal + tier ladder ── */
body .don-bonus-live { grid-column:1 / -1; padding:12px 13px 13px; background:#090e0b; border:1px solid #556345; border-left:3px solid #a9bc70; box-shadow:none; border-radius:0; text-align:left; animation:none; }
body .don-bonus-live-row { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
body .dbl-label { font-size:10px; letter-spacing:1.8px; color:#b6ba8f; opacity:1; }
body .dbl-pct { font-size:19px; line-height:1; font-weight:700; color:#cfe08a; text-shadow:none; }
body .don-bonus-gift { margin-top:9px; font-size:20px; font-weight:700; letter-spacing:.5px; line-height:1.15; color:#cfe08a; }
body .don-bonus-sub { margin-top:3px; font-size:12px; line-height:1.45; color:var(--muted); }
body .don-bonus-bar { display:flex; gap:2px; margin-top:11px; }
body .don-bonus-bar i { flex:1 1 0; height:5px; background:#243019; }
body .don-bonus-bar i.on { background:#a9bc70; }
body .don-bonus-live-next { margin-top:6px; font-size:10px; letter-spacing:.5px; color:var(--faint); }

body .don-bonus { margin:0 0 28px; }
body .don-bonus-head { gap:10px; margin-bottom:12px; }
body .don-bonus-ico { filter:none; font-size:14px; }
body .don-bonus-title { font-size:15px; letter-spacing:1.5px; color:var(--green); }
body .don-bonus-hint { font-size:12px; color:var(--muted); }
body .don-bonus-grid { gap:1px; background:var(--line2); border:1px solid var(--line2); }
body .don-bonus-grid.single { grid-template-columns:minmax(0,340px); justify-content:center; }
body .bonus-card { appearance:none; -webkit-appearance:none; display:block; width:100%; font:inherit; color:inherit; text-align:center; cursor:pointer; background:var(--panel); border:0; border-radius:0; padding:16px 10px 14px; box-shadow:none; transition:background .15s,color .15s; }
body .bonus-card:focus-visible { outline:2px solid #a9bc70; outline-offset:-2px; }
body .bonus-card:active { background:#1f2a18; }
body .bonus-card:hover { background:var(--panel2); transform:none; }
body .bonus-pct { font-size:24px; color:var(--green); text-shadow:none; }
body .bonus-pct span { font-size:13px; opacity:.6; }
body .bonus-from { font-size:13px; letter-spacing:.5px; color:var(--ink); margin-top:6px; }
body .bonus-example { font-size:11px; color:var(--faint); margin-top:4px; }
body .bonus-example b { color:var(--muted); }
body .bonus-card.reached { background:var(--panel2); }
body .bonus-card.active { background:#141c10; box-shadow:inset 0 0 0 1px #a9bc70; }
body .bonus-card.active .bonus-pct,body .bonus-card.active .bonus-from { color:#cfe08a; }
body .bonus-card.active::after { top:6px; left:auto; right:6px; transform:none; background:#a9bc70; color:#0b1108; border-radius:0; font-size:9px; letter-spacing:1px; padding:2px 6px; }
body .don-bonus-note { font-size:12px; color:var(--muted); text-align:left; margin-top:10px; }
body .don-bonus-note b { color:var(--green); letter-spacing:.5px; }
@media(max-width:700px) {
 body .don-bonus-grid { grid-template-columns:repeat(2,1fr); }
 body .don-bonus-grid .bonus-card:last-child:nth-child(odd) { grid-column:1 / -1; }
 body .don-bonus-head { flex-direction:column; align-items:flex-start; gap:4px; }
}

/* Guests can read reaction totals; adding still requires signing in. */
.forum-feedback .feedback-login{display:inline-flex;align-items:center;gap:8px;height:50px;padding:0 15px;border:1px solid #82984f;color:#bfd18e;text-decoration:none;font:16px/1.2 Arial,sans-serif!important;}
.forum-feedback .feedback-icons button:disabled{opacity:1;cursor:default;}
.forum-feedback .feedback-icons button:disabled:hover{background:var(--panel,#10160e);border-color:#30362f;color:#a7ada1;}

/* Compact, stable reaction row; participant links are always visible. */
body .post .forum-feedback{display:flex;align-items:center;gap:8px 12px;margin-top:12px;}
.forum-feedback .feedback-rail{flex:0 1 auto;max-width:100%;gap:6px;align-items:center;}
.forum-feedback .feedback-summary{flex:0 1 auto;min-height:32px;}
.forum-feedback .feedback-icons{gap:5px;}
.forum-feedback .feedback-picker>summary,.forum-feedback .feedback-login{height:32px;padding:0 8px;gap:6px;font:12px/1 Arial,sans-serif!important;}
.forum-feedback .feedback-add-icon{width:19px;height:19px;}
.forum-feedback .feedback-icons button{flex:0 0 auto;min-width:44px;height:32px;min-height:32px;padding:1px 5px;gap:3px;font:12px/1 Arial,sans-serif!important;}
.forum-feedback .feedback-icons .reaction-sprite[class*="sprite-"]{width:28px;height:28px;}
.forum-feedback .feedback-icons .feedback-emoji{width:24px;height:24px;font-size:20px!important;}
.forum-feedback .feedback-people{display:flex;align-items:center;flex:0 1 auto;flex-wrap:wrap;gap:3px 7px;width:auto;min-width:0;max-width:100%;margin:0;background:transparent;border:0;padding:0;font:11px/1.5 Arial,sans-serif;color:#8f9d7d;}
.forum-feedback .feedback-people a{color:inherit;text-decoration:none;overflow-wrap:anywhere;}
.forum-feedback .feedback-people a:hover{color:#bfd18e;text-decoration:underline;}
.forum-feedback .feedback-people[hidden]{display:none;}
@container(max-width:650px){.forum-feedback .feedback-rail{flex-wrap:wrap;}.forum-feedback .feedback-summary{flex:0 1 auto;}.forum-feedback .feedback-icons button{min-width:44px;}}

/* ── Тело сообщений и статей ──
   Терминальный моноширинный шрифт остаётся в интерфейсе, никах, цитатах и коде,
   но в абзацах он тормозит чтение: у слов нет силуэта. Здесь — пропорциональный
   шрифт и воздух между абзацами.

   Ширину не режем. Колонка в 68ch читалась приятнее, но рамка статьи и блок
   сообщения шире неё вдвое, и справа зияла пустая половина — на широком мониторе
   это выглядит поломкой. Длинную строку компенсируем межстрочным интервалом. */
body :is(.p-text, .art-body) {
  font-family: "Segoe UI", system-ui, "PT Sans", "Noto Sans", sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0;
  color: #b9c4a6;
  max-width: 100%;
}
body :is(.p-text, .art-body) p { margin: 0 0 .9em; }
body :is(.p-text, .art-body) p:last-child { margin-bottom: 0; }
body :is(.p-text, .art-body) :is(pre, code, kbd, blockquote) { font-family: var(--terminal-font); }
/* На телефоне страничные правила сбивают размер до 14px — для пропорционального
   шрифта это мелко, возвращаем 16px. */
@media(max-width:768px) {
  body .post .p-text, body .art-body { font-size: 16px; line-height: 1.6; }
}

/* Заголовки и списки внутри текста: заголовок принадлежит тому, что под ним,
   поэтому сверху воздуха больше, чем снизу. Шрифт остаётся терминальным —
   так виден стык «интерфейс / проза». */
body :is(.p-text, .art-body) :is(h1, h2, h3, h4) {
  font-family: var(--terminal-font);
  color: var(--green);
  letter-spacing: .5px;
  margin: 1.6em 0 .5em;
}
body :is(.p-text, .art-body) :is(h1, h2, h3, h4):first-child { margin-top: 0; }
body :is(.p-text, .art-body) h3 { font-size: 20px; }
body :is(.p-text, .art-body) h4 { font-size: 17px; }
body :is(.p-text, .art-body) :is(ul, ol) { margin: 0 0 1em; padding-left: 26px; }
body :is(.p-text, .art-body) li { margin-bottom: .35em; }

/* Картинки и видео меряем от самого блока сообщения, а не от .p-text: у неё
   overflow-x:auto, и широкий скриншот она обрезала бы рамкой. 100cqw — ширина
   блока, поэтому на телефоне медиа тоже вписывается. */
body :is(.post-body, .article) { container-type: inline-size; }
body :is(.p-text, .art-body) { overflow-x: visible; }
body :is(.p-text, .art-body) :is(img, video, iframe) {
  max-width: 100%;   /* запасной вариант для старых браузеров */
  max-width: 100cqw; /* ширина блока сообщения, а не колонки текста */
  height: auto;
}
body :is(.p-text, .art-body) :is(img, video) { width: auto; }

/* Превью поста в редакторе и сама область набора — тоже контейнеры: без этого
   100cqw у картинок меряется от окна, а не от их блока, и вложение вылезает
   за рамку модалки. */
body :is(.prev-body, .ed-card, .ed-modal-box) { container-type: inline-size; }

/* Низ сообщения прижат к низу блока. Колонка с аватаром высокая и всегда
   растягивает .post-body, поэтому кнопки и лента реакций висели сразу под
   текстом: в коротком посте они оказывались на 180px выше, чем в длинном, и
   при листании темы панель прыгала. margin-top:auto съедает остаток. */
body .post .post-body > .p-actions-bar { margin-top: auto; }

/* ── Реакции в стиле XenForo ──
   Слева «Нравится»: клик ставит палец сразу, наведение (или долгое нажатие на
   телефоне) раскрывает остальные реакции. Справа — цепочка иконок внахлёст и
   имена. Никаких рамок и подложек: строка должна выглядеть частью сообщения,
   а не отдельным блоком. */
body .forum-feedback { margin-top: 14px; }
body .forum-feedback {
  /* Высота под ленту держится всегда: иначе первая же реакция раздвигает
     сообщение и ряд кнопок уезжает вниз прямо под курсором. */
  margin: 10px 0 0;
  /* ровно столько занимает лента с одной строкой имён (замерено на бою) */
  min-height: 32px;
}

body .forum-feedback .feedback-like { position: relative; }
body .feedback-like { position: relative; display: inline-block; }
/* Кнопка в ряду действий: тот же вид, что «Ответить» и «Изменить» */
body .btn-like {
  box-sizing: border-box;
  color: var(--green, #b4d579);
  cursor: pointer;
}
body .btn-like:hover {
  border-color: var(--green, #b4d579);
  color: var(--green-pale, #d3e2ae);
  background: rgba(93, 255, 122, .08);
}
body .feedback-like.is-mine .btn-like {
  border-color: #a9be60;
  color: var(--green-pale, #d3e2ae);
  background: rgba(169, 190, 96, .12);
}
body .btn-like .reaction-sprite { width: 16px; height: 16px; }
body .btn-like .feedback-emoji { width: 16px; height: 16px; font-size: 13px !important; }

body .forum-feedback .feedback-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted, #9aa78a);
  font: 13px/1 var(--terminal-font);
  text-decoration: none;
}
body .forum-feedback .feedback-login .reaction-sprite { width: 19px; height: 19px; }

/* Поповер с полным набором реакций */
body .feedback-options {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  display: none;
  grid-template-columns: repeat(9, auto);
  gap: 2px;
  padding: 6px;
  background: #141b11;
  border: 1px solid var(--line2, #465438);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}
body .feedback-like.is-open .feedback-options { display: grid; }
/* Невидимый мостик от поповера до кнопки: без него курсор, проходя через
   зазор, покидает область и панель закрывается на полпути. */
body .feedback-options::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
body .feedback-options button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .12s ease;
}
body .feedback-options button:hover { transform: translateY(-3px) scale(1.2); background: transparent; }
body .feedback-options button[aria-pressed=true] { filter: drop-shadow(0 0 3px #a9be60); }
body .feedback-options .reaction-sprite { width: 28px; height: 28px; }
body .feedback-options .feedback-emoji { width: 28px; height: 28px; font-size: 23px !important; }

/* Цепочка иконок и имена */
body .forum-feedback .feedback-summary {
  display: flex;
  align-items: center;
  /* базовое правило ленты разрешает перенос — из-за него на телефоне имена
     уезжали под иконки и лента становилась вдвое выше зарезервированной */
  flex-wrap: nowrap;
  min-width: 0;
  gap: 9px;
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
body .forum-feedback .feedback-summary[hidden] { display: none; }
body .forum-feedback .feedback-icons { display: flex; gap: 0; align-items: center; flex: 0 0 auto; flex-wrap: nowrap; }
body .forum-feedback .feedback-chip {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: -7px;
  filter: drop-shadow(0 0 1.5px #090c08);
}
body .forum-feedback .feedback-chip:last-child { margin-right: 0; }
body .forum-feedback .feedback-icons .reaction-sprite[class*="sprite-"] { width: 26px; height: 26px; }
body .forum-feedback .feedback-icons .feedback-emoji { width: 26px; height: 26px; font-size: 21px !important; }

body .forum-feedback .feedback-people {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  row-gap: 4px;
  margin: 0;
  text-align: left;
  font-size: 13px;
  color: #8f9787;
  line-height: 1.4;
}
body .forum-feedback .feedback-people[hidden] { display: none; }
body .forum-feedback .feedback-people a { color: #b4c98a; text-decoration: none; }
body .forum-feedback .feedback-people a:hover { color: #d3e2ae; text-decoration: underline; }
body .forum-feedback .feedback-people a + a::before { content: ", "; color: #8f9787; }
body .forum-feedback .feedback-people a + .feedback-more::before { content: " "; }
body .forum-feedback .feedback-more { color: #8f9787; }
body .forum-feedback .feedback-summary:hover .feedback-more,
body .forum-feedback .feedback-summary:hover .feedback-people { color: #a9b799; }

@media(max-width:700px) {
  body .forum-feedback .feedback-rail { gap: 12px; }
  /* На узком экране кнопка стоит первой в ряду, поэтому поповер прижимаем к
     левому краю: с правым он уезжал за границу окна. */
  body .feedback-options { grid-template-columns: repeat(5, auto); left: 0; right: auto; max-width: calc(100vw - 24px); }
  body .p-actions-bar { flex-wrap: wrap; }
  body .p-actions-bar :is(.btn-quote, .btn-edit, .btn-report, .btn-like) { white-space: nowrap; }
  /* На телефоне имена держим одной строкой: перенос делал ленту вдвое выше
     зарезервированной высоты, и сообщение снова прыгало. */
  body .forum-feedback .feedback-people {
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  body .forum-feedback .feedback-summary { min-width: 0; }
}

/* ── Панель «кто отреагировал» ──
   Устройство как в XenForo: шапка, вкладки по типам реакций, список людей.
   Стилистика наша: прямые углы, тёмные панели, лаймовый акцент. */
.reactors {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
  background: rgba(0, 0, 0, .68);
}
.reactors[hidden] { display: none; }
.reactors-box {
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  max-height: 88vh;
  background: var(--panel, #10160e);
  border: 1px solid var(--line2, #465438);
  border-top: 3px solid #a9bc70;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
}
.reactors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line2, #465438);
  background: #141b11;
}
.reactors-title { margin: 0; font-size: 15px; letter-spacing: 1px; color: var(--green, #b4d579); }
.reactors-close {
  width: 34px; height: 34px;
  border: 1px solid var(--line2, #465438);
  background: transparent;
  color: var(--muted, #9aa78a);
  font-size: 15px;
  cursor: pointer;
}
.reactors-close:hover { border-color: #a9bc70; color: #d3e2ae; }

.reactors-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line2, #465438);
  background: #0d1309;
}
.reactors-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted, #9aa78a);
  font: 13px/1 var(--terminal-font);
  cursor: pointer;
}
.reactors-tab:hover { color: #d3e2ae; background: #141b11; }
.reactors-tab.is-active { color: var(--green, #b4d579); border-bottom-color: #a9bc70; background: #141b11; }
.reactors-tab .reaction-sprite { width: 18px; height: 18px; }
.reactors-tab .feedback-emoji { font-size: 15px !important; }

.reactors-list { overflow-y: auto; }
.reactors-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line, #293322);
}
.reactors-row:last-child { border-bottom: 0; }
.reactors-row:hover { background: #141b11; }
.reactors-ava {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line2, #465438);
  background: var(--bg, #090c08);
  color: var(--green, #b4d579);
  font: 18px/1 var(--terminal-font);
  text-decoration: none;
  overflow: hidden;
}
.reactors-ava img { width: 100%; height: 100%; object-fit: cover; }
.reactors-name {
  color: var(--green, #b4d579);
  font: 15px/1.3 var(--terminal-font);
  text-decoration: none;
}
.reactors-name:hover { text-decoration: underline; }
.reactors-meta { margin-top: 3px; font-size: 12px; color: var(--faint, #89967a); }
.reactors-mark .reaction-sprite { width: 24px; height: 24px; }
.reactors-mark .feedback-emoji { font-size: 20px !important; }
.reactors-when { font-size: 12px; color: var(--faint, #89967a); white-space: nowrap; }
.reactors-empty { padding: 26px 18px; text-align: center; color: var(--faint, #89967a); font-size: 13px; }

/* Лента реакций кликабельна — она открывает эту панель */
body .forum-feedback .feedback-summary[data-feedback-list] { cursor: pointer; }
body .forum-feedback .feedback-summary[data-feedback-list]:hover { border-color: #4a5a3c; }
body .forum-feedback .feedback-people[data-feedback-list] { cursor: pointer; }
body .forum-feedback .feedback-people .feedback-more:hover { color: #d3e2ae; text-decoration: underline; }

@media(max-width:700px) {
  .reactors { padding: 0; }
  .reactors-box { max-height: 100vh; height: 100%; width: 100%; border: 0; border-top: 3px solid #a9bc70; }
  .reactors-row { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 10px; padding: 10px 14px; }
  .reactors-when { display: none; }
  .reactors-ava { width: 40px; height: 40px; }
}

/* «Жук» — из исходного набора. Лента реакций рисует иконки из reaction-art-hq,
   а в нём на месте жука красный чёрт: художник набора про эту реакцию не знал.
   Ставим сюда божью коровку из forum-emoji, которая там и была. */
body .forum-feedback .reaction-sprite.sprite-7 {
  background-image: url('/static/forum-emoji.png?v=1');
  background-position: 50% 100%;
  background-size: 300% 300%;
}

/* «Нравится» — своя иконка вместо кадра из общего спрайта. Правило должно идти
   после блока .forum-feedback: у того селектор не менее специфичный. */
body .reaction-sprite.sprite-0,
body .forum-feedback .reaction-sprite.sprite-0,
body .forum-feedback .feedback-options .reaction-sprite.sprite-0,
body .reactors .reaction-sprite.sprite-0 {
  background-image: url('/static/reaction-thumb.svg?v=4');
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
}

/* ── Окно жалобы ──
   Было выпадашкой под кнопкой: узкое поле в два ряда, кнопки внахлёст с
   соседями. Теперь это обычное окно поверх страницы — как панель реакций. */
body .report-dialog {
  position: fixed;
  inset: 0;
  /* выше шапки сайта — иначе она накрывает верх окна на телефоне */
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 6vh 16px;
  background: rgba(0, 0, 0, .68);
}
body .report-box {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 88vh;
  background: var(--panel, #10160e);
  border: 1px solid var(--line2, #465438);
  border-top: 3px solid #a9bc70;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
  text-align: left;
}
body .report-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line2, #465438);
  background: #141b11;
}
body .report-box-title {
  margin: 0;
  font: 15px/1.3 var(--terminal-font);
  letter-spacing: 1px;
  color: var(--green, #b4d579);
}
body .report-box-close {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line2, #465438);
  background: transparent;
  color: var(--muted, #9aa78a);
  font-size: 15px;
  cursor: pointer;
}
body .report-box-close:hover { border-color: #a9bc70; color: #d3e2ae; }

body .report-box-body { padding: 18px; overflow-y: auto; }
body .report-box-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted, #9aa78a);
}
body .report-dialog .report-reason {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  box-sizing: border-box;
}
body .report-box-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--faint, #89967a);
  line-height: 1.5;
}
body .report-dialog .report-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line2, #465438);
  background: #0d1309;
}
body .report-dialog .report-actions .btn-report { min-height: 40px; padding: 8px 16px; }
body .report-dialog .report-actions .submit { border-color: #a9be60; color: #d3e2ae; background: #2a3720; }
body .report-dialog .report-actions .submit:hover { background: #34451f; }

@media(max-width:700px) {
  body .report-dialog { padding: 0; }
  body .report-box { width: 100%; height: 100%; max-height: 100vh; border: 0; border-top: 3px solid #a9bc70; }
  body .report-box-body { flex: 1; }
  body .report-dialog .report-actions .btn-report { flex: 1; }
}
