/* Engagement shares Row Posts' warm paper, charcoal, and coral palette. */
.engagement-view { --eng-border: var(--line, #ebe6de); --eng-paper: var(--surface-2, #fdfcfa); animation: eng-arrive .35s var(--ease, ease) both; }
.engagement-view * { box-sizing: border-box; }
.engagement-view button, .eng-dialog button { font-family: var(--sans); }
.engagement-view svg, .eng-dialog svg { width: 18px; height: 18px; flex-shrink: 0; }
.engagement-view button:focus-visible, .eng-dialog button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.engagement-view input, .engagement-view textarea, .engagement-view select, .eng-dialog input, .eng-dialog textarea, .eng-dialog select { font: inherit; }
.engagement-view input:focus, .engagement-view textarea:focus, .engagement-view select:focus, .eng-dialog input:focus, .eng-dialog textarea:focus, .eng-dialog select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #e0583a13; }
.eng-page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 6px 0 26px; }
.eng-eyebrow { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .13em; line-height: 1.5; }
.eng-page-head h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 4px; }
.eng-title-dot { color: var(--accent); }
.eng-page-head p { color: var(--muted); font-size: 14px; }
.eng-head-actions { display: flex; align-items: center; gap: 8px; }
.eng-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.eng-button:hover:not(:disabled) { background: var(--bg); border-color: #c7beb2; }
.eng-button:active:not(:disabled) { transform: translateY(1px); }
.eng-button.primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 3px 7px #1d1b180e; }
.eng-button.primary:hover:not(:disabled) { background: #39332d; border-color: #39332d; }
.eng-button.primary svg { color: #f2ad93; }
.eng-button.small { font-size: 12px; min-height: 32px; padding: 5px 10px; }
.eng-button.full { width: 100%; }
.eng-button.danger { color: var(--red); background: var(--red-soft); border-color: transparent; }
.eng-button.note { background: var(--amber-soft); color: #76500b; border-color: #e8d5aa; }
.eng-icon-button { width: 31px; height: 31px; border: 1px solid transparent; border-radius: 8px; background: transparent; display: inline-grid; place-items: center; padding: 5px; color: var(--muted); flex-shrink: 0; }
.eng-icon-button:hover { color: var(--ink); background: var(--bg); border-color: var(--line); }
.eng-icon-button.danger:hover { color: var(--red); background: var(--red-soft); }
.eng-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 0; background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.eng-text-button:hover { color: var(--accent); }
.eng-text-button svg { width: 14px; height: 14px; }
.eng-workspace { display: grid; grid-template-columns: 205px minmax(0,1fr); min-height: 580px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 20px #4f3b1e03; }
.eng-rail { position: relative; display: flex; flex-direction: column; padding: 23px 13px 16px; border-right: 1px solid var(--line); background: #f7f4ee; }
.eng-rail-label { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: var(--faint); letter-spacing: .13em; font-weight: 700; padding: 0 10px; margin: 0 0 12px; }
.eng-rail-label.spaced { margin-top: 30px; }
.eng-rail-label > span { font-size: 10px; letter-spacing: 0; }
.eng-rail-item { display: flex; align-items: center; gap: 9px; padding: 11px 10px; width: 100%; background: none; border: 0; border-radius: 8px; font-size: 12px; color: var(--muted); text-align: left; margin: 1px 0; min-height: 40px; }
.eng-rail-item svg { width: 16px; height: 16px; }
.eng-rail-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eng-rail-item > b { font-size: 10px; font-weight: 500; padding: 1px 6px; min-width: 23px; text-align: center; background: #ede8de; border-radius: 5px; }
.eng-rail-item.active { color: var(--ink); background: #fff; font-weight: 650; box-shadow: 0 1px 3px #382b1710; }
.eng-rail-item.active svg { color: var(--accent); }
.eng-rail-item.active > b { color: var(--accent); background: var(--accent-soft); }
.eng-rail-item:hover:not(.active) { color: var(--ink); background: #efeae1; }
.eng-rail-hint { color: var(--faint); font-size: 11px; padding: 0 10px; line-height: 1.7; }
.eng-rail-foot { font-size: 13px; line-height: 1.5; color: var(--faint); padding: 40px 10px 18px; margin-top: auto; }
.eng-local-note { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; color: var(--muted); line-height: 1.6; padding: 13px 10px; border-top: 1px solid var(--line-2); margin-top: 12px; }
.eng-local-note > svg { width: 14px; height: 14px; color: var(--accent); margin-top: 2px; }
.eng-local-note strong { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); margin-bottom: 3px; }
.eng-local-note span { display: block; }
.eng-main { min-width: 0; }
.eng-toolbar { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); min-height: 76px; }
.eng-search { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--faint); }
.eng-search svg { width: 17px; height: 17px; }
.eng-search input { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 5px; width: 240px; max-width: 100%; min-width: 0; outline: none; font-size: 12px; }
.eng-search input::placeholder { color: var(--faint); }
.eng-select-label { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10px; white-space: nowrap; }
.eng-select-label select { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 6px 8px; font-size: 11px; color: var(--muted); }
.eng-toolbar-count { font-size: 11px; color: var(--faint); }
.eng-table-scroll { width: 100%; overflow-x: auto; }
.eng-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.eng-table thead th { font-size: 10px; font-weight: 550; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 12px 18px; white-space: nowrap; }
.eng-table td { border-bottom: 1px solid var(--line); padding: 18px; vertical-align: middle; }
.eng-table tbody tr { transition: background .15s; }
.eng-table tbody tr:hover { background: #fdfbf8; }
.eng-table tbody tr.checked { background: #fef5ef; }
.eng-flow-link { display: flex; align-items: center; gap: 12px; background: none; border: 0; text-align: left; padding: 0; color: var(--ink); min-width: 220px; max-width: 380px; }
.eng-flow-link > span:last-child { min-width: 0; }
.eng-flow-link strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.eng-flow-link:hover strong { color: var(--accent); }
.eng-flow-link small { display: flex; align-items: center; gap: 10px; }
.eng-flow-icon { width: 36px; height: 40px; border-radius: 9px; background: #f4efe7; display: grid; place-items: center; color: #85735e; flex-shrink: 0; }
.eng-flow-icon svg { width: 19px; height: 19px; }
.eng-trigger-summary { color: var(--faint); font-size: 10px; max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 1px solid var(--line-2); padding-left: 10px; }
.eng-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; background: #f1eee8; color: var(--muted); font-size: 10px; padding: 3px 6px; white-space: nowrap; line-height: 1.4; }
.eng-badge i { width: 4px; height: 4px; background: #a59c90; border-radius: 50%; }
.eng-badge.live, .eng-badge.subscribed { color: #3d7951; background: #edf5ed; }
.eng-badge.live i, .eng-badge.subscribed i { background: #579967; }
.eng-badge.paused { color: #977728; background: #fbf3dc; }
.eng-badge.unsubscribed { color: #8d7765; background: #f5ede6; }
.eng-badge.paused i { background: #b89035; }
.eng-channel { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.eng-channel > span { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1px solid #c59b8f; color: #a2695b; border-radius: 4px; font-size: 12px; line-height: 1; }
.eng-channel[data-channel="facebook"] > span { border-radius: 50%; border-color: #7395b5; color: #53779b; }
.eng-channel[data-channel="whatsapp"] > span { border-radius: 50%; border-color: #84a892; color: #639276; }
.eng-numeric { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.eng-muted { color: var(--faint); font-size: 11px; }
.eng-row-actions { display: flex; gap: 3px; }
.eng-row-actions .eng-icon-button { opacity: .5; }
.eng-table tr:hover .eng-row-actions .eng-icon-button, .eng-row-actions .eng-icon-button:focus { opacity: 1; }
.eng-list-foot { display: flex; gap: 15px; align-items: center; justify-content: space-between; color: var(--faint); font-size: 10px; padding: 17px 20px; }
.eng-list-foot > span { font-size: 13px; color: var(--muted); }
.eng-empty { min-height: 450px; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; padding: 35px 20px; }
.eng-empty-illustration { width: 112px; height: 94px; position: relative; display: grid; place-items: center; margin-bottom: 21px; }
.eng-empty-illustration > span { width: 69px; height: 79px; background: #fff; border: 1px solid #ded4c6; border-radius: 13px; transform: rotate(-7deg); box-shadow: 4px 7px 0 #f1e8da; display: grid; place-items: center; color: var(--accent); position: relative; z-index: 1; }
.eng-empty-illustration svg { width: 30px; height: 30px; stroke-width: 1.4; }
.eng-empty-illustration > i { position: absolute; top: 11px; right: 10px; width: 6px; height: 6px; background: #edb29b; border-radius: 50%; }
.eng-empty-illustration > i:last-child { top: auto; bottom: 8px; right: auto; left: 5px; width: 4px; height: 4px; }
.eng-empty h2 { font: var(--title-md); letter-spacing: -.02em; margin-bottom: 10px; }
.eng-empty p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 325px; margin: 0 0 22px; }
.eng-empty > .eng-text-button { margin-top: 12px; font-size: 10px; }
.eng-no-results { padding: 90px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.eng-loading { min-height: 400px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.eng-loading span { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.eng-error { margin: 30px 0; padding: 40px; border: 1px solid var(--line); border-radius: 16px; }
.eng-error h2 { font: var(--title-md); letter-spacing: -.02em; }
.eng-error p { color: var(--muted); margin: 10px 0 20px; }
.eng-sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; }
/* Contact table and profiles */
.eng-check-cell { width: 34px; padding-right: 0!important; }
.eng-check-cell input { width: 13px; height: 13px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.eng-contact-link { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); min-width: 170px; }
.eng-contact-link strong { display: block; font-size: 12px; font-weight: 600; }
.eng-contact-link:hover strong { color: var(--accent); }
.eng-contact-link small { display: block; font-size: 10px; color: var(--faint); margin-top: 3px; }
.eng-avatar { display: inline-grid; place-items: center; width: 62px; height: 62px; border: 1px solid #ead2c4; border-radius: 21px; background: #f3e3d6; color: #a26849; font-size: 19px; font-weight: 500; flex-shrink: 0; }
.eng-avatar[data-tone="1"] { background: #e9ede4; color: #737e57; border-color: #d8dece; }
.eng-avatar[data-tone="2"] { background: #ede7ec; color: #956e8b; border-color: #e1d4dd; }
.eng-avatar[data-tone="3"] { background: #e4eaed; color: #617e90; border-color: #d4e0e6; }
.eng-avatar.small { width: 34px; height: 34px; border-radius: 11px; font-size: 11px; }
.eng-tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.eng-tag { display: inline-flex; border: 1px solid #e7dfd2; border-radius: 5px; color: #86765f; background: #fbf8f3; font-size: 9px; padding: 3px 6px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-bulk-bar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fbf1e9; border-bottom: 1px solid #f0dfd1; font-size: 11px; }
.eng-bulk-bar > strong { margin-right: auto; font-weight: 600; }
/* Flow builder */
.eng-editor { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; margin-top: 4px; }
.eng-editor-head { display: flex; gap: 13px; align-items: center; padding: 17px 18px; border-bottom: 1px solid var(--line); min-height: 85px; }
.eng-editor-title { flex: 1; min-width: 0; }
.eng-editor-title > input { font-size: 15px; font-weight: 600; padding: 3px 4px; margin-left: -4px; border: 1px solid transparent; border-radius: 5px; background: transparent; max-width: 100%; width: 370px; }
.eng-editor-title > span { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.eng-editor-title .eng-save-state { font-size: 9px; color: var(--faint); }
.eng-editor-actions { display: flex; align-items: center; gap: 7px; }
.eng-builder { height: min(760px, calc(100vh - 192px)); min-height: 560px; display: grid; grid-template-columns: 185px minmax(230px, 1fr) 270px; }
.eng-builder-rail { background: #faf8f3; border-right: 1px solid var(--line); padding: 21px 12px 12px; display: flex; flex-direction: column; }
.eng-builder-rail .eng-small-copy { font-size: 13px; line-height: 1.5; color: var(--faint); padding: 0 10px; margin-bottom: 18px; }
.eng-add-step { display: flex; align-items: center; gap: 8px; padding: 9px; margin: 3px 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-2); text-align: left; }
.eng-add-step > span { display: grid; place-items: center; border-radius: 6px; width: 25px; height: 28px; background: #fff2eb; color: #cf7554; }
.eng-add-step > span svg { width: 14px; height: 14px; }
.eng-add-step > span[data-color="amber"] { background: #faf2dc; color: #b08b35; }
.eng-add-step > span[data-color="green"] { background: #eef3e7; color: #7e965b; }
.eng-add-step > span[data-color="blue"] { background: #eaf0f7; color: #6c8baf; }
.eng-add-step strong { font-size: 10px; font-weight: 550; flex: 1; }
.eng-add-step > svg { width: 12px; height: 12px; color: var(--faint); }
.eng-add-step:hover { border-color: #cfbda8; }
.eng-builder-settings { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line); }
.eng-builder-settings .eng-label { font-size: 10px; margin-top: 10px; }
.eng-builder-settings select, .eng-builder-settings input { font-size: 11px; padding: 8px; }
.eng-builder-rail .eng-local-note { margin-top: auto; padding-left: 2px; padding-right: 0; }
.eng-canvas-scroll { position: relative; overflow: auto; background: #f5f2ec; }
.eng-canvas { position: relative; background-image: radial-gradient(#b8ac972e 1px, transparent 1px); background-size: 17px 17px; min-height: 100%; }
.eng-connections { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }
.eng-connections > path, .eng-connections g path { stroke: #c3baad; stroke-width: 1.5; fill: none; }
.eng-connections marker path { stroke: #b7aa97; fill: #b7aa97; }
.eng-connections text { font-family: var(--sans); font-size: 9px; fill: #998b76; stroke: none; }
.eng-trigger-node, .eng-flow-node { position: absolute; display: block; width: 260px; text-align: left; border: 1px solid #dfd7cb; border-radius: 11px; background: #fff; box-shadow: 0 4px 10px #382b1707; padding: 0; color: var(--ink); }
.eng-trigger-node { left: 20px; top: 70px; width: 220px; border-color: #ddc2a4; }
.eng-trigger-node.selected, .eng-flow-node.selected { outline: 2px solid #da8060; outline-offset: 3px; }
.eng-trigger-node:hover, .eng-flow-node:hover { box-shadow: 0 6px 20px #49341512; }
.eng-trigger-node strong { display: block; font-size: 12px; padding: 13px 14px 2px; font-weight: 600; }
.eng-trigger-node > span:last-of-type { display: block; font-size: 10px; color: var(--muted); padding: 2px 14px 15px; line-height: 1.5; }
.eng-node-kicker { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #f0e7d9; border-radius: 11px 11px 0 0; padding: 11px 13px; font-size: 10px; background: #fbf4e8; color: #9b753c; font-weight: 600; line-height: 1.4; }
.eng-node-kicker svg { width: 14px; height: 14px; }
.eng-node-kicker em { font-style: normal; margin-left: auto; font-size: 9px; font-weight: 400; opacity: .6; }
.eng-node-kicker[data-color="coral"] { background: #fff5ef; color: #b8765c; border-color: #f7e6dc; }
.eng-node-kicker[data-color="green"] { background: #f4f7ef; color: #7b8d5e; border-color: #e8eedf; }
.eng-node-kicker[data-color="blue"] { background: #f0f4f9; color: #6b88a2; border-color: #e4ebf4; }
.eng-node-content { padding: 14px 14px 7px; font-size: 11px; line-height: 1.6; min-height: 59px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.eng-node-footer { display: block; padding: 8px 14px 10px; font-size: 9px; color: var(--faint); border-top: 1px solid #f7f4ef; }
.eng-input-dot, .eng-output-dot { position: absolute; height: 8px; width: 8px; border: 1px solid #c8b9a6; background: white; border-radius: 50%; left: calc(50% - 4px); }
.eng-input-dot { top: -5px; }
.eng-output-dot { bottom: -5px; }
.eng-trigger-node .eng-output-dot { left: auto; right: -5px; top: calc(50% - 4px); }
.eng-flow-node { cursor: grab; touch-action: none; user-select: none; }
.eng-flow-node.dragging { z-index: 5; cursor: grabbing; box-shadow: 0 14px 28px #49341519; }
.eng-canvas-caption { position: absolute; top: 15px; left: 20px; font-size: 8px; letter-spacing: .1em; color: #aa9d88; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.eng-canvas-caption svg { width: 12px; height: 12px; }
.eng-canvas-caption > span { font-size: 8px; letter-spacing: 0; color: #b1a695; margin-left: 10px; }
.eng-editor-panel { border-left: 1px solid var(--line); overflow-y: auto; background: var(--surface); }
.eng-panel-head { display: flex; gap: 8px; align-items: center; padding: 17px 14px; border-bottom: 1px solid var(--line); }
.eng-panel-head h3 { font-size: 12px; font-weight: 600; flex: 1; }
.eng-step-icon { display: grid; place-items: center; width: 29px; height: 31px; border-radius: 8px; background: #f6eee6; color: #b27d58; }
.eng-step-icon.coral { color: #ba7454; background: #fff1e7; }
.eng-step-icon.green { color: #79905d; background: #f0f5e8; }
.eng-step-icon.blue { color: #6488a9; background: #edf3f8; }
.eng-step-icon.amber { color: #b18b35; background: #faf2df; }
.eng-step-icon svg { width: 16px; height: 16px; }
.eng-panel-body { padding: 18px 16px; }
.eng-label { display: block; font-size: 11px; font-weight: 550; margin: 0 0 18px; color: var(--ink-2); }
.eng-label input, .eng-label textarea, .eng-label select { display: block; width: 100%; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); padding: 9px 10px; font-size: 12px; color: var(--ink); margin-top: 7px; font-weight: 400; min-height: 36px; }
.eng-label textarea { resize: vertical; line-height: 1.65; }
.eng-label > span { display: block; color: var(--faint); font-size: 10px; font-weight: 400; line-height: 1.65; margin-top: 5px; }
.eng-small-copy { font-size: 11px; line-height: 1.7; color: var(--muted); margin-bottom: 17px; }
.eng-tip { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; color: #998363; background: #faf6ed; border: 1px solid #ede3d0; border-radius: 7px; padding: 10px; line-height: 1.65; margin: 8px 0 18px; }
.eng-tip svg { width: 13px; height: 13px; margin-top: 2px; }
.eng-panel-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 60px 25px; height: 100%; }
.eng-panel-placeholder > svg { width: 30px; height: 30px; color: #c2ad93; margin-bottom: 19px; }
.eng-panel-placeholder h3 { font: var(--title-md); letter-spacing: -.02em; }
.eng-panel-placeholder p { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 11px; }
.eng-panel-placeholder > span { font-size: 9px; color: var(--faint); margin-top: 30px; }
.eng-node-order { display: flex; gap: 5px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.eng-node-order > span { width: 100%; font-size: 10px; color: var(--faint); margin-bottom: 5px; }
.eng-node-order .eng-button { font-size: 9px; padding: 5px 7px; }
.eng-preview-waiting { text-align: center; font-size: 10px; color: var(--faint); line-height: 1.7; padding: 45px 18px; }
.eng-preview-results { padding: 24px 0; }
.eng-preview-status { font-size: 9px; color: var(--muted); text-align: center; margin-bottom: 15px; }
.eng-preview-bubble { background: #f3eee6; color: var(--ink-2); font-size: 11px; padding: 13px; border-radius: 2px 12px 12px 12px; line-height: 1.7; margin: 0 18px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.eng-preview-step { color: #879575; font-size: 9px; display: flex; gap: 7px; align-items: center; margin: 12px 3px; }
.eng-preview-step svg { width: 12px; height: 12px; }
/* Inbox */
.eng-inbox-workspace { display: grid; grid-template-columns: 165px 238px minmax(260px,1fr) 225px; min-height: 600px; height: min(760px, calc(100vh - 220px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 15px; overflow: hidden; }
.eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 165px 238px minmax(260px,1fr); }
.eng-inbox-rail { display: flex; flex-direction: column; padding: 24px 10px 12px; border-right: 1px solid var(--line); background: #f7f4ee; }
.eng-inbox-rail .eng-rail-label { font-size: 8px; letter-spacing: .1em; padding: 0 8px; }
.eng-inbox-rail .eng-rail-item { font-size: 10px; gap: 7px; padding: 10px 8px; }
.eng-inbox-rail .eng-rail-item svg { width: 13px; height: 13px; }
.eng-inbox-rail .eng-rail-item b { font-size: 8px; min-width: 17px; padding: 1px 4px; }
.eng-inbox-rail .eng-local-note { margin-top: auto; padding-left: 5px; padding-right: 0; }
.eng-threads { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fff; }
.eng-thread-search { padding: 18px 12px 12px; }
.eng-thread-search .eng-search { border: 1px solid var(--line); border-radius: 7px; background: #faf9f6; gap: 5px; padding-left: 7px; }
.eng-thread-search .eng-search input { width: 100%; padding: 8px 5px; font-size: 10px; }
.eng-thread-search .eng-search svg { width: 12px; height: 12px; }
.eng-thread-count { display: flex; justify-content: space-between; gap: 8px; padding: 0 13px 12px; font-size: 8px; color: var(--muted); border-bottom: 1px solid var(--line); }
.eng-thread-count span { color: var(--faint); }
.eng-thread-list { overflow-y: auto; flex: 1; }
.eng-thread { width: 100%; display: flex; text-align: left; gap: 9px; padding: 17px 12px; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
.eng-thread:hover { background: #fcfaf6; }
.eng-thread.active { background: #fcf2eb; border-left-color: var(--accent); }
.eng-thread .eng-avatar { width: 29px; height: 31px; border-radius: 9px; font-size: 9px; }
.eng-thread-content { flex: 1; min-width: 0; }
.eng-thread-content > span { display: flex; gap: 7px; align-items: center; justify-content: space-between; }
.eng-thread-content strong { font-size: 10px; font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.eng-thread-content time { font-size: 8px; color: var(--faint); flex-shrink: 0; }
.eng-thread-content p { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 4px 0 8px; }
.eng-thread-content > small { display: flex; align-items: center; justify-content: space-between; font-size: 8px; color: var(--faint); }
.eng-thread-content .eng-channel { font-size: 8px; }
.eng-thread-content .eng-channel > span { width: 11px; height: 11px; font-size: 9px; }
.eng-threads-empty { padding: 55px 25px; text-align: center; display: flex; align-items: center; flex-direction: column; color: var(--faint); }
.eng-threads-empty svg { margin-bottom: 14px; width: 26px; height: 26px; stroke-width: 1.4; color: #c3b59f; }
.eng-threads-empty strong { font: var(--title-sm); color: var(--ink-2); }
.eng-threads-empty p { font-size: 10px; line-height: 1.7; margin-top: 8px; }
.eng-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fcfbf8; }
.eng-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; min-height: 77px; border-bottom: 1px solid var(--line); background: var(--surface); }
.eng-chat-head > div:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.eng-chat-head > div:first-child > span { min-width: 0; }
.eng-chat-head strong { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 150px; }
.eng-chat-head .eng-channel { margin-top: 4px; font-size: 8px; }
.eng-chat-head-actions { display: flex; gap: 8px; align-items: center; }
.eng-chat-head-actions .eng-button { font-size: 10px; gap: 4px; padding: 5px 7px; }
.eng-chat-head-actions .eng-button svg { width: 12px; height: 12px; }
.eng-assignee { color: var(--faint); font-size: 8px; }
.eng-assignee select { display: block; border: 1px solid transparent; padding: 2px 3px 2px 0; background: transparent; font-size: 9px; color: var(--muted); max-width: 97px; }
.eng-transcript { padding: 18px 20px 25px; overflow-y: auto; flex: 1; min-height: 150px; scroll-behavior: smooth; }
.eng-conversation-start { color: #b2a592; font-size: 8px; text-align: center; margin: 3px 0 30px; }
.eng-chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
.eng-chat-message.outgoing { align-items: flex-end; }
.eng-message-bubble { max-width: 88%; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 3px 13px 13px 13px; font-size: 11px; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.eng-chat-message.outgoing .eng-message-bubble { background: #f8e8dc; border-color: #f0d8c7; border-radius: 13px 3px 13px 13px; }
.eng-chat-message.note { align-items: center; }
.eng-chat-message.note .eng-message-bubble { background: #fff5d9; border-color: #f1e4bc; color: #957a37; border-radius: 8px; width: 90%; max-width: 90%; font-size: 10px; }
.eng-message-meta { color: #aca18e; font-size: 8px; padding: 6px 2px 0; }
.eng-first-message { text-align: center; color: var(--faint); font-size: 11px; padding-top: 45px; }
.eng-composer { border-top: 1px solid var(--line); background: #fff; padding: 14px 17px 12px; }
.eng-composer.is-note { background: #fffbef; }
.eng-composer-tabs { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.eng-composer-tabs > button { border: 0; padding: 3px 0 6px; border-bottom: 1px solid transparent; background: transparent; color: var(--faint); font-size: 10px; }
.eng-composer-tabs > button.active { color: var(--ink); border-bottom-color: var(--accent); }
.eng-composer-tabs > span { font-size: 8px; color: #b4a898; margin-left: auto; }
.eng-composer textarea { width: 100%; border: 1px solid transparent; resize: vertical; background: transparent; font-size: 11px; line-height: 1.7; padding: 5px 1px; border-radius: 4px; min-height: 72px; max-height: 250px; }
.eng-composer textarea::placeholder { color: #b1a696; }
.eng-composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 9px; }
.eng-composer-bottom > span { font-size: 8px; color: #a89c89; max-width: 230px; line-height: 1.6; }
.eng-composer-bottom .eng-button { min-height: 32px; padding: 6px 10px; font-size: 10px; }
.eng-composer-bottom .eng-button svg { width: 12px; height: 12px; }
.eng-chat-welcome { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 40px 20px; background: radial-gradient(ellipse at 50% 45%, #f8efe3 0%, transparent 68%); }
.eng-chat-welcome-mark { width: 57px; height: 62px; margin-bottom: 35px; transform: rotate(-7deg); display: grid; place-items: center; border: 1px solid #d9c8b2; border-radius: 17px; color: #be8160; background: #fffcf5; box-shadow: 4px 4px 0 #efe4d4; }
.eng-chat-welcome-mark svg { width: 25px; height: 25px; stroke-width: 1.4; }
.eng-chat-welcome .eng-eyebrow { font-size: 8px; color: #b4a38a; }
.eng-chat-welcome h2 { font: var(--title-lg); letter-spacing: -.02em; margin: 15px 0; }
.eng-chat-welcome h2 em { font-weight: 400; color: var(--accent); }
.eng-chat-welcome p { font-size: 11px; line-height: 1.9; color: #9e8f79; margin: 0 0 27px; }
.eng-chat-welcome > .eng-button { font-size: 10px; border-color: #d6c8b5; background: transparent; }
.eng-chat-welcome > .eng-text-button { margin-top: 16px; font-size: 10px; }
.eng-person-panel { border-left: 1px solid var(--line); overflow-y: auto; background: #fff; }
.eng-contact-hero { text-align: center; padding: 27px 14px 23px; border-bottom: 1px solid var(--line); }
.eng-contact-hero > .eng-avatar { margin-bottom: 13px; }
.eng-contact-hero h3 { font: var(--title-md); letter-spacing: -.02em; margin-bottom: 3px; }
.eng-contact-hero p { font-size: 10px; color: var(--faint); margin-bottom: 12px; overflow-wrap: anywhere; }
.eng-contact-hero > .eng-badge { font-size: 8px; }
.eng-detail-section { padding: 17px; border-bottom: 1px solid var(--line); }
.eng-detail-heading { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.eng-detail-heading .eng-text-button { font-size: 8px; padding: 0; }
.eng-detail-section dl { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 10px 6px; font-size: 9px; margin: 0; }
.eng-detail-section dt { color: #aca18f; }
.eng-detail-section dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.eng-detail-section .eng-channel { font-size: 8px; }
.eng-detail-section .eng-channel > span { width: 11px; height: 11px; font-size: 9px; }
.eng-contact-notes { font-size: 10px; color: #a1947f; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.eng-detail-section .eng-muted { font-size: 9px; }
.eng-inline-tag { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; margin-top: 10px; }
.eng-inline-tag > input { border: 0; background: transparent; padding: 6px 8px; width: calc(100% - 25px); min-width: 0; border-radius: 5px; font-size: 9px; }
.eng-inline-tag > button { display: grid; place-items: center; background: none; border: 0; width: 25px; height: 25px; color: #aa9c86; }
.eng-inline-tag svg { width: 12px; height: 12px; }
/* Native dialogs keep focus in forms and return it on close. */
.eng-dialog { border: 1px solid var(--line-2); border-radius: 18px; padding: 0; width: min(560px,calc(100vw - 32px)); color: var(--ink); background: var(--surface-2); max-height: calc(100vh - 48px); overflow: auto; box-shadow: var(--shadow-lg); }
.eng-dialog::backdrop { background: #211b1666; backdrop-filter: blur(4px); }
.eng-dialog[open] { animation: eng-arrive .2s ease both; }
.eng-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 29px 28px 18px; }
.eng-dialog-head .eng-eyebrow { font-size: 9px; margin-bottom: 7px; }
.eng-dialog-head h2 { font: var(--title-lg); letter-spacing: -.02em; }
.eng-dialog-head .eng-icon-button { margin-top: -4px; margin-right: -5px; }
.eng-dialog-copy { padding: 0 28px 22px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.eng-dialog-footer { border-top: 1px solid var(--line); padding: 17px 28px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8f5ef; border-radius: 0 0 18px 18px; }
.eng-dialog-footer > div { display: flex; gap: 8px; }
.eng-dialog-footer > span { font-size: 10px; color: var(--muted); }
.eng-dialog-footer .eng-button { font-size: 11px; min-height: 35px; }
.eng-template-dialog { width: min(790px,calc(100vw - 32px)); }
.eng-template-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 28px 25px; }
.eng-template-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; color: var(--ink); min-height: 200px; }
.eng-template-card:hover { border-color: #cf9d7d; background: #fffbf6; box-shadow: 0 3px 12px #3d281508; }
.eng-template-card > span { display: grid; place-items: center; background: #f7ebe0; color: #b57c53; width: 36px; height: 39px; border-radius: 9px; margin-bottom: 18px; }
.eng-template-card:nth-child(2) > span { color: #7f9065; background: #edf2e7; }
.eng-template-card:nth-child(3) > span { color: #7e8c9b; background: #eaf0f5; }
.eng-template-card strong { font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.eng-template-card p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.eng-template-card > svg { width: 15px; height: 15px; color: #aa9276; margin-top: 18px; }
.eng-dialog-bottom-note { background: #f5f1ea; font-size: 10px; color: var(--faint); padding: 16px 28px; border-top: 1px solid var(--line); }
.eng-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; padding: 4px 28px 0; }
.eng-form-grid .wide { grid-column: 1/-1; }
.eng-form-grid .eng-label { font-size: 11px; }
.eng-form-error { padding: 0 28px; color: var(--red); font-size: 11px; line-height: 1.6; }
.eng-profile-intro { display: flex; align-items: center; gap: 14px; padding: 0 28px 26px; }
.eng-profile-intro .eng-avatar { width: 45px; height: 48px; border-radius: 14px; font-size: 15px; }
.eng-profile-intro > div { flex: 1; }
.eng-profile-intro strong { display: block; font-size: 13px; font-weight: 600; }
.eng-profile-intro span:not(.eng-avatar) { display: block; font-size: 10px; color: var(--faint); margin-top: 4px; }
.eng-profile-intro .eng-button { font-size: 10px; }
.eng-profile-intro .eng-button svg { width: 13px; height: 13px; }
.eng-simple-form > .eng-label, .eng-simple-form > .eng-small-copy { margin-left: 28px; margin-right: 28px; }
.eng-simple-form .eng-dialog-footer { margin-top: 23px; }
@keyframes eng-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .eng-inbox-workspace { grid-template-columns: 185px 270px minmax(340px,1fr) 255px; } .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 185px 270px minmax(340px,1fr); } .eng-thread { padding: 18px 15px; } .eng-thread-content strong { font-size: 12px; } .eng-thread-content p { font-size: 11px; } .eng-message-bubble { font-size: 12px; } }
@media (max-width: 1279px) { .eng-person-panel { display: none; } .eng-inbox-workspace { grid-template-columns: 150px 230px minmax(250px,1fr); } .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 150px 230px minmax(250px,1fr); } .eng-builder { grid-template-columns: 160px minmax(200px,1fr) 245px; } .eng-add-step { padding: 8px 6px; gap: 6px; } .eng-add-step strong { font-size: 9px; } }
@media (max-width: 1050px) { .eng-workspace { grid-template-columns: 175px minmax(0,1fr); } .eng-table td { padding: 15px 12px; } .eng-table thead th { padding: 11px 12px; } .eng-flow-link { min-width: 185px; } .eng-inbox-workspace, .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 190px minmax(230px,1fr); } .eng-inbox-rail { grid-column: 1/-1; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-direction: row; gap: 4px; align-items: center; } .eng-inbox-rail .eng-rail-item { width: auto; padding: 6px 10px; min-height: 31px; } .eng-inbox-rail .eng-rail-label, .eng-inbox-rail .eng-local-note { display: none; } .eng-inbox-workspace { grid-template-rows: 49px minmax(0,1fr); } .eng-builder { grid-template-columns: minmax(180px,1fr) 240px; } .eng-builder-rail { grid-column: 1/-1; flex-direction: row; padding: 9px 12px; gap: 7px; border-bottom: 1px solid var(--line); } .eng-builder-rail .eng-rail-label, .eng-builder-rail .eng-small-copy, .eng-builder-settings, .eng-builder-rail .eng-local-note { display: none; } .eng-builder-rail .eng-add-step { margin: 0; } .eng-builder-rail .eng-add-step strong { white-space: nowrap; } .eng-builder { grid-template-rows: 55px minmax(0,1fr); } .eng-builder-rail .eng-add-step > span { width: 21px; height: 23px; } }
@media (max-width: 760px) { .eng-page-head { gap: 15px; padding-bottom: 20px; } .eng-page-head .eng-eyebrow { font-size: 8px; } .eng-page-head p { font-size: 11px; max-width: 230px; line-height: 1.7; } .eng-head-actions .eng-button { min-height: 35px; padding: 8px 11px; font-size: 10px; } .eng-head-actions .eng-button svg { width: 14px; height: 14px; } .eng-workspace { display: block; min-height: 500px; } .eng-rail { flex-direction: row; overflow-x: auto; padding: 10px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); } .eng-rail .eng-rail-label, .eng-rail .eng-rail-foot, .eng-rail .eng-local-note, .eng-rail .eng-rail-hint { display: none; } .eng-rail-item { width: auto; flex-shrink: 0; gap: 6px; min-height: 33px; padding: 7px 9px; font-size: 10px; } .eng-rail-item svg { width: 13px; height: 13px; } .eng-toolbar { padding: 13px; gap: 8px; min-height: 60px; } .eng-search input { width: 170px; font-size: 11px; } .eng-select-label { font-size: 0; } .eng-select-label select { font-size: 10px; max-width: 100px; } .eng-table { font-size: 10px; } .eng-table thead th { font-size: 9px; padding: 11px; } .eng-table td { padding: 14px 11px; } .eng-flow-link { min-width: 195px; } .eng-flow-link strong { font-size: 11px; } .eng-table th:nth-child(4), .eng-table td:nth-child(4) { white-space: nowrap; } .eng-flow-icon { width: 31px; height: 35px; } .eng-list-foot { font-size: 9px; }  .eng-empty { padding: 35px 20px; min-height: 390px; }  .eng-empty p { font-size: 11px; } .eng-empty .eng-button { font-size: 11px; } .eng-bulk-bar { flex-wrap: wrap; gap: 5px; font-size: 10px; padding: 10px; } .eng-bulk-bar .eng-button { font-size: 9px; } .eng-editor-head { padding: 13px 10px; gap: 6px; flex-wrap: wrap; } .eng-editor-title > input { font-size: 13px; width: 210px; } .eng-editor-title .eng-save-state { font-size: 8px; } .eng-editor-title > span { gap: 6px; } .eng-editor-actions { margin-left: auto; } .eng-editor-actions .eng-button { font-size: 10px; padding: 6px 9px; min-height: 32px; } .eng-editor-actions .eng-button svg { width: 12px; height: 12px; } .eng-builder { height: auto; min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 330px auto; } .eng-builder-rail { overflow-x: auto; padding: 8px; gap: 5px; } .eng-builder-rail .eng-add-step { flex-shrink: 0; padding: 5px 7px; } .eng-builder-rail .eng-add-step strong { font-size: 8px; } .eng-builder-rail .eng-add-step > svg { display: none; } .eng-canvas-scroll { min-height: 330px; } .eng-editor-panel { border-top: 1px solid var(--line); border-left: 0; max-height: none; } .eng-panel-head { padding: 12px 15px; } .eng-panel-body { padding: 15px; } .eng-panel-placeholder { padding: 25px; } .eng-panel-placeholder > svg, .eng-panel-placeholder > span { display: none; }  .eng-panel-placeholder p { margin-top: 7px; } .eng-node-order { flex-wrap: nowrap; align-items: center; } .eng-node-order > span { width: auto; flex: 1; } .eng-builder .eng-label textarea { min-height: 90px; } .eng-inbox-workspace, .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 160px minmax(205px,1fr); min-height: 650px; height: calc(100vh - 185px); } .eng-inbox-rail { padding: 8px; gap: 2px; overflow-x: auto; } .eng-inbox-rail .eng-rail-item { font-size: 8px; padding: 5px 7px; } .eng-inbox-rail .eng-rail-item svg { display: none; } .eng-thread { padding: 13px 9px; gap: 6px; } .eng-thread .eng-avatar { display: none; } .eng-thread-content time { font-size: 7px; } .eng-thread-count { font-size: 7px; } .eng-thread-count span { display: none; } .eng-thread-search { padding: 12px 8px; } .eng-chat-head { padding: 11px; flex-wrap: wrap; min-height: 96px; gap: 8px; } .eng-chat-head > div:first-child > .eng-avatar { width: 25px; height: 28px; border-radius: 8px; font-size: 9px; } .eng-chat-head strong { font-size: 10px; } .eng-chat-head-actions { margin-left: auto; gap: 6px; } .eng-chat-head-actions .eng-button { font-size: 9px; min-height: 27px; } .eng-assignee { font-size: 7px; } .eng-assignee select { font-size: 8px; } .eng-transcript { padding: 15px 12px; } .eng-message-bubble { font-size: 10px; padding: 10px 11px; max-width: 95%; } .eng-composer { padding: 11px; } .eng-composer-tabs { gap: 12px; } .eng-composer-tabs > span { display: none; } .eng-composer-tabs > button { font-size: 9px; } .eng-composer-bottom { flex-wrap: wrap; gap: 6px; } .eng-composer-bottom > span { font-size: 7px; flex: 1; } .eng-composer-bottom .eng-button { font-size: 8px; padding: 5px 7px; gap: 4px; } .eng-chat-welcome { padding: 25px 15px; }  .eng-chat-welcome .eng-eyebrow { font-size: 6px; } .eng-chat-welcome p { font-size: 9px; } .eng-chat-welcome > .eng-button { font-size: 8px; padding: 8px; } .eng-template-grid { grid-template-columns: 1fr; gap: 8px; padding: 0 20px 20px; } .eng-template-card { min-height: 0; display: grid; grid-template-columns: 37px 1fr 14px; gap: 0 12px; padding: 14px; } .eng-template-card > span { grid-row: 1/3; margin: 0; } .eng-template-card p { grid-column: 2; } .eng-template-card > svg { grid-column: 3; grid-row: 1/3; align-self: center; margin: 0; } .eng-dialog-head { padding: 24px 20px 17px; }  .eng-dialog-copy { padding: 0 20px 20px; } .eng-dialog-footer { padding: 16px 20px; } .eng-form-grid { padding: 0 20px; gap: 0 12px; } .eng-profile-intro { padding: 0 20px 20px; flex-wrap: wrap; } .eng-simple-form > .eng-label, .eng-simple-form > .eng-small-copy { margin-left: 20px; margin-right: 20px; } }
@media (max-width: 440px) { .eng-page-head h1 { font-size: 28px; } .eng-page-head .eng-eyebrow { font-size: 7px; } .eng-page-head p { max-width: 180px; font-size: 10px; } .eng-head-actions .eng-button { font-size: 9px; gap: 5px; padding: 7px 9px; } .eng-inbox-workspace, .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 124px minmax(180px,1fr); } .eng-inbox-rail .eng-rail-item { font-size: 7px; padding: 4px 6px; gap: 4px; } .eng-threads-empty { padding: 40px 12px; }  .eng-thread-content strong { font-size: 9px; } .eng-thread-content time { font-size: 6px; } .eng-thread-content p { font-size: 9px; } .eng-chat-head-actions { margin-left: 0; } .eng-chat-head .eng-channel { font-size: 7px; } .eng-chat-head .eng-channel > span { width: 10px; height: 10px; font-size: 8px; } .eng-chat-welcome-mark { width: 45px; height: 49px; margin-bottom: 25px; }  .eng-chat-welcome > .eng-button { gap: 4px; font-size: 7px; } .eng-chat-welcome > .eng-button svg { width: 11px; height: 11px; } .eng-editor-actions { width: 100%; margin-top: 5px; justify-content: flex-end; } .eng-builder-rail .eng-add-step { gap: 4px; padding: 4px; } .eng-builder-rail .eng-add-step strong { font-size: 7px; } }
@media (prefers-reduced-motion: reduce) { .engagement-view, .eng-dialog[open] { animation: none; } .eng-transcript { scroll-behavior: auto; } }
/* Folder cards follow the familiar automation workspace hierarchy. */
.eng-rail-spacer { flex: 1; min-height: 65px; }
.eng-folder-grid { display: flex; gap: 11px; overflow-x: auto; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #fdfbf7; }
.eng-folder-card { display: flex; align-items: center; gap: 12px; min-width: 160px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 15px; text-align: left; }
.eng-folder-card > svg { width: 23px; height: 23px; color: #c5ad89; stroke-width: 1.5; }
.eng-folder-card strong { display: block; font-size: 12px; font-weight: 550; }
.eng-folder-card small { display: block; font-size: 10px; color: var(--faint); margin-top: 3px; }
.eng-folder-card.active { border-color: #d79f7f; background: #fff8f0; }
.eng-folder-card:hover { border-color: #cbb296; }
.eng-custom-fields { margin-bottom: 20px; }
.eng-custom-fields-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 550; margin-bottom: 10px; }
.eng-custom-fields-head .eng-text-button { font-size: 11px; }
.eng-custom-field-row { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.eng-custom-field-row input { width: calc(50% - 22px); min-width: 0; border: 1px solid var(--line-2); padding: 9px 10px; border-radius: 7px; font-size: 12px; background: var(--surface); }
.eng-custom-fields > p { margin-top: 10px; }
.eng-filter-actions { display: flex; align-items: center; gap: 13px; }
.eng-filter-actions select { border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; background: #fff; font-size: 11px; }
.eng-filter-actions .eng-text-button { white-space: nowrap; }
.eng-import-tip { margin-left: 28px; margin-right: 28px; }
.eng-paused-banner { font-size: 11px; color: #a78031; border: 1px solid #eaddbc; background: #fff8e7; padding: 9px 12px; border-radius: 7px; margin-bottom: 18px; text-align: center; }
.eng-send-draft { font-size: 11px; font-weight: 600; border: 0; background: none; color: var(--accent); padding: 0 4px; margin-left: 8px; }
.eng-send-draft:hover { text-decoration: underline; }
.eng-message-error { color: var(--red); font-size: 11px; line-height: 1.6; max-width: 90%; margin-top: 6px; }
.eng-messaging-dialog { width: min(660px,calc(100vw - 32px)); }
.eng-messaging-body { padding: 0 28px 10px; }
.eng-messaging-body > .eng-small-copy { font-size: 13px; }
.eng-messaging-connect { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 27px; }
.eng-messaging-connect .eng-button { gap: 6px; font-size: 11px; }
.eng-messaging-connect .eng-channel { font-size: 0; }
.eng-messaging-connect .eng-channel > span { width: 17px; height: 17px; font-size: 14px; }
.eng-messaging-account { border: 1px solid var(--line-2); border-radius: 10px; padding: 17px; margin: 10px 0; background: #fff; }
.eng-messaging-account > header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.eng-messaging-account > header strong { display: block; font-size: 13px; margin-bottom: 5px; font-weight: 600; }
.eng-messaging-account > header .eng-channel { font-size: 11px; }
.eng-messaging-account > header .eng-badge { font-size: 11px; }
.eng-messaging-account > p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 12px 0; }
.eng-messaging-account-actions { display: flex; gap: 8px; }
.eng-messaging-empty { padding: 18px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.eng-webhook-setup { margin: 23px 0; border-top: 1px solid var(--line); padding-top: 18px; }
.eng-webhook-setup > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.eng-webhook-setup > p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 14px 0; }
.eng-webhook-channel { margin: 18px 0 25px; padding: 14px; background: #f7f4ed; border-radius: 8px; }
.eng-webhook-channel > strong { display: block; margin-bottom: 14px; }
.eng-webhook-channel > small { color: var(--muted); font-size: 11px; }
.eng-webhook-channel input { font-size: 11px; }
.eng-webhook-channel .eng-label { margin-bottom: 12px; }
/* Readable inbox text: let panels adapt before reducing the type. */
.eng-inbox-rail .eng-rail-label { font-size: 10px; letter-spacing: .08em; }
.eng-inbox-rail .eng-rail-item { font-size: 12px; }
.eng-inbox-rail .eng-rail-item b { font-size: 10px; }
.eng-inbox-rail .eng-local-note, .eng-inbox-rail .eng-local-note strong { font-size: 11px; }
.eng-thread-search .eng-search input { font-size: 12px; }
.eng-thread-count { font-size: 11px; }
.eng-thread-count span { font-size: 10px; }
.eng-thread-content strong { font-size: 13px; }
.eng-thread-content time { font-size: 10px; }
.eng-thread-content p { font-size: 12px; }
.eng-thread-content > small, .eng-thread-content .eng-channel { font-size: 10px; }
.eng-threads-empty p { font-size: 12px; }
.eng-chat-head { min-height: 88px; padding: 15px; }
.eng-chat-head strong { font-size: 14px; }
.eng-chat-head .eng-channel { font-size: 11px; }
.eng-chat-head-actions { gap: 5px; }
.eng-chat-head-actions .eng-button { font-size: 11px; }
.eng-assignee { font-size: 11px; }
.eng-assignee select { font-size: 12px; }
.eng-conversation-start { font-size: 11px; line-height: 1.7; }
.eng-message-bubble { font-size: 14px; }
.eng-chat-message.note .eng-message-bubble { font-size: 13px; }
.eng-message-meta { font-size: 11px; }
.eng-composer-tabs > button { font-size: 12px; }
.eng-composer-tabs > span { font-size: 10px; }
.eng-composer textarea { font-size: 14px; }
.eng-composer-bottom > span { font-size: 11px; }
.eng-composer-bottom .eng-button { font-size: 12px; min-height: 36px; }
.eng-chat-welcome .eng-eyebrow { font-size: 10px; }
.eng-chat-welcome p { font-size: 13px; }
.eng-chat-welcome > .eng-button { font-size: 12px; }
.eng-contact-hero p { font-size: 12px; }
.eng-contact-hero > .eng-badge { font-size: 11px; }
.eng-detail-heading { font-size: 12px; }
.eng-detail-heading .eng-text-button { font-size: 11px; }
.eng-detail-section dl { font-size: 11px; grid-template-columns: 55px minmax(0,1fr); }
.eng-detail-section .eng-channel { font-size: 11px; }
.eng-detail-section .eng-muted { font-size: 11px; }
.eng-contact-notes { font-size: 12px; }
.eng-detail-section .eng-tag { font-size: 11px; }
.eng-inline-tag > input { font-size: 12px; padding: 8px; }
.eng-inline-tag > button { height: 31px; }
.eng-composer-tabs { flex-wrap: wrap; }
@media (max-width: 1450px) { .eng-person-panel { display: none; } .eng-inbox-workspace, .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 160px 235px minmax(280px,1fr); } }
@media (max-width: 1100px) { .eng-inbox-workspace, .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: 220px minmax(240px,1fr); grid-template-rows: auto minmax(0,1fr); } .eng-inbox-rail { grid-column: 1/-1; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-direction: row; gap: 4px; align-items: center; overflow-x: auto; } .eng-inbox-rail .eng-rail-label, .eng-inbox-rail .eng-local-note { display: none; } .eng-inbox-rail .eng-rail-item { width: auto; min-height: 33px; padding: 6px 10px; font-size: 11px; } .eng-inbox-rail .eng-rail-item svg { width: 14px; height: 14px; } .eng-chat-head { flex-wrap: wrap; } .eng-chat-head-actions { margin-left: auto; } }
@media (max-width: 760px) { .eng-head-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 190px; gap: 5px; } .eng-head-actions .eng-button { font-size: 10px; min-height: 32px; } .eng-rail-spacer { display: none; } .eng-folder-grid { padding: 13px; gap: 8px; } .eng-folder-card { min-width: 140px; padding: 10px 12px; } .eng-filter-actions { gap: 8px; } .eng-filter-actions select { font-size: 10px; max-width: 110px; } .eng-filter-actions .eng-text-button { font-size: 10px; } .eng-inbox-workspace, .eng-inbox-workspace:has(.eng-chat-welcome) { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 150px minmax(420px,1fr); height: auto; min-height: 740px; } .eng-threads { border-right: 0; border-bottom: 1px solid var(--line); } .eng-thread-search { padding: 9px 12px; } .eng-thread-count { display: none; } .eng-thread-list { display: flex; overflow-x: auto; } .eng-thread { width: 230px; flex-shrink: 0; padding: 10px 12px; border-bottom: 0; border-left: 0; border-top: 2px solid transparent; } .eng-thread.active { border-top-color: var(--accent); } .eng-thread-content time { font-size: 10px; } .eng-thread-content strong { font-size: 12px; } .eng-thread-content p { font-size: 12px; } .eng-thread-search .eng-search input { font-size: 12px; } .eng-threads-empty { width: 100%; padding: 0 12px 15px; justify-content: center; } .eng-threads-empty svg, .eng-threads-empty p { display: none; } .eng-threads-empty strong { font-family: var(--sans); font-size: 12px; } .eng-inbox-rail .eng-rail-item { font-size: 11px; padding: 6px 8px; } .eng-inbox-rail .eng-rail-item svg { display: none; } .eng-chat { min-height: 420px; } .eng-chat-head { min-height: 82px; } .eng-chat-head-actions { margin-left: auto; } .eng-chat-head .eng-channel { font-size: 11px; } .eng-assignee, .eng-assignee select { font-size: 11px; } .eng-chat-head-actions .eng-button { font-size: 11px; } .eng-chat-head strong { font-size: 14px; max-width: 190px; } .eng-message-bubble { font-size: 13px; } .eng-transcript { max-height: 500px; min-height: 180px; } .eng-message-meta { font-size: 11px; } .eng-composer textarea { font-size: 14px; } .eng-composer-bottom > span { font-size: 11px; } .eng-composer-bottom .eng-button { font-size: 12px; } .eng-chat-welcome .eng-eyebrow { font-size: 9px; } .eng-chat-welcome p { font-size: 12px; } .eng-chat-welcome > .eng-button { font-size: 12px; padding: 10px 14px; } .eng-chat-welcome > .eng-button svg { width: 16px; height: 16px; } .eng-messaging-body { padding: 0 20px 10px; } }
.eng-mobile-back { display: none; }
@media (max-width: 760px) {
  .eng-inbox-workspace, .eng-inbox-workspace:has(.eng-chat-welcome) { display: flex; flex-direction: column; height: min(800px,calc(100dvh - 170px)); min-height: 570px; }
  .eng-inbox-rail { flex: 0 0 auto; min-height: 53px; padding: 8px; gap: 4px; }
  .eng-inbox-rail .eng-rail-item { min-height: 37px; font-size: 12px; padding: 7px 10px; }
  .eng-inbox-rail .eng-rail-item b { font-size: 11px; min-width: 20px; }
  .eng-inbox-rail .eng-rail-item > span { white-space: nowrap; }
  .eng-inbox-workspace .eng-chat { display: none; }
  .eng-inbox-workspace .eng-chat.has-conversation { display: flex; flex: 1; min-height: 0; }
  .eng-inbox-workspace:has(.has-conversation) .eng-threads { display: none; }
  .eng-inbox-workspace .eng-threads { flex: 1; min-height: 0; border-bottom: 0; }
  .eng-thread-search { padding: 14px 15px; }
  .eng-thread-search .eng-search input { padding: 11px 7px; font-size: 14px; }
  .eng-thread-search .eng-search svg { width: 17px; height: 17px; }
  .eng-thread-count { display: flex; padding: 0 16px 12px; font-size: 12px; }
  .eng-thread-count span { display: block; font-size: 11px; }
  .eng-thread-list { display: block; overflow-y: auto; }
  .eng-thread { width: 100%; display: flex; gap: 13px; padding: 18px 16px; border-top: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
  .eng-thread.active { border-top-color: transparent; border-left-color: var(--accent); }
  .eng-thread .eng-avatar { display: inline-grid; width: 38px; height: 40px; border-radius: 12px; font-size: 12px; }
  .eng-thread-content strong { font-size: 14px; }
  .eng-thread-content time { font-size: 12px; }
  .eng-thread-content p { font-size: 13px; margin: 5px 0 9px; }
  .eng-thread-content .eng-channel, .eng-thread-content > small { font-size: 11px; }
  .eng-threads-empty { height: 220px; padding: 30px; }
  .eng-threads-empty svg { display: block; width: 32px; height: 32px; margin-bottom: 18px; }
  .eng-threads-empty p { display: block; font-size: 13px; }
  .eng-mobile-back { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; padding: 5px 0; margin: -6px 0 5px; background: transparent; border: 0; color: var(--muted); font-size: 12px; }
  .eng-mobile-back svg { width: 16px; height: 16px; }
  .eng-chat-head { flex: 0 0 auto; padding: 12px 16px; gap: 7px; min-height: 118px; }
  .eng-chat-head > div:first-of-type > .eng-avatar { width: 32px; height: 35px; font-size: 11px; border-radius: 11px; }
  .eng-chat-head-actions .eng-icon-button { width: 36px; height: 36px; }
  .eng-chat-head-actions .eng-button { min-height: 36px; font-size: 12px; }
  .eng-chat-head .eng-channel, .eng-assignee { font-size: 12px; }
  .eng-assignee select { font-size: 12px; }
  .eng-transcript { min-height: 100px; max-height: none; padding: 18px 16px; }
  .eng-message-bubble { font-size: 14px; }
  .eng-message-meta { font-size: 12px; }
  .eng-composer { flex: 0 0 auto; padding: 12px 16px; }
  .eng-composer-tabs > button { min-height: 36px; font-size: 13px; }
  .eng-composer textarea { font-size: 14px; min-height: 70px; }
  .eng-composer-bottom .eng-button { min-height: 38px; font-size: 13px; }
  .eng-composer-bottom > span { font-size: 11px; max-width: 210px; }
  .eng-send-draft { min-height: 36px; font-size: 12px; padding: 5px 8px; }
}
/* Comment-to-DM setup and the message people receive. */
.eng-builder { grid-template-columns: 185px minmax(230px,1fr) 340px; }
.eng-builder-rail { overflow-y: auto; }
.eng-trigger-section, .eng-rich-editor { border-top: 1px solid var(--line); margin: 22px 0; padding-top: 18px; }
.eng-section-number { display: flex; gap: 10px; align-items: center; color: var(--accent); font: 650 13px/1.4 var(--sans); margin-bottom: 14px; }
.eng-section-number > span { color: var(--ink-2); font: 600 13px var(--sans); }
.eng-post-tabs { display: flex; gap: 4px; margin: 16px 0 10px; padding: 4px; background: #f3eee6; border-radius: 9px; }
.eng-post-tab { flex: 1; border: 0; background: transparent; color: var(--muted); border-radius: 6px; font: 11px var(--sans); padding: 8px 4px; cursor: pointer; }
.eng-post-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px #493a2114; }
.eng-post-picker { display: grid; gap: 9px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.eng-post-choice { display: flex; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 8px; gap: 10px; cursor: pointer; color: var(--ink-2); align-items: center; margin-bottom: 8px; }
.eng-post-picker .eng-post-choice { margin-bottom: 0; }
.eng-post-choice.selected { background: #fff5ee; border-color: #dc9e82; }
.eng-post-choice > img, .eng-post-image { width: 58px; height: 68px; flex: 0 0 58px; object-fit: cover; background: #f0e7d8; border-radius: 7px; }
.eng-post-image { display: grid; place-items: center; color: #b59b79; }
.eng-post-image > svg { width: 23px; height: 23px; }
.eng-post-choice > span:not(.eng-post-image) { display: grid; min-width: 0; gap: 4px; }
.eng-post-choice small { font-size: 10px; color: var(--muted); line-height: 1.4; }
.eng-post-choice strong { font: 500 12px/1.45 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.eng-post-choice em { font: 10px/1.4 var(--sans); color: #a66847; }
.eng-post-choice > svg { width: 16px; height: 16px; flex-shrink: 0; color: #a66847; }
.eng-rich-editor .eng-detail-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.eng-rich-editor .eng-detail-heading > span { color: var(--faint); font-weight: 400; }
.eng-button-editor { border: 1px solid var(--line); padding: 12px; border-radius: 10px; margin-bottom: 10px; background: #fcfaf6; }
.eng-button-editor-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.eng-button-editor-head .eng-icon-button { height: 25px; width: 25px; }
.eng-button-editor .eng-label { font-size: 11px; }
.eng-step-stage { display: flex; align-items: center; gap: 7px; color: #ac684c; font: 600 12px var(--sans); margin-bottom: 12px; }
.eng-step-stage > svg { width: 15px; height: 15px; }
.eng-rich-message { max-width: 100%; overflow: hidden; margin-bottom: 13px; }
.eng-rich-message .eng-preview-bubble { font: 13px/1.6 var(--sans); margin: 0; border-radius: 10px 10px 3px 3px; }
.eng-link-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); text-decoration: none; overflow: hidden; }
.eng-link-card > img { width: 100%; aspect-ratio: 1.91; object-fit: cover; display: block; background: #f2ecdf; }
.eng-link-card > div { padding: 12px; }
.eng-link-card strong { font: 600 13px/1.5 var(--sans); display: block; overflow-wrap: anywhere; }
.eng-link-card p { font: 12px/1.5 var(--sans); color: var(--muted); margin: 6px 0; white-space: normal; }
.eng-link-card span { font: 10px var(--sans); color: var(--faint); }
.eng-message-button { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; width: 100%; min-height: 40px; border: 1px solid var(--line); border-top: 0; color: #a76549; font: 600 12px var(--sans); text-align: center; padding: 10px; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.eng-message-button:last-child { border-radius: 0 0 8px 8px; }
.eng-message-button > svg { width: 14px; height: 14px; }
.eng-message-button:hover { background: #fff4ed; }
.eng-message-button.invalid { color: var(--muted); cursor: default; font-weight: 400; }
.eng-message-live { margin-top: 12px; padding: 12px; border-radius: 14px; background: #faf7f1; }
.eng-preview-phone { border: 1px solid #e5ddd0; border-radius: 24px; padding: 14px 12px 20px; background: #fffcf7; box-shadow: 0 8px 25px #725c3210; }
.eng-phone-head { text-align: center; padding: 8px 0 15px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.eng-phone-head small { display: block; color: var(--faint); font-size: 9px; margin-top: 5px; }
.eng-preview-incoming { margin: 0 0 17px 35px; padding: 10px 13px; border-radius: 12px 3px 12px 12px; font: 12px/1.6 var(--sans); background: #e8ecdf; color: #65704b; overflow-wrap: anywhere; }
.eng-preview-pending { font: 11px/1.6 var(--sans); color: var(--muted); text-align: center; margin-top: 17px; }
.eng-preview-post { margin: 20px 0; border-left: 2px solid #cb9875; padding-left: 13px; }
.eng-preview-post > strong { font-size: 12px; }
.eng-preview-post > p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 6px; max-height: 72px; overflow: hidden; }
.eng-chat-message .eng-message-bubble:has(.eng-rich-message) { padding: 0; background: transparent; min-width: 150px; max-width: 290px; }
.eng-chat-message .eng-rich-message { margin-bottom: 0; }
.eng-chat-message.incoming .eng-rich-message .eng-preview-bubble { background: #eee8df; }
.eng-chat-message.outgoing .eng-rich-message .eng-preview-bubble { background: #f4e1d5; }
.eng-chat-message.note .eng-rich-message .eng-preview-bubble { background: #f9efca; }
.eng-badge.pending { color: #a88246; background: #faf2dc; }
@media (max-width: 1279px) { .eng-builder { grid-template-columns: 160px minmax(180px,1fr) 315px; } }
@media (max-width: 1050px) { .eng-builder { grid-template-columns: minmax(180px,1fr) 310px; } }
@media (max-width: 760px) { .eng-builder { grid-template-columns: minmax(0,1fr); } .eng-editor-panel { min-width: 0; } .eng-preview-phone { max-width: 350px; margin: auto; } .eng-post-picker { max-height: 380px; } .eng-post-choice strong { font-size: 13px; } .eng-post-tab { min-height: 38px; font-size: 12px; } .eng-message-button { min-height: 44px; font-size: 13px; } }
.eng-message-button:disabled { color: var(--faint); background: #f8f4ee; cursor: default; }
.eng-previous-message { margin: 15px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; line-height: 1.6; }
.eng-previous-message summary { cursor: pointer; color: var(--muted); }
.eng-previous-message p { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.eng-previous-message span { color: var(--muted); }
/* Account connection is an OAuth flow; platform administration is a separate view. */
.eng-messaging-dialog { width: min(680px,calc(100vw - 32px)); border-radius: 11px; background: var(--surface); }
.eng-messaging-dialog .eng-dialog-head { padding: 23px 24px 19px; align-items: center; border-bottom: 1px solid var(--line); }
.eng-messaging-dialog .eng-dialog-head h2 { font: 600 21px/1.35 var(--sans); letter-spacing: -.025em; }
.eng-messaging-dialog .eng-dialog-head .eng-eyebrow { display: none; }
.eng-messaging-dialog .eng-dialog-head .eng-icon-button { margin: 0; width: 34px; height: 34px; }
.eng-messaging-dialog .eng-messaging-body { padding: 20px 24px 10px; }
.eng-messaging-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; max-width: 560px; }
.eng-messaging-dialog .eng-messaging-connect { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 22px 0 27px; }
.eng-messaging-platform { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fcfaf7; }
.eng-messaging-platform > div { display: flex; align-items: center; gap: 8px; }
.eng-messaging-platform > div > svg { width: 19px; height: 19px; color: #ab7659; }
.eng-messaging-platform strong { font-size: 14px; font-weight: 600; }
.eng-messaging-platform > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0 17px; }
.eng-messaging-platform .eng-button { font-size: 12px; min-height: 36px; margin-top: auto; border-radius: 7px; }
.eng-messaging-section-title { color: var(--ink-2); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.eng-messaging-dialog .eng-messaging-account { border-color: var(--line); border-radius: 8px; margin: 11px 0; padding: 17px; }
.eng-messaging-dialog .eng-messaging-account > header .eng-badge { display: flex; align-items: center; gap: 5px; }
.eng-messaging-dialog .eng-messaging-account > header .eng-badge > svg { width: 12px; height: 12px; }
.eng-messaging-dialog .eng-messaging-account > p { margin: 13px 0; font-size: 12px; }
.eng-messaging-dialog .eng-messaging-account-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.eng-messaging-dialog .eng-messaging-account-actions .eng-text-button { font-size: 11px; }
.eng-messaging-dialog .eng-messaging-account-actions .eng-button { min-height: 34px; font-size: 12px; border-radius: 6px; }
.eng-messaging-verification, .eng-messaging-waiting { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.eng-messaging-verification { padding: 10px 12px; margin: 0 0 12px; border-radius: 5px; background: #f6f4ee; }
.eng-messaging-verification > svg, .eng-messaging-waiting > svg { width: 13px; height: 13px; margin-top: 2px; flex-shrink: 0; }
.eng-messaging-account[data-connection-state='ready'] .eng-messaging-verification > svg { color: #7c9461; }
.eng-messaging-waiting { color: #ac8b52; }
.eng-platform-setup-banner { margin-top: 20px; padding: 16px; background: #fbf6e9; border: 1px solid #eadcba; border-radius: 8px; color: #8b744d; }
.eng-platform-setup-banner > strong { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.eng-platform-setup-banner > strong > svg { width: 16px; height: 16px; flex-shrink: 0; }
.eng-platform-setup-banner > p { font-size: 12px; line-height: 1.65; margin: 10px 0 13px; }
.eng-platform-setup-banner > div { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 9px; margin-top: 9px; font-size: 11px; line-height: 1.6; }
.eng-platform-setup-banner b { font-weight: 600; }
.eng-platform-setup-banner > small { display: block; margin-top: 13px; font-size: 11px; }
.eng-messaging-draft-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 20px 0 8px; }
.eng-messaging-admin-entry { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 17px 0 5px; margin-top: 15px; border-top: 1px solid var(--line); }
.eng-messaging-admin-entry .eng-text-button { font-size: 12px; }
.eng-messaging-admin-entry > span { font-size: 10px; color: var(--faint); }
.eng-messaging-dialog .eng-dialog-footer { padding: 16px 24px; border-radius: 0 0 11px 11px; background: #faf8f4; }
.eng-messaging-dialog .eng-dialog-footer > .eng-button { font-size: 12px; min-height: 36px; border-radius: 6px; }
.eng-messaging-admin-dialog .eng-small-copy { font-size: 12px; }
.eng-messaging-admin-dialog .eng-webhook-channel .eng-label { font-size: 12px; }
.eng-messaging-admin-dialog .eng-webhook-channel input { font-size: 12px; }
@media (max-width: 560px) {
  .eng-messaging-dialog { width: calc(100vw - 24px); }
  .eng-messaging-dialog .eng-dialog-head { padding: 20px; }
  .eng-messaging-dialog .eng-messaging-body { padding: 18px 20px 10px; }
  .eng-messaging-dialog .eng-messaging-connect { gap: 9px; }
  .eng-messaging-platform { padding: 14px 12px; }
  .eng-messaging-platform .eng-button { width: 100%; font-size: 11px; padding: 7px; min-height: 38px; }
  .eng-messaging-platform strong { font-size: 13px; }
  .eng-messaging-platform > p { font-size: 11px; min-height: 35px; }
  .eng-messaging-dialog .eng-messaging-account { padding: 14px; }
  .eng-messaging-dialog .eng-messaging-account > header { flex-wrap: wrap; gap: 9px; }
  .eng-messaging-dialog .eng-messaging-account-actions .eng-button { min-height: 40px; }
  .eng-platform-setup-banner > div { grid-template-columns: 1fr; gap: 2px; }
  .eng-messaging-admin-entry { align-items: flex-start; flex-direction: column; gap: 3px; }
  .eng-messaging-dialog .eng-dialog-footer { padding: 16px 20px; gap: 12px; }
}
/* Delivery checks read the saved flow and present recorded evidence. */
.eng-delivery-check-dialog { width: min(700px,calc(100vw - 32px)); border-radius: 11px; font-family: var(--sans); background: var(--surface); }
.eng-delivery-check-dialog .eng-dialog-head { align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.eng-delivery-check-dialog .eng-dialog-head h2 { font: 600 21px/1.4 var(--sans); }
.eng-delivery-check-dialog .eng-eyebrow { display: none; }
.eng-delivery-check-body { padding: 22px 24px; }
.eng-delivery-check-body > h3 { font: 600 14px/1.5 var(--sans); margin: 0 0 12px; }
.eng-delivery-check-body > .eng-small-copy { font-size: 12px; }
.eng-delivery-check { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.eng-delivery-check > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #f4eee3; color: #aa9167; }
.eng-delivery-check > span > svg { width: 13px; height: 13px; }
.eng-delivery-check[data-status='ok'] > span { background: #edf4e8; color: #7b9462; }
.eng-delivery-check[data-status='blocked'] > span { background: #fbede5; color: #bb7b57; }
.eng-delivery-check > div { flex: 1; min-width: 0; }
.eng-delivery-check strong { display: block; font-size: 13px; font-weight: 600; }
.eng-delivery-check p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 6px 0 0; overflow-wrap: anywhere; }
.eng-delivery-check small { color: var(--faint); font-size: 10px; line-height: 1.5; }
.eng-delivery-check > small { flex: 0 0 auto; margin-top: 4px; }
.eng-delivery-run-count { padding: 18px 0 26px; font-size: 12px; color: var(--muted); }
.eng-delivery-run-count > strong { font-size: 23px; color: var(--ink); padding-right: 6px; }
.eng-delivery-comment { padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 7px; }
.eng-delivery-comment > p { font-size: 13px; line-height: 1.6; margin: 0 0 7px; overflow-wrap: anywhere; }
.eng-delivery-comment > small { font-size: 10px; color: var(--faint); overflow-wrap: anywhere; }
.eng-delivery-comment > span { display: block; color: #a17b59; font-size: 11px; margin-top: 9px; }
.eng-delivery-event { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.eng-delivery-event strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.eng-delivery-event > small, .eng-delivery-event > time { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.eng-delivery-check-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 24px 0 0; }
.eng-delivery-check-dialog .eng-dialog-footer { padding: 16px 24px; border-radius: 0 0 11px 11px; }
@media (max-width: 560px) { .eng-delivery-check-dialog .eng-dialog-head, .eng-delivery-check-body { padding: 20px; } .eng-delivery-check { flex-wrap: wrap; gap: 9px; } .eng-delivery-check > small { padding-left: 34px; width: 100%; margin-top: 0; } }
