/* The menu for guests, teachers and the admin (rolemenu.js). Students keep menu.css. */
#rmBar,#rmSide{display:none}
#rmList button svg,.rm-more-list svg{width:20px;height:20px;flex:none;stroke:var(--brand);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.rm-n{margin-left:auto;background:#d92d3a;color:#fff;border-radius:99px;font-size:.74rem;font-weight:700;line-height:1;padding:3px 7px}
.rm-pro{margin-left:auto;background:#fff5da;color:#8a5a00;border-radius:6px;font-size:.68rem;font-weight:800;line-height:1;padding:3px 6px}
body.rm-staff .adm-tabs{display:none}
@media (min-width:821px){
  body.rm-on .top-actions .tab,body.rm-on #subnav{display:none}
  body.rm-staff #auth{display:none}
  body.rm-on .top{flex-wrap:nowrap}
  body.rm-on .top .brand{flex:none}
  body.rm-on #rmBar{display:flex;flex:1 1 auto;min-width:0;align-items:center;gap:2px;margin-left:10px}
  body.rm-on #rmSide{display:flex;align-items:center}
  body.rm-on .top-actions{flex:none;align-items:center}
  .rm-items{display:flex;flex:0 1 auto;min-width:0;align-items:center;gap:2px;overflow:hidden}
  #rmBar button,#rmSide button{display:inline-flex;align-items:center;gap:6px;flex:none;margin:0;padding:7px 10px;border:0;border-radius:9px;background:transparent;color:var(--text);font-size:.9rem;font-weight:500;white-space:nowrap;box-shadow:none}
  #rmBar button:hover,#rmSide button:hover{background:var(--brand-soft);color:var(--brand)}
  #rmBar button.on{background:var(--brand-soft);color:var(--brand);font-weight:700;box-shadow:inset 0 -2px 0 var(--gold)}
  #rmBar .rm-n,#rmBar .rm-pro,#rmSide .rm-n{margin-left:0}
  .rm-more{position:relative;flex:none}
  .rm-one{flex:none;display:flex}
  #rmBar .rm-morebtn{font-weight:600}
  #rmSide .rm-help{padding:7px;margin-right:6px}
  #rmSide .rm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #rmSide .rm-help svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .rm-more[hidden]{display:none}
  .rm-morebtn::after{content:"";display:inline-block;width:0;height:0;margin-left:2px;border:4px solid transparent;border-top-color:currentColor;border-bottom:0}
  #rmSide .rm-morebtn{border:1px solid var(--line);font-weight:600;max-width:240px;overflow:hidden;text-overflow:ellipsis}
  #rmSide .rm-start{background:var(--brand);color:var(--on-brand);font-weight:700}
  #rmSide .rm-start:hover{background:var(--brand);color:var(--on-brand);filter:brightness(1.08)}
  .rm-more-list{position:absolute;top:calc(100% + 6px);left:0;z-index:60;min-width:220px;display:flex;flex-direction:column;gap:2px;padding:6px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 30px -12px rgba(10,12,40,.4)}
  .rm-acct .rm-more-list{left:auto;right:0}
  .rm-more-list[hidden]{display:none}
  .rm-more-list button{display:flex!important;justify-content:flex-start;width:100%}
  .rm-more-list .rm-n,.rm-more-list .rm-pro{margin-left:auto!important}
}
@media (max-width:820px){
  body.rm-on #sbMenu #subnav{display:none}
  body.rm-on .mn-head{padding-left:14px}
  .rm-who{display:flex;align-items:center;gap:10px;min-width:0;font-size:inherit}
  .rm-who i{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--gold);color:#16183a;font-style:normal;font-weight:800;font-size:.95rem}
  .rm-who span{display:block;min-width:0}
  .rm-who b{display:block;font-size:1rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rm-who small{display:block;font-weight:400;font-size:.76rem;opacity:.88;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #rmList{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 10px calc(20px + env(safe-area-inset-bottom,0px))}
  .rm-cta{display:flex;gap:8px;padding:8px 2px 2px}
  .rm-cta button{flex:1;justify-content:center;margin:0;padding:9px;border-radius:10px;border:1px solid var(--brand);background:transparent;color:var(--brand);font-weight:700}
  .rm-cta button.p{background:var(--brand);color:var(--on-brand)}
  .rm-t{padding:12px 8px 5px;font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
  .rm-f{border-top:1px solid var(--line);margin-top:10px;padding-top:6px}
  #rmList .rm-g button{display:flex;align-items:center;gap:13px;width:100%;min-height:46px;margin:0;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--text);font-size:.95rem;font-weight:500;text-align:left;box-shadow:none}
  #rmList .rm-g button.on{background:var(--brand-soft);color:var(--brand);font-weight:700;box-shadow:inset 3px 0 0 var(--gold)}
}
