.community-page { --community-green:#216b54; --community-soft:#edf6f2; }
.community-topline,.community-module-heading,.community-card-bottom { display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap; }
.community-topline { font-size:13px;margin:20px 0; }
.community-privacy {color:var(--ui-muted); }
.community-hero { background:linear-gradient(120deg,#edf3f9,#f8fafc);border:1px solid var(--ui-line);border-radius:18px;padding:32px;margin:20px 0 28px; }
.community-hero h1 { margin-top:8px;max-width:820px; }
.community-hero .lede { max-width:700px; }
.community-actions,.community-reactions {display:flex;flex-wrap:wrap;gap:10px;align-items:center; }
.community-actions {margin-top:20px; }
.community-button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;background:var(--ui-blue);color:#fff!important;border:1px solid var(--ui-blue);border-radius:9px;font-size:14px;font-weight:600;text-decoration:none!important; }
.community-button:hover {background:var(--ui-blue-dark); }
.community-button.secondary {background:#fff;color:var(--ui-blue)!important;border-color:var(--ui-line); }
.community-layout {display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;align-items:start; }
.community-sidebar {background:white;border:1px solid var(--ui-line);border-radius:14px;padding:22px;font-size:14px; }
.community-sidebar h2 {font-size:16px;margin:0 0 14px; }
.community-sidebar nav {display:grid;gap:4px; }
.community-sidebar nav a {display:flex;padding:8px 10px;min-height:42px;align-items:center;border-radius:7px;color:var(--ui-muted); }
.community-sidebar nav a[aria-current],.community-sidebar nav a:hover {background:var(--ui-soft);color:var(--ui-blue); }
.community-sidebar p {font-size:12px;color:var(--ui-muted);margin-top:24px; }
.community-search {display:flex;gap:8px;align-items:stretch;margin-bottom:16px; }
.community-search input {flex:1;min-width:0; }
.community-page input,.community-page textarea,.community-page select {border:1px solid #ccd6e2;border-radius:8px;padding:11px 12px;background:#fff;color:var(--ui-ink);font:inherit; }
.community-tabs {display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid var(--ui-line); }
.community-tabs a {font-size:13px;padding:8px 12px;min-height:40px;display:inline-flex;align-items:center;border-radius:8px;color:var(--ui-muted); }
.community-tabs a[aria-current] {color:var(--ui-blue);background:#e8f0f8;font-weight:650; }
.community-card {background:#fff;border:1px solid var(--ui-line);border-radius:13px;padding:22px 24px;margin:0 0 16px;overflow-wrap:anywhere;min-width:0; }
.community-card-meta {display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:var(--ui-muted);font-size:12px;line-height:1.5; }
.community-tag {display:inline-flex;align-items:center;padding:4px 9px;background:var(--ui-soft);color:var(--ui-blue-dark);border-radius:6px;font-size:11px;font-weight:600; }
.community-tag.solved {background:#edf6f2;color:#216b54; }
.community-card h2 {font-size:20px;margin:14px 0 10px;line-height:1.4; }
.community-card h2 a {color:var(--ui-ink); }
.community-preview {font-size:14px;color:var(--ui-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.community-card-bottom {font-size:12px;margin-top:18px;color:var(--ui-muted); }
.community-card-bottom a {font-weight:600;min-height:36px;display:inline-flex;align-items:center; }
.community-empty {padding:44px 30px;text-align:center;border:1px dashed var(--ui-line);border-radius:14px;background:#fff; }
.community-empty>span {font-size:36px;color:var(--ui-blue); }
.community-empty h2 {font-size:21px; }
.community-empty p {max-width:460px;margin:12px auto 20px;color:var(--ui-muted);font-size:14px; }
.community-thread-layout {max-width:900px;margin:auto; }
.community-root h1 {font-size:clamp(25px,3vw,35px);margin:18px 0; }
.community-text {white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8; }
.community-reactions {margin-top:20px;gap:8px; }
.community-reactions button {background:var(--ui-soft);border:1px solid transparent;border-radius:8px;padding:8px 12px;min-height:42px;font-size:12px;font-weight:500;color:var(--ui-muted); }
.community-reactions button:hover,.community-reactions button[aria-pressed="true"] {background:#e7f0fa;color:var(--ui-blue-dark);border-color:#aac7e2; }
.community-reactions button:disabled {opacity:.5;cursor:default; }
.community-report {font-size:12px;margin-top:14px;color:var(--ui-muted); }
.community-report summary {display:inline-flex;align-items:center;min-height:36px;cursor:pointer; }
.community-report form {display:flex;gap:8px;flex-wrap:wrap;margin:10px 0; }
.community-report select {max-width:240px; }
.community-answers>h2 {font-size:21px; }
.community-answer.depth-1 {margin-left:18px;border-left:3px solid #cfdfed; }
.community-answer.depth-2 {margin-left:36px;border-left:3px solid #cfdfed; }
.community-answer.depth-3,.community-answer.depth-4 {margin-left:54px;border-left:3px solid #cfdfed; }
.community-outcome {border-color:#a6c7b8;background:#f8fcfa; }
.community-archive-note {padding:16px;background:#faf7ed;border:1px solid #e9dfbf;border-radius:9px;font-size:12px;color:#6e5a2e;margin:16px 0; }
.community-archive-note p {margin:7px 0; }
.community-composer {max-width:900px; }
.community-composer form,.community-private-grid form,#community-edit form {display:grid;gap:12px; }
.community-composer label,.community-private-grid label,#community-edit label {font-size:13px;font-weight:600;display:grid;gap:7px; }
.community-composer input,.community-composer textarea,.community-composer select,.community-private-grid input,#community-edit input,#community-edit textarea {width:100%;box-sizing:border-box;min-width:0; }
.community-composer button[type="submit"],.community-private-grid button,#community-edit button {justify-self:start;min-height:44px; }
.community-form-grid {display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:10px; }
.community-similar {background:var(--ui-soft);padding:14px 18px;border-radius:9px; }
.community-similar h2 {font-size:15px;margin:0; }
.community-similar ul {padding-left:20px;font-size:14px; }
.community-status {padding:15px 18px;border:1px solid #aac7e2;background:#edf4fc;border-radius:9px;margin:18px 0;overflow-wrap:anywhere; }
.community-status.error {border-color:#dca9a9;background:#fff3f3;color:#923434; }
.community-private-grid {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px; }
.community-private-item {border-top:1px solid var(--ui-line);padding:14px 0; }
.community-private-item p {margin:8px 0;font-size:13px; }
.community-private-item .community-text {max-height:170px;overflow:auto; }
.community-owned-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:10px; }
.community-owned-actions button {font-size:12px; }
.community-root-owner {margin-top:12px; }
.community-module {background:#f0f5fa;border:1px solid var(--ui-line);border-radius:14px;padding:26px;margin:36px 0; }
.community-module h2 {margin:5px 0;font-size:24px; }
.community-module .eyebrow {font-size:11px; }
.community-module-heading>a {font-size:13px; }
.community-module>p {font-size:14px;color:var(--ui-muted);max-width:680px; }
.community-module-item {display:flex;flex-direction:column;gap:4px;padding:13px 0;border-top:1px solid #d9e4ef; }
.community-module-item>a {font-size:15px;font-weight:600; }
#community-challenge,#community-edit {box-sizing:border-box;border:1px solid var(--ui-line);border-radius:14px;padding:26px;max-width:min(650px,calc(100vw - 32px));width:100%;color:var(--ui-ink); }
#community-challenge {max-width:380px; }
#community-challenge h2 {font-size:18px;margin:0 0 20px; }
#community-edit h2 {margin-top:0; }
dialog::backdrop {background:#172b4280; }
.community-page [hidden] {display:none!important; }
@media(max-width:760px) {
 .community-layout,.community-private-grid {grid-template-columns:minmax(0,1fr);gap:18px; }
 .community-sidebar {order:2; }.community-sidebar nav {grid-template-columns:1fr 1fr; }
 .community-hero {padding:24px 20px;border-radius:12px; }
 .community-card {padding:18px; }.community-form-grid {grid-template-columns:1fr;gap:12px; }
 .community-module {padding:20px; }.community-module-heading {align-items:flex-start; }
 .community-answer.depth-1 {margin-left:10px; }.community-answer.depth-2,.community-answer.depth-3,.community-answer.depth-4 {margin-left:20px; }
 .community-topline {align-items:flex-start; }.community-topline>a {min-height:36px; }
 .community-search button {padding:9px 12px; }.community-tabs a {padding:8px 10px; }
}
@media(prefers-reduced-motion:reduce) {.community-page * {scroll-behavior:auto!important; }}

.community-verification {display:grid;gap:9px;min-width:0;padding:14px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-soft);}
.community-verification [data-turnstile-widget] {width:100%;min-width:0;min-height:65px;}
.community-verification .hint {margin:0;font-size:12px;}
.community-verification[data-state="verified"] {border-color:#a6c7b8;background:#f8fcfa;}
.community-verification[data-state="error"] {border-color:#dca9a9;background:#fff3f3;}
.community-composer button[type="submit"]:disabled,#community-edit button[type="submit"]:disabled {opacity:.55;cursor:not-allowed;}
