/* 커뮤니티 on the home page, shown where the score list is: a thread feed in
   the manner of the Threads app — one column, the writer's avatar down the
   left, the writing, a photo row or a song, and quiet icons for likes,
   replies and sharing. Colours, type and shadows come from theme.css. */
#library-view.community-mode{grid-template-rows:auto minmax(0,1fr)}
#library-view.community-mode>:is(.toolbar,.list-caption,#score-list,.pagination),#library-view.community-mode .score-language-filter{display:none!important}
.community-board{--like:var(--c-like);min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 4px 40px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.community-board>*{max-width:640px;margin-inline:auto}
.community-board .primary,.cb-dialog .primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 18px;border:0;border-radius:999px;background:var(--ink);color:var(--surface);font-size:14px;font-weight:700;white-space:nowrap;transition:opacity .15s,transform .1s}
.community-board .primary:hover:not(:disabled),.cb-dialog .primary:hover:not(:disabled){background:var(--ink);opacity:.86}
.community-board .primary:active:not(:disabled),.cb-dialog .primary:active:not(:disabled){transform:scale(.97)}
.community-board .primary:disabled,.cb-dialog .primary:disabled{opacity:.4}
.community-board .primary svg,.cb-dialog .primary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.community-board .button,.cb-dialog .button{min-height:38px;gap:7px;padding:7px 16px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink);font-size:13.5px;font-weight:600}
.community-board .button:hover,.cb-dialog .button:hover{background:var(--surface);border-color:var(--muted)}

/* The heading: title and bell; filters as pills underneath */
.cb-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:6px 4px 0}
.cb-title{margin:0;font-family:var(--serif,Georgia,serif);font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.cb-tools{display:flex;align-items:center;gap:6px}
.cb-tabs{grid-column:1/-1;display:flex;gap:6px;margin-top:8px;overflow-x:auto;scrollbar-width:none}
.cb-tabs::-webkit-scrollbar{display:none}
.cb-tabs button{flex:none;min-height:34px;padding:6px 15px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:13.5px;font-weight:600;color:var(--muted);transition:background .15s,color .15s,border-color .15s}
.cb-tabs button:hover{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
.cb-tabs button[aria-pressed=true],.cb-tabs button[aria-pressed=true]:hover{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.community-board>.cb-author{display:flex;align-items:center;gap:6px;margin-top:12px}
.cb-author span{padding:6px 14px;border-radius:999px;background:var(--green-soft);font-size:13px;font-weight:700;color:var(--green)}
.cb-author button{width:30px;height:30px;min-height:30px;border-radius:50%;border:1px solid var(--line);background:var(--surface);font-size:11px;color:var(--muted)}

/* Avatars */
.cb-avatar{--hue:150;flex:none;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:hsl(var(--hue) 32% 90%);color:hsl(var(--hue) 34% 30%);font-size:14.5px;font-weight:700;letter-spacing:0;box-shadow:inset 0 0 0 1px hsl(var(--hue) 25% 82%)}
.cb-avatar-empty{background:var(--green-tint);color:var(--faint);box-shadow:inset 0 0 0 1px var(--line)}
.cb-avatar-empty svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}

.cb-avatar-photo{object-fit:cover;background:var(--green-tint);box-shadow:inset 0 0 0 1px var(--line)}
.cb-icon.cb-me svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}

/* One writer's page: photo, name and a line about them */
.cb-profile{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:12px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-1)}
.cb-profile[hidden]{display:none}
.cb-profile .cb-avatar{width:60px;height:60px;font-size:22px}
.cb-profile h3{margin:0;font-size:17px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.cb-profile p{margin:3px 0 0;font-size:14px;line-height:1.55;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.cb-profile-tools{display:flex;align-items:center;gap:4px}
.cb-profile-note{display:block;margin-top:6px;padding:6px 10px;border-radius:10px;background:var(--rose-soft,#fbeceb);font-size:12.5px;line-height:1.5;color:var(--rose,#8a2f28)}
.cb-profile-note[hidden]{display:none}
.cb-profile .cb-more{margin:0}
/* A hidden photo, shown to the administrator for review */
.cb-avatar-hidden{filter:grayscale(.6);outline:2px dashed var(--rose,#a3543f);outline-offset:2px}
/* The administrator's reported tab: profile photos with reports, then posts */
.cb-reported-profiles{display:grid;gap:2px;padding:12px 16px;border-bottom:1px solid var(--line)}
.cb-reported-profiles h3{margin:0 0 4px;font-size:13px;font-weight:700;color:var(--muted)}
.cb-reported-profile{display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 8px;border:0;border-radius:12px;background:none;text-align:left;color:var(--ink);font-size:14.5px;font-weight:600}
.cb-reported-profile:hover{background:var(--green-tint)}
.cb-reported-profile .cb-avatar{width:32px;height:32px;font-size:13px}
.cb-reported-profile small{margin-left:auto;font-size:12.5px;font-weight:600;color:var(--rose,#a3543f)}
.cb-profile-photo{display:flex;align-items:center;gap:12px}
.cb-profile-photo .cb-avatar{width:64px;height:64px;font-size:24px}
.cb-profile-photo label{position:relative;cursor:pointer}
.cb-profile-photo input{position:absolute;opacity:0;width:1px;height:1px}
.cb-field input{width:100%;min-height:42px;border:1px solid var(--line-strong);border-radius:12px;padding:9px 12px;font-size:15px;font-weight:400;color:var(--ink);background:var(--surface);font-family:inherit}
.cb-field input:focus{outline:none;border-color:var(--muted);box-shadow:0 0 0 3px var(--green-tint)}

/* The feed: one rounded panel; the start of a new thread, then threads divided by hairlines */
.cb-feed{margin-top:12px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow-1);overflow:hidden}
.cb-start{display:flex;align-items:center;gap:12px;width:100%;min-height:70px;padding:14px 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;text-align:left;font-size:15px;font-weight:400;color:var(--faint)}
.cb-start:hover{background:none}
.cb-start:hover .cb-start-text{color:var(--muted)}
.cb-start-avatar{display:grid}
.cb-start-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .15s}
.cb-start-post{flex:none;padding:7px 16px;border:1px solid var(--line-strong);border-radius:12px;font-size:14px;font-weight:700;color:var(--ink)}
.cb-thread{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;padding:14px 20px 8px;border-bottom:1px solid var(--line);cursor:pointer}
.cb-list .cb-thread:last-child{border-bottom:0}
.cb-rail{display:flex;flex-direction:column;align-items:center;min-height:0}
.cb-line{flex:1;width:2px;min-height:14px;margin:6px 0 0;border-radius:2px;background:var(--line-strong)}
.cb-body{display:grid;gap:5px;align-content:start;min-width:0}
.cb-meta{display:flex;align-items:center;gap:8px;min-width:0;height:22px;font-size:14px;color:var(--faint);white-space:nowrap}
.cb-by{min-height:0;padding:0;border:0;background:none;font-size:15px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.cb-by:hover{background:none!important;text-decoration:underline;text-underline-offset:3px}
.cb-ago{flex:none;color:var(--faint)}
.cb-ago:hover{color:var(--muted)}
.cb-edited{flex:none;font-size:12.5px}
.cb-hidden-badge{flex:none;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;background:var(--rose-soft,#fbe7e5);color:var(--rose,#a8392f)}
.cb-icon{width:38px;height:38px;min-height:38px;border:0;border-radius:50%;display:grid;place-items:center;flex:none;background:none;font-size:15px;color:var(--muted)}
.cb-icon:hover{background:var(--green-tint)}
.cb-icon svg{width:20px;height:20px;fill:currentColor}
.cb-more{width:32px;height:32px;min-height:32px;margin:0 -8px 0 auto}
.cb-text{font-size:15px;line-height:1.6;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.cb-text.clamped{display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}
.cb-more-link{justify-self:start;font-size:14px;color:var(--faint)}
.cb-more-link:hover{color:var(--ink)}
.cb-media{margin-top:4px;min-width:0}
.cb-photo-one img{display:block;width:auto;max-width:100%;height:auto;max-height:440px;border-radius:12px;box-shadow:0 0 0 1px var(--line);object-fit:cover;background:var(--green-tint)}
.cb-gallery{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-right:-20px;padding-right:20px}
.cb-gallery::-webkit-scrollbar{display:none}
.cb-gallery img{flex:none;height:250px;width:auto;max-width:82%;border-radius:12px;box-shadow:0 0 0 1px var(--line);object-fit:cover;scroll-snap-align:start;background:var(--green-tint)}
.cb-actions{display:flex;align-items:center;gap:2px;margin:2px 0 0 -9px}
.cb-act{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 10px;border:0;border-radius:999px;background:none;font-size:13.5px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums;transition:background .15s,color .15s}
.cb-act:hover{background:var(--green-tint)!important;color:var(--ink)}
.cb-act svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cb-act span:empty{display:none}
.cb-act-text{margin-left:auto;font-size:13px}
.cb-act-text svg{width:17px;height:17px}
.cb-like.liked{color:var(--like)}
.cb-like.liked svg{fill:var(--like);stroke:var(--like)}
.cb-foot{display:flex;justify-content:center;padding:14px}
.cb-foot:empty{display:none}
.cb-empty{display:grid;justify-items:center;gap:12px;padding:56px 20px;text-align:center;color:var(--muted)}
.cb-empty p{margin:0;line-height:1.8}
.cb-empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--green-soft)}
.cb-empty-icon svg{width:24px;height:24px;fill:none;stroke:var(--green);stroke-width:1.7}

/* Loading: bones in the shape of the feed */
.cb-skeleton{pointer-events:none}
.cb-skeleton .cb-body{gap:9px;padding:4px 0 10px}
.cb-bone{display:block;height:12px;width:62%;border-radius:6px;background:linear-gradient(90deg,var(--line) 0%,var(--green-tint) 40%,var(--line) 80%);background-size:300% 100%;animation:cb-shimmer 1.4s ease-in-out infinite}
.cb-bone.short{width:28%}
.cb-bone.long{width:90%}
.cb-bone-box{background:linear-gradient(90deg,var(--line) 0%,var(--green-tint) 40%,var(--line) 80%);background-size:300% 100%;animation:cb-shimmer 1.4s ease-in-out infinite;box-shadow:none}
@keyframes cb-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}

/* A song: notes drawn on dark green, played in place */
.cb-player{position:relative;height:200px;border-radius:14px;background:radial-gradient(120% 90% at 50% 0%,#245241 0%,#0c1814 75%);color:#fff;overflow:hidden;cursor:default;box-shadow:0 0 0 1px #0000000f}
.cb-player.full{height:min(46vh,380px);min-height:260px}
.cb-player canvas{position:absolute;inset:0;width:100%;height:100%}
.cb-song-head{position:absolute;left:16px;right:64px;top:14px;display:grid;gap:3px}
.cb-song-head strong{font-family:var(--serif,Georgia,serif);font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.01em;word-break:keep-all;overflow-wrap:anywhere}
.cb-player.full .cb-song-head{left:20px;top:18px}
.cb-player.full .cb-song-head strong{font-size:22px}
.cb-song-head span{font-size:12px;color:#cfe0d8;letter-spacing:.02em}
.cb-play{position:absolute;left:50%;top:54%;transform:translate(-50%,-50%);width:58px;height:58px;min-height:58px;border:0;border-radius:50%;background:#ffffff26;backdrop-filter:blur(10px);box-shadow:0 8px 30px #0005,inset 0 0 0 1px #ffffff40;display:grid;place-items:center;transition:transform .15s,background .15s,opacity .2s}
.cb-player.full .cb-play{top:50%;width:74px;height:74px;min-height:74px}
.cb-play:hover{background:#ffffff3a!important;transform:translate(-50%,-50%) scale(1.04)}
.cb-play svg{width:26px;height:26px;fill:#fff}
.cb-player.full .cb-play svg{width:32px;height:32px}
.cb-player.playing .cb-play{opacity:0}
.cb-player.playing:hover .cb-play,.cb-player.playing .cb-play:focus-visible{opacity:1}
.cb-status{position:absolute;left:0;right:0;top:calc(54% + 40px);text-align:center;font-size:12px;color:#d6e3dd}
.cb-chord{position:absolute;left:0;right:0;bottom:22px;text-align:center;font-family:var(--serif,Georgia,serif);font-size:26px;font-weight:600;letter-spacing:.02em;text-shadow:0 2px 14px #000c;pointer-events:none}
.cb-player.full .cb-chord{bottom:34px;font-size:36px}
.cb-mute{position:absolute;right:12px;top:12px;width:36px;height:36px;min-height:36px;border:0;border-radius:50%;background:#0005;box-shadow:inset 0 0 0 1px #ffffff26;display:grid;place-items:center}
.cb-mute:hover{background:#0008!important}
.cb-mute svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cb-time{position:absolute;right:14px;bottom:10px;font-size:12px;color:#dfe9e4;font-variant-numeric:tabular-nums}
.cb-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff1f}
.cb-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#7fe0ad,#c8f0d9)}

/* A song made by ✦ AI 작곡: its recording on the same dark green, marked as made with AI */
.cb-ai{display:grid;gap:12px;padding:16px 16px 14px;border-radius:14px;background:radial-gradient(120% 90% at 50% 0%,#2a4d3f 0%,#0c1814 78%);color:#fff;cursor:default;box-shadow:0 0 0 1px #0000000f}
.cb-ai.full{padding:20px 20px 16px}
.cb-ai-head{display:grid;gap:5px;min-width:0}
.cb-ai-badge{justify-self:start;padding:3px 10px;border-radius:999px;background:#d2b07233;box-shadow:inset 0 0 0 1px #d2b07266;color:#f1d9a6;font-size:11.5px;font-weight:700;letter-spacing:.04em}
.cb-ai-head strong{font-family:var(--serif,Georgia,serif);font-size:18px;font-weight:600;line-height:1.35;letter-spacing:-.01em;word-break:keep-all;overflow-wrap:anywhere}
.cb-ai.full .cb-ai-head strong{font-size:22px}
.cb-ai-meta{font-size:12px;color:#cfe0d8;letter-spacing:.02em}
.cb-ai-bar{display:flex;align-items:center;gap:12px}
.cb-ai-play{flex:none;width:46px;height:46px;min-height:46px;border:0;border-radius:50%;background:#ffffff26;box-shadow:inset 0 0 0 1px #ffffff40;display:grid;place-items:center;cursor:pointer}
.cb-ai-play:hover{background:#ffffff3a!important}
.cb-ai-play svg{width:22px;height:22px;fill:#fff}
.cb-ai.loading .cb-ai-play{opacity:.55}
.cb-ai-progress{position:relative;flex:1;height:20px;cursor:pointer}
.cb-ai-progress::before,.cb-ai-progress i{content:"";position:absolute;left:0;top:7px;height:6px;border-radius:3px}
.cb-ai-progress::before{right:0;background:#ffffff26}
.cb-ai-progress i{width:0;background:linear-gradient(90deg,#7fe0ad,#c8f0d9)}
.cb-ai-time{flex:none;min-width:44px;text-align:right;font-size:12px;color:#d6e3dd;font-variant-numeric:tabular-nums}
.cb-ai-words{justify-self:start;min-height:30px;padding:4px 12px;border:0;border-radius:999px;background:#ffffff1a;color:#e8f1ec;font-size:12.5px;font-weight:600;cursor:pointer}
.cb-ai-words:hover{background:#ffffff2e!important}
.cb-ai-lyrics{margin:0;max-height:300px;overflow:auto;padding:12px 14px;border-radius:10px;background:#00000059;color:#e8f1ec;font:inherit;font-size:14px;line-height:1.75;white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere}
.cb-ai.full .cb-ai-lyrics{max-height:none}
.cb-ai-note{margin:0;font-size:12px;color:#b9cbc2}

/* One thread: the post, a reply line joined to it by the rail, then the replies */
.cb-detail{padding-top:2px}
.cb-detail-top{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;margin:2px 0 8px}
.cb-detail-top h2{margin:0;text-align:center;font-size:16px;font-weight:700;color:var(--ink)}
.cb-back{width:40px;height:40px;min-height:40px;border:0;border-radius:50%;display:grid;place-items:center;background:none;color:var(--ink)}
.cb-back:hover{background:var(--green-tint)}
.cb-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cb-detail-panel{border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow-1);overflow:hidden}
.cb-thread-main{padding:18px 20px 0;border-bottom:0;cursor:default}
.cb-thread-main .cb-text{font-size:16px;line-height:1.65}
.cb-thread-main .cb-actions{padding-bottom:6px}
.cb-hidden-note{margin:2px 0;padding:10px 12px;border-radius:10px;background:var(--rose-soft,#fbeceb);color:var(--rose,#8a2f28);font-size:13px;line-height:1.6}
.cb-comment-form{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:6px 20px 16px;border-bottom:1px solid var(--line)}
.cb-comment-form input{min-width:0;min-height:40px;border:0;border-bottom:1px solid transparent;border-radius:0;padding:8px 0;font-size:15px;background:none;color:var(--ink)}
.cb-comment-form input::placeholder{color:var(--faint)}
.cb-comment-form input:focus{outline:none;border-bottom-color:var(--line-strong)}
.cb-comment-form .primary{min-height:34px;padding:6px 15px;font-size:13.5px}
.cb-comments{padding:4px 0 6px}
.cb-comments h3{display:flex;align-items:center;gap:6px;margin:0;padding:12px 20px 4px;font-size:14px;font-weight:700;color:var(--ink)}
.cb-comment-count{font-weight:500;color:var(--faint)}
.cb-comment{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;padding:12px 20px;border-bottom:1px solid var(--line)}
.cb-comment:last-child{border-bottom:0}
.cb-comment .cb-avatar{width:32px;height:32px;font-size:13px}
.cb-comment .cb-meta strong{font-size:14.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.cb-comment time{flex:none;font-size:13px}
.cb-comment p{margin:2px 0 0;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.cb-link{margin-left:auto;min-height:28px;padding:3px 9px;border:0;border-radius:999px;background:none;font-size:12.5px;color:var(--faint)}
.cb-link:hover{color:var(--rose,#a8392f)!important;background:var(--rose-soft,#fbeceb)!important}
.cb-comments .cb-note{padding:10px 20px 14px}
.cb-note{margin:0;font-size:13px;color:var(--muted);line-height:1.7}
.cb-note a{color:var(--green);text-decoration:underline;text-underline-offset:3px}

/* Replies to a reply sit under it; likes and 답글 under each */
.cb-thread-replies{border-bottom:1px solid var(--line)}
.cb-thread-replies:last-child{border-bottom:0}
.cb-thread-replies>.cb-comment{border-bottom:0}
.cb-comment.cb-child{padding-top:4px;padding-left:68px}
.cb-comment.cb-child .cb-avatar{width:26px;height:26px;font-size:11px}
.cb-comment.cb-child{grid-template-columns:26px minmax(0,1fr)}
.cb-comment .cb-by{font-size:14.5px}
.cb-comment-actions{display:flex;gap:2px;margin:2px 0 -4px -9px}
.cb-comment-actions .cb-act{min-height:30px;padding:4px 9px;font-size:12.5px}
.cb-comment-actions .cb-act svg{width:16px;height:16px}
.cb-comment-like.liked{color:var(--like)}
.cb-comment-like.liked svg{fill:var(--like);stroke:var(--like)}
.cb-mention{color:var(--green);font-weight:600}
.cb-reply-box{position:relative;display:grid;min-width:0}
.cb-replying{display:flex;align-items:center;gap:4px;font-size:12.5px;color:var(--muted)}
.cb-replying[hidden]{display:none}
.cb-replying button{min-height:24px;width:24px;padding:0;border:0;border-radius:50%;background:none;font-size:11px;color:var(--faint)}
.cb-mentions{position:absolute;left:0;bottom:calc(100% + 6px);z-index:5;display:grid;min-width:200px;max-width:100%;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-3)}
.cb-mentions[hidden]{display:none}
.cb-mentions button{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 10px;border:0;border-radius:10px;background:none;font-size:14px;font-weight:600;color:var(--ink);text-align:left}
.cb-mentions button:hover,.cb-mentions button:first-child{background:var(--green-tint)}
.cb-mentions .cb-avatar{width:26px;height:26px;font-size:11px}

/* The post menu and the dialogs */
.cb-menu{position:fixed;z-index:60;min-width:200px;padding:6px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-3);display:grid}
.cb-menu button{min-height:42px;text-align:left;padding:9px 12px;border:0;border-radius:10px;background:none;font-size:14.5px;font-weight:600;color:var(--ink)}
.cb-menu button:hover{background:var(--green-tint)}
.cb-menu .danger{color:var(--rose,#b03a2e)}
.cb-menu .danger:hover{background:var(--rose-soft,#fbeceb)}
.cb-dialog{padding:0;color:var(--ink);background:var(--surface);width:min(580px,calc(100vw - 20px));max-height:calc(100dvh - 32px);display:none;flex-direction:column}
.cb-dialog[open]{display:flex}
.cb-dialog.small{width:min(440px,calc(100vw - 20px))}
.cb-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px}
.cb-dialog-head h2{margin:0;font-size:16px;font-weight:700}
.cb-dialog .cb-icon{font-size:14px}
.cb-dialog-body{padding:8px 18px 16px;overflow:auto;display:grid;gap:14px;align-content:start}
.cb-dialog-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 18px 16px;border-top:1px solid var(--line)}
.cb-dialog-foot .cb-note{margin-right:auto;font-size:12.5px;color:var(--faint)}
.cb-text-button{min-height:36px;padding:6px;border:0;background:none!important;font-size:15px;color:var(--ink);white-space:nowrap}
.cb-text-button:hover{color:var(--muted)}
.cb-compose .cb-dialog-head{display:grid;grid-template-columns:minmax(84px,auto) minmax(0,1fr) minmax(84px,auto);border-bottom:1px solid var(--line);padding-bottom:12px}
.cb-compose .cb-dialog-head h2{text-align:center}
.cb-compose .cb-dialog-head .cb-text-button{justify-self:start}
.cb-compose .cb-dialog-body{padding-top:16px}
.cb-compose-row{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px}
.cb-compose-row .cb-rail>span:first-child{display:grid}
.cb-compose-main{display:grid;gap:6px;min-width:0}
.cb-name-input{width:100%;min-height:24px;padding:0;border:0;background:none;font-size:15px;font-weight:700;color:var(--ink)}
.cb-name-input::placeholder{font-weight:500;color:var(--faint)}
.cb-name-input:focus{outline:none}
.cb-compose textarea{width:100%;min-height:72px;padding:0;border:0;background:none;resize:none;font:inherit;font-size:15px;line-height:1.6;color:var(--ink);field-sizing:content;max-height:40vh}
.cb-compose textarea::placeholder{color:var(--faint)}
.cb-compose textarea:focus{outline:none}
.cb-attached{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:14px}
.cb-attached-head{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted)}
.cb-attached-head>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.cb-attached-head .cb-icon{width:30px;height:30px;min-height:30px;margin-left:auto;font-size:12px}
.cb-attached select{width:100%;min-height:42px;border:1px solid var(--line-strong);border-radius:10px;padding:8px 10px;font-size:14.5px;color:var(--ink);background:var(--surface)}
.cb-attach{display:flex;gap:4px;margin:2px 0 0 -8px}
.cb-attach-button{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px;border:0;border-radius:999px;background:none;font-size:13.5px;font-weight:600;color:var(--muted);cursor:pointer}
.cb-attach-button:hover,.cb-attach-button[aria-pressed=true]{background:var(--green-tint);color:var(--green)}
.cb-attach-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cb-attach-button input{position:absolute;opacity:0;width:1px;height:1px}
.cb-attach-button:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
.cb-previews{display:flex;gap:8px;overflow-x:auto}
.cb-previews img{flex:none;height:120px;width:auto;max-width:200px;object-fit:cover;border-radius:10px;cursor:pointer;box-shadow:0 0 0 1px var(--line)}
.cb-textarea{width:100%;min-height:44px;border:1px solid var(--line-strong);border-radius:12px;padding:10px 12px;font-size:15px;font-weight:400;color:var(--ink);background:var(--surface);font-family:inherit;resize:vertical;line-height:1.65;transition:border-color .15s,box-shadow .15s}
.cb-textarea:focus{outline:none;border-color:var(--muted);box-shadow:0 0 0 3px var(--green-tint)}
.cb-agree{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:var(--green-tint);font-size:12.5px;line-height:1.65;color:var(--muted)}
.cb-agree input{margin-top:3px;flex:none;width:17px;height:17px;accent-color:var(--green)}
.cb-reason{display:flex;gap:10px;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;font-size:14px;cursor:pointer}
.cb-reason:has(input:checked){border-color:var(--line-strong);background:var(--green-tint)}
.cb-reason input{accent-color:var(--green);width:17px;height:17px}

@media(max-width:560px){
 .community-board{padding:0 0 24px}
 .cb-head{padding:2px 2px 0}
 .cb-title{font-size:20px}
 .cb-tabs{margin-top:4px}
 .cb-tabs button{min-height:32px;padding:5px 13px;font-size:13px}
 .cb-feed,.cb-detail-panel{margin-top:10px;border-radius:18px}
 .cb-start{min-height:62px;padding:12px 14px}
 .cb-thread{grid-template-columns:34px minmax(0,1fr);column-gap:10px;padding:12px 14px 6px}
 .cb-thread-main{padding:14px 14px 0}
 .cb-avatar{width:34px;height:34px;font-size:13.5px}
 .cb-gallery{margin-right:-14px;padding-right:14px}
 .cb-gallery img{height:200px}
 .cb-photo-one img{max-height:360px}
 .cb-player{height:170px}
 .cb-player.full{height:44vh;min-height:240px}
 .cb-act-text span{display:none}
 .cb-comment-form{grid-template-columns:34px minmax(0,1fr) auto;column-gap:10px;padding:4px 14px 14px}
 .cb-comment{grid-template-columns:34px minmax(0,1fr);column-gap:10px;padding:12px 14px}
 .cb-comment.cb-child{padding-left:58px;grid-template-columns:24px minmax(0,1fr)}
 .cb-profile{padding:14px;gap:12px}
 .cb-profile .cb-avatar{width:52px;height:52px}
 .cb-comments h3{padding-inline:14px}
 .cb-dialog{width:100vw;max-width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0}
}
@media(prefers-reduced-motion:reduce){.cb-bone,.cb-bone-box{animation:none}}
/* Replies hidden by reports or written by someone you blocked; the reply menu; blocks */
.cb-gone .cb-gone-note{margin:4px 0 6px;font-size:13px;color:var(--faint);font-style:italic}
.cb-avatar-gone{display:inline-block;width:28px;height:28px;border-radius:50%;background:var(--line)}
.cb-flag{margin-left:6px;padding:1px 7px;border-radius:999px;background:var(--rose-soft,#fbeceb);color:var(--rose,#8a2f28);font-size:11.5px;font-weight:600}
.cb-comment-more{min-width:32px;letter-spacing:1px;color:var(--muted)}
.cb-reported-comments{display:grid;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line)}
.cb-reported-comments h3,.cb-blocked h3{margin:0 0 4px;font-size:14px}
.cb-reported-comment{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.cb-reported-head{display:flex;gap:8px;align-items:baseline}.cb-reported-head small{color:var(--muted)}
.cb-reported-comment p{margin:6px 0;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.cb-reported-tools{display:flex;gap:6px;flex-wrap:wrap}
.cb-blocked{margin-top:6px;padding-top:12px;border-top:1px solid var(--line)}
.cb-blocked-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;font-size:14px}
.cb-blocked .cb-note{padding:0}
