#community-panel form,#work-panel form{display:grid;gap:12px;max-width:720px;margin:20px 0}#community-panel label,#work-panel label{display:grid;gap:5px}#community-panel textarea,#work-panel textarea{min-height:100px;resize:vertical}.community-comments article,.work-task{padding:18px 0;border-bottom:1px solid #cfd4d8}.community-comments p,.work-task>p{white-space:pre-wrap}.work-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:520px;overflow:auto;background:#eee;padding:16px;font-size:.85rem}.work-task h3{margin:0}.work-task .actions{margin:12px 0}#work-filter{min-width:min(100%,320px)}

.account-page{max-width:620px;margin:32px auto;padding:0 20px}.community-account{max-width:560px;margin:24px auto;padding:24px;border:1px solid var(--kp-color-border,#ddd);border-radius:12px;background:var(--kp-color-surface,#fff)}.community-account form{display:grid;gap:16px;margin:24px 0}.community-account label{display:grid;gap:8px}.community-account input{width:100%;min-width:0;box-sizing:border-box}.community-account strong{overflow-wrap:anywhere}.community-account [role=status]{min-height:1.5em}
.account-actions{display:flex;flex-wrap:wrap;gap:10px}.community-account p{overflow-wrap:anywhere}

/* The same comment cards and threads render in the website and Storybook. */
.community-comments{margin:28px 0;display:grid;gap:26px}
.community-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;margin-bottom:12px}
.community-heading h2{margin:0;font-size:18px}
#community-panel #community-rating{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;max-width:none;font-size:12px}
.community-rating-summary{color:var(--kp-color-muted,#5a6068)}
.community-rating-options{display:flex;gap:3px}
.community-rating-options .kp-control{min-width:32px;min-height:32px;padding:4px;font-size:13px}
.community-rating-options [aria-pressed=true]{background:var(--kp-color-selected,#e6e9ec);color:var(--kp-color-text,#222);outline:2px solid currentColor;outline-offset:-2px}
#community-panel #community-comment{max-width:none;margin:0;gap:0}
.community-composer-box{display:flex;align-items:flex-end;min-width:0;padding:4px;border:1px solid var(--kp-color-border,#cfd4d8);border-radius:var(--kp-radius-control,8px);background:var(--kp-color-surface,#fff)}
.community-composer-box:focus-within{outline:2px solid var(--kp-color-action,#748a25);outline-offset:2px}
#community-panel .community-composer-box textarea{flex:1;min-width:0;width:100%;height:auto;min-height:40px;max-height:220px;field-sizing:content;resize:vertical;padding:9px 10px;border:0;border-radius:4px;background:transparent;box-shadow:none;font-size:14px;line-height:22px}
.community-composer-tools{display:flex;align-items:center;gap:4px;flex:none}
.community-composer-tools .kp-dropdown{width:112px;min-height:40px;padding:7px 24px 7px 8px;border:0;box-shadow:none;background-color:transparent;font-size:12px}
.community-composer-tools .kp-control{min-height:40px;padding:8px 14px;font-size:13px}
#community-comment>[role=status]:empty,#community-rating>[role=status]:empty{display:none}
#community-comment>[role=status]{margin:6px 0 0;font-size:12px}
.community-discussion>.community-demo-note{padding:0;border:0;margin:8px 0;font-size:11px}
.community-discussion>.community-comments{margin:20px 0}
@media(max-width:480px){.community-heading{gap:10px}.community-rating-options .kp-control{min-width:36px;min-height:40px}.community-composer-box{flex-wrap:wrap}#community-panel .community-composer-box textarea:not(:placeholder-shown){flex-basis:100%}.community-composer-tools{margin-left:auto}.community-composer-tools .kp-dropdown{width:112px}.community-composer-tools .kp-control{min-height:44px}}
.community-comments .comment-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:0;border:0;min-width:0}
.comment-avatar{width:34px;height:34px;border-radius:50%;position:relative;display:grid;place-items:center;overflow:hidden;background:#e0e8ef;color:#29485f;font-size:12px;font-weight:750;flex:none}
.comment-avatar--1{background:#ede3d5;color:#6d472a}.comment-avatar--2{background:#e7e1f2;color:#574075}.comment-avatar--3{background:#e0ebdf;color:#315538}
.comment-avatar img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}
.comment-avatar img[hidden]{display:none}
.comment-content{min-width:0}.comment-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;font-size:13px;line-height:1.5}
.comment-meta strong{overflow-wrap:anywhere}.comment-meta time{font-size:12px;color:var(--kp-color-muted,#5a6068)}
.community-comments .comment-body,.comment-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:5px 0 9px}
.comment-tag{display:inline-flex;align-items:center;padding:2px 7px;border-radius:5px;background:var(--kp-color-selected,#e6e9ec);font-size:11px;font-weight:700;line-height:1.5;text-transform:capitalize}
.comment-tag--prompt{color:#513c7b;background:#eae3fa}
.comment-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.comment-action.kp-control{min-height:32px;padding:5px 8px;gap:5px;font-size:12px;font-weight:600;line-height:1.4;border-radius:18px;text-decoration:none;white-space:normal;color:var(--kp-color-text,#222)}
.comment-action.kp-control:hover{background:var(--kp-color-selected,#e6e9ec)}
.comment-action.kp-control[aria-pressed=true]{color:#513c7b;background:#eae3fa}
.comment-action[aria-expanded=true] .kp-icon{transform:rotate(180deg)}
.comment-action .kp-icon{width:15px;height:15px}
.comment-forks{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:10px 0;font-size:12px}
.comment-forks-label{display:inline-flex;align-items:center;gap:5px;color:var(--kp-color-muted,#5a6068);white-space:nowrap}
.comment-fork-link{display:inline-flex;align-items:center;min-height:28px;max-width:100%;padding:2px 0;color:#513c7b;font-weight:650;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.comment-prompt-action{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;border-left:2px solid #b8a0dd;padding:6px 0 6px 12px;margin:12px 0 0}
.comment-prompt-action>span{font-size:12px;color:var(--kp-color-muted,#5a6068)}
.comment-prompt-action .comment-action{color:#513c7b}
.comment-status:empty{display:none}.comment-status{font-size:12px;margin:7px 0;color:var(--kp-color-muted,#5a6068)}
.comment-thread{margin-top:14px}.comment-thread[hidden],.comment-reply-composer[hidden]{display:none!important}
.comment-replies{display:grid;gap:18px;border-left:1px solid var(--kp-color-border,#cfd4d8);padding-left:14px}
.community-comments .comment-card--reply{grid-template-columns:27px minmax(0,1fr);gap:9px}.comment-card--reply .comment-avatar{width:27px;height:27px;font-size:10px}
.comment-card--reply .comment-body{font-size:14px}
.comment-empty{font-size:13px;color:var(--kp-color-muted,#5a6068);margin:0}
.comment-composer-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
#community-panel .comment-reply-composer,#community-panel .comment-subproject-form{margin:16px 0 0;padding:14px;border:1px solid var(--kp-color-border,#cfd4d8);border-radius:10px;background:var(--kp-color-surface,#fff);width:100%;box-sizing:border-box}
#community-panel .comment-reply-composer textarea{min-height:76px}
.comment-subproject-form h3,.comment-subproject-form p{margin:0}
.comment-subproject-form>p{font-size:13px;color:var(--kp-color-muted,#5a6068)}
.community-demo-note{font-size:12px;color:var(--kp-color-muted,#5a6068);padding:8px 12px;border:1px dashed var(--kp-color-border,#cfd4d8);border-radius:7px;max-width:fit-content}
.subproject-brief{max-width:760px;overflow-wrap:anywhere}.subproject-brief--compact{padding:16px;border:1px solid var(--kp-color-border,#cfd4d8);border-radius:10px;background:var(--kp-color-surface,#fff);margin-top:12px}
.subproject-brief--compact h3{margin:0}.subproject-brief details{margin:20px 0}
@media(max-width:480px){.community-comments .comment-card{grid-template-columns:30px minmax(0,1fr);gap:9px}.comment-avatar{width:30px;height:30px}.comment-replies{padding-left:9px}.comment-meta{gap:4px 7px}.comment-prompt-action{padding-left:9px}}
