.il-dialog{width:min(760px,95vw);max-height:90vh;overflow:auto;border:1px solid #dce1e8;border-radius:16px;padding:24px;color:#182238;background:#fff}.il-dialog::backdrop{background:#14223888}.il-head,.il-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.il-head{justify-content:space-between}.il-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.il-form label,.il-handoff label{display:flex;flex-direction:column;gap:6px}.il-form input,.il-form select,.il-form textarea,.il-handoff select{width:100%;box-sizing:border-box;padding:10px;border:1px solid #c6cfda;border-radius:8px;font:inherit}.il-handoff{display:grid;gap:12px;border-top:1px solid #dce1e8;margin-top:24px;padding-top:16px}.il-toolbar{padding:12px 0}.il-dialog .alert{margin-top:12px}#il-board{overflow-x:auto}#il-board .wf-case{text-align:left;overflow-wrap:anywhere}@media(max-width:600px){.il-form{grid-template-columns:1fr}.il-dialog{padding:16px}}
.il-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.il-form>*{min-width:0}.il-wide{grid-column:1/-1}.il-phone-field{display:grid;gap:6px;align-content:start}.il-phone-composite{display:flex;align-items:center;border:1px solid #c6cfda;border-radius:8px;overflow:hidden;min-width:0}.il-phone-composite .phone-country{width:110px;flex:0 0 110px;border:0;border-right:1px solid #c6cfda;border-radius:0;padding:10px 5px}.il-phone-composite .phone-prefix{flex:0 0 auto;padding:0 5px;white-space:nowrap}.il-phone-composite .phone-national{min-width:0;width:0;flex:1;border:0;border-radius:0;padding:10px 4px}.il-phone-composite .phone-other-code{width:44px;flex:0 0 44px;border:0;padding:10px 2px}.il-dictionary{display:grid;gap:7px;align-content:start}.il-dictionary>button{justify-self:start}.il-dictionary-editor{display:flex;gap:6px;flex-wrap:wrap}.il-dictionary-editor[hidden]{display:none}.il-dictionary-editor input{flex:1 1 160px}.il-files,.il-intake{margin-top:20px;padding-top:16px;border-top:1px solid #dce1e8}.il-file-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}.il-file-row button{overflow-wrap:anywhere;max-width:100%;text-align:left}.il-file-picker{display:grid;gap:8px;margin:12px 0}.il-intake p{margin:7px 0;overflow-wrap:anywhere}.il-file-status{overflow-wrap:anywhere}@media(max-width:600px){.il-form{grid-template-columns:minmax(0,1fr)}.il-phone-composite .phone-country{flex-basis:100px;width:100px}.il-dialog{box-sizing:border-box;width:95vw}.il-form input,.il-form select,.il-form textarea{font-size:16px}}
.il-geo-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.il-geo-status p{margin:0;overflow-wrap:anywhere}.il-form input[aria-invalid="true"]{border-color:#bf2337}.il-file-picker{display:grid;gap:10px;min-width:0}.il-file-picker>h4{margin:0;font-size:inherit;font-weight:600}.il-file-grid{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start;min-width:0}.il-upload-tile{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:112px;height:112px;flex:0 0 112px;padding:9px;border:1.5px dashed #d4a2a9;border-radius:12px;background:#fff7f8;box-shadow:none;color:#b82c3b;font:inherit;cursor:pointer}.il-upload-tile:hover:not(:disabled){background:#fcecef;border-color:#c22e3e}.il-upload-tile:focus-visible,.il-file-remove:focus-visible{outline:3px solid #cc263640;outline-offset:3px}.il-upload-tile:disabled{opacity:.55;cursor:default}.il-upload-plus{font-size:36px;font-weight:350;line-height:1}.il-upload-caption{font-size:13px;text-align:center;line-height:1.3}.il-file-card{box-sizing:border-box;position:relative;display:flex;flex-direction:column;justify-content:center;gap:6px;width:112px;min-height:112px;flex:0 0 112px;padding:12px 8px;border:1px solid #dce1e8;border-radius:12px;background:#f8f9fb;min-width:0}.il-file-kind{font-size:13px;font-weight:600;color:#a32b3b}.il-file-name{font-size:12px;line-height:1.3;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.il-file-size{font-size:11px;color:#647084}.il-file-remove{position:absolute;top:3px;right:3px;display:flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;border:0;border-radius:50%;background:#fff;color:#a32b3b;font-size:21px;line-height:1}.il-file-picker input[type=file][hidden]{display:none!important}@media(max-width:600px){.il-upload-tile,.il-file-card{width:104px;flex-basis:104px}.il-upload-tile{height:104px}.il-file-card{min-height:104px}.il-geo-status{align-items:flex-start;flex-direction:column}}

.il-file-download{height:112px;min-height:0;text-align:left;font:inherit;cursor:pointer;color:inherit;box-shadow:none;overflow:hidden}.il-file-download:hover:not(:disabled){background:#eef1f6;border-color:#b8c3d2}.il-file-download:focus-visible{outline:3px solid #cc263640;outline-offset:3px}.il-file-download:disabled{opacity:.55;cursor:default}.il-file-saved{font-size:11px;color:#a32b3b}.il-file-saved-status:empty{display:none}@media(max-width:600px){.il-file-download{height:104px;min-height:0}}

.il-upload-progress{width:100%;height:5px;accent-color:#c52c3d}.il-upload-progress[hidden]{display:none}.il-upload-state{font-size:10px;line-height:1.2;color:#647084}.il-file-queue .il-file-card{height:112px;gap:3px;overflow:hidden}.il-file-queue .il-file-name{-webkit-line-clamp:2}@media(max-width:600px){.il-file-queue .il-file-card{height:104px}}
/* Dictionary menus: add action belongs to the expanded list. */
.il-dictionary{position:relative;display:grid;gap:6px;align-content:start;min-width:0}
.il-dictionary>label{font-size:inherit;line-height:1.4}
.il-dict-native[hidden],.il-dict-panel[hidden],.il-dictionary-editor[hidden],.il-dict-empty[hidden],.il-dict-note[hidden],.il-form label[hidden]{display:none!important}
.il-dict-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:1px solid #c6cfda;border-radius:10px;background:#fff;color:#182238;font:inherit;text-align:left;cursor:pointer;box-shadow:0 1px 2px #14223805}
.il-dict-caption{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.il-dict-chevron{flex:none;font-size:21px;line-height:1;color:#788497;transition:transform .15s}
.il-dict-trigger[aria-expanded=true]{border-color:#c52c3d;box-shadow:0 0 0 3px #c52c3d10}
.il-dict-trigger[aria-expanded=true] .il-dict-chevron{transform:rotate(180deg)}
.il-dict-trigger.is-placeholder{color:#788497}.il-dict-trigger[aria-invalid=true]{border-color:#b42337}
.il-dict-trigger:disabled{background:#f5f6f8;color:#687589;cursor:default}
.il-dict-panel{box-sizing:border-box;position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;display:grid;gap:8px;max-height:min(400px,55vh);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px;border:1px solid #dce1e8;border-radius:14px;background:#fff;box-shadow:0 12px 32px #14223820}
.il-dict-add{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:9px 12px;border:0;border-radius:9px;background:#fff2f3;color:#b42337;font:inherit;font-weight:600;text-align:left;cursor:pointer}
.il-dict-add-icon{display:flex;align-items:center;justify-content:center;flex:none;width:23px;height:23px;border-radius:7px;background:#fce0e4;font-size:22px;line-height:1;font-weight:400}
.il-form .il-dict-search{width:100%;min-height:42px;padding:9px 12px;border:1px solid #e2e7ee;border-radius:9px;background:#f7f8fa;font:inherit;font-size:14px}
.il-dict-options{display:grid;gap:3px;min-height:0;max-height:220px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.il-dict-option{display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:9px;background:#fff;color:#273449;font:inherit;font-size:14px;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.il-dict-option>span:first-child{min-width:0}.il-dict-check{flex:none;min-width:16px;color:#b42337;font-size:16px}
.il-dict-option[aria-selected=true]{background:#fff0f2;color:#a52c3c;font-weight:600}
.il-dict-trigger:focus-visible,.il-dict-add:focus-visible,.il-dict-option:focus-visible,.il-dict-save:focus-visible,.il-dict-cancel:focus-visible{outline:2px solid #bc3045;outline-offset:1px}
.il-dictionary-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;background:#f7f8fa;border:1px solid #e2e7ee;border-radius:10px}
.il-dictionary-editor input{grid-column:1/-1;min-width:0}.il-dict-save,.il-dict-cancel{min-height:40px;padding:8px 12px;border:1px solid #dce1e8;border-radius:8px;background:#fff;color:#40506a;font:inherit;font-size:14px;cursor:pointer}
.il-dict-save{background:#bf293d;border-color:#bf293d;color:#fff;font-weight:600}
.il-dict-add:disabled,.il-dict-option:disabled,.il-dict-save:disabled,.il-dict-cancel:disabled{opacity:.55;cursor:default}
.il-dict-empty,.il-dict-note{margin:0;padding:8px 4px;color:#687589;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
@media(hover:hover){.il-dict-option:hover:not(:disabled){background:#f2f4f7}.il-dict-add:hover:not(:disabled){background:#fce5e8}}
@media(max-width:600px){.il-dict-trigger{font-size:16px;min-height:46px}.il-form .il-dict-search{font-size:16px}.il-dict-panel{max-height:52vh}.il-dictionary-editor input{font-size:16px}}

/* v3.3: grouped intake card; overrides are limited to the incoming dialog. */
.il-dialog.il-dialog-modern{--il-ink:#223047;--il-muted:#6b778b;--il-line:#dce3ec;--il-brand:#c52c3d;box-sizing:border-box;width:min(940px,94vw);max-width:94vw;max-height:92vh;max-height:92dvh;margin:auto;padding:0;border:1px solid #d9e0e9;border-radius:20px;background:#f4f6f9;color:var(--il-ink);box-shadow:0 24px 80px #17263e33;scroll-padding-top:118px;scroll-padding-bottom:106px;-webkit-overflow-scrolling:touch}
.il-dialog-modern::backdrop{background:#15243e70}
.il-dialog-modern [hidden]{display:none!important}
.il-dialog-modern .il-head{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap;padding:22px 26px 20px;border-bottom:1px solid #e1e6ee;background:#fff}
.il-dialog-modern .il-title-group{min-width:0}
.il-dialog-modern .il-eyebrow{display:block;margin:0 0 5px;color:#8a6370;font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.il-dialog-modern #il-title{margin:0;color:#1d2b42;font-size:24px;line-height:1.24;font-weight:700;letter-spacing:-.025em}
.il-dialog-modern .il-subtitle{margin:6px 0 0;color:var(--il-muted);font-size:13px;line-height:1.45}
.il-dialog-modern .il-head>button{flex:none;min-height:44px;padding:10px 15px;border:1px solid #dce3ec;border-radius:10px;background:#fff;color:#526077;font:inherit;font-size:13px;font-weight:600;box-shadow:none;cursor:pointer}
.il-dialog-modern .il-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:0;padding:22px}
.il-dialog-modern .il-section{position:relative;min-width:0;margin:0;padding:20px;border:1px solid #e0e6ee;border-radius:15px;background:#fff;box-shadow:0 2px 4px #17263e03;overflow:visible}
.il-dialog-modern .il-section-head{display:flex;align-items:flex-start;gap:11px;min-width:0;margin:0 0 18px}
.il-dialog-modern .il-section-head>div{min-width:0;flex:1}
.il-dialog-modern .il-section-step{display:flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:28px;height:28px;margin-top:1px;border:1px solid #e8dce0;border-radius:9px;background:#fff4f6;color:#ac3043;font-size:12px;line-height:1;font-weight:700}
.il-dialog-modern .il-section-title{margin:0;color:#27364d;font-size:15px;line-height:1.4;font-weight:700;letter-spacing:-.01em}
.il-dialog-modern .il-section-hint{margin:3px 0 0;color:var(--il-muted);font-size:12px;line-height:1.45}
.il-dialog-modern .il-section-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px 20px;min-width:0}
.il-dialog-modern .il-section-fields>*{box-sizing:border-box;min-width:0;max-width:100%}
.il-dialog-modern .il-form label,.il-dialog-modern .il-phone-field,.il-dialog-modern .il-dictionary{gap:7px;color:#47556b;font-size:13px;line-height:1.4;font-weight:500}
.il-dialog-modern .il-form input,.il-dialog-modern .il-form select,.il-dialog-modern .il-form textarea,.il-dialog-modern .il-handoff input,.il-dialog-modern .il-handoff select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:47px;padding:12px 13px;border:1px solid #cfd8e5;border-radius:10px;background-color:#fff;color:#25344b;font:inherit;font-size:15px;line-height:1.4;font-weight:400;box-shadow:0 1px 2px #192d4d03;outline:none;transition:border-color .15s,box-shadow .15s}
.il-dialog-modern .il-form textarea{min-height:104px;resize:vertical}
.il-dialog-modern .il-form input::placeholder,.il-dialog-modern .il-form textarea::placeholder{color:#8a96a8;font-size:14px;opacity:1}
.il-dialog-modern .il-form input:focus,.il-dialog-modern .il-form select:focus,.il-dialog-modern .il-form textarea:focus,.il-dialog-modern .il-handoff input:focus,.il-dialog-modern .il-handoff select:focus{border-color:#be4354;box-shadow:0 0 0 3px #c52c3d12}
.il-dialog-modern .il-form input:disabled,.il-dialog-modern .il-form select:disabled,.il-dialog-modern .il-form textarea:disabled{background:#f4f6f9;border-color:#e0e5ed;color:#69778a;-webkit-text-fill-color:#69778a;opacity:1}
.il-dialog-modern .il-form select,.il-dialog-modern .il-handoff select{appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2376869c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.il-dialog-modern .il-work-section{border-color:#e5d4d9;background:#fff;box-shadow:inset 3px 0 0 #c52c3d}
.il-dialog-modern .il-work-section .il-section-title{color:#9f2b3d}
.il-dialog-modern .il-stage-field>select{border-color:#ddbcc3;background-color:#fff9fa;color:#9f2b3d;font-weight:600}
.il-dialog-modern .il-stage-badge,.il-dialog-modern .il-status-label{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 9px;border:1px solid #e0e5ed;border-radius:7px;background:#f6f8fb;color:#59687d;font-size:11px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.il-dialog-modern .il-stage-badge[data-stage=qualified]{border-color:#cce8de;background:#eef8f3;color:#287657}
.il-dialog-modern .il-stage-badge[data-stage=lost]{border-color:#edced4;background:#fff1f3;color:#a13245}
.il-dialog-modern .il-stage-badge[data-stage=handed_off]{border-color:#d2e0f5;background:#eff5ff;color:#3b6b9f}
.il-dialog-modern .il-stage-badge[data-stage=contact],.il-dialog-modern .il-stage-badge[data-stage=needs]{border-color:#ebdec3;background:#fff9ed;color:#8c6b29}
.il-dialog-modern .il-due-field{min-width:0;max-width:100%;overflow:hidden}
.il-dialog-modern .il-form input[type=datetime-local]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-inline-size:0;max-inline-size:100%;overflow:hidden;text-align:left;white-space:nowrap;-webkit-appearance:none}
.il-dialog-modern input[type=datetime-local]::-webkit-datetime-edit{display:inline-flex;box-sizing:border-box;min-width:0;max-width:100%;padding:0;text-align:left}
.il-dialog-modern input[type=datetime-local]::-webkit-date-and-time-value{min-width:0;max-width:100%;text-align:left}
.il-dialog-modern input[type=datetime-local]::-webkit-calendar-picker-indicator{flex-shrink:0;max-width:20px;margin-left:4px;opacity:.65}
.il-dialog-modern .il-phone-composite{box-sizing:border-box;min-width:0;max-width:100%;min-height:47px;border:1px solid #cfd8e5;border-radius:10px;background:#fff;box-shadow:0 1px 2px #192d4d03}
.il-dialog-modern .il-phone-composite:focus-within{border-color:#be4354;box-shadow:0 0 0 3px #c52c3d12}
.il-dialog-modern .il-phone-composite .phone-country{width:106px;flex:0 0 106px;max-width:106px;min-height:45px;padding:10px 25px 10px 9px;border:0;border-right:1px solid #e1e6ee;border-radius:0;background-position:right 6px center;background-size:14px;background-color:#f7f9fc;font-size:13px;box-shadow:none}
.il-dialog-modern .il-phone-composite .phone-prefix{padding:0 7px;color:#58677d;font-size:14px}
.il-dialog-modern .il-phone-composite .phone-national{width:0;min-width:0;max-width:none;flex:1;min-height:45px;padding:10px 9px 10px 0;border:0;border-radius:0;font-size:14px;box-shadow:none}
.il-dialog-modern .il-phone-composite .phone-other-code{width:42px;flex:0 0 42px;max-width:42px;min-height:45px;padding:10px 2px;border:0;border-radius:0;box-shadow:none}
.il-dialog-modern .il-phone-composite input:focus,.il-dialog-modern .il-phone-composite select:focus{box-shadow:none}
.il-dialog-modern .il-dictionary>label{color:#47556b;font-size:13px;line-height:1.4;font-weight:500}
.il-dialog-modern .il-dict-trigger{min-height:47px;padding:12px 13px;border-color:#cfd8e5;border-radius:10px;background:#fff;font-size:15px;line-height:1.4;font-weight:400}
.il-dialog-modern .il-dict-trigger[aria-expanded=true]{border-color:#be4354;box-shadow:0 0 0 3px #c52c3d12}
.il-dialog-modern .il-dict-panel{z-index:40;padding:10px;border-radius:12px;box-shadow:0 12px 32px #17263e22}
.il-dialog-modern .il-form .il-dict-search{min-height:44px;padding:10px 12px;background:#f6f8fb;font-size:14px}
.il-dialog-modern .il-dict-option,.il-dialog-modern .il-dict-add{min-height:45px;font-size:14px}
.il-dialog-modern .il-dictionary-editor{gap:8px}
.il-dialog-modern .il-dictionary-editor input{min-height:44px}
.il-dialog-modern .il-dict-save,.il-dialog-modern .il-dict-cancel{min-height:44px}
.il-dialog-modern .il-geo-status{margin-top:-5px;gap:8px;padding:0;color:var(--il-muted);font-size:12px}
.il-dialog-modern .il-geo-status:has(p:empty):has(button[hidden]){display:none}
.il-dialog-modern .il-geo-status button{min-height:40px;padding:8px 11px;border:1px solid #dce3ec;border-radius:8px;background:#fff;font-size:12px}
.il-dialog-modern .il-attachments-section .il-file-picker{margin:0;gap:12px}
.il-dialog-modern .il-attachments-section .il-file-picker>h4{display:none}
.il-dialog-modern .il-file-grid{gap:10px}
.il-dialog-modern .il-upload-tile,.il-dialog-modern .il-file-card{width:118px;flex-basis:118px;border-radius:12px}
.il-dialog-modern .il-upload-tile{height:118px;border-color:#d9aab3;background:#fff8f9}
.il-dialog-modern .il-file-card{min-height:118px;background:#f8fafc;border-color:#dce3ed;padding:11px 10px}
.il-dialog-modern .il-file-download,.il-dialog-modern .il-file-queue .il-file-card{height:118px;min-height:118px}
.il-dialog-modern .il-file-kind{font-size:12px;letter-spacing:.04em}
.il-dialog-modern .il-file-name{font-size:12px;color:#3e4e64}
.il-dialog-modern .il-file-saved,.il-dialog-modern .il-upload-state{font-size:10px}
.il-dialog-modern .il-file-picker>.wf-muted{color:#778498;font-size:12px;line-height:1.5}
.il-dialog-modern .il-file-status{margin:0;font-size:12px;line-height:1.45}
.il-dialog-modern .il-actions{position:sticky;bottom:0;z-index:45;display:flex;align-items:center;justify-content:space-between;gap:18px;box-sizing:border-box;min-width:0;margin:0 -22px -22px;padding:16px 22px max(16px,env(safe-area-inset-bottom));border-top:1px solid #dce3ec;background:#fff;box-shadow:0 -6px 20px #17263e06}
.il-dialog-modern .il-save-hint{max-width:390px;margin:0;color:#7b8799;font-size:12px;line-height:1.45}
.il-dialog-modern .il-actions>button.primary{flex:0 0 auto;min-width:190px;min-height:47px;margin:0;padding:12px 24px;border:1px solid #c52c3d;border-radius:10px;background:#c52c3d;color:#fff;font:inherit;font-size:14px;font-weight:650;box-shadow:0 3px 8px #c52c3d18;cursor:pointer}
.il-dialog-modern .il-actions>button.primary:disabled{opacity:.65;cursor:default}
.il-dialog-modern .il-handoff{margin:0 22px 22px;padding:20px;gap:14px;border:1px solid #d6e4db;border-radius:15px;background:#fff}
.il-dialog-modern .il-handoff h3{margin:0;color:#2d5c46;font-size:16px;line-height:1.4}
.il-dialog-modern .il-handoff>p{margin:0;color:#718176;font-size:13px;line-height:1.5}
.il-dialog-modern .il-handoff>button{min-height:44px;border-radius:9px}
.il-dialog-modern .il-history{margin:0 22px 22px;padding:20px;border:1px solid #e0e6ee;border-radius:15px;background:#fff}
.il-dialog-modern .il-history-title{margin:0 0 14px;font-size:15px;font-weight:700;color:#43536b}
.il-dialog-modern .il-history-list{display:grid;gap:0}
.il-dialog-modern .il-history .wf-event{position:relative;margin:0;padding:11px 0;border-bottom:1px solid #edf0f5;border-radius:0;background:transparent;color:#7c889a;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.il-dialog-modern .il-history .wf-event:last-child{border-bottom:0;padding-bottom:0}
.il-dialog-modern>.alert{margin:0 22px 18px;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.5}
@media(hover:hover){.il-dialog-modern .il-head>button:hover{background:#f6f8fb;border-color:#c8d2df}.il-dialog-modern .il-actions>button.primary:hover:not(:disabled){background:#b92335;border-color:#b92335}}
@media(max-width:760px){.il-dialog.il-dialog-modern{width:96vw;max-width:96vw}.il-dialog-modern .il-head{padding:18px 20px}.il-dialog-modern .il-form{padding:16px;gap:14px}.il-dialog-modern .il-section{padding:17px}.il-dialog-modern .il-section-fields{gap:16px}.il-dialog-modern .il-actions{margin:0 -16px -16px;padding:14px 16px max(14px,env(safe-area-inset-bottom))}.il-dialog-modern .il-handoff,.il-dialog-modern .il-history{margin-right:16px;margin-left:16px}.il-dialog-modern .il-actions>button.primary{min-width:170px}}
@media(max-width:600px){.il-dialog.il-dialog-modern{width:96vw;max-width:96vw;max-height:94vh;max-height:94dvh;border-radius:15px;scroll-padding-top:110px;scroll-padding-bottom:112px}.il-dialog-modern .il-head{align-items:flex-start;gap:10px;padding:17px 16px}.il-dialog-modern #il-title{font-size:20px}.il-dialog-modern .il-subtitle{font-size:12px}.il-dialog-modern .il-head>button{min-height:42px;padding:10px 11px;font-size:12px}.il-dialog-modern .il-eyebrow{font-size:9px}.il-dialog-modern .il-form{padding:12px;gap:12px}.il-dialog-modern .il-section{padding:16px 14px;border-radius:12px}.il-dialog-modern .il-section-head{gap:9px;margin-bottom:16px}.il-dialog-modern .il-section-step{width:26px;height:26px;font-size:11px;border-radius:8px}.il-dialog-modern .il-section-title{font-size:14px}.il-dialog-modern .il-section-hint{font-size:11px}.il-dialog-modern .il-section-fields{grid-template-columns:minmax(0,1fr);gap:16px}.il-dialog-modern .il-form input,.il-dialog-modern .il-form select,.il-dialog-modern .il-form textarea,.il-dialog-modern .il-dict-trigger,.il-dialog-modern .il-handoff input,.il-dialog-modern .il-handoff select{font-size:16px;min-height:48px}.il-dialog-modern .il-phone-composite{min-height:48px}.il-dialog-modern .il-phone-composite .phone-country{flex-basis:100px;width:100px;max-width:100px;min-height:46px;font-size:13px}.il-dialog-modern .il-phone-composite .phone-national,.il-dialog-modern .il-phone-composite .phone-other-code{min-height:46px;font-size:16px}.il-dialog-modern .il-phone-composite .phone-prefix{padding:0 6px;font-size:14px}.il-dialog-modern .il-form .il-dict-search{font-size:16px}.il-dialog-modern .il-upload-tile,.il-dialog-modern .il-file-card{width:104px;flex-basis:104px}.il-dialog-modern .il-upload-tile,.il-dialog-modern .il-file-download,.il-dialog-modern .il-file-queue .il-file-card{height:104px;min-height:104px}.il-dialog-modern .il-file-grid{gap:9px}.il-dialog-modern .il-file-card{min-height:104px;padding:9px 8px}.il-dialog-modern .il-actions{gap:10px;margin:0 -12px -12px;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));align-items:center}.il-dialog-modern .il-save-hint{flex:1;font-size:10px;line-height:1.4}.il-dialog-modern .il-actions>button.primary{min-width:0;max-width:58%;min-height:46px;padding:11px 16px;font-size:13px}.il-dialog-modern .il-handoff,.il-dialog-modern .il-history{margin:0 12px 12px;padding:16px 14px;border-radius:12px}.il-dialog-modern>.alert{margin:0 12px 12px}.il-dialog-modern .il-status-label,.il-dialog-modern .il-stage-badge{font-size:10px}}
@media(prefers-reduced-motion:reduce){.il-dialog-modern *{scroll-behavior:auto!important;transition:none!important}}
/* Labels and the inline save message share the grouped card's layout. */
.il-dialog-modern .il-required>.il-field-label::after,.il-dialog-modern .il-phone-field.il-required>span:first-child::after,.il-dialog-modern .il-dictionary.il-required>label::after{content:" *";color:#bf4356;font-size:12px;font-weight:600}
.il-dialog-modern .il-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px}
.il-dialog-modern .il-actions>.alert{grid-column:1/-1;min-width:0;max-width:100%;margin:0;padding:10px 12px;border-radius:9px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.il-dialog-modern .il-actions>.il-save-hint{grid-column:1;min-width:0}
.il-dialog-modern .il-actions>button.primary{grid-column:2;justify-self:end;max-width:100%}
.il-dialog-modern .il-title-group>.il-status-label{margin-top:7px}
@media(max-width:600px){.il-dialog-modern .il-actions{gap:7px 10px;grid-template-columns:minmax(0,1fr) auto}.il-dialog-modern .il-actions>button.primary{max-width:none}.il-dialog-modern .il-actions>.alert{font-size:12px}.il-dialog-modern .il-required>.il-field-label::after{font-size:12px}}
/* History is opened separately so the intake card keeps a stable length. */
.il-dialog-modern>.il-history{display:flex;align-items:center;justify-content:flex-start;margin:0 22px 22px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.il-dialog-modern .il-history-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid #d5deea;border-radius:10px;background:#fff;color:#53637a;font:inherit;font-size:13px;font-weight:600;box-shadow:0 1px 2px #17263e03;cursor:pointer}
.il-dialog-modern .il-history-toggle:focus-visible{outline:2px solid #bc3045;outline-offset:2px}
.il-dialog-modern .il-history-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(70vh,600px);max-height:min(70dvh,600px);margin:auto;padding:0;overflow:hidden;border:1px solid #d5deea;border-radius:17px;background:#fff;color:#27364d;box-shadow:0 22px 70px #17263e33}
.il-dialog-modern .il-history-dialog[open]{display:flex;flex-direction:column}
.il-dialog-modern .il-history-dialog::backdrop{background:#15243e80}
.il-dialog-modern .il-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex:none;min-width:0;padding:20px 22px;border-bottom:1px solid #e4e9f0;background:#fff}
.il-dialog-modern .il-history-head>div{min-width:0}
.il-dialog-modern .il-history-dialog .il-history-title{margin:0;color:#26364e;font-size:17px;line-height:1.4;font-weight:700}
.il-dialog-modern .il-history-subtitle{margin:4px 0 0;color:#7b8799;font-size:12px;line-height:1.5}
.il-dialog-modern .il-history-head>button{flex:none;min-height:44px;padding:10px 13px;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#52627a;font:inherit;font-size:12px;font-weight:600;box-shadow:none;cursor:pointer}
.il-dialog-modern .il-history-dialog .il-history-list{display:block;flex:1 1 auto;min-height:0;max-width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:4px 22px 14px;background:#fbfcfe}
.il-dialog-modern .il-history-dialog .wf-event{position:relative;margin:0;padding:14px 0 14px 16px;border:0;border-bottom:1px solid #e8edf4;border-radius:0;background:transparent;color:#64738a;font-size:13px;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
.il-dialog-modern .il-history-dialog .wf-event::before{content:"";position:absolute;left:0;top:22px;width:5px;height:5px;border-radius:50%;background:#c89ca7}
.il-dialog-modern .il-history-dialog .wf-event:last-child{border-bottom:0}
@media(hover:hover){.il-dialog-modern .il-history-toggle:hover,.il-dialog-modern .il-history-head>button:hover{background:#f6f8fb;border-color:#c6d1df}}
@media(max-width:760px){.il-dialog-modern>.il-history{margin:0 16px 16px}}
@media(max-width:600px){.il-dialog-modern>.il-history{margin:0 12px 14px}.il-dialog-modern .il-history-toggle{width:100%;font-size:13px}.il-dialog-modern .il-history-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:76vh;max-height:76dvh;border-radius:14px}.il-dialog-modern .il-history-head{gap:12px;padding:16px}.il-dialog-modern .il-history-dialog .il-history-title{font-size:15px}.il-dialog-modern .il-history-head>button{padding:10px;font-size:11px}.il-dialog-modern .il-history-subtitle{font-size:11px}.il-dialog-modern .il-history-dialog .il-history-list{padding:2px 16px 12px}.il-dialog-modern .il-history-dialog .wf-event{font-size:12px}}
/* Keep the required mark beside a dictionary caption. */
.il-dialog-modern .il-dictionary>label{display:block}
/* v3.5: CRM-backed client selection and a review before transfer. */
.il-dialog-modern .il-handoff-v35{display:grid;gap:16px;border-color:#d2e2da}
.il-handoff-v35 .il-client-picker{position:relative;display:grid;gap:7px;min-width:0}
.il-handoff-v35 .il-client-picker>label{display:block;font-size:13px;color:#47556b}
.il-handoff-v35 .il-client-menu{z-index:42;max-height:min(460px,60dvh)}
.il-handoff-v35 .il-client-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-width:0}
.il-handoff-v35 .il-client-search-row>button{min-height:44px;padding:9px 12px;border-radius:9px}
.il-handoff-v35 .il-client-option{min-width:0;align-items:flex-start}
.il-handoff-v35 .il-client-option>span{display:grid;gap:4px;min-width:0}
.il-handoff-v35 .il-client-option strong{font-weight:600;color:#2b3c51}
.il-handoff-v35 .il-client-option small{font-size:12px;line-height:1.4;color:#788597;overflow-wrap:anywhere}
.il-handoff-v35 .il-client-summary{box-sizing:border-box;display:grid;gap:10px;padding:16px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc;min-width:0}
.il-handoff-v35 .il-client-summary-name{font-size:16px;color:#253b4d;overflow-wrap:anywhere}
.il-handoff-v35 .il-client-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0}
.il-handoff-v35 .il-client-facts>div{min-width:0}.il-handoff-v35 .il-client-facts dt{font-size:11px;color:#7a8698;margin-bottom:3px}
.il-handoff-v35 .il-client-facts dd{font-size:13px;color:#34465c;margin:0;overflow-wrap:anywhere}
.il-handoff-v35 .il-client-summary>button{justify-self:start;min-height:44px;padding:9px 13px;border-radius:9px}
.il-handoff-v35 .il-transfer-hint{margin:0;color:#748195;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.il-handoff-v35 .il-client-notice{margin:0;padding:12px;border:1px solid #dce5ef;border-radius:10px;background:#f4f8fc;color:#405b74;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.il-handoff-v35 [hidden]{display:none!important}
@media(max-width:600px){.il-handoff-v35 .il-client-facts{grid-template-columns:minmax(0,1fr)}.il-handoff-v35 .il-client-menu{max-height:58dvh}.il-handoff-v35 .il-client-search-row{gap:6px}.il-handoff-v35 .il-client-search-row>button{padding:9px 10px}}
/* v3.6: distinguish an active request from an error. */
.rs-create-status,#client-form-status{box-sizing:border-box;margin:10px 0;padding:11px 13px;border:1px solid #dbe5f0;border-radius:10px;background:#f3f7fc;color:#435d78;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.rs-create-status[hidden],#client-form-status[hidden]{display:none!important}
#client-form[aria-busy=true]{cursor:progress}
.il-dialog-modern #il-form-message:not(.error){background:#f3f7fc;color:#435d78;border:1px solid #dbe5f0}

/* v3.6.2: dictionaries use the native modal layer above the intake card. */
.il-dialog-modern .il-dict-trigger,.il-dialog-modern .il-dict-modal button{-webkit-tap-highlight-color:transparent}
.il-dialog-modern dialog.il-dict-panel.il-dict-modal{position:fixed;inset:auto;left:50%;top:50vh;transform:translate(-50%,-50%);box-sizing:border-box;width:560px;max-width:calc(100vw - 32px);min-width:0;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:0;padding:14px;border:1px solid #d5deea;border-radius:16px;background:#fff;color:#27364d;box-shadow:0 22px 70px #17263e33;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;gap:10px;scroll-padding:12px;z-index:auto}
.il-dialog-modern dialog.il-dict-panel.il-dict-modal:not([open]),.il-dialog-modern dialog.il-dict-panel.il-dict-modal[hidden]{display:none!important}
.il-dialog-modern dialog.il-dict-panel.il-dict-modal[open]:not([hidden]){display:flex;flex-direction:column}
.il-dialog-modern dialog.il-dict-panel.il-dict-modal::backdrop{background:#15243e80}
.il-dialog-modern .il-dict-modal .il-dict-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:0 0 auto;position:sticky;top:0;z-index:1;box-sizing:border-box;min-width:0;margin:0 0 2px;padding:0 0 12px;border-bottom:1px solid #e4e9f0;background:#fff}
.il-dialog-modern .il-dict-modal-head>h3{min-width:0;margin:0;color:#25354e;font-size:17px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}
.il-dialog-modern .il-dict-modal-head>button.secondary{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;min-width:44px;min-height:44px;margin:0;padding:10px 13px;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#52627a;font:inherit;font-size:13px;line-height:1.4;font-weight:600;box-shadow:none;cursor:pointer}
.il-dialog-modern .il-dict-modal>.il-dict-add{flex:0 0 auto;box-sizing:border-box;min-height:45px;margin:0;padding:10px 12px;font-size:14px;line-height:1.4}
.il-dialog-modern .il-dict-modal>.il-dictionary-editor{flex:0 0 auto;box-sizing:border-box;min-width:0;min-height:0;max-width:100%;margin:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.il-dialog-modern .il-dict-modal .il-dictionary-editor>input{box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;margin:0;font-size:16px;line-height:1.4}
.il-dialog-modern .il-dict-modal .il-dictionary-editor>.il-dict-save,.il-dialog-modern .il-dict-modal .il-dictionary-editor>.il-dict-cancel{box-sizing:border-box;min-width:0;min-height:44px;margin:0;padding:10px 12px;font-size:14px;line-height:1.4}
.il-dialog-modern .il-dict-modal>.il-dict-note{flex:0 1 auto;box-sizing:border-box;min-width:0;min-height:0;max-height:70px;margin:0;padding:7px 4px;overflow:auto;overscroll-behavior:contain;font-size:13px;line-height:1.45}
.il-dialog-modern .il-dict-modal>input.il-dict-search{flex:0 0 auto;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid #dce3ed;border-radius:9px;background:#f6f8fb;color:#27364d;font:inherit;font-size:16px;line-height:1.4}
.il-dialog-modern .il-dict-modal>.il-dict-options{display:flex;flex-direction:column;gap:3px;flex:1 1 auto;box-sizing:border-box;min-width:0;min-height:44px;max-width:100%;max-height:none;margin:0;padding:2px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:4px}
.il-dialog-modern .il-dict-modal .il-dict-options>.il-dict-option{flex:0 0 auto;box-sizing:border-box;min-width:0;max-width:100%;min-height:45px;margin:0;padding:11px 12px;font-size:14px;line-height:1.45}
.il-dialog-modern .il-dict-modal>.il-dict-empty{flex:0 0 auto;box-sizing:border-box;min-width:0;margin:0;padding:8px 4px;color:#6b778b;font-size:13px;line-height:1.5}
.il-dialog-modern .il-dict-modal>.il-dictionary-editor[hidden],.il-dialog-modern .il-dict-modal>.il-dict-note[hidden],.il-dialog-modern .il-dict-modal>.il-dict-empty[hidden]{display:none!important}
.il-dialog-modern .il-dict-modal-head>button:focus-visible{outline:2px solid #bc3045;outline-offset:2px}
@media(hover:hover){.il-dialog-modern .il-dict-modal-head>button.secondary:hover:not(:disabled){background:#f6f8fb;border-color:#c6d1df}}
@media(max-width:600px){.il-dialog-modern dialog.il-dict-panel.il-dict-modal{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:12px;gap:8px;border-radius:14px}.il-dialog-modern .il-dict-modal .il-dict-modal-head{gap:10px;padding-bottom:10px}.il-dialog-modern .il-dict-modal-head>h3{font-size:16px}.il-dialog-modern .il-dict-modal-head>button.secondary{font-size:12px;padding:10px 12px}.il-dialog-modern .il-dict-modal>.il-dict-add{font-size:14px}.il-dialog-modern .il-dict-modal .il-dict-options>.il-dict-option{min-height:46px;font-size:14px}}
/* With a very small keyboard viewport, controls stay reachable through modal scroll. */
@media(max-height:430px){.il-dialog-modern dialog.il-dict-panel.il-dict-modal{overflow:auto}.il-dialog-modern .il-dict-modal>.il-dictionary-editor{flex-shrink:0}.il-dialog-modern .il-dict-modal>.il-dict-options{flex:1 0 88px;max-height:180px}}

/* CRM customer selection in the contact section uses the same modal surface. */
.il-dialog-modern .il-contact-section .il-customer-trigger{box-sizing:border-box;align-self:stretch;min-width:0;width:100%;max-width:100%;text-align:left}
.il-dialog-modern .il-contact-section .il-field-hint{margin:0;color:#748195;font-size:12px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
.il-dialog-modern .il-customer-summary{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;min-width:0;max-width:100%;padding:15px 16px;border:1px solid #dce5ef;border-radius:11px;background:#f7fafc}
.il-dialog-modern .il-customer-summary[hidden]{display:none!important}
.il-dialog-modern .il-customer-summary>strong{grid-column:1;min-width:0;margin:0;color:#30465b;font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.il-dialog-modern .il-customer-summary>p{grid-column:1;min-width:0;max-width:100%;margin:0;color:#738196;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.il-dialog-modern .il-customer-summary>button.secondary{grid-column:2;grid-row:1/span 2;justify-self:end;box-sizing:border-box;min-width:44px;min-height:44px;max-width:100%;margin:0;padding:10px 13px;border:1px solid #d4dfeb;border-radius:9px;background:#fff;color:#496078;font:inherit;font-size:12px;line-height:1.4;font-weight:600;box-shadow:none;cursor:pointer}
.il-dialog-modern .il-customer-summary>button:disabled{opacity:.6;cursor:default}
.il-dialog-modern .il-customer-modal .il-client-option{align-items:flex-start;text-align:left;min-width:0;max-width:100%}
.il-dialog-modern .il-customer-modal .il-client-option>span{display:grid;gap:4px;min-width:0;max-width:100%;white-space:normal}
.il-dialog-modern .il-customer-modal .il-client-option strong{display:block;min-width:0;max-width:100%;color:#2e4259;font-size:14px;line-height:1.45;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.il-dialog-modern .il-customer-modal .il-client-option small{display:block;min-width:0;max-width:100%;color:#78869a;font-size:12px;line-height:1.45;font-weight:400;white-space:normal;overflow-wrap:anywhere}
.il-dialog-modern .il-customer-modal .il-client-option[aria-selected=true] strong{color:#a32e41}
.il-dialog-modern .il-customer-modal .il-client-option[aria-selected=true] small{color:#8a6470}
.il-dialog-modern .il-customer-modal>button.il-customer-more{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;align-self:stretch;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:10px 13px;border:1px solid #d5deea;border-radius:9px;background:#f8fafc;color:#496078;font:inherit;font-size:13px;line-height:1.4;font-weight:600;box-shadow:none;cursor:pointer}
.il-dialog-modern .il-customer-modal>button.il-customer-more[hidden]{display:none!important}
.il-dialog-modern .il-customer-modal>button.il-customer-more:disabled{opacity:.6;cursor:default}
.il-dialog-modern .il-customer-summary>button:focus-visible,.il-dialog-modern .il-customer-modal>button.il-customer-more:focus-visible{outline:2px solid #bc3045;outline-offset:2px}
@media(hover:hover){.il-dialog-modern .il-customer-summary>button.secondary:hover:not(:disabled),.il-dialog-modern .il-customer-modal>button.il-customer-more:hover:not(:disabled){background:#f0f4f8;border-color:#bfcddd}}
@media(max-width:600px){.il-dialog-modern .il-customer-summary{grid-template-columns:minmax(0,1fr);gap:7px;padding:13px 14px}.il-dialog-modern .il-customer-summary>button.secondary{grid-column:1;grid-row:auto;justify-self:start;margin-top:3px;font-size:12px}.il-dialog-modern .il-customer-modal .il-client-option strong{font-size:14px}.il-dialog-modern .il-customer-modal .il-client-option small{font-size:12px}.il-dialog-modern .il-contact-section .il-field-hint{font-size:11px}}
