*{box-sizing:border-box}body{margin:0;background:#f4f6fa;color:#1c283e;font:14px/1.5 system-ui,Arial,sans-serif}a{color:#3e5c9d;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.app{max-width:1440px;margin:auto;padding:28px 32px}header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.brand,.header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.brand h1{font-size:22px;margin:0}.logo{background:#192641;color:white;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:18px}.muted{color:#8490a4;font-size:12px}.btn{border:0;border-radius:9px;padding:10px 14px;font-weight:650;white-space:nowrap}.primary{background:#315efb;color:white}.outline{border:1px solid #e1e6ee;background:white;color:#39465e}.danger{background:#fff0f0;color:#b42318}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stat,.panel{background:white;border:1px solid #e6eaf1;border-radius:15px}.stat{padding:18px}.stat small{color:#8490a4}.stat b{display:block;font-size:29px;margin-top:5px}.panel{overflow:hidden}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 19px;border-bottom:1px solid #e6eaf1;flex-wrap:wrap}.toolbar h2{font-size:16px;margin:0}.filters{display:flex;gap:8px;flex-wrap:wrap}input,select,textarea{padding:10px 11px;border:1px solid #dfe5ed;border-radius:9px;background:white;color:#344054;min-width:0}.filters input{width:210px}.scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:880px}th{background:#fafbfe;text-align:left;color:#8994a7;font-size:11px;text-transform:uppercase;padding:13px 16px}td{border-top:1px solid #edf0f5;padding:13px 16px;vertical-align:middle}td strong{font-size:13px}.note{max-width:220px;overflow-wrap:anywhere;color:#69768b}.status{background:#edf1ff;color:#3656c8;border:0;border-radius:18px;font-weight:700;font-size:11px;max-width:180px}.comments{padding:10px;background:#fafbfe;border-radius:9px;min-width:245px}.comment{background:white;border:1px solid #e6eaf1;padding:10px;border-radius:8px;margin-bottom:7px;overflow-wrap:anywhere}.comment small{color:#8792a4}.comment-form textarea{width:100%;min-height:70px;margin-top:9px;resize:vertical}.comment-form button{margin-top:7px}summary{cursor:pointer;color:#315efb;white-space:nowrap}.notice{background:#e7f6ed;color:#18794e;padding:12px;border-radius:9px;margin-bottom:16px}.empty{text-align:center;color:#8490a4;padding:45px}.modal{position:fixed;inset:0;background:#121c2d80;display:none;align-items:center;justify-content:center;padding:15px;z-index:10}.modal.visible{display:flex}.dialog,.auth{background:white;border-radius:17px;padding:26px;box-shadow:0 20px 55px #13213d18;width:min(470px,100%);max-height:90vh;overflow:auto}.dialog h2{margin-top:0}.dialog label,.auth label{display:block;font-weight:600;font-size:12px;color:#667085;margin:12px 0}.dialog label input,.dialog label select,.dialog label textarea,.auth label input{display:block;width:100%;margin-top:6px}.dialog textarea{min-height:80px}.footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.auth{margin:12vh auto;width:min(430px,calc(100% - 30px))}.auth h1{font-size:24px}.auth .primary{width:100%}.error{background:#fff0f0;color:#b42318;padding:10px;border-radius:9px}@media(max-width:760px){.app{padding:17px 12px}header{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:repeat(2,1fr);gap:8px}.stat{padding:13px}.stat b{font-size:23px}.filters,.filters input{width:100%}.filters select{flex:1}.toolbar{padding:13px}}

/* Цвет карточки зависит от статуса лида. Светлый фон сохраняет читаемость. */
.lead-row{--lead-bg:#f0f4ff;--lead-accent:#5274db;--lead-text:#3456ad}
.lead-status-0{--lead-bg:#fde8e8;--lead-accent:#dc2626;--lead-text:#991b1b}
.lead-status-1{--lead-bg:#eaf8f1;--lead-accent:#28a06a;--lead-text:#16744a}
.lead-status-2{--lead-bg:#fff5df;--lead-accent:#e6a72e;--lead-text:#965f0b}
.lead-status-3{--lead-bg:#ede4ff;--lead-accent:#7c3aed;--lead-text:#5b21b6}
.lead-status-4{--lead-bg:#eaf7fc;--lead-accent:#39a2c6;--lead-text:#236e8b}
.lead-status-5{--lead-bg:#def7e8;--lead-accent:#17a35a;--lead-text:#116c3c}
.lead-status-6{--lead-bg:#f2f3f5;--lead-accent:#9ca3af;--lead-text:#616a77}
.lead-row td{background:var(--lead-bg);border-top:5px solid white;border-bottom:5px solid white;transition:background .15s}
.lead-row td:first-child{border-left:5px solid var(--lead-accent);border-top-left-radius:9px;border-bottom-left-radius:9px}
.lead-row td:last-child{border-top-right-radius:9px;border-bottom-right-radius:9px}
.lead-row:hover td{filter:brightness(.985)}
.lead-row .status{background:var(--lead-accent);color:white;border:1px solid transparent;max-width:190px}
.lead-row .status:focus{outline:2px solid var(--lead-text);outline-offset:2px}
.lead-row .note{color:#4f5c70}

.lead-status-0 td:first-child{box-shadow:inset 5px 0 #dc2626}.lead-status-3 td:first-child{box-shadow:inset 5px 0 #7c3aed}
.reminder-panel{background:#fff;border:1px solid #e7eaf0;border-radius:14px;padding:16px;margin-bottom:18px}.reminder-panel h2{margin:0 0 10px;font-size:17px}.reminder-item{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #edf0f4;padding:10px 0}.overdue{color:#b42318;font-weight:700}.today{color:#a56608;font-weight:700}.reminder-form{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:8px}.reminder-form input,.reminder-form select{padding:8px;border:1px solid #e0e5ed;border-radius:8px;max-width:220px}.reminder-meta{font-size:12px;color:#6b7280;margin-top:5px}

.assignment-form select{max-width:165px;padding:8px;font-size:12px;border-radius:9px;border:1px solid #e3e7ee;background:#fff}
.assignment-form select:disabled{background:transparent;color:#5c6678;opacity:1;appearance:none;border-color:transparent}
.lead-status-0 td{background:#ffe4e4}.lead-status-3 td{background:#ede2ff}
.lead-status-0 td:first-child strong:before{content:'● ';color:#c51d27}.lead-status-3 td:first-child strong:before{content:'◆ ';color:#7c3aed}
@media(max-width:760px){.reminder-item{align-items:flex-start}.assignment-form select{max-width:135px}}

.reminder-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:9px}.reminder-actions form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.reminder-item{display:block!important;padding:14px;border-bottom:1px solid #e7e9f0}.reminder-actions input{padding:8px;border:1px solid #ccd3dd;border-radius:8px}

/* Mobile-first working interface: lead rows become full cards, without horizontal table scrolling. */
.mobile-bottom-nav,.mobile-stage-filter{display:none}
@media(max-width:760px){
 html{font-size:16px}body{padding-bottom:82px;font-size:14px}
 .app,.kanban-app{padding:12px 12px 20px}
 header,.kb-header{gap:12px;margin-bottom:14px}
 .brand h1{font-size:20px}.brand .muted{font-size:11px}
 .header-actions{width:100%;gap:7px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .header-actions>.muted{grid-column:1/-1}
 .header-actions .btn{display:flex;align-items:center;justify-content:center;text-align:center;padding:11px 8px;font-size:12px;min-height:42px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stat{padding:13px}.stat b{font-size:25px}
 .panel{background:transparent;border:0;overflow:visible}
 .toolbar{padding:12px 0}.filters{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 .filters input,.filters select{grid-column:1/-1;width:100%;min-height:44px}
 .filters .btn{min-height:42px;text-align:center}
 .scroll{overflow:visible}.leads-table{display:block;min-width:0;width:100%}
 .leads-table thead{display:none}.leads-table tbody{display:grid;gap:12px}
 .leads-table tr.lead-row{display:block;background:var(--lead-bg);border:1px solid #e7eaf0;border-left:5px solid var(--lead-accent);border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #1b2c450b;padding:6px 12px}
 .leads-table tr.lead-row td{display:block;width:100%;padding:10px 0;border:0!important;border-bottom:1px solid #ffffffab!important;background:transparent!important;box-shadow:none!important;max-width:none}
 .leads-table tr.lead-row td:last-child{border-bottom:0!important}
 .leads-table tr.lead-row td::before{content:attr(data-label);display:block;font-size:10px;font-weight:750;color:#667085;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
 .leads-table tr.lead-row td:first-child::before{display:none}
 .leads-table tr.lead-row td:first-child strong{font-size:17px}
 .leads-table tr.lead-row td:nth-child(2) a{font-size:16px;font-weight:700}
 .leads-table select,.leads-table input[type=datetime-local]{max-width:100%;width:100%;min-height:44px;font-size:14px}
 .leads-table .assignment-form select{max-width:100%}
 .leads-table details{max-width:100%}.leads-table summary{white-space:normal;min-height:35px;display:flex;align-items:center}
 .leads-table .comments{min-width:0;width:100%}
 .leads-table .reminder-form,.reminder-actions form{display:grid;grid-template-columns:1fr;align-items:stretch;width:100%}
 .reminder-form input,.reminder-form select,.reminder-actions input{width:100%;max-width:none;min-height:44px}
 .reminder-item{padding:12px 0!important}.reminder-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.reminder-actions .btn{white-space:normal}
 .dialog{max-height:calc(100dvh - 30px);padding:20px}.modal{align-items:center}
 .mobile-bottom-nav{position:fixed;z-index:50;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:white;border-top:1px solid #e6eaf0;padding:7px 8px max(8px,env(safe-area-inset-bottom));box-shadow:0 -5px 25px #17243d12}
 .mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:48px;font-size:19px;color:#7c8799;border-radius:9px}
 .mobile-bottom-nav a span{font-size:10px;font-weight:700}.mobile-bottom-nav a.active{color:#315efb;background:#edf2ff}
 .kb-controls{align-items:stretch}.kb-controls .filters{flex:1}
 .mobile-stage-filter{display:flex;align-items:center;gap:10px;background:#fff;padding:10px;border:1px solid #e4e8ef;border-radius:12px;margin-bottom:10px}
 .mobile-stage-filter label{font-size:12px;font-weight:700;flex:0 0 auto}.mobile-stage-filter select{flex:1;width:100%;min-width:0;min-height:44px}
 .kanban-board{display:flex;flex-direction:column;overflow:visible;min-height:0;gap:10px;padding:0}
 .kb-column{width:100%;min-width:0;max-height:none;min-height:0;flex:auto;scroll-snap-align:none}
 .kb-column[hidden]{display:none!important}
 .kb-cards{overflow:visible;min-height:0;padding:0 9px 9px}
 .kb-card{padding:14px;cursor:default;touch-action:pan-y}
 .kb-card-top strong{font-size:16px}.kb-phone{font-size:16px;display:inline-block;min-height:30px;padding-top:4px}
 .kb-note{font-size:13px}.kb-details,.kb-remind{font-size:12px}
 .kb-mobile-status{font-size:12px}.kb-status-select{font-size:14px;min-height:44px}
 #toast{bottom:85px;left:12px;right:12px;text-align:center}
 .kb-help{margin-bottom:10px}
}

/* Tasks */
.task-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px}.task-filters a{background:white;border:1px solid #e0e5ed;border-radius:10px;padding:9px 13px;font-weight:650;color:#42506a}.task-filters a.active{background:#315efb;color:white;border-color:#315efb}.task-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:13px}.task-card{background:#fff;border:1px solid #e5e9f1;border-left:5px solid #8b99ac;border-radius:13px;padding:16px;min-width:0}.task-card.task-late{border-left-color:#dc2626;background:#fff7f7}.task-card.task-soon{border-left-color:#d9911d;background:#fffaf0}.task-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.task-card-head strong{font-size:16px}.task-date{font-weight:700;white-space:nowrap;text-align:right}.task-date small{display:block;color:#a56608;font-size:11px}.task-late .task-date small{color:#b42318}.task-phone{display:inline-block;margin-top:12px;font-size:15px;font-weight:700}.task-comment{font-size:13px;color:#5b6679;overflow-wrap:anywhere}.task-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.task-postpone{display:flex;gap:7px;flex-wrap:wrap}.task-actions input{max-width:195px}.task-empty{background:#fff;border-radius:12px;padding:25px;color:#7b8798}@media(max-width:760px){.task-list{grid-template-columns:1fr}.task-card{padding:14px}.task-actions,.task-postpone{display:grid;grid-template-columns:1fr;width:100%}.task-actions input,.task-actions button{width:100%;max-width:none;min-height:44px}.task-filters{display:grid;grid-template-columns:repeat(2,1fr)}.task-filters a{text-align:center}body{padding-bottom:85px}}

/* WhatsApp quick action next to client phone */
.wa-link{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:4px 0 4px 8px;padding:6px 10px;border-radius:9px;background:#e5f8ec;color:#087a3e!important;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;border:1px solid #a8e2bf}
.wa-link:hover{background:#c9efd9}

/* Lead queue, shared navigation and deal details */
.crm-page-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:16px;row-gap:13px}
.crm-nav{width:100%;gap:7px;align-items:center;justify-content:flex-start;flex-wrap:wrap}
.crm-nav .btn{white-space:nowrap;min-height:36px;display:inline-flex;align-items:center;justify-content:center}
.mobile-bottom-nav a .crm-nav-symbol{font-size:18px;line-height:1.15}
.client-deal-link{font-weight:750;color:#264c8c;overflow-wrap:anywhere}
.client-deal-link:hover{text-decoration:underline}
.client-deal-link:focus-visible{outline:2px solid #315ee8;outline-offset:3px;border-radius:3px}
.crm-quick-status{margin-top:5px}.crm-quick-status summary{cursor:pointer}.crm-quick-status select{min-width:140px}
.crm-status{display:inline-block;padding:4px 8px;border-radius:7px;background:var(--lead-bg,#eef2ff);color:var(--lead-text,#334794);font-weight:700}
.crm-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:16px 0 3px}
.crm-dialog{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #e6e9ef;border-radius:16px;padding:22px;box-shadow:0 18px 60px #0f1b3c33;color:#1c283e}
.crm-dialog::backdrop{background:#15203377}
.crm-dialog h2,.crm-settings h2{margin:0 0 12px;font-size:19px}
.crm-dialog label,.crm-fields label{display:grid;gap:5px;margin-bottom:10px;font-weight:650}
.crm-dialog input,.crm-dialog select,.crm-dialog textarea,.crm-fields input,.crm-fields textarea,.crm-fields select{width:100%;min-height:42px;box-sizing:border-box;border:1px solid #d7dfe9;border-radius:9px;padding:9px;background:#fff;color:#1c283e}
.crm-dialog textarea,.crm-fields textarea{min-height:96px;resize:vertical}
.crm-dialog .footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.crm-fields{margin-top:12px}
.crm-fields [hidden],.kb-column[hidden]{display:none!important}
.assignment-form{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.queue-panel{margin-bottom:16px}.queue-conflict{display:block;margin-top:5px}.queue-conflict a{text-decoration:underline}
.queue-body{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.queue-body>div{flex:1 1 275px}
.queue-body h2{margin:0 0 3px}
.queue-body p{margin:4px 0;color:#52617a}
.queue-count{font-size:25px;white-space:nowrap}
.queue-count small{font-size:13px;color:#52617a;font-weight:600}
.btn:disabled{opacity:.55;cursor:default}
.crm-settings{margin-bottom:16px;padding:18px}.queue-panel{padding:16px}
.crm-settings fieldset{border:0;margin:0 0 18px;padding:0}
.crm-settings legend{padding:0;margin-bottom:10px;font-size:17px;font-weight:750}
.crm-choice{display:flex;align-items:flex-start;gap:9px;margin:8px 0;padding:10px;border:1px solid #e6ebf2;border-radius:8px;max-width:700px;cursor:pointer}
.crm-choice input{width:16px;height:16px;flex:none;accent-color:#315efb}
.crm-choice small{display:block;color:#52617a;font-weight:500}
.crm-stat-text{font-size:19px!important;overflow-wrap:anywhere}
.deal-page{max-width:1160px}
.deal-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px;padding:18px}
.deal-identity h2{margin:0 0 8px;font-size:clamp(23px,4vw,32px);overflow-wrap:anywhere}
.deal-identity p{margin:8px 0 0}
.deal-contacts{display:flex;gap:8px;flex-wrap:wrap}
.distribution-stats{grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr))}
.distribution-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;align-items:start}
.distribution-save{grid-column:1/-1;justify-self:start}
.deal-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:"client workflow" "comments workflow" "comments history";grid-template-rows:auto auto 1fr;gap:16px;align-items:start}
.deal-grid>*,.deal-workflow>*{min-width:0}
.deal-info{grid-area:client}
.deal-comments{grid-area:comments}
.deal-history{grid-area:history}
.deal-workflow{grid-area:workflow;display:grid;gap:16px}
.deal-grid .crm-settings{margin:0}
.deal-summary,.deal-grid .crm-settings,.queue-panel{background:#fff;border:1px solid #e6eaf1;border-radius:15px}
.deal-note{white-space:pre-wrap;overflow-wrap:anywhere}
.deal-entry{padding:10px 0;border-top:1px solid #e9edf4;overflow-wrap:anywhere}
.deal-entry:first-of-type{margin-top:14px}
.deal-entry p{margin:3px 0}
.deal-done{margin-top:10px}
@media(max-width:760px){
    .app .crm-nav,.kanban-app .crm-nav{display:flex!important;flex-wrap:nowrap;overflow:auto;justify-content:flex-start;padding:3px 0 7px}
    .crm-nav .btn{flex:none}
    .mobile-bottom-nav.crm-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
    .crm-mobile-nav a{min-width:0;padding-inline:0}
    .distribution-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .distribution-settings,.deal-grid{grid-template-columns:minmax(0,1fr)}
    .deal-grid{grid-template-areas:"workflow" "client" "comments" "history";grid-template-rows:auto}
    .deal-summary,.crm-settings{padding:14px}
    .queue-body{gap:10px}
    .queue-body>div{flex-basis:100%}
    .crm-dialog textarea{font-size:16px}
}

/* Shared links, notifications and task actions */
[hidden] { display:none!important; }
.crm-brand { display:flex; gap:10px; min-width:0; flex-wrap:nowrap; align-items:center; }
.crm-brand h1 { margin:0; font-size:clamp(19px,4.8vw,25px); line-height:1.2; }
.crm-brand .muted { display:block; margin-top:3px; }
.crm-logo { display:grid; flex:none; align-content:center; justify-items:center; width:61px; min-height:47px; border-radius:10px; background:#192844; color:#fff; line-height:1.02; }
.crm-logo span { font-weight:850; font-size:13px; letter-spacing:.065em; }
.crm-logo small { color:#d4dff8; font-size:9px; font-weight:750; letter-spacing:.14em; margin-top:3px; }
.crm-logo:hover { background:#263e69; }
.crm-logo:focus-visible, .task-tab:focus-visible { outline:2px solid #325dfb; outline-offset:3px; }
.auth .crm-brand { margin-bottom:18px; }
.crm-inbox-button { display:inline-flex; align-items:center; gap:7px; min-height:40px; white-space:nowrap; margin-left:auto; }
.crm-inbox-button b, .mobile-inbox-dot { min-width:22px; padding:2px 5px; border-radius:99px; background:#e9edff; color:#2d45a8; text-align:center; font-size:11px; }
.crm-overdue-banner, .crm-workload { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; border-radius:10px; padding:11px 13px; margin:0 0 14px; }
.crm-overdue-banner { color:#913524; background:#fff0eb; border:1px solid #f0c8bb; }
.crm-overdue-banner a { color:#983c2a; text-decoration:underline; }
.reminder-heading { white-space:normal; overflow-wrap:anywhere; }
.crm-workload { color:#6f5019; background:#fff6e4; border:1px solid #efdab1; }
.crm-workload a { color:inherit; text-decoration:underline; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.task-buttons { display:flex; flex-wrap:wrap; gap:7px; }
.task-buttons .btn { min-height:42px; }
.task-dialog { width:min(492px,calc(100% - 24px)); }
.task-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.task-dialog-head h2 { margin:0; overflow-wrap:anywhere; }
.task-dialog-head p { margin:4px 0 0; }
.crm-close { display:grid; flex:none; place-content:center; width:36px; height:36px; border:1px solid #dbe3ee; border-radius:8px; background:#fff; color:#21365b; font-size:23px; line-height:1; }
.task-dialog .showing-outcome { display:flex; flex-wrap:wrap; gap:5px 13px; margin:0 0 13px; padding:7px 9px; border:1px solid #dbe3ee; border-radius:8px; }
.task-dialog .showing-outcome legend { padding:0 4px; font-weight:720; }
.task-dialog .showing-outcome label { display:flex; align-items:center; min-height:32px; gap:7px; margin:0; padding:0 5px 0 0; }
.task-dialog .showing-outcome input { width:16px; min-height:0; height:16px; accent-color:#315efb; }
.deal-task-date { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.inbox-section { margin:0 auto 16px; padding:16px 19px; max-width:1020px; border:1px solid #dfe6f0; border-radius:13px; background:#fff; }
.inbox-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; margin-bottom:8px; }
.inbox-heading h2 { margin:0; font-size:19px; }
.inbox-item { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:8px; padding:11px 12px; border:1px solid #e5eaf2; border-radius:9px; }
.inbox-item:first-of-type { margin-top:10px; }
.inbox-item>div { min-width:0; overflow-wrap:anywhere; }
.inbox-item form,.inbox-item .btn { flex:none; }
.inbox-item p { margin:2px 0; }
.inbox-note { white-space:pre-wrap; }
.inbox-unread { border-color:#d4dcfd; background:#f1f4ff; }
.inbox-overdue { border-color:#f0c8bb; background:#fff7f3; }
.inbox-empty { margin:9px 0 0; }
@media (max-width:760px) {
    .app .crm-page-header, .kanban-app .crm-page-header { flex-direction:row; align-items:center; gap:9px; }
    .crm-page-header .crm-brand { justify-content:flex-start; flex:1 1 auto; text-align:left; }
    .crm-brand h1, .crm-brand .muted { overflow-wrap:anywhere; }
    .crm-page-header>.crm-inbox-button { margin-left:0; }
    .mobile-bottom-nav.crm-mobile-nav { display:flex; }
    .mobile-bottom-nav.crm-mobile-nav>a { position:relative; flex:1; }
    .mobile-bottom-nav.crm-mobile-nav .mobile-inbox-dot { position:absolute; top:0; left:50%; transform:translateX(8px); min-width:17px; font-size:9px; padding:0 3px; }
    .crm-inbox-button>span { display:none; }
    .crm-inbox-button { padding:8px 9px; }
    .inbox-section { padding:12px; }
}
@media (max-width:460px) {
    .inbox-item { flex-wrap:wrap; }
}
