/* Basstion Sound - community layer (js/acc.js): auth modal, community feed, profile, work page.
   Works in both looks; tuned for the Liquid shell. Everything is .cm-* scoped. */
:root { --cm-line: rgba(255,255,255,.09); --cm-card: rgba(255,255,255,.04); --cm-pink: 236,72,153; --cm-purple: 168,85,247; }

/* ---------- shared bits ---------- */
.cm-page { padding: 100px 0 96px; max-width: 1152px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
html:not(.lg) .cm-wrap { padding-top: 100px; }
.cm-wrap { padding-top: 28px; }
.cm-eyebrow { font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--cm-pink)); }
.cm-h3 { font: 800 26px/1.15 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; margin: 6px 0 6px; }
.cm-muted { color: rgba(255,255,255,.45); font-size: 13.5px; line-height: 1.5; }
.cm-empty { padding: 48px 16px; text-align: center; color: rgba(255,255,255,.42); font-size: 14px; border: 1px dashed var(--cm-line); border-radius: 20px; }
.cm-empty.sm { padding: 18px 8px; font-size: 13px; }
.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.cm-btn.sm { padding: 9px 16px; font-size: 13.5px; border-radius: 12px; }
.cm-btn:disabled { opacity: .6; cursor: wait; }
.cm-link-btn { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); padding: 4px 6px; cursor: pointer; }
.cm-link-btn:hover { color: #fff; }
.cm-link-btn.danger:hover { color: #fb7185; }
.cm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font: 600 12px Inter, sans-serif;
  background: rgba(255,255,255,.06); border: 1px solid var(--cm-line); color: rgba(255,255,255,.7); white-space: nowrap; }
.cm-pill.host { color: #ffb648; border-color: rgba(255,182,72,.35); background: rgba(255,182,72,.1); }
.cm-pill.wait { color: #22d3ee; border-color: rgba(34,211,238,.3); }
.cm-pill.ok { color: #4ade80; border-color: rgba(74,222,128,.3); }
.cm-pill.link:hover { color: #fff; border-color: rgba(var(--cm-pink),.5); }
.cm-ulink { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.cm-ulink:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(var(--cm-pink),.6); text-underline-offset: 3px; }
.cm-anon { color: rgba(255,255,255,.6); }
.cm-dot { margin: 0 6px; opacity: .4; }

.cm-ava { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; font: 800 16px 'Bricolage Grotesque', sans-serif; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.cm-ava.xs { width: 22px; height: 22px; font-size: 10px; }
.cm-ava.sm { width: 32px; height: 32px; font-size: 13px; }
.cm-ava.lg { width: 84px; height: 84px; font-size: 32px; }
.cm-ava.xl { width: 128px; height: 128px; font-size: 48px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 20px 50px -18px rgba(var(--cm-pink),.8); }

.cm-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--cm-line); margin-bottom: 18px; }
.cm-tabs button { padding: 9px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.55); transition: background .2s, color .2s; }
.cm-tabs button:hover { color: #fff; }
.cm-tabs button.on { color: #fff; background: linear-gradient(135deg, rgba(var(--cm-pink),.85), rgba(var(--cm-purple),.85)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.cm-tabs.sm { margin: 0; border-radius: 12px; }
.cm-tabs.sm button { padding: 6px 10px; font-size: 12px; border-radius: 9px; }

.cm-box { padding: 20px; border-radius: 22px; background: var(--cm-card); border: 1px solid var(--cm-line); }
.cm-box h3 { font: 800 18px 'Bricolage Grotesque', sans-serif; }
.cm-box-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- header chip ---------- */
.cm-chip-wrap:empty { display: none; }
.cm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; white-space: nowrap; transition: background .2s; }
.cm-chip:hover { background: rgba(255,255,255,.13); }
.cm-chip span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.cm-chip.cm-login { padding: 8px 18px; background: linear-gradient(135deg, rgba(var(--cm-pink),.9), rgba(var(--cm-purple),.9)); border-color: rgba(255,255,255,.3); }
.cm-chip-wrap.side { display: none; }
@media (min-width: 1100px) {
  html.lg .cm-chip-wrap.side { display: block; margin-bottom: 10px; }
  html.lg .cm-chip-wrap.side .cm-chip { width: 100%; justify-content: flex-start; border-radius: 14px; padding: 7px 10px; }
  html.lg .cm-chip-wrap.side .cm-chip.cm-login { justify-content: center; padding: 11px; }
  html.lg #cm-chip-nav { display: none; }
}
.lgs-new { margin-left: auto; font: 700 9.5px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px;
  color: #22d3ee; border: 1px solid rgba(34,211,238,.4); }

/* ---------- modal ---------- */
.cm-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4,2,10,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cm-modal.open { display: flex; animation: cmFade .25s ease; }
.cm-dialog { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 28px 24px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(var(--cm-pink),.14), rgba(var(--cm-purple),.08) 40%, rgba(255,255,255,.02)), #0d0a19;
  border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 40px 100px -30px rgba(0,0,0,.9); animation: cmPop .3s cubic-bezier(.2,.9,.3,1.2); }
.cm-dialog.wide { max-width: 560px; }
.cm-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.cm-x:hover { color: #fff; background: rgba(255,255,255,.12); }
.cm-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.cm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.65); }
.cm-form label small { font-weight: 400; color: rgba(255,255,255,.35); }
.cm-form input, .cm-form textarea, .cm-revform textarea, .cm-replyf textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: 500 14.5px Inter, sans-serif; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.cm-form input:focus, .cm-form textarea:focus, .cm-revform textarea:focus, .cm-replyf textarea:focus {
  border-color: rgba(var(--cm-pink),.7); box-shadow: 0 0 0 3px rgba(var(--cm-pink),.18); }
.cm-err { padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #fecdd3; background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.3); }
.cm-switch { margin-top: 16px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.5); }
.cm-switch button { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-ava-edit { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.cm-details summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.7); padding: 4px 0; }
.cm-details[open] summary { margin-bottom: 10px; }
.cm-toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 14px;
  font-weight: 700; font-size: 14px; background: #141024; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 50px -15px rgba(0,0,0,.9); transition: all .35s; }
.cm-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cm-toast.bad { border-color: rgba(244,63,94,.5); color: #fecdd3; }

/* ---------- community ---------- */
.cm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cm-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.cm-how p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.7); margin-top: 10px; }
.cm-how b { color: #fff; }
.cm-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cm-more { display: block; margin: 20px auto 0; padding: 12px 26px; border-radius: 14px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid var(--cm-line); }
.cm-more:hover { background: rgba(255,255,255,.1); }

.cm-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: var(--cm-card); border: 1px solid var(--cm-line);
  transition: transform .2s, border-color .2s, background .2s; }
.cm-card:hover { transform: translateY(-3px); border-color: rgba(var(--cm-pink),.35); background: rgba(255,255,255,.06); }
.cm-cover { position: relative; width: 76px; height: 76px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; font: 800 26px 'Bricolage Grotesque', sans-serif; overflow: hidden; }
.cm-cover.xl { width: 220px; height: 220px; border-radius: 26px; font-size: 80px; box-shadow: 0 30px 70px -25px rgba(var(--cm-pink),.7), inset 0 0 0 1px rgba(255,255,255,.15); }
.cm-play { position: absolute; inset: 0; border: 0; color: #fff; font-size: 22px; background: rgba(8,5,16,.5); opacity: 0; transition: opacity .2s; cursor: pointer; }
.cm-cover:hover .cm-play { opacity: 1; }
@media (hover: none) { .cm-play { opacity: 1; background: rgba(8,5,16,.3); } }
.cm-card-body { min-width: 0; flex: 1; }
.cm-card-title { display: block; font: 800 16px/1.25 'Bricolage Grotesque', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-card-title::after { content: ''; position: absolute; inset: 0; z-index: 0; }   /* whole card clickable */
.cm-card-by { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.cm-card-by a, .cm-cover { position: relative; z-index: 1; }
.cm-card-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cm-card-go { position: relative; z-index: 1; width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.5);
  border: 1px solid var(--cm-line); transition: all .2s; }
.cm-card:hover .cm-card-go { color: #fff; border-color: rgba(var(--cm-pink),.6); background: rgba(var(--cm-pink),.15); }

.cm-leads { display: flex; flex-direction: column; gap: 16px; }
.cm-lead-h { font: 700 12px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.cm-lead { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; transition: background .2s; }
.cm-lead:hover { background: rgba(255,255,255,.06); }
.cm-lead-pos { width: 18px; text-align: center; font: 700 13px 'JetBrains Mono', monospace; color: rgba(255,255,255,.35); }
.cm-lead:nth-child(2) .cm-lead-pos { color: #f5c518; }
.cm-lead-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cm-lead-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-lead-main small { font-size: 11.5px; color: rgba(255,255,255,.42); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-lead-score { font: 800 18px 'Bricolage Grotesque', sans-serif; color: #ffb648; }

/* home block */
.cm-home { margin-bottom: 56px; }
.cm-home .cm-leads { flex-direction: row; gap: 28px; }
.cm-home .cm-lead-col { flex: 1; min-width: 0; }
.cm-home-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cm-line); flex-wrap: wrap; }

/* ---------- profile ---------- */
.cm-prof { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 34px; border-radius: 30px; border: 1px solid rgba(255,255,255,.12); background: rgba(12,8,26,.6); margin-bottom: 24px; }
.cm-prof-bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 0% 0%, hsla(var(--h),70%,55%,.32), transparent 60%),
              radial-gradient(60% 100% at 100% 100%, rgba(var(--cm-purple),.22), transparent 60%); }
.cm-prof-main { position: relative; display: flex; gap: 26px; align-items: center; min-width: 0; }
.cm-prof-info { min-width: 0; }
.cm-prof-nick { font: 800 clamp(30px, 4vw, 48px)/1.05 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; margin: 6px 0 8px; overflow-wrap: anywhere; }
.cm-bio { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.75); white-space: pre-line; max-width: 560px; }
.cm-prof-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cm-prof-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.cm-gauges { position: relative; display: flex; flex-direction: column; gap: 14px; }
.cm-gauge { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 20px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(var(--tone),.3); min-width: 300px; }
.cm-gauge svg { width: 76px; height: 76px; transform: rotate(-90deg); grid-row: 1; grid-column: 1; }
.cm-gauge circle { fill: none; stroke-width: 4; stroke: rgba(255,255,255,.08); }
.cm-gauge circle.v { stroke: rgb(var(--tone)); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--tone),.7)); transition: stroke-dasharray 1s; }
.cm-gauge-in { grid-row: 1; grid-column: 1; display: grid; place-items: center; font: 800 24px 'Bricolage Grotesque', sans-serif; }
.cm-gauge-l { font-weight: 800; font-size: 15px; }
.cm-gauge-txt small { display: block; margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.4; }
.cm-myrev { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--cm-card); border: 1px solid var(--cm-line); margin-bottom: 10px; transition: border-color .2s; }
.cm-myrev:hover { border-color: rgba(var(--cm-pink),.35); }
.cm-myrev-main { min-width: 0; display: flex; flex-direction: column; }
.cm-myrev-main small { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }
.cm-myrev-text { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.75); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-guest { max-width: 520px; margin: 40px auto; text-align: center; padding: 40px 28px; border-radius: 28px; background: var(--cm-card); border: 1px solid var(--cm-line); }
.cm-guest .cm-prof-act { justify-content: center; }

/* ---------- work page ---------- */
.cm-back { display: inline-block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.5); }
.cm-back:hover { color: #fff; }
.cm-work { display: flex; gap: 32px; align-items: center; padding: 28px; border-radius: 30px; margin-bottom: 18px;
  background: linear-gradient(120deg, rgba(var(--cm-pink),.12), rgba(var(--cm-purple),.06) 50%, rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); }
.cm-work-info { min-width: 0; flex: 1; }
.cm-work-title { font: 800 clamp(28px, 3.6vw, 46px)/1.08 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; margin: 8px 0 10px; overflow-wrap: anywhere; }
.cm-work-by { font-size: 15px; color: rgba(255,255,255,.75); }
.cm-work-nums { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.cm-work-nums > div { padding: 12px 18px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--cm-line); min-width: 150px; }
.cm-work-nums b { display: block; font: 800 30px/1 'Bricolage Grotesque', sans-serif; color: #ffb648; }
.cm-work-nums > div + div b { color: #c084fc; }
.cm-work-nums b i { font-style: normal; font-size: 15px; opacity: .55; }
.cm-work-nums small { display: block; margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.5); }
.cm-lyrics { white-space: pre-line; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.75); max-height: 360px; overflow-y: auto; }
.cm-cta-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.cm-revform { margin-top: 14px; }
.cm-scores { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 14px 0 12px; }
.cm-scores button { height: 44px; border-radius: 12px; font: 800 16px 'Bricolage Grotesque', sans-serif; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05); border: 1px solid var(--cm-line); transition: all .15s; }
.cm-scores button:hover { color: #fff; border-color: rgba(var(--cm-pink),.6); transform: translateY(-2px); }
.cm-scores button.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgb(var(--cm-pink)), rgb(var(--cm-purple))); box-shadow: 0 10px 24px -10px rgba(var(--cm-pink),.9); }
.cm-revform-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cm-revform .cm-err { margin-top: 10px; }
.cm-sec-h { font: 800 22px 'Bricolage Grotesque', sans-serif; margin: 30px 0 14px; }
.cm-sec-h span { font: 700 14px 'JetBrains Mono', monospace; color: rgba(255,255,255,.4); margin-left: 6px; }
.cm-rev { padding: 18px 20px; border-radius: 22px; background: var(--cm-card); border: 1px solid var(--cm-line); margin-bottom: 12px; }
.cm-rev-head { display: flex; align-items: center; gap: 12px; }
.cm-rev-who { min-width: 0; flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 700; font-size: 14.5px; }
.cm-rev-who small { width: 100%; font-weight: 400; font-size: 12px; color: rgba(255,255,255,.4); }
.cm-badge { font: 700 11px 'JetBrains Mono', monospace; padding: 3px 7px; border-radius: 999px; color: #c084fc; background: rgba(var(--cm-purple),.14); border: 1px solid rgba(var(--cm-purple),.35); }
.cm-score { flex: none; min-width: 52px; text-align: center; padding: 8px 10px; border-radius: 14px; font: 800 20px/1 'Bricolage Grotesque', sans-serif; background: rgba(255,255,255,.06); }
.cm-score i { font-style: normal; font-size: 12px; opacity: .5; }
.cm-score.s0, .cm-score.s1 { color: #fb7185; background: rgba(244,63,94,.12); }
.cm-score.s2 { color: #fbbf24; background: rgba(251,191,36,.12); }
.cm-score.s3 { color: #a3e635; background: rgba(163,230,53,.12); }
.cm-score.s4 { color: #4ade80; background: rgba(74,222,128,.14); }
.cm-rev-text { margin: 12px 0 10px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.85); white-space: pre-line; overflow-wrap: anywhere; }
.cm-rev-act { display: flex; align-items: center; gap: 8px; }
.cm-like { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); border: 1px solid var(--cm-line); transition: all .15s; }
.cm-like:hover:not(:disabled) { color: #fff; border-color: rgba(var(--cm-pink),.6); }
.cm-like.on { color: #fff; background: rgba(var(--cm-pink),.25); border-color: rgba(var(--cm-pink),.6); }
.cm-like:disabled { opacity: .5; cursor: default; }
.cm-replies { margin-left: 44px; }
.cm-replies:not(:empty) { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--cm-line); }
.cm-reply { display: flex; gap: 10px; padding: 8px 0; }
.cm-reply-who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.cm-reply-who small { font-weight: 400; color: rgba(255,255,255,.4); font-size: 11.5px; }
.cm-reply p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.cm-replyf { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cm-cols { grid-template-columns: minmax(0, 1fr); }
  .cm-side { position: static; }
  .cm-prof { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .cm-gauge { min-width: 0; }
}
@media (max-width: 640px) {
  .cm-page { padding-top: 88px; }
  .cm-feed { grid-template-columns: minmax(0, 1fr); }
  .cm-prof-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cm-ava.xl { width: 96px; height: 96px; font-size: 36px; }
  .cm-work { flex-direction: column; align-items: flex-start; padding: 18px; gap: 18px; }
  .cm-cover.xl { width: 100%; height: auto; aspect-ratio: 1; max-width: 320px; }
  .cm-scores { grid-template-columns: repeat(5, 1fr); }
  .cm-home .cm-leads { flex-direction: column; }
  .cm-replies { margin-left: 0; }
  .cm-grid2 { grid-template-columns: 1fr; }
  .cm-chip > span:not(.cm-ava) { display: none; }
  .cm-chip { padding: 5px; }
  .cm-chip.cm-login { padding: 7px 14px; }
}
@keyframes cmFade { from { opacity: 0; } }
@keyframes cmPop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .cm-dialog, .cm-modal.open { animation: none; } }
@media (min-width: 1100px) { html.lg .cm-page { max-width: none; padding-left: 24px; padding-right: 24px; } }
/* page wrappers: the site gives every .pg > div a 104px top pad - our pages handle their own offset */
#cm-community, #cm-profile, #cm-work { padding-top: 0 !important; }
@media (max-width: 640px) {
  .cm-cover.xl { width: 160px; height: 160px; max-width: none; font-size: 60px; }
  .cm-work-nums { width: 100%; flex-wrap: nowrap; }
  .cm-work-nums > div { flex: 1 1 0; min-width: 0; padding: 10px 14px; }
  .cm-work-nums b { font-size: 26px; }
}
/* nick in the submit form comes from the account: show it is locked */
#sub-nick[readonly] { opacity: .7; cursor: not-allowed; background-image: linear-gradient(transparent, transparent); }

/* ======================================================================
   COMMUNITY PAGE v2: hero counters, steps / progress, shelf, tools, activity, tips
   ====================================================================== */
.cm-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cm-hero-stats:empty { display: none; }
.cm-hero-stats > div { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 16px; min-width: 120px;
  background: rgba(10,7,20,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cm-hero-stats b { font: 800 26px/1 'Bricolage Grotesque', sans-serif; }
.cm-hero-stats span { margin-top: 5px; font-size: 12px; color: rgba(255,255,255,.55); }
.cm-hero-stats > div:last-child b { color: #22d3ee; }

.cm-sec { margin-bottom: 64px; }
.cm-sec[hidden] { display: none; }
.cm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cm-sec-title { font: 800 clamp(22px, 2.2vw, 30px)/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.cm-sec-hint { margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.5); max-width: 680px; }
.cm-sec-count { font: 700 13px 'JetBrains Mono', monospace; padding: 4px 10px; border-radius: 999px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); border: 1px solid var(--cm-line); }
.cm-sec-count:empty { display: none; }

/* how it works */
.cm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cm-step { position: relative; overflow: hidden; padding: 24px; border-radius: 24px; background: var(--cm-card); border: 1px solid var(--cm-line); display: flex; flex-direction: column; }
.cm-step::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 100% 0%, rgba(var(--cm-pink),.14), transparent 60%); }
.cm-step:nth-child(2)::before { background: radial-gradient(90% 70% at 100% 0%, rgba(var(--cm-purple),.16), transparent 60%); }
.cm-step:nth-child(3)::before { background: radial-gradient(90% 70% at 100% 0%, rgba(245,197,24,.12), transparent 60%); }
.cm-step-top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cm-step-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, rgba(var(--cm-pink),.9), rgba(var(--cm-purple),.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 26px -12px rgba(var(--cm-pink),.9); }
.cm-step-ic svg, .cm-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-step-n { font: 800 44px/1 'Bricolage Grotesque', sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); }
.cm-step h4 { position: relative; font: 800 19px 'Bricolage Grotesque', sans-serif; }
.cm-step p { position: relative; margin-top: 8px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.62); flex: 1; }
.cm-step .cm-btn { position: relative; margin-top: 16px; align-self: flex-start; }

/* your progress */
.cm-progress { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; }
.cm-progress > * { padding: 18px; border-radius: 22px; background: var(--cm-card); border: 1px solid var(--cm-line); }
.cm-pg-me { display: flex; align-items: center; gap: 14px; transition: border-color .2s; }
.cm-pg-me:hover { border-color: rgba(var(--cm-pink),.45); }
.cm-pg-me .cm-ava.lg { width: 60px; height: 60px; font-size: 24px; }
.cm-pg-me > span { display: flex; flex-direction: column; min-width: 0; }
.cm-pg-me small { font-size: 12px; color: rgba(255,255,255,.45); }
.cm-pg-me b { font: 800 20px 'Bricolage Grotesque', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pg-me em { font-style: normal; font-size: 12.5px; color: #f472b6; margin-top: 2px; }
.cm-pg-g { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; border-color: rgba(var(--tone),.28) !important; }
.cm-pg-g svg { grid-row: 1; grid-column: 1; width: 64px; height: 64px; transform: rotate(-90deg); }
.cm-pg-g circle { fill: none; stroke-width: 4; stroke: rgba(255,255,255,.08); }
.cm-pg-g circle.v { stroke: rgb(var(--tone)); stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(var(--tone),.7)); }
.cm-pg-g > b { grid-row: 1; grid-column: 1; text-align: center; font: 800 20px 'Bricolage Grotesque', sans-serif; }
.cm-pg-g > span { font-weight: 800; font-size: 15px; display: flex; flex-direction: column; min-width: 0; }
.cm-pg-g small { font-weight: 400; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; }
.cm-pg-next { background: linear-gradient(130deg, rgba(var(--cm-pink),.18), rgba(var(--cm-purple),.10) 60%, rgba(255,255,255,.02)) !important; border-color: rgba(var(--cm-pink),.3) !important; }
.cm-pg-next small { font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #f472b6; }
.cm-pg-next b { display: block; margin-top: 6px; font: 800 18px 'Bricolage Grotesque', sans-serif; }
.cm-pg-next p { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.7); }

/* shelf: waiting for the first review */
.cm-shelf-nav { display: flex; gap: 8px; flex: none; }
.cm-shelf-nav button { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--cm-line); transition: background .2s; }
.cm-shelf-nav button:hover { background: rgba(255,255,255,.14); }
.cm-shelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.cm-shelf-card { flex: 0 0 196px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 10px 10px 14px; border-radius: 22px;
  background: var(--cm-card); border: 1px solid var(--cm-line); transition: transform .2s, border-color .2s; }
.cm-shelf-card:hover { transform: translateY(-4px); border-color: rgba(var(--cm-pink),.4); }
.cm-cover.shelf { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; font-size: 56px; }
.cm-shelf-t { margin: 12px 4px 0; font: 800 15px/1.25 'Bricolage Grotesque', sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.cm-shelf-t:hover { color: #f472b6; }
.cm-shelf-by { margin: 4px 4px 0; font-size: 12px; color: rgba(255,255,255,.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-shelf-go { margin: 12px 4px 0; padding: 9px 12px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(var(--cm-pink),.16); border: 1px solid rgba(var(--cm-pink),.4); transition: background .2s; }
.cm-shelf-go:hover { background: rgba(var(--cm-pink),.32); }

/* all works: tools */
.cm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.cm-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-radius: 14px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); transition: border-color .2s, box-shadow .2s; }
.cm-search:focus-within { border-color: rgba(var(--cm-pink),.7); box-shadow: 0 0 0 3px rgba(var(--cm-pink),.18); }
.cm-search svg { width: 18px; height: 18px; flex: none; }
.cm-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: #fff; font: 500 14.5px Inter, sans-serif; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chips button { padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); border: 1px solid var(--cm-line); transition: all .2s; }
.cm-chips button:hover { color: #fff; }
.cm-chips button.on { color: #1a1206; background: #ffb648; border-color: #ffb648; }
.cm-hint { margin: -6px 0 16px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.cm-pill.first { color: #f472b6; border-color: rgba(var(--cm-pink),.4); background: rgba(var(--cm-pink),.1); }

/* sidebar: fresh reviews, tips, collapsible rating rules */
.cm-act { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 14px; transition: background .2s; }
.cm-act:hover { background: rgba(255,255,255,.06); }
.cm-act-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cm-act-top { font-size: 13px; color: rgba(255,255,255,.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-act-top b { color: #fff; }
.cm-act-text { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-act .cm-score { min-width: 36px; padding: 6px 8px; font-size: 15px; border-radius: 10px; }
.cm-tips ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-tips li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.65); }
.cm-tips li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #ec4899, #a855f7); }
.cm-tips li b { color: #fff; }
details.cm-how summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.cm-how summary::-webkit-details-marker { display: none; }
details.cm-how summary::after { content: '▾'; color: rgba(255,255,255,.5); transition: transform .2s; }
details.cm-how[open] summary::after { transform: rotate(180deg); }

@media (max-width: 1000px) {
  .cm-progress { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cm-pg-me, .cm-pg-next { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cm-steps { grid-template-columns: minmax(0, 1fr); }
  .cm-sec { margin-bottom: 44px; }
  .cm-sec-head { align-items: flex-start; }
  .cm-hero-stats > div { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 10px 14px; }
  .cm-hero-stats b { font-size: 22px; }
  .cm-shelf-card { flex-basis: 160px; }
  .cm-shelf-nav { display: none; }
  .cm-progress { grid-template-columns: minmax(0, 1fr); }
  .cm-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .cm-chips button { flex: none; }
  #cm-sort { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  #cm-sort button { flex: none; }
}

/* sign-up checkboxes + danger zone */
.cm-form label.cm-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.7); cursor: pointer; }
.cm-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: #ec4899; cursor: pointer; }
.cm-check a { color: #f472b6; text-decoration: underline; text-underline-offset: 2px; }
.cm-danger { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.cm-danger summary { color: rgba(251,113,133,.85); }
.cm-danger p { margin: 4px 0 4px; }
.cm-btn-danger { color: #fff; background: rgba(244,63,94,.18); border: 1px solid rgba(244,63,94,.5); }
.cm-btn-danger:hover { background: rgba(244,63,94,.35); }

.cm-legal { margin-top: 2px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.42); text-align: center; }
.cm-legal a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 2px; }
