.wg-reaction,.wg-follow{display:grid;gap:.65rem;padding:1rem 0;font-size:1rem}.wg-reaction-actions{display:flex;gap:.65rem;flex-wrap:wrap}.wg-reaction .btn,.wg-follow .btn{font:inherit;min-height:44px}.wg-reaction small,.wg-follow small{line-height:1.6;opacity:.85}.wg-reaction [role=status]:empty,.wg-follow [role=status]:empty{display:none}.wg-reaction .btn:disabled{opacity:.8;cursor:default}.wg-reaction .btn.is-selected,.wg-follow .btn.is-selected{background:#dbeafe;color:#1e40af;border-color:#60a5fa}.wg-follow-row{display:flex;justify-content:space-between;gap:1rem;padding:1rem;border-bottom:1px solid var(--line,#d1d5db);flex-wrap:wrap}.wg-qa-review{padding:1.2rem 0;border-top:1px solid var(--line,#d1d5db)}.wg-qa-review textarea{display:block;box-sizing:border-box;width:100%;margin:.5rem 0;font:inherit;padding:.7rem;background:var(--panel,var(--surface,#fff));color:inherit;border:1px solid var(--cm-line,var(--line,#cbd5e1));border-radius:8px}.wg-qa-review .knowledge-answer{white-space:normal;overflow-wrap:anywhere}.wg-year-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0}.wg-year-card{padding:1.25rem;border:1px solid var(--cm-line,var(--line,#cbd5e1));border-radius:14px;min-width:0}.wg-year-card h2{font-size:1.1rem;margin:.5rem 0}.wg-year-stats{display:flex;gap:1rem;flex-wrap:wrap;margin:1rem 0}.wg-year-stat{display:grid;gap:.2rem}.wg-year-stat strong{font-size:1.65rem}.wg-year-card progress{width:100%;height:.6rem;accent-color:#3b82f6}.wg-goal-detail summary,.wg-confirmation summary{cursor:pointer;font-weight:600;line-height:1.6}.wg-goal-detail{margin-bottom:.8rem}.wg-goal-detail summary{display:flex;gap:.7rem;align-items:center}.wg-goal-detail summary:before{content:'＋'}.wg-goal-detail[open] summary:before{content:'−'}.wg-goal-content{margin-top:1rem}.wg-work-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;padding:.85rem 0;border-top:1px solid var(--cm-line,var(--line,#cbd5e1))}.wg-work-row strong,.wg-work-row a{overflow-wrap:anywhere}.wg-work-row p{grid-column:1/-1;margin:0;line-height:1.6}.wg-goal-detail ul{padding-left:1.3rem}.wg-goal-detail li{margin:.8rem 0;overflow-wrap:anywhere}.wg-year-note{padding:.8rem 1rem;border-radius:8px;background:rgba(59,130,246,.1);line-height:1.7}.wg-confirmation .cm-goal-confirmation{display:flex;gap:1rem;flex-wrap:wrap;align-items:end}.wg-confirmation .cm-field{min-width:0;max-width:100%}.wg-confirmation pre{white-space:pre-wrap;overflow-wrap:anywhere}.wg-goal-number{display:inline-flex;justify-content:center;align-items:center;width:2rem;height:2rem;border-radius:8px;background:rgba(59,130,246,.16);font-weight:bold}.wg-year-summary h2 a{color:inherit}.wg-confirmation .wg-work-row details{grid-column:1/-1}.wg-confirmation .cm-toolbar{margin-top:1rem}
html[data-theme="dark"] .wg-reaction .btn.is-selected,html[data-theme="dark"] .wg-follow .btn.is-selected,body.dark .wg-reaction .btn.is-selected{background:#1e3a5f;color:#bfdbfe;border-color:#60a5fa}
@media(max-width:750px){.wg-year-summary{grid-template-columns:1fr}.wg-year-stats{gap:1.4rem}.wg-work-row{grid-template-columns:1fr}.wg-confirmation .cm-goal-confirmation{display:grid;grid-template-columns:1fr}.wg-confirmation .cm-field{width:100%}.wg-confirmation input{box-sizing:border-box;max-width:100%}.wg-goal-detail summary{align-items:flex-start}.wg-year-card{padding:1rem}}
.wg-confirmation .cm-toolbar{justify-content:flex-start}.wg-confirmation [data-copy-confirmation-status]:empty{display:none}

/* Repair following page: keep the heading, actions and empty state readable. */
.wg-follow-list{display:grid;gap:22px;min-width:0;padding:24px}
.wg-follow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-width:0}
.wg-follow-copy{flex:1;min-width:0}
.wg-follow-copy h1{margin:0 0 8px;font-size:26px;line-height:1.35;overflow-wrap:break-word}
.wg-follow-copy p{margin:0;color:var(--muted,#6c7884);font-size:14px;line-height:1.7}
.wg-follow-back,.wg-follow-empty .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;line-height:1.5;white-space:normal;text-align:center}
.wg-follow-back{flex:0 0 auto}
.wg-follow-list [data-following-list]{display:grid;gap:12px;min-width:0;font-size:14px;line-height:1.7}
.wg-follow-empty{padding:24px;border:1px solid var(--line,#dce3e8);border-radius:16px;background:var(--surface2,#eef2f5)}
.wg-follow-empty strong{display:block;font-size:17px;line-height:1.5}
.wg-follow-empty p{margin:8px 0 18px;color:var(--muted,#6c7884);overflow-wrap:break-word}
.wg-follow-list .wg-follow-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border:1px solid var(--line,#dce3e8);border-radius:14px}
.wg-follow-row>a{min-width:0;line-height:1.6}
.wg-follow-row>a strong{display:block;overflow-wrap:anywhere}
.wg-follow-row>a span{display:block;color:var(--muted,#6c7884);font-size:13px}
.wg-follow-row>.btn{min-height:44px;font-size:14px}
.wg-follow-row>[role=status]{grid-column:1/-1;margin:0}
.wg-follow-row>[role=status]:empty{display:none}
@media(max-width:640px){
 .wg-follow-list{padding:18px;gap:18px}
 .wg-follow-head{flex-direction:column;gap:14px}
 .wg-follow-copy h1{font-size:23px}
 .wg-follow-back{align-self:flex-start}
 .wg-follow-empty{padding:18px}
 .wg-follow-list .wg-follow-row{grid-template-columns:minmax(0,1fr)}
 .wg-follow-row>.btn{justify-self:start}
}
