:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #142438; background: #f1f5f9; --brand-color: #c62828; --line: #d7e0ea; --muted: #526378; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand-color); text-underline-offset: .18em; }
.shell { max-width: 1250px; margin: auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar, .heading, nav, .link, .pager { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.bar, .heading { justify-content: space-between; }
.bar { min-height: 4rem; padding-block: .6rem; }
.brand { color: inherit; font-weight: 700; text-decoration: none; }
.brand span { display: inline-grid; place-items: center; background: var(--brand-color); color: white; width: 1.8rem; height: 1.8rem; margin-right: .25rem; border-radius: .35rem; }
nav [aria-current] { font-weight: 700; }
main { padding-block: 1.5rem 3rem !important; }
h1 { margin: 0 0 1.1rem; font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.18; }
h2 { margin: 0 0 .65rem; font-size: 1.13rem; }
p { margin: .5rem 0 1rem; }
small, .muted { color: var(--muted); }
.card { background: white; border: 1px solid var(--line); border-radius: .75rem; padding: clamp(.85rem, 2vw, 1.4rem); margin-bottom: 1rem; min-width: 0; }
.narrow { max-width: 31rem; margin: 2rem auto; }
.metrics, .columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.metric h2 { color: var(--muted); font-size: .91rem; font-weight: 600; }
.metric strong { display: block; font-size: 1.55rem; }
.row { display: flex; align-items: end; gap: .85rem; flex-wrap: wrap; }
.filters label { flex: 1 1 9rem; }
.stack { display: grid; gap: .85rem; }
.stack button, .stack .button { justify-self: start; }
label { display: grid; gap: .26rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
input, select, button, .button { font: inherit; min-height: 2.55rem; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: .37rem; }
input, select { background: white; color: #142438; min-width: 0; max-width: 100%; }
:focus-visible { outline: 3px solid #1c71be; outline-offset: 2px; }
button, .button { display: inline-flex; align-items: center; background: var(--brand-color); border-color: var(--brand-color); color: white; cursor: pointer; font-weight: 600; text-decoration: none; }
.ghost { background: white; border-color: var(--line); color: var(--brand-color); }
.check { display: flex; flex-direction: row; align-items: center; min-height: 2.55rem; }
.check input { margin: 0 .35rem 0 0; min-height: auto; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .91rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #edf3f8; color: var(--muted); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.pager { margin-top: .75rem; }
.status { display: inline-block; color: #394e65; background: #edf3f8; padding: .12rem .45rem; border-radius: .25rem; white-space: nowrap; }
.status.sent, .notice.success { color: #175942; background: #e6f5ee; }
.status.review, .notice.error { color: #842328; background: #fcecee; }
.notice { padding: .7rem 1rem; border-radius: .35rem; }
.event-list { display: grid; gap: .25rem; margin-bottom: 1rem; }
.event-list a { padding: .35rem .55rem; border-radius: .3rem; }
.event-list [aria-current] { background: #edf3f8; font-weight: 600; }
.event-list small { margin-left: .4rem; }
.link { flex-wrap: nowrap; }
.link input { width: min(100%, 29rem); min-width: 12rem; }
details { min-width: 8rem; }
summary { cursor: pointer; color: var(--brand-color); }
details .stack { margin-top: .6rem; }
code { overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: minmax(6rem, 2fr) minmax(0, 3fr); gap: .5rem .75rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.signature { display: block; max-width: 100%; max-height: 12rem; border: 1px solid var(--line); border-radius: .35rem; margin: .65rem 0; }
.journal-summary { display: flex; align-items: baseline; gap: .45rem 1rem; flex-wrap: wrap; }
.journal-table .record-title { min-width: 12rem; }
.record-title > small { display: block; margin-top: .15rem; }
.open-record { display: block; width: fit-content; }
.open-record span { display: block; margin-top: .15rem; font-size: .82rem; }
.analytics-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.ranking th[scope=row] { background: white; font-weight: 500; white-space: normal; min-width: 10rem; }
.count-bar { min-width: 8rem; }
.count-bar meter { width: 100%; height: .5rem; display: block; margin: .22rem 0; border: 0; border-radius: 1rem; background: #edf3f8; }
.count-bar meter::-webkit-meter-bar { height: .5rem; background: #edf3f8; border: 0; border-radius: 1rem; }
.count-bar meter::-webkit-meter-optimum-value { background: #226299; border-radius: 1rem; }
.count-bar meter::-moz-meter-bar { background: #226299; border-radius: 1rem; }
.heatmap { font-variant-numeric: tabular-nums; }
.heatmap th, .heatmap td { padding: .35rem .38rem; text-align: center; vertical-align: middle; min-width: 2rem; }
.heatmap th:first-child { position: sticky; left: 0; text-align: left; }
.heatmap a { display: block; }
.heatmap tbody tr > td:nth-child(2), .heatmap tfoot { background: #edf3f8; font-weight: 600; }
.heat-0 { color: #526378; }
.heat-1 { background: #eaf2fa; }
.heat-2 { background: #cee2f4; }
.heat-3 { background: #91b9df; }
.heat-4 { background: #c62828; }
.heat-4 a { color: white; }
.crm-overview .facts { grid-template-columns: minmax(0, 2fr) minmax(5rem, 1fr); }
.crm-overview .facts + p { margin-bottom: 0; }
.deal-stage { display: block; margin-top: .3rem; font-weight: 600; min-width: 10rem; }
.deal-S { color: #175942; }
.deal-F { color: #842328; }
.integration-url { width: 100%; }
