.crm{--crm-muted:#a8b4c7;line-height:1.6}
.crm [hidden],.crm-summary[hidden]{display:none!important}
.crm .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root[data-theme="day"] .crm{--crm-muted:#46576a}
.crm h1{font-size:22px;line-height:1.4;font-weight:700}
.crm h2{font-size:15px;font-weight:650}
.crm p,.crm small{color:var(--crm-muted)}
.crm button,.crm input,.crm select{font:inherit}
.crm button,.crm a,.crm select{touch-action:manipulation}
.crm button:focus-visible,.crm a:focus-visible,.crm input:focus-visible,.crm select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.crm input,.crm select{width:100%;min-height:40px;background:var(--bg);color:var(--t1);border:1px solid var(--border);border-radius:6px;padding:8px 10px;caret-color:var(--green)}
.crm input::placeholder{color:var(--crm-muted)}
.crm button{min-height:36px;cursor:pointer;border:1px solid var(--border);border-radius:6px;padding:7px 12px;color:var(--t1);background:var(--card2)}
.crm button:hover{border-color:var(--green)}
.crm button:disabled{opacity:.55;cursor:wait}
.crm a{color:var(--green);text-underline-offset:3px}
.crm .crm-header{display:flex;justify-content:space-between;gap:18px;align-items:start;margin-bottom:20px}
.crm-header p{margin-top:5px;max-width:70ch}
.crm .crm-sync{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;background:var(--card);border:1px solid var(--border);border-radius:8px;margin-bottom:16px}
.crm .crm-sync p{font-size:12px;margin-top:2px}
.crm .crm-sync[data-state="warning"]{border-color:var(--yellow)}
.crm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0 24px;border-bottom:1px solid var(--border);padding-bottom:18px;gap:14px}
.crm-metrics dt{color:var(--crm-muted);font-size:12px}
.crm-metrics dd{font-size:28px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.4}
.crm-filter{display:grid;grid-template-columns:2fr repeat(4,minmax(125px,1fr));gap:10px;margin-bottom:16px}
.crm-filter label{display:flex;flex-direction:column;gap:5px;color:var(--crm-muted);font-size:12px;min-width:0}
.crm-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:20px;align-items:start}
.crm-distribution{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:16px}
.crm-distribution p{font-size:12px;margin:5px 0 16px}
.crm .crm-stage-button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 0;border-radius:3px;margin-bottom:4px}
.crm-stage-button[aria-pressed="true"]{color:var(--green)}
.crm-bar-label{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px}
.crm-bar-label strong{font-variant-numeric:tabular-nums;font-size:13px}
.crm-bar-track{display:block;height:5px;background:var(--border);margin-top:6px;border-radius:3px;overflow:hidden}
.crm-bar{height:100%;background:var(--green);border-radius:3px}
.crm .crm-results{min-width:0}
.crm-result-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.crm-view-switch{display:flex;gap:6px}
.crm-view-switch [aria-pressed="true"]{color:var(--green);border-color:var(--green)}
.crm-table-wrap{overflow:auto;max-height:70vh;border:1px solid var(--border);border-radius:8px;background:var(--card)}
.crm table{width:100%;border-collapse:collapse;min-width:620px;font-size:12px}
.crm th{position:sticky;top:0;background:var(--card2);text-align:left;white-space:nowrap;color:var(--crm-muted);font-size:12px;padding:12px;font-weight:600;z-index:1}
.crm td{padding:13px 12px;border-bottom:1px solid var(--border);vertical-align:top;max-width:260px;overflow-wrap:anywhere}
.crm tbody tr:last-child td{border-bottom:0}
.crm tbody tr:hover{background:var(--card2)}
.crm .crm-company{border:0;background:none;padding:0;text-align:left;font-weight:650;min-height:28px;font-size:13px}
.crm-stage{display:inline-block;border:1px solid var(--border);border-radius:4px;padding:2px 7px;line-height:1.5;font-size:12px;white-space:normal}
.crm-stage[data-missing="true"]{color:var(--yellow)}
.crm-category{display:inline-block;margin:0 4px 4px 0;color:var(--crm-muted);font-size:12px}
.crm-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.crm-column{min-width:0;background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden}
.crm-column h3{font-size:13px;padding:12px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:8px}
.crm .crm-board-item{display:block;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;width:100%;text-align:left;padding:13px 12px;overflow-wrap:anywhere}
.crm-board-item:last-child{border-bottom:0}
.crm-board-item strong{display:block;margin-bottom:6px;font-size:13px}
.crm-board-item small{display:block}
.crm-empty{padding:28px 20px;border:1px dashed var(--border);border-radius:8px;text-align:center;background:var(--card)}
.crm-empty p{margin:6px auto 12px;max-width:65ch}
.crm-auth{max-width:440px;padding:20px;border:1px solid var(--border);border-radius:8px;background:var(--card);margin:20px 0}
.crm-auth form{display:flex;gap:8px;margin:14px 0 0}
.crm-auth input{min-width:0;flex:1}
.crm-auth button{flex-shrink:0}
.crm .crm-error{color:var(--red);margin-top:8px}
.crm-detail{border:1px solid var(--green);border-radius:8px;padding:18px;margin:0 0 18px;background:var(--card);scroll-margin-top:20px}
.crm-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.crm-detail dt{font-size:12px;color:var(--crm-muted)}
.crm-detail dd{overflow-wrap:anywhere;margin-top:3px}
.crm-detail .crm-result-head{margin-bottom:0}
.crm-detail-note{padding-top:12px;border-top:1px solid var(--border);font-size:12px}
.crm table{min-width:1450px}
.crm .crm-text-cell{min-width:200px;max-width:310px}
.crm-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}
.crm .crm-read-more,.crm .crm-parent{border:0;background:transparent;color:var(--green);padding:3px 0;min-height:30px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.crm-long-fields{display:grid;gap:18px;margin:20px 0}
.crm-long-fields section{padding-top:14px;border-top:1px solid var(--border);min-width:0}
.crm-long-fields h3{font-size:14px;margin-bottom:6px}
.crm-long-fields p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;max-width:90ch;color:var(--t1)}
.crm-long-fields small{font-size:11px;font-weight:400}
.crm-board-item .crm-excerpt{display:-webkit-box;font-size:12px;color:var(--t1);margin:8px 0}
.crm-footnote{font-size:12px;margin-top:18px;max-width:90ch;line-height:1.8}
.crm-summary{margin-bottom:14px;background:var(--card);border:1px solid var(--border);border-radius:8px;padding:12px 16px;display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.crm-summary span{color:var(--t2);font-size:12px}
.crm-summary a{color:var(--green);text-underline-offset:3px}
@media(max-width:1100px){.crm-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:768px){.crm .crm-header{flex-direction:column;gap:10px}.crm h1{font-size:20px}.crm-metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}.crm-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-filter label:first-child{grid-column:1/-1}.crm-layout{grid-template-columns:minmax(0,1fr)}.crm-stage-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.crm .crm-sync{align-items:start}.crm-detail dl{grid-template-columns:minmax(0,1fr)}.crm-board{grid-template-columns:minmax(0,1fr)}.crm .crm-sync button{flex-shrink:0}.crm-auth form{flex-wrap:wrap}.crm-metrics dd{font-size:25px}}
