.ev-dialog{border:1px solid #dae2ef;border-radius:20px;padding:24px;max-width:min(520px,94vw);color:#193057}.ev-dialog::backdrop{background:#0c1d3a66}.ev-check{display:flex;align-items:center;gap:10px;margin:16px 0;line-height:1.4}.ev-check input{width:22px;height:22px;flex:none}.ev-config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:14px}.ev-config-grid article{padding:16px;background:#f1f5fc;border-radius:14px}.ev-clock-info{margin:12px 0 24px;display:flex;flex-wrap:wrap;gap:10px}.ev-clock-info p,.ev-clock-info small{width:100%;margin:0}.ev-replacements article{display:flex;flex-direction:column;gap:6px;padding:14px;margin:10px 0;border-radius:12px;background:#ecf2ff;border-left:4px solid #2563eb}.ev-replaced{background:#eef0f4!important;color:#4e5d75}.ev-availability select{min-width:170px;min-height:44px}.ev-availability th:first-child{position:sticky;left:0;background:#f5f7fc;z-index:1}.ev-availability{max-width:100%;max-height:65dvh;overflow:auto}.ev-dialog .buttons{margin-top:20px;justify-content:flex-end}
.cm-v2{--chat-bg:#f5f7fb;--chat-surface:#fff;--chat-text:#17233c;--chat-muted:#53647e;--chat-border:#dce3ec;--chat-sent:#2563eb;--chat-received:#fff;--chat-important:#fff6e6;--chat-important-text:#734204;color:var(--chat-text)}.cm-v2[data-chat-theme=dark]{--chat-bg:#081525;--chat-surface:#111f33;--chat-text:#f8fafc;--chat-muted:#a9b9cf;--chat-border:#334158;--chat-sent:#1677ff;--chat-received:#1b2a40;--chat-important:#33291b;--chat-important-text:#ffd89a}.cm-v2 .panel,.cm-v2 .cm-composer{background:var(--chat-surface);color:var(--chat-text);border-color:var(--chat-border)}.cm-v2 .cm-messages{background:var(--chat-bg)}.cm-v2 .cm-header{position:sticky;top:0;background:var(--chat-surface);border-color:var(--chat-border);gap:6px}.cm-v2 .cm-header>div{flex:1;min-width:0}.cm-v2 .cm-header h2{color:var(--chat-text);font-size:16px;line-height:1.3}.cm-v2 .cm-header small,.cm-v2 .cm-contact small,.cm-v2 .cm-search,.cm-v2 .cm-day{color:var(--chat-muted)}.cm-v2 .cm-header .iconbtn{width:44px;height:44px;min-width:44px;flex:none;padding:10px;background:var(--chat-surface);color:var(--chat-text);border-color:var(--chat-border)}.cm-v2 .cm-toggle-search[hidden]{display:none}.cm-v2 input,.cm-v2 select,.cm-v2 textarea{background:var(--chat-bg);color:var(--chat-text);border-color:var(--chat-border)}.cm-v2 .cm-contact{color:var(--chat-text)}.cm-v2 .cm-contact.selected,.cm-v2 .cm-contact:hover{background:color-mix(in srgb,var(--chat-sent) 14%,var(--chat-surface))}.cm-v2 .cm-message{background:var(--chat-received);color:var(--chat-text);max-width:80%;border-radius:18px 18px 18px 5px;box-shadow:0 3px 14px #10254c09}.cm-v2 .cm-message.mine{background:var(--chat-sent);color:white;border-radius:18px 18px 5px 18px}.cm-v2 .cm-message.is-important{background:var(--chat-important);color:var(--chat-important-text);border:1px solid #e8ab43}.cm-v2 .cm-important{background:none;color:inherit;padding-left:0}.cm-v2 .cm-important:before{content:'! ';font-weight:800}.cm-v2 .cm-mini-avatar{width:24px;height:24px;display:inline-grid;place-items:center;border-radius:50%;background:#2563eb;color:white;flex:none}.cm-v2 .cm-role{font-size:11px;background:#dce8ff;color:#16439b;border-radius:14px;padding:0 7px}.cm-v2 .cm-actions[open]{background:var(--chat-surface);color:var(--chat-text);border:1px solid var(--chat-border)}.cm-v2 .cm-file{background:var(--chat-surface);color:var(--chat-text);border:1px solid var(--chat-border)}.cm-v2 .cm-file small{color:var(--chat-muted)}.cm-v2 .cm-file a{color:var(--chat-text);text-decoration:underline;min-height:44px}.cm-v2 .cm-compose-row{display:flex;gap:6px;align-items:flex-end;position:relative}.cm-v2 .cm-compose-row textarea{flex:1;min-width:0;min-height:44px;height:44px;max-height:120px;border-radius:22px;padding:10px 12px;resize:none;line-height:22px}.cm-v2 .cm-compose-row summary,.cm-v2 .cm-send{display:grid;place-items:center;list-style:none;cursor:pointer;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;border:0;font-size:24px;background:var(--chat-sent);color:#fff}.cm-v2 .cm-emoji summary{background:var(--chat-bg);color:var(--chat-text);font-size:23px}.cm-v2 .cm-compose-tools,.cm-v2 .cm-emoji>div{position:absolute;bottom:52px;left:0;right:0;z-index:10;background:var(--chat-surface);color:var(--chat-text);border:1px solid var(--chat-border);box-shadow:0 -4px 24px #0a173433;border-radius:18px;padding:16px;max-height:55dvh;overflow:auto;display:flex;gap:10px;flex-wrap:wrap}.cm-v2 .cm-compose-tools label{color:var(--chat-text)}.cm-v2 .cm-compose-tools small{width:100%;font-size:12px;color:var(--chat-muted)}.cm-v2 .cm-emoji button{min-width:44px;min-height:44px;background:var(--chat-bg);border:0;border-radius:10px}.cm-v2 .cm-draft-reply{border-left:3px solid var(--chat-sent);padding:6px 10px;color:var(--chat-text);margin-bottom:8px}.cm-v2 .cm-draft-reply small{display:block;color:var(--chat-muted)}.cm-v2 .cm-composer>small{display:none}.cm-v2 .cm-day{width:fit-content;margin:14px auto;background:var(--chat-surface);border-radius:20px;padding:5px 12px}.cm-v2 .cm-message header time{font-variant-numeric:tabular-nums}.cm-v2 .cm-actions button{white-space:nowrap}.cm-v2 .cm-pins summary{color:var(--chat-text)}.cm-v2 .cm-message:focus-within{outline:2px solid #749cf6;outline-offset:2px}
@media(max-width:760px){.cm-v2.cm-open .cm-thread{height:calc(var(--chat-viewport,100dvh) - 162px - env(safe-area-inset-bottom));min-height:230px}.cm-v2 .cm-message{max-width:85%;padding:11px}.cm-v2 .cm-header{padding:8px}.cm-v2 .cm-header h2{font-size:14px}.cm-v2 .cm-header small{font-size:10px}.cm-v2 .cm-composer{padding:8px}.cm-v2 .cm-compose-tools{border-radius:18px 18px 10px 10px}.cm-v2 .cm-thread{scroll-margin-bottom:env(safe-area-inset-bottom)}.ev-config-grid{grid-template-columns:1fr}.cm-v2 .cm-message header{gap:4px;font-size:11px}.cm-v2 .cm-file>span{overflow-wrap:anywhere}.cm-v2 .cm-emoji summary{width:32px;min-width:32px}.cm-v2 .cm-compose-row{gap:4px}}
@media(prefers-reduced-motion:reduce){.cm-v2 *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:760px){body:has(.cm-v2.cm-open){overflow:hidden}.content:has(.cm-v2.cm-open){height:calc(var(--chat-viewport,100dvh) - var(--chat-top,66px) - var(--chat-nav,68px));padding:6px 10px!important;overflow:hidden}.content:has(.cm-v2.cm-open)>.footer{display:none}.cm-v2.cm-open,.cm-v2.cm-open .cm-thread{height:100%;min-height:0}.cm-v2.cm-open .cm-messages{min-height:40px}.cm-v2 .cm-header{flex:none}.cm-v2 .cm-composer{flex:none}.cm-v2 .cm-emoji summary{width:44px;min-width:44px}}
.cm-v2 .cm-message p a{color:inherit;text-decoration:underline;text-underline-offset:3px}.ev-replacement-badge{display:block;font-weight:650;color:#194caa}
:root{--brand:#2563eb;--brand-on:#ffffff}.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-on)}
