
/* 관리자 창 — 표가 넓어서 충전 창보다 크게 잡는다 */
.admin-modal {
  width: min(1240px, 96vw);
  height: min(840px, 90vh);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.admin-modal .modal-head { flex: none; }
.admin-frame {
  flex: 1;
  width: 100%;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: var(--deep);
}

/* 오른쪽 끝 동그란 프로필 — 내 정보·크레딧·키·관리자·로그아웃을 한 자리에 모은다 */
.profile { position: relative; display: flex; align-items: center; }
.profile-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--panel2); color: var(--text);
  border: 1px solid var(--line); cursor: pointer;
  font: inherit; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.profile-btn:hover { background: var(--sel, var(--panel)); }
.profile-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 232px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.profile-who {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 10px;
}
.profile-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--panel2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.profile-lines { display: flex; flex-direction: column; min-width: 0; }
.profile-lines b { font-weight: 600; }
.profile-mail { color: var(--text-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.profile-rows { display: flex; flex-direction: column; }
.profile-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 6px 10px; border-radius: 5px;
  background: none; border: none; color: var(--text); font: inherit;
  text-align: left; cursor: pointer;
}
.profile-row:hover { background: var(--panel2); }
.profile-row.static { color: var(--text-dim); cursor: default; }
.profile-row.static:hover { background: none; }
.profile-dots { display: flex; gap: 8px; font-size: 11px; }
.profile-sep { height: 1px; margin: 5px 8px; background: var(--line); }
.profile-menu .logout-form { display: block; }
