.crm{max-width:1440px;color:var(--foreground);margin:0 auto;padding:28px 32px 70px;font-size:16px;line-height:1.5}.crm button,.crm input,.crm select,.crm textarea{font:inherit}.crm-header,.crm-brand,.crm-actions,.crm-context,.crm-title,.crm-row,.crm-filters{align-items:center;gap:14px;display:flex}.crm-header,.crm-title{justify-content:space-between}.crm-brand small,.crm-brand strong{display:block}.crm-brand small,.crm-muted{color:var(--muted-foreground);font-size:14px}.crm-logo,.crm-avatar{background:var(--accent);color:var(--primary);border-radius:14px;flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.crm-context{background:var(--muted);border-radius:16px;flex-wrap:wrap;margin:24px 0;padding:16px 20px}.crm-context label{align-items:center;gap:14px;display:flex}.crm select,.crm input,.crm textarea,.crm-dialog input,.crm-dialog select,.crm-dialog textarea{border:1px solid var(--border);background:var(--card);width:100%;min-width:0;color:var(--foreground);border-radius:10px;padding:10px 12px;font-size:16px}.crm-context select{width:auto;max-width:420px}.crm-layout{grid-template-columns:184px minmax(0,1fr);gap:28px;display:grid}.crm-side{flex-direction:column;align-self:start;gap:6px;display:flex;position:sticky;top:90px}.crm-side button{text-align:left;color:var(--foreground);cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:12px;display:flex}.crm-side button.active,.crm-bottom button.active{background:var(--accent);color:var(--primary);font-weight:650}.crm-main{min-width:0}.crm-title{margin:6px 0 22px}.crm h1{letter-spacing:-.6px;font-size:28px;font-weight:750;line-height:1.2}.crm h2{margin:0 0 15px;font-size:19px;font-weight:700}.crm h3{margin:8px 0;font-size:17px;font-weight:650}.crm p{margin:9px 0}.crm-card{background:var(--card);border:1px solid var(--border);overflow-wrap:anywhere;border-radius:16px;min-width:0;margin-bottom:18px;padding:22px}.crm-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px;display:grid}.crm-metric{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:20px}.crm-metric span{color:var(--muted-foreground);font-size:14px}.crm-metric strong{margin-top:12px;font-size:34px;font-weight:700;line-height:1.25;display:block}.crm-columns,.crm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.crm-grid{margin-top:20px}.crm-actions{flex-wrap:wrap;margin:12px 0}.crm-row{border:0;border-bottom:1px solid var(--border);color:inherit;text-align:left;background:0 0;width:100%;min-width:0;padding:16px 0}.crm-row:last-child{border-bottom:0}.crm-row button{flex-shrink:0}.crm-grow{flex:1;min-width:0}.crm-grow strong,.crm-grow small{display:block}.crm-grow small{color:var(--muted-foreground);overflow-wrap:anywhere;margin:3px 0;font-size:14px}.crm-grow>span{font-size:14px}.crm-row-end{text-align:right;flex-shrink:0}.crm-row-end small{margin-top:5px;font-size:14px;display:block}.crm-pill{background:var(--muted);color:var(--foreground);border-radius:7px;padding:4px 9px;font-size:14px;line-height:1.45;display:inline-block}.crm-alert{color:#9f2929;background:#fff5f5;border:1px solid #f0c8c8;border-radius:12px;margin:12px 0;padding:14px 18px}.crm-alert a{margin-top:8px;text-decoration:underline;display:block}.crm-success{color:#196c4c;background:#effaf4;border-radius:10px;padding:12px}.crm-empty{text-align:center;color:var(--muted-foreground);padding:40px 18px}.crm-empty svg{margin:0 auto 12px}.crm-empty h3{color:var(--foreground)}.crm-text-link{color:var(--primary);font-size:15px;text-decoration:underline}.crm-filters{flex-wrap:wrap;align-items:end;margin-bottom:20px}.crm-filters label{min-width:150px;font-size:14px}.crm-filters input,.crm-filters select{margin-top:6px}.crm-client-layout{grid-template-columns:minmax(0,1fr);gap:18px;display:grid}.crm-client-layout.has-detail{grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr)}.crm-list{align-self:start;padding:10px 18px}.crm-lead{cursor:pointer}.crm-lead.selected{background:var(--accent);border-radius:10px;padding-inline:10px}.crm-detail{align-self:start}.crm-finance>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:18px;padding:11px 0;display:flex}.crm-finance dt{color:var(--muted-foreground);font-size:14px}.crm-finance dd{text-align:right;font-weight:650}.crm-funnel{grid-template-columns:150px 1fr 30px;align-items:center;gap:10px;margin:13px 0;font-size:14px;display:grid}.crm-funnel>div{background:var(--muted);border-radius:9px;height:9px;overflow:hidden}.crm-funnel i{background:var(--primary);border-radius:9px;height:100%;display:block}.crm-chat-notice{color:var(--muted-foreground);background:var(--muted);border-radius:10px;padding:12px;font-size:14px}.crm-chat-notice svg{vertical-align:middle;margin-right:6px;display:inline}.crm-chat{overscroll-behavior:contain;flex-direction:column;gap:12px;height:380px;padding:12px 0;display:flex;overflow-y:auto}.crm-message{background:var(--muted);border-radius:13px;align-self:flex-start;max-width:90%;padding:10px 14px}.crm-message.mine{background:var(--accent);align-self:flex-end}.crm-message p{white-space:pre-wrap;overflow-wrap:anywhere}.crm-message small,.crm-message time{color:var(--muted-foreground);font-size:13px}.crm-composer{align-items:end;gap:10px;margin-top:10px;display:flex}.crm-composer textarea{resize:none;flex:1}.crm-composer button{flex-shrink:0;width:48px;height:48px}.crm-dialog{max-height:calc(100dvh - 40px);overflow-y:auto}.crm-form{gap:15px;display:grid}.crm-form>label{gap:6px;font-size:14px;display:grid}.crm-form .crm-check{align-items:flex-start;gap:10px;display:flex}.crm-form .crm-check input{flex-shrink:0;width:18px;height:18px;margin-top:3px}.crm-mini{padding:16px 16px calc(86px + env(safe-area-inset-bottom));max-width:900px;min-height:var(--tg-viewport-stable-height,100dvh)}.crm-mini .crm-layout{display:block}.crm-mini .crm-header{gap:8px}.crm-mini .crm-brand strong{font-size:16px}.crm-mini .crm-logo{display:none}.crm-mini .crm-context{padding:12px}.crm-mini .crm-context label{width:100%;font-size:14px;display:block}.crm-mini .crm-context select{width:100%;max-width:none;margin-top:6px}.crm-bottom{padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--border);z-index:30;grid-template-columns:repeat(5,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:0;right:0}.crm-bottom button{color:var(--muted-foreground);background:0 0;border:0;border-radius:8px;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:8px 0;font-size:14px;display:flex}.crm-more .crm-row{font-size:17px}.crm-mini .crm-client-layout.has-detail{display:block}.crm-mini .crm-client-layout.has-detail>.crm-list{display:none}.crm-mini .crm-chat{height:calc(var(--tg-viewport-height,100dvh) - 410px);min-height:180px}.crm-mini .crm-detail{padding:14px}.crm-mini .crm-columns,.crm-mini .crm-grid{grid-template-columns:1fr}.crm-mini .crm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-directory{max-width:1150px;margin:0 auto;padding:40px 24px}.crm-directory h1{margin-bottom:12px;font-size:32px}.crm-directory .crm-card a{color:var(--primary)}@media (width<=1000px){.crm{padding:22px 20px 70px}.crm-layout{grid-template-columns:1fr}.crm-side{flex-direction:row;gap:4px;padding-bottom:8px;position:static;overflow-x:auto}.crm-side button{white-space:nowrap}.crm-client-layout.has-detail{grid-template-columns:1fr}.crm-client-layout.has-detail>.crm-list{display:none}.crm-columns{grid-template-columns:1fr}}@media (width<=600px){.crm{padding:16px 14px 85px}.crm-header{align-items:flex-start}.crm-header .crm-actions{gap:8px;margin:0}.crm-brand strong{font-size:15px}.crm-brand small{font-size:14px}.crm-logo{display:none}.crm-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crm-metric{padding:15px}.crm-metric strong{font-size:29px}.crm-grid,.crm-columns{grid-template-columns:1fr;gap:0}.crm-card{padding:17px}.crm h1{font-size:25px}.crm-context label{width:100%;font-size:14px;display:block}.crm-context select{width:100%;max-width:100%;margin-top:6px}.crm-row{gap:10px}.crm-row-end{max-width:120px}.crm-avatar{width:36px;height:36px}.crm-actions button{white-space:normal;min-height:42px}.crm-funnel{grid-template-columns:125px 1fr 24px}.crm-mini .crm-header .crm-text-link{display:none}.crm-mini .crm-context{margin:14px 0}.crm-mini .crm-composer{background:var(--card);padding-bottom:env(safe-area-inset-bottom);position:sticky;bottom:0}}.crm-mini.crm-chat-open{height:var(--tg-viewport-height,100dvh);max-width:none;min-height:0;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:var(--background);z-index:40;flex-direction:column;display:flex;position:fixed;inset:0 0 auto;overflow:hidden}.crm-chat-open>.crm-header,.crm-chat-open>.crm-context,.crm-chat-open>.crm-success{display:none}.crm-chat-open>.crm-alert{flex-shrink:0;max-height:70px;margin:0;padding:8px;overflow:auto}.crm-chat-open .crm-layout,.crm-chat-open .crm-main,.crm-chat-open .crm-client-layout,.crm-chat-open .crm-detail{flex-direction:column;flex:1;min-height:0;margin:0;display:flex;overflow:hidden}.crm-chat-open .crm-main>.crm-title,.crm-chat-open .crm-main>.crm-filters,.crm-chat-open .crm-main>.crm-card,.crm-chat-open .crm-main>.crm-alert,.crm-chat-open .crm-client-summary{display:none}.crm-chat-open .crm-detail{background:0 0;border:0;padding:8px}.crm-chat-open .crm-detail>button{flex-shrink:0;align-self:flex-start;min-height:40px}.crm-chat-open .crm-detail>h2{flex-shrink:0;margin:4px 0 8px}.crm-chat-open .crm-chat-notice{flex-shrink:0;max-height:110px;padding:8px;font-size:14px;overflow:auto}.crm-chat-open .crm-chat{flex:1;height:auto;min-height:0;overflow:auto}.crm-chat-open .crm-composer{flex-shrink:0;margin-top:8px;padding:0;position:static}.crm-chat-notice summary{cursor:pointer}.crm-chat-notice summary svg{vertical-align:middle;display:inline}.crm-pipeline{scroll-snap-type:x proximity;align-items:flex-start;gap:16px;max-width:100%;padding:4px 2px 18px;display:flex;overflow-x:auto}.crm-stage{background:var(--muted);scroll-snap-align:start;border-radius:14px;flex:0 0 276px;min-width:0;min-height:240px;padding:14px}.crm-stage>header{border-top:3px solid var(--primary);justify-content:space-between;align-items:center;gap:8px;padding-top:12px;display:flex}.crm-stage h2{margin:0;font-size:16px}.crm-stage-empty{color:var(--muted-foreground);text-align:center;padding:24px 8px;font-size:14px}.crm-pipeline-card{border:1px solid var(--border);background:var(--card);overflow-wrap:anywhere;border-radius:12px;margin-top:12px;padding:16px}.crm-card-title{text-align:left;color:var(--primary);cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.crm-pipeline-card p,.crm-pipeline-card label{font-size:14px}.crm-pipeline-card small{color:var(--muted-foreground);font-size:14px;display:block}.crm-pipeline-card>.crm-pill{margin-top:12px}.crm-pipeline-card select{margin-top:5px;font-size:14px}.crm-pipeline-card .crm-actions{gap:4px;margin-bottom:0}.crm-pipeline-card .crm-overdue,.crm-pipeline-card .crm-overdue small{color:#a32323}.crm-pipeline-deal{border-top:1px solid var(--border);padding-top:9px}.crm-company-docs summary{cursor:pointer;font-weight:600}.agency-documents{border:1px solid var(--border);border-radius:12px;gap:14px;min-width:0;padding:16px;display:grid}.agency-documents legend{font-weight:650}.agency-documents label{gap:6px;font-size:14px;display:grid}.agency-documents p{color:var(--muted-foreground);font-size:14px}.agency-documents input{max-width:100%}.agency-documents li{flex-wrap:wrap;justify-content:space-between;gap:8px;margin:8px 0;font-size:14px;display:flex}.agency-documents a,.agency-documents-list a{color:var(--primary);text-decoration:underline}.agency-documents button{color:#a32323;font-size:14px}.agency-documents-list{gap:8px;margin:14px 0;display:grid}.crm-context select{text-overflow:ellipsis;overflow:hidden}.crm-dialog{width:calc(100vw - 32px);max-width:600px}@media (width<=600px){.crm-stage{flex-basis:min(276px,100vw - 62px)}.crm-header .crm-actions{flex-shrink:0}.crm-title{flex-wrap:wrap}.crm-context{max-width:100%}.agency-documents{padding:12px}}.crm-brand,.crm-brand>div{overflow-wrap:anywhere;min-width:0}.crm-header>.crm-actions{flex-shrink:0}
