#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.28s ease;
}
#overlay.open { opacity: 1; }

#drawer {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(420px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid var(--header-border);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
  z-index: 60;
  overflow: hidden;
  transform: translateX(calc(100% + 28px));
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1),
    background-color 0.25s ease;
}
#drawer.open { transform: translateX(0); }

.grabber { display: none; }

.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 8px;
}
.drawer-title { font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-tools { padding: 0 16px 10px; }
.drawer-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}

.campaign-list { flex: 1; overflow-y: auto; padding: 0 10px; }
.crow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 0;
  transition: background 0.12s ease;
}
.crow:hover { background: var(--fill); }
.boxart {
  width: 40px;
  height: 54px;
  border-radius: 10px;
  background: var(--fill);
  flex: none;
  object-fit: cover;
}
.crow-main { flex: 1; min-width: 0; }
.cname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csub { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drop-list {
  margin: 2px 0 10px 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 13.5px;
}
.drop-list.enter { animation: riseIn 0.25s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.drop-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 20px;
}
.drop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-right { display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; }
.drop-right .bar { width: 90px; height: 4px; flex: none; }
.drop-list .inline-link { margin-top: 2px; font-size: 13px; }

.drawer-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--separator);
}
.drawer-foot .btn {
  width: 100%;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
}
