.story-community {
  --cw-text:#edf2fa;
  --cw-muted:#93a0b5;
  --cw-faint:#6e7d96;
  --cw-line:#303a4c;
  --cw-surface:#121a27;
  --cw-elevated:#172233;
  --cw-input:#0d1420;
  --cw-blue:#83c8ff;
  --cw-blue-soft:#213b54;
  --cw-positive:#a8dcc6;
  --cw-purple:#c5b1f6;
  margin-top:18px;
  border-top:1px solid var(--cw-line);
  min-width:0;
  color:var(--cw-text);
}
html[data-theme="light"] .story-community {
  --cw-text:#1d2b3b;
  --cw-muted:#596b7f;
  --cw-faint:#718295;
  --cw-line:#d6e1ea;
  --cw-surface:#fff;
  --cw-elevated:#f0f6fb;
  --cw-input:#f9fcff;
  --cw-blue:#1674ac;
  --cw-blue-soft:#e0f1fb;
  --cw-positive:#1c7455;
  --cw-purple:#74599f;
}
.story-community * { box-sizing:border-box; }
.story-community button,
.story-community input,
.story-community textarea { font-family:inherit; }
.story-community svg { display:block; width:18px; height:18px; flex:none; }
.community-actions { display:flex; align-items:center; gap:6px; padding-top:8px; }
.community-actions button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:7px 10px; border:0; border-radius:8px; background:transparent; color:var(--cw-muted); font-size:11px; font-weight:600; white-space:nowrap; cursor:pointer; }
.community-actions button:hover { background:var(--cw-elevated); color:var(--cw-text); }
.community-actions button[aria-expanded=true],
.community-actions button[aria-pressed=true] { color:var(--cw-blue); }
.community-actions .community-wire-action { margin-left:-8px; color:var(--cw-blue); }
.community-actions .community-wire-action svg { width:20px; height:20px; }
.community-actions button b { padding-left:3px; font-weight:700; color:var(--cw-text); }
.community-actions .community-share { margin-left:auto; }
.community-preview { margin-top:6px; }
.community-invite,
.community-peek { display:flex; width:100%; align-items:center; gap:13px; text-align:left; border:1px solid var(--cw-line); border-radius:12px; padding:12px 14px; background:var(--cw-surface); color:var(--cw-text); cursor:pointer; }
.community-invite:hover,
.community-peek:hover { border-color:var(--cw-blue); background:var(--cw-elevated); }
.community-invite > span:nth-child(2) { flex:1; min-width:0; }
.community-invite strong,
.community-invite small,
.community-peek strong,
.community-peek small { display:block; }
.community-invite strong { font-size:11px; line-height:1.4; }
.community-invite small { margin-top:3px; color:var(--cw-muted); font-size:10px; line-height:1.4; }
.community-invite > svg,
.community-peek > svg { width:16px; height:16px; color:var(--cw-blue); }
.community-invite-pulse,
.community-peek-icon { display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:9px; background:var(--cw-blue-soft); color:var(--cw-blue); }
.community-peek-copy { display:block; flex:1; min-width:0; }
.community-peek-copy small { color:var(--cw-blue); font-size:9px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.community-peek-copy strong { margin-top:4px; font-size:11px; font-weight:500; line-height:1.45; color:var(--cw-text); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.community-thread { margin-top:12px; padding:18px; border:1px solid var(--cw-line); border-radius:14px; background:var(--cw-surface); box-shadow:0 8px 28px #00000014; }
.community-thread-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.community-thread-header > div { min-width:0; }
.community-thread-header span { display:block; color:var(--cw-blue); font-size:9px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.community-thread-header strong { display:block; margin-top:5px; color:var(--cw-text); font-size:21px; font-weight:750; letter-spacing:-.035em; }
.community-thread-header small { display:block; max-width:560px; margin-top:4px; color:var(--cw-muted); font-size:11px; line-height:1.45; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.community-thread-header > button,
.community-compose-head > button { display:grid; place-items:center; flex:none; width:28px; height:28px; border:0; border-radius:6px; background:transparent; color:var(--cw-muted); font-size:22px; line-height:1; cursor:pointer; }
.community-thread-header > button:hover,
.community-compose-head > button:hover { background:var(--cw-elevated); color:var(--cw-text); }
.community-intro { display:flex; align-items:flex-start; gap:11px; margin-top:19px; padding:13px; border-radius:10px; background:var(--cw-elevated); }
.community-intro-mark { display:grid; place-items:center; flex:none; width:31px; height:31px; border-radius:8px; background:var(--cw-blue-soft); color:var(--cw-blue); }
.community-intro strong { display:block; color:var(--cw-text); font-size:12px; }
.community-intro p { margin:3px 0 0; color:var(--cw-muted); font-size:10px; line-height:1.5; }
.community-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:13px; }
.community-choices button { display:flex; align-items:flex-start; gap:9px; min-width:0; min-height:77px; padding:11px; text-align:left; border:1px solid var(--cw-line); border-radius:9px; background:transparent; color:var(--cw-text); cursor:pointer; }
.community-choices button:hover,
.community-choices button[aria-pressed=true] { border-color:var(--cw-blue); background:var(--cw-elevated); }
.community-choice-icon { color:var(--cw-blue); flex:none; }
.community-choices button:nth-child(2) .community-choice-icon { color:var(--cw-purple); }
.community-choices button:nth-child(3) .community-choice-icon { color:var(--cw-positive); }
.community-choices button > span:nth-child(2) { min-width:0; flex:1; }
.community-choices strong { display:block; font-size:11px; line-height:1.35; }
.community-choices small { display:block; margin-top:5px; color:var(--cw-muted); font-size:9px; line-height:1.45; }
.community-choice-arrow { color:var(--cw-faint); font-size:12px; }
.community-tabs { display:flex; align-items:center; gap:18px; margin-top:20px; border-bottom:1px solid var(--cw-line); }
.community-tabs button { min-height:36px; padding:7px 0 10px; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--cw-muted); font-size:11px; font-weight:650; cursor:pointer; }
.community-tabs button[aria-selected=true] { border-color:var(--cw-blue); color:var(--cw-text); }
.community-tabs button span { margin-left:3px; color:var(--cw-blue); }
.community-tabs .community-refresh { margin-left:auto; color:var(--cw-faint); font-size:10px; font-weight:500; }
.community-discuss-start { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 0 2px; color:var(--cw-muted); font-size:10px; }
.community-discuss-start button { border:1px solid var(--cw-line); border-radius:6px; padding:7px 10px; background:var(--cw-elevated); color:var(--cw-blue); font-size:10px; font-weight:700; cursor:pointer; }
.community-discuss-start button:hover { border-color:var(--cw-blue); }
.community-results { max-height:480px; overflow:auto; }
.community-empty { display:grid; justify-items:center; gap:6px; padding:34px 16px; text-align:center; color:var(--cw-muted); }
.community-empty > span { color:var(--cw-blue); }
.community-empty > span svg { width:24px; height:24px; }
.community-empty strong { margin-top:5px; color:var(--cw-text); font-size:12px; }
.community-empty p { max-width:290px; margin:0; font-size:10px; line-height:1.5; }
.community-list,
.community-replies { list-style:none; padding:0; margin:0; }
.community-entry { padding:17px 0; border-bottom:1px solid var(--cw-line); }
.community-entry:last-child { border-bottom:0; }
.community-entry-main { display:flex; align-items:flex-start; gap:10px; }
.community-avatar { display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:50%; background:var(--cw-elevated); color:var(--cw-blue); font-size:11px; font-weight:700; }
.community-entry-copy { min-width:0; flex:1; }
.community-entry-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.community-kind { display:inline-flex; align-items:center; gap:5px; color:var(--cw-blue); font-size:9px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
.community-kind svg { width:13px; height:13px; }
.community-kind.question { color:var(--cw-purple); }
.community-kind.correction { color:var(--cw-positive); }
.community-status { display:inline-flex; align-items:center; gap:5px; padding:3px 7px; border:1px solid var(--cw-line); border-radius:20px; color:var(--cw-muted); font-size:9px; font-weight:650; }
.community-status i { width:5px; height:5px; border-radius:50%; background:var(--cw-faint); }
.community-status.status-checking i { background:var(--cw-blue); }
.community-status.status-addressed i { background:var(--cw-positive); }
.community-status.status-closed i { background:var(--cw-purple); }
.community-byline { display:flex; align-items:center; gap:6px; flex-wrap:wrap; color:var(--cw-faint); font-size:9px; }
.community-byline strong { color:var(--cw-text); font-size:11px; overflow-wrap:anywhere; }
.community-byline time { margin-left:auto; white-space:nowrap; }
.community-entry-meta { margin-top:7px; color:var(--cw-muted); font-size:10px; }
.community-entry-copy > p { margin:8px 0 6px; color:var(--cw-text); font-size:11px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.community-evidence,
.community-desk-response a { color:var(--cw-blue); font-size:10px; text-decoration:none; overflow-wrap:anywhere; }
.community-evidence:hover,
.community-desk-response a:hover { text-decoration:underline; }
.community-status-detail { display:block; margin-top:8px; color:var(--cw-faint); font-size:9px; line-height:1.4; }
.community-desk-response { margin-top:10px; padding:10px 12px; border-left:2px solid var(--cw-blue); border-radius:0 6px 6px 0; background:var(--cw-elevated); }
.community-desk-response strong { color:var(--cw-blue); font-size:10px; }
.community-desk-response p { margin:4px 0; color:var(--cw-text); font-size:10px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.community-entry-tools { display:flex; gap:15px; margin-top:9px; }
.community-entry-tools button { padding:2px 0; border:0; background:none; color:var(--cw-muted); font-size:10px; cursor:pointer; }
.community-entry-tools button:hover { color:var(--cw-blue); }
.community-replies { margin-top:13px; padding-left:12px; border-left:1px solid var(--cw-line); }
.community-replies .community-entry { padding:9px 0 0; border:0; }
.community-replies .community-avatar { width:24px; height:24px; font-size:9px; }
.community-form { margin-top:14px; padding:15px; border:1px solid var(--cw-line); border-radius:10px; background:var(--cw-elevated); }
.community-compose-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:13px; }
.community-compose-head span { display:block; color:var(--cw-blue); font-size:9px; font-weight:800; letter-spacing:.12em; }
.community-compose-head strong { display:block; margin-top:4px; color:var(--cw-text); font-size:13px; }
.community-form label { display:block; color:var(--cw-muted); font-size:10px; font-weight:600; }
.community-form input,
.community-form textarea { display:block; width:100%; min-width:0; margin-top:5px; padding:9px 10px; border:1px solid var(--cw-line); border-radius:6px; outline:none; background:var(--cw-input); color:var(--cw-text); font-size:11px; font-weight:400; }
.community-form textarea { min-height:82px; resize:vertical; line-height:1.6; }
.community-form input:focus,
.community-form textarea:focus { border-color:var(--cw-blue); }
.community-form input::placeholder,
.community-form textarea::placeholder { color:var(--cw-faint); opacity:1; }
.community-name-label,
.community-context-fields,
.community-text-label,
.community-source-label { margin-bottom:10px; }
.community-context-fields { display:grid; grid-template-columns:1.5fr 1fr; gap:9px; }
.community-source-label span { color:var(--cw-faint); font-weight:400; }
.community-compose-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.community-compose-footer > span { color:var(--cw-faint); font-size:9px; }
.community-compose-footer button { display:flex; align-items:center; gap:7px; min-height:35px; padding:8px 13px; border:0; border-radius:6px; background:var(--cw-blue); color:#0a1a27; font-size:10px; font-weight:800; cursor:pointer; white-space:nowrap; }
html[data-theme="light"] .community-compose-footer button { color:#fff; }
.community-compose-footer button svg { width:14px; height:14px; }
.community-disclosure { margin:10px 0 0; color:var(--cw-faint); font-size:9px; line-height:1.5; }
.community-error,
.community-action-error { color:#d29872; font-size:10px; line-height:1.5; margin:10px 0 0; }
html[data-theme="light"] .community-error,
html[data-theme="light"] .community-action-error { color:#a84a22; }
.community-error[hidden],
.community-action-error[hidden] { display:none; }
.story-community button:focus-visible,
.story-community a:focus-visible,
.story-community input:focus-visible,
.story-community textarea:focus-visible { outline:2px solid var(--cw-blue); outline-offset:2px; }
.story-community button:disabled { opacity:.55; cursor:wait; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@container (max-width:440px) {
  .community-actions { gap:0; }
  .community-actions button { gap:5px; padding-inline:5px; font-size:10px; }
  .community-choices { grid-template-columns:1fr; gap:6px; }
  .community-choices button { min-height:0; align-items:center; }
  .community-choices small { margin-top:2px; }
}
@media (max-width:760px) {
  .community-actions button { min-height:42px; }
  .community-thread { padding:14px; }
  .community-form input,
  .community-form textarea { font-size:16px; }
}
@media (max-width:400px) {
  .community-actions .community-wire-action { margin-left:0; }
  .community-actions button { font-size:9px; }
  .community-context-fields { grid-template-columns:1fr; }
}
