/* Leader analytics. Uses the CRM's colour tokens, so light and dark mode both work. */
.an-root:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 18px 24px 4px; color: var(--text-main); }
.an-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.an-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 2px; font-size: 20px; }
.an-muted:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); font-size: 12px; }
.an-small-text:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11.5px; margin: 8px 0 0; }
.an-controls:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.an-controls select:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.an-seg:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.an-seg button:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: none; background: var(--bg-card); color: var(--text-main); padding: 6px 12px; font-size: 13px; cursor: pointer; }
.an-seg button.on:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--primary-blue); color: #fff; font-weight: 600; }
.an-small:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 6px 10px !important; font-size: 12px !important; }
.an-tabs:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; border-bottom: 1px solid var(--card-border); }
.an-tab:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: none; background: none; color: var(--text-muted); padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.an-tab.on:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.an-empty:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 40px; text-align: center; color: var(--text-muted); }
.an-warn:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12.5px; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.an-warn:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: rgba(239, 68, 68, 0.08); color: #b91c1c; }
.an-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--dropdown-selected-bg); color: var(--text-main); }
.an-kpis:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.an-kpis6:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.an-kpi:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 10px; padding: 12px 14px; box-shadow: var(--card-shadow); }
.an-kpi.accent:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-top: 3px solid var(--primary-blue); }
.an-kpi.good:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-top: 3px solid #059669; }
.an-kpi.bad:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-top: 3px solid var(--danger-red); }
.an-kpi-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.an-kpi-value:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 22px; font-weight: 700; margin-top: 4px; }
.an-kpi-value small:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.an-kpi-sub:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.an-grid2:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.an-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--card-shadow); min-width: 0; }
.an-grid2 .an-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-bottom: 0; }
.an-card h3:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 10px; font-size: 14px; }
.an-chart:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: relative; height: 280px; }
.an-table-wrap:where(:not([data-ui="v2"], [data-ui="v2"] *)) { overflow-x: auto; }
.an-table:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.an-table th:where(:not([data-ui="v2"], [data-ui="v2"] *)) { text-align: left; font-weight: 700; color: var(--text-muted); padding: 7px 8px; border-bottom: 1px solid var(--card-border); white-space: nowrap; }
.an-table td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 7px 8px; border-bottom: 1px solid var(--card-border); }
.an-table.compact td:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-table.compact th:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 5px 6px; }
.an-table a:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); text-decoration: none; font-weight: 600; }
.an-table a:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { text-decoration: underline; }
.an-good:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: #059669; font-weight: 600; }
.an-bad:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); font-weight: 600; }
.an-pill:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--dropdown-selected-bg); color: var(--primary-blue); text-transform: capitalize; }
.an-pill.warn:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-pill.lost:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-pill.back:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.an-pill.won:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-pill.forward:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: rgba(5, 150, 105, 0.1); color: #047857; }
.an-calib:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--card-border); }
.an-check:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.an-funnel:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 6px; }
.an-funnel-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: 150px 1fr 80px; gap: 8px; align-items: center; font-size: 12.5px; }
.an-funnel-bar:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--column-bg); border-radius: 4px; height: 14px; overflow: hidden; }
.an-funnel-bar span:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: block; height: 100%; background: var(--primary-blue); border-radius: 4px; }
.an-funnel-n:where(:not([data-ui="v2"], [data-ui="v2"] *)) { text-align: right; font-weight: 600; }
.an-funnel-n small:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); font-weight: 400; }
.an-issues:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 6px; }
.an-issue:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--card-border); background: var(--bg-card); color: var(--text-main); border-radius: 8px; padding: 8px 10px; font-size: 13px; cursor: pointer; text-align: left; }
.an-issue.on:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--primary-blue); background: var(--dropdown-selected-bg); }
.an-issue b:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 14px; }
@media (max-width: 1000px) { .an-kpis:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-kpis6:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-grid2:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: 1fr; } }

/* Info buttons and popover */
.an-info:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-muted); font: italic 700 10px/1 Georgia, serif; cursor: pointer; vertical-align: middle; padding: 0; }
.an-info:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-info:focus-visible:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--primary-blue); color: var(--primary-blue); outline: none; }
.an-pop:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: fixed; z-index: 2000; background: var(--bg-card); color: var(--text-main); border: 1px solid var(--card-border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); padding: 12px 14px; font-size: 12.5px; line-height: 1.45; }
.an-pop-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13.5px; }
.an-pop-sec:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 8px; }
.an-pop-sec span:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 2px; }
.an-pop-x:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 2px; }

/* Summary modal */
.an-modal-backdrop:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: fixed; inset: 0; z-index: 1900; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.an-modal:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); color: var(--text-main); border-radius: 12px; width: min(980px, 100%); max-height: 92dvh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.an-modal header:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--card-border); }
.an-modal header h2:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 2px; font-size: 18px; }
.an-modal-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 8px; align-items: center; }
.an-modal-body:where(:not([data-ui="v2"], [data-ui="v2"] *)) { overflow-y: auto; padding: 14px 20px 20px; font-size: 13px; line-height: 1.5; }
.an-sum-block:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--column-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.an-sum-block.prio:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-left: 4px solid #f59e0b; }
.an-sum-block h3:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-sum-h:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 6px; font-size: 14px; }
.an-sum-h:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 16px 0 8px; }
.an-sum-block ul:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-sum-block ol:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0; padding-left: 20px; }
.an-sum-rep:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.an-sum-rep-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.an-sum-stats:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; font-weight: 400; }
.an-sum-stats span:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--column-bg); border-radius: 10px; padding: 1px 8px; color: var(--text-muted); }
.an-sum-cols:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.an-sum-cols ul:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-sum-cols ol:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0; padding-left: 18px; }
.an-sum-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px; }
.an-actions li:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-bottom: 4px; }
.an-actions a:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-sum-block a:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); font-weight: 600; text-decoration: none; }
.an-lvl:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 0 6px; margin-right: 4px; }
.lvl-high .an-lvl:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.lvl-med .an-lvl:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.lvl-low .an-lvl:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--dropdown-selected-bg); color: var(--primary-blue); }
@media (max-width: 760px) { .an-sum-cols:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: 1fr; } }

/* Sortable table headers */
.an-table th.an-sortable:where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: pointer; user-select: none; }
.an-table th.an-sortable:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); }
.an-table th.an-sortable:where(:not([data-ui="v2"], [data-ui="v2"] *))::after { content: " ↕"; opacity: 0.35; font-size: 10px; }
.an-table th[data-dir="asc"]:where(:not([data-ui="v2"], [data-ui="v2"] *))::after { content: " ▲"; opacity: 1; color: var(--primary-blue); }
.an-table th[data-dir="desc"]:where(:not([data-ui="v2"], [data-ui="v2"] *))::after { content: " ▼"; opacity: 1; color: var(--primary-blue); }

/* Targets & incentives */
.an-tabs-solo:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 4px; }
.an-inc-controls:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.an-inc-controls label:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.an-inc-controls select:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-inp:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-form input:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-form select:where(:not([data-ui="v2"], [data-ui="v2"] *)), .an-form textarea:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 6px; padding: 5px 8px; font-size: 13px; font-family: inherit; }
.an-inp:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 110px; }
.an-inp.invalid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--danger-red); }
.an-inp.saved:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: #059669; box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15); }
.an-row-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { white-space: nowrap; display: flex; gap: 6px; }
.an-table tr.an-inwin td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: rgba(59, 102, 245, 0.06); }
.an-form:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 12px; }
.an-form label:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.an-form small:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 400; color: var(--text-muted); }
.an-form footer:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: flex-end; gap: 8px; }
.an-form-err:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); font-size: 12.5px; min-height: 16px; }
.an-modal .an-table td:last-child:where(:not([data-ui="v2"], [data-ui="v2"] *)) { min-width: 240px; }
.an-modal-body .an-table-wrap:where(:not([data-ui="v2"], [data-ui="v2"] *)) { max-height: 60dvh; overflow: auto; }

/* Activity log (activity.js) */
.an-controls[hidden]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }
.act-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.act-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 2px 0 2px; font-size: 16px; }
.act-title .an-muted:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 500; margin-left: 6px; }
.act-controls:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-range:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.act-range select:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-range input[type=date]:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-search:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 8px; padding: 5px 8px; font-size: 13px; }
.act-arrow:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 11px; }
.act-arrow:hover:not(:disabled):where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--primary-blue); color: var(--primary-blue); }
.act-arrow:disabled:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.35; cursor: default; }
.act-check:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12.5px; color: var(--text-muted); display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.act-kinds:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.act-kind:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-muted); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.act-kind:where(:not([data-ui="v2"], [data-ui="v2"] *))::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--kc); margin-right: 6px; opacity: 0.35; }
.act-kind.on:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-main); border-color: var(--kc); }
.act-kind.on:where(:not([data-ui="v2"], [data-ui="v2"] *))::before { opacity: 1; }
.act-grid-wrap:where(:not([data-ui="v2"], [data-ui="v2"] *)) { overflow: auto; max-height: calc(100vh - 290px); border: 1px solid var(--card-border); border-radius: 10px; background: var(--bg-card); }
.act-grid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.act-grid th:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-grid td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-bottom: 1px solid var(--card-border); padding: 0; text-align: center; }
.act-grid thead th:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: sticky; top: 0; z-index: 2; background: var(--bg-card); padding: 8px 4px; white-space: nowrap; }
.act-grid tfoot th:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-grid tfoot td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: sticky; bottom: 0; z-index: 2; background: var(--bg-card); border-top: 1px solid var(--card-border); font-weight: 700; }
.act-grid .act-day:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-grid .act-corner:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: sticky; left: 0; z-index: 1; background: var(--bg-card); text-align: left; padding: 0 12px; white-space: nowrap; font-weight: 600; color: var(--text-muted); }
.act-grid thead .act-corner:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-grid tfoot .act-day:where(:not([data-ui="v2"], [data-ui="v2"] *)) { z-index: 3; }
.act-grid .act-weekend .act-day:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); opacity: 0.7; }
.act-grid .act-weekend td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: color-mix(in srgb, var(--text-muted) 5%, transparent); }
.act-person:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: none; background: none; color: var(--text-main); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.act-person:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); background: var(--dropdown-selected-bg); }
.act-cell:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: block; width: 100%; min-width: 64px; height: 32px; border: none; background: none; color: var(--text-main); font-weight: 600; cursor: pointer; font-size: 12.5px; }
.act-cell.zero:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); opacity: 0.45; font-weight: 400; }
.act-cell:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-cell:focus-visible:where(:not([data-ui="v2"], [data-ui="v2"] *)) { outline: 2px solid var(--primary-blue); outline-offset: -2px; }
.act-total:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 700; color: var(--text-muted); padding: 0 10px !important; }
.act-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 8px; }
.act-back:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: none; background: none; color: var(--primary-blue); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 4px; }
.act-kpis:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.act-kpi:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-top: 3px solid var(--kc); }
.act-toolbar:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.act-toolbar .act-kinds:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0; }
.act-search:where(:not([data-ui="v2"], [data-ui="v2"] *)) { min-width: 260px; }
.act-log:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 12px; }
.act-daygroup h4:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 16px 0 6px; font-size: 13px; }
.act-daygroup h4 .an-muted:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 500; margin-left: 6px; }
.act-entries:where(:not([data-ui="v2"], [data-ui="v2"] *)) { list-style: none; margin: 0; padding: 0; background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.act-entry + .act-entry:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-top: 1px solid var(--card-border); }
.act-entry-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: 52px 118px 80px 1fr 18px; gap: 10px; align-items: start; padding: 9px 12px; cursor: pointer; font-size: 12.5px; }
.act-entry-row.static:where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: default; }
.act-entry-row:hover:not(.static):where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-entry-row:focus-visible:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--dropdown-selected-bg); outline: none; }
.act-time:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.act-badge:where(:not([data-ui="v2"], [data-ui="v2"] *)) { justify-self: start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; color: var(--kc); background: color-mix(in srgb, var(--kc) 12%, transparent); white-space: nowrap; }
.act-action:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 600; text-transform: capitalize; }
.act-main:where(:not([data-ui="v2"], [data-ui="v2"] *)) { min-width: 0; }
.act-entity a:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); font-weight: 600; text-decoration: none; }
.act-entity a:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { text-decoration: underline; }
.act-entity:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 600; }
.act-sum:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: block; color: var(--text-muted); margin-top: 2px; overflow-wrap: anywhere; }
.act-sum b:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-main); font-weight: 600; }
.act-via:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 8px; border: 1px solid var(--border-color); color: var(--text-muted); margin-left: 4px; }
.act-caret:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); }
.act-detail:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 2px 12px 12px 272px; font-size: 12.5px; }
.act-text:where(:not([data-ui="v2"], [data-ui="v2"] *)) { white-space: pre-wrap; background: var(--dropdown-selected-bg); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
.act-changes:where(:not([data-ui="v2"], [data-ui="v2"] *)) { max-width: 900px; margin-bottom: 8px; }
.act-changes td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { overflow-wrap: anywhere; vertical-align: top; }
.act-before:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: #b91c1c; text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, 0.4); }
.act-after:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: #047857; font-weight: 600; }
.act-snap:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 6px 0; max-width: 900px; }
.act-snap summary:where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: pointer; color: var(--primary-blue); font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.act-snap td:first-child:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); width: 200px; }
.act-snap td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { overflow-wrap: anywhere; vertical-align: top; }
.act-meta:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 6px; }
.act-more:where(:not([data-ui="v2"], [data-ui="v2"] *)) { text-align: center; padding: 14px; }
@media (max-width: 900px) {
  .act-kpis:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .act-entry-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: 46px 1fr 18px; }
  .act-entry-row .act-badge:where(:not([data-ui="v2"], [data-ui="v2"] *)), .act-entry-row .act-action:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }
  .act-detail:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding-left: 12px; }
}
