/* Detail-only layout: the shared feed and navigation retain their own sizing. */
.thread-album-error{position:absolute;inset:0;display:grid;place-items:center;padding:30px;color:var(--g-text);font-size:14px;background:var(--g-surface-2)}.thread-album-slide[data-image-error=true]>img{opacity:0}.thread-shell [data-comment-id]{scroll-margin-top:calc(var(--thread-top) + 122px)}.thread-anchor-target{outline:2px solid var(--g-primary);outline-offset:-2px;border-radius:8px}
.thread-action-error,.thread-action-success{padding:12px 16px;margin-bottom:12px;border:1px solid var(--g-border);border-radius:10px;background:var(--g-surface);font-size:13px;line-height:1.7}.thread-action-error{color:var(--g-danger-text,#c73535)}.thread-action-success{color:var(--g-primary-text)}
.thread-shell .thread-discussion-write{display:none}.thread-compose .comment-composer{border:0;padding:0;box-shadow:none;background:transparent}
body.thread-panel-open{position:fixed;top:var(--thread-scroll);left:0;right:0;width:100%;overflow:hidden}.thread-status{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100vw - 32px);border:1px solid var(--g-border);border-radius:10px;background:var(--g-surface);color:var(--g-text);padding:12px 18px;box-shadow:0 8px 30px #0002;font-size:13px}
.thread-shell{--thread-top:env(safe-area-inset-top,0px);color:var(--g-text)}
.thread-shell [hidden],.thread-media-dialog [hidden]{display:none!important}.thread-shell :is(button,a,summary,select){touch-action:manipulation}.thread-shell :is(button,a,summary,select):focus-visible,.thread-media-dialog :is(button,input):focus-visible{outline:2px solid var(--g-primary-text,var(--g-primary));outline-offset:3px}.thread-shell .material-symbols-outlined{font-size:20px;line-height:1;flex-shrink:0}.thread-main,.thread-story,.thread-discussion,.thread-body{min-width:0}.thread-reading-grid{display:block}.thread-story,.thread-discussion{display:block}.thread-breadcrumb{position:relative;display:flex;min-height:44px;align-items:center;gap:12px;margin-bottom:14px;color:var(--g-muted);font-size:13px;z-index:15}.thread-breadcrumb>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;flex-shrink:0}.thread-breadcrumb>a:hover{color:var(--g-primary-text)}.thread-breadcrumb-separator{opacity:.45}.thread-scroll-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition:opacity .15s;font-weight:600;color:var(--g-text);font-size:14px}.thread-scrolled .thread-scroll-title{opacity:1}.thread-more{position:relative;margin-left:auto;flex-shrink:0}.thread-more>summary{list-style:none}.thread-more>summary::-webkit-details-marker{display:none}.thread-more-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:50;width:220px;border:1px solid var(--g-border);border-radius:12px;background:var(--g-surface);padding:6px;box-shadow:0 12px 36px #0002;max-height:var(--post-actions-max-height,70vh);overflow:auto}.thread-more[data-side=up]>.thread-more-panel{top:auto;bottom:calc(100% + 6px)}.thread-more-panel>:is(a,button),.thread-more-panel>form>button{display:flex;width:100%;min-height:44px;align-items:center;gap:10px;border-radius:8px;padding:9px 12px;text-align:left;font-size:13px;color:var(--g-text)}.thread-more-panel>:is(a,button):hover,.thread-more-panel>form>button:hover{background:var(--g-surface-2)}.thread-more-panel .thread-danger{color:var(--g-danger-text,#c73535)}.thread-more-panel .post-actions-report summary{width:100%;gap:10px;padding-inline:12px;font-size:13px;font-weight:400;color:var(--g-text)}.thread-more-panel .post-actions-report form{position:static;width:100%;margin-top:4px;box-shadow:none}.thread-article{min-width:0;border:1px solid var(--g-border);border-radius:16px;background:var(--g-surface);padding:30px 32px}.thread-article-header{margin-bottom:26px}.thread-author{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.thread-avatar{display:flex;width:42px;height:42px;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border-radius:50%;background:var(--g-surface-2);font-weight:600;color:var(--g-muted)}.thread-avatar img{width:100%;height:100%;object-fit:cover}.thread-author-copy{min-width:0;flex:1}.thread-author-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}.thread-author-name:hover{color:var(--g-primary-text)}.thread-author-meta{display:flex;gap:6px;flex-wrap:wrap;font-size:11px;color:var(--g-muted);margin-top:4px}.thread-author-badges{display:flex;gap:5px;flex-wrap:wrap;max-width:160px}.thread-author-badges span{border-radius:4px;background:var(--g-surface-2);padding:2px 5px;font-size:10px;color:var(--g-muted)}.thread-author-badges .thread-vip{color:var(--g-primary-text)}.thread-author>[id^=follow-]{min-height:36px;padding:6px 10px;font-weight:500;font-size:12px;border-radius:8px}.thread-author>[id^=follow-] .material-symbols-outlined{font-size:16px}.thread-flags{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}.thread-flags:empty{display:none}.thread-flags>span{display:inline-flex;gap:4px;align-items:center;padding:2px 6px;border-radius:4px;background:color-mix(in srgb,var(--g-primary) 8%,var(--g-surface));color:var(--g-primary-text);font-size:11px}.thread-flags .material-symbols-outlined{font-size:13px}.thread-article h1{margin-top:22px;font-size:28px;line-height:1.45;letter-spacing:-.015em;font-weight:600;overflow-wrap:anywhere}.thread-flags:not(:empty)+h1{margin-top:12px}.thread-body{font-size:17px;line-height:1.8;overflow-wrap:anywhere}.thread-body>div{min-width:0}.thread-body :is(h1,h2,h3,h4,h5,h6){scroll-margin-top:calc(var(--thread-top) + 64px)}.thread-body pre{max-width:100%;overflow-x:auto;overflow-wrap:normal}.thread-body img{max-width:100%}.thread-content-notice{padding:14px 0;margin-top:20px;color:var(--g-muted);font-size:13px;line-height:1.7;border-top:1px solid var(--g-border)}.thread-article-footer{margin-top:30px;border-top:1px solid var(--g-border);padding-top:18px}.thread-meta-line{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:var(--g-muted);font-size:11px}.thread-meta-line>span,.thread-board-tag{display:inline-flex;align-items:center;gap:5px}.thread-meta-line .material-symbols-outlined{font-size:15px}.thread-board-tag{color:var(--g-primary-text);padding:4px 8px;border-radius:6px;background:var(--g-surface-2)}.thread-interactions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:18px}.thread-interaction-primary,.thread-interaction-secondary{display:flex;align-items:center;gap:6px}.thread-button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:6px;border:1px solid var(--g-border);border-radius:8px;padding:8px 12px;background:var(--g-surface);color:var(--g-text);font-size:13px;line-height:1.3;font-weight:500}.thread-button:hover{background:var(--g-surface-2)}.thread-button:disabled{cursor:wait;opacity:.6}.thread-button .material-symbols-outlined{font-size:18px}.thread-button-quiet{border-color:transparent;background:transparent;color:var(--g-muted)}.thread-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:42px;min-height:42px;border-radius:9px;color:var(--g-muted);font-size:12px}.thread-icon-button:hover{background:var(--g-surface-2);color:var(--g-text)}.thread-icon-button[aria-pressed=true]{color:var(--g-primary-text)}.thread-icon-button[aria-pressed=true] .material-symbols-outlined{font-variation-settings:'FILL' 1}.thread-muted{color:var(--g-muted);font-size:12px}.thread-interactions [id^=like-btn-post-],.thread-interactions [id^=favorite-btn-]{min-height:40px;border:1px solid var(--g-border);border-radius:8px;padding:8px 12px;font-weight:500;font-size:13px;background:transparent}.thread-interactions [aria-pressed=true]{border-color:color-mix(in srgb,var(--g-primary) 35%,var(--g-border));background:color-mix(in srgb,var(--g-primary) 7%,var(--g-surface));color:var(--g-primary-text)}
.thread-reward{border:1px solid var(--g-border);border-radius:12px;background:var(--g-surface)}.thread-reward>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:16px 20px;font-size:14px;font-weight:500;list-style:none}.thread-reward>summary::-webkit-details-marker{display:none}.thread-reward-chevron{margin-left:auto;transition:transform .15s}.thread-reward[open] .thread-reward-chevron{transform:rotate(180deg)}.thread-reward #thread-reward-panel{margin:0;border:0;border-top:1px solid var(--g-border);border-radius:0 0 12px 12px;padding:20px}.thread-reward #thread-reward-title{font-size:16px;font-weight:600}.thread-context-sticky{position:sticky;top:calc(var(--thread-top) + 24px);display:grid;gap:16px}.thread-context-card{border:1px solid var(--g-border);border-radius:12px;background:var(--g-surface);padding:18px;min-width:0}.thread-context-card h2{font-size:12px;font-weight:500;color:var(--g-muted);margin-bottom:14px}.thread-context-card p{font-size:12px;line-height:1.75;color:var(--g-muted);margin-top:12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.thread-context-author,.thread-context-board{display:flex;align-items:center;gap:9px;font-size:13px}.thread-context-author strong,.thread-context-board strong{flex:1;min-width:0;font-weight:500;overflow-wrap:anywhere}.thread-context-author .thread-avatar{width:34px;height:34px}.thread-context-board img{width:32px;height:32px;border-radius:8px;object-fit:cover}.thread-context-author>.material-symbols-outlined,.thread-context-board>.material-symbols-outlined{font-size:16px;color:var(--g-muted)}.thread-related{display:grid;gap:13px;font-size:12px;line-height:1.7}.thread-related a{overflow-wrap:anywhere}.thread-related a:hover{color:var(--g-primary-text)}.thread-toc nav{display:grid;gap:3px;max-height:320px;overflow:auto}.thread-toc a{display:block;border-left:2px solid var(--g-border);padding:7px 0 7px 12px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:var(--g-muted)}.thread-toc a[data-level="3"]{padding-left:23px}.thread-toc a[aria-current=true]{border-color:var(--g-primary);color:var(--g-primary-text);background:color-mix(in srgb,var(--g-primary) 5%,transparent)}
.thread-comments{border:1px solid var(--g-border);border-radius:12px;background:var(--g-surface);min-width:0}.thread-comments-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:var(--thread-top);z-index:8;border-bottom:1px solid var(--g-border);border-radius:12px 12px 0 0;background:var(--g-surface);padding:16px 22px}.thread-comments-toolbar h2{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600}.thread-comments-toolbar h2 span{color:var(--g-muted);font-size:13px;font-weight:400}.thread-sort select{max-width:150px;min-height:36px;border:1px solid var(--g-border);border-radius:8px;background:var(--g-surface-2);color:var(--g-text);padding:6px 26px 6px 10px;font-size:12px}.thread-comments-loading{height:0;overflow:hidden;text-align:center;color:var(--g-muted);font-size:12px}.thread-comments.htmx-request>.thread-comments-loading{height:auto;padding:10px}.thread-comments-list,.thread-pinned-comments{padding-inline:22px}.thread-pinned-comments{border-bottom:1px solid var(--g-border)}.thread-comment-sentinel{padding:20px 0 24px;text-align:center;display:grid;gap:10px;justify-items:center;font-size:12px;color:var(--g-muted)}.thread-comment-sentinel .htmx-indicator{display:none}.thread-comment-sentinel .htmx-request .htmx-indicator{display:inline}.thread-comment-sentinel .htmx-request .thread-load-label{display:none}.thread-empty{display:grid;justify-items:center;gap:14px;padding:40px 16px;color:var(--g-muted);font-size:13px;text-align:center}.thread-empty>.material-symbols-outlined{font-size:30px;opacity:.7}.thread-compose{padding:20px 22px;scroll-margin-top:calc(var(--thread-top) + 32px)}.thread-compose-heading{display:flex;justify-content:space-between;align-items:center}.thread-compose-heading h2{font-size:17px;font-weight:600}.thread-compose .comment-form-wrapper{margin:14px 0 0}.thread-compose-close,.thread-discussion-close{display:none}.thread-mobile-bar{display:none}.thread-reading-tools{position:fixed;bottom:24px;right:24px;z-index:19;display:flex;align-items:center;gap:8px}.thread-top,.thread-continue{box-shadow:0 4px 20px #0001;border:1px solid var(--g-border);background:var(--g-surface)}.thread-reading-progress{position:fixed;top:var(--thread-top);left:0;right:0;height:2px;z-index:35;pointer-events:none}.thread-reading-progress>span{display:block;width:100%;height:100%;background:var(--g-primary);transform:scaleX(0);transform-origin:left;transition:transform .1s linear}.thread-panel-backdrop{position:fixed;inset:0;z-index:59;background:var(--app-modal-scrim)}.thread-shell:has(.thread-compose[data-open=true]) .thread-reading-tools{visibility:hidden}
.thread-album{margin:0 0 24px}.thread-album-stage{position:relative;display:grid;align-items:center;background:color-mix(in srgb,var(--g-surface-2) 70%,#101214);border-radius:12px;overflow:hidden;min-height:260px;aspect-ratio:1.12}.thread-album-slide{width:100%;height:100%;display:block;cursor:zoom-in;overflow:hidden}.thread-album-slide>img{width:100%;height:100%;max-height:72vh;object-fit:contain}.thread-album-prev,.thread-album-next{position:absolute;top:50%;transform:translateY(-50%);border:1px solid #ffffff26;background:#0006;color:#fff;border-radius:50%;z-index:2}.thread-album-prev{left:12px}.thread-album-next{right:12px}.thread-album-prev:disabled,.thread-album-next:disabled{opacity:.25;cursor:default}.thread-album-prev:hover,.thread-album-next:hover{background:#0009;color:#fff}.thread-album-counter{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:5px 11px;border-radius:20px;background:#0008;color:#fff;font-size:12px;pointer-events:none}.thread-album-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:10px}.thread-album-thumbs{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 4px;scrollbar-width:thin}.thread-album-thumbs button{flex:0 0 52px;width:52px;height:52px;overflow:hidden;border-radius:8px;border:2px solid transparent;opacity:.7}.thread-album-thumbs button[aria-current=true]{border-color:var(--g-primary);opacity:1}.thread-album-thumbs img{width:100%;height:100%;object-fit:cover}.thread-media-dialog{width:min(760px,calc(100vw - 32px));max-height:86dvh;padding:0}.thread-media-dialog-header,.thread-media-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--g-border)}.thread-media-dialog-header h2{font-size:17px;font-weight:600}.thread-media-dialog-footer{border-bottom:0;border-top:1px solid var(--g-border);flex-wrap:wrap}.thread-media-dialog-footer p{color:var(--g-muted);font-size:12px;line-height:1.6}.thread-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;max-height:58dvh;overflow:auto}.thread-media-grid label,.thread-media-grid>button{position:relative;min-width:0;aspect-ratio:1;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;background:var(--g-surface-2)}.thread-media-grid label:has(:checked){border-color:var(--g-primary)}.thread-media-grid img{width:100%;height:100%;object-fit:cover}.thread-media-grid input{position:absolute;right:8px;top:8px;width:20px;height:20px;accent-color:var(--g-primary)}.thread-media-grid .thread-media-number{position:absolute;bottom:5px;left:7px;background:#0009;border-radius:4px;padding:2px 5px;color:#fff;font-size:11px}.thread-media-dialog .material-symbols-outlined{font-size:20px}
@media(prefers-reduced-motion:reduce){.thread-shell *{scroll-behavior:auto!important;transition:none!important}}


/* Post detail follows the reference: one white reading column and its context rail. */
.thread-shell .design-shell{padding-bottom:0}
.thread-shell .design-main{padding-bottom:0}
.thread-main{position:relative;min-width:0;width:100%;padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));overflow-anchor:none}
.thread-breadcrumb{position:sticky;top:var(--thread-top);height:56px;min-height:56px;margin:0;padding:0 10px;gap:8px;border:1px solid var(--g-border);border-bottom-color:var(--g-border);border-radius:14px 14px 0 0;background:var(--g-surface);z-index:25}
.thread-breadcrumb>a{min-width:44px}
.thread-toolbar-title{flex:1;min-width:0;text-align:center;font-size:16px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-breadcrumb>.thread-more>summary{min-width:44px}
.thread-breadcrumb .thread-more{margin-left:0}
.thread-breadcrumb .design-icon{font-size:24px}
.thread-shell .right-docked .thread-context-open{display:none}
.thread-article{border:1px solid var(--g-border);border-top:0;border-bottom:0;border-radius:0;padding:18px 24px 20px;background:var(--g-surface)}
.thread-article-header{margin:0 0 20px}
.thread-article h1{margin:0 0 18px;font-size:22px;font-weight:500;line-height:1.55;letter-spacing:0;color:var(--g-text)}
.thread-flags{margin:0 0 12px}
.thread-author{gap:10px;padding-bottom:16px;border-bottom:1px solid var(--g-border);flex-wrap:nowrap}
.thread-avatar{width:35px;height:35px}
.thread-author-copy{flex:1;min-width:0}
.thread-author-name-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.thread-author-name{font-size:15px;font-weight:500;line-height:1.5}
.thread-author-meta{font-size:11px;line-height:1.65;margin-top:3px}
.thread-author-badges{max-width:none;align-items:center}
.thread-author-badges span{font-size:10px;border-radius:50px;line-height:15px;padding:0 5px}
.thread-author-actions{display:flex;gap:12px;align-items:center;flex:none}
.thread-author-actions [id^=follow-],.thread-author-actions>.thread-button{min-height:40px;border:0;border-radius:8px;padding:0 16px;font-size:13px;font-weight:400;background:color-mix(in srgb,var(--g-primary) 7%,var(--g-surface));color:var(--g-primary-text)}
.thread-author-actions [id^=follow-][aria-pressed=true]{background:var(--g-surface-2);color:var(--g-muted)}
.thread-author-actions [id^=follow-] .material-symbols-outlined{font-size:18px}
.thread-body,.thread-body .rich-text-content{font-size:16px;line-height:1.85;letter-spacing:0;color:var(--g-text)}
.thread-body .content-line{margin:0 0 16px}
.thread-body :is(h1,h2,h3,h4,h5,h6){scroll-margin-top:calc(var(--thread-top) + 76px)}
.thread-article-footer{margin-top:16px;border:0;padding:0}
.thread-meta-line{gap:16px;min-height:40px;font-size:11px;color:var(--g-muted)}
.thread-meta-line>button{display:inline-flex;align-items:center;gap:3px;min-height:40px}
.thread-meta-line .thread-board-tag{background:transparent;border-radius:0;padding:0;order:3;margin-left:auto}
.thread-reward{border:1px solid var(--g-border);border-top:0;border-radius:0;padding:0;background:var(--g-surface)}
.thread-reward:not([open]){display:none}
.thread-reward #thread-reward-panel{border-radius:0}
.thread-context{display:block;min-width:0}
.thread-context-sticky{display:grid;gap:12px;position:static}
.thread-context-card{padding:18px;border-radius:12px}
.thread-context-card h2{font-size:15px;font-weight:600;color:var(--g-text);margin-bottom:14px}
.thread-context-card p{font-size:12px;line-height:1.8}
.thread-context-author,.thread-context-board{font-size:14px}
.thread-context-author .thread-avatar{width:35px;height:35px}
.thread-context-board img{width:42px;height:42px;border-radius:10px}
.thread-context-card .thread-button{width:100%;margin-top:12px;color:var(--g-primary-text);background:color-mix(in srgb,var(--g-primary) 7%,var(--g-surface));border:0}
.thread-discussion{border-top:7px solid var(--g-surface-2);background:var(--g-surface);border-radius:0 0 12px 12px}
.thread-comments{border:1px solid var(--g-border);border-top:0;border-radius:0 0 12px 12px;padding:0 24px 12px}
.thread-comments-toolbar{min-height:64px;padding:0;gap:8px;top:calc(var(--thread-top) + 56px);border-radius:0;z-index:20}
.thread-comments-toolbar h2{gap:4px;white-space:nowrap}
.thread-sort{display:flex;align-items:center;gap:0;padding:3px;border-radius:24px;background:var(--g-surface-2);flex:none}
.thread-sort a{position:relative;display:grid;place-items:center;min-width:40px;height:32px;border-radius:20px;color:var(--g-muted);font-size:11px}
.thread-sort a::before{content:'';position:absolute;inset:-6px 0}
.thread-sort a[aria-current=true]{color:var(--g-text);background:var(--g-surface);box-shadow:0 1px 4px #26313d14}
.thread-comments-list,.thread-pinned-comments{padding:0}
.thread-comment-sentinel{font-size:11px;padding:22px 0 8px}
.thread-compose{display:none;position:fixed;left:var(--thread-compose-left,50%);top:auto;bottom:var(--thread-keyboard,0px);transform:translateX(-50%);width:min(720px,var(--thread-compose-width,100%));max-height:calc(var(--thread-compose-viewport-height,100dvh) - 12px);padding:0;overflow:hidden;overscroll-behavior:contain;z-index:70}
.thread-compose[data-open=true]{display:flex;flex-direction:column}
.thread-compose .comment-form-wrapper{display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden}
.thread-compose .comment-composer{max-height:inherit}
.thread-compose-close{display:flex}
.thread-panel-backdrop{z-index:59}
.thread-compose .comment-form-wrapper{margin:0}
.thread-mobile-bar{position:fixed;left:var(--thread-bar-left,0px);bottom:0;width:var(--thread-bar-width,100%);min-height:66px;display:flex;align-items:center;gap:12px;z-index:40;background:var(--g-surface);border:1px solid var(--g-border);padding:10px 16px max(10px,env(safe-area-inset-bottom,0px))}
.thread-write-button{display:flex;align-items:center;flex:1;gap:6px;min-width:0;height:40px;padding:0 12px;border-radius:10px;background:var(--g-surface-2);color:var(--g-muted);font-size:13px;text-align:left}
.thread-mobile-bar>.thread-icon-button{min-width:44px;min-height:44px;border-radius:8px;font-size:12px;gap:5px}
.thread-mobile-bar .design-offer-icon{font-size:23px}
.thread-write-button .design-offer-icon{font-size:18px}
.thread-mobile-bar [aria-pressed=true]{background:color-mix(in srgb,var(--g-primary) 7%,var(--g-surface));color:var(--g-primary-text)}
.thread-reading-tools{right:max(16px,calc(100vw - var(--thread-bar-left,0px) - var(--thread-bar-width,100%) + 12px));bottom:88px;z-index:41}
.thread-reading-progress{top:0}
.thread-shell [data-comment-id]{scroll-margin-top:calc(var(--thread-top) + 134px)}
.thread-context-sticky{position:static;display:grid;gap:12px}
.thread-context-card{padding:18px;border-radius:12px}
.thread-context-card h2{margin:0 0 14px;font-size:15px;font-weight:600;color:var(--g-text)}
.thread-context-card p{font-size:12px;line-height:1.8;margin:12px 0}
.thread-context-board{gap:10px;font-size:15px}
.thread-context-symbol{display:grid;place-items:center;width:42px;height:42px;flex:none;overflow:hidden;border-radius:10px;background:color-mix(in srgb,var(--g-primary) 8%,var(--g-surface));color:var(--g-primary-text)}
.thread-context-symbol img{width:100%;height:100%;border-radius:0;object-fit:cover}
.thread-context-symbol .design-icon{font-size:24px}
.thread-context-enter{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:40px;margin-top:14px;padding:0 16px;border-radius:8px;background:color-mix(in srgb,var(--g-primary) 7%,var(--g-surface));color:var(--g-primary-text);font-size:13px}
.thread-context-enter .design-icon{font-size:18px}
.thread-context-person{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--g-border);min-width:0}
.thread-context-person:last-child{border:0;padding-bottom:0}
.thread-context-person-copy{flex:1;min-width:0}
.thread-context-person-name{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.thread-context-person-name strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
.thread-context-level{font-size:10px;line-height:16px;padding:0 5px;border-radius:8px;background:var(--g-surface-2);color:var(--g-muted)}
.thread-context-person-copy small{display:block;margin-top:3px;font-size:11px;line-height:1.65;color:var(--g-muted);overflow-wrap:anywhere}
.thread-context-person>.design-icon{display:grid;place-items:center;width:40px;min-height:44px;flex:none;color:var(--g-muted);font-size:24px}
.thread-context-circle{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 0}
.thread-context-circle strong{flex:1;min-width:0;font-size:13px;font-weight:500;overflow-wrap:anywhere}
.thread-context-circle>.design-icon,.thread-context-author>.design-icon{font-size:20px;color:var(--g-muted);flex:none}
.thread-context :is(.thread-context-board,.thread-context-person,.thread-context-circle,.thread-context-author):hover strong{color:var(--g-primary-text)}
.thread-context-author{min-height:44px;font-size:14px}
.thread-context-author .thread-avatar{width:35px;height:35px}
.thread-related{gap:12px}
.thread-related a{display:block}
.thread-related strong{display:block;font-size:13px;line-height:1.7;font-weight:500}
.thread-related small{display:flex;gap:8px;flex-wrap:wrap;margin-top:3px;font-size:11px;line-height:1.65;color:var(--g-muted)}
@media(max-width:1279px){
 .thread-shell-album .thread-discussion{position:fixed;inset:auto 0 0;z-index:60;display:none;max-height:85dvh;background:var(--g-surface);border:0;border-radius:18px 18px 0 0;padding-top:44px;overflow:auto;overscroll-behavior:contain;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .thread-shell-album .thread-discussion[data-open=true]{display:block}
 .thread-shell-album .thread-discussion-close{display:flex;position:absolute;right:12px;top:4px;z-index:21}
 .thread-shell-album .thread-discussion-write{display:flex;position:absolute;left:12px;top:2px}
 .thread-shell-album .thread-comments{border:0}
 .thread-shell-album .thread-comments-toolbar{top:0}
 .thread-shell-album .thread-album-stage{max-height:70vh}
}
@media(max-width:767px){
 .thread-shell .design-shell{padding-inline:0}
 .thread-main{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
 .thread-breadcrumb{border-inline:0;border-radius:0;padding:0 6px;gap:4px}
 .thread-toolbar-title{text-align:center}
 .thread-article{border:0;border-radius:0;padding:15px 12px 14px}
 .thread-article h1{font-size:22px;line-height:1.55;margin-bottom:16px}
 .thread-article-header{margin-bottom:18px}
 .thread-author{gap:8px;padding-bottom:14px}
 .thread-author-name{font-size:14px}
 .thread-author-meta{font-size:10px}
 .thread-author-actions{gap:8px}
 .thread-author-actions [id^=follow-],.thread-author-actions>.thread-button{padding-inline:10px;min-height:44px;font-size:12px}
 .thread-author-actions .thread-button .material-symbols-outlined{font-size:16px}
 .thread-meta-line{gap:10px;font-size:10px}
 .thread-comments{padding:0 12px 12px;border-inline:0;border-radius:0}
 .thread-comments-toolbar{min-height:60px;gap:5px}
 .thread-comments-toolbar h2{font-size:15px}
 .thread-comments-toolbar h2 span{font-size:12px}
 .thread-sort a{min-width:35px}
 .thread-mobile-bar{left:0;width:100%;gap:3px;padding:8px 8px max(8px,env(safe-area-inset-bottom,0px));border-inline:0}
 .thread-mobile-bar>.thread-icon-button{min-width:36px;width:38px;gap:0;flex:none}
 .thread-mobile-bar>.thread-icon-button>span{display:none}
 .thread-mobile-bar .design-offer-icon{font-size:24px}
 .thread-mobile-bar .thread-write-button .design-offer-icon{font-size:18px}
 .thread-write-button{padding-inline:8px;white-space:nowrap;font-size:12px}
 .thread-shell-album .thread-discussion{max-height:88dvh}
 .thread-album-stage{margin-inline:-12px;border-radius:0;aspect-ratio:1;min-height:220px}
 .thread-album-slide>img{max-height:65vh}
 .thread-album-prev{left:8px}.thread-album-next{right:8px}
 .thread-media-dialog{width:calc(100vw - 20px)}
 .thread-media-grid{gap:8px;padding:12px}.thread-media-dialog-header,.thread-media-dialog-footer{padding:14px}
}
@media(max-width:359px){.thread-write-button .design-offer-icon{display:none}.thread-sort a{min-width:33px}.thread-comments-toolbar h2{font-size:14px}.thread-author-actions{gap:6px}.thread-author-actions [id^=follow-],.thread-author-actions>.thread-button{padding-inline:8px}.thread-author-actions .material-symbols-outlined{display:none}.thread-author-badges{display:none}}

/* Comment detail follows the reference card proportions. */
.thread-comments .comment-card{--comment-indent:45px;--comment-copy:#41464c;--comment-replies-bg:#f1f2f4;padding:18px 0;border-bottom:1px solid var(--g-border)}
.thread-comments .comment-card:last-child{border-bottom:0}
.thread-comments .comment-header{min-height:35px;gap:10px}
.thread-comments .comment-avatar,.thread-comments .comment-card>.flex>a>div:first-child{width:35px;height:35px}
.thread-comments .comment-name-row{gap:4px 6px;min-height:18px}
.thread-comments .comment-author-name{font-size:13px;font-weight:500}
.thread-comments .level-chip{min-height:18px;padding:0 5px;border:0;border-radius:50px;color:#fff;font-size:10px;font-weight:700;line-height:18px}
.thread-comments .level-chip-gray{background:#89959e}.thread-comments .level-chip-green{background:#66a17d}.thread-comments .level-chip-blue{background:#3f98d2}.thread-comments .level-chip-gold{background:#b98121}
.thread-comments .comment-date{margin-top:3px;font-size:11px;line-height:1.65}
.thread-comments .comment-text{margin:10px 0 3px var(--comment-indent);color:var(--comment-copy);font-size:14px;line-height:1.85}
.thread-comments .comment-media{width:calc(100% - var(--comment-indent));max-width:380px;margin:12px 0 0 var(--comment-indent);gap:6px}
.thread-comments .comment-media-item{border-radius:9px}
.thread-comments .comment-replies{margin:12px 0 6px var(--comment-indent);padding:5px 10px;border-radius:5px;background:var(--comment-replies-bg)}
.thread-comments .comment-reply-preview{padding:6px 0;font-size:13.5px;line-height:1.45}
.thread-comments .comment-replies-more{display:inline-flex;min-height:44px;align-items:center;gap:2px;color:var(--g-primary-text);font-size:13px}
.thread-comments .comment-replies-more .material-symbols-outlined{font-size:18px}
.thread-comments .comment-actions{min-height:44px;margin-top:3px;padding-left:var(--comment-indent);gap:14px}
.thread-comments .comment-actions>[data-like-target],.thread-comments .comment-actions>.comment-guest-like{margin-left:auto}
.thread-comments .comment-action{color:#6d7885;font-size:12px}
.thread-comments .comment-action:hover{color:var(--g-primary-text)}
.thread-comments .thread-comment-sentinel{padding:22px 0 8px}
.thread-comments .thread-comment-sentinel .thread-button{min-height:44px;border-color:transparent;background:transparent;color:var(--g-primary-text);font-size:13px}
.thread-comments .thread-empty{padding:25px 0;color:var(--g-muted);font-size:13px}
.comment-dialog-scroll>.comment-card{padding:18px 20px 14px;border-bottom:8px solid var(--g-surface-2)}
.comment-dialog-scroll #sub-reply-items>.comment-card{padding:16px 20px;border-bottom:1px solid var(--g-border)}
.comment-dialog-scroll .comment-text{margin-top:12px;margin-bottom:4px;line-height:1.65}
@media(max-width:767px){.thread-comments .comment-card{--comment-indent:44px}.thread-comments .comment-actions{gap:10px}.thread-comments .comment-media{width:calc(100% - 44px)}.comment-dialog-scroll>.comment-card,.comment-dialog-scroll #sub-reply-items>.comment-card{padding-inline:14px}}
html[data-theme="dark"] .thread-comments .comment-card{--comment-copy:var(--g-text);--comment-replies-bg:var(--g-surface-2)}
