/* Each section owns its navigation; project controls stay out of the catalog. */
.library-menu{margin:0 0 8px 17px;padding-left:9px;border-left:1px solid #4b5970;display:grid;gap:3px}
.sidebar .library-menu .nav-item{font-size:12px;line-height:1.4;padding:9px 11px;min-height:40px;white-space:normal}
.sidebar .library-menu .nav-item.active{background:#21474a;color:#fff;border-radius:8px}
.sidebar .library-menu .nav-item:focus-visible{outline:2px solid #dcc58e;outline-offset:2px}
#library-menu[hidden],#library-project-context[hidden]{display:none}
.library-project-context{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:22px;padding:12px 16px;background:#edf4f1;border:1px solid #c8d9d0;border-radius:12px}
#library-target{margin:0;color:#244c4e;overflow-wrap:anywhere}
#library-panel .library-intro{justify-content:space-between;gap:12px;align-items:center}
#library-categories-open{display:none}
.add-options h2{font-size:22px;margin:0}
body[data-view="add"] #project-memory{display:none}
/* Project creation and saved work share one navigation group. */
.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:12px}
.topbar .breadcrumb{display:none}
.topbar .top-actions{flex-wrap:wrap}
.sidebar{overflow-y:auto}
.sidebar #new-project{font-weight:700}
.sidebar .side-bottom{padding-inline:0}
.sidebar .teacher-space-entry{display:block}
.teacher-space-entry small{display:block;font-weight:400;color:#b7c5d7;font-size:11px;margin-top:4px}
#teacher-panel{max-width:960px}
#teacher-panel .teacher-feedback{margin:0;padding:24px;background:#fff;border-color:#d5e2dd}
#teacher-panel .teacher-feedback summary{font-size:22px;list-style:none}
#teacher-panel .teacher-feedback summary::-webkit-details-marker{display:none}
#teacher-panel .teacher-feedback p{line-height:1.6;color:#52645c}
.teacher-resources{margin-top:24px;padding:16px 20px;border:1px solid #d5e2dd;border-radius:12px;background:#fff}
.teacher-resources summary{cursor:pointer;font-weight:600}
.teacher-resources nav{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:18px;align-items:center}
.teacher-resources a,.teacher-resources button{color:#244c4e;font-size:14px;min-height:36px;display:inline-flex;align-items:center}
@media(max-width:710px){
  .topbar{gap:8px}
  .topbar .top-actions{order:20;width:100%;justify-content:flex-end}
  #library-categories-open{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0}
  #library-panel .library-intro{flex-wrap:wrap}
  .sidebar .library-menu .nav-item{min-height:44px}
}

#teacher-access-slot .pilot-access-bar{border-radius:10px;margin-bottom:20px}
#teacher-access-slot .pilot-access-bar button{padding:8px 12px;min-height:40px;border:1px solid #c6d7d0;border-radius:8px;background:white;cursor:pointer;font:inherit}
.project-navigation>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}
.project-navigation>summary::-webkit-details-marker{display:none}
.project-navigation>summary::after{content:'⌄';font-size:16px}
.project-navigation[open]>summary::after{transform:rotate(180deg)}

.sidebar .brand{flex-direction:column;align-items:flex-start;gap:9px}.sidebar .brand .studio-tagline{font-size:11px;line-height:1.4;color:#a5b1cb;font-weight:400}
