/* Connected IVR explorer uses the site's existing dark/gold tokens. */
.ivr-explorer{position:relative;border:1px solid var(--ivr-line-3);border-radius:18px;background:var(--ivr-bg);color:var(--ivr-ink);font-family:"DM Sans",sans-serif;overflow:hidden;margin-block:24px}
.ivr-explorer button,.ivr-explorer input{font:inherit;color:inherit}
.ivr-explorer button{border:1px solid var(--ivr-line-3);background:var(--ivr-pop);border-radius:9px;padding:9px 12px;cursor:pointer;min-height:42px}
.ivr-explorer button:hover{border-color:var(--ivr-gold);background:var(--ivr-card)}
.ivr-explorer button:focus-visible,.ivr-explorer input:focus-visible,.ivr-explorer__vp:focus-visible{outline:3px solid var(--ivr-gold-lit);outline-offset:3px}
/* One tools row: search (flex), zoom out, zoom in, overflow menu (three 42 px buttons). */
.ivr-explorer__tools{display:flex;align-items:center;gap:6px;padding:8px;flex-wrap:nowrap;background:var(--ivr-card);position:relative;z-index:8}
.ivr-explorer .ivr-explorer__tools>button,.ivr-explorer__more>summary{flex:0 0 42px;width:42px;height:42px;padding:0;box-sizing:border-box}
.ivr-explorer__more{position:relative;flex:none}
.ivr-explorer__more>summary{list-style:none;display:flex;align-items:center;justify-content:center;border:1px solid var(--ivr-line-3);background:var(--ivr-pop);border-radius:9px;cursor:pointer;font-size:20px}
.ivr-explorer__more>summary::-webkit-details-marker{display:none}
.ivr-explorer__more>summary:focus-visible{outline:3px solid var(--ivr-gold-lit);outline-offset:3px}
.ivr-explorer__menu{position:absolute;right:0;top:calc(100% + 6px);z-index:7;display:flex;flex-direction:column;gap:6px;width:230px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:10px;background:var(--ivr-pop);border:1px solid var(--ivr-gold);border-radius:12px;box-shadow:0 12px 32px #0009}
.ivr-explorer .ivr-explorer__menu button{width:100%;min-height:42px;padding:9px 12px;border-radius:9px;justify-content:flex-start;text-align:left;font-size:14px}
.ivr-explorer__keep{font-size:12px;display:flex;gap:6px;align-items:center;padding:6px 4px}
.ivr-explorer__search{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.ivr-explorer__search label{display:flex;gap:8px;align-items:center;flex:1;min-width:0}
.ivr-explorer__search>span{font-size:11px;color:var(--ivr-ink-3);white-space:nowrap}
.ivr-explorer__search>span:empty,.ivr-explorer__search:has(input:placeholder-shown)>button{display:none}
.ivr-explorer .ivr-explorer__search>button{width:34px;padding:0;flex:none}
.ivr-explorer__search input{border:1px solid var(--ivr-line-3);background:var(--ivr-pop);border-radius:8px;min-width:0;width:100%;padding:10px}
.ivr-explorer__hint{font-size:12px;line-height:1.45;color:var(--ivr-ink-3);margin:4px 2px 0}
.ivr-explorer__stage{position:relative;height:560px;max-height:70vh;min-height:400px;overflow:hidden}
.ivr-explorer .ivr-explorer__vp{position:absolute;left:272px;right:0;top:0;bottom:0;overflow:hidden;touch-action:none;background:radial-gradient(var(--ivr-line-2) 1px,transparent 1px);background-size:22px 22px}
.ivr-explorer__canvas{position:absolute;inset:0;transform-origin:0 0;will-change:transform}
.ivr-explorer__edges{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;fill:none;stroke:var(--ivr-gold);stroke-width:2}
.ivr-explorer__root{position:absolute;left:14px;top:50%;width:240px;transform:translateY(-50%);z-index:2}
.ivr-explorer__root-card{display:flex;gap:6px;align-items:center;background:var(--ivr-pop);border:1px solid var(--ivr-gold);border-radius:14px;padding:8px}
.ivr-explorer__root-card [data-explorer-root]{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:none;padding:6px;min-width:0;flex:1}
.ivr-explorer__root-card [data-explorer-root] strong{display:block;font-size:16px}
.ivr-explorer__root-card [data-explorer-root] small{display:block;font-size:11px;color:var(--ivr-ink-3);overflow-wrap:anywhere}
.ivr-explorer__root-card [data-explorer-toggle]{padding:4px;width:30px;min-height:30px}
.ivr-explorer__root-edges{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--ivr-gold);stroke-width:2;pointer-events:none}
.ivr-explorer__card{position:absolute;display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:272px;box-sizing:border-box;padding:10px;min-height:78px;border:1px solid var(--ivr-line-3);border-radius:14px;background:var(--ivr-card);box-shadow:0 8px 20px #0005;overflow-wrap:anywhere}
.ivr-explorer__card.is-selected{border-color:var(--ivr-gold-lit);box-shadow:0 0 0 2px var(--ivr-line-2)}
.ivr-explorer__card.is-match{background:var(--ivr-pop)}
.ivr-explorer button.ivr-explorer__select{display:flex;gap:12px;align-items:center;text-align:left;border:0;background:none;padding:0;flex:1;min-width:0}
.ivr-explorer__key{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:32px;height:32px;background:var(--ivr-pop);border:1px solid var(--ivr-line-3);border-radius:9px;font-size:14px;color:var(--ivr-gold-lit);font-weight:700}
.ivr-explorer__text{min-width:0;flex:1;display:block}
.ivr-explorer__text strong{display:block;font-size:14px;line-height:1.4;font-weight:600}
.ivr-explorer__text>span{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--ivr-ink-3);line-height:1.5;margin-top:5px}
.ivr-explorer .ivr-explorer__toggle{padding:4px;width:30px;min-height:30px;margin:0}
.ivr-explorer__groups{display:flex;gap:8px;overflow-x:auto;align-items:center;padding:12px;max-width:100%;font-size:12px;background:var(--ivr-card)}
.ivr-explorer__groups:empty{display:none}
.ivr-explorer__groups button{flex-shrink:0;max-width:240px;overflow-wrap:anywhere;text-align:left}
.ivr-explorer__groups>span{flex-shrink:0}
.ivr-explorer__details{position:absolute;z-index:4;right:14px;bottom:72px;max-width:360px;width:calc(100% - 28px);box-sizing:border-box;max-height:55%;overflow:auto;background:var(--ivr-pop);border:1px solid var(--ivr-gold);border-radius:14px;padding:20px;box-shadow:0 12px 32px #0009;overflow-wrap:anywhere}
.ivr-explorer__details[hidden],.ivr-explorer__results[hidden],.ivr-explorer__steps[hidden]{display:none}
.ivr-explorer__details.is-preview{pointer-events:none}
.ivr-explorer__details>button{float:right}
.ivr-explorer__details h3{font:700 17px "DM Sans",sans-serif;margin:0 40px 12px 0}
.ivr-explorer__details p{font-size:14px;line-height:1.55}
.ivr-explorer__route{color:var(--ivr-gold)}
.ivr-explorer__results,.ivr-explorer__steps{position:absolute;left:8px;right:8px;top:calc(100% + 4px);z-index:5;box-shadow:0 12px 32px #0009;margin:0;padding:12px;background:var(--ivr-pop);border:1px solid var(--ivr-line-3);border-radius:10px;max-height:300px;overflow:auto}
.ivr-explorer__results{z-index:6}
.ivr-explorer__results p{font-size:13px;margin:0 0 8px}
.ivr-explorer__results button,.ivr-explorer__steps button{display:block;width:100%;text-align:left;margin-top:6px}
.ivr-explorer__results button span,.ivr-explorer__steps button span{display:block;font-size:11px;color:var(--ivr-ink-3);margin-top:4px}
.ivr-explorer__steps{padding:14px;max-height:360px}
.ivr-explorer__steps h3{font:600 16px "DM Sans",sans-serif;margin:0 0 8px}
.ivr-explorer__steps p{font-size:14px;line-height:1.55}
.ivr-explorer__overview{position:absolute;inset:0;overflow:hidden;background:var(--ivr-bg)}
.ivr-explorer__overview>svg{position:absolute;inset:0;fill:none;stroke:var(--ivr-gold);stroke-width:1.5;pointer-events:none}
.ivr-explorer__overview button{position:absolute;width:100px;max-height:58px;overflow:hidden;padding:5px;font-size:11px;min-height:42px;border-color:var(--ivr-gold)}
.ivr-explorer__overview button strong{display:inline;color:var(--ivr-gold-lit);font-size:13px;margin:0 6px 0 0}
.ivr-explorer__overview button span{font-size:10px}
.ivr-explorer__overview-note{position:absolute;bottom:0;left:0;right:0;font-size:11px;background:var(--ivr-bg);padding:6px;margin:0}
/* Map app (ivr.css body.ivr-app): the explorer fills the viewport below the compact top bar. */
html.js body.ivr-app main.ivr>.ivr-explorer,html.js body.ivr-app .ivr-live .ivr-explorer{flex:1;margin:0;border-radius:0;border-width:1px 0 0;display:flex;flex-direction:column;min-height:0;max-width:none;width:auto}
html.js body.ivr-app .ivr-explorer__stage{flex:1;height:auto;max-height:none;min-height:0}
/* Search results and the step list float over the map so opening them never resizes (or moves) the camera. */
@media(max-width:600px){.ivr-explorer__search label{font-size:12px}.ivr-explorer__stage{height:520px;min-height:380px}.ivr-explorer .ivr-explorer__vp{left:0;top:100px}.ivr-explorer__root{top:10px;left:14px;width:calc(100% - 28px);transform:none}.ivr-explorer__root-card{padding:6px}.ivr-explorer__root-card [data-explorer-root] small{font-size:11px}.ivr-explorer__root-card [data-explorer-root] strong{font-size:14px}.ivr-explorer__details{bottom:65px;max-height:45%}}
@media(prefers-reduced-motion:reduce){.ivr-explorer *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.ivr-explorer__root-card{flex-wrap:wrap}
.ivr-explorer__root-card>.ivr-agent{flex-basis:100%;margin:4px 0 0}
.ivr-explorer__root-logo{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;color:var(--ivr-gold-lit)}
.ivr-explorer__root-logo>.ivr-brand-avatar{width:32px;height:32px;font-size:12px}
.ivr-explorer__root-card [data-explorer-root]>span:last-child{min-width:0;overflow-wrap:anywhere}

/* Reserved regions keep graph geometry stable as wording and live activity change. */
.ivr-explorer__card{height:auto;min-height:96px;align-items:flex-start;flex-wrap:nowrap;padding-right:42px;padding-bottom:10px}
.ivr-explorer__card:has(>.ivr-explorer__activity){padding-bottom:44px}
.ivr-explorer button.ivr-explorer__select{height:auto;align-items:flex-start}
.ivr-explorer__text strong{min-height:2.8em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.ivr-explorer__text>span{min-height:1.5em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow-wrap:anywhere}
.ivr-explorer__text>span svg{vertical-align:middle;margin-right:4px}
.ivr-explorer__arrival{display:-webkit-box;min-height:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px;line-height:1.5;color:var(--ivr-ink-3);overflow-wrap:anywhere;margin-top:4px}
.ivr-explorer__details .ivr-explorer__arrival{display:block;min-height:0;font-size:12px;overflow:visible}
.ivr-explorer__card .ivr-explorer__toggle{position:absolute;right:8px;top:10px}
.ivr-explorer__card [data-explorer-to]{position:absolute;right:8px;bottom:10px;padding:4px;width:30px;min-height:32px}
.ivr-explorer__activity{position:absolute;left:10px;right:10px;bottom:7px;height:26px;overflow:hidden}
.ivr-explorer__activity .ivr-agent{margin:0;font-size:10px;white-space:nowrap}
/* Selected-path breadcrumb sits in the tools row; on phones it is its own compact line, hidden at the Main menu. */
.ivr-explorer__context{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto;max-width:45%;height:42px;box-sizing:border-box;overflow:hidden}
.ivr-explorer__context button{flex-shrink:0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.ivr-explorer__context [data-explorer-return]{flex:0 0 auto;max-width:none}

.ivr-explorer .ivr-explorer__vp{top:0}
@media(max-width:600px){.ivr-explorer .ivr-explorer__vp{top:100px}.ivr-explorer__root{top:10px}}

.ivr-explorer__crumbs{display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.ivr-explorer__crumbs::-webkit-scrollbar{display:none}
@media(max-width:600px){.ivr-explorer__tools{flex-wrap:wrap}.ivr-explorer__context{order:9;flex:0 0 100%;max-width:none;height:34px}.ivr-explorer .ivr-explorer__context button{min-height:30px;padding:4px 8px}.ivr-explorer.is-root .ivr-explorer__context{display:none}.ivr-explorer__crumbs button{max-width:150px}}

/* Continuation belongs to the blocked step, with its own full-width primary target. */
.ivr-explorer__card.has-continue{display:block;padding:10px}
.ivr-explorer__card.has-continue .ivr-explorer__select{box-sizing:border-box;width:100%;padding-right:32px}
.ivr-explorer__card.has-continue .ivr-explorer__activity{display:block;position:static;height:auto;min-height:26px;margin-top:6px}
.ivr-explorer__card.has-continue [data-explorer-to]{top:10px;bottom:auto}
.ivr-explorer__continue{width:100%;margin-top:6px}
.ivr-explorer .ivr-explorer__continue .ivr-cont{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--ivr-gold);border-radius:9px;background:var(--ivr-gold);color:var(--ivr-bg);font:600 14px/1.4 "DM Sans",sans-serif;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.ivr-explorer .ivr-explorer__continue .ivr-cont:disabled{opacity:.65;cursor:default}
.ivr-explorer__root-card>.ivr-explorer__continue{position:static;flex:0 0 100%}
.ivr-explorer__root-card [data-explorer-root] strong,.ivr-explorer__root-card [data-explorer-root] small{overflow-wrap:anywhere}
