/* Community only. Membership and ranking data remain with the existing API. */
body.community-practice { --danger: var(--coral); --faint: var(--muted); background-image: none; padding-top: var(--community-nav-height,64px); }
body.community-practice::before { display: none; }
body.community-practice [hidden] { display: none !important; }
body.community-practice .main-content { width: min(864px,100%); max-width: 864px; margin: 0 auto; padding: 58px 32px 80px; }
body.community-practice .back-btn { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; padding: 10px 0; color: var(--muted); font-size: 14px; line-height: 1.6; text-decoration: none; }
body.community-practice .back-btn:hover { color: var(--text); }
body.community-practice .eyebrow { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.6; }
body.community-practice .dot { width: 6px; height: 6px; background: var(--sky); box-shadow: none; }
body.community-practice .module-header h1 { margin: 0 0 14px; font-weight: 600; line-height: 1.3; }
body.community-practice .intro { max-width: 60ch; margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
body.community-practice .panel { background: var(--practice-card); border-color: var(--border); border-radius: 16px; box-shadow: none; padding: 24px; margin-bottom: 20px; }
body.community-practice .panel h2 { color: var(--text); font-size: 22px; font-weight: 500; line-height: 1.6; margin: 0 0 12px; }
body.community-practice .panel p { color: var(--muted); font-size: 15px; line-height: 1.7; }
body.community-practice label,
body.community-practice .filter-label { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: 0; text-transform: none; margin-bottom: 10px; }
body.community-practice .handle-input { width: 100%; max-width: 480px; min-width: 0; height: 52px; border-color: var(--border2); background: var(--bg); color: var(--text); border-radius: 12px; padding: 14px 16px; font-size: 18px; font-weight: 400; line-height: 1.6; margin-bottom: 10px; }
body.community-practice .handle-input::placeholder { color: var(--muted); }
body.community-practice .handle-input:focus { border-color: var(--sky); box-shadow: none; }
body.community-practice .handle-input[aria-invalid="true"] { border-color: var(--coral); }
body.community-practice .panel .handle-help { font-size: 13px; margin-bottom: 20px; }
body.community-practice .btn { height: auto; min-height: 48px; border-radius: 12px; padding: 14px 20px; background: var(--sky); color: var(--practice-on-accent); font-size: 15px; font-weight: 600; line-height: 1.6; }
body.community-practice .btn:hover { background: var(--sky2); transform: none; }
body.community-practice .btn:disabled { color: var(--muted); background: var(--bg3); opacity: 1; cursor: not-allowed; }
body.community-practice .secondary-btn,
body.community-practice .leave-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; border: 1px solid var(--border2); border-radius: 12px; color: var(--muted); background: transparent; padding: 12px 16px; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.6; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
body.community-practice .secondary-btn { margin: 16px 0; }
body.community-practice .secondary-btn:hover,
body.community-practice .leave-link:hover { color: var(--text); background: var(--surface2); }
body.community-practice .leave-link:disabled,
body.community-practice .tab-pill:disabled { color: var(--muted); background: var(--bg3); border-color: var(--border); opacity: 1; cursor: not-allowed; }
body.community-practice .result { font-size: 15px; line-height: 1.7; padding: 14px 16px; overflow-wrap: anywhere; }
body.community-practice .result.ok { color: var(--mint); background: var(--bg); border-color: var(--mint); }
body.community-practice .result.err { color: var(--coral); background: var(--bg); border-color: var(--coral); }
body.community-practice .me-row { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
body.community-practice .me-row > div { min-width: 0; flex: 1 1 200px; }
body.community-practice .panel .me-handle { font-size: 22px; font-weight: 500; margin-bottom: 6px; overflow-wrap: anywhere; }
body.community-practice .me-handle:focus { outline: none; }
body.community-practice .panel .me-sub { font-size: 14px; }
body.community-practice .community-status { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
body.community-practice .community-status:empty { display: none; }
body.community-practice .tab-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 20px; }
body.community-practice .sort-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.community-practice .tab-pill { min-width: 0; min-height: 48px; padding: 12px 10px; border: 1px solid var(--border2); border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.6; }
body.community-practice .tab-pill.active,
body.community-practice .sort-row .tab-pill.active { color: var(--sky); background: var(--practice-accent-wash); border-color: var(--sky); }
body.community-practice .rank-list { list-style: none; padding: 0; margin: 0; gap: 12px; }
body.community-practice .rank-row { grid-template-columns: 40px minmax(0,1fr) auto auto; background: var(--bg); border-color: var(--border); border-radius: 14px; padding: 16px; gap: 12px; }
body.community-practice .rank-row.me { background: var(--practice-accent-wash); border-color: var(--sky); }
body.community-practice .rank-num { font-size: 14px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
body.community-practice .rank-handle { min-width: 0; color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.7; white-space: normal; text-overflow: clip; overflow: visible; overflow-wrap: anywhere; }
body.community-practice .rank-streak { display: inline; color: var(--muted); font-size: 14px; line-height: 1.7; }
body.community-practice .rank-score { color: var(--sky); font-size: 18px; font-weight: 600; line-height: 1.7; }
body.community-practice .rank-points { color: var(--muted); font-size: 12px; font-weight: 400; }
body.community-practice .panel .empty-state { color: var(--muted); font-size: 15px; line-height: 1.7; text-align: start; padding: 20px 0; }
body.community-practice footer { color: var(--muted); border-color: var(--border); }
@media (max-width: 640px) {
  body.community-practice .panel { padding: 20px; }
  body.community-practice .rank-row { grid-template-columns: 32px minmax(0,1fr); grid-template-areas: 'rank handle' 'rank streak' 'rank score'; gap: 8px 12px; padding: 16px; }
  body.community-practice .rank-num { grid-area: rank; align-self: start; }
  body.community-practice .rank-handle { grid-area: handle; }
  body.community-practice .rank-streak { grid-area: streak; }
  body.community-practice .rank-score { grid-area: score; }
  body.community-practice .me-row .leave-link { width: 100%; }
}
