/* Zenya's content-sized guide and story walkthrough.
 * Loaded last for the public guide. Hero presentation and manual width remain
 * separate; outdated persisted pixel heights cannot force empty space. */
body.ek-refresh .zenya-assistant .zenya-dock-panel:not(.is-hero){
 box-sizing:border-box;
 height:auto;
 min-height:0;
 max-height:min(690px,calc(100dvh - 115px));
 display:block;
 overflow-y:auto;
 overflow-x:hidden;
 overscroll-behavior:contain;
 scrollbar-width:thin;
}
body.ek-refresh .zenya-assistant.zenya-side .zenya-dock-panel:not(.is-hero){
 max-height:calc(100dvh - 155px);
}
body.ek-refresh .zenya-assistant .zenya-dock-panel:not(.is-hero) .zenya-dock-body{
 display:block;
 height:auto;
 min-height:0;
 max-height:none;
 overflow:visible;
 flex:none;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel:not(.is-hero) .zenya-dock-answer{
 height:auto;min-height:0;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel:not(.is-hero) .zenya-side-options{
 margin-block:11px;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel:not(.is-hero) footer{
 position:static;
}
body.ek-refresh .zenya-dock-panel header{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
}
body.ek-refresh .zenya-dock-panel header>div:first-child{
 min-width:0;flex:0 1 auto;
}
body.ek-refresh .zenya-tour-header-actions{
 display:flex;align-items:center;gap:7px;
 margin-left:auto;flex-shrink:0;
}
body.ek-refresh .zenya-tour-header-actions [data-zenya-tour-toggle]{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:40px;padding:8px 12px;
 border:1px solid #2d698a;
 border-radius:10px;
 background:linear-gradient(135deg,#0d577f,#164366);
 color:#fff;
 font:650 11px/1.35 Inter,system-ui,sans-serif;
 letter-spacing:0;
 box-shadow:0 4px 14px #00253b21;
 cursor:pointer;
 transition:background .15s ease,border-color .15s ease;
 white-space:nowrap;
}
body.ek-refresh .zenya-tour-header-actions [data-zenya-tour-toggle]:hover{
 background:#0a4366;border-color:#0a4366;
}
body.ek-refresh .zenya-tour-header-actions [data-zenya-tour-toggle][aria-pressed=true]{
 background:#143a50;border-color:#174b67;
}
body.ek-refresh .zenya-tour-header-actions [data-zenya-tour-toggle][hidden]{display:none!important}
body.ek-refresh .zenya-tour-header-actions [data-dock-shrink]{
 min-height:40px;flex-shrink:0;border-radius:10px;
 padding:7px 10px;
}
body.ek-refresh .zenya-tour-header-actions :is(button):focus-visible,
body.ek-refresh .zenya-tour-controls button:focus-visible{
 outline:3px solid #5bbde6;outline-offset:2px;
}
body.ek-refresh .zenya-tour-story{
 padding:17px 0 4px;
 margin:0;
 border-top:0;
 min-height:0;
 color:#284b61;
}
body.ek-refresh .zenya-tour-story[hidden]{display:none!important}
body.ek-refresh .zenya-tour-counter{
 display:inline-block;
 margin-bottom:9px;
 color:#49718a;
 font:650 11px/1.35 Inter,system-ui,sans-serif;
 letter-spacing:.025em;
}
body.ek-refresh .zenya-tour-progress{
 height:5px;border-radius:999px;background:#dcecf5;
 overflow:hidden;margin:0 0 18px;
}
body.ek-refresh .zenya-tour-progress>span{
 display:block;height:100%;width:0;
 background:linear-gradient(90deg,#1c7398,#49aec8);
 border-radius:999px;transition:width .25s ease;
}
body.ek-refresh .zenya-tour-story h3{
 font:650 20px/1.2 'Space Grotesk',Inter,sans-serif;
 margin:0 0 10px;letter-spacing:-.025em;color:#153a53;
}
body.ek-refresh .zenya-tour-story>p[data-zenya-tour-copy]{
 color:#3d5b70;
 font:400 14px/1.65 Inter,system-ui,sans-serif;
 margin:0 0 16px;
 overflow-wrap:anywhere;
}
body.ek-refresh .zenya-tour-controls{
 display:grid;grid-template-columns:1fr 1fr 1fr;
 gap:7px;
}
body.ek-refresh .zenya-tour-controls button{
 min-width:0;min-height:40px;padding:9px 8px;
 border-radius:9px;border:1px solid #bad6e5;
 background:#f8fcff;color:#235370;
 font:600 12px/1.3 Inter,system-ui,sans-serif;
 cursor:pointer;
}
body.ek-refresh .zenya-tour-controls button[data-zenya-tour-next]{
 background:#135b80;border-color:#135b80;color:#fff;
}
body.ek-refresh .zenya-tour-controls button:disabled{
 opacity:.45;cursor:not-allowed;
}
body.ek-refresh .zenya-tour-status{
 color:#678095;
 font:500 11px/1.5 Inter,system-ui,sans-serif;
 margin:10px 0 0;
}
body.ek-refresh [data-zenya-dock].is-touring .zenya-dock-answer,
body.ek-refresh [data-zenya-dock].is-touring .zenya-page-context,
body.ek-refresh [data-zenya-dock].is-touring .zenya-conversation-line,
body.ek-refresh [data-zenya-dock].is-touring .zenya-side-options,
body.ek-refresh [data-zenya-dock].is-touring .zenya-depth-actions,
body.ek-refresh [data-zenya-dock].is-touring .ekr-voice-controls,
body.ek-refresh [data-zenya-dock].is-touring .ekr-speech-note,
body.ek-refresh [data-zenya-dock].is-touring footer{
 display:none!important;
}
body.ek-refresh [data-zenya-dock].is-touring .zenya-dock-panel:not(.is-hero) .zenya-dock-body{
 overflow:visible;
}
body.ek-refresh .zenya-tour-highlight{
 outline:2px solid #66c0e5!important;
 outline-offset:5px;
 border-radius:9px;
 scroll-margin-top:110px;
 transition:outline-color .2s ease;
}
/* The highlighted section remains fully interactive; scrolling is the only
 * automatic page effect. We do not click public or private action controls. */
@media(max-width:720px){
 body.ek-refresh .zenya-assistant .zenya-dock-panel:not(.is-hero),
 body.ek-refresh .zenya-assistant.zenya-side .zenya-dock-panel:not(.is-hero){
  height:auto;
  min-height:0;
  max-height:calc(100dvh - 110px);
 }
 body.ek-refresh .zenya-tour-header-actions {gap:5px}
 body.ek-refresh .zenya-tour-header-actions [data-zenya-tour-toggle]{
  white-space:normal;
  text-align:center;
  min-height:40px;
  max-width:125px;
  padding:7px 8px;
  font-size:10px;
 }
 body.ek-refresh .zenya-tour-header-actions [data-dock-shrink]{
  min-height:40px;padding:7px 8px;
 }
 body.ek-refresh .zenya-tour-story h3{font-size:18px}
 body.ek-refresh .zenya-tour-story>p[data-zenya-tour-copy]{font-size:13px}
 body.ek-refresh .zenya-tour-controls button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 body.ek-refresh .zenya-tour-progress>span{transition:none}
 body.ek-refresh .zenya-tour-highlight{transition:none}
}

/* The older side-widget theme has a high-specificity generic button reset.
 * Keep this one primary control visibly intentional in both start/stop states. */
body.ek-refresh .zenya-assistant .zenya-dock-panel .zenya-tour-header-actions button[data-zenya-tour-toggle]{
 background:#145a80!important;color:#fff!important;
 border-color:#145a80!important;box-shadow:0 6px 15px #063b5444;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel .zenya-tour-header-actions button[data-zenya-tour-toggle][aria-pressed=true]{
 background:#153d55!important;color:#fff!important;
 border-color:#153d55!important;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel .zenya-tour-controls button[data-zenya-tour-next]{
 background:#135b80!important;color:#fff!important;border-color:#135b80!important;
}

/* Fixed Ava narration: one compact control group within the story.
 * Replay is user-initiated, and Voice on/off shares the existing mute setting. */
body.ek-refresh .zenya-tour-toolbar{
 display:flex;align-items:center;justify-content:space-between;
 gap:8px;flex-wrap:wrap;margin-bottom:9px;
}
body.ek-refresh .zenya-tour-toolbar .zenya-tour-counter{
 margin:0;flex-shrink:0;
}
body.ek-refresh .zenya-tour-audio-actions{
 display:flex;align-items:center;flex-wrap:wrap;gap:6px;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel .zenya-tour-audio-actions button{
 display:inline-flex;align-items:center;justify-content:center;
 border-radius:8px;border:1px solid #bad3e4;
 color:#22536e;background:#f7fbfe;
 min-height:31px;padding:6px 9px;
 font:600 11px/1.3 Inter,system-ui,sans-serif;
 cursor:pointer;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel .zenya-tour-audio-actions button[data-zenya-tour-voice][aria-pressed=true]{
 background:#e5f4fa;color:#135173;border-color:#a4d2e6;
}
body.ek-refresh .zenya-assistant .zenya-dock-panel .zenya-tour-audio-actions button:disabled{
 opacity:.52;cursor:default;
}
body.ek-refresh .zenya-tour-audio-actions button:focus-visible{
 outline:3px solid #5bbde6;outline-offset:2px;
}
@media(max-width:720px){
 body.ek-refresh .zenya-tour-toolbar{gap:5px}
 body.ek-refresh .zenya-assistant .zenya-dock-panel .zenya-tour-audio-actions button{
  min-height:32px;font-size:10px;padding:6px 8px;
 }
}
