/* Contacts workspace, matching the connected channel management tools. */
#view-contacts.engagement-view { padding: 0; background: #f9f8f6; color: var(--ink); }
.eng-contacts-app { --contacts-line:var(--line); min-height: calc(100vh - 72px); font-family: inherit; font-size: 13px; }
.eng-contacts-head { height: 64px; padding: 0 28px; display:flex; align-items:center; justify-content:space-between; background:#fff; border-bottom:1px solid var(--contacts-line); }
.eng-contacts-head h1 { margin:0; font-family:inherit; font-size:20px; font-weight:600; letter-spacing:-.4px; }
.eng-contacts-head > div { display:flex; gap:12px; }
.eng-contacts-app .eng-button, .eng-contact-dialog .eng-button { border-radius:6px; min-height:36px; padding:8px 16px; font-size:13px; font-weight:600; box-shadow:none; }
.eng-contacts-app .eng-button:disabled, .eng-contact-dialog .eng-button:disabled { opacity:.45; cursor:default; }
.eng-contacts-workspace { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:calc(100vh - 136px); }
.eng-contacts-rail { display:flex; flex-direction:column; padding:24px 16px 16px; background:#faf9f7; border-right:1px solid var(--contacts-line); }
.eng-contacts-rail .eng-rail-item { width:100%; padding:11px 12px; gap:10px; border-radius:5px; min-height:40px; font-size:13px; }
.eng-contacts-rail .eng-rail-item svg { width:17px; height:17px; color:var(--faint); }
.eng-contacts-rail .eng-rail-item.active { color:var(--accent); background:var(--accent-soft); }
.eng-contacts-rail .eng-rail-item b { font-size:11px; font-weight:500; color:var(--faint); background:none; }
.eng-contacts-rail .eng-rail-label { text-transform:none; letter-spacing:0; font-size:12px; color:var(--faint); font-weight:500; padding:0 12px; display:flex; align-items:center; justify-content:space-between; min-height:28px; }
.eng-contacts-rail .eng-rail-label.spaced { margin-top:26px; margin-bottom:7px; }
.eng-contacts-rail .eng-rail-hint { margin:7px 12px; color:var(--faint); font-size:12px; }
.eng-contacts-rail-footer { margin-top:auto; padding:32px 12px 4px; }
.eng-contacts-rail-footer button { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px; }
.eng-contacts-rail-footer svg { width:16px; }
.eng-contacts-main { padding:24px 28px; min-width:0; display:flex; flex-direction:column; }
.eng-contacts-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:18px; min-height:38px; }
.eng-contacts-toolbar .eng-button { display:flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line-2); }
.eng-contacts-toolbar .eng-button.active { border-color:var(--accent); }
.eng-contacts-toolbar .eng-search { width:260px; max-width:35%; background:transparent; border:0; border-radius:0; min-height:36px; }
.eng-contacts-toolbar .eng-search input { background:transparent; padding-left:0; font-size:13px; }
.eng-contacts-toolbar .eng-search svg { color:var(--faint); width:17px; }
.eng-contacts-selection { display:flex; align-items:center; gap:14px; margin-left:auto; color:var(--faint); white-space:nowrap; font-size:12px; }
.eng-bulk-wrap { position:relative; }
.eng-bulk-menu { position:absolute; z-index:15; top:calc(100% + 6px); right:0; min-width:185px; padding:5px; background:#fff; border:1px solid var(--line); border-radius:7px; box-shadow:0 8px 25px #1d1b1814; }
.eng-menu-item { display:block; border:0; background:none; color:var(--ink); text-align:left; font:inherit; padding:10px 12px; width:100%; border-radius:4px; cursor:pointer; }
.eng-menu-item:hover { background:#f7f5f2; }
.eng-menu-item.danger { color:#c6453d; }
.eng-filter-count { background:var(--accent); color:#fff; min-width:17px; border-radius:9px; font-size:10px; line-height:17px; }
.eng-contact-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:15px; padding:18px; margin:-3px 0 18px; background:#fff; border:1px solid var(--contacts-line); border-radius:6px; }
.eng-contact-filters label { display:flex; flex-direction:column; gap:7px; color:var(--muted); font-size:11px; }
.eng-contact-filters select { min-width:140px; height:34px; border:1px solid var(--line-2); border-radius:5px; padding:0 8px; background:#fff; color:var(--ink-2); font:inherit; }
.eng-contact-filters .eng-text-button { min-height:34px; font-size:12px; }
.eng-contact-segment-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.eng-contacts-table-scroll { overflow:auto; background:#fff; border:1px solid var(--contacts-line); border-radius:5px; min-height:288px; }
.eng-contacts-app .eng-contact-table { width:100%; border-collapse:collapse; font-size:12px; }
.eng-contacts-app .eng-contact-table th { height:42px; padding:0 16px; background:#fff; color:var(--faint); text-transform:none; letter-spacing:0; font-size:11px; font-weight:500; border-bottom:1px solid var(--contacts-line); white-space:nowrap; }
.eng-contacts-app .eng-contact-table td { height:69px; padding:8px 16px; border-bottom:1px solid #f4f1ec; color:var(--muted); }
.eng-contacts-app .eng-contact-table tr:last-child td { border-bottom:0; }
.eng-contacts-app .eng-contact-table tr:hover td { background:#fcfbfa; }
.eng-contacts-app .eng-contact-table tr.checked td { background:var(--accent-soft); }
.eng-contacts-app .eng-check-cell { width:40px; padding-left:18px!important; padding-right:0!important; }
.eng-contacts-app input[type=checkbox] { accent-color:var(--accent); width:15px; height:15px; }
.eng-contacts-app .eng-contact-avatar-cell { width:65px; padding-right:0!important; }
.eng-contacts-app .eng-avatar.small { width:37px; height:37px; border-radius:50%; font-size:12px; }
.eng-contacts-app .eng-contact-link { min-width:125px; text-align:left; }
.eng-contacts-app .eng-contact-link strong { color:var(--accent); font-weight:500; font-size:13px; }
.eng-contacts-app .eng-contact-link small { color:var(--faint); font-size:11px; margin-top:4px; }
.eng-contact-sort { border:0; background:none; padding:0; color:inherit; font:inherit; cursor:pointer; }
.eng-contacts-app .eng-channel { font-size:11px; gap:5px; }
.eng-contacts-app .eng-badge { font-size:11px; background:transparent; padding:0; gap:5px; }
.eng-contacts-app .eng-badge i { width:6px; height:6px; }
.eng-contacts-app .eng-tag { padding:3px 7px; border-radius:3px; font-size:10px; color:var(--muted); background:#f6f4f0; border:none; }
.eng-contacts-pagination { display:flex; align-items:center; gap:22px; padding:19px 0; color:var(--faint); font-size:11px; }
.eng-contacts-pagination > label { margin-left:auto; display:flex; align-items:center; gap:8px; }
.eng-contacts-pagination select { background:transparent; color:var(--muted); border:0; font:inherit; }
.eng-contacts-pagination > div { display:flex; align-items:center; gap:12px; }
.eng-contacts-pagination .eng-icon-button { width:26px; height:26px; font-size:20px; color:var(--faint); border:1px solid var(--line); border-radius:4px; }
.eng-contacts-empty { min-height:290px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--faint); gap:12px; text-align:center; padding:24px; }
.eng-contacts-empty > svg { width:30px; height:30px; stroke:currentColor; fill:none; stroke-width:1.4; }
.eng-contacts-empty strong { font-size:14px; font-weight:500; color:var(--muted); }
.eng-contacts-empty p { font-size:12px; margin:0 0 8px; }
.eng-contact-dialog.eng-dialog { padding:0; width:820px; max-width:calc(100vw - 40px); background:#fff; border-radius:8px; border:1px solid var(--line); }
.eng-contact-profile { display:grid; grid-template-columns:248px minmax(0,1fr); height:min(640px,85vh); min-height:480px; font-size:12px; }
.eng-profile-summary { background:#faf9f7; border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:center; padding:36px 25px 25px; gap:15px; }
.eng-profile-summary > .eng-avatar { width:84px; height:84px; border-radius:50%; font-size:27px; }
.eng-profile-summary > strong { font-size:17px; font-weight:600; }
.eng-profile-summary > .eng-channel { color:var(--muted); font-size:11px; }
.eng-profile-summary > .eng-button { width:100%; margin-top:6px; font-size:11px; padding:9px 8px; }
.eng-profile-summary > .eng-button.primary { margin-top:auto; font-size:13px; }
.eng-profile-summary dl { display:grid; width:100%; grid-template-columns:70px 1fr; font-size:10px; gap:14px 8px; color:var(--faint); margin:10px 0 20px; }
.eng-profile-summary dt { color:var(--faint); }
.eng-profile-summary dd { margin:0; min-width:0; text-align:right; }
.eng-profile-summary .eng-contact-id { overflow-wrap:anywhere; font-size:9px; }
.eng-profile-summary .eng-badge { font-size:10px; padding:0; background:none; }
.eng-profile-content { display:flex; flex-direction:column; min-width:0; min-height:0; }
.eng-profile-content > header { display:flex; align-items:center; justify-content:space-between; height:64px; flex-shrink:0; padding:0 26px; border-bottom:1px solid var(--line); }
.eng-profile-content > header h2 { margin:0; font-family:inherit; font-size:16px; font-weight:600; line-height:1.4; }
.eng-profile-content > header > div { display:flex; align-items:center; gap:8px; }
.eng-profile-content .eng-icon-button svg { width:17px; height:17px; }
.eng-profile-fields { padding:0 26px 20px; overflow:auto; }
.eng-profile-fields section { padding-top:20px; }
.eng-profile-fields h3 { font-family:inherit; font-size:12px; font-weight:600; margin:0 0 12px; color:var(--muted); }
.eng-profile-fields .eng-label { font-size:10px; color:var(--faint); gap:5px; margin:0; }
.eng-profile-fields input, .eng-profile-fields select, .eng-profile-fields textarea { width:100%; border:1px solid var(--line); background:#fff; border-radius:4px; min-height:34px; padding:7px 9px; color:var(--ink-2); font-family:inherit; font-size:12px; box-sizing:border-box; }
.eng-profile-fields input:focus, .eng-profile-fields select:focus, .eng-profile-fields textarea:focus { border-color:var(--accent); outline:0; }
.eng-profile-fields input[readonly], .eng-profile-fields select:disabled { background:#faf9f7; color:var(--faint); }
.eng-profile-fields .eng-form-grid { gap:14px 16px; padding:0; }
.eng-profile-fields .eng-optin-source span { color:var(--faint); font-size:11px; }
.eng-profile-fields .eng-custom-fields-head { display:flex; justify-content:space-between; align-items:center; }
.eng-profile-fields .eng-custom-fields-head .eng-text-button { font-size:11px; margin-bottom:12px; }
.eng-profile-fields .eng-custom-field-row { gap:7px; margin-top:7px; }
.eng-profile-fields .eng-custom-field-row .eng-icon-button { flex-shrink:0; }
.eng-profile-footer { display:flex; justify-content:flex-end; gap:10px; padding:17px 26px; border-top:1px solid var(--line); margin-top:auto; }
.eng-contact-overflow { position:relative; }
.eng-contact-overflow summary { cursor:pointer; list-style:none; padding:5px; }
.eng-contact-overflow summary::-webkit-details-marker { display:none; }
.eng-contact-overflow summary svg { width:20px; height:20px; stroke:currentColor; fill:none; }
.eng-contact-overflow > div { position:absolute; top:100%; right:0; z-index:20; width:160px; padding:5px; background:#fff; box-shadow:0 6px 24px #1d1b1820; border:1px solid var(--line); border-radius:5px; }
@media(max-width:1000px) { .eng-contacts-workspace { grid-template-columns:200px minmax(0,1fr); } .eng-contacts-main { padding:20px 18px; } .eng-contacts-toolbar .eng-search { width:180px; } .eng-contacts-selection { gap:8px; } .eng-contacts-selection > span { display:none; } }
@media(max-width:700px) { .eng-contacts-head { padding:0 16px; } .eng-contacts-head .eng-button { padding:7px 10px; font-size:11px; } .eng-contacts-workspace { grid-template-columns:1fr; } .eng-contacts-rail { flex-direction:row; overflow:auto; padding:10px; border-right:0; border-bottom:1px solid var(--line); gap:5px; } .eng-contacts-rail .eng-rail-item { width:auto; min-width:max-content; } .eng-contacts-rail .eng-rail-label, .eng-contacts-rail .eng-rail-hint, .eng-contacts-rail-footer { display:none; } .eng-contacts-main { padding:16px 10px; } .eng-contacts-toolbar { gap:5px; } .eng-contacts-toolbar .eng-search { flex:1; max-width:100%; width:100px; } .eng-contacts-toolbar .eng-button { font-size:11px; padding:8px; } .eng-contact-profile { grid-template-columns:170px minmax(0,1fr); } .eng-profile-summary { padding:28px 12px 18px; } .eng-profile-summary > strong { font-size:14px; } .eng-profile-content > header { padding:0 15px; } .eng-profile-fields { padding:0 15px 15px; } .eng-profile-fields .eng-form-grid { grid-template-columns:1fr; } .eng-profile-fields .eng-label { grid-column:1; } .eng-profile-summary dl { grid-template-columns:1fr; gap:6px; } .eng-profile-summary dd { text-align:left; margin-bottom:8px; } }

.eng-contact-tools-dialog .eng-dialog-head { padding:22px 26px; border-bottom:1px solid var(--line); align-items:center; }
.eng-contact-tools-dialog .eng-dialog-head .eng-eyebrow { display:none; }
.eng-contact-tools-dialog .eng-dialog-head h2 { font-family:inherit; font-size:18px; font-weight:600; letter-spacing:0; }
.eng-contact-tools-dialog .eng-dialog-footer { background:#fcfbfa; border-radius:0 0 8px 8px; }
.eng-contact-tools-dialog.eng-dialog { border-radius:8px; background:#fff; }
.desk-main:has(> #view-contacts.active) { width:100%; max-width:none; margin:0; padding:0; }
.desk-main:has(> #view-contacts.active) > #view-contacts { min-height:100vh; }
.desk-main:has(> #view-contacts.active) .eng-contacts-app { min-height:100vh; }
.desk-main:has(> #view-contacts.active) .eng-contacts-workspace { min-height:calc(100vh - 64px); }
.eng-tag-remove { border:0; color:inherit; background:none; padding:0 0 0 6px; font-size:13px; cursor:pointer; line-height:1; }
.eng-tag-remove:hover { color:#c34d3a; }
