.pwl-sc-social{color:var(--pwl-color-text);min-width:0;}
.pwl-work-tags{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;}
.pwl-work-tag{display:inline-flex;align-items:center;padding:4px 8px;border:0;border-radius:7px;background:var(--pwl-color-tag);color:var(--pwl-color-muted);font-size:12px;font-weight:500;line-height:1.5;letter-spacing:0;}
.pwl-work-author{display:inline-flex;align-items:center;gap:7px;min-width:0;color:inherit;}
.pwl-work-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;overflow:hidden;border-radius:50%;background:var(--pwl-color-tag);color:var(--pwl-color-muted);}
.pwl-work-avatar>img{display:block;width:100%;height:100%;object-fit:cover;}
.pwl-work-avatar>svg{display:block;width:20px;height:20px;}
.pwl-find-workbody>.pwl-work-tags{margin-bottom:9px;}
.pwl-sc-social [hidden]{display:none!important;}
.pwl-sc-bar,.pwl-sc-tabs,.pwl-sc-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.pwl-sc-bar{justify-content:space-between;margin-bottom:24px;}
.pwl-sc-tabs{border-bottom:1px solid var(--pwl-color-border);margin-bottom:24px;gap:26px;}
.pwl-sc-tabs button{border:0;background:none;padding:14px 0;font:inherit;font-size:16px;font-weight:500;color:var(--pwl-color-muted);cursor:pointer;}
.pwl-sc-tabs button[aria-selected=true]{color:var(--pwl-color-text);box-shadow:0 2px var(--pwl-color-text);font-weight:600;}
.pwl-sc-social button,.pwl-sc-dialog button{cursor:pointer;font:inherit;font-size:14px;}
.pwl-sc-social .pwl-button,.pwl-sc-dialog .pwl-button{font-weight:500;}
.pwl-sc-note{font-size:12px;color:var(--pwl-color-muted);line-height:1.7;margin:20px 0;}
.pwl-sc-layout{display:flex;gap:32px;align-items:flex-start;}
.pwl-sc-main{flex:1;min-width:0;}
.pwl-sc-side{flex:0 0 250px;}
.pwl-sc-composer{display:flex;gap:14px;align-items:center;padding:18px;border:1px solid var(--pwl-color-border);border-radius:12px;width:100%;text-align:left;background:var(--pwl-color-white);color:var(--pwl-color-muted);margin-bottom:24px;}
.pwl-sc-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--pwl-color-surface);color:var(--pwl-color-text);flex-shrink:0;}
.pwl-sc-posts{max-width:680px;margin:auto;}
.pwl-sc-post{border-bottom:1px solid var(--pwl-color-border);padding:4px 0 26px;margin-bottom:26px;}
.pwl-sc-post header{display:flex;align-items:center;gap:12px;margin-bottom:18px;}
.pwl-sc-post header strong{font-weight:600;display:block;font-size:15px;}
.pwl-sc-post header small{display:block;color:var(--pwl-color-muted);font-size:12px;margin-top:5px;}
.pwl-sc-post header .pwl-sc-actions{margin-left:auto;}
.pwl-sc-post header .pwl-sc-actions{flex-shrink:0;flex-wrap:nowrap;}
.pwl-sc-post header .pwl-button{white-space:nowrap;padding:7px 12px;min-height:32px;border:0;background:var(--pwl-color-surface);color:var(--pwl-color-text);}
.pwl-sc-post header small{white-space:nowrap;}
.pwl-sc-postside{padding-top:12px;}
.pwl-sc-postside h3{font-size:16px;font-weight:600;margin:0 0 24px;}
.pwl-sc-postside>a{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--pwl-color-border);padding:24px 0;text-decoration:none;font-size:15px;color:var(--pwl-color-text);}
.pwl-sc-postside>a span{font-size:12px;color:var(--pwl-color-muted);}

.pwl-sc-posttext{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.8;}
.pwl-sc-postimages{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0;}
.pwl-sc-postimages img{width:calc(50% - 3px);object-fit:cover;max-height:440px;border-radius:10px;}
.pwl-sc-postimages img:only-child{width:100%;object-fit:contain;}
.pwl-sc-post footer{display:flex;gap:20px;margin-top:18px;}
.pwl-sc-textbutton{border:0;background:none;color:var(--pwl-color-muted);padding:4px;}
.pwl-sc-textbutton[aria-pressed=true]{color:var(--pwl-color-danger);}
.pwl-sc-empty{padding:65px 20px;text-align:center;background:var(--pwl-color-surface);border-radius:12px;}
.pwl-sc-empty h3{font-size:18px;font-weight:600;margin:0 0 10px;}
.pwl-sc-empty p{font-size:14px;color:var(--pwl-color-muted);line-height:1.8;}
.pwl-sc-table{width:100%;border-collapse:collapse;font-size:14px;}
.pwl-sc-table th{font-weight:500;color:var(--pwl-color-muted);background:var(--pwl-color-surface);text-align:left;padding:14px 12px;}
.pwl-sc-table td{padding:18px 12px;border-bottom:1px solid var(--pwl-color-border);}
.pwl-sc-table .pwl-sc-title{font-size:15px;font-weight:500;color:var(--pwl-color-text);background:none;border:0;text-align:left;overflow-wrap:anywhere;}
.pwl-sc-table small{color:var(--pwl-color-muted);display:block;font-size:12px;margin-top:6px;}
.pwl-sc-table td:first-child{width:100px;}
.pwl-sc-pages{display:flex;gap:8px;justify-content:center;margin:26px 0;}
.pwl-sc-pages button{min-width:34px;min-height:34px;background:none;border:1px solid var(--pwl-color-border);border-radius:7px;}
.pwl-sc-pages button[aria-current=page]{background:var(--pwl-color-text);color:var(--pwl-color-white);}
.pwl-sc-social input,.pwl-sc-social select,.pwl-sc-dialog input:not([type=checkbox]):not([type=radio]),.pwl-sc-dialog select,.pwl-sc-dialog textarea{min-width:0;max-width:100%;padding:10px 12px;border:1px solid var(--pwl-color-border);border-radius:7px;background:var(--pwl-color-white);color:var(--pwl-color-text);font:inherit;font-size:14px;}
.pwl-sc-social input[type=search]{width:220px;}
.pwl-sc-dialog{width:min(640px,calc(100% - 32px));padding:24px;border:1px solid var(--pwl-color-border);border-radius:16px;background:var(--pwl-color-white);color:var(--pwl-color-text);}
.pwl-sc-dialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;}
.pwl-sc-dialog h2{font-size:20px;font-weight:600;margin:0;}
.pwl-sc-dialog label{display:flex;flex-direction:column;gap:9px;margin-bottom:18px;font-size:14px;}
.pwl-sc-dialog label.pwl-sc-check{flex-direction:row;align-items:center;}
.pwl-sc-dialog textarea{resize:vertical;min-height:120px;width:100%;box-sizing:border-box;}
.pwl-sc-dialog form>.pwl-sc-actions{justify-content:flex-end;margin-top:22px;}
.pwl-sc-error{color:var(--pwl-color-danger);font-size:14px;}
.pwl-sc-preview{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px;}
.pwl-sc-preview figure{margin:0;width:92px;}
.pwl-sc-preview img{width:92px;height:82px;object-fit:cover;border-radius:7px;}
.pwl-sc-preview button{display:block;width:100%;}
.pwl-sc-article{white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere;}
.pwl-sc-reply{padding:18px;background:var(--pwl-color-surface);border-radius:10px;margin-top:24px;white-space:pre-wrap;overflow-wrap:anywhere;}
.pwl-sc-comment{padding:14px 0;border-bottom:1px solid var(--pwl-color-border);}
.pwl-sc-comment strong{font-size:13px;font-weight:600;}
.pwl-sc-comment p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;}
.pwl-sc-authors{display:flex;gap:14px;overflow-x:auto;padding:0 0 16px;margin-bottom:22px;}
.pwl-sc-authorcard{min-width:190px;padding:20px;border:1px solid var(--pwl-color-border);border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
.pwl-sc-authorcard strong{font-weight:600;}.pwl-sc-authorcard small{font-size:12px;color:var(--pwl-color-muted);}
.pwl-sc-authorcard a{color:inherit;text-decoration:none;}
.pwl-sc-tree{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid var(--pwl-color-border);border-radius:12px;}
.pwl-sc-tree button{background:none;border:0;text-align:left;border-radius:7px;padding:10px 8px;overflow-wrap:anywhere;}
.pwl-sc-tree button[aria-current=page]{background:var(--pwl-color-surface);font-weight:600;}
.pwl-sc-folders{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:24px;}
.pwl-sc-foldercard{width:calc(33.333% - 10px);min-width:160px;flex-grow:1;padding:20px;border:1px solid var(--pwl-color-border);border-radius:12px;text-align:left;background:var(--pwl-color-white);}
.pwl-sc-foldercard strong{display:block;font-size:16px;font-weight:600;margin:10px 0;overflow-wrap:anywhere;}
.pwl-sc-foldercard small{color:var(--pwl-color-muted);line-height:1.6;overflow-wrap:anywhere;}
.pwl-sc-folderheading h2{font-size:22px;font-weight:600;margin:0 0 10px;}.pwl-sc-folderheading p{font-size:14px;color:var(--pwl-color-muted);}
.pwl-library-add{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;background:none;color:var(--pwl-color-text);cursor:pointer;box-shadow:none;text-shadow:none;opacity:1;}
.pwl-library-add--overlay{position:absolute;z-index:3;top:9px;right:45px;color:var(--pwl-color-white);}
.pwl-library-add svg{display:block;width:18px;height:18px;stroke-width:2.4;opacity:1;}
.pwl-library-add--overlay svg{width:16px;height:16px;}
.pwl-sc-checklist{display:flex;flex-direction:column;gap:10px;max-height:300px;overflow:auto;}
.pwl-sc-checklist label{display:flex;flex-direction:row;align-items:center;padding:12px;border:1px solid var(--pwl-color-border);border-radius:7px;margin:0;}
.pwl-sc-settings{border:1px solid var(--pwl-color-border);border-radius:12px;padding:22px;margin-bottom:20px;}
.pwl-sc-settings h2{font-size:18px;font-weight:600;margin:0 0 20px;}
.pwl-sc-fields{display:flex;gap:16px;flex-wrap:wrap;}.pwl-sc-fields label{display:flex;flex:1 1 180px;flex-direction:column;gap:8px;margin-bottom:18px;font-size:14px;}
@media(max-width:820px){.pwl-sc-layout{flex-direction:column;}.pwl-sc-side{flex:auto;width:100%;}.pwl-sc-main{width:100%;}.pwl-sc-tree{max-height:240px;overflow:auto;}.pwl-sc-table th:nth-child(3),.pwl-sc-table td:nth-child(3),.pwl-sc-table th:nth-child(4),.pwl-sc-table td:nth-child(4){display:none;}.pwl-sc-table td:first-child{width:60px;}.pwl-sc-bar{gap:14px;}.pwl-sc-tabs{gap:20px;}.pwl-sc-tabs button{font-size:14px;}.pwl-sc-social input[type=search]{width:150px;}.pwl-sc-foldercard{width:calc(50% - 8px);min-width:120px;}.pwl-sc-authorcard{min-width:160px;}.pwl-sc-dialog{padding:20px;}.pwl-sc-posttext{font-size:15px;}}

@media(max-width:600px){.pwl-library-add--overlay{top:8px;right:44px;}}

/* Shared library folder tree, adapted from the local File Tree component. */
.pwl-ft{border:1px solid var(--pwl-color-border);border-radius:12px;padding:14px;min-width:0;background:var(--pwl-color-white);}
.pwl-ft-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.pwl-ft-heading strong{font-size:15px;font-weight:600;}
.pwl-ft button{font:inherit;font-size:13px;cursor:pointer;color:var(--pwl-color-text);}
.pwl-ft-new{padding:6px 8px;border:0;border-radius:7px;background:var(--pwl-color-surface);white-space:nowrap;}
.pwl-ft-list,.pwl-ft-list ul{list-style:none;margin:0;padding:0;}
.pwl-ft-list{max-height:280px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;}
.pwl-ft-list ul{margin-left:17px;padding-left:9px;border-left:1px solid var(--pwl-color-border);}
.pwl-ft-list [hidden]{display:none;}
.pwl-ft-row{margin:2px 0;}
.pwl-ft-item{display:flex;align-items:center;gap:7px;width:100%;min-height:40px;padding:7px;border:1px solid transparent;border-radius:7px;background:none;text-align:left;}
.pwl-ft-item:hover{background:var(--pwl-color-surface);}
.pwl-ft-item[aria-selected=true]{background:var(--pwl-color-surface);border-color:var(--pwl-color-border);font-weight:600;}
.pwl-ft-item:focus-visible{outline:0;border-color:var(--pwl-color-text);}
.pwl-ft svg{width:18px;height:18px;flex:0 0 18px;}
.pwl-ft-chevron,.pwl-ft-spacer{display:flex;align-items:center;justify-content:center;width:16px;flex:0 0 16px;}
.pwl-ft-chevron svg{width:13px;height:13px;flex-basis:13px;transition:transform 150ms ease;}
.pwl-ft-item[aria-expanded=true] .pwl-ft-chevron svg{transform:rotate(90deg);}
.pwl-ft-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pwl-ft-count{color:var(--pwl-color-muted);font-size:11px;white-space:nowrap;font-weight:500;}
.pwl-ft-badge{font-size:10px;color:var(--pwl-color-muted);border:1px solid var(--pwl-color-border);padding:1px 4px;border-radius:4px;white-space:nowrap;}
.pwl-ft-selected{display:flex;gap:10px;padding:15px 4px 12px;margin-top:12px;border-top:1px solid var(--pwl-color-border);}
.pwl-ft-selected>div{min-width:0;}
.pwl-ft-selected strong{font-size:14px;font-weight:600;overflow-wrap:anywhere;}
.pwl-ft-selected p{margin:4px 0 0;font-size:12px;color:var(--pwl-color-muted);overflow-wrap:anywhere;}
.pwl-ft-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.pwl-ft-tools button{border:1px solid var(--pwl-color-border);border-radius:7px;min-height:32px;padding:5px 9px;background:var(--pwl-color-white);font-size:12px;}
.pwl-ft-tools button:hover:not(:disabled){border-color:var(--pwl-color-text);}
.pwl-ft-tools button:disabled{opacity:.4;cursor:default;}
.pwl-ft-editor{padding:16px 0 0;margin-top:16px;border-top:1px solid var(--pwl-color-border);}
.pwl-ft-editor>strong{display:block;margin-bottom:14px;font-size:14px;font-weight:600;}
.pwl-ft-editor label{display:flex;flex-direction:column;gap:7px;margin-bottom:12px;font-size:13px;}
.pwl-ft-editor input,.pwl-ft-editor select{box-sizing:border-box;width:100%;min-width:0;height:38px;border:1px solid var(--pwl-color-border);border-radius:7px;padding:8px 10px;background:var(--pwl-color-white);color:var(--pwl-color-text);font:inherit;}
.pwl-ft-editor small,.pwl-ft-editor p{font-size:12px;color:var(--pwl-color-muted);}
.pwl-ft-editor .pwl-ft-tools{justify-content:flex-end;margin-top:14px;}
.pwl-ft-error{font-size:13px;color:var(--pwl-color-danger);margin:10px 0 0;}
.pwl-ft-error:empty{display:none;}
.pwl-ft-workname{font-size:15px;font-weight:500;margin:0 0 18px;overflow-wrap:anywhere;}
.pwl-ft-savebar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;}
.pwl-ft-savebar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--pwl-color-muted);}
.pwl-ft-savebar>button{min-width:100px;flex-shrink:0;}
@media(max-width:600px){.pwl-ft{padding:10px;}.pwl-ft-list{max-height:220px;}.pwl-ft-item{gap:4px;padding:6px 4px;}.pwl-ft-list ul{margin-left:10px;padding-left:5px;}.pwl-ft-badge{display:none;}}
@media(prefers-reduced-motion:reduce){.pwl-ft-chevron svg{transition:none;}}

/* Shared recommendations: home row and compact post sidebar. */
.pwl-rec-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;}
.pwl-sc-postside .pwl-rec-heading h3{margin:0;font-size:17px;}
.pwl-rec-heading>a{color:var(--pwl-color-muted);font-size:12px;text-decoration:none;white-space:nowrap;}
.pwl-rec-heading>a:hover{color:var(--pwl-color-text);}
.pwl-rec-cards{display:flex;gap:16px;flex-wrap:wrap;}
.pwl-rec-card{flex:1 1 260px;min-width:0;box-sizing:border-box;padding:22px;border:1px solid var(--pwl-color-border);border-radius:12px;background:var(--pwl-color-white);transition:border-color 150ms ease;}
.pwl-rec-card:hover{border-color:var(--pwl-color-muted);}
.pwl-rec-identity{display:flex;align-items:center;gap:12px;}
.pwl-rec-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:var(--pwl-color-tag);color:var(--pwl-color-text);text-decoration:none;font-size:19px;font-weight:500;}
.pwl-rec-name{flex:1;min-width:0;}
.pwl-rec-name>a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pwl-color-text);text-decoration:none;font-size:16px;font-weight:600;}
.pwl-rec-name>a:hover{text-decoration:underline;text-underline-offset:3px;}
.pwl-rec-name>span{display:block;margin-top:4px;font-size:12px;color:var(--pwl-color-muted);}
.pwl-rec-card .pwl-rec-follow{flex:0 0 72px;min-width:72px;min-height:34px;padding:7px 8px;border-radius:7px;border:1px solid var(--pwl-color-border);background:var(--pwl-color-white);color:var(--pwl-color-text);font-size:12px;font-weight:500;white-space:nowrap;}
.pwl-rec-card .pwl-rec-follow:hover{border-color:var(--pwl-color-text);}
.pwl-rec-card .pwl-rec-follow[aria-pressed=true]{background:var(--pwl-color-tag);color:var(--pwl-color-muted);}
.pwl-rec-bio{margin:20px 0;font-size:13px;line-height:1.7;color:var(--pwl-color-muted);overflow-wrap:anywhere;}
.pwl-rec-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.pwl-rec-tags{display:flex;gap:5px;flex-wrap:wrap;}
.pwl-rec-tags>span{padding:4px 7px;border-radius:7px;background:var(--pwl-color-tag);color:var(--pwl-color-muted);font-size:11px;}
.pwl-rec-count{font-size:11px;color:var(--pwl-color-muted);white-space:nowrap;}
.pwl-rec-count strong{font-weight:500;color:var(--pwl-color-text);margin-left:3px;}
.pwl-rec-note{font-size:11px;color:var(--pwl-color-muted);margin:12px 0 20px;}
.pwl-sc-postside{flex-basis:300px;}
.pwl-sc-postside .pwl-rec-cards{gap:12px;}
.pwl-sc-postside .pwl-rec-card{flex-basis:100%;padding:16px;}
.pwl-sc-postside .pwl-rec-identity{gap:9px;}
.pwl-sc-postside .pwl-rec-avatar{width:40px;height:40px;flex-basis:40px;font-size:17px;}
.pwl-sc-postside .pwl-rec-bio{margin:15px 0;}
@media(max-width:1100px){.pwl-sc-layout:has(>.pwl-sc-postside){flex-direction:column;}.pwl-sc-layout:has(>.pwl-sc-postside)>.pwl-sc-main{width:100%;}.pwl-sc-postside{display:block;flex:auto;width:100%;max-width:680px;margin:0 auto;}.pwl-sc-postside .pwl-rec-card{flex:1 1 260px;}}
@media(max-width:600px){.pwl-rec-card{flex-basis:100%;padding:18px;}.pwl-rec-identity{gap:10px;}.pwl-rec-bio{margin:16px 0;}.pwl-sc-postside .pwl-rec-card{flex-basis:100%;}}
@media(prefers-reduced-motion:reduce){.pwl-rec-card{transition:none;}}

/* Folder actions live beside their target, including inline child creation. */
.pwl-ft-row{display:flex;align-items:center;border-radius:7px;gap:2px;}
.pwl-ft-row:has([aria-selected=true]){background:var(--pwl-color-surface);}
.pwl-ft-row:hover{background:var(--pwl-color-surface);}
.pwl-ft-item{flex:1;min-width:0;width:auto;}
.pwl-ft-item[aria-selected=true]{border-color:transparent;}
.pwl-ft-item:focus-visible{border-color:var(--pwl-color-text);}
.pwl-ft-rowtools{display:flex;align-items:center;gap:2px;padding-right:3px;flex-shrink:0;}
.pwl-ft-rowtools button{display:flex;align-items:center;justify-content:center;width:28px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--pwl-color-muted);}
.pwl-ft-rowtools button:hover:not(:disabled),.pwl-ft-rowtools button[aria-expanded=true]{background:var(--pwl-color-white);color:var(--pwl-color-text);}
.pwl-ft-rowtools button:disabled{opacity:.25;cursor:default;}
.pwl-ft-rowtools svg{width:16px;height:16px;flex-basis:16px;}
.pwl-ft-rowtools [data-more] svg{stroke-width:3;}
.pwl-ft-menu{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding:9px;margin:3px 0 8px;border:1px solid var(--pwl-color-border);border-radius:7px;background:var(--pwl-color-white);animation:pwl-ft-reveal 140ms ease;}
.pwl-ft-menu[hidden]{display:none;}
.pwl-ft-menu>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--pwl-color-muted);}
.pwl-ft-menu button{border:0;border-radius:5px;padding:6px 8px;background:var(--pwl-color-surface);font-size:12px;}
.pwl-ft-menu [data-delete]{color:var(--pwl-color-danger);}
.pwl-ft-list:has(.pwl-ft-editor){max-height:440px;}
.pwl-ft-list .pwl-ft-editor{margin:6px 0 10px;padding:14px;border:1px solid var(--pwl-color-border);border-radius:8px;background:var(--pwl-color-white);animation:pwl-ft-reveal 140ms ease;}
.pwl-ft-editor label[hidden]{display:none;}
.pwl-ft-location{margin:0 0 12px;overflow-wrap:anywhere;}
.pwl-ft-selected{margin-top:10px;padding:12px 4px 0;}
.pwl-ft-list .pwl-ft-badge{display:none;}
@keyframes pwl-ft-reveal{from{opacity:0;transform:translateY(-3px);}to{opacity:1;transform:translateY(0);}}
@media(max-width:600px){.pwl-ft-rowtools button{width:28px;height:34px;}.pwl-ft-item{gap:4px;}.pwl-ft-count{font-size:10px;}.pwl-ft-list:has(.pwl-ft-editor){max-height:55vh;}}
@media(prefers-reduced-motion:reduce){.pwl-ft-menu,.pwl-ft-list .pwl-ft-editor{animation:none;}}

.pwl-ft-rowtools [data-child]{color:var(--pwl-color-text);}

/* New folders appear as an editable row, rather than a separate form panel. */
.pwl-ft-newrow{display:flex;align-items:center;gap:7px;min-height:42px;margin:3px 0;padding:3px 4px;border-radius:7px;background:var(--pwl-color-surface);animation:pwl-ft-reveal 140ms ease;}
[data-editor-for]>.pwl-ft-newrow{margin-left:26px;}
.pwl-ft-newrow input{flex:1;min-width:0;width:0;height:32px;box-sizing:border-box;padding:5px 7px;border:1px solid var(--pwl-color-text);border-radius:5px;background:var(--pwl-color-white);color:var(--pwl-color-text);font:inherit;font-size:13px;}
.pwl-ft-newrow>button{display:flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:30px;border:0;padding:0;border-radius:5px;background:none;color:var(--pwl-color-text);}
.pwl-ft-newrow>button:hover{background:var(--pwl-color-white);}
.pwl-ft-newrow>button svg{width:15px;height:15px;flex-basis:15px;}
.pwl-ft-newrow>.pwl-ft-spacer{display:flex;}
@media(max-width:600px){[data-editor-for]>.pwl-ft-newrow{margin-left:15px;}.pwl-ft-newrow{gap:4px;}.pwl-ft-newrow>button{flex-basis:24px;width:24px;}}
@media(prefers-reduced-motion:reduce){.pwl-ft-newrow{animation:none;}}

/* Community management and conversations share the same responsive form language. */
.pwl-cm-list{display:flex;flex-direction:column;gap:12px;margin:20px 0;}
.pwl-cm-item{padding:20px;border:1px solid var(--pwl-color-border);border-radius:10px;min-width:0;background:var(--pwl-color-white);}
.pwl-cm-item>header,.pwl-cm-conversation header{display:flex;align-items:center;gap:12px;justify-content:space-between;}
.pwl-cm-item strong{font-size:14px;font-weight:600;}
.pwl-cm-item small,.pwl-cm-conversation small{color:var(--pwl-color-muted);font-size:12px;}
.pwl-cm-item p,.pwl-cm-conversation p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px;margin:12px 0;}
.pwl-cm-item>.pwl-sc-title{display:block;margin:12px 0;font-size:16px;}
.pwl-cm-item .pwl-sc-actions{margin-top:12px;gap:8px;}
.pwl-cm-item .pwl-button{min-height:30px;font-size:12px;padding:5px 9px;}
.pwl-cm-reply{margin-left:28px;border-left:3px solid var(--pwl-color-border);}
.pwl-cm-composer{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.pwl-cm-composer>span{font-size:12px;color:var(--pwl-color-muted);}
.pwl-cm-conversation{list-style:none;padding:0;margin:24px 0;display:flex;flex-direction:column;gap:14px;}
.pwl-cm-conversation>li{padding:18px;border-radius:10px;border:1px solid var(--pwl-color-border);}
.pwl-cm-conversation>.pwl-cm-operator{background:var(--pwl-color-tag);}
.pwl-cm-status{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid var(--pwl-color-border);}
.pwl-cm-status label{margin:0;max-width:180px;}
.pwl-sc-post footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.pwl-sc-post footer>.pwl-button{border:0;background:none;font-size:12px;min-height:30px;padding:4px;}
.pwl-sc-tabs [aria-current=page]{border-bottom-color:var(--pwl-color-text);color:var(--pwl-color-text);font-weight:600;}
.pwl-sc-legacy-guide{padding:18px 20px;border:1px solid var(--pwl-color-border);border-radius:10px;margin:0 0 24px;line-height:1.7;}
.pwl-sc-legacy-guide p{margin:0 0 12px;}
.pwl-sc-fields input,.pwl-sc-fields select{box-sizing:border-box;min-width:0;width:100%;}
@media(max-width:600px){.pwl-cm-item{padding:15px;}.pwl-cm-reply{margin-left:14px;}.pwl-cm-conversation>li{padding:14px;}.pwl-cm-status{align-items:flex-start;}.pwl-sc-dialog .pwl-sc-postimages img{max-width:100%;}.pwl-sc-tabs{overflow-x:auto;white-space:nowrap;}.pwl-sc-bar>div{min-width:0;}.pwl-sc-bar form{display:flex;gap:6px;max-width:100%;}.pwl-sc-bar form input{flex:1;min-width:0;width:120px;}}
