/* Comentários — experiência do NexusChat dentro do Hub */
.mc-list { padding: 22px 24px; }
.mc-section-head h2 { margin: 0; }
.mc-filters { display: flex; gap: 10px; margin: 18px 0 8px; flex-wrap: wrap; }
.mc-filters input, .mc-filters select { border: 1px solid #dfe2ea; border-radius: 7px; padding: 9px 11px; background: #fff; font-size: 13px; }
.mc-filters input { flex: 1; min-width: 200px; }
.mc-table { margin-top: 8px; }
.mc-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 150px 80px auto; gap: 16px; align-items: center; padding: 15px 6px; border-bottom: 1px solid var(--line); animation: mc-in .35s ease both; }
.mc-row:last-child { border-bottom: 0; }
.mc-row-head { font-size: 12px; color: var(--muted); padding: 6px; animation: none; }
.mc-row-title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mc-row-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.mc-meta { font-size: 13px; color: #555c6b; overflow: hidden; text-overflow: ellipsis; }
.mc-status { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: #eef0f4; color: #7b8190; text-align: center; }
.mc-status.on { background: #e5f6ec; color: #1f8a4c; }
.mc-badge { font-size: 11px; font-weight: 550; padding: 3px 8px; border-radius: 99px; background: #f0f1f5; color: #606776; }
.mc-badge.purple { background: #f1ecfd; color: var(--purple); }
.mc-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.text-button.danger { color: #ac4155; }
.mc-empty { text-align: center; padding: 40px 10px; display: grid; gap: 8px; justify-items: center; }
.mc-empty > span { font-size: 26px; color: var(--purple); }
@keyframes mc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mc-switch { position: relative; display: inline-block; width: 36px; height: 20px; margin: 0; flex-shrink: 0; }
.mc-switch input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.mc-switch span { position: absolute; inset: 0; background: #d5d8e0; border-radius: 99px; cursor: pointer; transition: background .2s; }
.mc-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px #0002; }
.mc-switch input:checked + span { background: var(--purple); }
.mc-switch input:checked + span::after { transform: translateX(16px); }
.mc-switch input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }

/* assistente */
.mc-account { max-width: 340px; margin-bottom: 18px; }
.mc-account label { margin-top: 0; }
.mc-wizard { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.mc-wizard-col { width: 460px; max-width: 100%; flex-shrink: 0; padding: 22px; }
.mc-wizard-col > label:first-of-type { margin-top: 18px; }
.mc-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mc-progress button { border: 0; border-bottom: 3px solid #e4e6ee; background: none; padding: 8px 2px; font-size: 12px; font-weight: 600; color: #9aa0ad; text-align: left; cursor: pointer; }
.mc-progress button.done { color: #606776; border-color: #c9b8f3; }
.mc-progress button.on { color: var(--purple); border-color: var(--purple); }
.mc-step { animation: mc-in .25s ease both; }
.mc-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; display: grid; gap: 10px; }
.mc-section-title { font-weight: 650; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mc-section textarea, .mc-section select, .mc-section input[type=text], .mc-radio-body input[type=text] { width: 100%; border: 1px solid #dfe2ea; border-radius: 7px; padding: 10px 11px; background: #fff; font-size: 14px; font-family: inherit; color: #333; }
.mc-section textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.mc-sub { font-size: 13px; font-weight: 600; margin-top: 6px; }
.mc-radio-card { display: block; margin: 0; border: 1px solid #e1e4ec; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 500; }
.mc-radio-card.on { border-color: var(--purple); background: #faf8ff; }
.mc-radio-head { display: flex; gap: 9px; align-items: center; font-size: 14px; }
.mc-radio-head input { width: auto; margin: 0; accent-color: var(--purple); }
.mc-radio-body { display: none; margin-top: 12px; gap: 8px; }
.mc-radio-card.on .mc-radio-body { display: grid; }
.mc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-thumb { width: 60px; height: 60px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #eceef3; cursor: pointer; font-size: 11px; color: #7b8190; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-thumb.on { border-color: var(--purple); box-shadow: 0 0 0 2px #e6ddfb; }
.mc-thumb-links { display: flex; gap: 14px; }
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-chip { border: 1px solid #e1e4ec; background: #fff; border-radius: 99px; padding: 4px 11px; font-size: 12px; cursor: pointer; color: #555c6b; }
.mc-chip:hover { border-color: var(--purple); color: var(--purple); }
.mc-inline { display: flex; gap: 18px; }
.mc-inline label { margin: 0; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.mc-inline input { width: auto; margin: 0; accent-color: var(--purple); }
.mc-button-row { display: grid; grid-template-columns: 1fr 150px 28px; grid-template-areas: 'title type remove' 'value value remove'; gap: 6px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; }
.mc-button-row [data-b=title] { grid-area: title; } .mc-button-row [data-b=type] { grid-area: type; } .mc-button-row [data-b=value] { grid-area: value; } .mc-button-row .icon-button { grid-area: remove; }
.mc-button-row input, .mc-button-row select { padding: 8px 9px !important; font-size: 13px !important; }
.mc-review { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.mc-review dt { color: var(--muted); }
.mc-review dd { margin: 0; overflow-wrap: anywhere; }
.mc-nav { display: flex; justify-content: space-between; margin-top: 22px; }

/* celular */
.mc-preview { flex: 1; min-width: 300px; display: grid; justify-items: center; align-content: start; gap: 10px; position: sticky; top: 20px; }
.mc-phone { width: 300px; height: 600px; border-radius: 42px; background: #111; padding: 12px; box-shadow: 0 30px 60px #2a20441f; }
.mc-phone-screen { height: 100%; border-radius: 32px; background: #fff; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; color: #111; }
.mc-phone-status { display: flex; justify-content: space-between; padding: 10px 20px 4px; font-weight: 600; font-size: 11px; }
.mc-phone-head { display: flex; gap: 12px; align-items: center; padding: 6px 14px; border-bottom: 1px solid #f0f0f0; }
.mc-phone-head span:nth-child(2) { display: grid; line-height: 1.2; }
.mc-phone-head small { color: #8e8e8e; font-size: 9px; letter-spacing: .04em; }
.mc-phone-user { display: flex; gap: 8px; align-items: center; padding: 8px 12px; font-weight: 600; }
.mc-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); flex-shrink: 0; }
.mc-avatar.mc-sm { width: 22px; height: 22px; }
.mc-phone-post { aspect-ratio: 1; background: #eceef3; flex-shrink: 0; }
.mc-phone-post img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-phone-icons { padding: 8px 12px 2px; font-size: 15px; letter-spacing: 8px; }
.mc-phone-caption { padding: 2px 12px; line-height: 1.4; }
.mc-phone-comments { padding: 8px 12px; display: grid; gap: 8px; overflow: auto; flex: 1; border-top: 1px solid #f2f2f2; margin-top: 6px; }
.mc-comment { display: flex; gap: 8px; line-height: 1.4; }
.mc-comment.reply { margin-left: 26px; }
.mc-phone-head.dm { padding: 10px 14px; }
.mc-dm { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; justify-content: flex-end; background: #fff; overflow: auto; }
.mc-bubble { align-self: flex-start; max-width: 85%; background: #efefef; border-radius: 18px; padding: 10px 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.mc-bubble-buttons { display: grid; gap: 1px; margin: 10px -13px -10px; border-top: 1px solid #ddd; }
.mc-bubble-buttons span { text-align: center; padding: 9px; color: #0064e0; font-weight: 600; border-bottom: 1px solid #ddd; }
.mc-bubble-buttons span:last-child { border-bottom: 0; }
.mc-phone-nav { display: flex; justify-content: space-around; padding: 10px 0 14px; border-top: 1px solid #eee; font-size: 15px; }
.mc-phone-tabs { display: flex; background: #eceef3; border-radius: 99px; padding: 3px; }
.mc-phone-tabs button { border: 0; background: none; padding: 6px 16px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #606776; cursor: pointer; }
.mc-phone-tabs button.on { background: #fff; color: var(--purple); box-shadow: 0 1px 3px #0001; }

dialog.wide { width: min(880px, 94vw); }
.mc-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-height: 60vh; overflow: auto; margin-top: 14px; }
.mc-media-card { border: 2px solid transparent; border-radius: 10px; background: #f6f7f9; padding: 0; overflow: hidden; cursor: pointer; text-align: left; display: grid; }
.mc-media-card img, .mc-media-ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: #eceef3; color: #7b8190; }
.mc-media-card small { padding: 7px 8px; color: #606776; font-size: 11px; line-height: 1.4; }
.mc-media-card.on, .mc-media-card:hover { border-color: var(--purple); }

@media (max-width: 760px) {
  .mc-row { grid-template-columns: 1fr; gap: 6px; }
  .mc-row-head { display: none; }
  .mc-actions { justify-content: flex-start; }
  .mc-preview { position: static; }
}

/* ───────── Fluxos — experiência do flowbuilder do FluxZap ───────── */
.fz-list-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 4px 0 18px; flex-wrap: wrap; }
.fz-search { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe2ea; background: #fff; border-radius: 8px; padding: 0 11px; margin: 0; min-width: 260px; font-weight: 400; }
.fz-search span { color: var(--muted); }
.fz-search input { border: 0 !important; padding: 10px 0 !important; margin: 0 !important; outline: 0; background: transparent; width: 100%; font-size: 13px; }
.fz-search.fz-sm { min-width: 0; width: auto; margin: 0 4px 6px; }
.fz-search input { display: block; min-width: 0; flex: 1; }
.fz-search.fz-sm input { padding: 8px 0 !important; }
.fz-chips { display: flex; gap: 6px; }
.fz-chip { border: 1px solid #dfe2ea; background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 12px; color: #606776; cursor: pointer; }
.fz-chip b { margin-left: 4px; color: #9aa0ad; font-weight: 600; }
.fz-chip.on { border-color: var(--purple); color: var(--purple); background: #f6f2ff; }
.fz-chip.on b { color: var(--purple); }
.fz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.fz-card { background: #fff; border: 1px solid #e9ebf1; border-radius: 14px; padding: 18px; display: grid; gap: 14px; animation: mc-in .35s ease both; transition: box-shadow .2s, border-color .2s; }
.fz-card:hover { border-color: #d9cff7; box-shadow: 0 12px 30px #2a20440d; }
.fz-card .card-top { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; }
.fz-card .card-top b { display: block; font-size: 15px; }
.fz-card .card-top small { color: var(--muted); font-size: 12px; }
.fz-card-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #f0f1f5; color: #7b8190; font-size: 16px; }
.fz-card-icon.on { background: #e5f6ec; color: #1f8a4c; }
.fz-status { font-style: normal; font-size: 11px; font-weight: 600; color: #7b8190; display: flex; gap: 6px; align-items: center; }
.fz-status i { width: 7px; height: 7px; border-radius: 50%; background: #c3c7d0; }
.fz-status.on { color: #1f8a4c; } .fz-status.on i { background: #2fb36a; box-shadow: 0 0 0 3px #2fb36a22; }
.fz-card-meta { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.fz-card-meta b { color: #222836; font-size: 14px; margin-right: 3px; }
.fz-card-triggers { display: flex; gap: 6px; flex-wrap: wrap; }
.fz-card-triggers span { font-size: 11px; background: #f4f1fd; color: var(--purple); padding: 3px 9px; border-radius: 99px; }
.fz-card .card-foot { display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.fz-card .card-foot .button:last-child { margin-left: auto; }
.fz-icon-btn { width: 32px; height: 32px; border: 1px solid #dfe2ea; background: #fff; border-radius: 7px; cursor: pointer; color: #606776; display: inline-grid; place-items: center; flex-shrink: 0; }
.fz-icon-btn:hover { border-color: var(--purple); color: var(--purple); }
.fz-icon-btn.danger:hover { border-color: #ac4155; color: #ac4155; }
.fz-empty { text-align: center; padding: 50px 20px; }
.fz-empty > span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #f4f1fd; color: var(--purple); font-size: 20px; }

/* builder: ocupa a área de conteúdo inteira */
.fz-builder { position: relative; height: calc(100vh - 130px); min-height: 560px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.fz-toolbar { height: 62px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 12px; flex-shrink: 0; }
.fz-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fz-identity span { font-size: 10px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fz-identity h2 { margin: 2px 0 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.fz-back { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #dfe2ea; background: #fff; cursor: pointer; color: #606776; }
.fz-back:hover { border-color: var(--purple); color: var(--purple); }
.fz-save { flex: 1; display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; min-width: 0; }
.fz-save span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-save i { width: 7px; height: 7px; border-radius: 50%; background: #2fb36a; flex-shrink: 0; }
.fz-save.saving i { background: #f0a23b; animation: fz-pulse 1s infinite; }
.fz-save.error { color: #ac4155; } .fz-save.error i { background: #ac4155; }
@keyframes fz-pulse { 50% { opacity: .3; } }
.fz-actions { display: flex; gap: 8px; align-items: center; }
.fz-active { display: flex; gap: 8px; align-items: center; margin: 0 6px 0 0; font-size: 12px; font-weight: 600; color: #606776; cursor: pointer; }
.fz-active input { width: auto !important; margin: 0 !important; }
.fz-shell { flex: 1; display: grid; grid-template-columns: 210px 1fr 300px; min-height: 0; }
.fz-over { font-size: 10px; letter-spacing: .1em; color: #9aa0ad; font-weight: 600; }
.fz-palette { border-right: 1px solid var(--line); padding: 16px 10px; overflow-y: auto; background: #fcfcfd; }
.fz-palette-head { padding: 0 6px 12px; }
.fz-palette-head h3, .fz-inspector-head h3 { margin: 3px 0 0; font-size: 15px; }
.fz-group > p { font-size: 10px; letter-spacing: .12em; color: #9aa0ad; margin: 16px 8px 6px; font-weight: 600; }
.fz-block { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 10px; display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; gap: 9px; padding: 8px; text-align: left; cursor: grab; }
.fz-block:hover { background: #fff; border-color: #e4e0f3; box-shadow: 0 4px 12px #2a20440a; }
.fz-block b { display: block; font-size: 13px; }
.fz-block small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.fz-block > i { font-style: normal; color: #b5b9c4; }
.fz-block:disabled { opacity: .5; cursor: not-allowed; }
.fz-sym { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.fz-sym.mint { background: #e3f6ee; color: #1f8a5c; }
.fz-sym.blue { background: #e6efff; color: #2d63c8; }
.fz-sym.violet { background: #efe9fd; color: var(--purple); }
.fz-sym.cyan { background: #e2f6f8; color: #10808e; }
.fz-tip { margin: 22px 4px 0; border: 1px dashed #dcd5f2; border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.fz-tip > span { width: 28px; height: 28px; border-radius: 7px; background: #f4f1fd; color: var(--purple); display: grid; place-items: center; }
.fz-tip p { margin: 0; } .fz-tip b { display: block; font-size: 12px; } .fz-tip small { color: var(--muted); font-size: 11px; }
.fz-nothing { padding: 10px; font-size: 12px; }

.fz-canvas { position: relative; overflow: hidden; background-color: #f7f8fb; background-image: radial-gradient(#d4d8e1 1px, transparent 1px); background-size: 22px 22px; cursor: grab; touch-action: none; }
.fz-canvas.panning { cursor: grabbing; }
.fz-grid { position: absolute; left: 0; top: 0; width: 4000px; height: 3000px; transform-origin: 0 0; will-change: transform; }
.fz-grid > svg { position: absolute; inset: 0; width: 4000px; height: 3000px; overflow: visible; pointer-events: none; }
.fz-link { fill: none; stroke: #b9b2d6; stroke-width: 2; }
.fz-link.selected { stroke: var(--purple); stroke-width: 2.4; }
.fz-link.preview { stroke: var(--purple); stroke-dasharray: 6 5; }
.fz-dot { fill: #fff; stroke: var(--purple); stroke-width: 1.5; }
.fz-node { position: absolute; width: 250px; background: #fff; border: 1px solid #e1e4ec; border-radius: 12px; box-shadow: 0 10px 28px #2a20440f; user-select: none; cursor: grab; transition: border-color .15s, box-shadow .15s; }
.fz-node:hover { border-color: #cfc5ef; }
.fz-node.selected { border-color: var(--purple); box-shadow: 0 0 0 3px #7550df1f, 0 16px 40px #2a204419; }
.fz-node.warn { border-color: #f0c27a; }
.fz-node.dragging { cursor: grabbing; z-index: 10; box-shadow: 0 22px 50px #2a204426; }
.fz-node.fz-trigger { border-style: dashed; background: #fbfdfe; }
.fz-node-head { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #eef0f4; }
.fz-node-head small { display: block; font-size: 9px; letter-spacing: .1em; color: #9aa0ad; font-weight: 600; }
.fz-node-head b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-warn { width: 18px; height: 18px; border-radius: 50%; background: #fdf1dc; color: #b9791a; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.fz-node-body { padding: 11px 12px; font-size: 12px; color: #4b5260; line-height: 1.45; }
.fz-node-body p { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fz-opt { position: relative; display: block; margin-top: 6px; padding: 7px 9px; background: #f7f8fb; border: 1px solid #eceef3; border-radius: 7px; font-size: 12px; overflow-wrap: anywhere; }
.fz-opt.routed { padding-right: 18px; }
.fz-opt.any { background: #faf8ff; border-color: #ebe5fb; color: #5d4aa8; }
.fz-opt.note { background: #eef8fa; border-color: #d5eef2; color: #10808e; }
.fz-node-foot { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid #eef0f4; color: #9aa0ad; font-size: 11px; }
.fz-port { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--purple); cursor: crosshair; z-index: 2; transition: transform .12s; }
.fz-port.out { right: -7px; top: calc(50% - 6px); }
.fz-port.in { left: -7px; top: 26px; cursor: default; }
.fz-port:hover, .fz-port.target { transform: scale(1.45); background: var(--purple); }
.fz-crumb { position: absolute; left: 14px; top: 12px; font-size: 12px; color: var(--muted); background: #ffffffcc; padding: 4px 8px; border-radius: 6px; }
.fz-crumb span { margin: 0 6px; }
.fz-tools { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; border: 1px solid #e1e4ec; background: #fff; border-radius: 9px; box-shadow: 0 10px 30px #2a20441a; overflow: hidden; }
.fz-tools button, .fz-tools span { height: 34px; min-width: 38px; border: 0; border-right: 1px solid #eef0f4; background: transparent; color: #606776; display: grid; place-items: center; font-size: 13px; }
.fz-tools span { font-size: 12px; min-width: 52px; }
.fz-tools button { cursor: pointer; } .fz-tools button:hover { background: #f6f2ff; color: var(--purple); }
.fz-tools i { width: 1px; background: #e1e4ec; }
.fz-help { position: absolute; right: 14px; top: 14px; font-size: 11px; color: var(--muted); }
.fz-help kbd { font-size: 10px; padding: 2px 5px; border: 1px solid #dfe2ea; background: #fff; border-radius: 4px; }
.fz-help span { margin: 0 4px; }

.fz-inspector { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fff; }
.fz-inspector-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fz-inspector-head h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.fz-inspector-head button { border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.fz-ins-tabs { display: flex; gap: 20px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.fz-ins-tabs[hidden] { display: none; }
.fz-ins-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 0; font-size: 13px; font-weight: 600; color: #9aa0ad; cursor: pointer; }
.fz-ins-tabs button.on { border-color: var(--purple); color: var(--purple); }
.fz-ins-body { flex: 1; overflow-y: auto; padding: 16px; }
.fz-ins-foot { display: none; justify-content: space-between; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.fz-inspector.has-node .fz-ins-foot { display: flex; }
.danger-text { color: #ac4155 !important; }
.fz-control { display: block; margin: 0 0 15px; font-weight: 400; }
.fz-control > span { display: block; font-size: 12px; font-weight: 600; color: #4b5260; margin-bottom: 6px; }
.fz-control input, .fz-control textarea, .fz-control select, .fz-qr input, .fz-word input, .fz-card-btn input, .fz-card-btn select { width: 100%; border: 1px solid #dfe2ea; background: #fff; border-radius: 8px; padding: 9px 10px; font-size: 13px; font-family: inherit; color: #333; margin: 0; }
.fz-control textarea { resize: vertical; line-height: 1.5; }
.fz-control small, .fz-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.fz-tags { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid #dfe2ea; border-radius: 8px; padding: 6px; }
.fz-tags em { font-style: normal; font-size: 12px; background: #f4f1fd; color: var(--purple); padding: 4px 4px 4px 9px; border-radius: 99px; display: flex; gap: 2px; align-items: center; }
.fz-tags em button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; }
.fz-tags input { border: 0 !important; flex: 1; min-width: 110px; padding: 4px !important; outline: 0; }
.fz-logic { padding: 11px 12px; border: 1px solid #eceef3; background: #fafbfc; border-radius: 9px; margin-bottom: 9px; }
.fz-logic b { display: block; font-size: 12px; } .fz-logic span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.fz-empty-ins { text-align: center; padding: 26px 10px; color: var(--muted); font-size: 12px; }
.fz-empty-ins span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f1fd; color: var(--purple); }
.fz-helper { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 6px 0 10px; }
.fz-routes { display: grid; gap: 8px; margin-bottom: 14px; }
.fz-routes label { margin: 0; display: grid; gap: 6px; padding: 10px; border: 1px solid #eceef3; border-radius: 9px; font-weight: 400; }
.fz-routes label > span { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.fz-routes i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; background: #f4f1fd; color: var(--purple); display: grid; place-items: center; font-size: 11px; }
.fz-routes select { margin: 0; padding: 8px; border: 1px solid #dfe2ea; border-radius: 7px; font-size: 12px; }
.fz-sub-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-size: 12px; }
.fz-qr, .fz-word { display: grid; grid-template-columns: 22px 1fr 32px; gap: 6px; align-items: center; margin-bottom: 6px; }
.fz-word { grid-template-columns: 1fr 32px; }
.fz-qr > span { font-size: 11px; color: var(--muted); text-align: center; }
.fz-card-edit { border: 1px solid #eceef3; border-radius: 10px; padding: 0 12px 10px; margin-bottom: 12px; }
.fz-card-btn { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 6px; padding: 8px; background: #fafbfc; border-radius: 8px; margin-bottom: 6px; align-items: center; }
.fz-card-btn > :nth-child(3) { grid-column: 1 / 3; }
.fz-set-start, .fz-start-note { width: 100%; margin-top: 16px; padding: 10px; border-radius: 9px; font-size: 12px; font-weight: 600; text-align: center; }
.fz-set-start { border: 1px dashed var(--purple); background: #faf8ff; color: var(--purple); cursor: pointer; }
.fz-start-note { background: #eef8fa; color: #10808e; }

.fz-sim { position: absolute; inset: 0; background: #1c183033; z-index: 20; display: flex; justify-content: flex-end; }
.fz-sim[hidden] { display: none; }
.fz-sim-panel { width: 400px; max-width: 100%; height: 100%; background: #fff; border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; box-shadow: -20px 0 50px #2a20441f; animation: fz-slide .22s ease; }
@keyframes fz-slide { from { transform: translateX(40px); opacity: 0; } }
.fz-sim-head { display: flex; justify-content: space-between; align-items: center; }
.fz-sim-head h3 { margin: 3px 0 0; }
.fz-sim-head > div:last-child { display: flex; gap: 6px; }
.fz-sim-phone { flex: 1; min-height: 0; border: 8px solid #15131c; border-radius: 30px; display: flex; flex-direction: column; overflow: hidden; }
.fz-sim-top { display: flex; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.fz-sim-chat { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.fz-sim-date { text-align: center; font-size: 10px; color: #9aa0ad; letter-spacing: .1em; }
.fz-bubble { align-self: flex-start; max-width: 85%; background: #efefef; border-radius: 18px; padding: 9px 13px; line-height: 1.45; animation: mc-in .2s ease both; overflow-wrap: anywhere; }
.fz-bubble.out { align-self: flex-end; background: linear-gradient(135deg, #7550df, #a23fd8); color: #fff; }
.fz-sim-qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.fz-sim-qr button, .fz-sim-card button { border: 1px solid #c9bdf1; background: #fff; color: var(--purple); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.fz-sim-qr button:disabled, .fz-sim-card button:disabled { opacity: .5; cursor: default; }
.fz-sim-cards { display: flex; gap: 8px; overflow-x: auto; margin: -3px -6px; padding: 3px 6px; }
.fz-sim-card { min-width: 180px; background: #fff; border-radius: 12px; overflow: hidden; display: grid; gap: 4px; padding-bottom: 8px; }
.fz-sim-card img, .fz-sim-img { width: 100%; aspect-ratio: 1.9; object-fit: cover; background: #e4e6ee; }
.fz-sim-card b, .fz-sim-card small { padding: 0 10px; } .fz-sim-card small { color: var(--muted); }
.fz-sim-card button { margin: 2px 8px 0; border-radius: 8px; }
.fz-sim-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #f0f0f0; }
.fz-sim-input input { flex: 1; border: 1px solid #dfe2ea; border-radius: 99px; padding: 8px 12px; font-size: 13px; }
.fz-sim-input .button { padding: 8px 14px; border-radius: 99px; }

@media (max-width: 1300px) { .fz-help { display: none; } }
@media (max-width: 1100px) { .fz-shell { grid-template-columns: 190px 1fr 280px; } }
@media (max-width: 860px) {
  .fz-builder { height: auto; }
  .fz-shell { grid-template-columns: 1fr; }
  .fz-palette { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; }
  .fz-canvas { height: 60vh; }
  .fz-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .fz-toolbar { height: auto; flex-wrap: wrap; padding: 10px; }
  .fz-save { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .mc-row, .fz-card, .fz-bubble, .mc-step, .fz-sim-panel { animation: none; } }

/* ───────── Grupos — experiência do dispatcher ───────── */
.dp-account { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; background: #fff; border: 1px solid #dfe2ea; border-radius: 10px; padding: 7px 12px; font-weight: 400; min-width: 260px; }
.dp-account select { border: 0 !important; margin: 0 !important; padding: 0 !important; font-weight: 600; font-size: 13px; background: transparent; }
.dp-account small { grid-column: 2; color: var(--muted); font-size: 11px; }
.dp-dot { width: 9px; height: 9px; border-radius: 50%; background: #c3c7d0; flex-shrink: 0; }
.dp-dot.on { background: #2fb36a; box-shadow: 0 0 0 3px #2fb36a26; }
.dp-dot.warn { background: #f0a23b; box-shadow: 0 0 0 3px #f0a23b26; }
.dp-dot.lg { width: 12px; height: 12px; }
.dp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 22px; overflow-x: auto; }
.dp-tabs button { border: 0; background: none; padding: 11px 14px; font-size: 13px; font-weight: 600; color: #7b8190; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.dp-tabs button:hover { color: #222836; }
.dp-tabs button.on { color: var(--purple); border-color: var(--purple); }
.dp-tabs b { background: var(--purple); color: #fff; font-size: 10px; border-radius: 99px; padding: 1px 6px; }
.dp-page { animation: mc-in .25s ease both; }
.dp-status { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.dp-status > div { flex: 1; display: grid; }
.dp-status span:not(.dp-dot) { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.dp-status strong { font-size: 16px; } .dp-status small { color: var(--muted); font-size: 12px; }
.dp-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.dp-metrics article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.dp-metrics span { font-size: 12px; color: var(--muted); } .dp-metrics strong { font-size: 26px; letter-spacing: -.02em; } .dp-metrics small { font-size: 12px; color: var(--muted); }
.dp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dp-two.dispatch { grid-template-columns: 1.15fr 1fr; }
.dp-stack { display: grid; gap: 16px; }
.dp-panel { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 12px; align-content: start; }
.dp-panel.featured { border-color: #e2d9fa; box-shadow: 0 10px 30px #7550df0d; }
.dp-panel > label, .dp-panel label { margin-top: 0; }
.dp-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dp-panel-head h2 { margin: 0; font-size: 16px; }
.dp-kicker { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #9aa0ad; font-weight: 600; }
.dp-inline { display: flex; gap: 10px; align-items: center; }
.dp-inline label { width: auto; white-space: nowrap; }
.dp-empty { color: var(--muted); font-size: 13px; padding: 14px 0; margin: 0; }
.dp-empty.big { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 36px 10px; }
.dp-empty.big > span { width: 46px; height: 46px; border-radius: 14px; background: #f4f1fd; color: var(--purple); display: grid; place-items: center; font-size: 20px; }
.dp-row { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.dp-row b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dp-row small { color: var(--muted); font-size: 12px; }
.dp-type { font-size: 11px; font-weight: 600; background: #f1ecfd; color: var(--purple); border-radius: 6px; padding: 3px 8px; text-align: center; white-space: nowrap; justify-self: start; }
.dp-count { display: flex; gap: 6px; } .dp-count em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.dp-count .ok { background: #e5f6ec; color: #1f8a4c; } .dp-count .bad { background: #fbe9ec; color: #ac4155; } .dp-count .sched { background: #fdf3e2; color: #a86a12; }
.dp-type-tabs { display: flex; gap: 4px; background: #f2f3f7; border-radius: 9px; padding: 3px; flex-wrap: wrap; }
.dp-type-tabs button { flex: 1; border: 0; background: none; padding: 8px 10px; font-size: 12px; font-weight: 600; color: #606776; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.dp-type-tabs button.on { background: #fff; color: var(--purple); box-shadow: 0 1px 3px #0000001a; }
.dp-type-tabs.dp-sm { max-width: 240px; }
.dp-message, .dp-panel textarea, .dp-panel input[type=text], .dp-panel input:not([type]), .dp-panel input[type=datetime-local], .dp-panel select, .dp-search { width: 100%; border: 1px solid #dfe2ea; border-radius: 9px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; color: #333; }
.dp-message { resize: vertical; line-height: 1.55; min-height: 170px; }
.dp-chars { text-align: right; font-size: 11px; color: var(--muted); margin-top: -6px; }
.dp-toggle { display: flex !important; gap: 9px; align-items: center; font-weight: 500 !important; font-size: 13px; cursor: pointer; margin: 0; }
.dp-toggle input { width: auto !important; margin: 0 !important; accent-color: var(--purple); }
.dp-toggle.dp-sm { font-size: 12px; }
.dp-hint { display: flex; gap: 10px; align-items: center; background: #faf8ff; border: 1px dashed #dcd2f6; border-radius: 10px; padding: 10px 12px; }
.dp-hint span, .dp-step { width: 24px; height: 24px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.dp-hint p { margin: 0; font-size: 12px; color: #5d5578; }
.dp-sub { font-size: 13px; font-weight: 600; }
.dp-poll-opt { display: grid; grid-template-columns: 22px 1fr 32px; gap: 6px; align-items: center; }
.dp-poll-opt > span:first-child { font-size: 11px; color: var(--muted); text-align: center; }
.dp-drop { border: 2px dashed #d9d2f0; border-radius: 12px; padding: 22px; text-align: center; display: grid; justify-items: center; gap: 4px; cursor: pointer; background: #fcfbff; transition: border-color .15s, background .15s; }
.dp-drop:hover, .dp-drop.over, .dp-drop:focus-visible { border-color: var(--purple); background: #f7f3ff; outline: 0; }
.dp-drop small { color: var(--muted); font-size: 12px; }
.dp-drop-ico { font-size: 22px; color: var(--purple); }
.dp-drop.has { padding: 10px; cursor: default; border-style: solid; }
.dp-media { display: grid; grid-template-columns: auto 1fr 32px; gap: 12px; align-items: center; width: 100%; text-align: left; }
.dp-media img, .dp-media video { width: 96px; height: 96px; object-fit: cover; border-radius: 9px; background: #eee; }
.dp-media b { display: block; font-size: 13px; overflow-wrap: anywhere; } .dp-media small { color: var(--muted); }
.dp-file-icon { width: 56px; height: 56px; border-radius: 10px; background: #f1ecfd; color: var(--purple); display: grid; place-items: center; font-size: 22px; }
.dp-search { padding: 9px 12px; font-size: 13px; }
.dp-groups { max-height: 420px; overflow-y: auto; display: grid; gap: 4px; margin: 0 -6px; padding: 0 6px; }
.dp-group { display: grid !important; grid-template-columns: 18px 36px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; transition: background .12s; }
.dp-group:hover { background: #f7f8fb; }
.dp-group.on { background: #f7f3ff; border-color: #e2d9fa; }
.dp-group input { width: auto !important; margin: 0 !important; accent-color: var(--purple); }
.dp-group.dp-sm { display: flex !important; gap: 8px; padding: 6px 8px; }
.dp-group.dp-sm .dp-gname { flex: 1; }
.dp-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #e6dcfb, #d6f1e5); display: grid; place-items: center; font-weight: 700; color: #5d4aa8; font-size: 14px; flex-shrink: 0; }
.dp-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp-gname { min-width: 0; } .dp-gname b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dp-gname small { color: var(--muted); font-size: 11px; }
.dp-counter { font-size: 12px; color: var(--muted); text-align: right; }
.dp-bar { position: sticky; bottom: 14px; margin-top: 16px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2d9fa; border-radius: 14px; padding: 12px 14px 12px 16px; box-shadow: 0 16px 40px #2a204419; z-index: 5; }
.dp-bar > div { flex: 1; display: grid; } .dp-bar strong { font-size: 14px; } .dp-bar small { color: var(--muted); font-size: 12px; }
.dp-review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.dp-review-grid div { background: #f7f8fb; border-radius: 9px; padding: 10px; display: grid; gap: 3px; }
.dp-review-grid span { font-size: 11px; color: var(--muted); } .dp-review-grid b { font-size: 14px; }
.dp-review-msg { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; max-height: 200px; overflow: auto; }
.dp-review-msg p { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; } .dp-review-msg ul { margin: 0; padding-left: 18px; font-size: 13px; }
.dp-file-chip { font-style: normal; font-size: 12px; background: #f1ecfd; color: var(--purple); border-radius: 6px; padding: 3px 8px; justify-self: start; }
.dp-review-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.dp-review-groups span { font-size: 12px; background: #f2f3f7; border-radius: 99px; padding: 4px 10px; } .dp-review-groups .more { background: #f1ecfd; color: var(--purple); }
.dp-warn { font-size: 12px; margin: 0 0 12px; }
.dp-type-tabs.when { margin-top: 6px; }
.dp-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dp-when[hidden] { display: none; }
.dp-prog { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.dp-prog-bar { flex: 1; height: 8px; border-radius: 99px; background: #eceef3; overflow: hidden; }
.dp-prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7550df, #2fb36a); transition: width .4s; }
.dp-prog span { font-size: 12px; font-weight: 600; color: #606776; }
.dp-log { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.dp-log div { padding: 6px 0; border-bottom: 1px solid #f2f3f6; } .dp-log div:last-child { border: 0; }
.dp-log .success { color: #1f8a4c; } .dp-log .error { color: #ac4155; } .dp-log .pending { color: #7b8190; }
.dp-log b { color: #222836; }
.dp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dp-sched { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.dp-sched .card-top { display: flex; justify-content: space-between; } .dp-sched > b { font-size: 14px; overflow-wrap: anywhere; } .dp-sched small { color: var(--muted); font-size: 12px; }
.dp-sched-when { font-size: 13px; font-weight: 600; display: flex; gap: 6px; color: #a86a12; }
.dp-sched .card-foot { border-top: 1px solid var(--line); padding-top: 8px; }
.dp-badge { font-size: 11px; font-weight: 600; background: #f1ecfd; color: var(--purple); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.dp-badge.gray { background: #f0f1f5; color: #7b8190; }
.text-button.danger { color: #ac4155; }
.dp-grid-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.dp-gcard { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.dp-gcard b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dp-gcard small { color: var(--muted); font-size: 11px; } .dp-gcard > div { min-width: 0; }
.dp-pick { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; display: grid; gap: 2px; }
.dp-num { font-style: normal; font-size: 11px; font-weight: 700; background: var(--purple); color: #fff; border-radius: 5px; padding: 1px 5px; }
.dp-preview { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; max-height: 180px; overflow: auto; }
.dp-preview li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: #fafbfc; border-radius: 7px; padding: 6px 8px; }
.dp-preview s { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dp-preview b { color: var(--purple); }
.dp-report { border-top: 1px solid var(--line); }
.dp-report-head { width: 100%; display: grid; grid-template-columns: 82px 1fr auto 16px; gap: 12px; align-items: center; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.dp-report-head b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dp-report-head small { color: var(--muted); font-size: 12px; } .dp-report-head i { font-style: normal; color: var(--muted); }
.dp-report-body { padding: 0 0 12px 94px; display: grid; gap: 4px; }
.dp-report-line { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; font-size: 12px; align-items: baseline; }
.dp-report-line.succeeded span { color: #1f8a4c; } .dp-report-line.failed span, .dp-report-line.needs_review span { color: #ac4155; }
.dp-report-line small { color: var(--muted); overflow-wrap: anywhere; }
.dp-conn { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dp-conn b { display: block; font-size: 14px; } .dp-conn small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.dp-note { font-size: 12px; margin: 0; }
.dp-saved { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.dp-saved b { display: block; font-size: 13px; } .dp-saved small { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dp-saved-pick { display: grid; gap: 8px; margin-top: 12px; max-height: 60vh; overflow: auto; }
.dp-saved-pick button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px; cursor: pointer; display: grid; gap: 4px; font: inherit; }
.dp-saved-pick button:hover { border-color: var(--purple); }
.dp-saved-pick small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .dp-metrics { grid-template-columns: repeat(2, 1fr); } .dp-two, .dp-two.dispatch { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dp-metrics, .dp-review-grid, .dp-when { grid-template-columns: 1fr 1fr; } .dp-account { min-width: 0; width: 100%; } .dp-report-body { padding-left: 0; } .dp-conn { grid-template-columns: auto 1fr; } }

/* ───────── Publicações — experiência do Publicador ───────── */
.pb-shortcut { background: #fdf6e8; border: 1px solid #f3e1bd; color: #7a5612; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 0 0 14px; }
.pb-block { display: grid; gap: 14px; }
.pb-block-head h2 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.pb-block-head p { margin: 0; font-size: 13px; max-width: 760px; line-height: 1.55; }
.pb-count { font-size: 12px; background: #f1ecfd; color: var(--purple); padding: 2px 9px; border-radius: 99px; }
.pb-empty { color: var(--muted); font-size: 14px; background: #fff; border: 1px dashed #dfe2ea; border-radius: 12px; padding: 26px; text-align: center; }
.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pb-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 9px; align-content: start; animation: mc-in .35s ease both; transition: box-shadow .2s; }
.pb-card:hover { box-shadow: 0 12px 30px #2a20440f; }
.pb-media { position: relative; border-radius: 10px; overflow: hidden; background: #eef0f4; aspect-ratio: 4 / 5; }
.pb-cover, .pb-media .pb-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-badge { position: absolute; left: 8px; top: 8px; background: #000000a6; color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; backdrop-filter: blur(4px); }
.pb-video { display: grid; place-items: center; background: linear-gradient(135deg, #2b243a, #5a4a8a); color: #fff; width: 100%; height: 100%; min-height: 40px; font-size: 18px; }
.pb-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.pb-strip figure { position: relative; margin: 0; width: 56px; height: 56px; flex-shrink: 0; border-radius: 7px; overflow: hidden; background: #eef0f4; }
.pb-strip img, .pb-strip .pb-video { width: 100%; height: 100%; object-fit: cover; font-size: 12px; }
.pb-n { position: absolute; left: 3px; top: 3px; background: #000a; color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 0 4px; }
.pb-arrows { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; opacity: 0; transition: opacity .15s; }
.pb-strip figure:hover .pb-arrows, .pb-strip figure:focus-within .pb-arrows { opacity: 1; }
.pb-arrows button { border: 0; background: #000b; color: #fff; width: 20px; height: 20px; cursor: pointer; font-size: 13px; }
.pb-arrows button:disabled { opacity: .3; }
.pb-name { margin: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-fail { margin: 0; font-size: 12px; color: #ac4155; background: #fbe9ec; border-radius: 7px; padding: 6px 8px; }
.pb-caption, .pb-uprow textarea, #pb-ccap, #pb-lcap, #pb-links { width: 100%; border: 1px solid #dfe2ea; border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; background: #fff; }
.pb-when { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.pb-when input, .pb-when select { border: 1px solid #dfe2ea; border-radius: 8px; padding: 8px; font-size: 13px; min-width: 0; background: #fff; }
.pb-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.pb-moveacc summary { font-size: 12px; color: var(--muted); cursor: pointer; padding: 4px 0; }
.pb-agenda { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.pb-agenda aside { position: sticky; top: 16px; display: grid; gap: 14px; }
.pb-month { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pb-month h3 { margin: 0 0 8px; font-size: 13px; } .pb-month h3::first-letter, .pb-dow-l::first-letter { text-transform: uppercase; }
.pb-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.pb-dow { font-size: 10px; color: #9aa0ad; font-weight: 600; }
.pb-day { position: relative; font-size: 12px; padding: 6px 0; border-radius: 7px; color: #606776; text-decoration: none; }
.pb-day.today { outline: 1px solid var(--purple); }
.pb-day.has { background: #f1ecfd; color: var(--purple); font-weight: 700; cursor: pointer; }
.pb-day.has:hover { background: var(--purple); color: #fff; }
.pb-day i { position: absolute; top: -4px; right: -3px; font-style: normal; font-size: 9px; background: var(--purple); color: #fff; border-radius: 99px; min-width: 14px; padding: 0 3px; }
.pb-timeline { display: grid; gap: 14px; }
.pb-dayblock { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; animation: mc-in .35s ease both; scroll-margin-top: 16px; }
.pb-dayhead { display: flex; gap: 12px; align-items: center; }
.pb-daynum { width: 48px; height: 48px; border-radius: 12px; background: #f1ecfd; color: var(--purple); display: grid; place-items: center; line-height: 1; }
.pb-daynum b { font-size: 18px; } .pb-daynum span { font-size: 10px; text-transform: uppercase; }
.pb-dow-l { margin: 0; font-weight: 600; } .pb-dayhead small { color: var(--muted); }
.pb-event { display: grid; grid-template-columns: 54px 70px 1fr; gap: 12px; align-items: start; border-top: 1px solid var(--line); padding-top: 10px; }
.pb-hour { font-weight: 700; font-size: 14px; color: #a86a12; padding-top: 4px; }
.pb-evmedia { position: relative; width: 70px; height: 70px; border-radius: 9px; overflow: hidden; background: #eef0f4; }
.pb-evmedia img, .pb-evmedia .pb-video { width: 100%; height: 100%; object-fit: cover; }
.pb-evmedia .pb-badge { font-size: 9px; padding: 1px 5px; left: 4px; top: 4px; }
.pb-evbody b { font-size: 13px; } .pb-evbody p { margin: 4px 0 6px; font-size: 13px; color: #4b5260; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pb-list { display: grid; gap: 8px; }
.pb-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; animation: mc-in .3s ease both; }
.pb-linethumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #eef0f4; }
.pb-linethumb img, .pb-linethumb .pb-video { width: 100%; height: 100%; object-fit: cover; }
.pb-linebody { min-width: 0; } .pb-linebody > div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pb-linebody p { margin: 5px 0 2px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pb-linebody small { color: var(--muted); font-size: 11px; }
.pb-type { font-size: 11px; font-weight: 600; background: #f1ecfd; color: var(--purple); border-radius: 6px; padding: 2px 7px; } .pb-type.gray { background: #f0f1f5; color: #7b8190; }
.pb-date { font-size: 12px; color: var(--muted); }
.pb-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pb-hero h2 { margin: 4px 0; font-size: 24px; letter-spacing: -.02em; } .pb-hero p { margin: 0; }
.pb-hero-actions { display: flex; gap: 10px; align-items: center; }
.pb-method { display: flex; gap: 10px; align-items: center; background: #f6f7fa; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; font-size: 12px; color: #606776; }
.pb-method span { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--purple); flex-shrink: 0; } .pb-method p { margin: 0; }
.pb-bar { display: grid; grid-template-columns: 130px 1fr 60px; gap: 10px; align-items: center; font-size: 13px; }
.pb-bar small { color: var(--muted); } .pb-bar > div { height: 10px; background: #f0f1f5; border-radius: 99px; overflow: hidden; }
.pb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7550df, #b18cf5); border-radius: 99px; transition: width .5s; } .pb-bar b { text-align: right; }
.pb-top { display: grid; gap: 8px; }
.pb-topcard { display: grid; grid-template-columns: 22px 54px 1fr; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 6px; border-radius: 10px; }
.pb-topcard:hover { background: #f7f8fb; }
.pb-rank { font-weight: 800; color: var(--purple); text-align: center; }
.pb-topcard img, .pb-topcard .pb-video { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.pb-topcard small { color: var(--muted); font-size: 11px; display: block; } .pb-topcard b { font-size: 13px; } .pb-topcard p { margin: 2px 0 0; font-size: 12px; color: #4b5260; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pb-topcard > div { min-width: 0; }
.pb-modes { max-width: 520px; }
.pb-rows { display: grid; gap: 10px; }
.pb-uprow { display: grid; grid-template-columns: 220px 1fr 32px; gap: 10px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.pb-file { display: grid !important; place-items: center; gap: 6px; text-align: center; border: 2px dashed #d9d2f0; border-radius: 10px; padding: 14px; cursor: pointer; font-size: 12px; font-weight: 500 !important; color: #606776; background: #fcfbff; min-height: 110px; margin: 0 !important; overflow-wrap: anywhere; }
.pb-file:hover { border-color: var(--purple); }
.pb-file.has { border-style: solid; }
.pb-file img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 7px; }
.pb-file.wide { min-height: 90px; }
.pb-fileico { font-size: 20px; color: var(--purple); }
.pb-formactions { display: flex; justify-content: space-between; gap: 10px; }
.pb-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pb-order li { position: relative; display: grid; grid-template-columns: 24px 44px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.pb-order .pb-n { position: static; background: var(--purple); text-align: center; }
.pb-order img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.pb-oname { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-oacts { display: flex; gap: 4px; } .pb-oacts button { width: 28px; height: 28px; border: 1px solid #dfe2ea; background: #fff; border-radius: 6px; cursor: pointer; } .pb-oacts button:disabled { opacity: .35; }
.pb-note { margin: 0; font-size: 12px; }
@media (max-width: 900px) { .pb-agenda { grid-template-columns: 1fr; } .pb-agenda aside { position: static; } .pb-uprow { grid-template-columns: 1fr; } .pb-line { grid-template-columns: 56px 1fr; } .pb-line > a { grid-column: 1 / -1; } }

/* ───────── Links — experiência do Perseu ───────── */
.lk-thin { font-weight: 400; color: var(--purple); }
.lk-notice { font-size: 12px; margin: 0 0 16px; }
.lk-grid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 16px; align-items: start; }
.lk-panel { padding: 20px; display: grid; gap: 12px; align-content: start; }
.lk-panel h2 { margin: 0; font-size: 17px; }
.lk-panel > label, .lk-utms label { margin: 0; }
.lk-panel input, .lk-panel select { width: 100%; border: 1px solid #dfe2ea; border-radius: 9px; padding: 10px 11px; font-size: 14px; background: #fff; }
.lk-label { margin: 2px 0 -4px; font-size: 13px; font-weight: 550; }
.lk-opt { color: #9aa0ad; font-weight: 400; font-size: 11px; }
.lk-utms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lk-utms .full { grid-column: 1 / -1; }
.lk-utms input { padding: 8px 10px !important; font-size: 13px !important; }
.lk-prefix { display: flex; align-items: center; border: 1px solid #dfe2ea; border-radius: 9px; overflow: hidden; margin-top: 8px; background: #fff; }
.lk-prefix span { padding: 0 2px 0 10px; color: var(--muted); font-size: 12px; white-space: nowrap; font-weight: 400; }
.lk-prefix input { border: 0 !important; margin: 0 !important; padding-left: 2px !important; }
.lk-preview { margin: 0; font-size: 12px; font-family: ui-monospace, Menlo, monospace; background: #f6f7fa; border-radius: 8px; padding: 9px 10px; overflow-wrap: anywhere; color: #4b5260; }
.lk-submit { width: 100%; padding: 12px; }
.lk-created { background: #e9f7ef; border: 1px solid #c7ebd5; border-radius: 10px; padding: 10px 12px; animation: mc-in .3s ease both; }
.lk-created small { color: #1f8a4c; font-weight: 600; } .lk-created div { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .lk-created strong { font-size: 13px; overflow-wrap: anywhere; }
.lk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lk-count { font-size: 12px; color: var(--muted); }
.lk-search { width: 100%; border: 1px solid #dfe2ea; border-radius: 9px; padding: 10px 12px; font-size: 13px; }
.lk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lk-item { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; gap: 4px 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; animation: mc-in .3s ease both; transition: border-color .15s; }
.lk-item:hover { border-color: #d9cff7; }
.lk-item.off { opacity: .65; }
.lk-info { min-width: 0; } .lk-info p { margin: 0; }
.lk-name { font-weight: 600; font-size: 14px; }
.lk-slug { font-family: ui-monospace, Menlo, monospace; color: var(--purple); font-size: 13px; font-weight: 600; }
.lk-dest { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-clicks { text-align: center; } .lk-clicks b { display: block; font-size: 20px; letter-spacing: -.02em; } .lk-clicks small { font-size: 11px; color: var(--muted); }
.lk-actions { display: flex; gap: 4px; }
.lk-btn { width: 32px; height: 32px; border: 1px solid #dfe2ea; background: #fff; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; color: #606776; text-decoration: none; font-size: 13px; }
.lk-btn:hover { border-color: var(--purple); color: var(--purple); } .lk-btn.del:hover { border-color: #ac4155; color: #ac4155; }
.lk-meta { grid-column: 1 / -1; margin: 0; font-size: 11px; color: #9aa0ad; }
.lk-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
@media (max-width: 900px) { .lk-grid { grid-template-columns: 1fr; } .lk-item { grid-template-columns: 1fr auto; } .lk-actions { grid-column: 1 / -1; } }

/* ───────── Fluxos de WhatsApp (FluxZap) ───────── */
.wf-row { display: grid; grid-template-columns: 1fr 32px; gap: 6px; align-items: center; }
.wf-tpl { background: #f0faf4; border: 1px solid #d3eedd; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.5; margin-bottom: 12px; display: grid; gap: 4px; }
.wf-tpl p { margin: 0; white-space: pre-wrap; } .wf-tpl mark { background: #fff3c4; border-radius: 3px; padding: 0 2px; }
.wf-tpl em { font-style: normal; color: #1f8a5c; font-weight: 600; } .wf-tpl small { color: var(--muted); }
.wf-tpl > div { display: flex; flex-wrap: wrap; gap: 4px; } .wf-tpl > div span { background: #fff; border: 1px solid #cfe6d8; color: #0b7a55; border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.wf-follow { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; display: grid; gap: 10px; }
.wf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fz-warn-t { color: #b9791a !important; font-weight: 600; }
.wf-parse { font-size: 12px; margin: 6px 0 10px; }
.wf-batches { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.wf-batch { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; }
.wf-batch small { display: block; color: var(--muted); font-size: 11px; }
.fz-sim-phone.wa .fz-sim-chat { background: #efe7dd; }
.fz-sim-phone.wa .fz-bubble { background: #fff; border-radius: 4px 12px 12px 12px; }
.fz-sim-phone.wa .fz-bubble.out { background: #d9fdd3; color: #111; border-radius: 12px 4px 12px 12px; }
.fz-sim-phone.wa .fz-sim-qr button { border-color: #cfe6d8; color: #0b7a55; border-radius: 8px; }
.wf-sim-tag { font-size: 9px; letter-spacing: .08em; color: #0b7a55; font-weight: 700; }
.wf-sim-media { background: #e4e6ee; border-radius: 8px; padding: 26px 12px; text-align: center; color: #606776; margin-bottom: 4px; }
