/* Call Flow Builder v2 — canvas chrome (Slice 1 read-only). FA5 icons only. */
.cf-viewport {
  position: relative; overflow: hidden; width: 100%; height: 100%;
  min-height: 540px; cursor: grab;
  background: radial-gradient(circle at 1px 1px, #d6dce8 1.4px, transparent 0) 0 0/24px 24px, #eaedf3;
  border-radius: 12px;
}
.cf-viewport.cf-drag { cursor: grabbing; }
.cf-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
/* Mobile: let our JS own all canvas gestures (1-finger pan, 2-finger pinch-zoom) — stop the browser from
   scrolling/zooming the page. touch-action isn't inherited, so set it on the canvas content elements too. */
.cf-host { touch-action: none; }
.cf-world, .cf-node, .cf-elbl, .cf-child, .cf-empty { touch-action: none; -webkit-user-select: none; user-select: none; }
/* the inspector must still scroll + its inputs must accept touch. */
.cf-inspector { touch-action: pan-y; }
.cf-inspector input, .cf-inspector textarea, .cf-inspector select,
.cf-inspector .selector, .cf-inspector .dropdown-widget, .cf-inspector .tagify { touch-action: auto; }
.cf-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: #969cb6; font-weight: 700; font-size: 14px;
  font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif;
}
.cf-empty i { font-size: 34px; opacity: .5; }
/* empty-flow root add: the one entry point when the canvas has no actions yet */
.cf-empty-add {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 10px;
  background: #2f6df6; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(47,109,246,.32); touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.cf-empty-add:hover { background: #2559d1; }
.cf-empty-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cf-empty-template { background: #fff; color: #2f6df6; border: 1px solid #c9d8f8; box-shadow: 0 3px 10px rgba(20,24,40,.08); }
.cf-empty-template:hover { background: #f3f7ff; }
/* template wizard: choice tiles + section chrome */
.cf-tpl-tiles { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.cf-tpl-tile {
  flex: 1 1 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; background: #fff; border: 1.5px solid #e3e7f0; border-radius: 12px; padding: 16px;
  cursor: pointer; color: #2a3145; font-size: 12.5px; white-space: normal;
}
.cf-tpl-tile i { font-size: 22px; color: #2f6df6; }
.cf-tpl-tile b { font-size: 14px; }
.cf-tpl-tile span { color: #7b829b; font-weight: 500; line-height: 1.45; }
.cf-tpl-tile:hover { border-color: #a9c6ff; }
.cf-tpl-tile.cf-tpl-tile-active { border-color: #2f6df6; box-shadow: 0 6px 20px rgba(47,109,246,.16); background: #f7faff; }
.cf-tpl-247 { font-weight: 700; margin-bottom: 10px; }
.cf-tpl-optcount { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-weight: 700; }
.cf-tpl-optcount-sel { width: 90px !important; display: inline-block; }
.cf-tpl-hint { flex-basis: 100%; color: #7b829b; font-weight: 500; font-size: 12px; }
.cf-tpl-vmsec { border: 1px solid #e9edf5; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.cf-tpl-vmsec-title { display: block; font-weight: 800; font-size: 12.5px; color: #2a3145; margin-bottom: 6px; }
.cf-tpl-skiphol { font-weight: 600; margin-bottom: 8px; display: block; }
.cf-tpl-sum { display: block; margin: 3px 0; }
/* unset-branch placeholder: a full node-size dashed "Assign a step" slot occupying the same layout
   footprint a real child action would (2026-07-02; replaces the small round .cf-stub-add button) */
.cf-node.cf-slot { border: 1.6px dashed #a9c6ff; background: #f8faff; box-shadow: none; cursor: pointer; }
.cf-node.cf-slot .cf-ic.cf-slot-ic { color: #2f6df6; background: #fff; border: 1.4px dashed #a9c6ff; }
.cf-node.cf-slot .cf-ttl { color: #2f6df6; }
.cf-node.cf-slot .cf-sub { color: #9aa0b8; }
.cf-node.cf-slot:hover { border-style: solid; border-color: #2f6df6; background: #f3f7ff; box-shadow: 0 8px 26px rgba(47,109,246,.18); }
/* inspector "Step type" switcher button (opens the searchable type picker) */
.cf-insp-ct-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  text-align: left; background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 600; color: #2a3145;
}
.cf-insp-ct-btn i { color: #969cb6; font-size: 11px; }
/* the node's CURRENT type inside the change-type picker: visible but not clickable */
.cf-picker-opt.cf-ct-current { opacity: .45; cursor: default; pointer-events: none; }
.cf-empty-add i { font-size: 12px; opacity: 1; }
.cf-node.cf-selected { outline: 2px solid #2f6df6; outline-offset: 2px; box-shadow: 0 6px 22px rgba(47,109,246,.28); }
/* Slice 11 reachability highlight */
.cf-node, .cf-edge, .cf-elbl { transition: opacity .12s ease; }
.cf-node.cf-dim, .cf-edge.cf-dim, .cf-elbl.cf-dim { opacity: .26; }
.cf-node.cf-hot { box-shadow: 0 8px 26px rgba(47,109,246,.22); border-color: #a9c6ff; }
.cf-edge.cf-hot { stroke: #2f6df6; stroke-width: 3.2; }
.cf-elbl.cf-hot { color: #2f6df6 !important; font-weight: 800; }
/* Card action glyphs: compact top-right corner overlay (as originally), ALWAYS visible (no hover reveal — hover
   only tweaks color). Card titles are the short TYPE name (left side) so they clear these; the subtitle sits on
   the lower line, below the glyphs. */
/* kebab (3-dot vertical) "more options" menu — holds every card action except add (user 2026-07-10) */
.cf-node-menu {
  position: absolute; top: 9px; right: 6px; width: 24px; height: 24px; display: flex;
  align-items: center; justify-content: center; border-radius: 7px; color: #565d78; background: rgba(255,255,255,.75);
  font-size: 11px; opacity: .9; transition: color .12s ease, background .12s ease;
  cursor: pointer;
}
.cf-node-menu:hover { color: #2f6df6; background: #eef0fb; }
.cf-node-addfirst {
  position: absolute; top: 9px; right: 34px; width: 24px; height: 24px; display: flex;
  align-items: center; justify-content: center; border-radius: 7px; color: #565d78; background: rgba(255,255,255,.75);
  font-size: 11px; opacity: .9; border: none; cursor: pointer;
  transition: color .12s ease, background .12s ease;
}
.cf-node-addfirst:hover { color: #12b27c; background: #e9f8f1; }
/* a card with no kebab (plain root): the add button slides into the corner slot */
.cf-node-addfirst:last-child { right: 6px; }
.cf-picker {
  position: fixed; z-index: 1000; width: 268px; background: #fff; border: 1px solid #e3e7f0;
  border-radius: 12px; box-shadow: 0 12px 40px rgba(20,24,40,.18); padding: 8px; display: none;
  font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif;
}
.cf-picker-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; color: #2b2f42; padding: 4px 6px 8px; }
.cf-picker-x { color: #b6bccd; cursor: pointer; }
.cf-picker-x:hover { color: #2b2f42; }
.cf-picker-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: transparent; padding: 9px 8px; border-radius: 8px; cursor: pointer; color: #2b2f42; }
.cf-picker-opt:hover { background: #eef0fb; }
.cf-picker-opt > i { width: 20px; text-align: center; color: #2f6df6; }
.cf-picker-ot { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; }
.cf-picker-ot em { font-style: normal; font-size: 11px; font-weight: 600; color: #969cb6; }
.cf-picker-note { font-size: 10px; color: #b6bccd; padding: 8px 8px 4px; }
/* Slice 5: IVR add-digit affordance + picker steps */
/* kebab menu rows: danger (delete) + disabled (missing link target) looks */
.cf-picker-opt.cf-popt-danger > i { color: #e5497a; }
.cf-picker-opt.cf-popt-danger:hover { background: #fdeef3; }
.cf-picker-opt.cf-nm-off { opacity: .6; cursor: default; }
.cf-picker-opt.cf-nm-off > i { color: #b6bccd; }
.cf-picker-opt.cf-nm-off:hover { background: transparent; }
/* picker: category headers + color-coded icon boxes + live search (prototype parity) */
.cf-picker-cat { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #969cb6; padding: 9px 8px 5px; }
.cf-pi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; flex: 0 0 28px; color: #2f6df6; background: #eaf1ff; }
.cf-picker-search { padding: 2px 6px 8px; }
.cf-picker-filter { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid #d6dbe8; border-radius: 8px; font-size: 13px; }
.cf-picker-filter:focus { outline: none; border-color: #2f6df6; }
.cf-picker-list { max-height: 300px; overflow-y: auto; }
.cf-picker-field { padding: 6px 6px 10px; }
.cf-picker-field label { display: block; font-size: 11px; font-weight: 700; color: #8b91a7; margin-bottom: 5px; }
.cf-picker-digit { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d6dbe8; border-radius: 8px; font-size: 14px; font-weight: 700; }
.cf-picker-digit:focus { outline: none; border-color: #2f6df6; }
.cf-picker-err { color: #e5497a; font-size: 11px; font-weight: 600; margin-top: 6px; }
/* duplicate-trigger hints (2026-07-14: duplicates WARN, never block) — amber, non-blocking */
.cf-picker-warn { color: #b76e00; font-size: 11px; font-weight: 600; margin-top: 6px; }
.cf-picker-warn i { color: #f1a53c; margin-right: 4px; }
.cf-picker-ot em.cf-popt-inuse { color: #b76e00; }
.cf-picker-continue { display: flex; align-items: center; gap: 6px; width: 100%; justify-content: center; margin-top: 2px; padding: 9px; border: none; border-radius: 8px; background: #2f6df6; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.cf-picker-continue:hover { background: #245fe0; }
/* Slice 8: Link Action locate — the button moved into the kebab menu; only the target pulse remains. */
@keyframes cf-locate-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 109, 246,0); } 30% { box-shadow: 0 0 0 7px rgba(47, 109, 246,.35); } }
.cf-node.cf-locate-pulse { animation: cf-locate-flash .95s ease; }
/* Slice 9: editable branch label — must re-enable hit-testing (.cf-elbl sets pointer-events:none for panning) */
.cf-elbl-edit { cursor: pointer; pointer-events: auto; }
.cf-elbl-edit:hover { text-decoration: underline; filter: brightness(.85); }
.cf-svg { position: absolute; left: 0; top: 0; overflow: visible; }

/* Slice 2/15: builder layout = canvas fills the FULL width; inspector is an ABSOLUTE right-docked
   overlay (so it never shrinks the canvas / takes flow space). */
.cf-builder-row { position: relative; height: 100%; }
.cf-canvas-pane { position: absolute; inset: 0; }
.cf-inspector {
  position: absolute; top: 0; right: 0; bottom: 0; width: 340px; z-index: 12; /* above the health chip / zoom cluster (z-index:6) */
  background: #fff; border: 1px solid #e3e7f0; border-radius: 12px;
  padding: 18px; overflow-y: auto;
  box-shadow: -10px 0 30px rgba(20, 24, 40, .10);
  font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif; color: #2b2f42;
}
.cf-insp-empty { color: #969cb6; font-size: 13px; font-weight: 600; }
.cf-insp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cf-insp-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; background: #eef0f8; color: #2f6df6; font-size: 17px; flex: 0 0 40px;
}
.cf-insp-htext { min-width: 0; flex: 1; }
/* compact "open this action's settings page" jump (icon + tooltip; sits at the right of the header). */
.cf-insp-settings-link { flex: 0 0 auto; cursor: pointer; color: #2f6df6; font-size: 17px; padding: 5px 7px; border-radius: 7px; }
.cf-insp-settings-link:hover { background: #eef3fe; color: #245fe0; }
.cf-insp-ttl { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; word-break: break-word; }
.cf-insp-sub { display: block; font-size: 12px; font-weight: 600; color: #8b91a7; margin-top: 2px; }
.cf-insp-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin: 0 6px 8px 0; }
.cf-insp-badge-start { background: #e7f6ee; color: #1c8a4d; }
.cf-insp-badge-legacy { background: #fdf1e3; color: #b9701a; }
.cf-insp-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #eef0f5; }
.cf-insp-rk { font-size: 12px; font-weight: 700; color: #8b91a7; }
.cf-insp-rv { font-size: 12px; font-weight: 700; color: #2b2f42; word-break: break-word; text-align: right; }
.cf-insp-note { display: block; margin-top: 16px; padding: 12px; border-radius: 10px; background: #f3f5fb; color: #6b7088; font-size: 12px; line-height: 1.5; }
/* the reused *Settings widgets render as Keenthemes cards — flatten them inside the inspector rail
   (no nested card chrome: drop border/shadow/bg/padding + the header/footer) */
.cf-inspector .card { border: none !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; }
.cf-inspector .card > .card-header, .cf-inspector .card-header { display: none !important; }
.cf-inspector .card > .card-body, .cf-inspector .card-body { padding: 0 !important; }
.cf-inspector .card > .card-footer, .cf-inspector .card-footer { display: none !important; }
.cf-inspector .card-title { font-size: 14px; }
/* the old builder set static min-widths / fixed widths on the settings widgets for its WIDE layout;
   in the narrow inspector rail those overflow horizontally. Neutralize them + force a fluid, stacked,
   full-width form so the rail only scrolls vertically. */
.cf-inspector { overflow-x: hidden; }
/* hidden until a node is selected — canvas gets full width */
.cf-inspector.cf-hidden { display: none !important; }
/* Reverted the dropdown "portal": let the framework (Popper) position the menu in place (no position:fixed
   override, no JS reposition) so it doesn't open-then-jump. Keep only a max-height + stacking so long lists
   scroll and the menu stays above sibling content. (Revisit overflow-clipping from here if needed.) */
.cf-inspector .dropdown-menu { z-index: 1001; max-height: 320px; overflow-y: auto; }
/* Branches section (per-action outgoing branches + tag-name editor) */
.cf-insp-section-title { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #9aa0b8; margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid #eef0f5; }
/* Branches accordion: a single collapsible group, closed by default (.cf-collapsed). */
.cf-insp-branches-acc { margin-top: 16px; padding-top: 12px; border-top: 1px solid #eef0f5; }
.cf-insp-branches-hdr { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.cf-insp-branches-hdr:hover .cf-insp-branches-ttl { color: #6b7290; }
.cf-insp-branches-chev { font-size: 11px; color: #9aa0b8; transition: transform .15s ease; width: 10px; text-align: center; }
.cf-insp-branches-acc:not(.cf-collapsed) .cf-insp-branches-chev { transform: rotate(90deg); }
.cf-insp-branches-ttl { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #9aa0b8; }
.cf-insp-branches-count { margin-left: auto; font-size: 10px; font-weight: 800; color: #8b91a7; background: #eef0f5; border-radius: 10px; padding: 1px 8px; min-width: 20px; text-align: center; }
.cf-insp-branches-body { margin-top: 0; }
.cf-insp-branches-acc.cf-collapsed .cf-insp-branches-body { display: none; }
/* Each branch is a stacked CARD: the three facts (Return type / Tag name / Goes to) each on their own row,
   full width, never squished side-by-side. */
.cf-insp-branch { display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px; padding: 10px 10px 11px; background: #fafbfe; border: 1px solid #eef0f5; border-radius: 8px; }
.cf-insp-branch-field { display: flex; flex-direction: column; gap: 3px; }
.cf-insp-branch-label { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a2a8bd; }
.cf-insp-branch-route { font-size: 13px; font-weight: 700; color: #4a5069; }
.cf-insp-branch-tag.form-control { width: 100%; font-size: 12.5px; padding: 6px 9px; height: auto; }
.cf-insp-branch-route-sel.form-control { width: 100%; font-size: 12.5px; padding: 6px 9px; height: auto; }
.cf-insp-branch-target-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cf-insp-branch-target { font-size: 13px; font-weight: 600; color: #2f6df6; }
.cf-insp-branch-target.cf-insp-branch-target-empty { color: #b0b5c6; font-style: italic; font-weight: 500; }
.cf-insp-branch-locate { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 1px 6px; margin-left: -6px; }
.cf-insp-branch-locate:hover { background: #eef3fe; text-decoration: underline; }
.cf-insp-branch-locate i { font-size: 11px; opacity: .8; }
.cf-insp-link-sel.form-control { width: 100%; font-size: 13px; padding: 7px 9px; height: auto; margin-top: 6px; }
.cf-insp-changetype { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.cf-insp-ct-label { font-size: 11px; font-weight: 700; color: #8b91a7; flex: 0 0 auto; }
.cf-insp-ct-sel.form-control { flex: 1 1 auto; min-width: 0; font-size: 12px; padding: 5px 8px; height: auto; }
.cf-insp-branch.cf-branch-good { border-left: 3px solid #12b27c; padding-left: 7px; }
.cf-insp-branch.cf-branch-bad { border-left: 3px solid #e0457b; padding-left: 7px; }
.cf-insp-branch.cf-branch-other { border-left: 3px solid #c9bdff; padding-left: 7px; }
/* editable step title in the inspector header (rename) — reads like a title until focused */
.cf-insp-ttl-edit { width: 100%; border: 1px solid transparent; background: transparent; font-size: 15px; font-weight: 800; color: #16192c; padding: 2px 5px; border-radius: 6px; }
.cf-insp-ttl-edit:hover { border-color: #e3e7f0; }
.cf-insp-ttl-edit:focus { border-color: #2f6df6; background: #fff; outline: none; }
.cf-inspector * { min-width: 0 !important; }
.cf-inspector .card, .cf-inspector .row, .cf-inspector [class*="col-"], .cf-inspector .form-group,
.cf-inspector .dropdown-widget, .cf-inspector .tagify, .cf-inspector table,
.cf-inspector input, .cf-inspector select, .cf-inspector textarea, .cf-inspector .form-control {
  max-width: 100% !important;
}
.cf-inspector .row { flex-wrap: wrap !important; margin-left: 0 !important; margin-right: 0 !important; }
.cf-inspector [class*="col-"] { flex: 1 1 100% !important; max-width: 100% !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.cf-inspector input, .cf-inspector select, .cf-inspector textarea, .cf-inspector .form-control,
.cf-inspector .dropdown-widget, .cf-inspector .tagify,
/* old-style .selector defaults to width:auto / max-width:280px / min-width:150px and shrinks to content in the
   narrow pane — force it to fill the field like every other selector so it doesn't collapse. */
.cf-inspector .selector { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
/* The OPEN dropdown list: the `min-width: 0 !important` wildcard above wipes the selector menu's base
   350px min-width, so in the narrow pane it shrink-wrapped to its items and everything looked chopped.
   Pin it to the control's width instead — the .dropdown-menu is positioned inside the .dropdown root,
   so 100% = exactly the closed placeholder's width (user 2026-07-06). */
.cf-inspector .avidbit-selector.selector-mode-dropdown .dropdown-menu
{
    width: 100% !important;
    max-width: 100% !important;
}

.cf-edge { fill: none; stroke: #aeb7cf; stroke-width: 2.2; }
.cf-edge.cf-link { stroke-dasharray: 7 5; stroke: #9aa6c2; }
.cf-edge.cf-broken { stroke: #e5497a; stroke-dasharray: 4 4; }

/* Reused settings DataWidgets render on a Bootstrap grid (.row / .col-md-*). In the narrow inspector that
   packs selectors + field pairs into cramped half-columns. Stack every TOP-LEVEL field to full width so each
   field (especially selectors, file-selectors, textareas) gets its own row and nothing is squished. The
   label/input INSIDE each field keep their own layout (their parent is .d-flex, not .row, so unaffected). */
.cf-insp-formstack .row { margin-left: 0; margin-right: 0; row-gap: 4px; }
.cf-insp-formstack .row > .col,
.cf-insp-formstack .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding-left: 0; padding-right: 0; margin-bottom: 2px; }
.cf-insp-formstack [class*="f_min_width"] { min-width: 0 !important; }
.cf-insp-formstack .kt-form { padding: 0; }

/* Zoom controls — floating cluster, bottom-left (clear of the top-right health chip + right-side inspector). */
.cf-zoom { position: absolute; left: 14px; bottom: 14px; z-index: 6; display: flex; flex-direction: column;
  gap: 1px; background: #fff; border: 1px solid #e3e7f0; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(20,24,40,.12); }
.cf-zoom-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none;
  background: #fff; color: #565d78; font-size: 13px; cursor: pointer; transition: background .12s, color .12s; }
.cf-zoom-btn:hover { background: #eef3fe; color: #2f6df6; }
.cf-zoom-btn + .cf-zoom-btn { border-top: 1px solid #eef0f5; }
.cf-zoom-fit { color: #7c829c; }

/* Move mode: click-to-target reparenting (banner + valid/invalid destination highlighting). */
.cf-move-banner { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 40;
  background: #2f6df6; color: #fff; padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 500;
  box-shadow: 0 6px 18px rgba(20,40,90,.28); display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.cf-move-banner b { font-weight: 700; }
.cf-move-banner .cf-move-cancel { background: rgba(255,255,255,.22); border: 0; color: #fff; border-radius: 6px;
  padding: 4px 11px; cursor: pointer; font-size: 12px; font-weight: 600; }
.cf-move-banner .cf-move-cancel:hover { background: rgba(255,255,255,.36); }
.cf-node.cf-move-target { outline: 2px dashed #2f6df6; outline-offset: 3px; cursor: pointer; }
.cf-node.cf-move-target:hover { outline-style: solid; box-shadow: 0 0 0 5px rgba(47,109,246,.20); }
.cf-node.cf-move-blocked { opacity: .34; }
.cf-node.cf-move-blocked .cf-node-menu,
.cf-node.cf-move-blocked .cf-node-addfirst { pointer-events: none; }
/* relink mode (2026-09-03): same shape as move mode, INDIGO so "pick a jump target" never reads as "move here". */
.cf-move-banner.cf-relink-banner { background: #6b3fe0; box-shadow: 0 6px 18px rgba(60,30,120,.28); }
.cf-node.cf-link-target { outline: 2px dashed #7c4dff; outline-offset: 3px; cursor: pointer; }
.cf-node.cf-link-target:hover { outline-style: solid; box-shadow: 0 0 0 5px rgba(124,77,255,.20); }
.cf-node.cf-link-blocked { opacity: .34; }
.cf-node.cf-link-blocked .cf-node-menu,
.cf-node.cf-link-blocked .cf-node-addfirst { pointer-events: none; }
/* inspector (Link Action): primary "pick the target on the canvas" button; the combo below stays as the fallback. */
.cf-insp-relink-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px;
  padding: 8px 10px; border-radius: 7px; border: 1px solid #b9a3ff; background: #f4f0ff; color: #5b2bd9;
  font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center;
}
.cf-insp-relink-btn:hover { background: #ebe3ff; border-color: #7c4dff; }
.cf-insp-relink-btn i { font-size: 12px; opacity: .85; }
.cf-insp-relink-or { display: block; font-size: 11px; font-weight: 600; color: #9aa0b8; margin-top: 10px; }
/* AI IVR -> function child (nesting link, not a call route): dashed indigo so it reads as "tied to", not "routes to". */
.cf-edge.cf-func { stroke: #7c4dff; stroke-dasharray: 2 5; stroke-linecap: round; stroke-width: 2.4; }

.cf-elbl {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 5px; line-height: 1; /* icon + text vertically centered, even gap */
  background: #fff; border: 1px solid #e0e4ee; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 800; color: #565d78; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12); z-index: 5; pointer-events: none;
  font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif;
}
.cf-elbl i { font-size: 10px; line-height: 1; flex: 0 0 auto; }
/* (2026-08-10) the ✓/✕ circle badges are GONE — triggers moved into each card's header band
   (.cfh-head). Only branches with no target card (broken stubs) still draw a .cf-elbl pill. */
.cf-stub {
  position: absolute; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 800; color: #9aa0b8;
  background: #f6f8fc; border: 1px dashed #e0e4ee; border-radius: 7px; padding: 3px 8px; z-index: 4;
}
.cf-stub.cf-stub-broken { color: #c43670; border-color: #ffd2e1; background: #ffe7ef; }

.cf-node {
  position: absolute; width: 264px; background: #fff; border: 1px solid #e0e4ee; border-radius: 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 26px -14px rgba(16, 24, 40, .22);
  display: flex; flex-direction: column; align-items: stretch; z-index: 3; user-select: none;
  font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif;
}
/* the body row (icon + title/subtitle) — the old whole-card row layout, now BELOW the trigger band */
.cf-node .cf-nbody { display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-width: 0; }
/* ---- trigger header band (user 2026-08-10): each card announces HOW it is reached — large solid
   badges ("Digit 1 · Sales", ✓ success, ✕ failure, ⚡ AI function) in a kind-tinted band. Replaces
   the small ✓/✕ circles + 11px pills that rode the connectors (reviewers: unreadable at a glance).
   Chips are per-branch click targets -> the branch label menu; +n opens the full trigger list. ---- */
.cfh-head { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 64px 6px 9px;
  border-radius: 12px 12px 0 0; border-bottom: 1px solid rgba(16,24,40,.06);
  font-size: 12.5px; font-weight: 800; overflow: hidden; white-space: nowrap; }
.cfh-head.cfh-start { padding-right: 10px; }
.cfh-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; border-radius: 8px; padding: 2px 5px 2px 2px; }
.cfh-chip[data-cf-edge] { cursor: pointer; }
.cfh-chip[data-cf-edge]:hover { background: rgba(255,255,255,.6); }
.cfh-lbl { overflow: hidden; text-overflow: ellipsis; }
.cfh-lbl b { font-weight: 800; }
.cfh-lbl-sub { font-weight: 600; opacity: .72; }
.cfh-badge { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 28px;
  color: #fff; font-size: 14px; box-shadow: 0 2px 5px rgba(16,24,40,.22); }
/* the theme's base `i` color rule beats inheritance — force the badge glyph solid WHITE (user 2026-08-11) */
.cfh-badge i { color: #fff !important; }
.cfh-digit { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 28px;
  background: #2f6df6; color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 2px 5px rgba(16,24,40,.22); }
.cfh-b-good { background: #12b27c; }
.cfh-b-bad { background: #e5497a; }
.cfh-b-menu { background: #5f6b94; }
.cfh-b-func { background: #7c4dff; }
.cfh-b-start { background: #12b27c; }
/* Date/Time schedule triggers (user 2026-08-10): Closed = RED, Holiday = PURPLE */
.cfh-b-closed { background: #e03131; }
.cfh-b-holiday { background: #9b59d0; }
.cfh-t-good { background: #e2f7ef; color: #0a8f63; }
.cfh-t-bad { background: #ffe7ef; color: #c43670; }
.cfh-t-digit { background: #eaf1ff; color: #2559d1; }
.cfh-t-menu { background: #eef0f6; color: #5b617a; }
.cfh-t-func { background: #f0ebff; color: #7c4dff; }
.cfh-t-closed { background: #ffe3e3; color: #c0392b; }
.cfh-t-holiday { background: #f3ecfc; color: #8244b8; }
.cfh-t-mixed { background: #f1f3f9; color: #565d78; }
.cfh-start { background: #e2f7ef; color: #0a8f63; }
.cfh-more { flex: 0 0 auto; font-size: 11px; font-weight: 800; opacity: .8; cursor: pointer;
  padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.65); }
.cfh-more:hover { background: #fff; }
.cf-node.cf-root { border-color: #12b27c; }
.cf-node.cf-legacy { border-style: dashed; }
.cf-node .cf-ic {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  display: grid; place-items: center; font-size: 16px; color: #2f6df6; background: #eaf1ff; /* route default */
}
/* prototype design-system: color-code action icons by category (node + inspector header + picker rows) */
.cf-node .cf-ic.cf-ic-dec,  .cf-insp-ic.cf-ic-dec,  .cf-pi.cf-ic-dec  { color: #e08a09; background: #fff3df; }
.cf-node .cf-ic.cf-ic-ai,   .cf-insp-ic.cf-ic-ai,   .cf-pi.cf-ic-ai   { color: #7c4dff; background: #f0ebff; }
.cf-node .cf-ic.cf-ic-util, .cf-insp-ic.cf-ic-util, .cf-pi.cf-ic-util { color: #08a89a; background: #e1f6f4; }
.cf-node .cf-ic.cf-ic-term, .cf-insp-ic.cf-ic-term, .cf-pi.cf-ic-term { color: #e0457b; background: #ffe7ef; }
.cf-node .cf-ic.cf-ic-end,  .cf-insp-ic.cf-ic-end,  .cf-pi.cf-ic-end  { color: #6b7290; background: #eceef4; }
.cf-node .cf-meat { min-width: 0; flex: 1; }
.cf-node .cf-ttl { font-weight: 800; font-size: 13.5px; color: #16192c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-node .cf-sub { font-size: 12px; color: #969cb6; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* prototype parity: hover lift + the top port dot */
.cf-node:hover { box-shadow: 0 26px 60px -22px rgba(16, 24, 40, .38); }
.cf-node .cf-port { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.4px solid #aeb7cf; left: 50%; top: -5px; transform: translateX(-50%); }

.cf-node .cf-tag {
  position: absolute; top: -9px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 6px; padding: 2px 7px;
}
.cf-node .cf-tag-start { left: 12px; background: #e2f7ef; color: #0a8f63; border: 1px solid #b9eed8; }
.cf-node .cf-tag-end { left: 12px; background: #eceef4; color: #6b7290; border: 1px solid #d8dbe6; }
.cf-node .cf-tag-legacy { right: 12px; background: #eceef4; color: #6b7290; border: 1px solid #d8dbe6; }

/* warn-only validation: floating health chip + issues panel */
.cf-health { position: absolute; top: 14px; right: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(20,24,40,.12); font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif; }
.cf-health-ok { background: #e7f6ee; color: #1c8a4d; cursor: default; }
.cf-health-warn { background: #fdf1e3; color: #b9701a; }
.cf-health-warn:hover { background: #fbe8d0; }
.cf-health-panel { position: absolute; top: 50px; right: 14px; z-index: 7; width: 300px; max-height: 55%; overflow-y: auto; background: #fff; border: 1px solid #e3e7f0; border-radius: 12px; box-shadow: 0 12px 40px rgba(20,24,40,.18); padding: 8px; font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif; }
.cf-health-h { font-size: 12px; font-weight: 800; color: #2b2f42; padding: 4px 8px 8px; }
.cf-health-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #5b6178; padding: 8px; border-radius: 8px; cursor: pointer; }
.cf-health-item:hover { background: #eef0fb; }
.cf-health-item i { color: #e08a09; margin-top: 1px; }

.cf-insp-branch-link { flex: 0 0 auto; color: #2f6df6; cursor: pointer; font-size: 11px; font-weight: 700; padding: 2px 8px; border: 1px solid #cdd8f5; border-radius: 20px; background: #eef3fe; white-space: nowrap; }
.cf-insp-branch-link:hover { color: #245fe0; background: #e2ebfd; }

/* ============================================================================
   MOBILE / TOUCH controls (added 2026-07-01). Every rule below is gated behind
   @media (max-width:760px) [layout/shape] or @media (pointer:coarse) [touch
   targets] — the desktop mouse experience is byte-for-byte unchanged.
   ============================================================================ */

/* inspector close chevron: hidden on desktop, shown only when the sheet is up. */
.cf-insp-close { display: none; cursor: pointer; color: #8b91a7; font-size: 18px; padding: 6px 8px; } /* htext flex:1 positions it right */

/* tap-outside-to-close backdrop for the mobile drawer. Hidden by default; the mobile block shows it only while
   the drawer is open. Sits BELOW the drawer (z-index 30) but ABOVE the canvas so it dims + catches the tap. */
.cf-insp-backdrop { display: none; position: absolute; inset: 0; z-index: 29; background: rgba(15, 20, 35, .28); }

@media (max-width: 760px) {
  /* inspector -> right-side drawer sliding in over the canvas (reuses the existing .cf-hidden
     open/close toggle; stays position:absolute). Replaced the earlier bottom sheet (Thomas
     2026-07-03): a full-height drawer scrolls the focused field into view instead of sitting
     behind the on-screen keyboard. */
  .cf-inspector {
    top: 0; left: auto; right: 0; bottom: 0; width: min(86vw, 340px);
    max-height: none; border-radius: 16px 0 0 16px;
    box-shadow: -12px 0 30px rgba(20,24,40,.18);
    padding-left: 24px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 30; -webkit-overflow-scrolling: touch;
    transition: transform .22s ease; /* swipe-right-to-close: snap-back / slide-out animation */
  }
  .cf-inspector::before { content: ""; position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 44px; border-radius: 2px; background: #d6dbe8; }
  .cf-insp-close { display: inline-flex; }

  /* tap-outside-to-close: show the backdrop only while the drawer is open (it dims the canvas + catches the tap). */
  .cf-builder-row:has(.cf-inspector:not(.cf-hidden)) .cf-insp-backdrop { display: block; }

  /* relax the three inline min-heights so the sheet + short canvas fit the phone. */
  .cf-builder-row { min-height: 0 !important; }
  .cf-host { min-height: 0 !important; }

  /* hide the floating zoom cluster while the sheet is open (pinch still zooms). */
  .cf-builder-row:has(.cf-inspector:not(.cf-hidden)) .cf-zoom { display: none; }

  /* add / change-type / value pickers -> genuine bottom sheet (they are position:fixed, body-appended). */
  .cf-picker {
    left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important;
    width: auto !important; max-width: 100%; max-height: 80dvh; overflow-y: auto;
    border-radius: 16px 16px 0 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 1000;
  }

  /* move-mode banner reflows so its Cancel button (the only touch exit) can't clip off-screen. */
  .cf-move-banner { left: 8px; right: 8px; transform: none; max-width: none; white-space: normal; flex-wrap: wrap; }
  .cf-move-banner .cf-move-cancel { min-height: 40px; padding: 8px 14px; }

  /* health panel full-width. */
  .cf-health-panel { left: 8px; right: 8px; width: auto; max-height: 60dvh; }

  /* readable, comfortable inspector controls (16px = ergonomics; iOS focus-zoom already off via viewport meta). */
  .cf-inspector input, .cf-inspector select, .cf-inspector textarea,
  .cf-inspector .form-control, .cf-insp-ttl-edit { font-size: 16px !important; }
  .cf-inspector input, .cf-inspector select, .cf-inspector .form-control { min-height: 44px; padding: 10px 12px; }
  .cf-inspector .dropdown-menu { max-height: min(320px, 60dvh); }
}

/* landscape phones — keep the canvas from overflowing the short viewport. Compounded with pointer:coarse
   (review fix 2026-07-01) so a short DESKTOP window keeps its 560px min-height (desktop-unchanged contract). */
@media (max-height: 640px) and (pointer: coarse) {
  .cf-builder-row { height: calc(100dvh - 120px) !important; min-height: 0 !important; }
  .cf-host { min-height: 0 !important; }
}

@media (pointer: coarse) {
  /* Touch: keep the compact top-right OVERLAY (no reserved strip) but bump the glyphs a bit for fingers. The
     glyphs sit on the trigger band (42px tall), so 30px targets center at top:6. */
  .cf-node-menu     { width: 30px; height: 30px; top: 6px; right: 6px;  font-size: 13px; }
  .cf-node-addfirst { width: 30px; height: 30px; top: 6px; right: 40px; font-size: 13px; }
  .cf-node-addfirst:last-child { right: 6px; }

  /* trigger-band chips are tap targets (branch label menu). */
  .cfh-chip { min-height: 32px; }
  .cfh-badge, .cfh-digit { width: 32px; height: 32px; }
  .cfh-more { min-height: 30px; display: inline-flex; align-items: center; }

  /* picker rows / controls. */
  .cf-picker-opt      { min-height: 48px; padding: 14px 12px; }
  .cf-picker-x        { padding: 10px; margin: -10px; font-size: 18px; }
  .cf-picker-continue { min-height: 48px; padding: 14px; }
  .cf-picker-digit    { font-size: 16px; }

  /* inspector native controls. */
  .cf-insp-branch-tag.form-control,
  .cf-insp-branch-route-sel.form-control,
  .cf-insp-link-sel.form-control,
  .cf-insp-ct-sel.form-control { min-height: 44px; padding: 10px 12px; font-size: 16px; }
  .cf-insp-branch-locate { padding: 8px 10px; }
  .cf-insp-branch-link   { padding: 8px 12px; font-size: 13px; min-height: 40px; }
  .cf-insp-relink-btn    { min-height: 44px; font-size: 15px; }

  /* zoom buttons + misc canvas clickables. */
  .cf-zoom-btn { width: 44px; height: 44px; }
  .cf-health { padding: 10px 14px; }
  .cf-health-item { min-height: 44px; padding: 12px; }
  .cf-move-cancel, .cf-elbl-edit { min-height: 40px; }
}

/* ============================================================================
   Issue 15: the builder is a FOCUSED full-width editor — suppress the portal
   left nav while a builder row is in the DOM. :has() self-scopes: navigate away
   -> the row is gone -> the nav returns. (#sidebar is an in-flow sibling of
   #content, so hiding it lets the content column take the full width.)
   ============================================================================ */
body:has(.cf-builder-row) #sidebar { display: none; }

/* ============================================================================
   "Used By" strip (2026-07-06): the shared CSUsedByPanel restored above the
   canvas — reskinned compact (slimmer paddings, no group-title column reserve)
   so it reads as a header strip and costs minimal canvas height. Double-class
   selector outranks the base .usedby card rules regardless of sheet order.
   flex:0 0 auto — the builder row below flexes; the strip must never crush.
   ============================================================================ */
.usedby.cf-usedby { flex: 0 0 auto; margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; }
.usedby.cf-usedby .usedby-head { margin-bottom: 4px; }
.usedby.cf-usedby .usedby-group { padding: 4px 0; }

/* ==== AI IVR webhook guided cards (docs/aiivr-webhooks issue 08; prototype variant B @300px) ==== */
.aiivr-whcard-head{display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #E4E6EF;border-radius:11px;background:#fff;cursor:pointer;user-select:none;margin:2px 0;}
.aiivr-whcard-head:hover{background:#fafbfd;}
.aiivr-whcard-icon{width:28px;height:28px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center;font-size:11px;color:#6993FF;background:#E1E9FF;}
.aiivr-whcard-titles{flex:1;min-width:0;display:flex;flex-direction:column;}
.aiivr-whcard-title{font-size:11.5px;font-weight:600;color:#181C32;}
.aiivr-whcard-summary{font-size:10.5px;color:#B5B5C3;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px;}
.aiivr-whcard-chev{color:#B5B5C3;font-size:10px;flex:none;transition:transform .18s;}
.aiivr-whcard-chev.open{transform:rotate(180deg);}
/* AI IVR ACTION settings (CSVoiceCallFlowActionAIIVRSettings): the house DataWidgetSection
   (beginCollapsibleSection) skinned as the prototype's FULLY ENCLOSED guided card - one bordered
   container holding header AND body (docs/prototypes/aiivr-action-settings, variant A). Same look
   as the .aiivr-whcard-* header above. Selectors carry .data-widget-section so they beat the
   .f_dw2 A2 section skin in adrem.css by specificity. */
.data-widget-section.aiivr-guided{border:1px solid #E4E6EF;border-radius:11px;background:#fff;margin:2px 0 9px;overflow:hidden;transition:box-shadow .15s;}
.data-widget-section.aiivr-guided:not(.collapsed){box-shadow:0 5px 18px rgba(82,63,105,.08);}
.data-widget-section.aiivr-guided .data-widget-section-header{padding:10px 11px;gap:9px;border-bottom:none;margin-bottom:0;text-transform:none;color:#181C32;}
.data-widget-section.aiivr-guided .data-widget-section-header:hover{background:#fafbfd;color:#181C32;}
.data-widget-section.aiivr-guided .data-widget-section-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;flex:none;background:#E1E9FF;color:#6993FF;font-size:11px;margin-right:0;}
.data-widget-section.aiivr-guided.aiivr-guided-ro .data-widget-section-icon{background:#f0f2f7;color:#5e6278;}
.data-widget-section.aiivr-guided .data-widget-section-titles{flex:1;min-width:0;display:flex;flex-direction:column;}
.data-widget-section.aiivr-guided .data-widget-section-title{font-size:11.5px;font-weight:600;color:#181C32;}
.data-widget-section.aiivr-guided .data-widget-section-hint{font-size:10.5px;font-weight:400;color:#B5B5C3;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.data-widget-section.aiivr-guided .data-widget-section-chevron{margin-left:auto;font-size:10px;color:#B5B5C3;transform:rotate(180deg);transition:transform .18s;}
.data-widget-section.aiivr-guided.collapsed .data-widget-section-chevron{transform:none;}
.data-widget-section.aiivr-guided .data-widget-section-body{padding:11px 11px 12px;border-top:1px dashed #EBEDF3;}
.data-widget-section.aiivr-guided.collapsed .data-widget-section-body{display:none;}
/* Functions section: revealed by the v2 inspector once it knows the child chips (CSS-only hide -
   the icon/chevron are custom-tag widgets that Wt can't hide() before first render). */
.data-widget-section.aiivr-guided.aiivr-guided-unset{display:none;}
/* read-only Functions body: the rt-113 child chips + the note line */
.aiivr-fnlist{display:flex;flex-direction:column;}
.aiivr-fnrow{display:flex;align-items:center;gap:9px;padding:7px 0;border-top:1px solid #EBEDF3;}
.aiivr-fnrow:first-child{border-top:none;}
.aiivr-fnrow-ic{width:24px;height:24px;border-radius:7px;flex:none;display:flex;align-items:center;justify-content:center;font-size:10px;color:#6993FF;background:#E1E9FF;}
.aiivr-fnrow-name{font-size:11.5px;font-weight:600;color:#181C32;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.aiivr-fnrow-action{font-size:10px;color:#B5B5C3;flex:none;}
.aiivr-fnnote{display:flex;gap:7px;border-radius:9px;padding:8px 10px;font-size:10.5px;line-height:1.5;background:#f3f5fb;color:#6b7088;margin-top:4px;}
.aiivr-fnnote i{font-size:10px;margin-top:2px;flex:none;}
/* Text Messaging: "Conversation timings" label + "text only" tag, then a 3-up grid of centered
   number boxes with a caption under each (prototype .g3/.cap). Its own container, so the
   inspector's column-stacking rules never touch it. */
.aiivr-timing-label{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:#181C32;margin:0 0 5px;}
.aiivr-tag{margin-left:auto;font-size:9.5px;font-weight:600;color:#B5B5C3;background:#f0f2f7;border-radius:999px;padding:2px 7px;}
.aiivr-timing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.aiivr-timing-cell{min-width:0;}
.aiivr-timing-cell .form-group{margin:0;padding:0;}
.aiivr-timing-cell .form-group > label{display:none;}
.aiivr-timing-cell input{text-align:center;font-weight:600;width:100%;padding-left:6px;padding-right:6px;}
.aiivr-timing-cell input::-webkit-inner-spin-button,.aiivr-timing-cell input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
.aiivr-timing-cap{font-size:9.5px;color:#A1A5B7;text-align:center;margin-top:4px;line-height:1.3;}

/* ==========================================================================
   AI IVR card -> "View last debug information" modal (CSAIIVRDebugViewer).
   Scoped under .cfd-root so nothing here leaks into the canvas or inspector.
   ========================================================================== */
.cfd-root { font-size: 13px; color: #181C32; }
.cfd-mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

/* ---- breadcrumb ---- */
.cfd-bc { display: flex; align-items: center; gap: 7px; font-size: 11.5px;
          padding: 2px 2px 14px; }
.cfd-bc-link { color: #6993FF; cursor: pointer; font-weight: 500; }
.cfd-bc-link:hover { text-decoration: underline; }
.cfd-bc-sep { font-size: 8px; color: #d6d9e3; }
.cfd-bc-here { color: #B5B5C3; }

/* ---- level 1: the five calls ---- */
.cfd-list { margin: 0 -16px; }
.cfd-row { display: flex; align-items: center; gap: 16px; padding: 13px 16px;
           border-bottom: 1px solid #EBEDF3; cursor: pointer; }
.cfd-row:hover { background: #f5f8fa; }
.cfd-row-when { width: 150px; flex: none; }
.cfd-row-who { width: 200px; flex: none; }
.cfd-row-meta { width: 130px; flex: none; font-size: 11px; color: #5e6278; }
.cfd-row-fns { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.cfd-row-go { color: #B5B5C3; flex: none; }
.cfd-row-b { display: block; font-size: 12.5px; font-weight: 600; }
.cfd-row-e { display: block; font-size: 10.5px; color: #B5B5C3; margin-top: 1px; }
.cfd-row-none { color: #cdd1de; font-style: italic; }
.cfd-row-dim { display: block; color: #B5B5C3; margin-top: 2px; }
.cfd-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
            border-radius: 999px; font-size: 10.5px; font-weight: 600; background: #f5f8fa;
            color: #5e6278; border: 1px solid #E4E6EF;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-chip > div { font-size: 9px; color: #B5B5C3; }
.cfd-chip-bad { background: #fde3e6; border-color: #f8ccd2; color: #c0293a; }
.cfd-chip-bad > div { color: #F64E60; }
.cfd-chip-none { background: none; border: none; color: #cdd1de; font-style: italic;
                 font-family: inherit; }
.cfd-notrace { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px;
               font-size: 10px; color: #c98a06; background: #fff4de; padding: 2px 8px;
               border-radius: 999px; font-weight: 600; }

.cfd-empty { padding: 54px 20px; text-align: center; }
.cfd-empty-ic { font-size: 30px; color: #dfe3ee; display: block; margin-bottom: 12px; }
.cfd-empty-t { display: block; font-size: 14px; font-weight: 600; }
.cfd-empty-s { display: block; font-size: 12px; color: #B5B5C3; margin-top: 6px;
               max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ---- level 2: header + tabs ---- */
.cfd-head { display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
            padding-bottom: 14px; border-bottom: 1px solid #EBEDF3; }
.cfd-fact-l { display: block; font-size: 9.5px; text-transform: uppercase;
              letter-spacing: .06em; color: #A1A5B7; font-weight: 600; }
.cfd-fact-v { display: block; font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.cfd-head-actions { margin-left: auto; }
.cfd-btn { border: none; border-radius: 8px; padding: 7px 13px; font-size: 12px;
           font-weight: 600; cursor: pointer; }
.cfd-btn-ghost { background: #f5f8fa; color: #5e6278; }
.cfd-btn-ghost:hover { background: #EBEDF3; }

.cfd-tabs { display: flex; align-items: center; gap: 4px; padding-top: 11px;
            border-bottom: 1px solid #EBEDF3; }
.cfd-tab { padding: 8px 15px; font-size: 12px; font-weight: 600; color: #B5B5C3;
           cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cfd-tab-on { color: #6993FF; border-bottom-color: #6993FF; }
.cfd-tab-off { opacity: .4; cursor: not-allowed; }
.cfd-adrem-tag { margin-left: auto; margin-bottom: 6px; font-size: 9.5px; font-weight: 700;
                 letter-spacing: .05em; color: #8950FC; background: #eee5ff;
                 padding: 3px 9px; border-radius: 999px; }

.cfd-banner { margin-top: 14px; padding: 10px 13px; border-radius: 9px; background: #fff4de;
              color: #8a6100; font-size: 11.5px; display: flex; gap: 9px; align-items: flex-start; }
.cfd-banner-b { display: block; font-weight: 700; margin-bottom: 2px; }

/* ---- the timeline (variant A) ---- */
.cfd-tl { padding: 18px 2px 8px; }
.cfd-t { width: 44px; flex: none; text-align: right; font-size: 10.5px; color: #B5B5C3;
         padding-top: 9px;
         font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-turn { display: flex; gap: 12px; margin-bottom: 14px; }
.cfd-turn-ai { flex-direction: row-reverse; }
.cfd-turn-ai .cfd-t { text-align: left; }
.cfd-bubble { max-width: 65%; padding: 9px 13px; border-radius: 13px; background: #f5f8fa;
              border: 1px solid #E4E6EF; border-bottom-left-radius: 4px; }
.cfd-turn-ai .cfd-bubble { background: #E1E9FF; border-color: #cddaff;
                           border-bottom-left-radius: 13px; border-bottom-right-radius: 4px; }
.cfd-who { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .05em;
           text-transform: uppercase; color: #A1A5B7; margin-bottom: 3px; }
.cfd-said { display: block; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; }
.cfd-lat { display: block; font-size: 10px; color: #B5B5C3; margin-top: 5px;
           font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

.cfd-filler { display: flex; gap: 12px; margin-bottom: 14px; align-items: center; }
.cfd-filler .cfd-t { padding-top: 0; }
.cfd-filler-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11px;
                   color: #B5B5C3; font-style: italic; background: #fafbfd;
                   border: 1px dashed #E4E6EF; border-radius: 999px; padding: 3px 12px; }

.cfd-fn { margin: 0 0 14px 56px; border: 1px solid #E4E6EF; border-radius: 11px;
          overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(82,63,105,.05); }
.cfd-fn-failed { border-color: #f6c8ce; }
.cfd-fn-h { display: flex; align-items: center; gap: 11px; padding: 10px 13px; cursor: pointer; }
.cfd-fn-h:hover { background: #fbfcfe; }
.cfd-fn-failed > .cfd-fn-h { background: #fff8f9; }
.cfd-fn-ic { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center;
             justify-content: center; font-size: 11px; background: #eee5ff; color: #8950FC; flex: none; }
.cfd-fn-failed .cfd-fn-ic { background: #fde3e6; color: #F64E60; }
.cfd-fn-ic-lc { background: #e8f4ff; color: #1668c4; }
.cfd-fn-names { min-width: 0; }
.cfd-fn-n { display: block; font-size: 12px; font-weight: 600;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-fn-sub { display: block; font-size: 10.5px; color: #B5B5C3; margin-top: 1px;
              word-break: break-all; }
.cfd-fn-s { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none;
            font-size: 11px; color: #B5B5C3; }
.cfd-fn-b { padding: 2px 13px 14px; border-top: 1px solid #EBEDF3; }

.cfd-lc { margin-top: 10px; border-top: 1px solid #EBEDF3; padding-top: 16px; }
.cfd-lc .cfd-fn { margin-left: 0; }

/* ---- payload rendering ---- */
.cfd-sect { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em;
            color: #A1A5B7; font-weight: 700; margin: 14px 0 6px; }
.cfd-sect-note { text-transform: none; letter-spacing: 0; font-weight: 500; color: #B5B5C3; }
.cfd-note { display: block; font-size: 11.5px; color: #B5B5C3; font-style: italic; }
.cfd-code { display: block; background: #1e2235; color: #d5dbf0; border-radius: 8px;
            padding: 11px 13px; font-size: 11px; line-height: 1.65; white-space: pre-wrap;
            word-break: break-word; overflow-x: auto; margin-bottom: 2px;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-result { display: block; border: 1px solid #EBEDF3; border-radius: 8px; padding: 9px 12px;
              font-size: 12px; line-height: 1.55; background: #fff; white-space: pre-wrap; }
.cfd-kv { border: 1px solid #EBEDF3; border-radius: 8px; overflow: hidden; background: #fff; }
.cfd-kv-r { display: flex; border-bottom: 1px solid #EBEDF3; font-size: 11px; }
.cfd-kv-r:last-child { border-bottom: none; }
.cfd-kv-k { width: 160px; flex: none; padding: 7px 11px; background: #fbfcfe; color: #5e6278;
            font-weight: 600; border-right: 1px solid #EBEDF3; word-break: break-all;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-kv-v { padding: 7px 11px; word-break: break-word; display: flex; align-items: center; gap: 8px;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px;
            font-weight: 700; padding: 3px 9px; border-radius: 6px;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-pill-ok { background: #e2f7f1; color: #07996d; }
.cfd-pill-err { background: #fde3e6; color: #c0293a; }
.cfd-pill-get { background: #e8f4ff; color: #1668c4; }
.cfd-pill-post { background: #e9f7f1; color: #0a8a63; }

/* ---- raw trace (Adrem only) ---- */
.cfd-raw-bar { display: flex; gap: 9px; align-items: center; padding: 12px 0;
               border-bottom: 1px solid #EBEDF3; }
.cfd-raw-filter { flex: 1; border: 1px solid #E4E6EF; border-radius: 8px; padding: 7px 12px;
                  font-size: 11.5px; outline: none;
                  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-raw-filter:focus { border-color: #6993FF; }
.cfd-raw-count { font-size: 11px; color: #B5B5C3; white-space: nowrap;
                 font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-raw { padding: 14px 0 10px; font-size: 11px; line-height: 1.7; color: #3b4160;
           font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.cfd-raw-ln { display: block; white-space: pre-wrap; word-break: break-word; }

/* ---- level 3: call record ---- */
.cfd-player { display: flex; align-items: center; gap: 14px; border: 1px solid #E4E6EF;
              border-radius: 11px; padding: 13px 16px; background: #fff; }
.cfd-player-none { font-size: 16px; color: #B5B5C3; }
.cfd-player-t { font-size: 12.5px; font-weight: 600; }
.cfd-player-d { margin-left: auto; font-size: 11.5px; color: #5e6278; }
.cfd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #EBEDF3;
            border: 1px solid #EBEDF3; border-radius: 10px; overflow: hidden; margin-top: 16px; }
.cfd-cell { background: #fff; padding: 11px 13px; }
.cfd-notes { margin-top: 16px; border: 1px solid #E4E6EF; border-radius: 10px;
             padding: 4px 15px 13px; background: #fff; }
.cfd-note-row { padding: 9px 0; border-bottom: 1px solid #EBEDF3; font-size: 12px;
                line-height: 1.55; white-space: pre-wrap; }
.cfd-note-row:last-child { border-bottom: none; }
.cfd-note-meta { display: block; font-size: 10.5px; color: #B5B5C3; margin-bottom: 2px; }

@media (max-width: 900px)
{
  .cfd-row { flex-wrap: wrap; gap: 8px; }
  .cfd-row-when, .cfd-row-who, .cfd-row-meta { width: auto; }
  .cfd-row-fns { flex-basis: 100%; }
  .cfd-fn { margin-left: 0; }
  .cfd-bubble { max-width: 100%; }
  .cfd-grid { grid-template-columns: repeat(2, 1fr); }
}
