/* Primary reading workflow and secondary research/workspace navigation. */
.compact .tabs {
  position: relative;
  gap: 24px;
  min-height: 49px;
  height: auto;
  flex-wrap: nowrap;
}
.compact .tabs > .tab {
  height: 49px;
  white-space: nowrap;
  font-size: 13px;
}
.compact .tabs .tab-tools {
  width: auto;
  margin-left: auto;
  padding: 0;
  gap: 10px;
  border: 0;
}
.nav-menu > summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.nav-menu > summary span {
  font-size: 13px;
  line-height: 1;
}
.nav-menu .workspace-links {
  width: 310px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  padding: 10px;
  gap: 2px;
}
.nav-menu .workspace-links .eyebrow {
  padding: 7px 9px;
  margin: 0;
  font-size: 9px;
}
.compact .nav-menu .workspace-links .menu-item {
  display: block;
  text-align: left;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px 9px;
  border: 0;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.4;
}
.menu-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.nav-menu .menu-item small {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
.nav-menu .menu-item:hover,
.nav-menu .menu-item:focus-visible {
  background: var(--lime);
}
.nav-menu summary:focus-visible,
.tabs > .tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.nav-menu hr {
  margin: 7px 0;
}
.library-help {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}
.library-help .text-button {
  font-size: 11px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.compact .hero {
  min-height: 0;
  padding-bottom: 12px;
}
.compact .hero .intro {
  max-width: 680px;
  font-size: 12px;
  line-height: 1.55;
}
.compact .hero h1 {
  font-size: 30px;
}
.shelf-instruction {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
#notebook-view .notebook-intro strong {
  font-size: 13px;
}
#notebook-view .notebook-intro p {
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .compact .tabs {
    gap: 18px;
    padding: 0 16px;
    flex-wrap: wrap;
  }
  .compact .tabs > .tab {
    height: 43px;
    font-size: 12px;
  }
  .compact .tabs .tab-tools {
    flex-basis: 100%;
    margin: 0;
    padding: 0 0 8px;
    justify-content: flex-start;
    gap: 9px;
  }
  .nav-menu {
    position: static;
  }
  .nav-menu > summary {
    font-size: 11px;
    min-height: 36px;
    padding: 6px 9px;
  }
  .nav-menu .workspace-links {
    left: 16px;
    right: 16px;
    top: calc(100% + 3px);
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 190px);
    overflow: auto;
  }
  .compact .nav-menu .workspace-links .menu-item {
    min-height: 46px;
  }
  .compact .hero h1 {
    font-size: 26px;
  }
  .compact .hero .intro {
    font-size: 11px;
    line-height: 1.5;
  }
  .compact .hero .eyebrow {
    font-size: 8px;
    margin-bottom: 5px;
  }
  .library-help {
    margin-top: 5px;
  }
  .library-help .text-button {
    font-size: 10px;
  }
  .compact .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px 0;
    gap: 8px;
    margin-bottom: 12px;
  }
  .compact .stat {
    min-width: 0;
  }
  .compact .stat strong {
    font-size: 17px;
  }
  .compact .stat span {
    font-size: 9px;
  }
  .compact .section-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .shelf-display {
    gap: 10px;
    flex-wrap: wrap;
  }
  .shelf-instruction {
    font-size: 10px;
  }
}
