.cm-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;height:min(760px,calc(100dvh - 240px));min-height:480px}.cm-contacts{overflow:auto;padding:10px}.cm-contact{display:flex;align-items:center;gap:10px;width:100%;min-height:72px;padding:12px;border:0;background:transparent;text-align:left;border-radius:12px;color:#193057;white-space:normal;cursor:pointer}.cm-contact.selected{background:#eaf0ff;box-shadow:inset 3px 0 #2454d6}.cm-contact:hover{background:#f0f4ff}.cm-contact>span:nth-child(2){min-width:0;flex:1}.cm-contact strong,.cm-contact small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-contact small{font-size:12px;color:#52617a;margin-top:5px}.cm-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;background:#e5edff;color:#244eb9;font-weight:700}.cm-count{border-radius:20px;padding:3px 7px;color:white;background:#2454d6;font-size:12px}.cm-thread{display:flex;flex-direction:column;min-width:0;overflow:hidden}.cm-header{display:flex;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #e0e5ef}.cm-header h2{font-size:19px;margin:0}.cm-header small{color:#53617a}.cm-search{display:block;padding:10px 14px;font-size:12px;color:#53617a}.cm-search input{width:100%;min-width:0;min-height:42px;margin-top:5px;font-size:15px}.cm-messages{flex:1;overflow:auto;padding:18px;min-height:120px;background:#f7f9fd;overscroll-behavior:contain}.cm-day{text-align:center;color:#52617a;font-size:12px;margin:12px 0 20px}.cm-message{max-width:88%;width:fit-content;margin:10px auto 14px 0;padding:14px;border-radius:16px 16px 16px 4px;background:#edf0f5;color:#193057;overflow-wrap:anywhere;box-shadow:0 1px 3px #12264d0a}.cm-message.mine{margin-left:auto;margin-right:0;border-radius:16px 16px 4px 16px;background:#2454d6;color:#fff}.cm-message header{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:12px;line-height:1.6;opacity:.95}.cm-message header strong{font-weight:700}.cm-message p{white-space:pre-wrap;margin:8px 0;font-size:15px;line-height:1.55;color:inherit}.cm-message footer{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:8px}.cm-message button{font-size:13px;min-height:36px;white-space:normal}.cm-textbtn,.cm-reaction{border:1px solid #50689530;border-radius:8px;padding:6px 9px;color:inherit;background:#ffffff1c;cursor:pointer}.cm-reaction[aria-pressed=true]{background:#fff;color:#193057;box-shadow:inset 0 0 0 2px #789af2}.cm-important,.cm-unread{display:inline-block;padding:3px 8px;margin:5px 0;background:#fff0d8;color:#7b4106;border-radius:8px;font-size:12px;font-weight:700}.cm-quote{display:block;width:100%;padding:8px;border:0;border-left:3px solid #8baaf9;border-radius:6px;text-align:left;background:#ffffff2a;color:inherit}.cm-actions{margin-left:auto;position:relative}.cm-actions summary{cursor:pointer;font-size:22px;min-width:44px;min-height:44px;text-align:center;list-style:none}.cm-actions[open]{background:#fff;color:#193057;border-radius:8px;padding:5px;box-shadow:0 2px 8px #0002}.cm-actions button{display:block;width:100%;min-height:44px;border:0;background:none;text-align:left;padding:8px}.cm-deleted{background:#f0f1f4!important;color:#627087!important;font-style:italic}.cm-files{display:flex;flex-direction:column;gap:8px}.cm-file{padding:10px;background:#fff;color:#193057;border-radius:10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}.cm-file>span{flex-basis:100%;font-size:13px}.cm-file small{display:block;color:#52617a;font-size:11px}.cm-file img{max-width:100%;max-height:240px;object-fit:contain;border-radius:8px}.cm-file a{color:#234cb4;font-size:13px;min-height:36px;display:inline-flex;align-items:center}.cm-composer{padding:12px;border-top:1px solid #dde4f0;background:#fff}.cm-compose-label{display:block;font-size:12px;color:#53617a}.cm-composer textarea{min-height:65px;max-height:140px;resize:vertical;width:100%;font-size:16px}.cm-compose-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}.cm-compose-tools .btn{font-size:13px;min-height:44px;padding:9px 12px}.cm-composer>small{font-size:11px;color:#52617a}.cm-pending{display:flex;gap:8px;overflow:auto;max-height:115px}.cm-pending>div{font-size:12px;padding:8px;background:#eef3ff;border-radius:8px;min-width:130px}.cm-pending img{width:50px;height:40px;object-fit:cover;display:block}.cm-pending button,.cm-draft-reply button{min-height:36px;border:0;background:none;color:#2454d6}.cm-pins,.cm-notice{padding:10px 16px;font-size:13px}.cm-pins summary{cursor:pointer;color:#2454d6;font-weight:700}.cm-back{display:none}.cm-draft-reply{font-size:13px;color:#2454d6}.cm-thread .btn.cm-shared{background:#fff;color:#2454d6;margin:6px 0}.cm-contact:focus-visible,.cm-message button:focus-visible{outline:3px solid #f1ac41;outline-offset:2px}
@media(max-width:760px){.cm-layout{display:block;height:auto;min-height:0}.cm-contacts{max-height:calc(100dvh - 250px)}.cm-thread{display:none;height:calc(100dvh - 200px);min-height:460px}.cm-open .cm-thread{display:flex}.cm-open .cm-contacts{display:none}.cm-back{display:inline-flex;flex:none}.cm-messages{padding:10px}.cm-message{max-width:96%;padding:11px}.cm-message button{min-height:44px}.cm-compose-tools .btn{flex:0 1 auto}.cm-layout input,.cm-layout textarea{min-width:0;max-width:100%}.cm-header h2{font-size:16px}.cm-compose-tools>label{font-size:13px}.cm-search{padding:8px 12px}}

.tp-page{background:white;padding:8mm;width:297mm;min-height:210mm;color:#193057;font-family:Arial,sans-serif}.tp-page.tp-a3{width:420mm;min-height:297mm}.tp-page.tp-mono{color:#111}.tp-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid #2454d6;padding-bottom:12px;margin-bottom:12px}.tp-head h1{font-size:22px;margin:0 0 6px}.tp-head p{margin:4px 0;font-size:12px}.tp-head small{font-size:10px}.tp-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px}.tp-table th,.tp-table td{border:1px solid #dce3ee;padding:6px;vertical-align:top}.tp-table thead th{background:#2454d6;color:white;padding:10px 5px}.tp-table tbody th{background:#f0f4fc;width:15%;font-size:12px}.tp-table th small{display:block;font-weight:normal;font-size:10px;margin-top:5px}.tp-slot{border-left:3px solid var(--activity);background:color-mix(in srgb,var(--activity) 12%,white);padding:5px;margin-bottom:4px;border-radius:4px;break-inside:avoid}.tp-slot b,.tp-slot span,.tp-slot small{display:block}.tp-slot b{font-variant-numeric:tabular-nums;font-size:12px}.tp-slot span{margin-top:3px;overflow-wrap:anywhere}.tp-slot small{font-size:10px}.tp-total{font-weight:bold;color:#2454d6;text-align:center}.tp-day-total{border-top:1px solid #ccd7ea;margin-top:4px;padding-top:3px;font-size:10px}.tp-foot{margin-top:12px;font-size:10px;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.tp-legend{display:flex;flex-wrap:wrap;gap:7px 14px}.tp-legend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px}.tp-mono .tp-head{border-color:#222}.tp-mono .tp-table thead th{background:#eee;color:#111}.tp-mono .tp-table tbody th{background:#f5f5f5}.tp-mono .tp-total{color:#111}tr{break-inside:avoid}@media print{.tp-page{break-after:page;min-height:0}.tp-page:last-child{break-after:auto}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.tp-modal{width:min(1200px,96vw);max-width:96vw}.tp-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.tp-options label{display:block;font-size:13px}.tp-options input:not([type=checkbox]),.tp-options select{width:100%;min-width:0}.tp-options input[type=checkbox],#tp-people input{width:20px;height:20px}#tp-people{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0}#tp-people label{display:flex;align-items:center;gap:8px;min-height:44px}#tp-preview{overflow:auto;max-height:60vh;background:#dce3ee;padding:12px;margin-top:16px}#tp-preview .tp-page{margin-bottom:16px}#tp-status{padding:10px 0;color:#244eb9;font-weight:700}

.notification-action-hint{color:#2454d6;font-weight:700}.notification-row.is-unread{border-left:4px solid #2454d6;background:#f2f6ff}.notification-open>strong{font-size:16px}.notification-open>span:not(.chip){line-height:1.5;color:#33465f}

@media(max-width:760px){.content:has(.cm-open)>.heading{display:none}.content:has(.cm-open){padding-top:8px!important}.cm-open .cm-thread{height:calc(100dvh - 175px);min-height:360px}.cm-open .cm-header{padding:8px 12px}.cm-open .cm-composer{padding:8px}.cm-open .cm-compose-tools{gap:5px}.cm-open .cm-compose-tools .btn{padding:7px 9px}.cm-open .cm-composer>small{display:none}.cm-open .cm-messages{min-height:80px}.cm-open .cm-search{padding:5px 12px}.cm-open .cm-search input{min-height:36px}.cm-back{font-size:22px}}
