/* Engagement and communications (modules/50-engagement). */
.eng-heat-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.eng-heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .84em; }
.eng-heat th { font-weight: 600; color: #5b6b7f; text-align: center; padding: 4px; white-space: nowrap; font-size: .9em; }
.eng-heat th:first-child, .eng-heat td:first-child { text-align: left; min-width: 120px; }
.eng-heat td { padding: 6px 6px; }
.eng-heat td .sub { display: block; font-size: .82em; color: #7a8899; }
.eng-heat tr.all td { border-bottom: 2px solid #e3e8ef; }
.eng-heat .c { text-align: center; border-radius: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eng-heat.compact { font-size: .78em; }
.eng-heat.compact td { padding: 4px; }
.c.g3 { background: #4fb88a; color: #fff; } .c.g2 { background: #a3dcc1; color: #17402c; } .c.g1 { background: #dff1e8; color: #23364d; }
.c.a1 { background: #fbe3b5; color: #5a3b00; } .c.r1 { background: #f4b6ae; color: #6b1d14; } .c.none { background: #f1f4f8; color: #7a8899; font-size: .9em; }
.eng-heat-key { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: .74em; }
.eng-heat-key .c { padding: 2px 8px; border-radius: 10px; }
.eng-mini { display: grid; gap: 10px; }
.eng-mini .mut { margin: 0; font-size: .85em; }
.eng-preview { border: 1px solid #e3e8ef; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.eng-preview-head { background: #f7f9fb; padding: 8px 12px; border-bottom: 1px solid #e3e8ef; overflow-wrap: anywhere; }
.eng-preview-body { padding: 10px 12px; overflow-wrap: anywhere; line-height: 1.5; }
.eng-checks { display: grid; gap: 6px; font-size: .88em; }
.eng-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.eng-filters .ct-field { display: grid; gap: 2px; margin: 0; min-width: 0; flex: 1 1 150px; max-width: 220px; }
.eng-filters .ct-field span { font-size: .78em; color: #5b6b7f; }
.eng-filters select { width: 100%; padding: 6px 8px; border: 1px solid #cfd8e3; border-radius: 6px; font: inherit; background: #fff; }
.eng-dist { min-width: 140px; }
.eng-dist-h { min-width: 140px; }
.eng-survey .eng-q { border: 1px solid #e3e8ef; border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; min-width: 0; }
.eng-survey .eng-q.has-err { border-color: #d6334b; }
.eng-survey legend { font-weight: 600; padding: 0 4px; overflow-wrap: anywhere; }
.eng-survey legend .opt { font-weight: 400; color: #7a8899; font-size: .8em; margin-left: 4px; }
.eng-survey textarea { width: 100%; min-width: 0; padding: 8px; border: 1px solid #cfd8e3; border-radius: 6px; font: inherit; }
.eng-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.eng-scale.n11 { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.eng-scale.n2 { grid-template-columns: repeat(2, minmax(0, 120px)); }
.eng-scale label { position: relative; display: block; cursor: pointer; min-width: 0; }
.eng-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eng-scale span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 4px; border: 1px solid #cfd8e3; border-radius: 8px; font-size: .82em; line-height: 1.2; background: #fff; overflow-wrap: anywhere; }
.eng-scale input:checked + span { background: #1a7fe0; border-color: #1a7fe0; color: #fff; font-weight: 600; }
.eng-scale input:focus-visible + span { outline: 3px solid #8cc4f5; outline-offset: 1px; }
.eng-scale-ends { display: flex; justify-content: space-between; font-size: .76em; color: #7a8899; margin-top: 4px; }
.eng-choices { display: grid; gap: 6px; margin-top: 6px; }
.eng-said { white-space: normal; margin-top: 6px; padding: 6px 10px; background: #f3f8fe; border-left: 3px solid #1a7fe0; border-radius: 4px; }
.eng-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.eng-unread td b { color: #0f4c8a; }
.eng-article { line-height: 1.6; overflow-wrap: anywhere; }
.eng-lead { font-size: 1.05em; color: #23364d; }
.eng-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.eng-feed { display: grid; gap: 0; }
.eng-card { padding: 12px 16px; border-bottom: 1px solid #edf1f5; min-width: 0; }
.eng-card:last-child { border-bottom: 0; }
.eng-card.flagged { background: #fffaf0; }
.eng-card p { margin: 6px 0; overflow-wrap: anywhere; }
.eng-card-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.eng-card-head .bi { color: #7048c8; }
.eng-when { margin-left: auto; font-size: .82em; }
.eng-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: .88em; }
.eng-comment { margin: 4px 0 4px 14px; padding: 6px 10px; background: #f7f9fb; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.eng-comment.flagged { background: #fff3db; }
.eng-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 100%; }
.eng-inline input { flex: 1 1 160px; min-width: 0; padding: 5px 8px; border: 1px solid #cfd8e3; border-radius: 6px; font: inherit; }
.eng-report summary { cursor: pointer; color: #7a8899; font-size: .9em; }
.eng-ask { display: flex; flex-wrap: wrap; gap: 8px; }
.eng-ask input { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid #cfd8e3; border-radius: 8px; font: inherit; font-size: 1.02em; }
.eng-answer { border: 1px solid #e3e8ef; border-radius: 8px; padding: 10px 14px; margin-top: 10px; }
.eng-answer p { margin: 6px 0; overflow-wrap: anywhere; }
.eng-answer-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86em; }
.eng-vote { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.eng-popular { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: .9em; }
.eng-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 12px; }
.eng-tile { display: grid; gap: 4px; padding: 12px; border: 1px solid #e3e8ef; border-radius: 10px; text-decoration: none; color: inherit; background: #fff; min-width: 0; }
.eng-tile:hover { border-color: #1a7fe0; }
.eng-tile .bi { font-size: 1.3em; color: #1a7fe0; }
.eng-tile span { font-size: .86em; color: #4b5b6e; overflow-wrap: anywhere; }
.eng-tile em { font-size: .78em; color: #7048c8; font-style: normal; }
.eng-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.eng-journey li { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 8px; border: 1px solid #e3e8ef; border-radius: 10px; min-width: 0; }
.eng-journey li.off { opacity: .6; }
.eng-journey .dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e8f2fd; color: #1a7fe0; font-size: 1.1em; }
.eng-journey strong { font-size: 1.5em; color: #0f4c8a; }
.eng-journey .mut { font-size: .8em; }
form.inline { display: inline; }
@media (max-width: 760px) {
    .eng-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eng-scale { grid-template-columns: 1fr; }
    .eng-scale.n11 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .eng-filters .ct-field { max-width: none; }
    .eng-when { margin-left: 0; }
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .eng-scale span, :root:not([data-theme="light"]) .eng-tile, :root:not([data-theme="light"]) .eng-filters select { background: transparent; }
    :root:not([data-theme="light"]) .eng-comment, :root:not([data-theme="light"]) .eng-preview-head, :root:not([data-theme="light"]) .c.none { background: rgba(255, 255, 255, .06); }
}
:root[data-theme="dark"] .eng-scale span, :root[data-theme="dark"] .eng-tile, :root[data-theme="dark"] .eng-filters select { background: transparent; }
:root[data-theme="dark"] .eng-comment, :root[data-theme="dark"] .eng-preview-head, :root[data-theme="dark"] .c.none { background: rgba(255, 255, 255, .06); }
