/* Comment emphasis belongs to the text, with a quiet, labelled edit affordance. */
.search-table .source-comment-preview{font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-edit-action{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 0;margin-top:3px;border:0;background:transparent;color:var(--forest);font-size:12px;font-weight:500}
.comment-edit-action .icon{width:14px;height:14px;flex:none}
.comment-edit-action:hover{background:transparent;text-decoration:underline;text-underline-offset:3px}
.comment-edit-action:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.comment-editor{width:min(620px,calc(100vw - 32px));max-width:620px;max-height:calc(100dvh - 32px);padding:28px;overflow:auto}
.comment-editor header{padding-right:36px;margin-bottom:22px}
.comment-editor h2{margin:0 0 8px;font-size:23px}
.comment-editor header p{margin:0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.comment-editor textarea{width:100%;min-height:180px;max-height:50dvh;resize:vertical;line-height:1.6}
.comment-editor .error{margin:12px 0;white-space:normal;overflow-wrap:anywhere}
.comment-editor-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.comment-editor-actions button{min-height:44px}
@media(max-width:480px){.comment-editor{padding:22px 18px}.comment-editor h2{font-size:21px}.comment-editor-actions button{flex:1}.comment-editor textarea{font-size:16px}}
.source-comment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;margin-bottom:8px}
.parcel-main .source-comment-heading h3{margin:0}
.source-comment-heading .comment-edit-action{flex:none}

/* A read cue and original prefix share the existing comment-column width. */
.source-comment-preview{display:flex;align-items:center;gap:6px;min-width:0;width:100%;max-width:100%;min-height:24px;height:24px;padding:0;white-space:nowrap;text-align:left;overflow:hidden}
.source-comment-preview .icon{width:16px;height:16px;flex:none}
.source-comment-preview .source-comment-prefix{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.source-comment-preview:focus-visible{outline:2px solid var(--forest);outline-offset:-2px}
.source-comment-empty{display:block;white-space:nowrap}
/* Beat the later dense tbody button rule instead of relying on load order. */
.catalogue-dense .dense-property-table tbody td[data-table-column="sourceComment"] .source-comment-preview{display:flex;align-items:center;min-height:24px;height:24px;line-height:24px}
@media(max-width:1000px),(pointer:coarse){
 .source-comment-preview,.catalogue-dense .dense-property-table tbody td[data-table-column="sourceComment"] .source-comment-preview{min-height:44px;height:44px;line-height:1.3}
}
@media(forced-colors:active){
 .source-comment-preview{color:ButtonText}
 .source-comment-preview:focus-visible{outline-color:Highlight}
}
