.social-periods{display:flex;gap:10px;max-width:480px;margin:24px 0 32px}.social-periods button{flex:1;border:1px solid var(--line);border-radius:24px;box-shadow:none;background:transparent;min-height:44px}.social-periods button[aria-pressed=true]{border-color:var(--accent);background:var(--soft);color:var(--accent);font-weight:650}.social-periods button:active{transform:scale(.96)}
.social-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:14px;max-width:800px;margin:20px auto 30px}.social-winner{display:flex;min-width:0;flex-direction:column;align-items:center;gap:10px;text-align:center;border-radius:20px;padding:18px 12px;background:color-mix(in srgb,var(--social-medal) 12%,transparent);border:1px solid color-mix(in srgb,var(--social-medal) 30%,transparent)}.social-place-1{--social-medal:#d7a62c;padding-top:24px;min-height:230px}.social-place-2{--social-medal:#8c9fb3;min-height:200px}.social-place-3{--social-medal:#bb8058;min-height:180px}.social-winner strong{overflow-wrap:anywhere}.social-winner span{color:var(--social-medal);font-weight:650}.social-winner small{color:var(--muted)}.social-cup{width:60px;height:60px;color:var(--social-medal)}.social-place-1 .social-cup{width:76px;height:76px}.social-cup svg{width:100%;height:100%}
.social-mine,.social-rank-row{display:flex;align-items:center;gap:20px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;margin:10px 0}.social-mine{background:var(--soft);color:var(--accent);justify-content:space-between;margin:24px 0}.social-rank-row>strong{width:32px;color:var(--muted)}.social-rank-row>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}.social-rank-row>span:last-of-type{color:var(--accent);white-space:nowrap}.social-is-me{background:var(--soft)}.social-state{min-height:24px;font-size:12px;margin-top:20px}
.social-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:26px 0}.social-summary>div{display:flex;flex-direction:column;gap:10px}.social-summary small{color:var(--muted)}.social-summary strong{font-size:clamp(19px,3vw,30px)}.social-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.social-day{display:flex;align-items:center;flex-direction:column;gap:10px;padding:14px 4px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}.social-day small{color:var(--muted)}.social-day.social-done{background:var(--soft);color:var(--accent)}.social-day.social-today{border-color:var(--accent)}.social-add{display:flex;align-items:end;gap:16px;margin:22px 0}.social-add label{flex:1;min-width:0;margin:0}.social-add input{margin-bottom:0}.social-add button{flex-shrink:0;min-height:46px}.social-friend{padding:22px 0;border-bottom:1px solid var(--line)}.social-friend:last-child{border-bottom:0}.social-friend .button-row{margin-top:18px;flex-wrap:wrap}.social-friend h3{margin:0 0 8px}.social-friend small{color:var(--muted)}
.social-spinner{display:inline-block;width:15px;height:15px;margin-right:8px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:social-spin .8s linear infinite}.social-spinner[hidden]{display:none}@keyframes social-spin{to{transform:rotate(360deg)}}
@media(max-width:550px){.social-podium{gap:7px}.social-winner{padding:14px 6px;font-size:13px}.social-place-1{min-height:210px}.social-place-2{min-height:185px}.social-place-3{min-height:165px}.social-cup{width:45px;height:45px}.social-place-1 .social-cup{width:58px;height:58px}.social-add{align-items:stretch;flex-direction:column}.social-summary{gap:8px}.social-week{gap:4px}.social-mine,.social-rank-row{padding:14px 12px;gap:10px}.social-mine{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.social-spinner{animation:none}.social-periods button{transition:none}}

.social-avatar{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;background:var(--soft);color:var(--accent);font-weight:650}.social-avatar img{width:100%;height:100%;object-fit:cover}.social-winner .social-avatar{width:52px;height:52px}.social-place-1 .social-avatar{width:62px;height:62px}.social-rank-row>.social-avatar{flex:none!important;width:42px;color:var(--accent)}.social-avatar-initial{font-size:17px}.social-rank-row>.social-avatar .social-avatar-initial{font-size:20px}

.social-rank-row>span:not(.social-avatar):not(:last-child){flex:1;min-width:0;overflow-wrap:anywhere}
.social-friend .toolbar{align-items:center;gap:12px;margin-bottom:0}.social-friend .toolbar>div{flex:1;min-width:0}.social-friend .toolbar .social-avatar{width:46px;height:46px}.social-friend .toolbar h3{margin:0 0 2px}

/* Ranked list requested by the user: no podium or individual row cards. */
#ranking-podium{display:none!important}.social-rank-row{border:0;border-radius:10px;margin:0;min-height:92px;padding:16px 12px;gap:16px}.social-rank-row>.social-avatar{width:52px;height:52px}.social-rank-number{flex:none!important;display:inline-flex;width:32px;min-width:32px;height:38px;align-items:center;justify-content:center;color:var(--muted);font-weight:650;position:relative}.social-medal svg{width:32px;height:38px}.social-medal strong{position:absolute;top:5px;left:0;width:100%;text-align:center;color:#624713;font-size:16px}.social-medal-1{color:#e8bb3d}.social-medal-2{color:#9cafbf}.social-medal-3{color:#c79165}.social-rank-row>.social-rank-name{flex:1;min-width:0;width:auto;font-size:18px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.social-rank-duration{flex:none!important;white-space:nowrap;color:var(--muted)!important}.social-is-me .social-rank-duration{color:var(--accent)!important;font-weight:650}.social-is-me{background:var(--soft)}.social-ranks{margin-top:12px}.social-periods{margin-bottom:18px}
@media(max-width:550px){.social-rank-row{padding:14px 2px;gap:10px;min-height:82px}.social-rank-row>.social-avatar{width:44px;height:44px}.social-rank-row>.social-rank-name{font-size:16px}.social-rank-duration{font-size:13px}.social-rank-number{width:26px;min-width:26px}.social-medal svg{width:26px}.social-medal strong{font-size:14px;top:7px}}
#ranking-boards{margin-bottom:10px}
#ranking-mine{display:block;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;margin:10px 0 0;padding:14px 0 0}
#ranking-mine[hidden]{display:none}
#ranking-mine .social-mine-caption{font-size:12px;color:var(--muted);margin:0 0 8px 12px}
#ranking-more{display:block;margin:16px auto 0;min-height:42px;padding:10px 28px;border:1px solid var(--line);border-radius:24px;background:transparent}
#ranking-more[hidden]{display:none}
#ranking-sentinel{height:1px}

/* 两行紧凑榜单：第一行 备注/用户名 + 爱心，第二行 指标 + 个人续火火焰 +（有备注时）小字用户名 */
.social-rank-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.social-rank-line1{display:flex;align-items:center;gap:8px;min-width:0}
.social-rank-who{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:0;font-size:18px;font-weight:650;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.social-rank-who:hover{color:var(--accent);text-decoration:underline dotted}
.social-rank-line2{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;color:var(--muted)}
.social-rank-subname{color:var(--muted);font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.social-flame{display:inline-flex;align-items:center;gap:3px;flex:none;color:#FF9348;opacity:.38;font-variant-numeric:tabular-nums}
.social-flame svg{width:14px;height:14px}
.social-flame-on{color:#FF9348;opacity:1}
.social-flame-makeup{color:#FF9348;opacity:1}
.social-heart{display:inline-flex;align-items:center;gap:4px;flex:none;border:1px solid var(--line);background:transparent;border-radius:16px;padding:4px 10px;min-height:30px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.social-heart svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.social-heart:hover{border-color:#e0557a;color:#e0557a;background:transparent}
.social-heart.social-hearted{color:#e0557a;border-color:#e0557a;background:#fdeef3}
.social-heart.social-hearted svg{fill:currentColor;stroke:none}
.social-heart:disabled{opacity:1;cursor:default}
body.dark .social-heart:hover{color:#ff8fab;border-color:#ff8fab}
body.dark .social-heart.social-hearted{color:#ff8fab;border-color:#ff8fab;background:#3a2430}
.social-note-meta{display:flex;justify-content:flex-end;margin:-8px 0 12px}
.social-day.social-makeup{background:#3D2A5C;border-color:#3D2A5C;color:#EDE7F6}
.social-day.social-makeup small{color:#D1C4E9}
body.dark .social-day.social-makeup{background:#9575CD;border-color:#9575CD;color:#241A35}
body.dark .social-day.social-makeup small{color:#3D2A5C}

/* 补火日历 */
.social-calendar-card .toolbar{margin-bottom:14px}
.social-calendar-nav{display:flex;align-items:center;gap:8px}
.social-calendar-nav button{min-height:34px;padding:4px 12px;border-radius:8px;font-size:16px;line-height:1}
.social-calendar-nav strong{min-width:96px;text-align:center;font-size:15px}
.social-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:6px;color:var(--muted);font-size:12px;text-align:center}
.social-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.social-calendar-cell{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0;border-radius:10px;border:1px solid transparent;background:var(--bg);color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.social-calendar-blank{background:transparent}
.social-calendar-done{background:#FF9348;border-color:#FF9348;color:#fff;font-weight:650}
.social-calendar-makeup{background:#3D2A5C;border-color:#3D2A5C;color:#EDE7F6;font-weight:650}
body.dark .social-calendar-makeup{background:#9575CD;border-color:#9575CD;color:#241A35}
.social-calendar-fixable{border:1px dashed var(--accent);color:var(--accent);background:transparent;cursor:pointer}
.social-calendar-fixable:hover{background:var(--soft)}
.social-calendar-today{outline:2px solid var(--accent);outline-offset:1px}
.social-trial-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid var(--line);background:var(--soft);border-radius:12px;padding:12px 14px;margin-bottom:14px}
.social-trial-banner[hidden]{display:none}
.social-trial-banner>div:first-child{flex:1;min-width:0}
.social-trial-banner p{margin-top:2px}
.social-trial-banner .button-row{flex-wrap:nowrap}
.social-trial-banner button{min-height:36px;padding:6px 14px}

@media(max-width:550px){
 #ranking-boards button{padding:9px 6px;font-size:13px}
 .social-rank-who{font-size:16px}
 .social-rank-line2{font-size:12px;gap:6px}
 .social-rank-subname{font-size:11px}
 .social-flame svg{width:13px;height:13px}
 .social-heart{padding:3px 8px;min-height:28px}
 .social-calendar{gap:4px}
 .social-calendar-week{gap:4px}
 .social-calendar-cell{min-height:36px;font-size:12px;border-radius:8px}
 .social-calendar-nav strong{min-width:80px;font-size:14px}
 .social-trial-banner .button-row{flex-wrap:wrap}
}
