/* Shared X-style geometry for the existing, working community controls. */
:root{--x-ink:#0f1419;--x-muted:#536471;--x-rule:#eff3f4;--x-blue:#1d9bf0;--x-avatar:40px;--x-inset:16px;--x-gutter:12px}
html:has(#compose-dialog[open],#reply-dialog[open]){overflow:hidden}
.home-timeline-tabs{height:53px}
.home-timeline-tabs button{font-size:15px;font-weight:500}
.home-timeline-tabs button[aria-current=page]:after{width:56px}
.post-detail-header{box-sizing:border-box;min-height:53px;height:53px;gap:24px;padding:0 16px;background:#ffffffed;backdrop-filter:blur(12px)}
.post-detail-header h1{font-size:20px;font-weight:600;line-height:24px}
.post-detail-author>.post-avatar,.iv-author>.post-avatar{width:40px;height:40px}
.post-detail-body .post-detail-copy{font-size:16px;line-height:1.5}
.post-detail-body .post-detail-date{font-size:13px;color:var(--x-muted)}
#ideas-feed .idea-post{padding:12px 16px 12px 68px;transition:background-color .12s}
#ideas-feed .idea-post:hover,.pc-list>.idea-post:hover{background:#00000003}
#ideas-feed .idea-post>p{font-size:16px;line-height:1.5}
#ideas-feed .idea-meta .idea-author{font-size:15px;font-weight:600}
#ideas-feed .idea-handle,#ideas-feed .idea-published{font-size:13px;color:var(--x-muted)}
#ideas-feed .idea-meta>.post-avatar{width:40px;height:40px;left:-52px}
.content-action-bar>button[data-reaction]{font-variant-numeric:tabular-nums}
.content-action-bar>button[data-reaction] svg{width:18px;height:18px}
.content-action-bar .tag-pencil{display:none!important}
.content-action-bar .tag-tools:has(.post-tags:empty){display:none!important}
.composer-actions>button svg,.iv-reply-tools>button:not([type=submit]) svg{width:20px;height:20px;stroke-width:1.8}
.composer-actions>button:focus-visible,.iv-reply-tools>button:focus-visible{outline:2px solid var(--x-blue);outline-offset:-2px}
#compose-dialog{box-sizing:border-box;width:600px;max-width:calc(100vw - 32px);padding:0;border:0;border-radius:16px;margin:5vh auto auto;max-height:90dvh;overflow-y:auto;color:var(--x-ink)}
#compose-dialog::backdrop,#reply-dialog::backdrop{background:#0006}
#compose-dialog .compose-dialog-top{height:53px;box-sizing:border-box;padding:0 16px;position:sticky;top:0;z-index:4;background:white}
#compose-dialog .compose-dialog-top>button:first-child{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:26px;padding:0}
#compose-dialog .compose-dialog-top>button:hover,#reply-dialog header button:hover{background:#0f14190a}
#compose-dialog .compose-dialog-draft{font-size:14px;font-weight:500;color:var(--x-blue)}
#compose-dialog .composer{position:relative;margin:0;padding:12px 16px 16px 68px;border:0;border-radius:0;box-shadow:none;background:white}
#compose-dialog .home-composer-avatar{display:grid;top:12px;left:16px;width:40px;height:40px}
#compose-dialog .composer #post-text{font-size:20px;line-height:1.5;height:130px;min-height:130px;padding:4px 0;border:0;border-radius:0;resize:none}
#compose-dialog .composer #post-text::placeholder{font-size:20px;color:var(--x-muted)}
#compose-dialog .composer-toolbar{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--x-rule);gap:8px;flex-wrap:wrap}
#compose-dialog .composer-actions{gap:0}
#compose-dialog .composer-actions>button{width:34px;min-width:34px;height:34px;padding:7px;color:var(--x-blue)}
#compose-dialog .composer-submit{margin-left:auto}
#compose-dialog #save-draft{display:none}
#compose-dialog .composer-submit #preview-post{min-width:66px;height:36px;font-size:14px;font-weight:600}
#compose-dialog .composer-submit #preview-post:disabled{opacity:1;background:#cfd9de;color:#fff}
#reply-dialog>header{height:53px}
.rd-original{gap:12px;padding-bottom:16px}
.rd-meta{font-size:13px;line-height:20px;gap:4px}
.rd-copy{font-size:16px;line-height:1.5;margin:2px 0 12px}
.rd-context{color:var(--x-muted);font-size:14px;margin:12px 0 0}
.rd-context a{color:var(--x-blue);text-decoration:none}
.rd-editor textarea{line-height:1.5;padding:4px 0;min-height:120px;height:120px}
.rd-editor .iv-reply-tools{padding:10px 0 0 52px}
.rd-editor .iv-reply-tools>button:not([type=submit]){color:var(--x-blue);width:34px;height:34px}
.rd-editor [type=submit]{min-width:66px;min-height:36px;padding:7px 18px}
.pc-list>.idea-post{position:relative;padding:12px 16px 12px 68px}
.pc-list .idea-post .idea-meta{position:relative;min-height:22px;line-height:22px;gap:5px;padding-right:28px;margin:0}
.pc-list .idea-post .idea-meta>.post-avatar{position:absolute;left:-52px;top:0;width:40px;height:40px}
.pc-list .idea-post .idea-meta>.post-more{position:absolute;right:-4px;top:-5px;min-width:32px;min-height:32px}
.pc-list .idea-post .pc-post-copy{margin:2px 0 10px;font-size:16px;line-height:1.5}
.pc-list .idea-post .idea-author{color:var(--x-ink);font-size:15px;font-weight:600}
.pc-list .idea-post .idea-meta>small{font-size:13px;color:var(--x-muted)}
.pc-list .idea-post .content-action-bar{margin-top:8px}
.pc-list .idea-post .idea-media{border-radius:16px;overflow:hidden}
#personal-center .pc-header{min-height:53px;padding-top:7px;padding-bottom:7px}
.pc-profile{padding-inline:16px}
#personal-center nav button{min-height:53px;padding-top:14px;padding-bottom:14px;font-size:15px}
@media(min-width:1280px){.minimal-shell{max-width:1265px;grid-template-columns:275px minmax(0,990px)}.content-layout{grid-template-columns:minmax(0,600px) minmax(0,350px);gap:30px}}
@media(max-width:530px){
 .post-detail-body .post-detail-copy,#ideas-feed .idea-post>p,.pc-list .idea-post .pc-post-copy,.rd-copy{font-size:15px}
 #ideas-feed .idea-post,.pc-list>.idea-post{padding:12px 16px 12px 68px}
 #ideas-feed .idea-meta>.post-avatar,.pc-list .idea-post .idea-meta>.post-avatar{left:-52px;width:40px;height:40px}
 .home-timeline-tabs{height:50px}
 #compose-dialog[open]{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;inset:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}
 #compose-dialog .composer{padding:12px 16px 16px 68px}
 #compose-dialog .home-composer-avatar{left:16px}
 #compose-dialog .composer #post-text,#compose-dialog .composer #post-text::placeholder{font-size:18px}
 #compose-dialog .composer-toolbar{margin-left:-52px}
 #compose-dialog .composer-submit{gap:6px}
 .rd-editor .iv-reply-tools{padding-left:0}
 #personal-center nav button{font-size:14px}
}
@media(prefers-reduced-motion:reduce){#ideas-feed .idea-post{transition:none}}

/* Keep reply context and quoted articles within a compact preview. */
.rd-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.rd-source-link{display:inline-block;margin:0 0 8px;color:#1d9bf0;font-size:13px;text-decoration:none}
.rd-source-link:hover{text-decoration:underline}
.quoted-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.rd-editor textarea{resize:none}
