*,:after,:before{box-sizing:border-box}*{margin:0}body,html{height:100%}body{background:var(--surface);color:var(--text);font-family:var(--font-sans);font-size:var(--text-base);line-height:var(--leading-normal);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button,input,select,textarea{font:inherit;color:inherit}button{background:none;border:none;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}img,svg{display:block;max-width:100%}table{border-collapse:collapse;border-spacing:0}:focus{outline:none}:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:1px;border-radius:var(--radius-sm)}::selection{background:var(--accent-200);color:var(--grey-900)}*{scrollbar-width:thin;scrollbar-color:var(--grey-300) transparent}:root[data-theme=dark] *{scrollbar-color:var(--grey-700) transparent}.crm-h1{font-size:var(--text-xl);letter-spacing:-.01em}.crm-h1,.crm-h2{font-weight:var(--weight-semibold);line-height:var(--leading-tight)}.crm-h2{font-size:var(--text-lg)}.crm-h3{font-size:var(--text-md);font-weight:var(--weight-semibold)}.crm-muted{color:var(--text-muted)}.crm-link{color:var(--text-accent);font-weight:var(--weight-medium);text-decoration:underline;text-underline-offset:2px}.crm-link:hover{text-decoration-thickness:2px}.crm-subtle{color:var(--text-subtle)}.crm-mono{font-family:var(--font-mono);font-size:var(--text-sm)}.crm-numeric{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-truncate{text-overflow:ellipsis}.crm-sr-only,.crm-truncate{overflow:hidden;white-space:nowrap}.crm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);border:0}.crm-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-3);height:var(--density-control);padding:0 var(--space-6);border:1px solid transparent;border-radius:var(--radius-md);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap;transition:background-color var(--duration-fast) var(--ease),border-color var(--duration-fast) var(--ease)}.crm-button:disabled{opacity:.5;cursor:not-allowed}.crm-button[data-size=lg]{height:var(--control-height-lg);padding:0 var(--space-6);font-size:var(--text-md)}.crm-button[data-size=sm]{height:30px;padding:0 var(--space-5);font-size:var(--text-sm)}.crm-button[data-variant=primary]{background:var(--button-primary-bg);color:var(--button-primary-text)}.crm-button[data-variant=primary]:hover:not(:disabled){background:var(--button-primary-bg-hover)}.crm-button[data-variant=secondary]{background:var(--surface-raised);border-color:var(--line);color:var(--text);box-shadow:var(--shadow-sm)}.crm-button[data-variant=secondary]:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.crm-button[data-variant=ghost]{background:transparent;color:var(--text-muted)}.crm-button[data-variant=ghost]:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.crm-button[data-variant=danger]{background:var(--danger-600);color:#fff}.crm-button[data-variant=danger]:hover:not(:disabled){background:var(--danger-700)}.crm-icon-button{display:inline-flex;align-items:center;justify-content:center;width:var(--control-height);height:var(--control-height);border-radius:var(--radius-md);color:var(--text-muted);transition:background-color var(--duration-fast) var(--ease)}.crm-icon-button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.crm-input,.crm-textarea{width:100%;height:var(--density-control);padding:0 var(--space-5);background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-md);font-size:var(--text-base);color:var(--text);transition:border-color var(--duration-fast) var(--ease),box-shadow var(--duration-fast) var(--ease)}.crm-textarea{height:auto;min-height:60px;padding:var(--space-3) var(--space-4);line-height:var(--leading-normal);resize:vertical}.crm-input::placeholder,.crm-textarea::placeholder{color:var(--text-subtle)}.crm-input:hover:not(:disabled),.crm-textarea:hover:not(:disabled){border-color:var(--line-strong)}.crm-input:focus-visible,.crm-textarea:focus-visible{border-color:var(--accent-500);outline:none;box-shadow:0 0 0 3px var(--accent-tint-strong)}.crm-input:disabled,.crm-textarea:disabled{background:var(--surface-sunken);color:var(--text-muted);cursor:not-allowed}.crm-input[aria-invalid=true]{border-color:var(--danger-500)}.crm-field{display:flex;flex-direction:column;gap:var(--space-2)}.crm-label{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text-muted)}.crm-field-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-4)}.crm-field-action{display:flex;flex-direction:column;gap:var(--space-2)}.crm-field-action:before{content:"\00a0";font-size:var(--text-sm);font-weight:var(--weight-medium);visibility:hidden}.crm-error{color:var(--danger-text)}.crm-error,.crm-hint{font-size:var(--text-sm)}.crm-hint{color:var(--text-muted)}.crm-select-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:var(--space-3);width:100%;height:var(--density-control);padding:0 var(--space-5);background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-md);font-size:var(--text-base);color:var(--text);text-align:left;white-space:nowrap;overflow:hidden}.crm-select-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-select-trigger:hover:not(:disabled){border-color:var(--line-strong)}.crm-select-trigger[data-placeholder]{color:var(--text-subtle)}.crm-menu{min-width:160px;max-height:320px;overflow-y:auto;padding:var(--space-3);background:var(--surface-overlay);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);z-index:var(--z-dropdown)}.crm-menu-item{display:flex;align-items:center;gap:var(--space-3);height:34px;padding:0 var(--space-4);border-radius:var(--radius-sm);font-size:var(--text-base);color:var(--text);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.crm-menu-item:hover,.crm-menu-item[data-highlighted]{background:var(--surface-hover);outline:none}.crm-menu-item[data-state=checked]{color:var(--text-accent);font-weight:var(--weight-medium)}.crm-menu-item[data-disabled]{color:var(--text-subtle);pointer-events:none}.crm-menu-separator{height:1px;margin:var(--space-2) calc(var(--space-2) * -1);background:var(--line)}.crm-menu-label{padding:var(--space-3) var(--space-4) var(--space-2);font-size:var(--text-2xs);font-weight:var(--weight-semibold);text-transform:uppercase;letter-spacing:.04em;color:var(--text-subtle)}.crm-checkbox{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;background:var(--surface-raised);border:1.5px solid var(--line-strong);border-radius:4px;color:#fff;transition:background-color var(--duration-fast) var(--ease),border-color var(--duration-fast) var(--ease)}.crm-checkbox[data-state=checked],.crm-checkbox[data-state=indeterminate]{background:var(--accent-500);border-color:var(--accent-500)}.crm-badge{display:inline-flex;align-items:center;gap:var(--space-2);height:24px;padding:0 var(--space-4);border-radius:var(--radius-sm);font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap;background:var(--surface-sunken);color:var(--text-muted);border:1px solid var(--line)}.crm-badge[data-tone=accent]{background:var(--accent-50);color:var(--accent-text);border-color:transparent}.crm-badge[data-tone=danger]{background:var(--danger-50);color:var(--danger-text);border-color:transparent}.crm-badge[data-tone=warn]{background:var(--warn-50);color:var(--warn-text);border-color:transparent}.crm-badge[data-tone=ok]{background:var(--ok-50);color:var(--ok-text);border-color:transparent}.crm-avatar{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;border-radius:var(--radius-full);background:var(--grey-100);color:var(--text-muted);font-size:var(--text-2xs);font-weight:var(--weight-semibold);text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}:root[data-theme=dark] .crm-avatar{background:rgb(255 255 255/.08);color:var(--text-muted)}.crm-dialog-overlay{position:fixed;inset:0;background:rgb(10 12 15/.5);z-index:var(--z-overlay)}.crm-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(90vw,460px);max-height:85vh;overflow-y:auto;padding:var(--space-7);background:var(--surface-overlay);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);z-index:var(--z-dialog)}.crm-dialog[data-width=wide]{width:min(94vw,720px)}.crm-dialog-title{font-size:var(--text-lg);font-weight:var(--weight-semibold);margin-bottom:var(--space-2)}.crm-dialog-description{font-size:var(--text-base);color:var(--text-muted);margin-bottom:var(--space-6)}.crm-dialog-footer{display:flex;justify-content:flex-end;gap:var(--space-4);margin-top:var(--space-7)}.crm-tooltip{padding:var(--space-2) var(--space-4);background:var(--grey-800);color:var(--grey-25);border-radius:var(--radius-sm);font-size:var(--text-sm);box-shadow:var(--shadow-md);z-index:var(--z-dropdown);max-width:260px}:root[data-theme=dark] .crm-tooltip{background:var(--grey-700)}.crm-toast-viewport{position:fixed;bottom:var(--space-6);right:var(--space-6);flex-direction:column;width:340px;max-width:100vw;margin:0;padding:0;list-style:none;z-index:var(--z-toast)}.crm-toast,.crm-toast-viewport{display:flex;gap:var(--space-4)}.crm-toast{align-items:flex-start;padding:var(--space-5);background:var(--surface-overlay);border:1px solid var(--line);border-left:3px solid var(--text-muted);border-radius:var(--radius-md);box-shadow:var(--shadow-md)}.crm-toast[data-tone=danger]{border-left-color:var(--danger-500)}.crm-toast[data-tone=ok]{border-left-color:var(--ok-500)}.crm-toast-title{font-size:var(--text-base);font-weight:var(--weight-medium)}.crm-toast-body{font-size:var(--text-sm);color:var(--text-muted);margin-top:var(--space-1)}.crm-skeleton{background:linear-gradient(90deg,var(--surface-sunken) 25%,var(--surface-active) 37%,var(--surface-sunken) 63%);background-size:400% 100%;border-radius:var(--radius-sm);animation:crm-shimmer 1.4s ease infinite}@keyframes crm-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@keyframes crm-overlay-in{0%{opacity:0;transform:translateY(-2px) scale(.98)}to{opacity:1;transform:none}}.crm-button:active:not(:disabled),.crm-choice:active,.crm-icon-button:active:not(:disabled),.crm-portal-button:active:not(:disabled){transform:scale(.97)}.crm-button,.crm-choice,.crm-icon-button,.crm-portal-button{transition:transform var(--duration-fast) var(--ease)}.crm-h1,.crm-metric-value,.crm-page-title,.crm-portal-money-value,.crm-wizard-question{letter-spacing:var(--tracking-tight)}@keyframes crm-fade-in{0%{opacity:0}to{opacity:1}}.crm-dialog[data-state=open],.crm-menu[data-state=open],.crm-search-panel,.crm-tooltip[data-state=delayed-open],.crm-tooltip[data-state=instant-open]{animation:crm-overlay-in var(--duration-normal) var(--ease)}.crm-dialog-overlay[data-state=open]{animation:crm-fade-in var(--duration-normal) var(--ease)}.crm-menu-item:active,.crm-nav-item:active{background:var(--surface-active);transition:none}.crm-stack{display:flex;flex-direction:column;gap:var(--space-5)}.crm-row{display:flex;align-items:center;gap:var(--space-4)}.crm-spacer{flex:1 1}.crm-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);padding:var(--space-12) var(--space-6);text-align:center;color:var(--text-muted)}.crm-empty-title{font-size:var(--text-md);font-weight:var(--weight-medium);color:var(--text)}.crm-settings{display:flex;flex:1 1;min-height:0}.crm-resize-handle{flex:none;width:9px;margin-inline:-4px;cursor:col-resize;position:relative;z-index:2;background:transparent;touch-action:none}.crm-resize-handle:after{content:"";position:absolute;inset-block:0;left:4px;width:1px;background:transparent;transition:background var(--duration-fast) var(--ease)}.crm-resize-handle:hover:after,.crm-resize-handle[data-dragging]:after{background:var(--accent-500)}.crm-resize-handle:focus-visible{outline:none}.crm-resize-handle:focus-visible:after{background:var(--focus-ring);width:2px}.crm-shell[data-resizing=true],.crm-shell[data-resizing=true] *{cursor:col-resize!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.crm-settings-nav{width:var(--settings-nav-width,208px);flex-shrink:0;border-right:1px solid var(--line);background:var(--surface-sunken);padding:var(--space-5) var(--space-3) var(--space-6);overflow-y:auto}.crm-settings-section+.crm-settings-section{margin-top:var(--space-4)}.crm-settings-group{display:flex;align-items:center;gap:var(--space-2);padding:0 var(--space-3) var(--space-2);font-size:var(--text-2xs);font-weight:var(--weight-semibold);text-transform:uppercase;letter-spacing:.06em;color:var(--text-subtle)}.crm-settings-group-icon{display:inline-flex;flex:none;color:var(--text-subtle)}.crm-settings-link{display:block;padding:0 var(--space-3);height:26px;line-height:26px;border-radius:var(--radius-md);font-size:var(--text-base);color:var(--text-muted);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-settings-link:hover{background:var(--surface-hover);color:var(--text)}.crm-settings-link[data-active=true]{background:var(--accent-tint);color:var(--text-accent);font-weight:var(--weight-medium)}.crm-settings-body{flex:1 1;min-width:0;min-height:0;display:flex;flex-direction:column}.crm-settings-page{flex:1 1;min-height:0;overflow-y:auto;padding:var(--space-6);max-width:1600px}.crm-setting-row{display:flex;align-items:center;gap:var(--space-4);min-height:var(--density-row);padding:var(--space-2) var(--space-5);border-bottom:1px solid var(--line)}.crm-setting-row:last-child{border-bottom:none}.crm-setting-row[data-muted=true]{opacity:.6}.crm-setting-main{flex:1 1;min-width:0}.crm-setting-name{font-size:var(--text-base)}.crm-consequence,.crm-setting-sub{font-size:var(--text-sm);color:var(--text-muted)}.crm-consequence{line-height:1.5}.crm-consequence[data-tone=danger]{color:var(--danger-text)}.crm-consequence[data-tone=warn]{color:var(--warn-text)}.crm-savebar{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-5);border-top:1px solid var(--line);background:var(--surface-sunken);border-radius:0 0 var(--radius-md) var(--radius-md)}.crm-savebar-note{flex:1 1 320px;min-width:0;font-size:var(--text-sm);color:var(--text-muted)}.crm-savebar .crm-input{flex:0 1 240px}.crm-card-body .crm-field{max-width:420px}.crm-card-body .crm-field:has(textarea){max-width:none}.crm-effect{font-size:var(--text-sm);color:var(--ok-text);line-height:1.5}.crm-copyable{font-family:var(--font-mono);font-size:var(--text-sm);background:var(--surface-sunken);border:1px solid var(--line);border-radius:var(--radius-sm);padding:var(--space-1) var(--space-2);word-break:break-all}.crm-order-buttons{display:flex;gap:1px}.crm-order-buttons .crm-icon-button{height:20px;width:18px;font-size:var(--text-sm)}.crm-setup-shell{height:100vh;display:flex;flex-direction:column;background:var(--surface-sunken)}.crm-setup-bar{flex:none;display:flex;align-items:center;gap:var(--space-4);height:var(--header-height);padding:0 var(--space-6);border-bottom:1px solid var(--line);background:var(--surface)}.crm-setup-body{flex:1 1;min-height:0;display:flex;flex-direction:column}.crm-wizard{flex:1 1;min-height:0;overflow-y:auto;display:flex;justify-content:center;background:var(--surface-sunken)}.crm-wizard-inner{width:100%;max-width:680px;padding:var(--space-10) var(--space-6) var(--space-10);display:flex;flex-direction:column;gap:var(--density-gap)}.crm-wizard-progress{display:flex;gap:var(--space-2)}.crm-wizard-tick{flex:1 1;height:4px;border-radius:var(--radius-full);background:var(--line);transition:background-color var(--duration-normal) var(--ease)}.crm-wizard-tick[data-state=done]{background:var(--accent-500)}.crm-wizard-tick[data-state=current]{background:var(--accent-500);opacity:.55}.crm-wizard-step{font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:.08em;text-transform:uppercase;color:var(--text-accent)}.crm-wizard-question{margin:0;font-size:var(--text-2xl);line-height:1.25;letter-spacing:-.01em;font-weight:var(--weight-semibold)}.crm-wizard-why{margin:0;font-size:var(--text-md);color:var(--text-muted);line-height:1.6}.crm-wizard-card{border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:var(--space-7);flex-direction:column}.crm-choice,.crm-wizard-card{background:var(--surface-raised);display:flex;gap:var(--space-4)}.crm-choice{align-items:flex-start;padding:var(--space-4) var(--space-5);border:1px solid var(--line-strong);border-radius:var(--radius-lg);cursor:pointer;text-align:left;width:100%;transition:border-color var(--duration-fast) var(--ease),background-color var(--duration-fast) var(--ease)}.crm-choice:hover{background:var(--surface-hover);border-color:var(--accent-400)}.crm-choice[data-selected=true]{border-color:var(--accent-500);background:var(--accent-tint);box-shadow:0 0 0 1px var(--accent-500)}.crm-choice-name{font-size:var(--text-md);font-weight:var(--weight-medium)}.crm-choice-why{font-size:var(--text-sm);color:var(--text-muted);line-height:1.5}.crm-wizard-actions{display:flex;align-items:center;gap:var(--space-3)}.crm-check{display:flex;gap:var(--space-4);align-items:flex-start;padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--line)}[data-density=airy] .crm-check{padding:var(--space-4) var(--density-pad)}.crm-check:last-child{border-bottom:none}.crm-check-mark{width:18px;height:18px;flex-shrink:0;border-radius:50%;border:1.5px solid var(--line-strong,var(--line));display:flex;align-items:center;justify-content:center;font-size:11px;margin-top:1px}.crm-check-mark[data-state=done]{background:var(--ok-700);border-color:var(--ok-700);color:white}.crm-check-mark[data-state=blocking]{border-color:var(--danger-600);border-width:2px}.crm-check-mark[data-state=waiting]{border-style:dashed;border-color:var(--text-subtle)}.crm-check-title{font-size:var(--text-md);font-weight:var(--weight-medium)}.crm-check-detail{font-size:var(--text-sm);color:var(--text-muted);line-height:1.55;margin-top:var(--space-1)}.crm-webhook{border:1px solid var(--accent-500);border-radius:var(--radius-md);padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-2);background:var(--surface-raised)}.crm-webhook-portal{font-size:var(--text-md);font-weight:var(--weight-medium)}.crm-webhook-instruction{font-size:var(--text-sm);color:var(--text-muted);line-height:1.5}.crm-webhook-row{display:flex;gap:var(--space-2);align-items:stretch}.crm-webhook-row .crm-copyable{flex:1 1;min-width:0}.crm-callout{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border:none;border-left:3px solid var(--warn-500);background:var(--warn-tint);border-radius:var(--radius-lg);font-size:var(--text-sm);line-height:var(--leading-normal);max-width:var(--measure)}.crm-callout[data-tone=info]{border-left-color:var(--accent-500);background:var(--accent-tint)}.crm-callout[data-tone=danger]{border-left-color:var(--danger-600);background:var(--danger-tint)}.crm-callout strong{font-weight:var(--weight-semibold)}.crm-callout:not(:has(>div,>button,>section,>.crm-button)){display:block}.crm-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));grid-gap:0;gap:0;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);overflow:hidden;flex:none}[data-density=airy] .crm-metric-grid{gap:0}.crm-metric-grid[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-metric-grid[data-columns="6"]{grid-template-columns:repeat(6,minmax(0,1fr))}@media (max-width:1180px){.crm-metric-grid[data-columns="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:1080px){.crm-metric-grid[data-columns="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:680px){.crm-metric-grid[data-columns="3"],.crm-metric-grid[data-columns="6"]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.crm-metric-grid[data-columns="3"]{grid-template-columns:minmax(0,1fr)}}.crm-metric{padding:var(--space-6) var(--space-7);background:var(--surface-raised);box-shadow:1px 0 0 var(--line),0 1px 0 var(--line)}.crm-metric-label{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text-muted)}.crm-metric-figure{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--space-2) var(--space-3)}[data-density=airy] .crm-metric{padding:var(--space-6) var(--space-7)}.crm-metric-hint{font-size:var(--text-xs);color:var(--text-subtle);margin-top:var(--space-2)}.crm-metric-value{font-size:26px;font-weight:var(--weight-bold);line-height:1.15;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;margin-top:var(--space-4)}.crm-metric-value[data-tone=danger]{color:var(--danger-text)}.crm-metric-value[data-tone=warn]{color:var(--warn-text)}.crm-metric-value[data-tone=ok]{color:var(--ok-text)}.crm-report-scroll{overflow:auto;max-height:max(320px,calc(100vh - 360px))}.crm-report-table{width:100%;border-collapse:collapse;font-size:var(--text-sm)}.crm-report-table td,.crm-report-table th{padding:var(--space-2) var(--space-4);text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.crm-report-table th{font-weight:var(--weight-semibold);font-size:var(--text-xs);letter-spacing:.03em;text-transform:uppercase;color:var(--text-muted);position:-webkit-sticky;position:sticky;top:0;z-index:1;background:var(--surface-raised);box-shadow:inset 0 -1px 0 var(--line);border-bottom:none}.crm-report-table tbody tr:hover{background:var(--surface-hover)}.crm-report-table tbody tr:last-child td{border-bottom:none}.crm-report-table td[data-numeric=true],.crm-report-table th[data-numeric=true]{text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-grid-legend{display:flex;flex-wrap:wrap;gap:var(--space-4);padding:var(--space-3) 0;font-size:var(--text-sm);color:var(--text-muted)}.crm-grid-legend-item{display:inline-flex;align-items:center;gap:var(--space-2)}.crm-grid-swatch{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:var(--radius-sm);border:1px solid;font-size:var(--text-xs);font-weight:var(--weight-medium)}.crm-grid-floor{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-2) 0;border-bottom:1px solid var(--line)}.crm-grid-floor-label{flex:0 0 84px;font-size:var(--text-xs);color:var(--text-muted);padding-top:var(--space-2)}.crm-grid-tiles{flex-wrap:wrap;min-width:0}.crm-grid-tile,.crm-grid-tiles{display:flex;gap:var(--space-1)}.crm-grid-tile{align-items:center;justify-content:space-between;min-width:64px;padding:var(--space-2);border:1px solid;border-radius:var(--radius-sm);font-size:var(--text-xs);font-family:inherit;cursor:pointer}.crm-grid-tile:hover{filter:brightness(.97)}.crm-grid-swatch:focus-visible,.crm-grid-tile:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:1px}.crm-grid-swatch[data-status=available],.crm-grid-tile[data-status=available]{background:var(--surface-raised);border-color:var(--line-strong);color:var(--text)}.crm-grid-swatch[data-status=held],.crm-grid-tile[data-status=held]{background:var(--warn-50);border-color:var(--warn-500);color:var(--warn-text)}.crm-grid-swatch[data-status=blocked],.crm-grid-tile[data-status=blocked]{background:var(--accent-50);border-color:var(--accent-500);color:var(--accent-text)}.crm-grid-swatch[data-status=booked],.crm-grid-tile[data-status=booked]{background:var(--ok-50);border-color:var(--ok-500);color:var(--ok-text)}.crm-grid-swatch[data-status=registered],.crm-grid-tile[data-status=registered]{background:var(--surface-sunken);border-color:var(--line);color:var(--text-subtle)}.crm-card{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);flex:none;overflow:hidden}.crm-card-head{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;padding:var(--density-pad) var(--density-pad) var(--space-4)}.crm-card-head+.crm-card-body{padding-top:0}.crm-card-title{font-size:var(--text-md);font-weight:var(--weight-semibold);margin:0}.crm-card-note{font-size:var(--text-sm);color:var(--text-muted)}.crm-card-actions{margin-left:auto;display:flex;align-items:center;gap:var(--space-2)}.crm-card-body{padding:var(--density-pad);display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));align-items:start;grid-gap:var(--space-4);gap:var(--space-4)}.crm-card-body>.crm-field:has(textarea),.crm-card-body>:not(.crm-field){grid-column:1/-1}.crm-card-body[data-flush=true]{padding:0}.crm-card-body>.crm-badge{align-self:flex-start}[data-density=airy] .crm-setting-row{padding:var(--space-3) var(--density-pad)}.crm-figure-col{width:128px;flex:none;text-align:right}.crm-figure-col[data-narrow=true]{width:64px}[data-measure=true] .crm-setting-main{max-width:560px}.crm-list-title{flex:none;display:flex;align-items:baseline;gap:var(--space-5);padding:var(--space-7) var(--space-8) 0}.crm-list-count{font-size:var(--text-sm);color:var(--text-subtle)}.crm-toolbar{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-4);padding:var(--space-6) var(--space-8) var(--space-5)}.crm-toolbar-search{position:relative;width:280px}.crm-toolbar-search .crm-input{padding-left:36px}.crm-toolbar-search-icon{position:absolute;left:var(--space-5);top:50%;transform:translateY(-50%);color:var(--text-subtle);pointer-events:none}.crm-facets{flex:none;display:flex;gap:var(--space-3);padding:0 var(--space-8) var(--space-6);overflow-x:auto}.crm-facet{display:inline-flex;align-items:center;gap:var(--space-4);height:32px;padding:0 var(--space-5);border:1px solid var(--line);border-radius:var(--radius-full);background:var(--surface-raised);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text-muted);white-space:nowrap}.crm-facet:hover{border-color:var(--line-strong);color:var(--text)}.crm-facet[data-active=true]{background:var(--accent-tint-strong);border-color:transparent;color:var(--text-accent)}.crm-facet-count{min-width:22px;padding:0 var(--space-3);border-radius:var(--radius-full);background:var(--surface-active);color:var(--text-muted);font-size:var(--text-xs);text-align:center}.crm-facet[data-active=true] .crm-facet-count{background:var(--surface-raised);color:var(--text-accent)}.crm-list-body{gap:var(--space-6);padding:0 var(--space-8) var(--space-8)}.crm-list-body,.crm-table-card{flex:1 1;min-height:0;display:flex}.crm-table-card{position:relative;min-width:0;flex-direction:column;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);overflow:hidden}.crm-views{width:176px;flex:none;overflow-y:auto}.crm-views-head{padding:0 var(--space-2) var(--space-3) var(--space-4)}.crm-view-row{display:flex;align-items:center;border-radius:var(--radius-md);margin-bottom:2px}.crm-view-row:hover{background:var(--surface-hover)}.crm-view-row[data-active=true]{background:var(--accent-tint)}.crm-view-name{display:block;padding:var(--space-4) var(--space-4);text-align:left;font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text-muted)}.crm-view-row[data-active=true] .crm-view-name{color:var(--text-accent);font-weight:var(--weight-semibold)}.crm-view-row[data-broken=true] .crm-view-name{color:var(--text-subtle);text-decoration:line-through}.crm-view-remove{opacity:0;flex:none}.crm-view-row:focus-within .crm-view-remove,.crm-view-row:hover .crm-view-remove{opacity:1}.crm-lt{flex:1 1;overflow:auto;position:relative}.crm-lt-head{position:-webkit-sticky;position:sticky;top:0;z-index:1;display:flex;align-items:center;height:44px;background:var(--surface-sunken);border-bottom:1px solid var(--line);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text-muted)}.crm-lt-head>[role=columnheader]{align-self:stretch;display:flex;align-items:center;border-left:1px solid var(--line)}.crm-lt-head>[role=columnheader][style*=right]{justify-content:flex-end}.crm-lt-select{flex:none;display:flex;justify-content:center}.crm-lt-row{position:absolute;top:0;left:0;width:100%;display:flex;align-items:center;font-size:var(--text-base);border-bottom:1px solid var(--line);cursor:default}.crm-lt-row:hover{background:var(--surface-hover)}.crm-lt-row[data-cursor=true]{background:var(--surface-active);box-shadow:inset 3px 0 0 var(--line-strong)}.crm-lt-row[data-selected=true]{background:var(--surface-selected);box-shadow:inset 3px 0 0 var(--accent-500)}.crm-lt-name{width:100%;text-align:left;font-weight:var(--weight-medium)}.crm-lt-name:hover{color:var(--text-accent);text-decoration:underline}.crm-bulk-float{position:absolute;left:50%;bottom:var(--space-6);z-index:2;transform:translateX(-50%);max-width:calc(100% - var(--space-8));padding:var(--space-4) var(--space-4) var(--space-4) var(--space-5);background:var(--surface-overlay);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);overflow-x:auto}.crm-setting-row>.crm-input,.crm-setting-row>.crm-select-trigger,.crm-setting-row>.crm-textarea{flex:none;width:280px;max-width:45%}[data-measure=true] .crm-setting-row>.crm-mono,[data-measure=true] .crm-setting-row>.crm-numeric{min-width:7ch;text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;flex:none}.crm-setting-row[data-total=true]{border-top:1px solid var(--line-strong);border-bottom:none;margin-top:var(--space-2)}.crm-figure-head{min-height:0;padding-bottom:var(--space-2);font-size:var(--text-xs);color:var(--text-subtle);border-bottom:1px solid var(--line)}.crm-screen{flex:1 1;min-height:0;display:flex;flex-direction:column;background:var(--surface)}.crm-screen-head{flex:none;display:flex;align-items:flex-start;gap:var(--space-4);padding:var(--space-7) var(--space-8);border-bottom:1px solid var(--line)}.crm-screen:not([data-density=airy]) .crm-screen-head{align-items:center;height:var(--header-height);padding:0 var(--space-8)}.crm-screen:not([data-density=airy]) .crm-screen-head>.crm-h2{flex:none;white-space:nowrap}.crm-screen-body{flex:1 1;min-height:0;overflow-y:auto;padding:var(--space-8);display:flex;flex-direction:column;gap:var(--density-gap)}.crm-rera-figure{width:160px;flex:none;text-align:right}.crm-rera-untraced{width:116px;flex:none;text-align:center;font-size:var(--text-xs)}.crm-transcript{max-height:460px;overflow-y:auto;gap:var(--space-3);padding-right:var(--space-3)}[data-density=airy]{background:var(--surface)}.crm-page-header{display:flex;align-items:flex-start;gap:var(--space-4);flex-wrap:wrap}.crm-page-title{font-size:var(--text-xl);font-weight:var(--weight-bold);letter-spacing:var(--tracking-tight);margin:0;line-height:1.2}.crm-page-sub{font-size:var(--text-sm);color:var(--text-muted);margin-top:var(--space-1);max-width:var(--measure)}.crm-page-actions{margin-left:auto;display:flex;align-items:center;gap:var(--space-2)}.crm-chip{display:inline-flex;align-items:center;justify-content:center;width:var(--control-height);height:var(--control-height);flex:none;border-radius:var(--radius-lg);background:var(--surface-hover);color:var(--text-muted)}.crm-chip[data-tone=ok]{background:var(--ok-tint);color:var(--ok-text)}.crm-chip[data-tone=danger]{background:var(--danger-tint);color:var(--danger-text)}.crm-chip[data-tone=warn]{background:var(--warn-tint);color:var(--warn-text)}.crm-delta,:root[data-theme=dark] .crm-chip:not([data-tone]),:root[data-theme=system] .crm-chip:not([data-tone]){color:var(--text-muted)}.crm-delta{display:inline-flex;align-items:center;gap:3px;font-size:var(--text-xs);font-weight:var(--weight-medium);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;padding:2px var(--space-2);border-radius:var(--radius-full);background:var(--surface-hover)}.crm-delta[data-tone=ok]{color:var(--ok-text);background:var(--ok-tint)}.crm-delta[data-tone=danger]{color:var(--danger-text);background:var(--danger-tint)}.crm-shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);grid-column-gap:var(--shell-gap);column-gap:var(--shell-gap);height:100vh;overflow:hidden;position:relative;padding:var(--shell-gap) var(--shell-gap) var(--shell-gap) 0;background:var(--canvas)}.crm-main{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);overflow:hidden}.crm-shell>.crm-resize-handle{position:absolute;inset-block:var(--shell-gap);left:calc(var(--sidebar-width) + var(--shell-gap) / 2);margin-inline:0;transform:translateX(-4px)}.crm-shell[data-nav=collapsed]{--sidebar-width:76px}.crm-sidebar{display:flex;flex-direction:column;gap:var(--space-4);min-height:0;overflow:hidden}.crm-sidebar-foot,.crm-sidebar-head,.crm-sidebar>.crm-search{margin-left:var(--shell-gap)}.crm-sidebar-head{flex:none}.crm-brand-card{display:flex;align-items:center;gap:var(--space-5);padding:var(--space-4) var(--space-4) var(--space-4) var(--space-4);background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.crm-brand-mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--radius-md);background:var(--button-primary-bg);color:var(--button-primary-text);font-size:var(--text-sm);font-weight:var(--weight-bold);letter-spacing:.02em}.crm-brand-text{display:flex;flex-direction:column;min-width:0;flex:1 1;line-height:1.3}.crm-sidebar-brand{font-weight:var(--weight-semibold);font-size:var(--text-base);min-width:0}.crm-brand-plan{font-size:var(--text-xs);color:var(--text-subtle)}.crm-sidebar-nav{flex:1 1;min-height:0;overflow-y:auto;padding:0 0 var(--space-4) var(--shell-gap)}.crm-sidebar-foot{flex:none;display:flex;flex-direction:column;gap:var(--space-2)}.crm-nav-group+.crm-nav-group{margin-top:var(--space-4);padding-top:var(--space-4);border-top:1px solid var(--line-strong)}.crm-nav-group-label{font-size:var(--text-2xs);font-weight:var(--weight-medium);letter-spacing:.06em;text-transform:uppercase;color:var(--text-subtle);padding:0 var(--space-5);margin-bottom:var(--space-2)}.crm-shell[data-nav=collapsed] .crm-nav-group-label{display:none}.crm-nav-item{position:relative;display:flex;align-items:center;gap:var(--space-5);height:36px;padding:0 var(--space-5);margin-bottom:1px;border:1px solid transparent;border-radius:var(--radius-md);color:var(--text-muted);font-size:var(--text-base);font-weight:var(--weight-medium);white-space:nowrap}.crm-nav-item:hover{background:var(--surface-active);color:var(--text)}.crm-nav-item[data-active=true]{background:var(--surface-raised);border-color:var(--line);box-shadow:var(--shadow-sm);color:var(--text);font-weight:var(--weight-semibold)}.crm-nav-item[data-active=true]:before{content:"";position:absolute;left:calc(-1 * var(--shell-gap) - 1px);top:50%;width:3px;height:22px;transform:translateY(-50%);border-radius:0 3px 3px 0;background:var(--accent-500)}.crm-nav-icon{flex:none;display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center}.crm-nav-item[data-active=true] .crm-nav-icon{color:var(--text)}.crm-shell[data-nav=collapsed] .crm-brand-mark,.crm-shell[data-nav=collapsed] .crm-brand-text,.crm-shell[data-nav=collapsed] .crm-nav-label,.crm-shell[data-nav=collapsed] .crm-user-name{display:none}.crm-shell[data-nav=collapsed] .crm-brand-card,.crm-shell[data-nav=collapsed] .crm-nav-item,.crm-shell[data-nav=collapsed] .crm-user-button{justify-content:center;padding-inline:0}.crm-collapse{transform:rotate(90deg);margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);color:var(--text-subtle)}.crm-collapse:hover{background:var(--surface-active);color:var(--text)}.crm-shell[data-nav=collapsed] .crm-collapse{margin-left:0;transform:rotate(-90deg)}.crm-user-button{display:flex;align-items:center;gap:var(--space-4);width:100%;padding:var(--space-4);background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.crm-user-button:hover{border-color:var(--line-strong)}.crm-user-name{flex:1 1;min-width:0;text-align:left;font-size:var(--text-sm);font-weight:var(--weight-medium)}.crm-split{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-gap:var(--density-gap);gap:var(--density-gap);align-items:start}@media (max-width:1180px){.crm-split{grid-template-columns:minmax(0,1fr)}}.crm-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:var(--density-gap);gap:var(--density-gap);align-items:start}.crm-board-col{display:flex;flex-direction:column;gap:var(--density-gap);min-width:0}@media (max-width:1180px){.crm-board{grid-template-columns:minmax(0,1fr)}}@media (min-width:1181px){.crm-board .crm-figure-col{width:96px}}.crm-funnel,.crm-funnel-step{display:flex;flex-direction:column}.crm-funnel-step+.crm-funnel-step{margin-top:var(--space-3)}.crm-funnel-label{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text);margin-bottom:var(--space-3)}.crm-funnel-row{display:flex;align-items:center;gap:var(--space-3)}.crm-funnel-track,.crm-progress-track{flex:1 1;min-width:0;background:var(--surface-hover);border-radius:var(--radius-md);height:34px}.crm-funnel-bar,.crm-progress-fill{height:100%;border-radius:var(--radius-md);background:var(--accent-500);min-width:3px}.crm-funnel-count{flex:none;min-width:4ch;text-align:right;font-size:var(--text-md);font-weight:var(--weight-semibold);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--text)}.crm-funnel-drop{display:flex;align-items:baseline;gap:var(--space-3);padding-bottom:var(--space-2);font-size:var(--text-xs)}.crm-funnel-rate{color:var(--text-muted)}.crm-funnel-lost,.crm-funnel-rate{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-funnel-lost{color:var(--text-subtle)}.crm-funnel-lost:before{content:"·";margin-right:var(--space-3)}.crm-lead-head{display:flex;align-items:flex-start;gap:var(--space-6)}.crm-lead-phone{display:inline-flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2);padding:0;border:0;background:none;font:inherit;font-size:var(--text-lg);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--text);cursor:pointer;border-radius:var(--radius-sm)}.crm-lead-phone:hover{color:var(--text-accent)}.crm-lead-phone:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:2px}.crm-lead-facts{display:flex;gap:var(--space-6);flex:none}.crm-lead-fact{white-space:nowrap}.crm-lead-aside{display:flex;flex-direction:column;gap:var(--space-4)}.crm-lead-aside>*{flex:none;margin:0;padding:var(--space-5);background:var(--surface-raised);border-radius:var(--radius-xl);box-shadow:var(--shadow-card)}.crm-lead-aside .crm-setting-row{flex-wrap:wrap;padding-left:0;padding-right:0}.crm-lead-aside .crm-setting-main{flex:1 1 10rem}.crm-lead-aside .crm-empty{align-items:flex-start;padding:var(--space-3) 0;text-align:left}.crm-lead-fact-label{font-size:var(--text-2xs);text-transform:uppercase;letter-spacing:var(--tracking-wide);color:var(--text-subtle)}.crm-lead-fact-value{font-size:var(--text-lg);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;letter-spacing:var(--tracking-tight);margin-top:2px}.crm-lead-fact-value[data-tone=danger]{color:var(--danger-text)}.crm-timeline{display:flex;flex-direction:column}.crm-timeline-entry{display:grid;grid-template-columns:56px 16px minmax(0,1fr);grid-gap:var(--space-3);gap:var(--space-3);padding-bottom:var(--space-5);position:relative}.crm-timeline-when{font-size:var(--text-xs);color:var(--text-subtle);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-align:right;padding-top:2px}.crm-timeline-mark{position:relative;display:flex;justify-content:center;padding-top:5px}.crm-timeline-mark:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--line-strong);flex:none;z-index:1}.crm-timeline-mark:after{content:"";position:absolute;top:14px;bottom:calc(-1 * var(--space-5));width:1px;background:var(--line)}.crm-timeline-entry:last-child .crm-timeline-mark:after{display:none}.crm-timeline-entry[data-kind=milestone] .crm-timeline-mark:before{background:var(--accent-500);width:9px;height:9px}.crm-timeline-title{font-size:var(--text-sm);color:var(--text-muted)}.crm-timeline-entry[data-kind=milestone] .crm-timeline-title{color:var(--text);font-weight:var(--weight-medium)}.crm-timeline-entry[data-kind=change] .crm-timeline-body{display:flex;align-items:baseline;gap:var(--space-2);flex-wrap:wrap}.crm-timeline-move{font-size:var(--text-base)}.crm-timeline-said{border-left:2px solid var(--line-strong);padding-left:var(--space-4);font-size:var(--text-base);line-height:var(--leading-normal);white-space:pre-wrap;word-break:break-word}.crm-timeline-call,.crm-timeline-said{margin-top:var(--space-2);max-width:60ch}.crm-timeline-call{border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--space-3) var(--space-4)}.crm-timeline-call-head{display:flex;align-items:baseline;gap:var(--space-3);font-size:var(--text-sm)}.crm-timeline-call-summary{margin-top:var(--space-2);font-size:var(--text-base);line-height:var(--leading-normal)}.crm-timeline-filters{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-4);font-size:var(--text-sm)}.crm-timeline-more{margin:var(--space-4) 0 var(--space-6)}.crm-inbox{display:flex;flex:1 1;min-height:0}.crm-inbox-list{width:320px;flex:none;background:var(--surface-raised);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.crm-inbox-filters{display:flex;gap:2px;padding:var(--space-3);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}.crm-inbox-filters::-webkit-scrollbar{display:none}.crm-filter-pill{flex:none;height:var(--control-height);padding:0 var(--space-3);border:0;border-radius:var(--radius-full);background:transparent;color:var(--text-muted);font:inherit;font-size:var(--text-sm);cursor:pointer;white-space:nowrap;transition:background var(--duration-fast) var(--ease)}.crm-filter-pill:hover{background:var(--surface-hover);color:var(--text)}.crm-filter-pill[aria-pressed=true]{background:var(--accent-tint-strong);color:var(--text-accent);font-weight:var(--weight-medium)}.crm-filter-pill:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:-2px}.crm-inbox-row{display:block;width:100%;text-align:left;padding:var(--space-3) var(--space-4);border:0;border-bottom:1px solid var(--line);border-left:2px solid transparent;background:transparent;font:inherit;color:inherit;cursor:pointer}.crm-inbox-row:hover{background:var(--surface-hover)}.crm-inbox-row[aria-current=true]{border-left-color:var(--accent-500);background:var(--surface-selected)}.crm-inbox-row:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:-2px}.crm-inbox-row-top{display:flex;align-items:baseline;gap:var(--space-2)}.crm-inbox-name{flex:1 1;min-width:0;font-weight:var(--weight-medium)}.crm-inbox-row[data-unread=true] .crm-inbox-name{font-weight:var(--weight-semibold);color:var(--text)}.crm-inbox-time{flex:none;font-size:var(--text-xs);color:var(--text-subtle);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-inbox-preview{font-size:var(--text-sm);color:var(--text-muted);margin-top:2px}.crm-inbox-row[data-unread=true] .crm-inbox-preview{color:var(--text)}.crm-inbox-meta{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2);min-height:16px;font-size:var(--text-xs);color:var(--text-subtle)}.crm-inbox-dot{width:6px;height:6px;border-radius:50%;background:var(--accent-500);flex:none}.crm-inbox-closing{color:var(--warn-text);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-thread{flex:1 1;display:flex;flex-direction:column;min-height:0}.crm-thread-head{display:flex;align-items:center;gap:var(--space-3);min-height:var(--header-height);padding:var(--space-2) var(--space-5);border-bottom:1px solid var(--line);flex:none}.crm-thread-body{flex:1 1;overflow-y:auto;padding:var(--space-5);display:flex;flex-direction:column;min-height:0}.crm-thread-stack{margin-top:auto;display:flex;flex-direction:column;gap:var(--space-4)}.crm-thread-truncated{text-align:center;padding-bottom:var(--space-2)}.crm-thread-day,.crm-thread-truncated{font-size:var(--text-xs);color:var(--text-subtle)}.crm-thread-day{display:flex;align-items:center;gap:var(--space-4)}.crm-thread-day:after,.crm-thread-day:before{content:"";flex:1 1;height:1px;background:var(--line)}.crm-group{display:flex;flex-direction:column;gap:2px;max-width:68%}.crm-group[data-direction=outbound]{align-self:flex-end;align-items:flex-end}.crm-group-who{font-size:var(--text-xs);color:var(--text-muted);margin-bottom:2px}.crm-bubble{padding:var(--space-3) var(--space-4);border:1px solid transparent;border-radius:var(--radius-lg);background:var(--surface-raised);box-shadow:var(--shadow-sm);white-space:pre-wrap;word-break:break-word;line-height:var(--leading-normal)}.crm-group[data-direction=outbound] .crm-bubble{background:var(--surface-active);box-shadow:none}.crm-group[data-direction=inbound] .crm-bubble:last-child{border-bottom-left-radius:var(--radius-sm)}.crm-group[data-direction=outbound] .crm-bubble:last-child{border-bottom-right-radius:var(--radius-sm)}.crm-bubble[data-failed=true]{border-color:var(--danger-500)}.crm-bubble-reason{font-size:var(--text-sm);color:var(--danger-text);margin-top:2px}.crm-bubble-meta{display:flex;align-items:center;gap:var(--space-2);margin-top:2px;font-size:var(--text-xs);color:var(--text-subtle);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-composer-bar{border-top:1px solid var(--line);padding:var(--space-3) var(--space-5) var(--space-4);flex:none}.crm-composer-state{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-3);font-size:var(--text-xs)}.crm-composer-state,.crm-composer-state[data-mode=template]{color:var(--text-muted)}.crm-composer-state[data-mode=blocked]{color:var(--danger-text)}.crm-composer-row{display:flex;gap:var(--space-3);align-items:flex-end}.crm-composer{flex:1 1;min-width:0;resize:none;overflow-y:auto;min-height:var(--control-height);max-height:160px;padding:var(--space-3) var(--space-4);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:var(--radius-lg);font:inherit;font-size:var(--text-base);line-height:var(--leading-normal);color:var(--text);transition:border-color var(--duration-fast) var(--ease)}.crm-composer::placeholder{color:var(--text-subtle)}.crm-composer:hover:not(:disabled){border-color:var(--grey-400)}.crm-composer:focus-visible{border-color:var(--accent-500);outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:-1px}.crm-thread-rail{width:240px;flex:none;border-left:1px solid var(--line);padding:var(--space-4);overflow-y:auto}.crm-portal{min-height:100vh;background:var(--surface-sunken);font-size:var(--text-md)}.crm-portal-inner{width:100%;max-width:560px;margin:0 auto;padding:var(--space-5) var(--space-4) var(--space-10);display:flex;flex-direction:column;gap:var(--space-5)}@media (min-width:640px){.crm-portal-inner{padding:var(--space-8) var(--space-6) var(--space-12);gap:var(--space-6)}}.crm-portal-head{display:flex;flex-direction:column;gap:var(--space-2)}.crm-portal-title{font-size:var(--text-xl);font-weight:var(--weight-semibold);line-height:1.2;letter-spacing:-.01em;margin:0}.crm-portal-sub{color:var(--text-muted);font-size:var(--text-md)}.crm-portal-card{background:var(--surface-raised);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-4)}.crm-portal-card-title{font-size:var(--text-lg);font-weight:var(--weight-semibold);margin:0}.crm-portal-note{font-size:var(--text-sm);color:var(--text-muted)}.crm-portal-money{display:flex;flex-direction:column;gap:2px}.crm-portal-money-label{font-size:var(--text-sm);color:var(--text-muted)}.crm-portal-money-value{font-size:var(--text-xl);font-weight:var(--weight-semibold);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1.25}.crm-portal-money-value[data-scale=big]{font-size:var(--text-2xl)}.crm-portal-figures{display:grid;grid-template-columns:1fr;grid-gap:var(--space-4);gap:var(--space-4)}@media (min-width:420px){.crm-portal-figures{grid-template-columns:1fr 1fr}}.crm-portal-line{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-4) 0;border-top:1px solid var(--line)}.crm-portal-line:first-of-type{border-top:none;padding-top:0}.crm-portal-line-top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3)}.crm-portal-line-name{font-weight:var(--weight-medium);min-width:0}.crm-portal-line-amount{font-size:var(--text-lg);font-weight:var(--weight-semibold);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.crm-portal-breakdown{font-size:var(--text-sm);color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-portal-ref{display:inline-block;font-family:var(--font-mono);font-size:var(--text-sm);padding:1px var(--space-2);border-radius:var(--radius-sm);background:var(--surface-sunken);border:1px solid var(--line)}.crm-portal-flag{display:inline-flex;align-items:center;gap:var(--space-2);align-self:flex-start;font-size:var(--text-sm);font-weight:var(--weight-medium);padding:2px var(--space-3);border-radius:var(--radius-full);background:var(--surface-hover);color:var(--text-muted)}.crm-portal-flag[data-tone=overdue]{background:var(--danger-tint);color:var(--danger-text)}.crm-portal-flag[data-tone=paid]{background:var(--ok-tint);color:var(--ok-text)}.crm-portal-link{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:44px;padding:var(--space-3) 0;border-top:1px solid var(--line);color:var(--text)}.crm-portal-link:first-of-type{border-top:none}.crm-portal-link:hover{color:var(--text-accent)}.crm-portal-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:var(--space-3);gap:var(--space-3)}.crm-portal-photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-lg);background:var(--surface-sunken);display:block}.crm-portal-signin{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:var(--space-5) var(--space-4);background:var(--surface-sunken)}.crm-portal-signin .crm-portal-card{width:100%;max-width:400px}.crm-portal-input{width:100%;height:48px;padding:0 var(--space-4);font-size:16px;background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:var(--radius-md);color:var(--text)}.crm-portal-input:focus-visible{border-color:var(--accent-500);outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:-1px}.crm-portal-button{width:100%;min-height:48px;padding:0 var(--space-5);border:none;border-radius:var(--radius-md);background:var(--button-primary-bg);color:var(--button-primary-text);font-size:16px;font-weight:var(--weight-medium);cursor:pointer}.crm-portal-button:not([data-variant]):hover:not(:disabled){background:var(--button-primary-bg-hover)}.crm-portal-button:disabled{opacity:.5;cursor:not-allowed}.crm-portal-button[data-variant=quiet]{background:transparent;color:var(--text-muted);min-height:44px;font-weight:var(--weight-normal)}.crm-portal-button[data-variant=quiet]:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.crm-portal-label{display:block;font-size:var(--text-sm);font-weight:var(--weight-medium);margin-bottom:var(--space-2)}.crm-portal-error{padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--danger-tint);color:var(--danger-text);font-size:var(--text-sm)}.crm-update-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:var(--density-gap);gap:var(--density-gap)}.crm-update-card{overflow:hidden;display:flex;flex-direction:column}.crm-update-photos{position:relative;display:grid;grid-gap:2px;gap:2px;height:168px;background:var(--surface-sunken)}.crm-update-photos[data-count="2"]{grid-template-columns:1fr 1fr}.crm-update-photos[data-count="3"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.crm-update-photos[data-count="3"] .crm-update-photo:first-child{grid-row:span 2}.crm-update-photo{width:100%;height:100%;object-fit:cover;display:block}.crm-update-more{position:absolute;right:var(--space-3);bottom:var(--space-3);padding:2px var(--space-3);border-radius:var(--radius-full);background:rgb(0 0 0/.62);color:#fff;font-size:var(--text-xs);font-weight:var(--weight-medium)}.crm-update-nophoto{height:168px;display:flex;align-items:center;justify-content:center;background:var(--surface-sunken);color:var(--text-subtle);font-size:var(--text-sm)}.crm-update-text{font-size:var(--text-sm);color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.crm-update-body{padding:var(--space-4);flex-direction:column}.crm-cal,.crm-update-body{display:flex;gap:var(--space-2);flex:1 1}.crm-cal{min-height:0;flex-direction:column}.crm-cal-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-gap:1px;gap:1px;font-size:var(--text-xs);font-weight:var(--weight-semibold);color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.crm-cal-weekday{padding:var(--space-1) var(--space-2)}.crm-cal-month{flex:1 1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));grid-gap:1px;gap:1px;background:var(--line);border-radius:var(--radius-xl);box-shadow:var(--shadow-card)}.crm-cal-day,.crm-cal-month{min-height:0;overflow:hidden}.crm-cal-day{display:flex;flex-direction:column;gap:2px;padding:var(--space-1);background:var(--surface-raised);text-align:left;font-family:inherit;border:none;cursor:pointer}.crm-cal-day[data-outside=true]{background:var(--surface-sunken)}.crm-cal-day[data-today=true] .crm-cal-daynum{background:var(--accent-700);color:var(--grey-0);border-radius:var(--radius-sm)}.crm-cal-day[data-over=true],.crm-cal-slot[data-over=true]{background:var(--accent-50);outline:var(--focus-ring-width) solid var(--accent-500);outline-offset:-2px}.crm-cal-daynum{flex:none;font-weight:var(--weight-medium)}.crm-cal-daynum,.crm-cal-more{align-self:flex-start;padding:0 var(--space-1);font-size:var(--text-xs);color:var(--text-muted)}.crm-cal-more{border:none;border-radius:var(--radius-sm);background:none;font-family:inherit;text-align:left;cursor:pointer}.crm-cal-more:hover{background:var(--surface-sunken);color:var(--text)}.crm-cal-week{flex:1 1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:56px repeat(7,minmax(0,1fr));grid-gap:1px;gap:1px;background:var(--line);border-radius:var(--radius-xl);box-shadow:var(--shadow-card)}.crm-cal-hour{background:var(--surface-sunken);padding:var(--space-1) var(--space-2);font-size:var(--text-xs);color:var(--text-muted);text-align:right;white-space:nowrap}.crm-cal-slot{flex-direction:column;gap:2px;min-height:34px;padding:2px;background:var(--surface-raised);border:none;cursor:pointer}.crm-cal-chip,.crm-cal-slot{display:flex;text-align:left;font-family:inherit}.crm-cal-chip{align-items:center;gap:var(--space-1);min-height:20px;padding:0 var(--space-1);border-radius:var(--radius-sm);border-left:3px solid var(--accent-500);background:var(--surface-sunken);color:var(--text);font-size:var(--text-xs);line-height:1.3;cursor:-webkit-grab;cursor:grab;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.crm-cal-chip:hover{filter:brightness(.97)}.crm-cal-chip:active{cursor:-webkit-grabbing;cursor:grabbing}.crm-cal-chip[data-kind=follow_up]{border-left-color:var(--line-strong)}.crm-cal-chip[data-overdue=true]{border-left-color:var(--danger-600);background:var(--danger-50)}.crm-cal-legend{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-1) var(--space-2);font-size:var(--text-xs);color:var(--text-muted)}.crm-cal-legend-item{display:inline-flex;align-items:center;gap:var(--space-2)}.crm-cal-legend-key{display:inline-block;width:16px;height:12px;border-radius:0 3px 3px 0;border-left:3px solid var(--line-strong);background:var(--surface-sunken);box-shadow:inset 0 0 0 1px var(--line)}.crm-cal-legend-item[data-key=site_visit] .crm-cal-legend-key{border-left-color:var(--accent-500)}.crm-cal-legend-item[data-key=overdue] .crm-cal-legend-key{border-left-color:var(--danger-600);background:var(--danger-50)}.crm-cal-chip-time{flex:none;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--text-muted)}.crm-cal-chip-name{overflow:hidden;text-overflow:ellipsis}.crm-search{position:relative;flex:none}.crm-search-icon{position:absolute;left:var(--space-5);top:50%;transform:translateY(-50%);color:var(--text-subtle);pointer-events:none}.crm-search-input{width:100%;height:40px;padding:0 var(--space-5) 0 36px;font-family:inherit;font-size:var(--text-sm);color:var(--text);background:var(--surface-active);border:1px solid var(--line);border-radius:var(--radius-md)}.crm-search-input:focus-visible{outline:none;background:var(--surface-raised);border-color:var(--accent-500);box-shadow:0 0 0 3px var(--accent-tint-strong)}.crm-search[data-collapsed=true] .crm-search-input{padding-right:0}.crm-search-hint{position:absolute;top:50%;transform:translateY(-50%);right:var(--space-4);padding:1px 6px;font-family:inherit;font-size:var(--text-xs);color:var(--text-muted);background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-sm);pointer-events:none}.crm-search-scrim{position:fixed;inset:0;z-index:40}.crm-search-panel{position:fixed;z-index:41;width:360px;max-height:60vh;overflow-y:auto;padding:var(--space-2);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:var(--radius-md);box-shadow:var(--shadow-md)}.crm-search-note{padding:var(--space-3);font-size:var(--text-sm);color:var(--text-muted)}.crm-search-group+.crm-search-group{margin-top:var(--space-2);padding-top:var(--space-2);border-top:1px solid var(--line)}.crm-search-group-label{padding:0 var(--space-2) 2px;font-size:var(--text-xs);font-weight:var(--weight-semibold);color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.crm-search-hit{display:flex;align-items:baseline;gap:var(--space-2);width:100%;min-height:28px;padding:0 var(--space-2);font-family:inherit;font-size:var(--text-sm);text-align:left;color:var(--text);background:none;border:none;border-radius:var(--radius-sm);cursor:pointer}.crm-search-hit[data-active=true]{background:var(--accent-50)}.crm-search-hit-title{flex:none;max-width:55%;font-weight:var(--weight-medium)}.crm-search-hit-sub{color:var(--text-muted);font-size:var(--text-xs)}