.comment-create-card,
.comment-active-card,
.comment-collection-card { padding: 12px 14px; border: 1px solid #dbe2ec; border-radius: 8px; background: #fff; }
.comment-create-card { border-color: #ef9dc7; background: #fff8fc; }
.comment-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.comment-section-heading > div { min-width: 0; flex: 1; }
.comment-section-heading h3,
.comment-section-heading p { margin: 0; }
.comment-section-heading h3 { color: #202635; font-size: 13px; font-weight: 700; line-height: 1.3; }
.comment-section-heading p { margin-top: 3px; color: #7c8798; font-size: 9px; line-height: 1.45; }
.comment-section-heading > span,
.comment-section-heading div > span { color: #75839a; font-size: 8px; font-weight: 800; white-space: nowrap; }

.comment-selection-visual { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr); align-items: center; gap: 5px; margin-bottom: 9px; padding: 9px; border: 1px solid #e1e7ef; border-radius: 6px; background: #fff; }
.comment-selection-visual div { display: grid; min-width: 0; gap: 2px; text-align: center; }
.comment-selection-visual span { color: #7a8799; font-size: 7px; }
.comment-selection-visual strong { color: #253a51; font-size: 12px; }
.comment-selection-visual i { border-top: 1px dashed #91a5ba; }
.comment-selection-preview { min-height: 39px; margin-bottom: 9px; padding: 8px 10px; border-radius: 6px; background: #f3f6fa; color: #77859a; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.comment-selection-preview.has-selection { box-shadow: inset 3px 0 #ffdc70; color: #293d54; font-weight: 650; }
.comment-create-card .demo-field-label,
.comment-active-card .demo-field-label { margin: 0; color: #66758b; font-size: 9px; }
.comment-create-card .demo-text-input,
.comment-active-card .demo-text-input { margin-top: 4px; padding: 7px 9px; font-size: 10px; }
.comment-create-card textarea.demo-text-input,
.comment-active-card textarea.demo-text-input { min-height: 58px; resize: vertical; }
.comment-create-card > .btn { margin-top: 11px; }

.comment-active-card { min-height: 92px; overflow: hidden; }
.comment-active-card:not(.is-empty) { border-color: #f06aaa; box-shadow: 0 10px 30px rgba(26, 40, 61, .08); }
.comment-active-empty { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.comment-active-empty div { display: grid; gap: 2px; }
.comment-active-empty strong { color: #202635; font-size: 11px; }
.comment-active-empty small { color: #77859a; font-size: 9px; line-height: 1.4; }
.comment-empty-icon { position: relative; width: 34px; height: 28px; flex: 0 0 34px; border: 1px solid #9fb2c5; border-radius: 6px; background: #edf3f9; }
.comment-empty-icon::after { position: absolute; bottom: -5px; left: 7px; width: 8px; height: 8px; border-bottom: 1px solid #9fb2c5; border-left: 1px solid #9fb2c5; background: #edf3f9; content: ""; transform: skewY(-35deg); }
.comment-section-heading--active { align-items: center; }
.comment-section-heading--active h3 { margin-top: 2px; font-size: 15px; }
.comment-number-badge { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 50%; background: var(--comment-highlight, #ffdc70); color: #263a51 !important; font-size: 10px !important; }
.comment-anchor-preview { min-height: 42px; margin: 0 0 10px; padding: 9px 10px; border: 0; border-radius: 6px; background: #f5f7fa; box-shadow: inset 3px 0 var(--comment-highlight, #ffdc70); color: #30445b; font-size: 9px; font-style: normal; line-height: 1.45; overflow-wrap: anywhere; }
.comment-property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 10px; border: 1px solid #e0e6ef; border-radius: 6px; background: #e0e6ef; }
.comment-property-grid div { display: grid; min-width: 0; gap: 2px; padding: 8px 10px; background: #f9fbfd; }
.comment-property-grid span { color: #78869a; font-size: 8px; }
.comment-property-grid strong { overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.comment-active-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.comment-reply-editor { margin-top: 11px; padding-top: 11px; border-top: 1px solid #e4e9f0; }
.comment-reply-editor .btn { margin-top: 8px; }

.comment-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 7px; }
.comment-list > p { margin: 0; color: #7b889b; font-size: 9px; }
.comment-list-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid #e1e7ef; border-radius: 6px; background: #f9fbfd; color: #18263a; text-align: left; }
.comment-list-item:hover,
.comment-list-item:focus-visible,
.comment-list-item.is-active { border-color: #ec168c; background: #fff4fa; outline: 0; }
.comment-list-item.is-resolved { opacity: .62; }
.comment-list-item.is-reply { margin-left: 12px; }
.comment-list-item__number { display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid var(--comment-color, #ffdc70); border-radius: 50%; background: #fff; color: #354b62; font-size: 9px; font-weight: 800; }
.comment-list-item > span:last-child { display: grid; min-width: 0; gap: 2px; }
.comment-list-item strong,
.comment-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-list-item strong { font-size: 10px; }
.comment-list-item small { color: #77859a; font-size: 8px; }

@media (max-width: 620px) {
    .comment-selection-visual { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .comment-selection-visual i { display: none; }
    .comment-property-grid { grid-template-columns: 1fr; }
    .comment-list-item.is-reply { margin-left: 0; }
}
