/* V18.1 additive, scoped styling. Existing ESA Registry styles remain the baseline. */
#v18-root .cmp-record {margin-bottom:12px;overflow-wrap:anywhere;}
#v18-root h3 {line-height:1.35;}
#v18-root textarea,#v18-root input,#v18-root select {max-width:100%;}
#v18-root .cmp-action,#v18-root .cmp-secondary {min-height:42px;}
#v18-root details summary {padding:10px 0;color:#e9bd71;}
#v18-root #v18-status:not(:empty) {margin:8px 0 12px;line-height:1.5;}
@media(max-width:480px){#v18-root .cmp-record{padding:15px 13px;}#v18-root button{font-size:14px;}}

/* V27.4: mobile-first readable discussion list and in-place thread. */
#v18-root {min-width:0;max-width:100%;overflow-wrap:anywhere;}
#v18-root .cmp-record[data-v18-post] {display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box;padding:14px!important;margin:12px 0;border-radius:15px;}
#v18-root .cmp-record[data-v18-post] > * {max-width:100%;min-width:0;}
#v18-root .cmp-record[data-v18-post] h3 {margin:10px 0 8px;font-size:18px;}
#v18-root .cmp-thread-title {display:block;width:100%;background:transparent;border:0;padding:0;text-align:left;color:#fff;font-size:18px;font-weight:750;line-height:1.35;cursor:pointer;overflow-wrap:anywhere;}
#v18-root .cmp-thread-title:focus-visible {outline:2px solid #e9bd71;outline-offset:4px;}
#v18-root .cmp-preview {margin:8px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
#v18-root .cmp-record[data-v18-post] > div:has(> button[data-v18-action]) {display:flex!important;flex-wrap:wrap;gap:8px!important;align-items:center;}
#v18-root .cmp-record[data-v18-post] button.cmp-secondary {min-width:0;max-width:100%;white-space:normal;}
#v18-root .cmp-inline-thread {display:block;max-width:100%;}
#v18-root .cmp-inline-thread[data-open="yes"] {margin-top:15px;padding-top:15px;border-top:1px solid #54708b;}
#v18-root .cmp-thread-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;}
#v18-root .cmp-thread-heading h4 {margin:0;color:#e9bd71;}
#v18-root .cmp-thread-full,#v18-root .cmp-thread-reply p {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;}
#v18-root .cmp-thread-reply {padding:12px 0;border-top:1px solid #39506c;}
#v18-root .cmp-thread-reply p {margin:7px 0;}
#v18-root .cmp-thread-body textarea {width:100%;box-sizing:border-box;}

#v18-root .cmp-record[data-v18-post] .cmp-muted {display:block;width:100%;line-height:1.5;}
#v18-root .cmp-record[data-v18-post] > h3,#v18-root .cmp-record[data-v18-post] > p {display:block;width:100%;box-sizing:border-box;}
#v18-root .cmp-record[data-v18-post] > div:has(> button[data-v18-action]) {width:100%;}
#v18-root .cmp-record[data-v18-post] > div:has(> button[data-v18-action]) button {flex:1 1 auto;}

/* V28.0: compact action row, accessible search, better in-place thread. */
#v18-root .cmp-search{display:block;margin:16px 0 10px;}
#v18-root .cmp-search input{width:100%;box-sizing:border-box;min-height:44px;}
#v18-root .cmp-feed-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
#v18-root .cmp-feed-header .cmp-section{margin:10px 0;}
#v18-root .cmp-card-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%;}
#v18-root .cmp-card-actions > button{width:100%;min-height:44px;margin:0!important;padding:9px 8px!important;box-sizing:border-box;flex:initial!important;}
#v18-root .cmp-card-actions > .cmp-read{grid-column:1/-1;}
#v18-root .cmp-thread-body{min-width:0;overflow-wrap:anywhere;}
#v18-root .cmp-thread-body .cmp-thread-heading button{flex:0 0 auto;width:auto;min-width:68px;}
#v18-root .cmp-thread-body h4{line-height:1.4;}
#v18-root .cmp-thread-reply strong{display:block;overflow-wrap:anywhere;}
@media(max-width:320px){#v18-root .cmp-card-actions{grid-template-columns:1fr;}#v18-root .cmp-card-actions > .cmp-read{grid-column:auto;}}

/* V29: narrow owner controls, never exposed without an ownership flag. */
#v18-root .cmp-danger{border:1px solid #b87d7d!important;color:#fff!important;}
#v18-root .cmp-thread-reply .cmp-danger{width:auto;min-height:36px;padding:6px 12px;font-size:13px;}
#v18-root .cmp-card-actions .cmp-danger{grid-column:1/-1;}
