.crm-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.crm-head p{font-size:12px;color:var(--muted);margin-top:6px}.crm-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:20px}.crm-tabs button{font-size:15px;font-weight:600;color:var(--muted);border:0;border-bottom:3px solid transparent;background:none;padding:12px 0;min-height:44px}.crm-tabs button.active{color:var(--brand-dark);border-color:var(--brand)}.crm-tabs small{font-weight:400;font-size:11px;margin-left:8px}.crm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.crm-search{width:260px;max-width:100%;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:8px;padding:10px 12px;font-size:12px}.crm-filters{display:flex;gap:6px;flex-wrap:wrap}.crm-filters button{padding:7px 10px;min-height:36px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:12px}.crm-filters button.active{background:var(--card);border-color:var(--line);color:var(--ink)}.crm-list{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}.crm-list table{width:100%;table-layout:fixed}.crm-list th{font-weight:500;font-size:11px;color:var(--muted);padding:12px 16px;background:var(--bg)}.crm-list td{padding:15px 16px;font-size:12px;vertical-align:middle;border-bottom:1px solid var(--line)}.crm-list tr:last-child td{border-bottom:0}.crm-list .name-button{border:0;background:none;padding:0;color:var(--ink);text-align:left;font-weight:600;font-size:13px;min-height:30px}.crm-list .name-button:hover{color:var(--brand-dark)}.crm-list td small{display:block;font-size:11px;margin-top:4px}.crm-list .subline{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-list td:first-child{width:30%}.crm-chip{display:inline-flex;align-items:center;border-radius:6px;background:var(--brand-soft);color:var(--brand-dark);padding:3px 7px;font-size:11px;white-space:nowrap}.crm-chip.green{background:#e5f4ec;color:#23734a}.crm-chip.blue{background:#eaf1fc;color:#3464a3}.crm-chip.gray{background:var(--bg);color:var(--muted)}.crm-list-foot{padding:12px 16px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.crm-back{border:0;background:none;padding:0;color:var(--muted);font-size:12px;min-height:36px;margin-bottom:8px}.crm-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 16px;background:var(--card);border:1px solid var(--line);border-radius:10px;margin:0 0 20px;font-size:12px}.crm-summary small{margin-right:6px}.crm-columns{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start}.crm-stack{display:flex;flex-direction:column;gap:18px}.crm-section{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}.crm-section-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);gap:12px}.crm-section-head h2{font-size:14px}.crm-body{padding:16px}.crm-body p{font-size:12px;line-height:1.8;color:var(--muted)}.crm-demand{padding:16px;border-bottom:1px solid var(--line)}.crm-demand:last-child{border-bottom:0}.crm-demand h3{font-size:13px;margin-bottom:7px}.crm-demand p{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.7}.crm-demand .actions{justify-content:space-between}.crm-timeline{padding:4px 16px 16px}.crm-event{position:relative;margin:0 0 0 7px;padding:16px 0 8px 22px;border-left:1px solid var(--line)}.crm-event:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--brand);position:absolute;left:-4px;top:24px}.crm-event small{font-size:10px}.crm-event p{font-size:12px;margin-top:5px;line-height:1.8}.crm-contact{padding:12px 16px;border-bottom:1px solid var(--line)}.crm-contact:last-child{border:0}.crm-contact b{font-size:12px}.crm-contact small{display:block;margin-top:3px;font-size:11px}.crm-label{color:var(--muted);font-size:11px}.crm-next{padding:16px;background:var(--brand-soft)}.crm-next b{display:block;font-size:14px;margin:4px 0}.crm-next p{font-size:12px}.crm-task{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px}.crm-task:last-child{border:0}.crm-task>span:first-of-type{flex:1;min-width:0}.crm-task small{font-size:10px}.crm-check{width:22px;height:22px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--green);flex-shrink:0}.crm-complete{text-decoration:line-through;color:var(--muted)}.crm-stage{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 20px}.crm-stage span{padding:6px 10px;font-size:11px;border-radius:7px;color:var(--muted);background:var(--card)}.crm-stage span.current{background:var(--brand-soft);color:var(--brand-dark);font-weight:600}.crm-data{display:grid;grid-template-columns:1fr 1fr;gap:14px}.crm-data b{display:block;font-weight:500;font-size:12px;margin-top:3px}.crm-section button.button.small{min-height:32px;font-size:11px}.crm-members{display:flex;gap:8px;flex-wrap:wrap}.crm-member{border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12px}.crm-member small{display:block;font-size:10px}.crm-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.crm-form label{display:flex;flex-direction:column;gap:6px;font-size:12px}.crm-form input,.crm-form select,.crm-form textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);padding:10px;min-height:44px}.crm-form textarea{min-height:86px;resize:vertical}.crm-form .full{grid-column:1/-1}.crm-form .choice{flex-direction:row;align-items:center}.crm-form .choice input{width:18px;min-height:18px}.crm-form footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.crm-form-note{grid-column:1/-1;font-size:11px;color:var(--muted)}#crm-dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;padding:22px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:14px}#crm-dialog::backdrop{background:#11182770}#crm-dialog h2{font-size:18px;margin-bottom:18px}#crm-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--card);padding:12px 20px;border-radius:9px;font-size:12px;display:none;z-index:60}.crm-empty{padding:40px;text-align:center;color:var(--muted);font-size:12px}.crm-note{font-size:11px;color:var(--muted);margin-top:14px}.crm-link{font-size:12px;border:0;background:none;color:var(--brand-dark);padding:0;cursor:pointer}
@media(max-width:1023px){.crm-columns{grid-template-columns:minmax(0,1fr) 240px}.crm-list th,.crm-list td{padding:12px}.crm-toolbar{flex-wrap:wrap}}
@media(max-width:767px){.sidebar{display:none}.app-shell{margin-left:0}.main{padding:18px 14px 88px}.topbar{padding:0 14px}.top-right{gap:8px}.top-right time{display:none}.preview-notice{flex-direction:column;gap:3px;margin-bottom:18px}.crm-head{align-items:flex-start}.crm-head h1{font-size:22px}.crm-head p{font-size:11px}.crm-head .button{padding:8px 10px;font-size:12px}.crm-tabs{gap:22px}.crm-columns{grid-template-columns:1fr}.crm-toolbar{align-items:stretch}.crm-search{width:100%}.crm-list table,.crm-list tbody,.crm-list tr,.crm-list td{display:block}.crm-list thead{display:none}.crm-list tr{padding:10px 14px;border-bottom:1px solid var(--line)}.crm-list td{padding:4px 0;border:0}.crm-list td:first-child{width:100%}.crm-list td:not(:first-child){display:inline-block;margin-right:14px;vertical-align:top}.crm-list td:last-child{display:none}.crm-list td small{margin-top:0}.crm-form{grid-template-columns:1fr}.crm-form .full,.crm-form footer,.crm-form-note{grid-column:auto}.crm-section button.button.small{min-height:44px}.crm-stage span{padding:5px 7px}.crm-tabs small{display:none}}

.crm-list .subline{display:block}.crm-list td,.crm-list th{min-width:0}.crm-list th:nth-child(1){width:28%}.crm-list th:nth-child(2){width:12%}.crm-list th:nth-child(3){width:14%}.crm-list th:nth-child(4){width:12%}.crm-list th:nth-child(5){width:25%}.crm-list th:nth-child(6){width:9%}.crm-list td:first-child{width:auto}.crm-demand .crm-link{max-width:100%;text-align:left;overflow-wrap:anywhere}.crm-body .crm-data+.crm-members{margin-top:16px}.crm-next b{overflow-wrap:anywhere}.crm-list tr:hover td{background:var(--brand-soft)}[data-theme=dark] .crm-chip.blue{background:#243951;color:#a6c7f4}[data-theme=dark] .crm-chip.green{background:#233d30;color:#a0d8b5}
@media(max-width:767px){.crm-list td:first-child{width:100%}}


@media(max-width:767px){.crm-list td:nth-child(5){display:block;width:100%;max-width:100%;margin-right:0}}

.task-origin{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border:0;border-radius:6px;background:var(--brand-soft);color:var(--brand-dark)}.task-origin svg{width:15px;height:15px}.crm-body,.crm-demand,.crm-event{overflow-wrap:anywhere}.crm-head,.crm-summary{min-width:0}.crm-section .task-row{padding:12px 16px}@media(max-width:767px){.crm-list td:last-child{display:block}.task-origin{width:28px;height:28px}.crm-summary{gap:10px}}
.crm-stack,.crm-section{min-width:0}@media(max-width:767px){.crm-columns{grid-template-columns:minmax(0,1fr)}.crm-section .task-inline{gap:6px}}
.crm-clickable-row{cursor:pointer}.crm-clickable-row .name-button{color:var(--brand-dark)}.crm-clickable-row .crm-link{min-height:36px}
