@font-face{font-family:Prime;src:url('/assets-v2/fonts/roboto-flex.woff2') format('woff2');font-display:swap;font-weight:100 1000}
:root{color-scheme:dark;--bg:#141c24;--deep:#101820;--surface:#1d2935;--input:#25323f;--text:#f0f2f5;--muted:#a4b2c4;--cyan:#00c2e7;--red:#fa6475;--yellow:#e8be64;--green:#68c8a4}
*{box-sizing:border-box}html{scrollbar-color:#384c60 var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 Prime,Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--cyan)}button,input,textarea,select{font:inherit}button{cursor:pointer}button,a,input,textarea,select{touch-action:manipulation}button{border:0;color:inherit;background:transparent}button:disabled{opacity:.45;cursor:not-allowed}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}button svg,a svg{pointer-events:none}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.skip{position:fixed;left:20px;top:-100px;background:var(--cyan);color:#07151b;padding:10px;z-index:1000}.skip:focus{top:10px}
#site-header{min-height:82px;background:var(--deep);display:flex;align-items:center;gap:28px;padding:15px 27px;position:sticky;top:0;z-index:20}.brand{display:flex;gap:22px;align-items:center;flex-shrink:0}.wordmark{font-size:39px;font-weight:850;line-height:1;letter-spacing:-1.8px}.wordmark em{font-style:normal;color:var(--cyan)}.brand-caption{font-size:11px;line-height:1.65;color:var(--muted);letter-spacing:.25px}.header-links{display:flex;gap:24px;align-items:center;font-size:14px}.header-links .current{color:var(--cyan)}.search-form{flex:1;max-width:440px;min-width:120px;display:flex;align-items:center;background:var(--surface);padding:0 13px;border-radius:5px}.search-form input{background:transparent;min-width:0;padding:10px;border:0;width:100%;color:var(--text)}.community-links{margin-left:auto}.header-auth{display:flex;align-items:center;gap:18px}.button,.primary,.secondary,.danger{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:43px;padding:10px 18px;border-radius:5px;font-weight:650;border:0}.primary{background:var(--cyan);color:#04141b}.primary:hover{background:#38d4f0;color:#04141b}.secondary{background:var(--surface);color:var(--text)}.secondary:hover{background:var(--input);color:var(--text)}.danger{background:var(--red);color:#21090f}.danger-text{color:var(--red)}.text-button{color:var(--cyan);padding:6px 0}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;line-height:1.2;margin-bottom:14px;letter-spacing:-.5px}h2{font-size:22px;line-height:1.3}h3{font-size:18px}p{margin-bottom:16px}hr{display:none}.avatar{width:36px;height:36px;border-radius:50%;background:#304455;display:inline-flex;justify-content:center;align-items:center;font-weight:700;font-size:15px;overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.large{width:90px;height:90px;font-size:32px}.account{position:relative}.account>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none}.account>summary::-webkit-details-marker{display:none}.account-menu{position:absolute;top:52px;right:0;background:#202e3b;min-width:245px;padding:9px;border-radius:6px;box-shadow:0 16px 40px #0005}.account-menu a,.account-menu button{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;text-align:left;font-size:14px;border-radius:3px}.account-menu a:hover,.account-menu button:hover{background:#2b3d4d}
#layout{display:grid;grid-template-columns:230px minmax(0,1fr)}.sidebar{background:var(--deep);padding:22px 14px;min-height:calc(100dvh - 82px);position:sticky;top:82px;align-self:start}.sidebar a,.sidebar button{display:flex;align-items:center;gap:14px;padding:13px 14px;font-size:14px;line-height:1.35;width:100%;text-align:left;border-radius:5px;margin:3px 0}.sidebar .active{background:var(--cyan);color:#04141b}.sidebar .group{margin-top:24px}.sidebar svg{color:var(--muted)}.sidebar .active svg{color:inherit}#main{min-width:0;padding:30px 32px 65px;outline:none}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:42px}.reading{max-width:1050px}.context{padding-top:6px;color:var(--muted);font-size:14px}.context h3{color:var(--text);margin-bottom:13px}.context section{margin-bottom:34px}.context a{display:block;margin:13px 0}.context .category-link{display:flex;gap:11px;align-items:start}.context .category-link span span{display:block;font-size:12px;margin-top:3px}.title-row{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:22px}.title-row p{margin-bottom:0}.tabs,.filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:18px 0 25px}.tabs button,.tabs a,.filters button{padding:9px 16px;font-size:14px;color:var(--muted);border-radius:4px}.tabs .active,.filters .active{background:var(--cyan);color:#03151b}.thread{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:22px 0 28px}.votes{display:flex;flex-direction:row;align-items:center;gap:6px;color:var(--muted);font-size:15px;font-weight:650}.votes button{padding:3px}.votes button.active{color:var(--cyan)}.thread-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:9px}.thread-meta .avatar{height:25px;width:25px;font-size:11px}.category-tag{padding:3px 9px;background:var(--surface);border-radius:4px;font-size:12px;color:#b3c1d4}.thread h2{font-size:22px;margin:7px 0 10px;overflow-wrap:anywhere}.thread-excerpt{color:#b6c1ce;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.thread-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:13px;margin-top:13px}.thread-actions button,.thread-actions a{padding:5px 0;display:inline-flex;align-items:center;gap:6px}.pin{color:var(--cyan);font-size:11px;text-transform:uppercase;letter-spacing:.5px}.body-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:80ch;font-size:16px;line-height:1.75}.post-heading{margin-bottom:20px}.post-heading h1{font-size:32px;overflow-wrap:anywhere}.post-image{max-height:420px;max-width:100%;object-fit:contain;border-radius:4px;display:block}.attachments{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.attachment{display:flex;align-items:center;gap:12px;background:var(--surface);padding:10px 15px;border-radius:5px;max-width:100%;overflow-wrap:anywhere;font-size:13px}.attachment.image{display:block;padding:0;background:none}.attachment img{max-width:100%;max-height:300px;border-radius:4px}.empty{padding:55px 0;color:var(--muted);max-width:650px}.empty h2{color:var(--text)}.loading{color:var(--muted);padding:30px}.comment-section{margin-top:38px}.comment{padding:18px 0}.comment.nested{padding-left:24px}.comment .body-text{font-size:15px}.comment.removed .body-text{color:var(--muted);font-style:italic}.comment-head{display:flex;gap:10px;align-items:center;margin-bottom:9px}.comment-head .meta{font-size:12px;color:var(--muted)}.inline-menu{position:relative;margin-left:auto}.inline-menu summary{list-style:none;cursor:pointer;padding:4px 8px}.inline-menu nav{background:#253443;padding:8px;position:absolute;right:0;top:32px;min-width:210px;box-shadow:0 16px 30px #0005;z-index:5;border-radius:5px}.inline-menu nav button{display:block;width:100%;text-align:left;padding:9px;font-size:13px}.inline-menu nav button:hover{background:#31475a}.inline-menu nav .danger-text{color:var(--red)}
form .field{margin-bottom:19px}label,.field-label{display:block;margin-bottom:7px;font-size:14px;font-weight:550}input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select{background:var(--input);color:var(--text);border:0;border-radius:5px;width:100%;padding:13px 15px;min-width:0}input::placeholder,textarea::placeholder{color:#9aaabd;opacity:1}textarea{resize:vertical;min-height:120px;line-height:1.6}input[type=checkbox],input[type=radio]{width:18px;height:18px;accent-color:var(--cyan);flex-shrink:0}input[type=file]{max-width:100%;font-size:13px}.check{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:400;margin:10px 0}.hint{font-size:12px;color:var(--muted);margin:5px 0 0}.form-actions{display:flex;align-items:center;gap:20px;margin-top:22px;flex-wrap:wrap}.form-error{color:#ff9ba5;font-size:14px;margin:12px 0;white-space:pre-wrap}.form-success{color:var(--green);font-size:14px;margin:12px 0}.form-error:empty,.form-success:empty{display:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.editor{max-width:950px}.editor textarea{min-height:260px}.password-wrap{position:relative}.password-wrap input{padding-right:52px!important}.password-wrap button{position:absolute;right:5px;top:4px;height:43px;width:43px;color:var(--muted)}.auth-page #site-header{position:static;background:transparent;padding:22px 28px}.auth-page .auth-back{margin-left:auto;color:var(--cyan);font-size:14px}.auth-page #layout{display:block}.auth-page #main{padding:25px 24px;min-height:calc(100dvh - 97px);display:flex;align-items:center;justify-content:center}.auth-form{width:100%;max-width:430px;padding-bottom:32px}.auth-form h1{font-size:32px;margin-bottom:28px}.auth-form input:not([type=checkbox]){height:51px}.auth-form .field{margin-bottom:23px}.auth-form .primary{width:100%;min-height:51px;margin-top:16px}.auth-form .auth-bottom{text-align:center;font-size:14px;margin-top:22px}.auth-form a{color:var(--cyan)}.auth-options{display:flex;gap:14px;align-items:center;justify-content:space-between;font-size:13px}.auth-options .check{font-size:13px}.auth-form .intro{color:var(--muted);font-size:14px;margin-bottom:27px}.auth-form .code-input{text-align:center;letter-spacing:12px;font-size:26px;font-variant-numeric:tabular-nums}.auth-form .resend{text-align:center;font-size:13px;margin-top:18px}.profile-identity{display:flex;gap:24px;align-items:center;margin-bottom:30px}.profile-identity h1{margin-bottom:7px}.stats{display:flex;gap:30px;font-size:14px;color:var(--muted);margin-top:18px}.stats strong{color:var(--text);margin-right:5px}.settings-form{max-width:760px}.settings-form section{margin-top:35px}.settings-form .avatar-controls{display:flex;gap:22px;align-items:center;margin-bottom:26px}.settings-form .avatar-controls input{max-width:230px}.notification{padding:20px;display:flex;gap:18px;align-items:start;margin-bottom:5px}.notification.unread{background:var(--surface);border-radius:5px}.notification .time{font-size:12px;color:var(--muted);margin-top:7px}.status{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.status:before{content:'';display:block;width:7px;height:7px;border-radius:50%;background:currentColor}.status.new{color:#79c7db}.status.in_progress,.status.need_info{color:var(--yellow)}.status.fixed{color:var(--green)}.ban-notice{background:#492b35;color:#ffbdc6;padding:16px 20px;border-radius:4px;margin-bottom:25px;font-size:14px}.role-label{font-size:11px;color:var(--cyan);font-weight:600}.role-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0}.role-tabs button{padding:15px 20px;background:var(--surface);border-radius:5px}.role-tabs button.active{background:#114052;color:var(--cyan)}
.fullscreen-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--bg);color:var(--text)}dialog::backdrop{background:#081118b8}.modal-header{display:flex;gap:20px;align-items:center;padding:20px 28px;min-height:85px;background:var(--deep)}.modal-header h2{margin:0;font-size:19px}.modal-header .wordmark{font-size:30px}.modal-header .close-modal{margin-left:auto;display:flex;align-items:center;gap:9px;padding:6px}.modal-header .privacy{font-size:12px;color:var(--muted)}.ticket-layout{display:grid;grid-template-columns:335px minmax(0,1fr);height:calc(100dvh - 85px)}.ticket-list{background:var(--deep);overflow:auto;padding:22px 15px}.ticket-list h2{font-size:22px;padding:0 8px}.ticket-list .primary{width:100%;font-size:13px}.ticket-list .filters{gap:3px;margin:15px 0}.ticket-list .filters button{font-size:12px;padding:8px}.ticket-item{display:block;width:100%;text-align:left;padding:18px 14px;margin:4px 0;border-radius:4px}.ticket-item.active{background:#133545}.ticket-item strong{display:block;font-size:15px;margin-bottom:8px;overflow-wrap:anywhere}.ticket-item .small{float:right}.ticket-main{padding:26px 30px;overflow:auto;min-width:0;display:flex;flex-direction:column}.ticket-main h1{font-size:28px}.ticket-main .title-row{margin-bottom:16px}.ticket-messages{flex:1;padding:24px 0}.message{display:flex;align-items:start;gap:14px;margin-bottom:25px}.message-body{background:var(--surface);border-radius:5px;padding:17px 20px;min-width:0;flex:1}.message-author{font-size:13px;margin-bottom:8px}.message-author time{color:var(--muted);font-size:11px;margin-left:12px}.message.internal .message-body{background:#3b3230}.message .body-text{font-size:14px;line-height:1.65}.ticket-composer{background:var(--surface);border-radius:5px;padding:13px}.ticket-composer textarea{min-height:90px;background:var(--deep)}.ticket-composer .form-actions{margin:10px 0 0;justify-content:space-between}.ticket-form{padding:30px;max-width:1200px;margin:auto}.ticket-form .form-grid{gap:22px}.ticket-form textarea{min-height:100px}.ticket-form .privacy-note{color:var(--muted);font-size:13px;margin-bottom:25px}.ticket-form .field{margin-bottom:17px}.ticket-form .draft-note{margin-left:auto;font-size:12px;color:var(--muted)}.action-dialog{border:0;border-radius:7px;padding:28px;background:#1d2935;color:var(--text);width:min(590px,calc(100vw - 30px));max-height:90dvh;overflow:auto}.action-dialog h2{font-size:24px;margin-bottom:15px}.action-dialog .form-actions{justify-content:flex-end}.action-dialog .target-summary{background:#16212b;padding:13px 16px;border-radius:4px;margin-bottom:20px;overflow-wrap:anywhere;font-size:14px}.action-dialog textarea{min-height:90px}.action-dialog .close-action{float:right}.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table th{text-align:left;color:var(--muted);font-size:11px;font-weight:600;padding:14px 12px}.admin-table td{padding:15px 12px;vertical-align:top;overflow-wrap:anywhere}.admin-table tr.selected{background:#16394a}.admin-table tbody tr:hover{background:var(--surface)}.admin-table button{font-size:13px;color:var(--cyan)}.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px}.admin-detail{background:var(--deep);padding:24px;border-radius:5px}.admin-detail .primary,.admin-detail .secondary,.admin-detail .danger{width:100%;margin:6px 0;font-size:13px}.admin-detail .avatar{margin-bottom:14px}.admin-detail h2{margin-bottom:5px}.history-row{padding:13px 0;font-size:13px}.history-row p{margin:5px 0}.permission{display:flex;align-items:center;gap:15px;padding:13px 0}.permission span{flex:1;font-size:14px}.permission input{width:20px;height:20px}.permission small{display:block;color:var(--muted)}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.toolbar input{max-width:380px}.rule{max-width:75ch;margin:28px 0}.rule h2{font-size:21px}.pagination{display:flex;gap:15px;align-items:center;margin:28px 0;font-size:13px}#toast,.modal-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#25475a;color:#fff;border-radius:6px;padding:13px 22px;max-width:min(650px,90vw);font-size:14px;box-shadow:0 6px 25px #0004}.modal-toast{position:sticky;bottom:18px;margin:0 auto;width:fit-content;transform:none;left:auto}.mobile-nav-toggle{display:none}
@media(min-width:1900px){.content-grid{grid-template-columns:minmax(0,1fr) 330px}#main{padding:38px 42px}.thread h2{font-size:24px}}
@media(max-width:1250px){.brand-caption{display:none}.community-links{display:none}.content-grid{grid-template-columns:minmax(0,1fr)}.context{display:none}.admin-grid{grid-template-columns:minmax(0,1fr) 290px}.header-links{gap:16px}#site-header{gap:20px}.ticket-layout{grid-template-columns:285px minmax(0,1fr)}.privacy{display:none}}
@media(max-width:850px){#site-header{padding:15px 18px;gap:16px;min-height:72px}.wordmark{font-size:31px}.header-links{display:none}.search-form{max-width:none}.header-auth .primary{display:none}.header-auth{gap:10px}.account summary>span:not(.avatar){display:none}#layout{grid-template-columns:1fr}.sidebar{display:none;position:fixed;top:72px;left:0;width:250px;z-index:19;box-shadow:15px 0 50px #0005}.sidebar.open{display:block}.mobile-nav-toggle{display:inline-flex;padding:5px}#main{padding:24px 20px}.title-row{gap:15px}.title-row h1{font-size:27px}.title-row>.primary{font-size:12px;padding:10px 12px}.thread{gap:10px;grid-template-columns:1fr}.thread h2{font-size:20px}.thread-actions{gap:12px}.admin-grid{grid-template-columns:1fr}.admin-detail{order:-1}.admin-table th,.admin-table td{padding:12px 7px;font-size:12px}.modal-header{padding:15px 18px;gap:14px;min-height:75px}.modal-header .wordmark{font-size:24px}.modal-header h2{font-size:16px}.modal-header .close-modal span{display:none}.ticket-layout{grid-template-columns:250px minmax(0,1fr);height:calc(100dvh - 75px)}.ticket-main{padding:22px 18px}.ticket-main h1{font-size:23px}.ticket-list{padding:20px 10px}.ticket-list h2{font-size:20px}.message-body{padding:14px}.message{gap:10px}.message>.avatar{display:none}.ticket-form{padding:24px 20px}.auth-page #site-header{padding:20px}.auth-page #main{min-height:calc(100dvh - 85px)}}
@media(max-width:600px){.search-form{display:none}#site-header .header-auth{margin-left:auto}.auth-page .brand-caption{display:none}.auth-page #main{align-items:flex-start;padding-top:65px}.auth-form h1{font-size:29px}.auth-form{padding-bottom:35px}.title-row{flex-wrap:wrap}.title-row>.primary{width:100%}.thread .thread-meta{gap:7px;font-size:11px}.thread-actions{font-size:12px}.thread-meta .role-label{display:none}.thread h2{font-size:19px}.thread-excerpt{font-size:14px}.tabs{gap:0}.tabs button,.tabs a{padding:8px 12px;font-size:13px}.form-grid{grid-template-columns:1fr;gap:0}.form-actions>.primary{width:100%}.profile-identity{gap:17px}.profile-identity .avatar.large{width:65px;height:65px}.profile-identity h1{font-size:28px}.stats{gap:15px;font-size:12px}.ticket-layout{display:block}.ticket-list{height:calc(100dvh - 75px)}.ticket-layout.has-selection .ticket-list{display:none}.ticket-layout:not(.has-selection) .ticket-main{display:none}.ticket-main{height:calc(100dvh - 75px)}.ticket-main .title-row .secondary{font-size:12px}.modal-header .wordmark{display:none}.modal-header .privacy{display:none}.ticket-form h1{font-size:27px}.ticket-form .draft-note{margin-left:0}.ticket-composer .form-actions input{max-width:165px}.ticket-composer .primary{font-size:12px;padding:10px 12px}.comment.nested{padding-left:13px}.body-text{font-size:15px}.action-dialog{padding:23px 19px}.admin-table .hide-mobile{display:none}.settings-form .avatar-controls{flex-wrap:wrap}.permission{gap:12px}.permission small{font-size:11px}.notification{padding:16px 10px;gap:12px}}
/* Authentication: one centered column, with navigation aligned to the form. */
body.auth-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px}
.auth-page #site-header{position:static;flex:0 0 auto;flex-direction:row-reverse;justify-content:space-between;width:100%;max-width:430px;min-height:0;padding:0;margin:0 0 32px;gap:16px;background:transparent}
.auth-page #site-header .brand{margin:0;gap:10px;min-width:0;flex-shrink:1}
.auth-page #site-header .wordmark{font-size:28px;letter-spacing:-1.2px}
.auth-page #site-header .brand-caption{display:block;font-size:9px;line-height:1.6;letter-spacing:0}
.auth-page #site-header .auth-back{margin:0;display:inline-flex;align-items:center;gap:6px;min-height:36px;flex-shrink:0;font-size:13px}
.auth-page #site-header .auth-back .icon{width:18px;height:18px}
.auth-page #layout{display:block;flex:0 0 auto;width:100%;max-width:430px}
.auth-page #main{display:block;min-height:0;padding:0}
.auth-page .auth-form{width:100%;max-width:none;padding:0}
.auth-page .auth-form h1{text-align:center}
@media(max-width:480px){body.auth-page{padding:32px 24px}.auth-page #site-header{margin-bottom:28px;gap:12px}.auth-page #site-header .brand-caption{display:none}.auth-page #site-header .wordmark{font-size:28px}}

/* Feed photos precede the title and excerpt; the full image stays in the thread. */
.thread-content{min-width:0}
.thread.has-cover{grid-template-columns:clamp(180px,20vw,320px) minmax(0,1fr);align-items:start;column-gap:22px}
.thread-cover{display:block;position:relative;overflow:hidden;aspect-ratio:8/5;width:100%;background:var(--surface);border-radius:5px;align-self:start}
.thread-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.thread-cover:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}
.thread.has-cover .thread-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
@media(max-width:1000px) and (min-width:601px){.thread.has-cover{grid-template-columns:180px minmax(0,1fr);column-gap:16px}}
@media(max-width:600px){
 .thread.has-cover{grid-template-columns:100px minmax(0,1fr);grid-template-areas:'cover meta' 'cover title' 'excerpt excerpt' 'actions actions';gap:10px 12px}
 .thread.has-cover>.thread-cover{grid-area:cover;aspect-ratio:1}
 .thread.has-cover>.thread-content{display:contents}.thread.has-cover .thread-meta{grid-area:meta;margin:0;gap:6px;font-size:11px;align-self:start}
 .thread.has-cover h2{grid-area:title;font-size:19px;margin:0;align-self:start}
 .thread.has-cover .thread-excerpt{grid-area:excerpt;margin:0;font-size:14px}
 .thread.has-cover .thread-actions{grid-area:actions;margin:0;gap:12px}
}
@media(max-width:360px){.thread.has-cover{grid-template-columns:84px minmax(0,1fr);column-gap:8px}.thread.has-cover .thread-meta .category-tag{font-size:11px;padding:3px 6px}.thread.has-cover h2{font-size:18px}}


/* Compact feed. Detail pages, authentication and private dialogs retain their layout. */
#main:has(> .feed-layout){padding-top:24px}
.content-grid.feed-layout{grid-template-columns:minmax(0,1fr) 264px;gap:28px;align-items:start}
.feed-panel{min-width:0;container-name:feed;container-type:inline-size}
.feed-heading{margin-bottom:12px}
.feed-heading h1{font-size:30px;margin-bottom:6px}
.feed-heading p{font-size:14px;line-height:1.5;margin-bottom:0}
.feed-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-bottom:12px}
.feed-toolbar .tabs{margin:0;gap:4px}
.feed-toolbar .tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;font-size:13px}
.feed-toolbar .primary{margin-inline-start:auto;min-height:44px;padding:8px 14px;font-size:13px;white-space:nowrap}
.feed-toolbar .primary .icon{width:19px;height:19px}
.create-label-short{display:none}
.feed-list{display:grid;grid-template-columns:minmax(0,1fr);column-gap:28px;row-gap:8px;align-items:start}
.feed-list .thread{min-width:0;grid-template-columns:minmax(0,1fr);column-gap:16px;padding:12px 0 16px}
.feed-list .thread.has-cover{grid-template-columns:224px minmax(0,1fr);column-gap:16px;align-items:start}
.feed-list .thread-content{min-width:0;display:flex;flex-direction:column;align-items:stretch}
.feed-list .thread-meta{font-size:11px;gap:5px 7px;margin-bottom:6px;line-height:1.45}
.feed-list .thread-meta>a{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0;overflow-wrap:anywhere}
.feed-list .thread-meta .avatar{width:21px;height:21px;font-size:10px}
.feed-list .category-tag{font-size:11px;padding:3px 7px}
.feed-list .thread h2{font-size:21px;line-height:1.3;margin:0 0 6px}
.feed-list .thread .thread-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;font-size:14px;line-height:1.5;margin:0}
.feed-list .thread-actions{font-size:12px;gap:4px 14px;margin-top:7px}
.feed-list .thread-actions a,.feed-list .thread-actions button{gap:5px;padding:3px 0;max-width:100%}
.feed-list .thread-actions .icon{width:18px;height:18px}
.feed-list .votes{font-size:14px;gap:3px}
.feed-list .thread.is-pinned.has-cover{grid-template-columns:160px minmax(0,1fr)}
.feed-list .thread.is-pinned h2{font-size:20px}
.feed-list .thread.is-pinned .thread-excerpt{-webkit-line-clamp:1}
.feed-context{position:sticky;top:106px;padding-top:3px;font-size:13px}
.feed-context h3{font-size:16px;margin-bottom:10px}
.feed-context section{margin-bottom:22px}
.feed-context a{margin:10px 0}
.feed-context .text-button{display:flex;align-items:center;gap:7px;text-align:left;line-height:1.45}
.feed-context .icon{width:18px;height:18px}
.feed-panel>.pagination{margin-top:18px}
@container feed (min-width:1450px){.feed-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container feed (max-width:780px){.feed-list .thread.has-cover{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:1250px){.content-grid.feed-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-height:700px){.feed-context{position:static}}
@media(max-width:600px){
 .feed-heading h1{font-size:26px}
 .feed-toolbar{flex-wrap:nowrap;gap:8px;margin-bottom:10px}
 .feed-toolbar .tabs{width:auto;min-width:0;flex-wrap:nowrap;gap:2px}
 .feed-toolbar .tabs a{flex-shrink:0;padding:8px;font-size:12px}
 .feed-toolbar .primary{flex-shrink:0;min-height:44px;padding:8px 12px;gap:6px}
 .feed-toolbar .create-label-full{display:none}
 .feed-toolbar .create-label-short{display:inline}
 .feed-list{row-gap:6px}
 .feed-list .thread{grid-template-columns:minmax(0,1fr);column-gap:12px;padding:12px 0 14px}
 .feed-list .thread.has-cover,.feed-list .thread.is-pinned.has-cover{grid-template-columns:96px minmax(0,1fr);grid-template-areas:'cover meta' 'cover title' 'excerpt excerpt' 'actions actions';gap:8px 12px}
 .feed-list .thread.has-cover>.thread-content{display:contents}
 .feed-list .thread.has-cover .thread-cover{aspect-ratio:1}
 .feed-list .thread.has-cover .thread-meta{margin:0;gap:4px 6px;align-self:start}
 .feed-list .thread h2,.feed-list .thread.is-pinned h2{font-size:18px;margin:0 0 6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
 .feed-list .thread.has-cover h2{margin:0}
 .feed-list .thread.has-cover .thread-excerpt{margin:0;font-size:14px}
 .feed-list .thread-actions{gap:4px 8px}
 .feed-list .thread.has-cover .thread-actions{margin:0;gap:4px 8px}
}
@media(max-width:360px){
 .feed-list .thread.has-cover,.feed-list .thread.is-pinned.has-cover{grid-template-columns:80px minmax(0,1fr);column-gap:8px}
 .feed-list .thread h2,.feed-list .thread.is-pinned h2{font-size:17px}
}


/* Thread editor is a native modal; the underlying feed retains its DOM and scroll. */
body.thread-composing{overflow:hidden}
.thread-dialog{overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:90px}
.thread-composer-header{position:sticky;top:0;z-index:2;min-height:76px;padding:18px 28px}
.thread-composer-header .wordmark{font-size:30px}
.thread-dialog .thread-editor{width:100%;max-width:none;margin:0;padding:28px 32px 36px}
.thread-dialog .thread-editor h1{margin-bottom:24px}
.thread-dialog textarea{min-height:210px}
.thread-dialog input[type=file]{width:100%;white-space:normal;overflow-wrap:anywhere}
.thread-dialog .form-actions{position:sticky;bottom:0;z-index:1;background:var(--bg);padding:14px 0 calc(14px + env(safe-area-inset-bottom,0px));margin:16px 0 0}
.thread-dialog [aria-busy=true]{cursor:progress}
.thread-dialog .modal-toast{z-index:3}
@media(max-width:600px){
 .thread-composer-header{min-height:66px;padding:15px 20px}
 .thread-composer-header .wordmark{font-size:28px}
 .thread-dialog .thread-editor{padding:24px 20px 20px}
 .thread-dialog .thread-editor h1{font-size:26px;margin-bottom:20px}
 .thread-dialog textarea{min-height:180px}
 .thread-dialog .form-actions{gap:16px;flex-wrap:nowrap}
 .thread-dialog .form-actions .primary{width:auto;flex:1}
 .thread-dialog .form-actions button{min-height:44px}
}


/* Staff queues stay reachable even when the sidebar exceeds a short viewport. */
.sidebar{max-height:calc(100dvh - 82px);overflow-y:auto}
.sidebar-caption{display:block;margin:0 14px 9px;color:var(--muted);font-size:11px;font-weight:650;letter-spacing:.7px;text-transform:uppercase}
.thread-dialog .thread-editor{max-width:none;margin:0;min-height:calc(100dvh - 76px);display:flex;flex-direction:column}
.thread-dialog .thread-editor>form{display:flex;flex-direction:column;flex:1;min-height:0}
.thread-dialog .thread-body-field{display:flex;flex-direction:column;flex:1}
.thread-dialog .thread-body-field textarea{flex:1}
@media(max-width:850px){.sidebar{max-height:calc(100dvh - 72px)}}
@media(max-width:600px){.thread-dialog .thread-editor{min-height:calc(100dvh - 66px)}}


/* Long user-controlled names must shrink and wrap inside every flex/grid view. */
[hidden]{display:none!important}
.admin-grid>*{min-width:0}
.admin-table{table-layout:fixed}
.admin-table th,.admin-table td{overflow-wrap:anywhere}
.admin-table a,.admin-table button{max-width:100%;overflow-wrap:anywhere}
.admin-detail{min-width:0;overflow-wrap:anywhere}
.profile-identity>div{min-width:0;flex:1}
.profile-identity h1{overflow-wrap:anywhere}
.profile-identity .stats{flex-wrap:wrap;gap:8px 20px}
.comment-head{align-items:flex-start}
.comment-head>div,.comment-head>.thread-meta{min-width:0;flex:1}
.comment-head a{overflow-wrap:anywhere}
.notification>div{min-width:0;flex:1;overflow-wrap:anywhere}
.profile-page,.moderation-page{min-width:0;container-type:inline-size;container-name:feed}
.moderation-page>.feed-list{margin-bottom:28px}
.close-modal{min-width:44px;min-height:44px}
.thread-composer-header{padding-block:16px}
.password-wrap button{width:44px;height:44px}
input[type=file]{min-height:44px}
input[type=file]::file-selector-button{min-width:44px;min-height:44px;margin-inline-end:10px;padding:8px 12px;border:0;border-radius:4px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer}
@media(max-width:850px){
 #site-header{padding-block:14px}
 .mobile-nav-toggle{width:44px;min-width:44px;height:44px;min-height:44px;justify-content:center;padding:10px}
 .account>summary,.auth-page #site-header .auth-back{min-height:44px}
 .tabs button,.tabs a,.filters button,.primary,.secondary,.danger,.feed-toolbar .primary{min-height:44px}
 .filters button,.form-actions>button{min-width:44px;min-height:44px}
 .thread-actions a,.thread-actions button,.admin-table button,.admin-table a{min-height:44px}
 .admin-table a{display:inline-flex;align-items:center}
 .admin-table a,.admin-table button{min-width:44px}
 .text-button{min-height:44px;display:inline-flex;align-items:center;gap:6px}
 .check,.auth-options a{min-height:44px}
 .auth-options a{display:inline-flex;align-items:center}
 .modal-header .close-modal{min-width:44px;min-height:44px;padding:8px}
 .thread-composer-header{padding-block:11px}
 .action-dialog .close-action{width:44px;min-width:44px;height:44px;padding:10px}
 .thread .votes button{width:44px;height:44px;padding:10px}
 .thread,.feed-list .thread{grid-template-columns:minmax(0,1fr)}
 .thread.has-cover,.feed-list .thread.has-cover{grid-template-columns:180px minmax(0,1fr)}
 .feed-list .thread.is-pinned.has-cover{grid-template-columns:160px minmax(0,1fr)}
}
@media(max-width:600px){
 .profile-identity{align-items:flex-start}
 .thread.has-cover{grid-template-columns:100px minmax(0,1fr)}
 .feed-list .thread.has-cover,.feed-list .thread.is-pinned.has-cover{grid-template-columns:96px minmax(0,1fr)}
}
@media(max-width:360px){
 .admin-table th,.admin-table td{padding-inline:6px}
 .thread.has-cover{grid-template-columns:84px minmax(0,1fr)}
 .feed-list .thread.has-cover,.feed-list .thread.is-pinned.has-cover{grid-template-columns:80px minmax(0,1fr)}
}


/* Voting belongs to the post footer; the card has no separate vote column. */
.thread-actions .votes{display:inline-flex;flex-direction:row;align-items:center;flex-shrink:0;gap:4px;margin:0;min-height:44px}
.thread-actions .votes button{display:inline-flex;justify-content:center;align-items:center;flex:0 0 44px;min-width:44px;width:44px;min-height:44px;height:44px;padding:10px}
.thread-actions .vote-score{min-width:2ch;text-align:center;font-variant-numeric:tabular-nums;font-weight:650}

/* Social links normally push the account group to the right. Once they are
   hidden, the account/auth group must absorb the remaining header space.
   Keep the existing wide desktop grouping and centered auth-page header. */
@media (max-width:1250px) {
  body:not(.auth-page) #site-header > .account,
  body:not(.auth-page) #site-header > .header-auth {
    margin-left:auto;
    flex-shrink:0;
  }

  body:not(.auth-page) #site-header > .account > .account-menu {
    max-width:calc(100vw - 36px);
    overflow-wrap:anywhere;
  }
}

@media(max-width:360px){.feed-toolbar .primary{width:44px;min-width:44px;padding:10px}.feed-toolbar .create-label-short{display:none}}


/* Compact post actions retain their labels for assistive technology. */
.thread-composer-header h1{margin:0;font-size:22px;line-height:1.2}
.post-actions>[data-do=save][data-saved="0"]{color:var(--cyan)}
@media(max-width:600px){
 .thread-actions.post-actions,.feed-list .thread .thread-actions.post-actions{gap:4px}
 .post-actions .votes{gap:2px}
 .post-actions .action-label{display:none}
 .post-actions>[data-do=save],.post-actions>[data-do=share]{width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;justify-content:center;padding:10px}
 .post-actions>.comment-link{min-width:44px;min-height:44px;justify-content:center;font-variant-numeric:tabular-nums}
 .thread-composer-header h1{font-size:20px}
 .ticket-composer .form-actions{gap:12px}
 .ticket-composer .form-actions>label{display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin:0}
 .ticket-composer .form-actions input[type=file]{flex:1;width:100%;max-width:none;min-width:0}
 .toolbar{flex-wrap:nowrap}
 .toolbar input{flex:1;min-width:0}
 .toolbar button{flex-shrink:0}
}
