/* One floating character. Opening her guide never changes the page width. */
@media(min-width:1100px){body.has-enterprise-deck .ed-tabs,body.welcome-page .eh-tabs{margin-right:180px;}body.ek-refresh.has-enterprise-deck .zenya-assistant.zenya-side:not(.is-minimised):not(.is-open) .zenya-dock-avatar{width:90px!important;height:140px!important;flex-basis:90px;}}
body.ek-refresh .zenya-assistant.zenya-side {
 position:fixed;inset:auto 18px 18px auto;width:auto;max-width:calc(100vw - 28px);z-index:160;
}
body.ek-refresh .zenya-side .zenya-dock-row {flex-direction:row-reverse;align-items:flex-end;gap:12px;}
body.ek-refresh .zenya-assistant.zenya-side:not(.is-minimised) .zenya-dock-avatar {
 display:block!important;position:relative;inset:auto;width:112px!important;height:174px!important;flex:0 0 112px;
}
body.ek-refresh .zenya-assistant.zenya-side.is-minimised .zenya-dock-avatar {display:none!important;}
body.ek-refresh .zenya-side .ekr-avatar-mount {pointer-events:none;}
body.ek-refresh .zenya-side .ekr-avatar-toggle {
 inset:auto 0 0 auto!important;min-height:44px;padding:6px 9px;font:500 9px/1.3 Inter,sans-serif;
 color:#d8efff;background:#0b2234eb;border:1px solid #41647b;border-radius:7px;
}
body.ek-refresh .zenya-side .ekr-avatar-status {color:#91c6e6;line-height:1.5;}
body.ek-refresh .zenya-side .zenya-dock-actions {display:flex;justify-content:flex-end;gap:6px;margin-top:5px;}
body.ek-refresh .zenya-side .zenya-dock-actions button {
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;height:44px;
 color:#e6f6ff;background:linear-gradient(140deg,#183e56f5,#0b2338f5);border:1px solid #54778b;
 border-radius:9px;box-shadow:0 8px 25px #00131f33;backdrop-filter:blur(14px);cursor:pointer;
}
body.ek-refresh .zenya-side .zenya-dock-actions .zenya-character-toggle {width:44px;font-size:20px;}
body.ek-refresh .zenya-side .zenya-dock-actions .ekr-zenya-launcher {padding:10px 16px;font:600 12px/1.4 Inter,sans-serif;}
body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero) {
 width:min(410px,calc(100vw - 160px));max-height:calc(100dvh - 168px);margin:0;padding:20px;
 background:linear-gradient(150deg,#f7fbffff,#eaf3fcee);color:#24475e;border:1px solid #bfd7e8;
 border-radius:14px;box-shadow:0 22px 70px #00152440;backdrop-filter:blur(22px);
}
body.ek-refresh .zenya-side .zenya-dock-panel::before {display:none;}
body.ek-refresh .zenya-side .zenya-dock-panel header {min-height:0!important;padding-right:0!important;}
body.ek-refresh .zenya-side .zenya-dock-panel header h2 {color:#102e43;font-size:24px;}
body.ek-refresh .zenya-side .zenya-dock-panel header>button {min-width:74px;min-height:44px;border-radius:8px;font:600 11px Inter,sans-serif;}
body.ek-refresh .zenya-side .zenya-dock-panel :is(p,label,h3,summary,small,dt,dd,.ekr-eyebrow,.zenya-context) {color:#3d5e73;}
body.ek-refresh .zenya-side .zenya-dock-panel :is(h3,summary) {color:#173e58;}
body.ek-refresh .zenya-side .zenya-dock-panel :is(a,footer>span,footer>a) {color:#0b567f;}
body.ek-refresh .zenya-side .zenya-dock-panel :is(button,input,select) {color:#234f6b;border-color:#bed4e3;background:#f8fcff;}
body.ek-refresh .zenya-side .zenya-dock-panel .zenya-page-context button[aria-pressed=true] {background:#0f557d;border-color:#0f557d;color:#fff;}
body.ek-refresh .zenya-side .zenya-dock-panel :is(.zenya-pathway-picker,.zenya-pathway-profile) {color:#24475e;border-color:#c4d9e7;background:#e8f2f9;}
body.ek-refresh .zenya-side .zenya-dock-panel :is(.zenya-page-context,.zenya-dock-answer,footer,.zenya-spoken-summary) {border-color:#cadae5;}
body.ek-refresh .zenya-side .zenya-dock-panel .ekr-guide-ask button {background:#0f557d;color:#fff;border-color:#0f557d;}
body.ek-refresh .zenya-side .zenya-dock-panel .ekr-guide-ask input {font-size:14px;min-height:44px;}
body.ek-refresh .zenya-side :is(button,a,input,select,summary):focus-visible {outline:3px solid #73caff;outline-offset:3px;}
body.ek-refresh .zenya-side button:hover {filter:brightness(1.08);}
body.ek-refresh .zenya-side .zenya-dock-panel[hidden] {display:none!important;}
body.ek-refresh .zenya-dock-panel footer [data-knowledge-status] {display:block!important;font-size:10px;line-height:1.5;opacity:.85;white-space:normal;}
body.ek-refresh .zenya-dock-panel [data-guide-links] {display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0;font-size:12px;line-height:1.5;}
body.ek-refresh .zenya-dock-panel [data-guide-links]:empty {display:none;}
body.ek-refresh .zenya-dock-panel [data-question-status]:not([hidden]) {display:block;margin:4px 0;font-size:11px;}
body.ek-refresh .zenya-dock-panel [data-knowledge-retry]:not([hidden]) {display:inline-flex;min-height:32px;font-size:11px;padding:5px 8px;}
@media(max-width:720px) {
 body.ek-refresh .zenya-assistant.zenya-side {inset:auto 14px 14px auto;width:auto;}
 body.ek-refresh .zenya-assistant.zenya-side:not(.is-open):not(.is-minimised) .zenya-dock-avatar {width:80px!important;height:112px!important;flex-basis:80px;margin-left:auto;}
 body.ek-refresh .zenya-side .ekr-avatar-toggle {min-height:44px;padding:4px 6px;font-size:8px;}
 body.ek-refresh .zenya-assistant.zenya-side.is-open .zenya-dock-avatar {display:none!important;}
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero) {width:calc(100vw - 28px);max-height:calc(100dvh - 158px);padding:16px;}
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-guide-ask input {font-size:16px;}
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-dock-body {min-height:65px;}
}

/*
 * Desktop Zenya polish: a more readable character and a calmer guide panel.
 * Deliberately scoped above the existing 720px mobile breakpoint; hero-mode
 * Zenya and the browser's reduced-motion preference retain their own rules.
 */
@media (min-width: 721px) {
 body.ek-refresh .zenya-assistant.zenya-side:not(.is-minimised) .zenya-dock-avatar {
  width:160px!important;height:245px!important;flex:0 0 160px;
 }
 body.ek-refresh.has-enterprise-deck .zenya-assistant.zenya-side:not(.is-minimised):not(.is-open) .zenya-dock-avatar,
 body.public-support.ek-refresh .zenya-assistant.zenya-side:not(.is-minimised):not(.is-open) .zenya-dock-avatar {
  width:128px!important;height:196px!important;flex:0 0 128px;
 }
 body.ek-refresh .zenya-side .zenya-dock-row {gap:14px;}
 body.ek-refresh .zenya-side .zenya-dock-avatar .ekr-avatar-toggle {
  inset:auto 5px 3px auto!important;
  min-height:46px;max-width:calc(100% - 8px);
  padding:8px 12px;border-radius:11px;
  font:600 11px/1.35 Inter,sans-serif;
  color:#eaf7ff;background:#0a2639f2;border:1px solid #658ba3;
  box-shadow:0 6px 18px #00152255;
 }
 body.ek-refresh .zenya-side .zenya-dock-actions {
  margin-top:8px;gap:8px;
 }
 body.ek-refresh .zenya-side .zenya-dock-actions button {
  border-radius:11px;box-shadow:0 8px 22px #00131f35;
 }
 body.ek-refresh .zenya-side .zenya-dock-actions .zenya-character-toggle {
  width:44px;min-width:44px;
 }
 body.ek-refresh .zenya-side .zenya-dock-actions .ekr-zenya-launcher {
  padding:10px 19px;min-width:130px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero) {
  box-sizing:border-box;
  width:min(432px,calc(100vw - 190px));
  max-height:calc(100dvh - 158px);
  height:auto;margin:0;
  padding:20px 22px 18px;
  border-radius:18px;
  border:1px solid #b8d5e8;
  background:linear-gradient(160deg,#fbfdff,#edf5fb);
  box-shadow:0 24px 65px #0015244d;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero) header {
  top:-20px;z-index:3;
  display:flex;align-items:center;gap:10px;
  padding:2px 0 13px!important;
  border-bottom:1px solid #d3e4ef;
  background:#f9fcff;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel header h2 {
  font-size:23px;letter-spacing:-.025em;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel header>button {
  min-width:82px;min-height:42px;
  padding:8px 11px;border-radius:10px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-page-context {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;column-gap:9px;row-gap:8px;
  margin:13px 0 14px;padding-bottom:14px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-page-context .zenya-context {
  grid-column:1/-1;min-width:0;margin:0;
  font-size:12px;line-height:1.55;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-page-context button {
  display:inline-flex;justify-content:center;align-items:center;
  width:100%;min-width:0;min-height:42px;
  padding:9px 10px;border-radius:10px;
  font:600 11px/1.4 Inter,sans-serif;text-align:center;
  white-space:normal;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-dock-answer {
  margin-top:2px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-quick-questions,
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-guide-suggestions,
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-depth-actions {
  gap:8px;margin-block:12px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-depth-actions button {
  min-height:38px;padding:8px 12px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-guide-ask {
  margin-top:14px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-guide-ask>div {
  display:flex;gap:9px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-guide-ask input {
  flex:1 1 auto;min-width:0;min-height:44px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-guide-ask button[type=submit] {
  min-width:77px;min-height:44px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-voice-controls {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;margin-top:12px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-voice-controls button {
  min-width:0;min-height:40px;padding:9px 7px;
  border-radius:10px;
  white-space:normal;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel footer {
  align-items:center;gap:14px;
  margin-top:12px;padding-top:13px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel footer>a {
  flex-shrink:0;margin-left:auto;
 }
}
@media (min-width: 721px) and (max-width: 900px) {
 body.ek-refresh .zenya-assistant.zenya-side:not(.is-minimised) .zenya-dock-avatar {
  width:144px!important;height:220px!important;flex:0 0 144px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero) {
  width:min(400px,calc(100vw - 166px));
  padding:18px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero) header {
  top:-18px;
 }
}

/* Keep the service-readiness note readable against the light guide sheet. */
body.ek-refresh .zenya-side .zenya-dock-panel footer [data-knowledge-status] {
 color:#45677f!important;opacity:1;font-weight:500;
}
@media (min-width: 721px) {
 /* Progressive disclosure: don't present unusable conversation actions. */
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-depth-actions button:disabled,
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-voice-controls button:disabled {
  display:none!important;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-depth-actions:not(:has(button:not(:disabled):not([hidden]))) {
  display:none!important;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(:has(.eg-zenya-menu)) .ekr-voice-controls {
  display:flex;flex-wrap:wrap;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(:has(.eg-zenya-menu)) .ekr-voice-controls button {
  min-width:116px;
 }
 /* Gateway/pilot option menu retains its existing event handlers and scroll. */
 body.ek-refresh .zenya-side .zenya-dock-panel .eg-zenya-menu {
  border-color:#c4dce9;border-radius:12px;background:#fafdff;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .eg-zenya-menu>summary {
  min-height:43px;box-sizing:border-box;
  padding:11px 14px;font-size:12px;
  color:#1a4b68;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .eg-zenya-menu-body {
  gap:0;padding:10px;
  border-color:#bfd7e5;border-radius:12px;
  background:#fcfeff;box-shadow:0 18px 44px #08223645;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .eg-zenya-menu-body>* {
  padding:8px 0;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .eg-zenya-menu-body button:not(:disabled) {
  min-height:40px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .zenya-dock-resize {
  left:6px;bottom:6px;width:20px;height:20px;
  border-radius:6px;color:#66879b;background:#edf5fb;
 }
}

/* The gateway dropdown shows one clear action per row, including voice. */
@media (min-width: 721px) {
 body.ek-refresh .zenya-side .zenya-dock-panel .eg-zenya-menu-body .ekr-voice-controls {
  display:grid!important;grid-template-columns:minmax(0,1fr);gap:2px;
 }
}

/* Desktop portrait: scale with real viewport width, including zoomed-out
   2K/4K browsers.  The canvas is now also framed closer by zenya-avatar.js. */
@media (min-width:1700px) {
 body.ek-refresh .zenya-assistant.zenya-side:not(.is-minimised) .zenya-dock-avatar {
  width:clamp(195px,10.5vw,235px)!important;
  height:clamp(285px,16vw,335px)!important;
  flex:0 0 clamp(195px,10.5vw,235px);
 }
 body.ek-refresh.has-enterprise-deck .zenya-assistant.zenya-side:not(.is-minimised):not(.is-open) .zenya-dock-avatar,
 body.public-support.ek-refresh .zenya-assistant.zenya-side:not(.is-minimised):not(.is-open) .zenya-dock-avatar {
  width:clamp(165px,8.8vw,195px)!important;
  height:clamp(245px,13vw,286px)!important;
  flex:0 0 clamp(165px,8.8vw,195px);
 }
}
/* Answer first, one compact disclosure for optional questions and styles. */
body.ek-refresh .zenya-side .zenya-side-options {
 flex:0 0 auto; min-width:0; margin:11px 0 3px;
 border:1px solid #b9d4e6; border-radius:12px;
 background:#f1f8fd; color:#21465d;
}
body.ek-refresh .zenya-side .zenya-side-options>summary {
 cursor:pointer; list-style:none; display:flex;align-items:center;
 justify-content:space-between;gap:10px;min-height:45px;
 padding:10px 14px;font:650 12px/1.4 Inter,sans-serif;
 color:#17405c;
}
body.ek-refresh .zenya-side .zenya-side-options>summary::-webkit-details-marker {display:none}
body.ek-refresh .zenya-side .zenya-side-options>summary::after {
 content:'⌄';font-size:19px;line-height:1;color:#246586;
}
body.ek-refresh .zenya-side .zenya-side-options[open]>summary::after {transform:rotate(180deg)}
body.ek-refresh .zenya-side .zenya-side-options>summary span {
 flex:1; font:500 11px/1.4 Inter,sans-serif; color:#5f7a8e;
}
body.ek-refresh .zenya-side .zenya-side-options-content {
 display:grid;gap:11px;padding:12px;
 border-top:1px solid #d4e4ef;max-height:min(42dvh,310px);
 overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
}
body.ek-refresh .zenya-side .zenya-side-options-content .ekr-quick-questions {
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px;margin:0!important;
}
body.ek-refresh .zenya-side .zenya-side-options-content .ekr-quick-questions button {
 width:100%;min-width:0;min-height:42px;line-height:1.4;text-align:center;
 white-space:normal;border-radius:9px;padding:8px 10px;
}
body.ek-refresh .zenya-side .zenya-side-options-content .zenya-guide-suggestions {margin:0!important}
body.ek-refresh .zenya-side .zenya-side-options-content .zenya-guide-suggestions:empty {display:none}
body.ek-refresh .zenya-side .zenya-side-options-content .zenya-depth-actions {
 display:flex;flex-wrap:wrap;gap:7px;margin:0!important;padding-top:10px;
 border-top:1px solid #d3e5ef;
}
body.ek-refresh .zenya-side .zenya-side-options-content .zenya-depth-actions button {
 flex:1 1 30%;min-width:0;min-height:40px;grid-column:auto;
}
body.ek-refresh .zenya-side .zenya-side-options-content .zenya-dock-details {
 margin-top:0;padding-top:8px;border-top:1px solid #d3e5ef;
}
/* No scroll bar cutting the middle of the answer on desktop; the complete
   answer and optional questions can instead scroll together if needed. */
@media (min-width:721px) {
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero):not(.is-user-sized) {
  display:block;overflow-y:auto;overflow-x:hidden;
  max-height:calc(100dvh - 105px);
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero):not(.is-user-sized) .zenya-dock-body {
  display:block;overflow:visible;max-height:none;min-height:0;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-voice-controls {display:flex;gap:8px;margin:9px 0 0}
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-voice-controls button:not(:disabled) {
  min-height:36px;padding:7px 12px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel footer {margin-top:8px;padding-top:10px}
}
@media (max-width:720px) {
 body.ek-refresh .zenya-side .zenya-side-options>summary {min-height:42px}
 body.ek-refresh .zenya-side .zenya-side-options>summary span {font-size:10px}
 body.ek-refresh .zenya-side .zenya-side-options-content {max-height:min(38dvh,280px)}
}

/* Keep the top of the floating guide below the site navigation on short
   desktop viewports; scroll the complete panel rather than cutting the answer
   midway with a second, inner scrollbar. */
@media (min-width:721px) {
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero):not(.is-user-sized) {
  max-height:calc(100dvh - 175px);
 }
 body.ek-refresh .zenya-side .zenya-dock-panel:not(.is-hero) .zenya-conversation-line {
  margin:9px 0;padding:9px 12px;
 }
 body.ek-refresh .zenya-side .zenya-dock-panel .ekr-voice-controls button:not(:disabled) {
  flex:0 1 auto;min-width:84px;min-height:36px;padding:6px 10px;
  border-radius:9px;
 }
}

/* Optional controls float above their disclosure on desktop.  The question
   field stays available while the suggestions scroll in their own surface. */
@media (min-width:721px) {
 body.ek-refresh .zenya-side .zenya-side-options {position:relative;z-index:9}
 body.ek-refresh .zenya-side .zenya-side-options[open] {
  background:#e7f3fa;border-color:#8bbdd8;
 }
 body.ek-refresh .zenya-side .zenya-side-options[open] .zenya-side-options-content {
  position:absolute;z-index:11;bottom:calc(100% + 6px);left:-1px;right:-1px;
  width:auto;max-height:min(39dvh,300px);
  padding:12px;border:1px solid #b8d5e8;border-radius:12px;
  background:#fbfdff;box-shadow:0 16px 38px #001b3150;
 }
}
