/* KAELEN DOUR RTS: independent eye action in the canonical top bar. */
body.kd-ui-compact154 #top.kd-topbar163{
 grid-template-columns:minmax(194px,255px) minmax(0,1fr) 88px 115px!important;
 column-gap:clamp(4px,.7vw,10px)!important;
}
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-direction:column!important;gap:0!important;width:88px!important;min-width:0!important;
 height:49px!important;margin:0!important;padding:2px 4px!important;box-sizing:border-box!important;
 color:#e4ebd3!important;border:2px ridge #8aab89!important;border-radius:5px!important;
 background:linear-gradient(160deg,#304d40,#13261d)!important;
 box-shadow:inset 0 0 12px #c7e5b120!important;cursor:pointer!important;
 font:700 11px/1.1 Georgia,serif!important;letter-spacing:.08em!important;
}
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328 .kd-eye-icon328{
 font-size:24px!important;line-height:26px!important;filter:drop-shadow(0 0 5px #99c9b477)!important
}
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328.kd-eye-on328{
 border-color:#edc47b!important;background:linear-gradient(#6a512b,#262b1c)!important;color:#ffebbb!important;
 box-shadow:inset 0 0 11px #ffda8c33,0 0 9px #eac58d44!important;
}
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328:hover{filter:brightness(1.13)!important}
#kd-eye-stage-overlay328[hidden]{display:none!important}
#kd-eye-stage-overlay328{
 position:absolute!important;inset:0!important;z-index:18!important;touch-action:none!important;
 cursor:grab!important;pointer-events:auto!important;background:transparent!important;
}
#kd-eye-stage-overlay328:active{cursor:grabbing!important}
#kd-eye-hint328{
 pointer-events:none!important;position:absolute!important;left:50%!important;
 top:12px!important;transform:translateX(-50%)!important;
 width:max-content!important;max-width:calc(100% - 20px)!important;
 padding:8px 13px!important;text-align:center!important;
 color:#e4d9b8!important;background:#14231ce3!important;border:1px solid #a9a17299!important;
 font:600 12px/1.25 system-ui,sans-serif!important;letter-spacing:.025em!important;
}
#kd-eye-exit328{
 position:absolute!important;right:clamp(12px,3vw,40px)!important;bottom:clamp(90px,12vh,165px)!important;
 pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important;
 padding:11px 16px!important;min-height:44px!important;background:#263c30ee!important;
 color:#ffebbc!important;border:2px solid #b8a06c!important;border-radius:5px!important;
 font:bold 14px Georgia,serif!important;box-shadow:0 3px 12px #000a!important;
}
@media(max-width:1100px){
 body.kd-ui-compact154 #top.kd-topbar163{
  grid-template-columns:minmax(140px,208px) minmax(0,1fr) 66px 85px!important;gap:4px!important
 }
 body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328{
  width:66px!important;height:43px!important;font-size:10px!important
 }
 body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328 .kd-eye-icon328{font-size:21px!important;line-height:22px!important}
}
@media(max-width:680px){
 body.kd-ui-compact154 #top.kd-topbar163{
  grid-template-columns:minmax(92px,1fr) 48px 88px!important;
  grid-template-rows:40px 43px!important;
  grid-template-areas:'brand eye menu' 'resources resources resources'!important;
  gap:2px!important
 }
 body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328{
  grid-area:eye!important;justify-self:center!important;width:44px!important;
  height:36px!important;padding:1px!important;border-width:1px!important;
 }
 body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328 .kd-eye-label328{display:none!important}
 body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328 .kd-eye-icon328{font-size:22px!important;line-height:25px!important}
 #kd-eye-hint328{font-size:10px!important;top:5px!important;padding:6px 8px!important}
 #kd-eye-exit328{right:12px!important;bottom:120px!important}
}

body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328:disabled{
 cursor:not-allowed!important;opacity:.68!important;filter:saturate(.55)!important;
}

/* V352: eye control always visible as the fourth top-bar column. */
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328{grid-column:3!important;grid-row:1!important;z-index:5!important;visibility:visible!important;opacity:1!important;}
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328:disabled{opacity:.55!important;}
#kdEyeView328 .kd-eye-icon328{display:flex!important;align-items:center!important;justify-content:center!important;}
#kdEyeView328 svg[hidden]{display:none!important;}
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328.kd-eye-on328 .kd-eye-open352{filter:drop-shadow(0 0 5px #80e5bd);}
@media(max-width:680px){body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328{grid-area:eye!important;grid-column:auto!important;grid-row:auto!important;}}

/* V353: pin the eye visibly next to MENU, independent of the header grid. */
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328{
 position:absolute!important;right:clamp(125px,9.5vw,166px)!important;
 top:50%!important;transform:translateY(-50%)!important;
 left:auto!important;display:flex!important;visibility:visible!important;
 width:84px!important;height:47px!important;z-index:40!important;
 pointer-events:auto!important;grid-column:auto!important;grid-row:auto!important;
}
body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328 .kd-eye-icon328{display:flex!important;}
@media(max-width:680px){
 body.kd-ui-compact154 #top.kd-topbar163 #kdEyeView328{
  position:relative!important;right:auto!important;top:auto!important;
  transform:none!important;grid-area:eye!important;width:44px!important;height:36px!important;
 }
}

/* V354: eye outside legacy topbar, no hiding grid rules can affect it. */
#kdEyeView328.kd-eye-floating354{
 position:fixed!important;top:34px;left:auto;right:140px;
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-direction:column!important;width:90px!important;height:44px!important;
 padding:3px!important;gap:0!important;box-sizing:border-box!important;
 background:linear-gradient(#2d493a,#10271e)!important;color:#f2dfb4!important;
 border:2px ridge #d5ad6b!important;border-radius:4px!important;
 box-shadow:0 2px 9px #000b!important;cursor:pointer!important;
 pointer-events:auto!important;visibility:visible!important;
 font:bold 11px Georgia,serif!important;
}
#kdEyeView328.kd-eye-floating354.kd-eye-on328{background:linear-gradient(#5b482c,#213729)!important;border-color:#8de3c2!important}
#kdEyeView328.kd-eye-floating354:disabled{opacity:.67!important;cursor:not-allowed!important}
#kdEyeView328.kd-eye-floating354 .kd-eye-icon328{display:flex!important;align-items:center!important;justify-content:center!important}
#kdEyeView328.kd-eye-floating354 svg[hidden]{display:none!important}
@media(max-width:680px){
 #kdEyeView328.kd-eye-floating354{width:42px!important;height:35px!important}
 #kdEyeView328.kd-eye-floating354 .kd-eye-label328{display:none!important}
}
