/* Sitalk app · community.css
 * Forum, people, profiles, explore and social.
 * Load order and ownership: docs/APP-CSS.md */

.avatar{
 width:38px;
 height:38px;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 border-radius:50%;
 overflow:hidden;
 flex-shrink:0;
 font-size:15px;
 font-weight:600;
}

.avatar svg{
 width:100%;
 height:100%;
}

.avatar-peach{
 background:var(--peach);
}

.avatar-lilac{
 background:var(--lilac);
}

.avatar-blue{
 background:var(--blue);
}

.social-buttons{
 display:grid;
 gap:12px;
}

.social-button:hover{
 background:var(--surface-soft);
}

.social-button:active{
 transform:translateY(1px);
}

.handle-input{
 position:relative;
}

.handle-input>span{
 position:absolute;
 left:14px;
 top:13px;
 color:var(--muted);
}

.handle-input input{
 padding-left:32px;
}

.handle-preview{
 font-size:12px;
 color:var(--muted);
 margin-top:4px;
}

.profile-mini{
 display:flex;
 padding:20px 0;
 align-items:center;
 border-bottom:1px solid var(--line);
}

.profile-mini strong{
 display:block;
}

.profile-mini small{
 color:var(--muted);
 display:block;
}

.public-view{
 width:min(1100px,90%);
 margin:40px auto 72px;
}

.people-grid{
 display:grid;
}

.person-profile{
 background:var(--surface);
 border:1px solid var(--line);
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 min-height:230px;
}

.person-profile h2{
 letter-spacing:-.3px;
}

.person-profile .username{
 font-size:12px;
 color:var(--muted);
 margin-top:3px;
}

.person-profile p{
 color:var(--muted);
 margin-top:12px;
 overflow-wrap:anywhere;
}

.topic-tags{
 display:flex;
 margin-top:16px;
}

.topic-tags span{
 background:var(--surface-soft);
 border:1px solid var(--line);
 color:var(--muted);
}

.person-profile .text-link{
 font-size:12px;
 margin-top:auto;
 padding-top:20px;
}

.profile-detail{
 max-width:740px;
 margin:32px auto;
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:18px;
 padding:52px;
}

.profile-detail h1{
 font-size:34px;
 letter-spacing:-1.3px;
}

.profile-detail .username{
 color:var(--muted);
 margin:8px 0 24px;
 font-size:13px;
}

.profile-detail .profile-bio{
 font-size:15px;
 color:var(--muted);
 line-height:1.95;
 white-space:pre-line;
}

.profile-boundary{
 margin-top:32px;
 padding-top:24px;
 border-top:1px solid var(--line);
 font-size:12px;
 color:var(--muted);
 line-height:1.8;
}

@media (hover:hover) and (pointer:fine){
 .person-profile:hover{
  border-color:var(--line);
 }
}

@media (max-width:760px){
 .person-profile{
  min-height:220px;
 }
 .public-view{
  width:calc(100% - 42px);
  margin-top:20px;
 }
 .profile-detail{
  padding:28px;
  margin-top:20px;
 }
 .profile-detail h1{
  font-size:28px;
 }
}
.account-body .social-button{
 min-height:50px;
 padding:12px 16px;
 border-radius:12px;
}

.account-body .social-auth-note{
 font-size:12px;
 line-height:1.6;
 color:var(--muted);
 margin:12px 0 0;
}

.social-button{
 display:flex;
 align-items:center;
 width:100%;
 border:1px solid var(--line);
 background:var(--surface);
 color:var(--ink);
 font:inherit;
 font-weight:600;
 transition:background var(--motion-fast),transform var(--motion-fast);
 font-size:13px;
 gap:12px;
 justify-content:flex-start;
}

.social-button>.ui-icon:last-child{
 margin-left:auto;
}

@media (hover:hover) and (pointer:fine){
 .account-body .person-profile:hover{
  transform:translateY(-3px);
 }
}

@media (prefers-reduced-motion:reduce){
 .account-body .person-profile:hover{
  transform:none;
 }
}
.forum-thread-list{
 display:grid;
 gap:16px;
}

.forum-original{
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:13px;
 padding:28px;
 margin:20px 0;
}

.forum-original p,
.forum-reply p{
 font-size:14px;
 line-height:1.9;
 white-space:pre-wrap;
 overflow-wrap:anywhere;
}

.forum-reply{
 padding:24px 0;
 border-top:1px solid var(--line);
}

.forum-notice{
 background:var(--surface-soft);
 border:1px solid var(--line);
 border-radius:10px;
 padding:16px 20px;
 color:var(--muted);
 font-size:12px;
 line-height:1.8;
 margin:20px 0;
}

.forum-compose{
 padding:24px;
 border:1px solid var(--line);
 border-radius:13px;
 background:var(--surface-soft);
 margin:24px 0;
}

.forum-compose .field{
 margin-bottom:16px;
}

.forum-compose>p{
 font-size:12px;
 line-height:1.8;
 margin-bottom:16px;
 color:var(--muted);
}

.forum-search{
 margin:24px 0;
}

.forum-reply .quiet-button{
 margin-left:auto;
}

@media (max-width:760px){
 .forum-original{
  padding:20px;
 }
 .forum-compose{
  padding:20px;
 }
}
.profile-avatar{
 inline-size:48px;
 block-size:48px;
 flex-shrink:0;
 display:block;
 border-radius:14px;
}

.person-profile>.profile-avatar,
.profile-detail>.profile-avatar{
 inline-size:100px;
 block-size:100px;
 margin-block-end:20px;
 border-radius:26px;
}

.avatar-picker{
 border:0;
 padding:0;
 margin-block:0 32px;
 min-inline-size:0;
}

.avatar-picker legend{
 font-weight:650;
 font-size:16px;
}

.avatar-picker>p{
 font-size:13px;
 color:var(--muted);
 margin-block:8px 20px;
}

.avatar-options{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:16px;
}

.avatar-options label{
 position:relative;
 display:flex;
 align-items:center;
 gap:12px;
 padding:16px;
 border:1px solid var(--line);
 border-radius:16px;
 background:var(--surface);
 cursor:pointer;
 min-inline-size:0;
}

.avatar-options label:has(input:checked){
 border-color:var(--focus);
 background:var(--accent-soft);
}

.avatar-options input{
 inline-size:16px;
 block-size:16px;
 min-block-size:0;
 accent-color:var(--accent-solid);
}

.avatar-options span{
 font-size:12px;
}

.social-layout{
 display:grid;
 grid-template-columns:minmax(0,760px) minmax(220px,1fr);
 gap:44px;
 align-items:start;
 max-inline-size:1180px;
 margin-inline:auto;
}

.social-feed{
 min-inline-size:0;
}

.social-heading{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:20px;
 margin-block:40px 28px;
}

.social-heading h1{
 font-size:clamp(30px,3vw,44px);
 line-height:1.2;
 letter-spacing:-.045em;
 margin-block:12px;
}

.social-heading p{
 font-size:14px;
 color:var(--muted);
}

.social-heading .button{
 flex-shrink:0;
}

.social-aside{
 position:sticky;
 inset-block-start:36px;
 padding-block-start:52px;
}

.social-aside h2{
 font-size:22px;
 line-height:1.3;
 letter-spacing:-.5px;
}

.social-aside>p{
 font-size:13px;
 color:var(--muted);
 line-height:1.8;
 margin-block:20px;
}

.social-aside .text-link{
 margin-block:8px;
}

.social-project-note{
 padding:24px;
 border-radius:18px;
 background:var(--accent-soft);
 margin-block:36px;
}

.social-project-note h3{
 font-size:16px;
}

.social-project-note p{
 font-size:13px;
 color:var(--muted);
 margin-block:16px;
}

.social-project-note a{
 font-size:13px;
 font-weight:650;
 text-decoration:underline;
 text-underline-offset:4px;
}

.social-boundary{
 font-size:12px!important;
}

.social-post{
 display:flex;
 gap:16px;
 border-block-end:1px solid var(--line);
 min-inline-size:0;
}

.post-content{
 flex:1;
 min-inline-size:0;
}

.post-byline{
 display:flex;
 align-items:center;
 gap:12px;
 flex-wrap:wrap;
 margin-block-end:12px;
}

.post-byline>a:first-child{
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:8px;
 font-size:13px;
 min-inline-size:0;
}

.post-byline strong{
 overflow-wrap:anywhere;
}

.post-byline span,
.post-byline time{
 font-size:12px;
 color:var(--muted);
}

.post-consult{
 margin-inline-start:auto;
 display:grid;
 place-items:center;
 inline-size:36px;
 block-size:36px;
 border:1px solid var(--line);
 border-radius:50%;
}

.social-post h2{
 font-size:22px;
 line-height:1.3;
 letter-spacing:-.5px;
 margin-block:12px 20px;
 overflow-wrap:anywhere;
}

.rich-content{
 font-size:14px;
 line-height:1.8;
 overflow-wrap:anywhere;
 color:var(--ink);
}

.rich-content>*+*{
 margin-block-start:16px;
}

.rich-content ul,
.rich-content ol{
 padding-inline-start:24px;
}

.rich-content h1,
.rich-content h2,
.rich-content h3{
 font-size:22px;
 line-height:1.4;
 letter-spacing:-.5px;
 margin-block:20px 12px;
}

.rich-content pre{
 padding:16px;
 background:var(--surface-soft);
 border:1px solid var(--line);
 border-radius:12px;
 overflow:auto;
 white-space:pre;
 font-size:12px;
}

.rich-content pre code{
 white-space:pre;
}

.rich-content code{
 background:var(--surface-soft);
 padding:2px 4px;
 border-radius:4px;
 font-size:.9em;
}

.rich-content blockquote{
 border-inline-start:2px solid var(--line);
 margin-inline:0;
 padding-inline-start:20px;
 color:var(--muted);
}

.rich-content a{
 text-decoration:underline;
 text-underline-offset:4px;
 overflow-wrap:anywhere;
}

.post-excerpt{
 max-block-size:280px;
 overflow:hidden;
}

.post-media{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(0,1fr));
 gap:8px;
 margin-block:20px;
}

.post-media figure{
 margin:0;
 border-radius:18px;
 overflow:hidden;
 border:1px solid var(--line);
 background:var(--surface-soft);
}

.post-media img{
 inline-size:100%;
 block-size:auto;
 max-block-size:480px;
 object-fit:contain;
 display:block;
}

.post-actions{
 display:flex;
 align-items:center;
 gap:8px;
 margin-block-start:24px;
 flex-wrap:wrap;
}

.post-actions button{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:8px;
 min-inline-size:44px;
 min-block-size:44px;
 padding:8px 12px;
 border:0;
 border-radius:12px;
 background:transparent;
 color:var(--muted);
 font-size:12px;
}

.post-actions button[aria-pressed=true]{
 color:var(--ink);
 background:var(--accent-soft);
}

.post-actions button[aria-pressed=true] .icon-heart{
 fill:currentColor;
}

.post-actions .post-remove{
 margin-inline-start:auto;
}

.social-reply{
 margin-inline-start:calc(var(--reply-depth,0)*20px);
 border-inline-start:1px solid var(--line);
 padding-inline-start:16px;
}

.social-reply .profile-avatar{
 inline-size:36px;
 block-size:36px;
 border-radius:10px;
}

.reply-context{
 font-size:12px;
 color:var(--muted);
 margin-block-end:12px;
}

.reply-context a{
 text-decoration:underline;
}

.replies-heading{
 display:flex;
 justify-content:space-between;
 align-items:center;
 margin-block:32px 8px;
}

.replies-heading h2{
 font-size:20px;
 letter-spacing:-.5px;
}

.feed-compose{
 display:flex;
 align-items:center;
 gap:16px;
 inline-size:100%;
 padding:20px;
 margin-block:20px;
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:18px;
 text-align:start;
 color:var(--muted);
 font-size:14px;
}

.feed-compose>.ui-icon{
 margin-inline-start:auto;
}

.tweet-preview{
 border:1px solid var(--line);
 border-radius:16px;
 padding:20px;
 margin-block:20px;
 font-size:12px;
 background:var(--surface);
}

.tweet-preview>span{
 display:flex;
 align-items:center;
 gap:8px;
 font-weight:650;
}

.tweet-preview p{
 color:var(--muted);
 margin-block:12px;
}

.tweet-preview button{
 border:1px solid var(--line);
 border-radius:8px;
 padding:8px 12px;
 margin-inline-end:12px;
 min-block-size:40px;
 background:var(--surface-soft);
}

.tweet-preview>a{
 display:inline-flex;
 align-items:center;
 gap:4px;
 text-decoration:underline;
}

.tweet-container{
 max-inline-size:100%;
 overflow:hidden;
}

.tweet-container iframe{
 max-inline-size:100%!important;
}

.post-dialog{
 inline-size:min(660px,calc(100% - 32px));
 max-block-size:calc(100dvh - 32px);
 overflow:auto;
 padding:28px;
 border:1px solid var(--line);
 border-radius:24px;
 background:var(--surface);
 color:var(--ink);
 box-shadow:var(--shadow);
}

.post-dialog textarea{
 inline-size:100%;
 min-block-size:180px;
 border-color:var(--line);
 background:var(--surface-raised);
 resize:vertical;
 padding:20px;
}

.post-dialog #composer-preview{
 padding:20px;
 border:1px solid var(--line);
 border-radius:12px;
 margin-block:16px;
}

.image-attach{
 display:inline-flex;
 align-items:center;
 gap:8px;
 min-block-size:44px;
 cursor:pointer;
 border:1px solid var(--line);
 border-radius:10px;
 padding:8px 12px;
 font-size:12px;
}

.image-attach:focus-within{
 outline:2px solid var(--focus);
 outline-offset:3px;
}

@media (hover:hover) and (pointer:fine){
 .post-actions button:hover{
  background:var(--surface-soft);
  color:var(--ink);
 }
 .post-consult:hover{
  background:var(--surface-soft);
 }
}

@media (max-width:1200px){
 .social-layout{
  grid-template-columns:minmax(0,1fr);
 }
 .social-aside{
  display:none;
 }
 .avatar-options{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

@media (max-width:640px){
 .social-heading{
  margin-block:24px 20px;
  align-items:flex-start;
  flex-wrap:wrap;
 }
 .social-heading h1{
  font-size:32px;
 }
 .social-post{
  gap:12px;
  padding-block:24px;
 }
 .post-avatar .profile-avatar{
  inline-size:36px;
  block-size:36px;
  border-radius:10px;
 }
 .social-post h2{
  font-size:18px;
 }
 .post-byline{
  gap:4px;
 }
 .post-byline>a:first-child{
  font-size:12px;
 }
 .post-byline span,
 .post-byline time{
  font-size:12px;
 }
 .post-consult{
  inline-size:32px;
  block-size:32px;
 }
 .rich-content{
  font-size:13px;
 }
 .social-reply{
  margin-inline-start:calc(var(--reply-depth,0)*8px);
  padding-inline-start:8px;
 }
 .social-reply .profile-avatar{
  inline-size:29px;
  block-size:29px;
 }
 .post-actions{
  gap:3px;
 }
 .post-actions button{
  padding:8px;
  min-inline-size:40px;
 }
 .social-public{
  padding-inline:16px;
 }
 .post-dialog{
  padding:20px 16px;
  border-radius:20px;
 }
 .avatar-options label{
  flex-direction:column;
  padding:12px;
  gap:8px;
 }
 .avatar-options input{
  position:absolute;
  inset-block-start:12px;
  inset-inline-end:12px;
 }
 .avatar-options .profile-avatar{
  inline-size:65px;
  block-size:65px;
 }
}
.account-body .profile-mini{
 gap:12px;
 padding-block:12px;
}

.account-body .profile-mini .profile-avatar{
 inline-size:42px;
 block-size:42px;
}

.account-body .profile-mini strong{
 font-size:12px;
}

.account-body .people-grid{
 gap:20px;
 grid-template-columns:repeat(3,minmax(0,1fr));
}

.account-body .person-profile{
 transition:border-color 180ms,transform 220ms var(--ease-out);
 padding:28px 24px;
}

.account-body .person-profile>.profile-avatar{
 inline-size:82px;
 block-size:82px;
}

.account-body .person-profile h2{
 font-size:20px;
 margin-block-start:20px;
}

.account-body .person-profile p{
 font-size:13px;
 line-height:1.8;
}

.account-body .topic-tags{
 gap:8px;
 flex-wrap:wrap;
}

.account-body .topic-tags span{
 font-size:12px;
 padding:4px 8px;
 border-radius:20px;
}

@media (max-width:1180px){
 .account-body .people-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

@media (max-width:760px){
 .account-body .people-grid{
  grid-template-columns:minmax(0,1fr);
 }
 .account-body .person-profile{
  padding:24px;
 }
}
/* Sitalk identity: the person and their experience, with one editing task at a time. */
.avatar-image-shell,
.avatar-custom-shell{
 display:inline-block;
 position:relative;
 flex:none;
 overflow:hidden;
 border-radius:26%;
 vertical-align:middle;
}

.avatar-image-shell>svg,
.avatar-custom-shell>.avatar-full-base{
 display:block;
 width:100%;
 height:100%;
}

.avatar-uploaded,
.avatar-custom-overlay{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 object-fit:cover;
}

.avatar-custom-overlay{
 pointer-events:none;
}

.profile-cover{
 position:relative;
 height:112px;
 overflow:hidden;
 background:#244234;
 color:#dfed92;
}

.profile-cover-ocean{
 background:#224f65;
 color:#d9f1fc;
}

.profile-cover-coral{
 background:#80432f;
 color:#ffebc9;
}

.profile-cover-plum{
 background:#593c73;
 color:#f0e2ff;
}

.profile-cover-sun{
 background:#68512b;
 color:#fff3b4;
}

.profile-cover-slate{
 background:#344b55;
 color:#e8f4f6;
}

.profile-cover-orbit{
 position:absolute;
 width:350px;
 height:350px;
 right:-80px;
 top:-200px;
 border:1px solid currentColor;
 border-radius:50%;
 opacity:.3;
}

.profile-cover-orbit:after{
 content:'';
 position:absolute;
 inset:36px;
 border:1px solid currentColor;
 border-radius:50%;
}

.profile-privacy-badge{
 position:absolute;
 right:28px;
 bottom:20px;
 font-size:12px;
 padding:8px 12px;
 border:1px solid currentColor;
 border-radius:30px;
}

.profile-experience{
 margin-top:28px;
 padding-top:24px;
 border-top:1px solid var(--line,#dce4dc);
}

.profile-experience h2{
 font-size:16px;
 margin:0 0 16px;
}

.profile-experience .topic-tags{
 margin-top:0;
 gap:8px;
}

.profile-experience .topic-tags a{
 display:inline-flex;
 align-items:center;
 min-height:36px;
 padding:8px 12px;
 text-decoration:none;
 font-size:13px;
 border-radius:8px;
 background:var(--surface-soft,var(--paper,#f8faf7));
 border:1px solid var(--line,#dce4dc);
}

.profile-experience .account-meta{
 margin:0;
}

.profile-boundary-card{
 display:flex;
 align-items:start;
 gap:12px;
 margin-top:28px;
 padding-top:20px;
 border-top:1px solid var(--line);
}

.profile-boundary-card>svg{
 flex:none;
 width:18px;
 height:18px;
 margin-top:2px;
}

.profile-boundary-card p{
 font-size:12px;
 line-height:1.7;
 margin:0;
 color:var(--muted,#58695f);
}

.profile-own-footer{
 max-width:960px;
 margin:20px auto;
 display:flex;
 justify-content:space-between;
 gap:16px;
 flex-wrap:wrap;
 font-size:13px;
}

.profile-own-footer .account-meta{
 margin:0;
}

.profile-editor-layout{
 display:grid;
 grid-template-columns:minmax(0,760px) minmax(220px,300px);
 gap:28px;
 align-items:start;
}

.profile-editor{
 position:relative;
 border:1px solid var(--line,#dce4dc);
 border-radius:20px;
 background:var(--surface,#fff);
 min-width:0;
 overflow:clip;
}

.profile-editor-nav{
 display:flex;
 gap:4px;
 padding:8px;
 border-bottom:1px solid var(--line);
 background:var(--surface-soft,var(--paper));
 border-radius:20px 20px 0 0;
}

.profile-editor-nav [role=tab]{
 flex:1;
 min-width:0;
 min-height:46px;
 border:1px solid transparent;
 border-radius:12px;
 background:none;
 color:var(--muted);
 font:inherit;
 font-size:13px;
 font-weight:600;
 padding:12px;
 cursor:pointer;
}

.profile-editor-nav [aria-selected=true]{
 background:var(--surface);
 border-color:var(--line);
 color:var(--ink);
}

.profile-editor-nav button:focus-visible{
 outline:2px solid var(--ink);
 outline-offset:-3px;
}

.profile-edit-section{
 padding:28px 28px 20px;
 min-width:0;
}

.profile-edit-section>h2{
 font-size:22px;
 line-height:1.3;
 margin:0 0 8px;
 text-wrap:balance;
}

.profile-section-note,
.field-help{
 font-size:13px;
 line-height:1.65;
 color:var(--muted);
 margin:0 0 20px;
 text-wrap:pretty;
}

.profile-editor .field{
 margin-top:20px;
}

.profile-editor textarea{
 resize:vertical;
}

.profile-edit-section .visibility-control{
 margin-top:24px;
}

.profile-edit-section .visibility-control input{
 width:18px!important;
 min-height:18px!important;
 flex:none;
}

.profile-editor .visibility-control strong{
 font-size:13px;
}

.profile-editor .visibility-control span span{
 font-size:12px;
 line-height:1.6;
}

.profile-editor [aria-invalid=true]{
 border-color:var(--error,#9d4336);
}

.profile-save-actions{
 position:sticky;
 bottom:0;
 z-index:5;
 display:flex;
 gap:12px;
 align-items:center;
 padding:16px 28px;
 background:var(--surface);
 border-top:1px solid var(--line);
 margin-top:0;
}

.profile-save-actions .button,
.profile-save-actions .copy-small{
 min-height:44px;
}

.profile-save-note{
 font-size:12px;
 color:var(--muted);
 margin-right:auto;
}

.profile-editor-aside{
 align-self:stretch;
 min-width:0;
}

.profile-live-card{
 position:sticky;
 top:24px;
 border:1px solid var(--line);
 border-radius:16px;
 padding:20px;
 background:var(--surface);
}

.profile-live-card>summary{
 cursor:pointer;
 font-size:13px;
 font-weight:600;
 min-height:26px;
}

.profile-live-card[open]>summary{
 margin-bottom:16px;
}

.profile-mini-preview{
 overflow:hidden;
 border:1px solid var(--line);
 border-radius:12px;
 background:var(--surface);
}

.profile-mini-cover{
 height:76px;
}

.profile-mini-preview.identity-layout-compact .profile-mini-cover{
 height:38px;
}

.profile-mini-details{
 padding:0 16px 20px;
}

.profile-mini-avatar{
 width:72px;
 height:72px;
 margin-top:-24px;
 margin-bottom:16px;
 position:relative;
}

.profile-mini-avatar>.profile-avatar,
.profile-mini-avatar>img{
 display:block;
 width:72px;
 height:72px;
 border-radius:18px;
 border:3px solid var(--surface);
 object-fit:cover;
}

.profile-mini-details>strong{
 display:block;
 font-size:18px;
 overflow-wrap:anywhere;
}

.profile-mini-details>span{
 display:block;
 font-size:12px;
 color:var(--muted);
 overflow-wrap:anywhere;
}

.profile-mini-details>p{
 font-size:13px;
 line-height:1.6;
 white-space:pre-line;
 overflow-wrap:anywhere;
 margin:16px 0;
}

.profile-mini-details>small{
 color:var(--muted);
}

.profile-preview-note{
 font-size:12px;
 line-height:1.65;
 color:var(--muted);
 margin:16px 0 0;
}

.character-studio{
 display:flex;
 gap:20px;
 align-items:center;
 margin-bottom:24px;
 padding-bottom:20px;
 border-bottom:1px solid var(--line);
}

.character-preview{
 width:112px;
 height:112px;
 flex:none;
 border-radius:24px;
 overflow:hidden;
}

.character-preview>.profile-avatar,
.profile-preview-image{
 width:100%;
 height:100%;
 object-fit:cover;
}

.character-intro{
 min-width:0;
}

.character-intro h3{
 font-size:16px;
 line-height:1.3;
 margin:0 0 8px;
}

.character-intro p{
 font-size:13px;
 line-height:1.6;
 color:var(--muted);
 margin:0 0 12px;
}

.character-intro small{
 display:block;
 margin-top:12px;
 line-height:1.5;
 color:var(--muted);
}

.image-upload-button{
 display:inline-flex;
 align-items:center;
 position:relative;
 overflow:hidden;
 cursor:pointer;
 margin-right:8px;
 min-height:40px;
}

.image-upload-button input{
 position:absolute;
 inset:0;
 opacity:0;
 cursor:pointer;
}

.image-upload-button:focus-within{
 outline:2px solid var(--ink);
 outline-offset:3px;
}

.personality-picker,
.palette-picker,
.character-trait-picker,
.profile-layout-picker,
.profile-accent-picker{
 padding:0;
 border:0;
 margin:0 0 24px;
}

.personality-picker legend,
.palette-picker legend,
.character-trait-picker legend,
.profile-layout-picker legend,
.profile-accent-picker legend{
 font-size:13px;
 font-weight:650;
 margin-bottom:12px;
 padding:0;
}

.personality-options{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:8px;
}

.personality-options label{
 position:relative;
 display:flex;
 flex-direction:column;
 align-items:center;
 gap:8px;
 padding:12px 8px;
 border:1px solid var(--line);
 border-radius:12px;
 cursor:pointer;
 min-width:0;
}

.personality-options input,
.palette-options input,
.character-trait-options input,
.profile-layout-options input{
 position:absolute;
 opacity:0;
 width:1px;
 height:1px;
}

.personality-options .profile-avatar{
 display:block;
 width:62px;
 height:62px;
 object-fit:contain;
}

.personality-options strong{
 font-size:12px;
 font-weight:600;
}

.personality-options small{
 display:none;
}

.personality-options label:has(input:checked),
.character-trait-options label:has(input:checked),
.profile-layout-options label:has(input:checked){
 border-color:var(--ink);
 background:var(--surface-soft,var(--paper));
 box-shadow:inset 0 0 0 1px var(--ink);
}

.personality-options label:has(input:focus-visible),
.palette-options label:has(input:focus-visible),
.character-trait-options label:has(input:focus-visible),
.profile-layout-options label:has(input:focus-visible){
 outline:2px solid var(--ink);
 outline-offset:3px;
}

.palette-options{
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:8px;
}

.palette-options label{
 position:relative;
 display:flex;
 align-items:center;
 flex-direction:column;
 gap:8px;
 cursor:pointer;
 font-size:12px;
 padding:8px 2px;
 border-radius:10px;
 border:1px solid transparent;
 min-height:64px;
}

.palette-options label:has(input:checked){
 border-color:var(--ink);
}

.palette-swatch,
.profile-accent-swatch{
 display:block;
 width:28px;
 height:28px;
 border-radius:50%;
}

.palette-swatch{
 background:linear-gradient(120deg,var(--swatch-bg) 0 38%,var(--swatch-head) 38% 69%,var(--swatch-shirt) 69%);
}

.profile-accent-swatch{
 background:var(--accent);
 border:1px solid var(--control-border,var(--line));
}

.character-details,
.character-prompt,
.profile-links-editor{
 border:1px solid var(--line);
 padding:16px 16px;
 border-radius:12px;
 margin:20px 0;
}

.character-details summary,
.character-prompt summary,
.profile-links-editor summary{
 font-size:13px;
 font-weight:600;
 cursor:pointer;
 min-height:24px;
}

.character-details summary>span,
.profile-links-editor summary>span{
 display:block;
 font-size:12px;
 font-weight:400;
 color:var(--muted);
 margin:4px 0 0 16px;
}

.character-details[open] summary{
 margin-bottom:24px;
}

.character-prompt p,
.profile-links-editor>p{
 font-size:12px;
 line-height:1.6;
 color:var(--muted);
}

.character-trait-options{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:8px;
}

.character-trait-options label{
 position:relative;
 min-width:0;
 display:grid;
 place-items:center;
 text-align:center;
 min-height:44px;
 padding:12px 4px;
 border:1px solid var(--control-border,#7d8c76);
 border-radius:9px;
 font-size:12px;
 cursor:pointer;
}

.character-trait-picker:last-child{
 margin-bottom:0;
}

.profile-layout-options{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
}

.profile-layout-options label{
 position:relative;
 padding:16px;
 border:1px solid var(--control-border,var(--line));
 border-radius:12px;
 cursor:pointer;
 display:flex;
 flex-direction:column;
 gap:8px;
 min-width:0;
}

.profile-layout-options strong{
 font-size:14px;
}

.profile-layout-options small{
 line-height:1.6;
 color:var(--muted);
}

.profile-link-row{
 display:grid;
 grid-template-columns:minmax(110px,.7fr) minmax(0,1.4fr) 38px;
 gap:12px;
 align-items:end;
 margin-bottom:12px;
}

.profile-link-row .field{
 margin-top:0;
}

.profile-link-row .copy-small{
 min-height:44px;
 place-items:center;
}

.profile-link-row svg{
 width:16px;
 height:16px;
}

.profile-links-editor [data-add-profile-link]{
 min-height:40px;
}

.profile-editor-account,
.profile-read-account{
 margin:24px auto 0;
 padding:20px 24px;
 border:1px solid var(--line);
 border-radius:14px;
 background:var(--surface);
 max-width:960px;
}

.profile-editor-account{
 max-width:760px;
 margin-left:0;
}

.profile-editor-account>summary,
.profile-read-account>summary{
 font-size:14px;
 font-weight:600;
 cursor:pointer;
 min-height:28px;
}

.profile-editor-account>p{
 font-size:13px;
 line-height:1.6;
 color:var(--muted);
}

.profile-editor-account .readonly-value{
 margin-top:16px;
}

.profile-editor-account #profile-security-slot .account-security,
.profile-read-account #profile-security-slot .account-security{
 margin:20px 0 0;
 padding:0;
 border:0;
}

.profile-mobile-signout{
 display:none;
}

.character-preview.preview-swap{
 animation:character-preview-swap .18s ease-out;
}

@keyframes character-preview-swap{from{opacity:.5;transform:scale(.98)}to{opacity:1;transform:scale(1)}}

@media (max-width:1020px){
 .profile-editor-layout{
  grid-template-columns:minmax(0,1fr);
  gap:16px;
 }
 .profile-live-card{
  position:static;
 }
 .profile-editor-aside{
  max-width:760px;
 }
 .profile-live-card:not([open]){
  padding:16px 20px;
 }
}

@media (max-width:760px){
 .profile-save-actions{
  bottom:calc(var(--app-mobile-nav-height,76px) + env(safe-area-inset-bottom));
  padding-bottom:16px;
 }
 .profile-mobile-signout{
  display:inline-flex;
  margin-top:20px;
  min-height:44px;
 }
}

@media (max-width:600px){
 .profile-cover{
  height:86px;
 }
 .profile-privacy-badge{
  right:18px;
  bottom:16px;
  font-size:12px;
 }
 .profile-edit-section{
  padding:24px 20px 16px;
 }
 .profile-edit-section>h2{
  font-size:20px;
 }
 .profile-editor-nav{
  padding:8px;
  gap:2px;
 }
 .profile-editor-nav [role=tab]{
  font-size:12px;
  padding:8px 8px;
 }
 .profile-save-actions{
  padding:12px 20px;
  gap:8px;
 }
 .profile-save-note{
  display:none;
 }
 .profile-save-actions .button{
  flex:1;
 }
 .profile-save-actions .copy-small{
  min-width:70px;
 }
 .character-studio{
  gap:16px;
 }
 .character-preview{
  width:88px;
  height:88px;
 }
 .character-intro h3{
  font-size:16px;
 }
 .character-intro p{
  font-size:12px;
 }
 .character-intro small{
  display:none;
 }
 .character-intro .copy-small{
  min-height:40px;
 }
 .personality-options{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
 .personality-options .profile-avatar{
  width:56px;
  height:56px;
 }
 .personality-options label{
  padding:8px 4px;
 }
 .personality-options strong{
  font-size:12px;
 }
 .palette-options{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
 .character-trait-options{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 .profile-layout-options{
  gap:8px;
 }
 .profile-layout-options label{
  padding:12px;
 }
 .profile-link-row .field:first-child{
  grid-column:1/-1;
 }
 .profile-link-row{
  grid-template-columns:minmax(0,1fr) 38px;
  gap:8px;
  margin-bottom:20px;
 }
 .profile-editor-account,
 .profile-read-account{
  padding:16px 20px;
 }
 .profile-live-card{
  padding:16px;
 }
 .profile-own-footer{
  font-size:12px;
 }
}
/* The commons: a quiet, useful feed using the shared Sitalk palette. */
.forum-workshop{
 grid-template-columns:minmax(0,760px) minmax(240px,300px);
 gap:36px;
 max-inline-size:1120px;
}

.forum-workshop .social-heading{
 margin-block:28px 24px;
 align-items:flex-start;
}

.forum-workshop .social-heading h1{
 font-size:clamp(28px,3vw,40px);
 line-height:1.16;
 text-wrap:balance;
 max-inline-size:560px;
}

.forum-workshop .social-heading p{
 line-height:1.7;
 text-wrap:pretty;
 max-inline-size:480px;
}

.forum-workshop .social-heading>.button{
 margin-block-start:8px;
 min-block-size:44px;
 font-size:12px;
 padding:12px 16px;
}

.forum-discovery{
 margin-block:20px;
}

.forum-category-tabs{
 display:flex;
 gap:8px;
 overflow:auto;
 scrollbar-width:thin;
 padding-block:3px 12px;
}

.forum-category-tabs button{
 display:inline-flex;
 align-items:center;
 gap:8px;
 flex-shrink:0;
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:999px;
 color:var(--muted);
 min-block-size:42px;
 padding:12px 12px;
 font-size:12px;
}

.forum-category-tabs button[aria-pressed=true]{
 background:var(--ink);
 color:var(--paper);
 border-color:var(--ink);
}

.forum-tools{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 gap:12px;
 align-items:center;
 margin-block:12px;
}

.forum-tools .forum-search{
 margin:0;
}

.forum-tools .search-field{
 min-block-size:48px;
 border-radius:14px;
}

.forum-tools input{
 font-size:13px;
 inline-size:100%;
 min-inline-size:0;
}

.forum-inline-topics{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 padding-block:8px 16px;
}

.forum-inline-topics .topic-choice{
 inline-size:auto;
 gap:12px;
 border:1px solid var(--line);
 padding:8px 12px;
 border-radius:10px;
 font-size:12px;
}

.forum-selected-topic{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:16px;
 padding:20px;
 border:1px solid var(--line);
 background:var(--accent-soft);
 border-radius:16px;
 margin-block:8px 20px;
}

.forum-selected-topic h2{
 font-size:22px;
 line-height:1.3;
 margin-block:8px;
}

.forum-selected-topic p{
 font-size:12px;
 color:var(--muted);
}

.forum-feed-tabs{
 display:flex;
 align-items:center;
 gap:8px;
 border-block-end:1px solid var(--line);
 padding-block-start:4px;
}

.forum-feed-tabs button{
 position:relative;
 padding:16px 12px;
 min-block-size:48px;
 background:transparent;
 border:0;
 color:var(--muted);
 font-size:13px;
 font-weight:600;
}

.forum-feed-tabs button[aria-pressed=true]{
 color:var(--ink);
}

.forum-feed-tabs button[aria-pressed=true]::after{
 position:absolute;
 content:'';
 inset-inline:12px;
 inset-block-end:-1px;
 block-size:3px;
 background:var(--accent-solid);
 border-radius:2px;
}

.feed-count{
 margin-inline-start:auto;
 padding-inline-start:8px;
 font-size:12px;
 color:var(--muted);
 font-variant-numeric:tabular-nums;
}

.forum-workshop .feed-compose{
 margin-block:20px 4px;
 padding:16px 16px;
 border-radius:16px;
 background:var(--surface);
 font-size:13px;
 line-height:1.5;
}

.forum-workshop .feed-compose .profile-avatar{
 inline-size:40px;
 block-size:40px;
}

.forum-join-note{
 display:flex;
 gap:12px;
 align-items:center;
 font-size:12px;
 line-height:1.6;
 color:var(--muted);
 background:var(--surface-soft);
 border-radius:12px;
 padding:12px 16px;
 margin-block:20px 0;
}

.forum-join-note>.ui-icon{
 inline-size:19px;
 block-size:19px;
 flex-shrink:0;
}

.forum-join-note a{
 text-decoration:underline;
 text-underline-offset:3px;
 color:var(--ink);
}

.forum-workshop .social-post{
 gap:16px;
}

.forum-workshop .social-post h2{
 font-size:20px;
 line-height:1.4;
 margin-block:12px 12px;
 text-wrap:pretty;
}

.forum-workshop .post-avatar .profile-avatar{
 inline-size:42px;
 block-size:42px;
}

.forum-workshop .post-byline{
 margin-block-end:12px;
 column-gap:12px;
 row-gap:4px;
}

.forum-workshop .post-byline>a:first-child{
 column-gap:8px;
}

.forum-workshop .post-byline time{
 font-size:12px;
}

.forum-workshop .post-byline .post-consult{
 inline-size:32px;
 block-size:32px;
}

.post-topic{
 display:inline-flex;
 gap:8px;
 align-items:center;
 max-inline-size:100%;
 font-size:12px;
 line-height:1.4;
 color:var(--muted);
 background:var(--surface-soft);
 padding:8px 8px;
 border-radius:7px;
 overflow-wrap:anywhere;
}

.post-topic>.ui-icon{
 inline-size:13px;
 block-size:13px;
 flex-shrink:0;
}

.forum-workshop .rich-content{
 font-size:14px;
 line-height:1.75;
 text-wrap:pretty;
}

.forum-workshop .post-actions{
 gap:12px;
 margin-block-start:16px;
}

.forum-workshop .post-actions button{
 min-block-size:44px;
 min-inline-size:44px;
 padding:12px 8px;
 transition:transform 140ms ease-out,opacity 140ms ease-out;
}

.forum-workshop .post-actions button:active{
 transform:scale(.94);
}

.forum-workshop .board-empty{
 border:1px dashed var(--line);
 border-radius:18px;
 padding:36px 24px;
 margin-block:24px;
 text-align:center;
 background:var(--surface);
}

.forum-workshop .board-empty h2{
 font-size:22px;
 line-height:1.35;
 text-wrap:balance;
 margin-block:16px;
}

.forum-workshop .board-empty p{
 font-size:13px;
 line-height:1.7;
 color:var(--muted);
 max-inline-size:380px;
 margin-inline:auto;
}

.forum-workshop .board-empty .button{
 margin-block-start:24px;
}

.forum-discovery-aside{
 padding-block-start:32px;
 inset-block-start:24px;
}

.forum-aside-heading h2{
 font-size:24px;
 margin-block:12px;
 line-height:1.25;
 text-wrap:balance;
}

.forum-aside-heading p{
 font-size:12px;
 color:var(--muted);
 line-height:1.7;
}

.forum-topic-highlights{
 display:grid;
 gap:2px;
 margin-block:20px 12px;
}

.topic-choice{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 inline-size:100%;
 min-block-size:42px;
 padding:12px 12px;
 border:0;
 border-radius:10px;
 text-align:start;
 background:transparent;
 color:var(--ink);
 font-size:13px;
 line-height:1.4;
}

.topic-choice[aria-pressed=true]{
 background:var(--accent-soft);
 color:var(--ink);
}

.topic-count{
 font-size:12px;
 color:var(--muted);
 font-variant-numeric:tabular-nums;
 flex-shrink:0;
}

.forum-all-topics{
 inline-size:100%;
 justify-content:space-between;
 background:transparent;
 border-color:var(--line);
 margin-block:8px 24px;
}

.forum-how-note{
 border-block-start:1px solid var(--line);
 padding-block-start:24px;
}

.forum-note-icon{
 display:grid;
 place-items:center;
 inline-size:36px;
 block-size:36px;
 border:1px solid var(--line);
 border-radius:11px;
 background:var(--surface);
 margin-block-end:16px;
}

.forum-how-note h3{
 font-size:16px;
 line-height:1.5;
 text-wrap:balance;
}

.forum-how-note p{
 font-size:12px;
 color:var(--muted);
 line-height:1.8;
 margin-block:12px;
}

.forum-how-note .text-link{
 font-size:12px;
}

.forum-workshop .social-project-note{
 background:var(--surface-soft);
 padding:20px;
 margin-block:24px;
}

.forum-workshop .social-project-note h3{
 font-size:15px;
 line-height:1.5;
}

.forum-workshop .social-project-note a{
 display:inline-flex;
 gap:8px;
 align-items:center;
 font-size:12px;
}

.forum-workshop .social-project-note a>.ui-icon{
 inline-size:15px;
 block-size:15px;
}

.forum-workshop .social-boundary{
 line-height:1.8;
}

.topic-browser{
 inline-size:min(780px,calc(100% - 32px));
 padding:28px;
}

.topic-browser .composer-header h2{
 margin-block-start:12px;
 font-size:28px;
 text-wrap:balance;
}

.topic-browser .search-field{
 margin-block:0 16px;
}

.topic-browser-summary{
 font-size:12px;
 color:var(--muted);
 line-height:1.6;
 margin-block:16px 24px;
}

.topic-browser-group{
 margin-block:24px;
}

.topic-browser-group>h3{
 display:flex;
 align-items:center;
 gap:8px;
 font-size:14px;
 line-height:1.5;
 margin-block:16px;
}

.topic-browser-group>h3>.ui-icon{
 inline-size:18px;
 block-size:18px;
}

.topic-browser-group>div{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:8px;
}

.topic-browser-group .topic-choice{
 border:1px solid var(--line);
 background:var(--surface-soft);
 font-size:12px;
 min-block-size:48px;
 padding:12px 12px;
}

.topic-browser-group .topic-choice[aria-pressed=true]{
 background:var(--accent-soft);
 border-color:var(--focus);
}

.forum-workshop button:focus-visible,
.topic-browser button:focus-visible{
 outline:2px solid var(--focus);
 outline-offset:3px;
}

.forum-workshop .form-error:empty{
 display:none;
}

@media (hover:hover) and (pointer:fine){
 .topic-choice:hover{
  background:var(--surface-soft);
 }
 .forum-category-tabs button:hover:not([aria-pressed=true]),
 .browse-topics:hover{
  background:var(--surface-soft);
 }
 .post-topic:hover{
  text-decoration:underline;
  text-underline-offset:3px;
 }
}

@media (max-width:1250px){
 .forum-workshop{
  grid-template-columns:minmax(0,1fr);
 }
 .forum-workshop .social-aside{
  display:none;
 }
}

@media (max-width:700px){
 .forum-workshop .social-heading{
  flex-wrap:wrap;
 }
 .forum-workshop .social-heading>.button{
  margin-block:0;
 }
 .forum-tools{
  grid-template-columns:minmax(0,1fr);
 }
 .forum-category-tabs{
  margin-inline:-4px;
  padding-inline:4px;
 }
 .forum-category-tabs button{
  font-size:12px;
  min-block-size:42px;
 }
 .forum-workshop .social-post h2{
  font-size:18px;
 }
 .forum-workshop .feed-compose{
  gap:12px;
 }
 .forum-workshop .feed-compose .profile-avatar{
  inline-size:36px;
  block-size:36px;
 }
 .feed-count{
  font-size:12px;
 }
 .forum-feed-tabs{
  gap:3px;
 }
 .forum-feed-tabs button{
  font-size:12px;
  padding-inline:8px;
 }
 .forum-feed-tabs button[aria-pressed=true]::after{
  inset-inline:8px;
 }
 .forum-selected-topic{
  padding:16px;
 }
 .forum-inline-topics .topic-choice{
  font-size:12px;
 }
 .topic-browser{
  padding:24px 20px;
 }
 .topic-browser .composer-header{
  gap:12px;
 }
 .topic-browser .composer-header h2{
  font-size:28px;
 }
 .topic-browser-group>div{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 .topic-browser-group .topic-choice{
  font-size:12px;
  gap:8px;
  padding:12px;
 }
}

@media (max-width:380px){
 .feed-count{
  display:none;
 }
 .forum-workshop .social-heading h1{
  font-size:28px;
 }
 .topic-browser-group>div{
  grid-template-columns:minmax(0,1fr);
 }
}

@media (prefers-reduced-motion:reduce){
 .forum-workshop .post-actions button:active{
  transform:none;
 }
}
.post-meta{
 font-size:12px;
 color:var(--muted);
 margin-block-start:20px;
}

@media (max-width:700px){
 /* Mobile forum: one reading surface, with room for the post rather than nested gutters. */
 .account-body .public-view.social-public{
  width:100%;
  max-width:none;
  margin-inline:0;
  padding-inline:0;
 }
 .account-body .forum-workshop{
  width:100%;
  max-inline-size:none;
  gap:0;
 }
 .account-body .forum-workshop .social-heading,
 .account-body .forum-workshop .forum-discovery{
  margin-inline:16px;
 }
 .account-body .forum-workshop .social-heading{
  margin-block:16px;
  gap:12px;
 }
 .account-body .forum-workshop .social-heading h1{
  font-size:24px;
  line-height:1.25;
 }
 .account-body .forum-post-view .social-heading{
  align-items:center;
  flex-wrap:nowrap;
  margin-block:12px;
 }
 .account-body .forum-post-view .social-heading h1{
  font-size:20px;
  margin-block:4px 0;
 }
 .account-body .forum-post-view .social-heading .button{
  font-size:12px;
  padding:12px 12px;
 }
 .account-body .forum-workshop .social-post{
  padding:16px 16px;
  gap:12px;
  border:0;
  border-block-end:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
 }
 .account-body .forum-workshop .post-avatar .profile-avatar{
  inline-size:40px;
  block-size:40px;
  border-radius:12px;
 }
 .account-body .forum-workshop .post-byline{
  position:relative;
  column-gap:8px;
  row-gap:2px;
  margin-block-end:4px;
  min-width:0;
  line-height:1.4;
 }
 .account-body .forum-workshop .post-byline:has(.post-consult){
  padding-inline-end:36px;
 }
 .account-body .forum-workshop .post-byline>a:first-child{
  gap:4px;
  font-size:14px;
 }
 .account-body .forum-workshop .post-byline strong{
  font-size:14px;
 }
 .account-body .forum-workshop .post-byline span,
 .account-body .forum-workshop .post-byline time{
  font-size:12px;
 }
 .account-body .forum-workshop .post-consult{
  position:absolute;
  inset-inline-end:-8px;
  inset-block-start:-4px;
  border:0;
  border-radius:0;
  inline-size:44px;
  block-size:44px;
 }
 .account-body .forum-workshop .post-topic{
  background:transparent;
  border:0;
  padding:0;
  font-size:12px;
  line-height:1.5;
  border-radius:0;
 }
 .account-body .forum-workshop .post-content>h2{
  font-size:16px;
  line-height:1.4;
  margin-block:8px 8px;
  text-wrap:pretty;
 }
 .account-body .forum-workshop .rich-content{
  font-size:15px;
  line-height:1.5;
  text-wrap:pretty;
 }
 .account-body .forum-workshop .rich-content>*+*{
  margin-block-start:12px;
 }
 .account-body .forum-workshop .rich-content :is(h1,h2,h3){
  font-size:16px;
  line-height:1.4;
  margin-block:20px 8px;
  text-wrap:pretty;
 }
 .account-body .forum-workshop .rich-content :is(ul,ol){
  padding-inline-start:20px;
 }
 .account-body .forum-workshop .rich-content pre{
  padding:12px;
  border:0;
  border-radius:8px;
 }
 .account-body .forum-workshop .rich-content blockquote{
  padding-inline-start:12px;
 }
 .account-body .forum-workshop .post-actions{
  gap:0;
  justify-content:space-between;
  margin-block-start:8px;
 }
 .account-body .forum-workshop .post-actions button{
  min-inline-size:44px;
  min-block-size:44px;
  padding:8px 8px;
  font-size:12px;
 }
 .account-body .forum-workshop .post-media{
  gap:4px;
  margin-block:12px;
 }
 .account-body .forum-workshop .post-media figure{
  border:0;
  border-radius:12px;
 }
 .account-body .forum-workshop .social-reply{
  margin-inline-start:calc(var(--reply-depth,0)*8px);
 }
 .account-body .forum-workshop .social-reply .post-avatar .profile-avatar{
  inline-size:32px;
  block-size:32px;
  border-radius:10px;
 }
 .account-body .forum-workshop .feed-compose{
  border:0;
  border-block-end:1px solid var(--line);
  border-radius:0;
  background:transparent;
  padding:12px 16px;
  margin-block:12px 0;
 }
 .account-body .forum-workshop .forum-join-note{
  border:0;
  border-radius:0;
  background:transparent;
  padding:8px 16px;
  margin-block:8px;
 }
 .account-body .forum-workshop .replies-heading{
  padding-inline:16px;
  margin-block:20px 0;
 }
 .account-body .forum-workshop .replies-heading h2{
  font-size:16px;
 }
 .account-body .forum-workshop .forum-notice{
  margin-inline:16px;
 }
 .account-body .forum-workshop .workflow-card{
  border:0;
  border-radius:12px;
  margin-block:16px;
 }
 .account-body .forum-workshop .workflow-card h3{
  font-size:16px!important;
  line-height:1.4;
 }
 .account-body .forum-workshop .workflow-card-copy{
  padding:16px;
 }
 /* Opened posts use the whole width; only the author row sits beside the avatar. */
 .account-body .forum-post-view #forum-original>.social-post{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  column-gap:12px;
  row-gap:0;
 }
 .account-body .forum-post-view #forum-original .post-avatar{
  grid-column:1;
  grid-row:1;
  align-self:center;
 }
 .account-body .forum-post-view #forum-original .post-content{
  display:contents;
 }
 .account-body .forum-post-view #forum-original .post-content>*{
  grid-column:1/-1;
  min-width:0;
 }
 .account-body .forum-post-view #forum-original .post-content>.post-byline{
  grid-column:2;
  grid-row:1;
  margin:0;
  min-height:44px;
 }
 .account-body .forum-post-view #forum-original .post-topic{
  justify-self:start;
  margin-block-start:12px;
 }
 .account-body .forum-post-view #forum-original .post-content>h2{
  font-size:18px;
  margin-block:8px 12px;
 }
}
.forum-activity{
 display:flex;
 align-items:center;
 justify-content:space-between;
 flex-wrap:wrap;
 gap:8px 16px;
 padding:12px 20px;
 border-bottom:1px solid var(--line);
 font-size:12px;
 color:var(--muted);
}

.forum-activity p{
 margin:0;
 font-variant-numeric:tabular-nums;
}

.forum-activity label{
 display:flex;
 align-items:center;
 gap:8px;
 min-height:32px;
}

.forum-activity input{
 width:16px;
 height:16px;
 accent-color:var(--ink);
}

@media (max-width:600px){
 .forum-activity{
  padding-inline:12px;
  align-items:flex-start;
 }
}
.community-columns{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 gap:28px;
 align-items:start;
}

.community-panel{
 min-width:0;
 border:1px solid var(--line);
 background:var(--surface);
 padding:26px /*legacy-scale*/;
 margin-block:22px /*legacy-scale*/;
}

.community-panel h2{
 font-size:22px;
 letter-spacing:-.6px;
 line-height:1.3;
 margin:0 0 16px;
}

.community-panel h3{
 font-size:16px;
 line-height:1.45;
 margin:0;
}

.community-panel p{
 font-size:13px;
 line-height:1.75;
 color:var(--muted);
 margin-block:10px /*legacy-scale*/;
}

.community-panel a:not(.button){
 text-underline-offset:3px;
}

.community-panel a:focus-visible,
.community-panel button:focus-visible,
.community-tabs a:focus-visible{
 outline:2px solid var(--focus);
 outline-offset:3px;
}

.community-panel .field{
 margin-block:18px /*legacy-scale*/;
}

.community-panel label,
.admin-action-dialog label{
 font-size:12px;
 font-weight:600;
}

.community-field-row{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:16px;
}

.community-row{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:14px /*legacy-scale*/;
 flex-wrap:wrap;
}

.community-status{
 display:inline-block;
 font-size:12px;
 line-height:1.5;
 padding:5px 9px /*legacy-scale*/;
 border-radius:7px;
 border:1px solid var(--line);
 color:var(--ink);
 background:var(--surface-soft);
 white-space:normal;
}

.community-tabs{
 display:flex;
 margin-block:22px /*legacy-scale*/;
}

.community-tabs a{
 border:1px solid var(--line);
 box-sizing:border-box;
}

.community-confirm{
 display:flex;
 align-items:start;
 gap:10px /*legacy-scale*/;
 line-height:1.6;
 padding:16px;
 background:var(--surface-soft);
 border-radius:10px;
 margin-block:18px /*legacy-scale*/;
}

.community-confirm input{
 margin-block-start:4px;
 flex-shrink:0;
}

.forum-post-state{
 display:inline-flex;
 gap:6px /*legacy-scale*/;
 align-items:center;
 font-size:12px;
 color:var(--muted);
 margin-inline-end:12px;
 margin-block-end:10px /*legacy-scale*/;
}

.forum-post-state svg{
 width:13px;
 height:13px;
}

.forum-access-dialog{
 max-width:510px;
}

.forum-access-dialog h2{
 font-size:28px;
 line-height:1.2;
}

.forum-access-dialog>p{
 font-size:14px;
 line-height:1.75;
 color:var(--muted);
 margin-block:20px;
}

.forum-access-dialog ul{
 list-style:none;
 padding:0;
 margin-block:24px;
 display:grid;
 gap:14px /*legacy-scale*/;
 font-size:13px;
}

.forum-access-dialog li{
 display:flex;
 align-items:center;
 gap:10px /*legacy-scale*/;
}

.forum-access-dialog .button{
 width:100%;
 box-sizing:border-box;
}

.forum-join-note .text-link,
.forum-notice .text-link{
 padding:0;
 border:0;
 background:none;
 color:inherit;
 text-decoration:underline;
 font:inherit;
 text-underline-offset:3px;
 min-height:0;
}

.community-panel :is(p,code),
.sponsor-banner a{
 overflow-wrap:anywhere;
}

@media (max-width:1000px){
 .community-columns{
  grid-template-columns:minmax(0,1fr);
 }
}

@media (max-width:700px){
 .community-panel{
  padding:20px 16px;
 }
 .community-panel h2{
  font-size:20px;
 }
 .community-field-row{
  grid-template-columns:1fr;
  gap:0;
 }
 .forum-access-dialog{
  padding:22px 18px /*legacy-scale*/;
 }
 .forum-access-dialog h2{
  font-size:24px;
 }
 .community-tabs a{
  padding-inline:10px /*legacy-scale*/;
 }
}
.account-body .workspace-card,
.account-body .integration-setup,
.account-body .community-panel,
.account-body .person-profile,
.account-body .plan-card,
.account-body .notification-controls,
.account-body .notification-inbox{
 border-radius:var(--app-radius);
 box-shadow:none;
}

.account-body .community-tabs{
 gap:8px;
 flex-wrap:wrap;
}

.account-body .community-tabs a{
 min-height:44px;
 padding:12px 16px;
 border-radius:10px;
 font-size:13px;
 display:inline-flex;
 align-items:center;
}

.account-body .social-post{
 padding:24px 20px;
}

.account-body .post-content{
 min-width:0;
}

.account-body .post-byline strong{
 font-size:13px;
}

.account-body .post-content h2{
 font-size:20px;
 line-height:1.4;
}

.account-body .profile-editor input[type=checkbox]{
 min-height:18px;
}

@media (max-width:760px){
 .account-body .social-post{
  padding:20px 16px;
 }
 .account-body .post-content h2{
  font-size:18px;
 }
 .account-body .community-panel{
  padding:20px 16px;
 }
}
.discovery-row>.copy-small{
 flex-shrink:0;
 min-height:40px;
}

.social-brand.icon-github,
.social-brand.icon-x{
 filter:none;
}

html[data-theme=dark] .social-brand.icon-github,
html[data-theme=dark] .social-brand.icon-x{
 filter:invert(1);
}

.profile-link-row label>.social-brand{
 width:16px;
 height:16px;
 vertical-align:middle;
 margin-right:4px;
}

@media (max-width:560px){
 .discovery-row>.copy-small span{
  display:none;
 }
}

@media (prefers-color-scheme:dark){
 html:not([data-theme=light]) .social-brand.icon-github,
 html:not([data-theme=light]) .social-brand.icon-x{
  filter:invert(1);
 }
}
.forum-brand-loading{
 display:grid;
 place-items:center;
 min-height:360px;
 color:var(--ink);
}

.forum-brand-loading .brand-motion{
 width:80px;
 height:80px;
}

.image-attach[aria-busy=true]{
 opacity:.6;
 pointer-events:none;
}

.profile-circle-feedback{
 font-size:13px;
 color:var(--muted);
 line-height:1.5;
 margin-top:12px;
}

.palette-results{
 display:grid;
 gap:4px;
 max-height:48dvh;
 overflow:auto;
}

.palette-results button{
 display:flex;
 align-items:center;
 gap:12px;
 width:100%;
 min-height:46px;
 padding:12px;
 border:0;
 border-radius:8px;
 background:transparent;
 color:var(--ink);
 text-align:left;
 cursor:pointer;
}

.palette-results button span{
 flex:1;
}

.palette-results svg{
 width:18px;
 height:18px;
}

.palette-results button:hover,
.palette-results button:focus-visible{
 background:var(--wash);
 outline:2px solid var(--line);
 outline-offset:-2px;
}

@media (min-width:761px){
 .social-layout[data-sidebar-collapsed=true]{
  grid-template-columns:minmax(0,1fr);
 }
 .social-layout[data-sidebar-collapsed=true]>.social-aside{
  display:none;
 }
}

/* Discover (/discover, /app/discover): everything published, one page. */
.discover-page{display:grid;gap:var(--ds-space-6)}
.discover-hero{position:relative;overflow:hidden;display:grid;gap:var(--ds-space-4);padding:var(--ds-space-7) var(--ds-space-6);border-radius:24px;border:1px solid var(--line);background:linear-gradient(115deg,var(--surface) 0%,var(--surface) 46%,color-mix(in srgb,var(--surface) 30%,transparent) 100%),url('/brand/sitalk-world.webp') right 58%/cover no-repeat;isolation:isolate}
.discover-hero h1{margin:var(--ds-space-2) 0 var(--ds-space-2);font-size:clamp(28px,4vw,32px);letter-spacing:-.03em;max-inline-size:20ch}
.discover-hero p{margin:0;max-inline-size:52ch;color:var(--text-secondary);font-size:16px}
.discover-stats{display:flex;flex-wrap:wrap;gap:var(--ds-space-2)}
.discover-stats span{display:inline-flex;align-items:baseline;gap:4px;padding:4px 12px;border-radius:999px;background:color-mix(in srgb,var(--surface) 86%,transparent);border:1px solid var(--line);font-size:12px;color:var(--text-secondary);backdrop-filter:blur(6px)}
.discover-stats strong{font-size:14px;color:var(--ink)}
.discover-controls{display:grid;gap:var(--ds-space-3);position:sticky;top:0;z-index:2;padding-block:var(--ds-space-2);background:linear-gradient(var(--paper) 78%,transparent)}
.discover-search{margin:0}
.discover-filters{display:flex;gap:var(--ds-space-2);overflow-x:auto;scrollbar-width:none;mask-image:linear-gradient(90deg,#000 92%,transparent);padding-block:2px}
.discover-filters::-webkit-scrollbar{display:none}
.discover-filters button{flex:none;appearance:none;font:inherit;font-size:14px;font-weight:600;min-block-size:40px;padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:background-color 120ms var(--ease-out,ease),color 120ms var(--ease-out,ease),border-color 120ms var(--ease-out,ease)}
.discover-filters button:hover{color:var(--ink);border-color:var(--control-border)}
.discover-filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.discover-filters button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.discover-results{display:grid;gap:var(--ds-space-7)}
.discover-section{display:grid;gap:var(--ds-space-3)}
.discover-section>header{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ds-space-3)}
.discover-section h2{margin:0;font-size:var(--ds-text-title);letter-spacing:-.02em}
.discover-section .text-link{appearance:none;border:0;background:none;font:inherit;font-size:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:4px;min-block-size:40px;color:var(--ink)}
.discover-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--ds-space-3)}
.discover-card{display:flex;gap:var(--ds-space-3);align-items:flex-start;padding:var(--ds-space-4);border:1px solid var(--line);border-radius:var(--ds-radius-card);background:var(--surface);color:var(--ink);text-decoration:none;min-block-size:100%;transition:transform 160ms var(--ease-out,ease),box-shadow 160ms var(--ease-out,ease),border-color 160ms var(--ease-out,ease)}
a.discover-card:hover{transform:translateY(-2px);border-color:var(--control-border);box-shadow:0 12px 32px color-mix(in srgb,var(--ink) 9%,transparent)}
a.discover-card:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.discover-glyph{flex:none;display:grid;place-items:center;inline-size:40px;block-size:40px;border-radius:12px;background:var(--accent-soft);color:var(--ink)}
.discover-card[data-kind="workflow"] .discover-glyph{background:var(--blue)}
.discover-card[data-kind="skill"] .discover-glyph{background:var(--lilac)}
.discover-card[data-kind="discussion"] .discover-glyph{background:var(--peach)}
.discover-card[data-kind="person"] .discover-glyph{background:var(--surface-muted)}
.discover-glyph .ui-icon{inline-size:20px;block-size:20px}
.discover-card-body{display:grid;gap:4px;min-inline-size:0}
.discover-kind{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:capitalize}
.discover-card strong{font-size:16px;line-height:1.35;letter-spacing:-.01em}
.discover-summary{font-size:14px;line-height:1.5;color:var(--text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.discover-meta{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:12px;color:var(--text-muted)}
.discover-meter{inline-size:40px;block-size:4px;border-radius:4px;background:linear-gradient(90deg,var(--accent-solid) calc(var(--score)*100%),var(--surface-muted) 0)}
.discover-card-skeleton{pointer-events:none}
.discover-card-skeleton .discover-glyph{background:var(--surface-muted);animation:skeleton-pulse 1.4s ease-in-out infinite}
.discover-empty{text-align:center;padding:var(--ds-space-7) var(--ds-space-4)}
@media (max-width:700px){.discover-hero{padding:var(--ds-space-5) var(--ds-space-4);background:var(--surface)}.discover-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){a.discover-card,.discover-filters button{transition:none}a.discover-card:hover{transform:none}.discover-card-skeleton .discover-glyph{animation:none}}
