/* Talia Hub owns the available canvas; its panes own vertical scrolling. */
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) {
  height:100%;
  overflow:hidden;
  scroll-behavior:auto;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) body {
  height:100dvh;
  min-height:0;
  padding-bottom:0;
  overflow:hidden;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) body.admin-bar {
  height:calc(100dvh - var(--wp-admin--admin-bar--height,32px));
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-shell,
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-workspace {
  height:100%;
  min-height:0;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-workspace {
  display:flex;
  flex-direction:column;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-top-dock {
  position:relative;
  top:auto;
  flex:0 0 auto;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-canvas {
  flex:1 1 auto;
  height:auto;
  min-height:0;
  min-width:0;
  overflow:hidden;
  padding:10px clamp(8px,1vw,18px) 10px;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-home,
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-page {
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  min-width:0;
  gap:0;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) :is(.krn-kes-home,.krn-kes-page) > .krn-kes-card--page:has([data-krn-hub-workbench]) {
  flex:1 1 auto;
  height:100%;
  min-height:0;
  min-width:0;
  overflow:hidden;
  padding:0;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) [data-krn-hub-workbench] {
  display:block;
  width:100%;
  height:100%!important;
  min-height:0;
  max-height:none;
  margin:0;
  padding:0;
  overflow:hidden;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) [data-krn-hub-workbench] .krn-hub-panel-surface {
  display:grid;
  grid-template-rows:auto minmax(0,1fr)!important;
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) [data-krn-hub-workbench] .krn-talia-hub-panes {
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
}
html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) [data-krn-hub-workbench] .krn-talia-hub-tools-pane {
  max-height:none;
  overflow:visible;
}

@media (min-width:783px) {
  html[data-kes-family="talia"] .krn-kes-nav-dock {justify-content:flex-start}
  html[data-kes-family="talia"] .krn-kes-nav-dock-head {flex:0 0 auto}
  html[data-kes-family="talia"] .krn-kes-nav-dock-scroll {
    display:block;
    flex:1 1 auto;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
  }
  html[data-kes-family="talia"] .krn-kes-nav-list {
    display:grid;
    height:max-content;
    min-height:0;
    align-content:start;
  }
  html[data-kes-family="talia"] .krn-kes-nav-dock-tools {flex:0 0 auto}
}
@media (max-width:782px) {
  html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-canvas {
    padding:8px 8px calc(var(--kes-mobile-nav-height,72px) + var(--kes-safe-bottom) + 20px);
  }
  html[data-kes-family="talia"]:is(.krn-kes-hub-viewport,:has([data-krn-hub-workbench])) .krn-kes-top-dock {
    margin:8px 8px 0;
    width:calc(100% - 16px);
  }
}
