.social-page{width:min(900px,calc(100% - 30px));margin:30px auto 80px;color:var(--text,#f2e8f0)}.social-title{padding:22px 4px 16px}.social-title>span{font-size:11px;letter-spacing:.16em;color:#d591b2}.social-title h1{font-size:clamp(32px,5vw,46px);margin:7px 0}.social-title p{color:#b8aab8;margin:0 0 18px}.social-title nav{display:flex;gap:10px}.social-title nav a,.social-tags span{border:1px solid #59465f;border-radius:20px;padding:7px 13px;color:#e9dce9;text-decoration:none}.social-title nav .selected{background:#88516d;border-color:#ad7290}.social-card,.post-card,.topic-card{background:#231a29;border:1px solid #47354e;border-radius:16px;padding:20px;margin:14px 0;box-shadow:0 10px 30px #09060d2b}.social-card h2,.forum-toolbar h2{font-size:18px;margin:0 0 12px}.social-card textarea,.social-card input:not([type=checkbox]),.social-card select,.comment-form input,.reply-form textarea{box-sizing:border-box;width:100%;background:#19131f;border:1px solid #59465f;border-radius:9px;padding:12px;color:#f4edf4;font:inherit}.social-card textarea{min-height:118px;resize:vertical}.composer-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:12px}.composer-tools button,.social-page button{border:0;border-radius:9px;background:#a45d7c;color:white;padding:10px 16px;cursor:pointer;font:inherit}.upload-control{cursor:pointer;padding:9px 12px;border:1px solid #59465f;border-radius:9px}.book-mention{position:relative;display:flex;gap:8px;align-items:center}.book-mention input{min-width:180px}.book-mention>span{position:absolute;z-index:3;top:100%;right:0;min-width:240px;background:#30243a;border-radius:9px;box-shadow:0 8px 25px #0008}.book-mention>span:empty{display:none}.book-option{display:block;width:100%;background:none!important;border-radius:0!important;text-align:left}.selected-books{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.selected-book{border-radius:18px;background:#453048;padding:6px 10px}.selected-book button{padding:0 0 0 8px;background:none}.post-image{display:block;max-width:100%;max-height:540px;object-fit:contain;border-radius:12px;margin:12px 0}.post-body,.topic-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.social-author{display:flex;align-items:center;gap:10px;color:#e9dbe9;text-decoration:none;font-weight:600}.social-author img{width:36px;height:36px;object-fit:cover;border-radius:50%;background:#453048}.social-author small,.social-meta{color:#ad9eaf;font-size:12px}.post-head,.topic-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.post-books{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.post-books a{color:#e8bdce;background:#38243b;border-radius:8px;padding:7px 10px;text-decoration:none}.post-actions{display:flex;align-items:center;gap:12px;border-top:1px solid #44334a;margin-top:14px;padding-top:12px}.post-actions button{background:transparent;color:#d4c3d5;padding:6px}.post-actions button.liked{color:#f08bab}.comment-list{border-top:1px solid #44334a;margin-top:12px;padding-top:8px}.comment{padding:8px 0;line-height:1.45}.comment strong{color:#e1b4cf;margin-right:6px}.comment-form{display:flex;gap:8px;margin-top:8px}.comment-form input{flex:1}.topic-composer input{margin-bottom:10px}.topic-composer fieldset{border:0;padding:8px 0 14px;display:flex;gap:8px;flex-wrap:wrap}.topic-composer legend{margin-bottom:9px;color:#c7b6c7}.topic-tag{display:flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #59465f;border-radius:20px}.forum-toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:28px}.forum-toolbar select{background:#241a2b;color:#eee;border:1px solid #59465f;padding:9px;border-radius:8px}.topic-tags{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.topic-tags span{font-size:12px;padding:4px 9px}.topic-card{display:block;color:inherit;text-decoration:none}.topic-card:hover{border-color:#a45d7c}.topic-card h3{margin:10px 0 4px}.topic-card p{color:#c9baca;white-space:pre-wrap;line-height:1.5}.forum-detail{margin-top:18px}.reply{padding:14px 0;border-top:1px solid #44334a}.reply-form textarea{min-height:80px;margin:10px 0}.profile-follow{display:flex;align-items:center;gap:12px;margin:10px 0 18px}.profile-follow a{color:#eac0d6;text-decoration:none}.profile-follow button{border:0;border-radius:18px;padding:8px 14px;color:white;background:#9a5273;cursor:pointer}.profile-follow button[hidden]{display:none}@media(max-width:600px){.social-page{margin-top:12px}.social-card,.post-card,.topic-card{padding:14px}.composer-tools{justify-content:flex-start}.book-mention{flex:1}.book-mention input{min-width:0}.forum-toolbar{align-items:flex-start;gap:10px;flex-direction:column}}
.social-avatar,.social-avatar-fallback{width:36px;height:36px;flex:0 0 36px;border-radius:50%;object-fit:cover;background:#453048}.social-avatar-fallback{display:inline-grid;place-items:center;color:#f6dce9;font-weight:700;font-size:16px}.post-actions button:disabled{opacity:.65;cursor:wait}

@media(max-width:600px){
  .home main.social-page{width:calc(100% - 20px);margin:10px auto 42px!important;padding:0!important}
  .social-title{padding:12px 2px 10px}
  .social-title h1{font-size:28px;line-height:1.1;margin:5px 0 7px}
  .social-title p{font-size:13px;line-height:1.45;margin-bottom:12px}
  .social-title nav{gap:6px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}
  .social-title nav::-webkit-scrollbar{display:none}
  .social-title nav a{padding:6px 10px;font-size:12px;white-space:nowrap}
  .social-card,.post-card,.topic-card{padding:11px;margin:10px 0;border-radius:11px}
  .social-card h2,.forum-toolbar h2{font-size:16px;margin-bottom:9px}
  .social-card textarea{min-height:84px}
  .social-card textarea,.social-card input:not([type=checkbox]),.social-card select,.comment-form input,.reply-form textarea{padding:8px 9px}
  .composer-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
  .composer-tools button,.social-page button{padding:7px 9px;font-size:13px}
  .composer-tools .upload-control{padding:7px 9px;font-size:13px;text-align:center}
  .book-mention{grid-column:1/-1;min-width:0;width:100%;order:3}
  .book-mention input{width:100%}
  .post-head,.topic-head{align-items:flex-start;gap:7px}
  .post-body,.topic-body{font-size:14px;line-height:1.5}
  .post-image{max-height:320px;margin:9px 0}
  .post-actions{gap:6px;margin-top:10px;padding-top:9px;flex-wrap:wrap}
  .post-actions button{padding:5px 7px;font-size:12px}
  .comment-form{flex-wrap:wrap}
  .comment-form button{width:auto}
  .topic-composer fieldset{gap:4px;padding:4px 0 7px}
  .topic-composer legend{font-size:12px;margin-bottom:6px}
  .topic-tag{gap:4px;padding:3px 6px;font-size:11px;line-height:1.15}
  .topic-tag input{width:13px;height:13px;margin:0}
  .topic-composer textarea{min-height:84px}
  .forum-toolbar{margin-top:18px}
  .forum-toolbar select{width:100%;padding:7px 9px;font-size:13px}
}
/* Show one author label in posts and forum instead of repeating the same handle. */
.social-author small{display:none}
body:has(main.social-page) #bookspace-global-header #acc{display:none!important}
body:has(.forum-detail) #social-status{display:none}
.topic-tags-toggle{display:none}
@media(max-width:600px){
  .topic-tags-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;margin:4px 0 0;padding:8px 10px;border:1px solid #59465f;border-radius:9px;background:#2b2031;color:#f4edf4;font:inherit;font-size:13px;cursor:pointer}
  .topic-tags-toggle::after{content:'⌄';transition:transform .2s}
  .topic-tags-toggle[aria-expanded="true"]::after{transform:rotate(180deg)}
  .topic-composer #topic-tags{max-height:0;overflow:hidden;opacity:0;margin:0;padding-top:0;padding-bottom:0;transition:max-height .22s ease,opacity .18s ease,margin .22s ease,padding .22s ease}
  .topic-composer #topic-tags.is-open{max-height:380px;opacity:1;margin:4px 0 7px;padding-top:4px;padding-bottom:7px}
}
