/* V67 — real shortcuts IN the always-visible student header.
   The links are generated by the same student navigation configuration as the sidebar.
   No scroll-triggered duplicate, no icons cloned from only the home page. */
.app.learner-app > .portal-body > .portal-header.kf-student-always-header {
  display:grid !important;
  grid-template-columns:minmax(170px,auto) minmax(0,1fr) auto !important;
  grid-template-rows: minmax(0,auto) !important;
  justify-content:stretch !important;
  align-items:center !important;
  gap:clamp(8px,1.2vw,16px) !important;
  min-height:85px;
  padding-block:7px !important;
  padding-inline:clamp(10px,1.4vw,22px) !important;
}
.app.learner-app > .portal-body > .portal-header.kf-student-always-header > div:first-child {
  min-width:0 !important;
  max-width:280px;
}
.app.learner-app > .portal-body > .portal-header.kf-student-always-header > .header-user {
  max-width:clamp(48px,13vw,180px) !important;
  min-width:0;
  justify-self:end;
}
.app.learner-app .kf-student-header-icons {
  box-sizing:border-box;
  display:flex !important;
  flex-flow:row nowrap !important;
  direction:rtl;
  align-items:stretch;
  gap:clamp(2px,.5vw,7px);
  width:100%;
  max-width:100%;
  min-width:0;
  padding:4px 3px 6px;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  scrollbar-color:#ccc4eb transparent;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
}
.app.learner-app .kf-student-header-icon {
  box-sizing:border-box;
  flex:0 0 auto;
  min-width:65px;
  max-width:102px;
  min-height:61px;
  border-radius:14px;
  padding:6px 5px;
  display:flex !important;
  flex-flow:column nowrap;
  align-items:center;
  justify-content:center;
  gap:4px;
  text-decoration:none !important;
  color:var(--header-text,var(--ink,#25243a)) !important;
  background:transparent;
  border:1px solid transparent;
  scroll-snap-align:start;
  font-size:11px;
  font-weight:700;
  line-height:1.25;
  text-align:center;
  transition:background .18s,border-color .18s;
}
.app.learner-app .kf-student-header-icon svg {
  display:block !important;
  width:21px !important;
  height:21px !important;
  flex:none;
  stroke:currentColor;
  color:var(--primary,#6551e8);
}
.app.learner-app .kf-student-header-icon span {
  display:block;
  width:100%;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app.learner-app .kf-student-header-icon:hover,
.app.learner-app .kf-student-header-icon:focus-visible,
.app.learner-app .kf-student-header-icon.is-active {
  background:var(--soft,#f1edff);
  border-color:rgba(105,78,200,.20);
}
.app.learner-app .kf-student-header-icon:focus-visible {outline:2px solid var(--primary,#6551e8);outline-offset:1px}
/* Retired V57 layer; hiding it here also handles an old cached script. */
.kf-student-dock {display:none !important}
/* The sidebar close control must remain above its navigation surface. */
.app.learner-app .sidebar.learner-menu > .learner-sidebar-close {
  position:absolute!important;
  top:10px!important;
  left:10px!important;
  right:auto!important;
  z-index:999!important;
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  background:var(--portal-side,#222947)!important;
  color:var(--portal-side-text,#fff)!important;
  border-radius:12px!important;
}
@media(max-width:1000px) {
  .app.learner-app > .portal-body > .portal-header.kf-student-always-header {
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    column-gap:8px !important;
    row-gap:3px !important;
    padding-block:6px !important;
    min-height:110px !important;
  }
  .app.learner-app > .portal-body > .portal-header.kf-student-always-header > div:first-child {
    grid-column:1;
    grid-row:1;
    max-width:100%;
  }
  .app.learner-app > .portal-body > .portal-header.kf-student-always-header > .header-user {
    grid-column:2;
    grid-row:1;
    max-width:90px !important;
  }
  .app.learner-app > .portal-body > .portal-header.kf-student-always-header > .kf-student-header-icons {
    grid-column:1/-1;
    grid-row:2;
    justify-self:stretch;
    min-height:65px;
    padding:0 2px 3px;
    gap:3px;
  }
  .app.learner-app .kf-student-header-icon {min-width:67px;max-width:88px;min-height:62px;font-size:10px;gap:3px;padding:5px 4px}
  .app.learner-app .kf-student-header-icon svg{width:20px!important;height:20px!important}
}
@media(max-width:520px) {
  .app.learner-app > .portal-body > .portal-header.kf-student-always-header {
    padding-inline:10px!important;
    row-gap:2px!important;
  }
  .app.learner-app > .portal-body > .portal-header.kf-student-always-header > .header-user {max-width:40px!important}
  .app.learner-app > .portal-body > .portal-header.kf-student-always-header > div:first-child > b {max-width:min(60vw,290px)!important}
  .app.learner-app .kf-student-header-icon {min-width:66px; max-width:82px;min-height:57px;font-size:9.5px}
  .app.learner-app .kf-student-header-icon svg{width:19px!important;height:19px!important}
}
@media(prefers-reduced-motion:reduce) {.app.learner-app .kf-student-header-icon {transition:none!important}}
