/* ==========================================================================
   BULLDER · social (prefijo so-): inicio, perfiles, personas, reacciones, notificaciones y retos.
   Solo variables del núcleo; ninguna clase del núcleo se redefine.
   ========================================================================== */
.so-tone-c1 { --so-tone: var(--c1); } .so-tone-c2 { --so-tone: var(--c2); } .so-tone-c3 { --so-tone: var(--c3); } .so-tone-c4 { --so-tone: var(--c4); }
.so-tone-c5 { --so-tone: var(--c5); } .so-tone-c6 { --so-tone: var(--c6); } .so-tone-c7 { --so-tone: var(--c7); } .so-tone-c8 { --so-tone: var(--c8); }

/* ------------------------------------------------------------------ piezas compartidas */
.so-feed { display: flex; flex-direction: column; gap: var(--sp-3); }
.so-tail { margin-top: var(--sp-3); }
.so-tail:empty { display: none; }
.so-sentinel { height: 1px; }
.so-more { margin-top: var(--sp-1); }
.so-spinner { margin: 18px auto; }
.so-end { text-align: center; color: var(--text-3); font-size: 13px; padding: 18px 0 4px; }
.so-error { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 16px; color: var(--text-2); }
.so-mini-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 36px 20px; color: var(--text-2); }
.so-mini-empty > .ic { color: var(--text-3); }
.so-mini-empty b { color: var(--text); }
.so-plain { display: flex; flex-direction: column; gap: 8px; }

.so-stack { display: inline-flex; flex: none; }
.so-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.so-stack .avatar + .avatar { margin-left: -5px; }
.so-stack .avatar-sm { font-size: 10px; letter-spacing: -.02em; }

.so-follow { position: relative; min-width: 98px; }
.so-follow::after { content: ""; position: absolute; inset: -5px 0; }
.so-follow.btn-outline { color: var(--text-2); }

/* fila de persona */
.so-people { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.so-people:empty { display: none; }
.so-person { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-3) 0 0; position: relative; }
.so-person + .so-person::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--line); }
.so-person-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-3); padding: 11px 0 11px var(--sp-4); min-height: 62px; }
.so-person-main:hover .so-person-name { color: var(--accent); }
.so-person-name { display: flex; align-items: center; gap: 5px; font-weight: 650; transition: color .15s; }
.so-person-lock { color: var(--text-3); display: inline-flex; }
.so-person-sub { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.so-person-end { display: flex; align-items: center; gap: 2px; flex: none; }
.so-person-end:empty { display: none; }
.so-row-x { width: 36px; height: 44px; color: var(--text-3); }

/* tarjeta de persona (sugerencias) */
.so-pcards { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 calc(var(--sp-4) * -1); padding: 2px var(--sp-4); }
.so-pcards::-webkit-scrollbar { display: none; }
.so-pcard { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.so-pcard-main { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; flex: 1; }
.so-pcard-name { max-width: 100%; margin-top: 6px; font-weight: 650; }
.so-pcard-sub { font-size: 12px; line-height: 1.3; color: var(--text-3); min-height: 31px; }

/* jalar para actualizar */
.so-ptr { position: fixed; top: calc(var(--topbar-h) + var(--safe-t)); left: 50%; z-index: 45; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); opacity: 0; transform: translate(-50%, -56px); transition: transform .25s var(--ease), opacity .2s; pointer-events: none; }
.so-ptr .ic { width: 20px; height: 20px; }
.so-ptr.is-ready { color: var(--accent); }
.so-ptr.is-busy .ic { animation: spin .7s linear infinite; }
@media (min-width: 960px) { .so-ptr { left: calc(50% + var(--sidebar-w) / 2); } }

/* ------------------------------------------------------------------ reacciones */
@keyframes so-pop { 0% { transform: scale(1); } 35% { transform: scale(1.38); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
.so-pop .ic { animation: so-pop .4s var(--ease); }
[data-like-workout] { touch-action: manipulation; -webkit-touch-callout: none; user-select: none; }
[data-like-count] { position: relative; }

.so-cms { display: flex; flex-direction: column; min-height: 100%; }
.so-cm { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; transition: opacity .2s; }
.so-cm.is-leaving { opacity: .35; pointer-events: none; }
@keyframes so-cm-in { from { opacity: 0; transform: translateY(8px); } }
.so-cm.is-new { animation: so-cm-in .28s var(--ease); }
.so-cm-av { flex: none; margin-top: 2px; }
.so-cm-main { flex: 1; min-width: 0; }
.so-cm-head { display: flex; align-items: baseline; gap: 8px; }
.so-cm-name { font-weight: 650; font-size: 14px; }
.so-cm-name:hover { color: var(--accent); }
.so-cm-time { font-size: 12px; color: var(--text-3); flex: none; }
.so-cm-body { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.42; }
.so-cm-act { width: 44px; height: 44px; margin: -4px -10px 0 0; color: var(--text-3); }
.so-cm-act:hover { color: var(--text); }
.so-cm-older { margin-bottom: 4px; }
.so-cform { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 8px; position: relative; }
.so-cinput { flex: 1; min-height: 46px; height: 46px; max-height: 112px; padding: 11px 16px; border-radius: 23px; resize: none; line-height: 1.4; scrollbar-width: none; }
.so-csend { width: 46px; height: 46px; background: var(--accent); color: var(--on-accent); transition: opacity .15s, transform .12s, background .15s; }
.so-csend:hover { background: var(--accent-press); }
.so-csend[disabled] { background: var(--surface-2); color: var(--text-3); pointer-events: none; }
.so-csend.is-loading .ic { animation: spin .7s linear infinite; }
.so-ccount { position: absolute; right: 62px; top: -20px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--text-3); background: var(--bg-elev); padding: 1px 6px; border-radius: 6px; }
.so-ccount.is-over { color: var(--danger); }

/* ------------------------------------------------------------------ inicio */
.so-home { display: flex; flex-direction: column; gap: var(--sp-4); }
.so-hello { padding: 2px 0 0; }
.so-hello-date { font: 600 13px/1.2 var(--font); color: var(--text-3); }
.so-hello h1 { font-size: 26px; margin-top: 4px; overflow-wrap: anywhere; }

.so-widgets { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin: 0 calc(var(--sp-4) * -1); padding: 0 var(--sp-4); scroll-padding: 0 var(--sp-4); }
.so-widgets::-webkit-scrollbar { display: none; }
.so-widgets:not(:has(.so-widget:not(:empty))) { display: none; }
.so-widget { flex: 0 0 88%; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.so-widget:empty { display: none; }
.so-widget > * { flex: 1; }
.so-widgets:not(:has(.so-widget:not(:empty) ~ .so-widget:not(:empty))) .so-widget { flex-basis: 100%; }

.so-home-grid { display: flex; flex-direction: column; gap: var(--sp-4); }
.so-rail, .so-main { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.so-main > [data-welcome]:empty { display: none; }
.so-rail-box .section-head { margin: 0 0 10px; align-items: center; }
.so-rail-box .section-head h3 { font-size: 17px; }
.so-rail:not(:has(.so-rail-box:not([hidden]))) { display: none; }

.so-chminis { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 calc(var(--sp-4) * -1); padding: 2px var(--sp-4); }
.so-chminis::-webkit-scrollbar { display: none; }
.so-chmini { flex: 0 0 min(78%, 290px); scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; min-height: 66px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; transition: border-color .15s, transform .12s var(--ease); }
.so-chmini:hover { border-color: var(--line-strong); }
.so-chmini:active { transform: scale(.98); }
.so-chmini b { display: block; font-weight: 650; font-size: 14.5px; }
.so-chmini .grow > span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.so-chmini-ring { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--so-tone) 16%, transparent); color: var(--so-tone); }
.so-chmini-ring svg:not(.ic) { position: absolute; inset: 0; }
.so-chmini-ring:has(svg:not(.ic)) { background: none; }
.so-chmini-ring i { display: grid; place-items: center; }
.so-chmini.is-done .so-chmini-ring { color: var(--accent); }

.so-feed-bar { display: flex; align-items: center; gap: 8px; }
.so-seg { flex: 1; max-width: 360px; }
.so-refresh { margin-left: auto; color: var(--text-2); }
.so-refresh.is-spinning .ic { animation: spin .7s linear infinite; }

.so-welcome { display: flex; flex-direction: column; gap: 8px; padding: var(--sp-5) var(--sp-4) var(--sp-4); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%); }
.so-welcome h2 { font-size: 22px; }
.so-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.so-step { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; min-height: 64px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid transparent; transition: border-color .15s, transform .12s var(--ease), background .15s; }
.so-step:hover { border-color: var(--line-strong); }
.so-step:active { transform: scale(.985); }
.so-step b { display: block; font-weight: 650; }
.so-step .grow > span { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.so-step > .ic { color: var(--text-3); }
.so-step-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.so-step.is-main { background: var(--accent); color: var(--on-accent); }
.so-step.is-main:hover { background: var(--accent-press); }
.so-step.is-main .grow > span, .so-step.is-main > .ic { color: color-mix(in srgb, var(--on-accent) 72%, transparent); }
.so-step.is-main .so-step-ic { background: color-mix(in srgb, var(--on-accent) 14%, transparent); color: var(--on-accent); }

@media (max-width: 959px) {
  /* En teléfono la bienvenida (si la hay) va antes que los retos y las personas; luego el feed. */
  .so-main { display: contents; }
  .so-main > [data-welcome] { order: -1; }
  .so-rail { order: 0; }
  .so-main > .so-feed-bar { order: 1; }
  .so-main > [data-feed] { order: 2; }
  /* En teléfono las sugerencias solo aparecen cuando hacen falta: al empezar, o en Descubrir. */
  .so-rail [data-rail-people] { display: none; }
  .so-rail.is-lead [data-rail-people], .so-rail.is-discover [data-rail-people] { display: block; }
  .so-rail [data-rail-challenges].is-promo { display: none; }
  .so-rail.is-lead [data-rail-challenges].is-promo { display: block; }
  .so-rail:not(.is-lead):not(.is-discover):not(:has([data-rail-challenges]:not(.is-promo):not([hidden]))) { display: none; }
}
@media (min-width: 960px) {
  .so-hello h1 { font-size: 30px; }
  .so-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--sp-4); overflow: visible; margin: 0; padding: 0; }
  .so-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-6); align-items: start; }
  .so-home-grid:has(.so-rail:not(:has(.so-rail-box:not([hidden])))) { grid-template-columns: minmax(0, 720px); }
  .so-rail { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--topbar-h) + 16px); gap: var(--sp-5); }
  .so-main { grid-column: 1; grid-row: 1; }
  .so-rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-4); }
  .so-chminis { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 4px; }
  .so-chmini { flex: none; background: none; border: 0; padding: 6px; margin: 0 -6px; border-radius: var(--r-sm); min-height: 58px; }
  .so-chmini:hover { background: var(--surface-2); }
  .so-pcards { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 2px; }
  .so-pcard { flex: none; flex-direction: row; align-items: center; gap: 10px; padding: 7px 0; background: none; border: 0; border-radius: 0; }
  .so-pcard-main { flex-direction: row; text-align: left; gap: 10px; align-items: center; }
  .so-pcard-main .avatar { width: 40px; height: 40px; font-size: 15px; }
  .so-pcard-main b, .so-pcard-main .so-pcard-sub { display: block; }
  .so-pcard-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; }
  .so-pcard-main .avatar { grid-row: 1 / 3; }
  .so-pcard-name { margin: 0; align-self: end; }
  .so-pcard-sub { min-height: 0; align-self: start; -webkit-line-clamp: 1; }
  .so-pcard .so-follow { width: auto; display: inline-flex; flex: none; min-width: 92px; }
  .so-pcard:nth-child(n+6) { display: none; }
}

/* ------------------------------------------------------------------ perfil */
.so-prof { display: flex; flex-direction: column; gap: var(--sp-4); }
.so-prof-sk { display: flex; align-items: center; gap: var(--sp-4); }
.so-sk-av { width: 84px; height: 84px; border-radius: 50%; flex: none; }
.so-prof-head { display: flex; flex-direction: column; gap: var(--sp-4); }
.so-prof-top { display: flex; align-items: center; gap: var(--sp-4); }
.so-prof-av .avatar { width: 84px; height: 84px; font-size: 31px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line-strong); }
.so-prof.is-me .so-prof-av .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.so-prof-id { min-width: 0; flex: 1; }
.so-prof-name { font-size: 23px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; overflow-wrap: anywhere; }
.so-prof-user { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--text-2); font-size: 14px; margin-top: 3px; }
.so-prof-priv { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.so-prof-bio { margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.so-prof-bio-add { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-weight: 600; font-size: 13.5px; min-height: 32px; }
.so-prof-bio-add:hover { color: var(--accent); }

.so-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.so-count { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 4px; position: relative; transition: background .15s; }
.so-count + .so-count::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
a.so-count:hover, button.so-count:hover { background: var(--surface-2); }
.so-count b { font: 700 20px/1.1 var(--font-display); }
.so-count span { font-size: 12px; color: var(--text-2); }

.so-mutual { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); min-height: 32px; }
.so-mutual .avatar { box-shadow: 0 0 0 2px var(--bg); }
.so-mutual:hover { color: var(--text); }
.so-prof-actions { display: flex; gap: var(--sp-2); }
.so-prof-actions .btn { flex: 1; min-width: 0; }
.so-prof-actions .so-follow { flex: 1.4; }

.so-prof-grid { display: flex; flex-direction: column; gap: var(--sp-4); }
.so-prof-col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.so-prof-chart:empty { display: none; }
.so-sec .section-head { margin: 4px 0 var(--sp-3); align-items: center; }

.so-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.so-kpi { display: flex; flex-direction: column; gap: 3px; padding: 11px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 0; }
.so-kpi-ic { color: var(--text-3); margin-bottom: 3px; }
.so-kpi.is-hot .so-kpi-ic { color: var(--c7); }
.so-kpi.is-pr .so-kpi-ic { color: var(--pr); }
.so-kpi b { font: 700 18px/1.1 var(--font-display); white-space: nowrap; }
.so-kpi b small { font: 600 11.5px/1 var(--font); color: var(--text-2); margin-left: 2px; }
.so-kpi > span:last-child { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.so-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.so-tile { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; transition: border-color .15s, transform .12s var(--ease), background .15s; }
.so-tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.so-tile:active { transform: scale(.97); }
.so-tile-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.so-tile:hover .so-tile-ic { background: var(--surface-3); }
.so-tile b { display: block; font-weight: 650; font-size: 14.5px; }
.so-tile .grow > span { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.so-req-banner { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); min-height: 60px; }
.so-req-banner > .ic:first-child { color: var(--accent); }
.so-req-banner > .ic:last-child { color: var(--text-3); }

.so-locked { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--text-2); }
.so-locked-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); margin-bottom: 4px; }
.so-locked h3 { color: var(--text); }
.so-locked p { max-width: 340px; }

@media (min-width: 960px) {
  .so-prof { gap: var(--sp-5); }
  .so-prof-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4) var(--sp-6); align-items: center; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .so-prof-top { grid-column: 1; gap: var(--sp-5); }
  .so-prof-av .avatar { width: 104px; height: 104px; font-size: 38px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line-strong); }
  .so-prof.is-me .so-prof-av .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
  .so-prof-name { font-size: 28px; }
  .so-prof-bio { max-width: 520px; }
  .so-counts { grid-column: 2; grid-row: 1; min-width: 360px; background: var(--surface-2); border-color: transparent; }
  a.so-count:hover, button.so-count:hover { background: var(--surface-3); }
  .so-mutual { grid-column: 1; }
  .so-mutual .avatar { box-shadow: 0 0 0 2px var(--surface); }
  .so-prof-actions { grid-column: 2; justify-content: flex-end; }
  .so-mutual + .so-prof-actions { grid-row: 2; }
  .so-prof-actions .btn, .so-prof-actions .so-follow { flex: none; min-width: 150px; }
  .so-prof-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
  .so-prof-grid > .so-prof-col:first-child { position: sticky; top: calc(var(--topbar-h) + 16px); }
  .so-prof-grid > .so-prof-col:first-child:not(:has(> :not(:empty))) { display: none; }
  .so-prof-grid:has(> .so-prof-col:first-child:not(:has(> :not(:empty)))) { grid-template-columns: minmax(0, 720px); }
  .so-locked { max-width: 560px; width: 100%; margin: 0 auto; padding: 56px 32px; }
}

/* ------------------------------------------------------------------ listas de personas y descubrir */
.so-list-screen, .so-discover { display: flex; flex-direction: column; gap: var(--sp-4); }
.so-tabs { gap: 0; }
.so-tab { flex: 1; text-align: center; padding: 13px 0; color: var(--text-3); font: 650 14.5px/1 var(--font); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.so-tab span { color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.so-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.so-search { position: sticky; top: calc(var(--topbar-h) + var(--safe-t) + 6px); z-index: 5; }
.so-search .input { padding-right: 48px; box-shadow: 0 0 0 6px var(--bg); }
.so-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.so-discover [data-results]:empty { display: none; }
.so-discover .section-head { margin-top: 0; }

/* ------------------------------------------------------------------ notificaciones */
.so-notifs { display: flex; flex-direction: column; gap: var(--sp-5); }
.so-notifs .section-head { margin: 0 0 var(--sp-3); align-items: center; }
.so-rqs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.so-rq { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px var(--sp-3) 10px var(--sp-4); position: relative; }
.so-rq + .so-rq::before { content: ""; position: absolute; top: 0; left: var(--sp-4); right: 0; height: 1px; background: var(--line); }
.so-rq-main { flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: var(--sp-3); min-height: 46px; }
.so-rq-main b { display: block; font-weight: 650; }
.so-rq-main .grow > span { display: block; font-size: 13px; color: var(--text-2); }
.so-rq-acts { display: flex; gap: 8px; flex: none; margin-left: auto; }
.so-rq-done { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 650; font-size: 13.5px; min-height: 36px; }

.so-nts { display: flex; flex-direction: column; }
.so-nt-group { font: 700 11.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 8px; padding-left: 4px; }
.so-nt-group:first-child { margin-top: 0; }
.so-nt { display: flex; align-items: center; gap: 8px; border-radius: var(--r-sm); margin: 0 -8px; padding: 0 8px; transition: background .15s; position: relative; }
.so-nt:hover { background: var(--surface); }
.so-nt.is-unread { background: var(--accent-soft); }
.so-nt.is-unread::after { content: ""; position: absolute; right: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
.so-nt.is-unread:has(.so-nt-end)::after { display: none; }
.so-nt + .so-nt { margin-top: 2px; }
.so-nt-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 0; min-height: 62px; }
.so-nt.is-unread .so-nt-main { padding-right: 18px; }
.so-nt-pic { position: relative; flex: none; }
.so-nt-sys { background: var(--surface-2); color: var(--text-2); }
.so-nt-badge { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 2px var(--bg); }
.so-nt-badge .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.so-nt-like { background: var(--danger); color: #fff; } .so-nt-like .ic { fill: currentColor; }
.so-nt-comment { background: var(--info); color: #fff; }
.so-nt-follow, .so-nt-follow_accept { background: var(--accent); color: var(--on-accent); }
.so-nt-pr { background: var(--pr); color: #1c1300; }
.so-nt-text { display: block; font-size: 14.5px; line-height: 1.38; overflow-wrap: anywhere; }
.so-nt-text b { font-weight: 650; }
.so-nt-time { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.so-nt-end { flex: none; }

/* ------------------------------------------------------------------ retos */
.so-chs { display: flex; flex-direction: column; gap: var(--sp-2); }
.so-ch-sec .section-head { align-items: center; }
.so-ch-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.so-ch-sum > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; text-align: center; position: relative; }
.so-ch-sum > div + div::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.so-ch-sum b { font: 700 22px/1.1 var(--font-display); }
.so-ch-sum span { font-size: 12px; color: var(--text-2); }
.so-ch-intro { align-items: center; }
.so-ch-intro > .ic { color: var(--accent); margin: 0; }
.so-ch-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.so-ch { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; transition: border-color .15s, transform .12s var(--ease); }
.so-ch::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--so-tone); opacity: .9; }
.so-ch:hover { border-color: var(--line-strong); }
.so-ch:has(.so-ch-link:active) { transform: scale(.985); }
.so-ch-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.so-ch-link:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.so-ch-join { position: relative; z-index: 2; min-width: 92px; }
.so-ch-top { display: flex; align-items: center; gap: 12px; }
.so-ch-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--so-tone) 16%, transparent); color: var(--so-tone); }
.so-ch-ic-lg { width: 60px; height: 60px; border-radius: 19px; }
.so-ch-title { font-size: 17px; overflow-wrap: anywhere; }
.so-ch-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.so-ch-meta span { display: inline-flex; align-items: center; gap: 4px; }
.so-ch-meta .ic { width: 14px; height: 14px; color: var(--text-3); }
.so-ch-ring { position: relative; flex: none; display: grid; place-items: center; }
.so-ch-ring i { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.so-ch-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.so-ch-prog { display: flex; flex-direction: column; gap: 8px; }
.so-ch-prog b { font-weight: 650; font-size: 14.5px; }
.so-ch .progress > i { background: var(--so-tone); }
.so-ch.is-done .progress > i { background: var(--accent); }
.so-ch-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.so-ch-friends { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); min-width: 0; }
.so-ch.is-ended { opacity: .82; }
.so-ch.is-ended::before { background: var(--line-strong); }

.so-chd { display: flex; flex-direction: column; gap: var(--sp-4); }
.so-chd-grid, .so-chd-side { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.so-chd-hero { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; background: linear-gradient(165deg, color-mix(in srgb, var(--so-tone) 13%, var(--surface)), var(--surface) 58%); }
.so-chd-head { display: flex; align-items: center; gap: 14px; }
.so-chd-title { font-size: 24px; margin-top: 8px; overflow-wrap: anywhere; }
.so-chd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.so-chd-facts > div { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--text) 5%, transparent); min-width: 0; }
.so-chd-facts span { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.so-chd-facts span .ic { width: 13px; height: 13px; }
.so-chd-facts b { font: 700 14px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.so-chd-mine { display: flex; flex-direction: column; gap: 14px; }
.so-chd-mine.is-done { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.so-chd-mine-top { display: flex; align-items: center; gap: var(--sp-4); }
.so-chd-ring { position: relative; flex: none; display: grid; place-items: center; }
.so-chd-ring i { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.so-chd-val { font: 700 22px/1.15 var(--font-display); margin: 6px 0 4px; }
.so-chd-place { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.so-chd-place .ic { color: var(--pr); }
.so-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.so-week { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 12px; min-width: 0; border: 1px solid transparent; }
.so-week b { font-size: 12.5px; font-weight: 650; }
.so-week .dim { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-week.is-done { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.so-week-dots { display: flex; gap: 4px; margin-bottom: 4px; }
.so-week-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.so-week-dots i.is-on { background: var(--so-tone); }
.so-week.is-done .so-week-dots i.is-on { background: var(--accent); }
.so-chd-board .section-head { margin-top: 4px; align-items: center; }
.so-chd-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.so-chd-actions .btn { flex: 1; }

.so-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 6px 0 var(--sp-4); }
.so-pod { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; font-size: 12.5px; color: var(--text-2); }
.so-pod b { max-width: 100%; margin-top: 8px; font-size: 14px; font-weight: 650; color: var(--text); }
.so-pod.is-me b { color: var(--accent); }
.so-pod-av { position: relative; display: grid; }
.so-pod-av .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line-strong); }
.so-pod-1 .so-pod-av .avatar { width: 72px; height: 72px; font-size: 27px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pr); }
.so-pod-2 .so-pod-av .avatar, .so-pod-3 .so-pod-av .avatar { width: 54px; height: 54px; font-size: 20px; }
.so-pod-av em { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font: 700 12px/1 var(--font); font-style: normal; box-shadow: 0 0 0 2px var(--bg); }
.so-pod-1 .so-pod-av em { background: var(--pr); color: #1c1300; }
.so-pod-crown { position: absolute; left: 50%; top: -19px; transform: translateX(-50%); color: var(--pr); display: grid; }
.so-pod-step { display: block; width: 100%; margin-top: 10px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-bottom: 0; }
.so-pod-1 .so-pod-step { height: 54px; background: linear-gradient(180deg, color-mix(in srgb, var(--pr) 22%, var(--surface)), var(--surface)); }
.so-pod-2 .so-pod-step { height: 36px; }
.so-pod-3 .so-pod-step { height: 22px; }

.so-lb-row { display: flex; align-items: center; gap: 12px; padding: 10px var(--sp-4) 10px 10px; min-height: 60px; position: relative; transition: background .15s; }
.so-lb-row + .so-lb-row::before { content: ""; position: absolute; top: 0; left: 44px; right: 0; height: 1px; background: var(--line); }
.so-lb-row:hover { background: var(--surface-2); }
.so-lb-row.is-me { background: var(--accent-soft); }
.so-lb-rank { width: 26px; flex: none; text-align: center; font: 700 14px/1 var(--font-display); color: var(--text-3); }
.so-lb-rank.is-top { color: var(--pr); }
.so-lb-row b { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; min-width: 0; }
.so-lb-row b .badge { flex: none; height: 18px; font-size: 10.5px; padding: 0 6px; }
.so-lb-bar { display: block; height: 5px; margin-top: 7px; max-width: 220px; }
.so-lb-bar > i { background: var(--so-tone); }
.so-lb-val { flex: none; display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: 13.5px; color: var(--text); }
.so-lb-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.so-lb-check .ic { width: 12px; height: 12px; stroke-width: 3; }
.so-lb-mine { margin-top: 10px; border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

@media (min-width: 720px) {
  .so-ch-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .so-chd-actions .btn { flex: none; min-width: 170px; }
}
@media (min-width: 960px) {
  .so-chd { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: var(--sp-6); row-gap: var(--sp-4); align-items: start; }
  .so-chd-grid { display: contents; }
  .so-chd-side { grid-column: 1; grid-row: 1; }
  .so-chd-board { grid-column: 2; grid-row: 1 / span 2; }
  .so-chd-actions { grid-column: 1; grid-row: 2; }
  .so-chd-actions .btn { flex: 1; min-width: 0; }
  .so-chd-board .section-head { margin-top: 0; }
  .so-pod-av .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line-strong); }
  .so-podium { max-width: 520px; margin-left: auto; margin-right: auto; }
}
