.insights-caption { color: #706c65; font-size: .82rem; margin: 6px 0; }
.follow-up-digest { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-block: 12px; border: 1px solid #e9d7af; border-radius: 12px; background: #fffaf0; color: #634914; }
.follow-up-digest[hidden] { display: none; }
.follow-up-digest button { border: 0; background: transparent; color: #83540c; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.follow-up-digest .digest-caption { font-size: .78rem; color: #706c65; }
#insights-results[aria-busy="true"] { opacity: .6; }
.work-insights > .section-heading { flex-wrap: nowrap; align-items: center; gap: 14px; }
.work-insights > .section-heading > div { min-width: 0; }
.work-insights > .section-heading > button { width: auto; flex: 0 0 auto; margin: 0; }
.insights-heading-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.insights-heading-actions > button { width: auto; margin: 0; }
.insights-scope-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: #faf9f6; }
.insights-scope-tabs button { border: 0; border-radius: 7px; background: transparent; color: #706c65; font: inherit; padding: 7px 11px; cursor: pointer; }
.insights-scope-tabs button[aria-pressed="true"] { background: #fff; color: #175f4a; box-shadow: 0 1px 4px #00000014; font-weight: 650; }
.insights-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-block: 24px 8px; }
.insights-tabs button { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 2px; color: #68645d; cursor: pointer; }
.insights-tabs button[aria-pressed="true"] { color: #b92e06; border-color: #ff420d; font-weight: 700; }
.insights-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 38px); max-width: 780px; padding: 24px 0 20px; }
.insights-overview > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.insights-overview span { color: #706c65; font-size: .85rem; }
.insight-number { background: none; border: 0; color: #175f4a; font: inherit; font-weight: 650; cursor: pointer; min-width: 40px; min-height: 40px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.insights-overview .insight-number { font-size: 2.2rem; padding: 0; text-align: start; }
.insight-number:hover:not(:disabled) { background: #eaf3ef; }
.insight-number:disabled { color: #928d84; cursor: default; }
.insight-number.is-due { color: #9c6400; }
.insights-range { margin-bottom: 20px; }
.followup-board { margin-block: 22px 28px; }
.followup-board > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.followup-board h3, .followup-track h4 { margin: 0; }
.followup-board select { width: min(100%, 250px); margin: 0; }
.followup-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 14px; }
.followup-track { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: #fff; min-width: 0; }
.followup-track h4 { font-size: .95rem; }
.followup-primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-block: 18px; }
.followup-primary > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.followup-primary .insight-number { padding: 0; font-size: 1.8rem; }
.followup-track span { font-size: .79rem; color: #706c65; overflow-wrap: anywhere; }
.followup-secondary { display: grid; gap: 5px; border-top: 1px solid var(--border); padding-block-start: 10px; }
.followup-secondary > div { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 8px; }
.insights-journey-heading { margin: 0; font-size: 1rem; }
.insights-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.insights-table th, .insights-table td { border-bottom: 1px solid #eeeae3; padding: 14px 12px; text-align: center; font-size: .85rem; }
.insights-table thead th { color: #706c65; font-weight: 500; background: #faf9f6; }
.insights-table th:first-child { text-align: start; }
.insights-table tbody th { max-width: 240px; overflow-wrap: anywhere; }
.insight-row-details { margin-block-start: 7px; color: #706c65; font-size: .76rem; font-weight: 400; }
.insight-row-details summary { cursor: pointer; width: fit-content; }
.insight-row-secondary { display: grid; gap: 4px; padding-block-start: 9px; text-align: start; }
.insight-row-secondary > div { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.insight-row-secondary .insight-number { min-width: 30px; min-height: 30px; }
.insight-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f0ede7; color: #696156; margin-inline-end: 9px; font-weight: 500; }
.insights-definitions { margin-block: 18px; color: #706c65; font-size: .82rem; max-width: 850px; }
.insights-definitions summary { color: #706c65; font-weight: 400; cursor: pointer; }
.insights-definitions p { line-height: 1.8; }
.brief-bell { display: inline-flex; align-items: center; gap: 7px; }
.brief-bell[hidden], .brief-bell i[hidden] { display: none; }
.brief-bell i { width: 6px; height: 6px; border-radius: 50%; background: #bf7500; }
.insight-dialog { box-sizing: border-box; width: min(600px, calc(100vw - 28px)); max-height: 86dvh; padding: 26px; border: 1px solid #eeeae3; border-radius: 18px; color: #242824; background: #fff; overflow-y: auto; }
.insight-dialog::backdrop { background: #20201d66; backdrop-filter: blur(3px); }
.insight-dialog header, .insight-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.insight-dialog header h3 { margin: 0; font-size: 1.18rem; }
.insight-close { border: 0; background: transparent; font-size: 26px; width: 40px; height: 40px; cursor: pointer; border-radius: 50%; }
.insight-dialog footer { margin-top: 22px; }
.daily-brief-dialog { width: min(480px, calc(100vw - 28px)); }
.daily-brief-dialog > .insights-caption { margin: 0 0 18px; }
.brief-scope-tabs { margin-bottom: 8px; width: fit-content; }
.brief-row { display: grid; grid-template-columns: 40px 1fr 15px; align-items: center; gap: 14px; width: 100%; padding: 17px 0; background: transparent; border: 0; border-bottom: 1px solid #eeeae3; color: inherit; text-align: start; font: inherit; cursor: pointer; }
.brief-row strong { font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.brief-row small { display: block; color: #77736d; font-size: .77rem; margin-top: 4px; }
.brief-row:hover { background: #faf9f6; }
.brief-count { color: #177150; font-size: 1.4rem; font-weight: 600; text-align: center; }
.tone-amber .brief-count { color: #a06c0c; }
.tone-blue .brief-count { color: #3b6b91; }
.brief-empty { padding: 24px 0; color: #177150; }
.insight-client { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid #eeeae3; }
.insight-client > div { min-width: 0; overflow-wrap: anywhere; }
.insight-client small { display: block; margin-top: 4px; color: #706c65; font-size: .8rem; }
.insight-customer-link, .insight-open { background: none; border: 0; font: inherit; text-align: start; cursor: pointer; color: #175f4a; padding: 6px 0; overflow-wrap: anywhere; }
.insight-customer-link { color: #242824; font-weight: 600; }
.insight-open { white-space: nowrap; align-self: center; min-height: 40px; }
.insight-dialog button:focus-visible, .work-insights button:focus-visible, .work-insights summary:focus-visible, .brief-bell:focus-visible { outline: 2px solid #177150; outline-offset: 3px; }
.insights-more { margin-top: 18px; }
@media (max-width: 760px) {
    .followup-tracks { grid-template-columns: 1fr; gap: 12px; }
    .followup-track { padding: 16px; }
    .work-insights > .section-heading { flex-wrap: wrap; }
    .insights-heading-actions { width: 100%; justify-content: space-between; }
    .insights-table, .insights-table tbody { display: block; background: transparent; }
    .insights-table thead { display: none; }
    .insights-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #dedad2; padding-block: 12px; }
    .insights-table tbody th { grid-column: 1 / -1; max-width: none; border: 0; padding: 8px 0; }
    .insights-table td { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; padding: 8px 0; }
    .insights-table td::before { content: attr(data-label); font-size: .74rem; color: #706c65; }
    .insights-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .insights-overview .insight-number { font-size: 1.8rem; }
    .insights-overview span { font-size: .77rem; }
    .insight-dialog { padding: 20px; }
}
