/* Revenue assurance v4: live revenue product theme. Loaded last, overrides the v3 shell and views.
   Source: frontend origin/revenue-service, services/revenue (revenue-space-nav.tsx, revenue-app-sidebar.tsx,
   revenue-nav-item.tsx, revenue-deals.tsx StatCard, revenue-contract-table.tsx, design-v2 button/badge),
   checked against revenue-v2.stag.finrep.ai. Kit tokens only. Spacing on the 4 px scale (L-07). */

/* ---------- Frame: grey ground, 48 px rail, white panel rounded on the left only ---------- */
body { background: var(--secondary); }
.rx { --rail: 48px; }
.rx-main { margin: 0; border: 0; box-shadow: none; border-radius: var(--radius-2xl) 0 0 var(--radius-2xl); }
.page-inner.rx-page { max-width: none; margin: 0; padding: 32px 32px 112px; }

/* ---------- Rail: icon rail, hover overlays at 240 px ---------- */
.rx-rail { width: var(--rail, 48px); padding: 8px; background: var(--secondary); }
.rx-rail:is(:hover, :focus-within, .menu-open):not(.pinned) { background: var(--background); border-right: 1px solid var(--sidebar-border); border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0; box-shadow: 1px 0 12px 0 #0000000d; }
.rx-rail.pinned { background: var(--secondary); }
.rx-brand { height: 32px; gap: 10px; margin-bottom: 16px; }
.rx-brand-mark { width: 32px; height: 32px; border-radius: var(--radius-lg); }
.rx-brand-mark svg { width: 22px; height: 22px; }
.rx-brand-text strong { line-height: 16px; }
.rx-nav { gap: 0; }
.rx-group { gap: 2px; }
.rx-group-label { height: auto; padding: 16px 8px 6px; font-size: 12px; letter-spacing: .05em; }
.rx-group:first-child .rx-group-label { padding-top: 0; }
.rx-item { height: 32px; width: 32px; padding: 0 8px; gap: 10px; border-radius: var(--radius-lg); font-size: 14px; line-height: 16px; }
.rx-item svg.lucide { color: var(--sidebar-foreground); }
.rx-item:hover { background: var(--muted); }
.rx-item[aria-current="page"] { background: var(--card); color: var(--sidebar-accent-foreground); font-weight: 500; box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .1), inset 0 0 0 .4px var(--border); }
.rx-item[aria-current="page"] svg.lucide { color: var(--sidebar-accent-foreground); }
.rx-count { height: 18px; line-height: 18px; border-radius: var(--radius-md); background: var(--secondary); color: var(--secondary-foreground); }
.rx-rail-foot { padding-top: 8px; gap: 2px; }
.rx-profile { width: 32px; height: 40px; padding: 4px 0; border-radius: var(--radius-lg); }
.rx-rail:is(:hover, :focus-within, .pinned, .menu-open) .rx-profile { background: transparent; padding: 4px; }
.rx-rail:is(:hover, :focus-within, .pinned, .menu-open) .rx-profile:hover { background: var(--muted); }
.avatar { border-radius: var(--radius-lg); }
.rx-profile-text strong { line-height: 16px; }
.rx-pop { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- Page header: Lora 24 px, weight 500 ---------- */
.rx-head { margin-bottom: 24px; }
.rx-title { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.6px; color: var(--accent-foreground); }
.rx-head-actions { padding-top: 0; }
.rx-chip { height: 22px; padding: 0 8px; border: 0; border-radius: var(--radius-full); background: var(--secondary); color: var(--secondary-foreground); }
.rx-chip svg.lucide { width: 12px; height: 12px; }
.rx-period { height: 32px; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }

/* ---------- KPI cards (StatCard): white to grey gradient, 14 px radius, 30 px value ---------- */
.rx-kpis { gap: 16px; }
.rx-kpi { padding: 16px; gap: 0; min-height: 134px; border-radius: var(--radius-xl); background: linear-gradient(180deg, var(--card) 0%, color-mix(in srgb, var(--card) 0%, transparent) 95.19%, var(--card) 100%), var(--secondary); }
.rx-kpi-head { font-size: 14px; line-height: 20px; align-items: flex-start; }
.rx-kpi-head svg.lucide { width: 32px; height: 32px; padding: 8px; border-radius: var(--radius-md); background: var(--secondary); box-shadow: none; }
.rx-kpi-value { margin-top: 0; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: normal; color: var(--card-foreground); }
.rx-kpi.success .rx-kpi-value, .rx-kpi.warning .rx-kpi-value, .rx-kpi.destructive .rx-kpi-value, .rx-kpi.brand .rx-kpi-value { color: var(--card-foreground); }
.rx-kpi-delta { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 400; }

/* ---------- Controls: 36 px default, 32 px small (brand book control sizing) ---------- */
.btn { height: 36px; padding: 0 10px; gap: 6px; border-radius: var(--radius-lg); }
.btn.sm { height: 32px; padding: 0 10px; border-radius: var(--radius-md); font-size: 13px; }
.btn.icon { width: 36px; } .btn.sm.icon { width: 32px; }
.btn.primary { box-shadow: var(--shadow-sm); }
.btn.primary:hover { opacity: 1; background: color-mix(in srgb, var(--primary) 90%, transparent); }
.btn.outline { box-shadow: var(--shadow-sm); }
.btn.outline:hover { background: var(--muted); }
.btn.ghost { color: var(--muted-foreground); }
.btn.ghost:hover { background: var(--secondary); color: var(--foreground); }
.input, .select { height: 36px; border-color: var(--border); border-radius: var(--radius-lg); }
.input.sm, .select.sm { height: 32px; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--ring); box-shadow: var(--shadow-input-group-focus); }
.rx-search { flex: 0 1 315px; }

/* ---------- Tables: white card, 48 px header in foreground, 16 px cells ---------- */
.table-wrap, .rx-table { border-radius: var(--radius-xl); background: var(--card); }
.rx-table .table th, .table th { height: 48px; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--foreground); background: var(--card); }
.table thead tr { background: color-mix(in srgb, var(--muted) 30%, transparent); }
.rx-table .table td, .table td { height: 56px; padding: 16px; font-size: 14px; }
.rx-table.dense .table td { height: 48px; padding: 12px 16px; }
.table tr.click:hover td { background: color-mix(in srgb, var(--muted) 50%, transparent); }

/* ---------- Status pills: dot and word, live tones ---------- */
.badge { height: auto; padding: 2px 8px; gap: 6px; }
.badge.success { background: #ecfdf5; color: #047857; }
.badge.warning { background: #fffbeb; color: #b45309; }
.badge.destructive { background: #fef2f2; color: #dc2626; }
.badge.info { background: #eff6ff; color: #2563eb; }
.badge.brand { background: var(--background-brand); color: var(--primary); }

/* ---------- Tabs: muted container, white active (design-v2 default) ---------- */
.tabs { background: var(--accent); box-shadow: var(--shadow-tabs-inset); border-radius: var(--radius-lg); }

/* ---------- Side drawers and dialogs: flush right sheet, 512 px ---------- */
.rx-side { top: 0; right: 0; bottom: 0; border-radius: 0; border-width: 0 0 0 1px; box-shadow: var(--shadow-lg); }
.rx-side-head { padding: 16px 20px; }
.rx-side-title { font-size: 18px; line-height: 28px; }
.rx-fina { top: 0; right: 0; bottom: 0; border-radius: 0; border-width: 0 0 0 1px; box-shadow: var(--shadow-lg); }
.rx-dialog { border-radius: var(--radius-lg); }

/* ---------- Ask Fina pill sits centred on the narrower rail ---------- */
.rx-ask-pill { left: calc(50% + 24px); }

@media (max-width: 1100px) {
  .page-inner.rx-page { padding: 24px 24px 112px; }
  .rx-title { font-size: 24px; line-height: 32px; }
}

/* ---------- Org logo (Movate mark, cropped from movate.com header logo; inlined so the one-file build carries it) ---------- */
.rx-brand-mark.rx-org-logo { background: var(--card) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAtrElEQVR42u19eXhdZbX+u9a3z5ShaUNHKCBUKLSIiEwyJSiiIIMCJ05crwOCl0mRi/4YJA2DgigKogwOgANKT0FB7i1XhCaCotAWBVoooxRKZ0ia+Zz9rfX749t7n32SkzRt07To+Z5nPzmZ99lrfetd613DB1RWZVVWZVVWZVVWZVVWZVVWZVVWZVVWZVVWZVXWv/6iyiPY8qXazGht5UHfaGwUohapPKF/aeGDt+T723p5FRFuifCzhihn9YXT3ol0/38BndPQb0UShjkxcR0w5Wai7y7VuVlDTTlbgYB/ReG/+Ikvobr3OiQKGSgAYkAJIAX8TB75ad+gXW74dvjzFQX4VxB+sKP1n58+DTUdv0BnHrDwQVR8pAqAxKC+mtC553m0yzU/2B6VgCvi3AyHL5tTXfuTHUE9N6G7ILAsIPYA8gJY9UDwoEbR0SOQl67S1TdOBXKizc1cUYC388otJSIS9Dx+NaoLNSiQgMo9RwKIGAUW1Pq1sC+eRgTFnNaKArytcb8pZ/Nrrj8CyTf/Ax39FlTOkQ6gQOGUIJ9X+F0nqyoBbVJRgLej8AFCDgAMTPf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GBN+RTxVlOApqacq3o54rInIckXkeDBODR8/K8wIPjJN3nGSZdpM3i4XP+/xWppdD2Zh+85D9KzBuy5QpEod1JSu8DI9wFd+RNVNemigbKjt7bicjCQR7LuPqTjuYERKIGqxbgqtumdrqfZx7+KxoZNPrjxX20RSLVhgUeHT+pEVfIBeBkFyjiYGsg236dQsyfuen7voWBg6ypAWCk0frccfKNu3kmZm5VBcCBIMaPXPG8OPPs6nZs1Y0X6bPfr7EZVgLBz7TwkDYkoF5lVLRbPFkvmGSvbq8aOCRxYKZTNGvpAy9+AmodRmzRQFIbk/cPDnK34SCUZXv3lNGWfLixZQ2M6ynV7XmGhyOcPXwDtfZ0pAahKmU2kQgYQ24lD3/GK8yGW6NhaAACYNUvdeQOzzoJNrEaKElAtDEH4ClTzGJ9MolB7P536i1/p3Kyhls3P9f/LwQCRomGBoSnUhcnVd6K6jmGlMMioiuY5UUNI8e/o4CmrNDvXlIPQrT8QsaVFkMsyHdnyPKY1fhrpulWoSSYCIlug6kPhQ1ThgTEulRSZ8L+Ydeon9TJhZHNSEfugfIvVZmVkD7wWyd5FSI9PiS8qor6I+mpV2KtJYQLW4dBpFymUMCurY0oEDXme78LbZ2DtXy7HhhXHgu0EdzqwGxmEROYFUPo6Onnuzc4YbJ3DEv8VVnQK2QPP1OPB1T/F2r4TgaTb0JIHqhLz0TD1q/TpfZ8b7uxhGtubdidoAoD+7dtT0bv6PehYvjN8KqB+4pNo/OEyIuoNmyYqwh+ZEgCA/vLZd+GV9YfAV8KU+iforNlPRjkEbEfRkzY3szYPDT2bNV3j31wJFIMbThXNI5pbRNvyxpFrYkxaQ8WQcY5WvP3N3VjKxRKwRhkq+1dZlVVZlVVZlVVZlVVZlVVZlVVZlVVZlVVZlVVZ/47r/wP7Q/DDxhnj9wAAAABJRU5ErkJggg==") center / 24px 24px no-repeat; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); }

/* ---------- Dashboard widgets: live chart card (recon-waterfall.tsx): bordered header, 20 px sides ---------- */
.hm-w { position: relative; box-shadow: none; }
.hm-w:hover { box-shadow: var(--shadow-sm); }
.hm-w-head { min-height: 0; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--border); }
.hm-w-title { font-weight: 500; }
.hm-grip { position: absolute; left: 2px; top: 14px; height: 20px; margin: 0; }
.hm-w-body { padding: 16px 20px 20px; }
.hm-hbars { gap: 8px; }
.hm-hbar { grid-template-columns: minmax(120px, 32%) minmax(0, 1fr) 64px; gap: 16px; min-height: 36px; padding: 2px 8px; }
.hm-hbar-label .cell-main { font-size: 14px; line-height: 20px; }
.hm-hbar-val { font-size: 14px; }

/* ---------- Select (design-v2 select.tsx): trigger 36 px, chevron, popover list with check ---------- */
select.rx-native { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.rx-sel { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); color: var(--foreground); font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; box-shadow: var(--shadow-2xs); white-space: nowrap; transition: background var(--motion-quick), border-color var(--motion-quick); }
.rx-sel.sm { height: 32px; }
.rx-sel:hover { background: var(--muted); }
.rx-sel:focus-visible, .rx-sel[aria-expanded="true"] { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent); }
.rx-sel:disabled { opacity: .5; cursor: default; }
.rx-sel-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rx-sel-chev { width: 16px; height: 16px; flex: none; color: var(--muted-foreground); transition: transform var(--motion-quick); }
.rx-sel[aria-expanded="true"] .rx-sel-chev { transform: rotate(180deg); }
.rx-sel-pop { position: fixed; z-index: 120; max-height: 320px; max-width: 360px; overflow: auto; padding: 4px; background: var(--popover); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); animation: rx-fade var(--motion-quick) var(--ease-enter); }
.rx-sel-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--popover-foreground); font-size: 14px; text-align: left; cursor: pointer; }
.rx-sel-item.active { background: var(--accent); }
.rx-sel-item[aria-selected="true"] { font-weight: 500; }
.rx-sel-item svg.lucide { width: 16px; height: 16px; color: var(--primary); }
.rx-sel-item:disabled { opacity: .5; cursor: default; }

/* ---------- Settings > Contract types ---------- */
.md-note { margin: -8px 0 16px; max-width: 80ch; }
.md-group + .md-group { margin-top: 24px; }
.md-group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.md-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.md-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-full); background: var(--secondary); color: var(--secondary-foreground); font-size: 12px; font-weight: 500; white-space: nowrap; }
.md-chip:hover { background: var(--muted-brand); color: var(--primary); }

/* ---------- Ask Fina (revenue-fina-companion.tsx): launcher pill, panel, messages, composer ---------- */
.rx-ask-pill { height: 44px; padding: 0 20px 0 14px; gap: 10px; box-shadow: var(--shadow-lg); font-size: 14px; }
.rx-ask-pill .fina-spark { width: 18px; height: 18px; color: var(--primary); }
.rx-fina { width: min(400px, calc(100vw - 64px)); }
.rx-fina-head { height: 56px; gap: 10px; padding: 0 12px 0 16px; }
.fx-head-ic .fina-spark { width: 16px; height: 16px; }
.rx-fina-body { padding: 20px 16px; gap: 20px; }
.rx-fina-body.fx-empty { justify-content: center; background-image: radial-gradient(circle, color-mix(in srgb, var(--muted-foreground) 20%, transparent) 1px, transparent 1px); background-size: 16px 16px; }

.fx-hello { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.fx-hello-ic .fina-spark { width: 56px; height: 56px; color: color-mix(in srgb, var(--primary) 25%, transparent); }
@media (prefers-reduced-motion: no-preference) { .fx-hello-ic .fina-spark { animation: fx-spin 1.3s var(--ease-move) 1; } }
@keyframes fx-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.fx-greet { margin-top: 8px; font-family: var(--font-serif); font-size: 24px; line-height: 1.4; font-weight: 500; color: var(--foreground); }
.fx-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fx-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--background); color: var(--foreground); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: background var(--motion-quick), border-color var(--motion-quick); }
.fx-pill:hover { background: var(--muted); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.fx-pill svg.lucide { width: 14px; height: 14px; color: var(--primary); }

.fx-user { align-self: flex-end; max-width: 85%; padding: 12px 16px; border-radius: var(--radius-2xl); background: var(--secondary); color: var(--accent-foreground); font-size: 14px; line-height: 20px; }
.fx-ai { display: flex; gap: 8px; align-items: flex-start; padding-left: 4px; }
.fx-bot { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--muted-brand); }
.fx-bot .fina-spark { width: 12px; height: 12px; color: var(--finrep-600); }
.fx-ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fx-md { font-family: var(--font-serif); font-size: 16px; line-height: 24px; color: var(--foreground); }
.fx-md b, .fx-md strong { font-weight: 600; }
.fx-open { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 14px; }
.fx-open svg.lucide { width: 14px; height: 14px; }
.fx-actions { display: flex; gap: 2px; margin-left: -8px; }
.fx-act { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--muted-foreground); cursor: pointer; }
.fx-act:hover { background: var(--accent); }

.fx-think-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted-foreground); }
.fx-think-title.running { background: linear-gradient(45deg, var(--primary) 30%, var(--finrep-400) 50%, var(--primary) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-shine 2s linear infinite; }
@keyframes fx-shine { to { background-position: -200% 0; } }
.fx-steps { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; }
.fx-steps li { position: relative; display: flex; gap: 10px; padding-bottom: 12px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.fx-steps li:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 1px; background: var(--sidebar-border); }
.fx-steps li.todo { opacity: .55; }
.fx-step-ic { flex: none; display: grid; place-items: center; width: 16px; height: 20px; }
.fx-step-ic svg.lucide { width: 14px; height: 14px; color: var(--success); }
.fx-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); }
.fx-steps li.active .fx-dot { width: 8px; height: 8px; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.fx-shimmer { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.fx-shimmer span { height: 12px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--border) 0%, var(--secondary) 50%, var(--border) 100%); background-size: 200% 100%; animation: fx-shine 1.5s linear infinite; }
.fx-shimmer span:first-child { width: 75%; } .fx-shimmer span:last-child { width: 50%; }
.fx-think-done summary { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted-foreground); cursor: pointer; list-style: none; }
.fx-think-done summary::-webkit-details-marker { display: none; }
.fx-think-done summary svg.lucide { width: 16px; height: 16px; transition: transform var(--motion-quick); }
.fx-think-done[open] summary svg.lucide { transform: rotate(180deg); }

.fx-follow { padding: 12px; border-radius: var(--radius-2xl); background: var(--muted); }
.fx-follow-title { padding: 0 8px 8px; font-size: 14px; font-weight: 500; }
.fx-follow-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 10px; border: 0; border-top: 1px solid var(--border); background: transparent; font-size: 14px; line-height: 20px; color: var(--foreground); text-align: left; cursor: pointer; }
.fx-follow-row svg.lucide { width: 16px; height: 16px; color: var(--muted-foreground); opacity: 0; transition: opacity var(--motion-quick); }
.fx-follow-row:hover { background: var(--background); border-radius: var(--radius-md); }
.fx-follow-row:hover svg.lucide { opacity: 1; }

.fx-foot { flex-direction: column; gap: 8px; padding: 8px 12px 12px; border-top: 0; }
.fx-composer { display: flex; flex-direction: column; gap: 16px; padding: 12px; border: 1px solid var(--input); border-radius: var(--radius-2xl); background: var(--background); box-shadow: var(--shadow-lg); transition: border-color var(--motion-quick), box-shadow var(--motion-quick); }
.fx-composer:focus-within, .fx-composer.has-text { border-color: var(--border-brand); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border-brand); }
.fx-composer textarea { min-height: 24px; max-height: 160px; padding: 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 14px; line-height: 20px; color: var(--accent-foreground); }
.fx-composer textarea::placeholder { color: var(--muted-foreground); }
.fx-tools { display: flex; align-items: center; gap: 8px; }
.fx-scope { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-full); background: var(--muted-brand); color: var(--primary); font-size: 13px; font-weight: 500; }
.fx-scope svg.lucide { width: 14px; height: 14px; }
.fx-send { display: grid; place-items: center; width: 0; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); opacity: 0; transform: scale(.75); cursor: pointer; overflow: hidden; transition: width var(--motion-standard), opacity var(--motion-standard), transform var(--motion-standard); }
.fx-composer.has-text .fx-send { width: 36px; opacity: 1; transform: none; }
.fx-send svg.lucide { width: 16px; height: 16px; }
.fx-disclaimer { margin: 0; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* ---------- Card and section headings: Inter (live uses Lora only for the page title) ---------- */
.hm-hero-title { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.2px; }
.hm-board-title { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }

/* ---------- Numerals: tabular figures only where numbers line up (Inter's tnum also widens hyphens) ---------- */
body { font-variant-numeric: normal; }
.num, .t-num, .table td.num, .table th.num, .rx-kpi-value, .hm-hbar-val, .fd-amt, .an-num { font-variant-numeric: tabular-nums; }

/* ---------- Contract workflow: stepper, next action, source card ---------- */
.ct-track-row { margin-bottom: 16px; }
.ct-steps { gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.ct-step { min-height: 48px; padding: 6px 12px 6px 0; gap: 10px; border-radius: var(--radius-lg); }
.ct-step:hover:not(:disabled) { background: transparent; }
.ct-step:hover:not(:disabled) .ct-step-title { color: var(--primary); }
.ct-step.on { background: transparent; box-shadow: none; }
.ct-step.on .ct-step-title { color: var(--primary); }
.ct-step-dot { width: 24px; height: 24px; font-size: 12px; }
.ct-step-dot svg.lucide { width: 12px; height: 12px; }
.ct-step.current .ct-step-dot { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 0 4px var(--muted-brand); }
.ct-step:disabled .ct-step-dot { background: var(--muted); }
.ct-step-title { font-weight: 500; }
.ct-step-sep { flex: 1 1 24px; max-width: 120px; margin: 0 12px 0 0; height: 1px; }
.ct-step.done + .ct-step-sep { background: var(--success); }

.ct-next { gap: 12px; padding: 16px; border-color: color-mix(in srgb, var(--primary) 18%, transparent); background: var(--background-brand); }
.ct-next-ic, .ct-next-ic.info { width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--card); color: var(--primary); box-shadow: var(--shadow-2xs), inset 0 0 0 1px var(--border); }
.ct-next-text > .t-meta:first-child { font-size: 11px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.ct-next-l { font-size: 16px; line-height: 24px; font-weight: 600; }
.ct-next-text > .ct-next-l ~ * { font-size: 13px; line-height: 20px; color: var(--muted-foreground); text-transform: none; letter-spacing: normal; }

.ct-pull-card { gap: 0; padding: 0; overflow: hidden; }
.ct-pull-head { padding: 16px 20px; }
.ct-pull-head .t-title, .ct-pull-head strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.ct-pull-head .tabs { padding: 2px; }
.ct-pull-head .tab { height: 28px; font-size: 13px; }
.ct-pull-card > :not(.ct-pull-head) { padding-left: 20px; padding-right: 20px; }
.ct-pull-card > .ct-pull-acts { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--border); background: var(--muted); }
.ct-pull-acts .btn { height: 32px; padding: 0 10px; border-radius: var(--radius-md); font-size: 13px; }
.ct-pull-card > :empty { display: none; }

/* ---------- Contract actuals: source system cards (connectors page card pattern) ---------- */
.ct-systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ct-sysc { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); }
.ct-sysc > .row:first-child { align-items: flex-start; gap: 12px; padding-right: 96px; }
.ct-sysc > .row:first-child > .badge { position: absolute; top: 16px; right: 16px; }
.ct-sysc > .row:first-child .grow { display: flex; flex-direction: column; min-width: 0; }
.ct-sysc .cell-main { font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sysc > .row:first-child .t-meta { font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sysc .ct-sys.sm { width: 36px; height: 36px; border-radius: var(--radius-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.ct-sysc .ct-sys.sm .ct-logo { width: 20px; height: 20px; }
.ct-sysc > .t-meta { font-size: 12px; line-height: 18px; flex: 1; }
.ct-sysc-acts { margin: 0 -16px -16px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--muted); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.ct-sysc-acts .btn { height: 28px; font-size: 13px; }

/* ---------- Extraction: edited terms ---------- */
.ct-term-was { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.ct-term-was s { text-decoration-color: var(--muted-foreground); }
.ct-term-edit { height: 28px; padding: 0 8px; }
.ct-edit-ai { padding: 10px 12px; border-radius: var(--radius-lg); background: var(--muted); }
.ct-term-ok { display: inline-flex; height: 28px; padding: 0 8px; }

/* ---------- Table pagination (revenue-contract-table footer) ---------- */
.rx-pager { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--card); }
.rx-pager .btn { height: 28px; padding: 0 8px; font-size: 12px; }
.rx-pager .btn svg.lucide { width: 14px; height: 14px; }

/* ---------- Column info icons ---------- */
.rx-hint { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; color: var(--muted-foreground); cursor: help; border-radius: 50%; }
.rx-hint svg { width: 13px; height: 13px; }
.rx-hint:hover, .rx-hint:focus-visible { color: var(--primary); outline: none; }
.rx-hint-tip { position: fixed; z-index: 130; width: 260px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--foreground); color: var(--background); font-size: 12px; line-height: 16px; font-weight: 400; text-align: left; white-space: normal; letter-spacing: normal; text-transform: none; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--motion-quick); }
.rx-hint:hover .rx-hint-tip, .rx-hint:focus-visible .rx-hint-tip { opacity: 1; visibility: visible; }

/* ---------- Source card (Darwinbox pull): calmer header, small actions ---------- */
.ct-pull-card .ct-pull-head { align-items: center; gap: 12px; padding: 14px 16px; }
.ct-pull-card .ct-sys { width: 36px; height: 36px; border-radius: var(--radius-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.ct-pull-card .ct-card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.ct-pull-card .ct-pull-head .grow { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ct-pull-card .ct-pull-head .grow > .t-meta { font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-live { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--radius-full); background: var(--success-foreground); color: #047857; font-size: 11px; font-weight: 500; }
.ct-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.ct-pull-card .ct-pull-head .tabs { flex: none; }
.ct-pull-card > .ct-pull-acts { display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--card); border-top: 1px solid var(--border); }
.ct-pull-acts .btn { height: 30px; padding: 0 10px; font-size: 13px; border-radius: var(--radius-md); }
.ct-pull-acts .btn.outline:not(.primary) { box-shadow: none; border-color: transparent; background: transparent; color: var(--foreground); }
.ct-pull-acts .btn.outline:not(.primary):hover { background: var(--secondary); }
.ct-pull-acts .btn:first-child.outline { border-color: var(--border); box-shadow: var(--shadow-2xs); }

/* ---------- Forecast assumptions ---------- */
.ct-asm { gap: 0; padding: 0; overflow: hidden; }
.ct-asm > .row:first-child { align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.ct-asm .ct-card-title { font-size: 14px; line-height: 20px; font-weight: 600; }
.ct-asm-why { margin-top: 2px; font-size: 12px; line-height: 16px; }
.ct-asm-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 20px; padding: 16px 20px 20px; align-items: start; }
.ct-asm-f { gap: 6px; }
.ct-asm-f label { font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-asm-def { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.ct-asm-num { position: relative; gap: 0; }
.ct-asm-num .input { padding-right: 44px; }
.ct-asm-num .t-meta { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ct-asm-foot { padding: 10px 20px; border-top: 1px solid var(--border); background: var(--muted); }

/* ---------- Analysis: chart-card sections, GL reconciliation, exceptions line ---------- */
.an-card { padding: 0; border-radius: var(--radius-xl); overflow: hidden; }
.an-card > .an-card-head { margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.an-card > :not(.an-card-head) { margin-left: 20px; margin-right: 20px; }
.an-card > :last-child { margin-bottom: 20px; }
.an-card > .an-card-head + * { margin-top: 16px; }
.an-h2 { font-size: 14px; line-height: 20px; font-weight: 600; }
.an-h2.an-sec { font-size: 16px; line-height: 24px; }
.page-inner.rx-page :not(.hm-grid) > section + section, .page-inner.rx-page :not(.hm-grid) > .an-card + section, .page-inner.rx-page :not(.hm-grid) > section + .an-card { margin-top: 24px; }
.hm-grid > .hm-w { margin-top: 0; }

.an-gl-grid { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.an-gl-row { display: grid; grid-template-columns: minmax(200px, 1.2fr) 140px 150px minmax(0, 2fr); gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.an-gl-row:first-child { border-top: 0; }
.an-gl-row.head { padding: 10px 16px; background: color-mix(in srgb, var(--muted) 60%, transparent); font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.an-gl-row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.an-gl-row small { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.an-gl-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.an-gl-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 13px; font-weight: 500; }
.an-gl-ok svg.lucide { width: 14px; height: 14px; }
.an-gl-why { display: flex; flex-wrap: wrap; gap: 6px; }
.an-gl-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--radius-full); background: var(--secondary); color: var(--secondary-foreground); font-size: 12px; font-weight: 500; white-space: nowrap; }
.an-gl-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.an-gl-chip:hover { background: var(--muted-brand); color: var(--primary); }

.an-exline { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-xl); color: var(--foreground); font-weight: 400; transition: background var(--motion-quick); }
.an-exline:hover { background: var(--muted); }
.an-exline > span:last-of-type { color: var(--primary); font-weight: 500; }
.an-exline svg.lucide { width: 16px; height: 16px; color: var(--muted-foreground); }

/* ---------- Contract library: billing model with type tag ---------- */
.ct-bm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ct-bm-tag { flex: none; height: 20px; padding: 0 8px; border-radius: var(--radius-full); background: var(--secondary); color: var(--muted-foreground); font-size: 11px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.ct-next-act { color: var(--primary); }
.ct-src-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 -4px; padding: 2px 4px; border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; color: inherit; cursor: pointer; }
.ct-src-toggle:hover { background: var(--secondary); }
.ct-src-toggle svg.lucide { width: 16px; height: 16px; color: var(--muted-foreground); transition: transform var(--motion-quick); }
.ct-src-sec.shut .ct-src-toggle svg.lucide { transform: rotate(-90deg); }
.ct-src-sec.shut .rx-section-title { margin-bottom: 0; }

/* ---------- Table extras: wrapping headers, CSV export row ---------- */
.table th.wrap-h { white-space: normal; line-height: 16px; }
.rx-csv-row { display: flex; justify-content: flex-end; margin: -8px 0 8px; }
.rx-csv-row .btn { height: 28px; font-size: 12px; color: var(--muted-foreground); }
.rx-csv-row .btn:hover { color: var(--foreground); }

/* ---------- Contract library: column picker ---------- */
.ct-colpick-wrap { position: relative; flex: none; }
.ct-colpick { position: absolute; z-index: 60; right: 0; top: calc(100% + 4px); width: 240px; padding: 4px; background: var(--popover); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.ct-colpick-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; }
.ct-colpick-item:hover { background: var(--accent); }
.ct-colpick-item input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.ct-colpick-item:has(input:disabled) { color: var(--muted-foreground); cursor: default; }
.ct-colpick-foot { display: flex; justify-content: flex-end; padding: 4px 4px 0; margin-top: 4px; border-top: 1px solid var(--border); }
