.layer.drawer-layer {
  top: calc(0px - var(--top-inset));
  height: auto;
  background: transparent;
  overflow: hidden;
}
.drawer-layer>.page-bar {display: none;}
.drawer-layer>.page-content {overflow: hidden;}
.dr-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 59%);
}
.dr-shade:active {transform: none;}
.dr-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 76.75%;
  padding-top: max(3.75rem, var(--top-inset));
  overflow: hidden;
  background: #fafafa;
  color: #171717;
  outline: none;
  touch-action: pan-y;
}
.dr-scroll {
  padding: 1.15rem 1rem .75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.dr-group {
  display: flex;
  flex-direction: column;
  border-radius: .7rem;
  background: #fff;
  padding: .375rem 0;
  overflow: hidden;
}
.dr-group+.dr-group {margin-top:.5rem;}
.dr-group:has(>:only-child) {padding: .24rem 0;}
.dr-item {
  display: flex;
  align-items:center;
  gap:.69rem;
  height:3rem;
  padding: 0 1rem 0 .94rem;
  text-align:left;
  font-size:.865rem;
  line-height:1.2;
}
.dr-item:active {background:#f6f6f6;transform:scale(.99);}
.dr-item>span:nth-child(2) {transform:translate(-.02rem,.083rem);}
.dr-pack-icon {width:1.625rem;height:1.625rem;padding:.1rem;box-sizing:border-box;color:#2b2b2b;flex:none;}
.dr-group:has(>:only-child) .dr-item>span:nth-child(2) {transform:translate(-.015rem,.02rem);}
.dr-glyph {
  display:block;
  flex:0 0 1.625rem;
  width:1.625rem;
  height:1.625rem;
  background: url("assets/drawer-icons.png") no-repeat 0 calc(-1.625rem * var(--tile)) / 1.625rem auto;
}
.dr-mark,.dr-new {margin-left:auto;border-radius:1rem;background:#ee3c48;}
.dr-mark {width:.5rem;height:.5rem;}
.dr-new {padding:.09rem .22rem;color:#fff;font-size:.65rem;line-height:.85rem;}
.dr-utils {
  margin-top:auto;
  flex:none;
  display:flex;
  justify-content:flex-end;
  padding:.7rem .3rem max(3.16rem,var(--safe-bottom,0px)) 0;
}
.dr-utils button {
  width:6.25rem;
  display:grid;
  justify-items:center;
  gap:.78rem;
  font-size:.79rem;
  color:#888;
}
.dr-utils button>span {
  display:grid;
  place-items:center;
  width:2.75rem;
  height:2.75rem;
  border-radius:50%;
  background:#f0f0f0;
}
.drawer-layer.enter,.drawer-layer.exit {animation:none;}
.drawer-layer.enter .dr-shade {animation:dr-dim .25s ease both;}
.drawer-layer.enter .dr-panel {animation:dr-slide .27s cubic-bezier(.2,.75,.25,1) both;}
.drawer-layer.exit .dr-shade {animation:dr-dim .2s ease reverse both;}
.drawer-layer.exit .dr-panel {animation:dr-slide .2s ease-in reverse both;}
@keyframes dr-slide {from {transform:translateX(-100%);} to {transform:translateX(0);}}
@keyframes dr-dim {from {opacity:0;} to {opacity:1;}}
.dr-sub, .dr-help {padding:1rem;}
.dr-empty {min-height:14rem;display:grid;justify-items:center;align-content:center;gap:.55rem;color:#999;}
.dr-empty .dr-glyph {opacity:.45;}
.dr-empty p,.dr-muted {margin:0;font-size:.875rem;}
.dr-muted {text-align:center;padding:3rem 0;color:#888;}
.dr-search {width:100%;border:0;background:#f6f6f6;border-radius:1.4rem;padding:.65rem .9rem;outline-color:#aaa;}
.dr-friend {display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:3.75rem;}
.dr-friend>button:first-child {display:flex;align-items:center;gap:.65rem;min-width:0;}
.dr-friend img {width:2.25rem;height:2.25rem;border-radius:50%;object-fit:cover;}
.dr-friend span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dr-follow {border:1px solid #ff2442;border-radius:1rem;color:#f42647;font-size:.8rem;min-width:3.6rem;padding:.24rem .58rem;flex:none;}
.dr-follow[aria-pressed=true] {color:#888;border-color:#ddd;}
.dr-totals {display:flex;justify-content:space-around;background:#fafafa;border-radius:.8rem;padding:1rem 0;margin:.3rem 0 1.2rem;}
.dr-totals div {display:grid;text-align:center;gap:.3rem;}
.dr-totals b {font-size:1.42rem;}
.dr-totals span,.dr-draft small {color:#888;font-size:.82rem;}
.dr-primary,.dr-logout {display:block;width:100%;padding:.65rem;border-radius:1.4rem;}
.dr-primary {background:#ff2442;color:#fff;}
.dr-logout {background:#f7f7f7;color:#ec3850;}
.dr-error {color:#ca2638;text-align:center;font-size:.85rem;}
.dr-draft {display:flex;align-items:center;gap:.75rem;text-align:left;width:100%;}
.dr-draft>img {width:4.5rem;height:5.2rem;border-radius:.45rem;object-fit:cover;}
.dr-draft>span {display:grid;gap:.3rem;min-width:0;}
.dr-draft strong,.dr-draft small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dr-help details {padding:.8rem 0;border-bottom:1px solid #eee;}
.dr-help summary {cursor:pointer;}
.dr-help p {color:#666;font-size:.9rem;}
@media (max-height: 740px) {.dr-utils {padding-bottom:max(.85rem,var(--safe-bottom,0px));}}
@media (prefers-reduced-motion:reduce) {.drawer-layer *, .drawer-layer {animation-duration:.01ms !important;}}
