/* Shared by the design and live build: flat navigation, not section cards. */
html{overflow-y:scroll;scrollbar-gutter:stable}
html:not(.announcement-ready) body{visibility:hidden}
.public-announcement{line-height:18px}
.flat-sidebar{--accent:var(--dz-accent);--soft:var(--dz-accent-soft);--border:var(--dz-border);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.6}
:root[data-theme=dark] .flat-sidebar .group-label,:root[data-theme=dark] .flat-sidebar .shared-label{color:var(--muted)}
.flat-sidebar .nav-group{border:0;background:transparent;box-shadow:none;border-radius:0}
@media(min-width:601px){
  .flat-sidebar.sidebar{position:fixed;inset:var(--announcement-height,0px) auto 0 0;height:auto;display:flex;flex-direction:column;width:220px;padding:28px 14px 14px;overflow-y:auto;overflow-anchor:none;overscroll-behavior:contain}
  .flat-sidebar~.shell,.flat-sidebar~.page-shell{margin-left:220px}
  .flat-sidebar .brand{display:flex;align-items:center;flex-shrink:0;padding:0;margin:0 12px 32px;gap:12px;color:var(--text);letter-spacing:0}
  .flat-sidebar .brand strong{font-size:18px}
  .flat-sidebar .brand-mark{width:33px;height:34px;font-size:18px;font-weight:400;border:1px solid var(--accent);border-radius:10px;background:var(--soft);color:var(--accent)}
  .flat-sidebar nav{display:block;gap:0;flex:none;flex-shrink:0;width:100%}
  .flat-sidebar .nav-group{padding:0;margin:0}
  .flat-sidebar .group-label,.flat-sidebar .shared-label{display:none}
  .flat-sidebar .nav-item{display:flex;align-items:center;flex-direction:row;width:100%;height:auto;min-height:46px;padding:11px 14px;gap:12px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:16px;font-weight:500;line-height:24px;letter-spacing:0;margin:0;text-align:left;white-space:nowrap;justify-content:flex-start;text-decoration:none}
  .flat-sidebar .nav-item svg{width:18px;height:18px;flex:0 0 18px;stroke-width:1.6;color:var(--muted)}
  .flat-sidebar .nav-item:hover{background:var(--soft);color:var(--accent)}
  .flat-sidebar .nav-item.active{background:var(--soft);color:var(--accent);font-weight:600}
  .flat-sidebar .nav-item.active svg{color:var(--accent)}
  .flat-sidebar .sidebar-bottom{display:block;gap:0;flex-shrink:0;margin-top:auto;padding-top:24px}
  .flat-sidebar .sidebar-bottom .nav-item span{display:inline}
  .flat-sidebar .sidebar-bottom .developer-nav-link svg{display:block}
  body>.flat-sidebar .theme-footer{position:static;inset:auto;width:auto;margin:8px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
  body>.flat-sidebar .theme-toggle{font-size:16px}
  .flat-sidebar .theme-divider{margin-top:8px;padding-top:12px;border-top:1px solid var(--border)}
}
@media(min-width:601px) and (max-height:850px){
  .flat-sidebar .brand{margin-bottom:24px}
  .flat-sidebar .nav-group{margin-bottom:0}
  .flat-sidebar .nav-item{min-height:40px;padding-block:8px}
  .flat-sidebar .sidebar-bottom{padding-top:12px}
}

/* Match the studio bottom bar even where legacy styles switch at 720px. */
@media(max-width:600px){
  body>.flat-sidebar.sidebar{position:fixed;inset:auto 0 0;width:100%;height:68px;padding:5px 12px;display:block;border:0;border-top:1px solid var(--border);background:var(--surface);z-index:10}
  .flat-sidebar .brand,.flat-sidebar .group-label,.flat-sidebar .shared-label,.flat-sidebar .sidebar-bottom{display:none}
  body>.flat-sidebar nav{display:flex;height:100%;width:100%;gap:0;justify-content:space-around}
  .flat-sidebar .nav-group{display:contents}
  .flat-sidebar .nav-item{display:flex;align-items:center;justify-content:center;flex:1;flex-direction:column;gap:2px;font-size:11px;line-height:1.6;font-weight:500;min-height:44px;height:auto;padding:6px;width:auto;border:0;border-radius:7px;background:transparent;color:var(--text);text-decoration:none}
  .flat-sidebar .nav-item svg{width:19px;height:19px;flex-shrink:0;stroke-width:1.6;color:var(--muted)}
  .flat-sidebar .nav-item.active{background:var(--soft);color:var(--accent);font-weight:600}
  .flat-sidebar .nav-item.active svg{color:var(--accent)}
  .flat-sidebar .nav-item[data-page=transcript],.flat-sidebar .nav-item[data-page=adaptation],.flat-sidebar .nav-item[data-page=models],.flat-sidebar .nav-item[data-page=model-square]{display:none}
  .flat-sidebar~.shell,.flat-sidebar~.page-shell{margin-left:0;margin-bottom:80px}
}
